-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* complete download function * chore: 🤖 Crop components to reduce size Add plugin babel-plugin-component and import on demand BREAKING CHANGE: 🧨 font-awesome and element-ui are now partial imported when in product mode ✅ Closes: #20,#19,#18 * push unversioned files
- Loading branch information
Showing
16 changed files
with
183 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"presets": [["es2015", { "modules": false }]], | ||
"plugins": [ | ||
[ | ||
"component", | ||
{ | ||
"libraryName": "element-ui", | ||
"styleLibraryName": "theme-chalk" | ||
} | ||
] | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,20 @@ | ||
// element ui style | ||
@import 'element-ui/lib/theme-chalk/pagination.css'; | ||
@import 'element-ui/lib/theme-chalk/table.css'; | ||
@import 'element-ui/lib/theme-chalk/table-column.css'; | ||
@import 'element-ui/lib/theme-chalk/breadcrumb.css'; | ||
//@import 'element-ui/lib/theme-chalk/breadcrumb-item.css'; // empty file | ||
@import 'element-ui/lib/theme-chalk/tag.css'; | ||
@import 'element-ui/lib/theme-chalk/tree.css'; | ||
@import 'element-ui/lib/theme-chalk/alert.css'; | ||
@import 'element-ui/lib/theme-chalk/row.css'; | ||
@import 'element-ui/lib/theme-chalk/col.css'; | ||
@import 'element-ui/lib/theme-chalk/container.css'; | ||
@import 'element-ui/lib/theme-chalk/main.css'; | ||
@import 'element-ui/lib/theme-chalk/backtop.css'; | ||
@import 'element-ui/lib/theme-chalk/tooltip.css'; | ||
@import "element-ui/lib/theme-chalk/loading.css"; | ||
|
||
html { | ||
font-family: "Noto Sans SC", monospace; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,42 @@ | ||
import Vue from 'vue' | ||
import Element from 'element-ui' | ||
import locale from 'element-ui/lib/locale/lang/en' | ||
import locale from 'element-ui/lib/locale/lang/zh-CN' | ||
|
||
Vue.use(Element, { locale }) | ||
// dev options(use this to use full function of element ui) | ||
// Vue.use(Element, { locale }) | ||
// import Element from 'element-ui' | ||
|
||
|
||
// production options | ||
import { | ||
Pagination, | ||
Table, | ||
TableColumn, | ||
Breadcrumb, | ||
BreadcrumbItem, | ||
Tag, | ||
Tree, | ||
Alert, | ||
Row, | ||
Col, | ||
Container, | ||
Main, | ||
Backtop, | ||
Tooltip, | ||
Loading | ||
} from "element-ui"; | ||
|
||
Vue.use(Pagination,{ locale }) | ||
Vue.use(Table,{ locale }) | ||
Vue.use(TableColumn,{ locale }) | ||
Vue.use(Breadcrumb,{ locale }) | ||
Vue.use(BreadcrumbItem,{ locale }) | ||
Vue.use(Tag,{ locale }) | ||
Vue.use(Tree,{ locale }) | ||
Vue.use(Alert,{ locale }) | ||
Vue.use(Row,{ locale }) | ||
Vue.use(Col,{ locale }) | ||
Vue.use(Container,{ locale }) | ||
Vue.use(Main,{ locale }) | ||
Vue.use(Backtop,{ locale }) | ||
Vue.use(Tooltip,{ locale }) | ||
Vue.use(Loading, { locale }) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -146,6 +146,14 @@ | |
dependencies: | ||
"@babel/types" "^7.20.7" | ||
|
||
"@babel/[email protected]": | ||
version "7.0.0-beta.35" | ||
resolved "https://registry.npmmirror.com/@babel/helper-module-imports/-/helper-module-imports-7.0.0-beta.35.tgz#308e350e731752cdb4d0f058df1d704925c64e0a" | ||
integrity sha512-vaC1KyIZSuyWb3Lj277fX0pxivyHwuDU4xZsofqgYAbkDxNieMg2vuhzP5AgMweMY7fCQUMTi+BgPqTLjkxXFg== | ||
dependencies: | ||
"@babel/types" "7.0.0-beta.35" | ||
lodash "^4.2.0" | ||
|
||
"@babel/helper-module-imports@^7.0.0", "@babel/helper-module-imports@^7.18.6": | ||
version "7.18.6" | ||
resolved "https://registry.npmmirror.com/@babel/helper-module-imports/-/helper-module-imports-7.18.6.tgz#1e3ebdbbd08aad1437b428c50204db13c5a3ca6e" | ||
|
@@ -932,6 +940,15 @@ | |
debug "^4.1.0" | ||
globals "^11.1.0" | ||
|
||
"@babel/[email protected]": | ||
version "7.0.0-beta.35" | ||
resolved "https://registry.npmmirror.com/@babel/types/-/types-7.0.0-beta.35.tgz#cf933a9a9a38484ca724b335b88d83726d5ab960" | ||
integrity sha512-y9XT11CozHDgjWcTdxmhSj13rJVXpa5ZXwjjOiTedjaM0ba5ItqdS02t31EhPl7HtOWxsZkYCCUNrSfrOisA6w== | ||
dependencies: | ||
esutils "^2.0.2" | ||
lodash "^4.2.0" | ||
to-fast-properties "^2.0.0" | ||
|
||
"@babel/types@^7.0.0", "@babel/types@^7.18.6", "@babel/types@^7.18.9", "@babel/types@^7.19.0", "@babel/types@^7.20.0", "@babel/types@^7.20.2", "@babel/types@^7.20.5", "@babel/types@^7.20.7", "@babel/types@^7.3.0", "@babel/types@^7.4.4": | ||
version "7.20.7" | ||
resolved "https://registry.npmmirror.com/@babel/types/-/types-7.20.7.tgz#54ec75e252318423fc07fb644dc6a58a64c09b7f" | ||
|
@@ -2927,6 +2944,13 @@ babel-loader@^8.3.0: | |
make-dir "^3.1.0" | ||
schema-utils "^2.6.5" | ||
|
||
babel-plugin-component@^1.1.1: | ||
version "1.1.1" | ||
resolved "https://registry.npmmirror.com/babel-plugin-component/-/babel-plugin-component-1.1.1.tgz#9b023a23ff5c9aae0fd56c5a18b9cab8c4d45eea" | ||
integrity sha512-WUw887kJf2GH80Ng/ZMctKZ511iamHNqPhd9uKo14yzisvV7Wt1EckIrb8oq/uCz3B3PpAW7Xfl7AkTLDYT6ag== | ||
dependencies: | ||
"@babel/helper-module-imports" "7.0.0-beta.35" | ||
|
||
babel-plugin-polyfill-corejs2@^0.3.3: | ||
version "0.3.3" | ||
resolved "https://registry.npmmirror.com/babel-plugin-polyfill-corejs2/-/babel-plugin-polyfill-corejs2-0.3.3.tgz#5d1bd3836d0a19e1b84bbf2d9640ccb6f951c122" | ||
|
@@ -6143,7 +6167,7 @@ lodash.uniq@^4.5.0: | |
resolved "https://registry.npmmirror.com/lodash.uniq/-/lodash.uniq-4.5.0.tgz#d0225373aeb652adc1bc82e4945339a842754773" | ||
integrity sha512-xfBaXQd9ryd9dlSDvnvI0lvxfLJlYAZzXomUYzLKtUeOQvOP5piqAWuGtrhWeqaXK9hhoM/iyJc5AV+XfsX3HQ== | ||
|
||
lodash@^4.15.0, lodash@^4.17.19, lodash@^4.17.20, lodash@^4.17.21, lodash@^4.17.3, lodash@^4.17.5: | ||
lodash@^4.15.0, lodash@^4.17.19, lodash@^4.17.20, lodash@^4.17.21, lodash@^4.17.3, lodash@^4.17.5, lodash@^4.2.0: | ||
version "4.17.21" | ||
resolved "https://registry.npmmirror.com/lodash/-/lodash-4.17.21.tgz#679591c564c3bffaae8454cf0b3df370c3d6911c" | ||
integrity sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg== | ||
|