Skip to content

Commit ea3bc1f

Browse files
author
huangshuwei
committed
add demo ui
1 parent 6174720 commit ea3bc1f

File tree

4 files changed

+81
-4
lines changed

4 files changed

+81
-4
lines changed

examples/babel.config.js

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,14 @@ module.exports = {
1515
]
1616
],
1717
comments: false,
18-
plugins: ["transform-vue-jsx"]
18+
plugins: [
19+
"transform-vue-jsx",
20+
[
21+
"component",
22+
{
23+
libraryName: "element-ui",
24+
styleLibraryName: "theme-chalk"
25+
}
26+
]
27+
]
1928
};

examples/package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
"clipboard": "^2.0.6",
1414
"core-js": "^3.6.5",
1515
"echarts": "^4.9.0",
16+
"element-ui": "^2.15.0",
1617
"highlight.js": "^10.5.0",
1718
"js-cookie": "^2.2.1",
1819
"mockjs": "^1.1.0",
@@ -30,6 +31,7 @@
3031
"@vue/eslint-config-standard": "^5.1.2",
3132
"@vue/test-utils": "^1.0.3",
3233
"babel-eslint": "^10.1.0",
34+
"babel-plugin-component": "^1.1.1",
3335
"babel-plugin-syntax-jsx": "^6.18.0",
3436
"babel-plugin-transform-vue-jsx": "^3.7.0",
3537
"clean-webpack-plugin": "^3.0.0",

examples/src/main.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ import Anchor from "@/comp/anchor.vue";
2323
Vue.component("demo-block", DemoBlock);
2424
Vue.component("anchor", Anchor);
2525

26+
import { Switch } from "element-ui";
27+
Vue.use(Switch);
28+
2629
// product
2730
/* import "../../libs/theme-default/index.css";
2831
import {

examples/yarn.lock

Lines changed: 66 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,14 @@
142142
dependencies:
143143
"@babel/types" "^7.11.0"
144144

145+
146+
version "7.0.0-beta.35"
147+
resolved "https://registry.npm.taobao.org/@babel/helper-module-imports/download/@babel/helper-module-imports-7.0.0-beta.35.tgz#308e350e731752cdb4d0f058df1d704925c64e0a"
148+
integrity sha1-MI41DnMXUs200PBY3x1wSSXGTgo=
149+
dependencies:
150+
"@babel/types" "7.0.0-beta.35"
151+
lodash "^4.2.0"
152+
145153
"@babel/helper-module-imports@^7.0.0", "@babel/helper-module-imports@^7.10.4", "@babel/helper-module-imports@^7.8.3":
146154
version "7.10.4"
147155
resolved "https://registry.npm.taobao.org/@babel/helper-module-imports/download/@babel/helper-module-imports-7.10.4.tgz?cache=0&sync_timestamp=1593524750098&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2F%40babel%2Fhelper-module-imports%2Fdownload%2F%40babel%2Fhelper-module-imports-7.10.4.tgz#4c5c54be04bd31670a7382797d75b9fa2e5b5620"
@@ -852,6 +860,15 @@
852860
globals "^11.1.0"
853861
lodash "^4.17.19"
854862

863+
864+
version "7.0.0-beta.35"
865+
resolved "https://registry.npm.taobao.org/@babel/types/download/@babel/types-7.0.0-beta.35.tgz?cache=0&sync_timestamp=1612314682739&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2F%40babel%2Ftypes%2Fdownload%2F%40babel%2Ftypes-7.0.0-beta.35.tgz#cf933a9a9a38484ca724b335b88d83726d5ab960"
866+
integrity sha1-z5M6mpo4SEynJLM1uI2Dcm1auWA=
867+
dependencies:
868+
esutils "^2.0.2"
869+
lodash "^4.2.0"
870+
to-fast-properties "^2.0.0"
871+
855872
"@babel/types@^7.0.0", "@babel/types@^7.10.4", "@babel/types@^7.10.5", "@babel/types@^7.11.0", "@babel/types@^7.11.5", "@babel/types@^7.3.0", "@babel/types@^7.4.0", "@babel/types@^7.4.4", "@babel/types@^7.7.0":
856873
version "7.11.5"
857874
resolved "https://registry.npm.taobao.org/@babel/types/download/@babel/types-7.11.5.tgz#d9de577d01252d77c6800cee039ee64faf75662d"
@@ -2059,6 +2076,13 @@ async-limiter@~1.0.0:
20592076
resolved "https://registry.npm.taobao.org/async-limiter/download/async-limiter-1.0.1.tgz#dd379e94f0db8310b08291f9d64c3209766617fd"
20602077
integrity sha1-3TeelPDbgxCwgpH51kwyCXZmF/0=
20612078

2079+
async-validator@~1.8.1:
2080+
version "1.8.5"
2081+
resolved "https://registry.npm.taobao.org/async-validator/download/async-validator-1.8.5.tgz?cache=0&sync_timestamp=1605751734916&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fasync-validator%2Fdownload%2Fasync-validator-1.8.5.tgz#dc3e08ec1fd0dddb67e60842f02c0cd1cec6d7f0"
2082+
integrity sha1-3D4I7B/Q3dtn5ghC8CwM0c7G1/A=
2083+
dependencies:
2084+
babel-runtime "6.x"
2085+
20622086
async@^2.6.2:
20632087
version "2.6.3"
20642088
resolved "https://registry.npm.taobao.org/async/download/async-2.6.3.tgz#d72625e2344a3656e3a3ad4fa749fa83299d82ff"
@@ -2125,6 +2149,11 @@ babel-eslint@^10.1.0:
21252149
eslint-visitor-keys "^1.0.0"
21262150
resolve "^1.12.0"
21272151

2152+
babel-helper-vue-jsx-merge-props@^2.0.0:
2153+
version "2.0.3"
2154+
resolved "https://registry.npm.taobao.org/babel-helper-vue-jsx-merge-props/download/babel-helper-vue-jsx-merge-props-2.0.3.tgz#22aebd3b33902328e513293a8e4992b384f9f1b6"
2155+
integrity sha1-Iq69OzOQIyjlEyk6jkmSs4T58bY=
2156+
21282157
babel-jest@^24.9.0:
21292158
version "24.9.0"
21302159
resolved "https://registry.npm.taobao.org/babel-jest/download/babel-jest-24.9.0.tgz?cache=0&sync_timestamp=1597057413617&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fbabel-jest%2Fdownload%2Fbabel-jest-24.9.0.tgz#3fc327cb8467b89d14d7bc70e315104a783ccd54"
@@ -2156,6 +2185,13 @@ babel-messages@^6.23.0:
21562185
dependencies:
21572186
babel-runtime "^6.22.0"
21582187

2188+
babel-plugin-component@^1.1.1:
2189+
version "1.1.1"
2190+
resolved "https://registry.npm.taobao.org/babel-plugin-component/download/babel-plugin-component-1.1.1.tgz#9b023a23ff5c9aae0fd56c5a18b9cab8c4d45eea"
2191+
integrity sha1-mwI6I/9cmq4P1WxaGLnKuMTUXuo=
2192+
dependencies:
2193+
"@babel/helper-module-imports" "7.0.0-beta.35"
2194+
21592195
babel-plugin-dynamic-import-node@^2.3.3:
21602196
version "2.3.3"
21612197
resolved "https://registry.npm.taobao.org/babel-plugin-dynamic-import-node/download/babel-plugin-dynamic-import-node-2.3.3.tgz?cache=0&sync_timestamp=1592843198494&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fbabel-plugin-dynamic-import-node%2Fdownload%2Fbabel-plugin-dynamic-import-node-2.3.3.tgz#84fda19c976ec5c6defef57f9427b3def66e17a3"
@@ -2218,7 +2254,7 @@ babel-preset-jest@^24.9.0:
22182254
"@babel/plugin-syntax-object-rest-spread" "^7.0.0"
22192255
babel-plugin-jest-hoist "^24.9.0"
22202256

2221-
babel-runtime@^6.22.0, babel-runtime@^6.26.0:
2257+
babel-runtime@6.x, babel-runtime@^6.22.0, babel-runtime@^6.26.0:
22222258
version "6.26.0"
22232259
resolved "https://registry.npm.taobao.org/babel-runtime/download/babel-runtime-6.26.0.tgz#965c7058668e82b55d7bfe04ff2337bc8b5647fe"
22242260
integrity sha1-llxwWGaOgrVde/4E/yM3vItWR/4=
@@ -3601,7 +3637,7 @@ deep-is@~0.1.3:
36013637
resolved "https://registry.npm.taobao.org/deep-is/download/deep-is-0.1.3.tgz#b369d6fb5dbc13eecf524f91b070feedc357cf34"
36023638
integrity sha1-s2nW+128E+7PUk+RsHD+7cNXzzQ=
36033639

3604-
deepmerge@^1.5.2:
3640+
deepmerge@^1.2.0, deepmerge@^1.5.2:
36053641
version "1.5.2"
36063642
resolved "https://registry.npm.taobao.org/deepmerge/download/deepmerge-1.5.2.tgz#10499d868844cdad4fee0842df8c7f6f0c95a753"
36073643
integrity sha1-EEmdhohEza1P7ghC34x/bwyVp1M=
@@ -3937,6 +3973,18 @@ elegant-spinner@^1.0.1:
39373973
resolved "https://registry.npm.taobao.org/elegant-spinner/download/elegant-spinner-1.0.1.tgz#db043521c95d7e303fd8f345bedc3349cfb0729e"
39383974
integrity sha1-2wQ1IcldfjA/2PNFvtwzSc+wcp4=
39393975

3976+
element-ui@^2.15.0:
3977+
version "2.15.0"
3978+
resolved "https://registry.npm.taobao.org/element-ui/download/element-ui-2.15.0.tgz?cache=0&sync_timestamp=1610711151767&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Felement-ui%2Fdownload%2Felement-ui-2.15.0.tgz#de9b73a8d1e3e3b50e82b923a5fa95295239bd41"
3979+
integrity sha1-3ptzqNHj47UOgrkjpfqVKVI5vUE=
3980+
dependencies:
3981+
async-validator "~1.8.1"
3982+
babel-helper-vue-jsx-merge-props "^2.0.0"
3983+
deepmerge "^1.2.0"
3984+
normalize-wheel "^1.0.1"
3985+
resize-observer-polyfill "^1.5.0"
3986+
throttle-debounce "^1.0.1"
3987+
39403988
elliptic@^6.5.3:
39413989
version "6.5.3"
39423990
resolved "https://registry.npm.taobao.org/elliptic/download/elliptic-6.5.3.tgz#cb59eb2efdaf73a0bd78ccd7015a62ad6e0f93d6"
@@ -6878,7 +6926,7 @@ lodash.uniq@^4.5.0:
68786926
resolved "https://registry.npm.taobao.org/lodash.uniq/download/lodash.uniq-4.5.0.tgz#d0225373aeb652adc1bc82e4945339a842754773"
68796927
integrity sha1-0CJTc662Uq3BvILklFM5qEJ1R3M=
68806928

6881-
lodash@^4.17.11, lodash@^4.17.14, lodash@^4.17.15, lodash@^4.17.19, lodash@^4.17.3, lodash@^4.17.4:
6929+
lodash@^4.17.11, lodash@^4.17.14, lodash@^4.17.15, lodash@^4.17.19, lodash@^4.17.3, lodash@^4.17.4, lodash@^4.2.0:
68826930
version "4.17.20"
68836931
resolved "https://registry.npm.taobao.org/lodash/download/lodash-4.17.20.tgz?cache=0&sync_timestamp=1597336082988&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Flodash%2Fdownload%2Flodash-4.17.20.tgz#b44a9b6297bcb698f1c51a3545a2b3b368d59c52"
68846932
integrity sha1-tEqbYpe8tpjxxRo1RaKzs2jVnFI=
@@ -7503,6 +7551,11 @@ normalize-url@^3.0.0:
75037551
resolved "https://registry.npm.taobao.org/normalize-url/download/normalize-url-3.3.0.tgz?cache=0&sync_timestamp=1596373093290&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fnormalize-url%2Fdownload%2Fnormalize-url-3.3.0.tgz#b2e1c4dc4f7c6d57743df733a4f5978d18650559"
75047552
integrity sha1-suHE3E98bVd0PfczpPWXjRhlBVk=
75057553

7554+
normalize-wheel@^1.0.1:
7555+
version "1.0.1"
7556+
resolved "https://registry.npm.taobao.org/normalize-wheel/download/normalize-wheel-1.0.1.tgz#aec886affdb045070d856447df62ecf86146ec45"
7557+
integrity sha1-rsiGr/2wRQcNhWRH32Ls+GFG7EU=
7558+
75067559
npm-run-path@^2.0.0:
75077560
version "2.0.2"
75087561
resolved "https://registry.npm.taobao.org/npm-run-path/download/npm-run-path-2.0.2.tgz#35a9232dfa35d7067b4cb2ddf2357b1871536c5f"
@@ -8942,6 +8995,11 @@ requires-port@^1.0.0:
89428995
resolved "https://registry.npm.taobao.org/requires-port/download/requires-port-1.0.0.tgz#925d2601d39ac485e091cf0da5c6e694dc3dcaff"
89438996
integrity sha1-kl0mAdOaxIXgkc8NpcbmlNw9yv8=
89448997

8998+
resize-observer-polyfill@^1.5.0:
8999+
version "1.5.1"
9000+
resolved "https://registry.npm.taobao.org/resize-observer-polyfill/download/resize-observer-polyfill-1.5.1.tgz#0e9020dd3d21024458d4ebd27e23e40269810464"
9001+
integrity sha1-DpAg3T0hAkRY1OvSfiPkAmmBBGQ=
9002+
89459003
resolve-cwd@^2.0.0:
89469004
version "2.0.0"
89479005
resolved "https://registry.npm.taobao.org/resolve-cwd/download/resolve-cwd-2.0.0.tgz?cache=0&sync_timestamp=1577797763257&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fresolve-cwd%2Fdownload%2Fresolve-cwd-2.0.0.tgz#00a9f7387556e27038eae232caa372a6a59b665a"
@@ -9938,6 +9996,11 @@ throat@^4.0.0:
99389996
resolved "https://registry.npm.taobao.org/throat/download/throat-4.1.0.tgz#89037cbc92c56ab18926e6ba4cbb200e15672a6a"
99399997
integrity sha1-iQN8vJLFarGJJua6TLsgDhVnKmo=
99409998

9999+
throttle-debounce@^1.0.1:
10000+
version "1.1.0"
10001+
resolved "https://registry.npm.taobao.org/throttle-debounce/download/throttle-debounce-1.1.0.tgz?cache=0&sync_timestamp=1604313880785&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fthrottle-debounce%2Fdownload%2Fthrottle-debounce-1.1.0.tgz#51853da37be68a155cb6e827b3514a3c422e89cd"
10002+
integrity sha1-UYU9o3vmihVctugns1FKPEIuic0=
10003+
994110004
through2@^2.0.0:
994210005
version "2.0.5"
994310006
resolved "https://registry.npm.taobao.org/through2/download/through2-2.0.5.tgz?cache=0&sync_timestamp=1593480386934&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fthrough2%2Fdownload%2Fthrough2-2.0.5.tgz#01c1e39eb31d07cb7d03a96a70823260b23132cd"

0 commit comments

Comments
 (0)