iov-design 2.15.60 → 2.15.62
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +148 -148
- package/lib/alert.js +24 -105
- package/lib/aside.js +24 -34
- package/lib/autocomplete.js +36 -240
- package/lib/avatar.js +21 -20
- package/lib/backtop.js +27 -52
- package/lib/badge.js +30 -58
- package/lib/breadcrumb-item.js +24 -53
- package/lib/breadcrumb.js +24 -37
- package/lib/button-group.js +24 -29
- package/lib/button.js +38 -60
- package/lib/calendar.js +29 -146
- package/lib/card.js +24 -51
- package/lib/carousel-item.js +30 -68
- package/lib/carousel.js +27 -159
- package/lib/cascader-panel.js +41 -64
- package/lib/cascader.js +37 -470
- package/lib/checkbox-button.js +28 -164
- package/lib/checkbox-group.js +24 -37
- package/lib/checkbox.js +35 -189
- package/lib/col.js +1 -0
- package/lib/collapse-item.js +27 -125
- package/lib/collapse.js +24 -37
- package/lib/color-picker.js +104 -424
- package/lib/container.js +24 -34
- package/lib/date-picker.js +126 -1981
- package/lib/descriptions-item.js +1 -0
- package/lib/descriptions.js +1 -0
- package/lib/dialog.js +24 -137
- package/lib/divider.js +29 -64
- package/lib/drawer.js +24 -139
- package/lib/dropdown-item.js +27 -45
- package/lib/dropdown-menu.js +24 -51
- package/lib/dropdown.js +21 -20
- package/lib/empty.js +24 -61
- package/lib/footer.js +24 -34
- package/lib/form-item.js +42 -128
- package/lib/form.js +27 -40
- package/lib/header.js +24 -34
- package/lib/icon.js +24 -29
- package/lib/image.js +36 -220
- package/lib/index.js +1 -1
- package/lib/infinite-scroll.js +1 -0
- package/lib/input-number.js +30 -163
- package/lib/input.js +42 -274
- package/lib/iov-design.common.js +1635 -11132
- package/lib/link.js +31 -56
- package/lib/loading.js +24 -77
- package/lib/locale/format.js +10 -10
- package/lib/main.js +24 -29
- package/lib/menu-item-group.js +24 -40
- package/lib/menu-item.js +27 -83
- package/lib/menu.js +21 -20
- package/lib/message-box.js +24 -321
- package/lib/message.js +30 -82
- package/lib/mixins/migrating.js +20 -20
- package/lib/notification.js +24 -109
- package/lib/option-group.js +24 -50
- package/lib/option.js +27 -76
- package/lib/page-header.js +24 -56
- package/lib/pagination.js +24 -97
- package/lib/popconfirm.js +24 -97
- package/lib/popover.js +24 -89
- package/lib/progress.js +30 -133
- package/lib/radio-button.js +29 -111
- package/lib/radio-group.js +24 -39
- package/lib/radio.js +36 -152
- package/lib/rate.js +24 -94
- package/lib/result.js +72 -187
- package/lib/row.js +1 -0
- package/lib/scrollbar.js +1 -0
- package/lib/select.js +48 -637
- package/lib/skeleton-item.js +36 -68
- package/lib/skeleton.js +28 -70
- package/lib/slider.js +36 -267
- package/lib/spinner.js +24 -51
- package/lib/statistic.js +24 -76
- package/lib/step.js +29 -118
- package/lib/steps.js +27 -40
- package/lib/submenu.js +21 -20
- package/lib/switch.js +24 -130
- package/lib/tab-pane.js +24 -52
- package/lib/table-column.js +1 -0
- package/lib/table.js +93 -633
- package/lib/tabs.js +34 -49
- package/lib/tag.js +21 -20
- package/lib/theme-chalk/autocomplete.css +1 -1
- package/lib/theme-chalk/base.css +1 -1
- package/lib/theme-chalk/cascader.css +1 -1
- package/lib/theme-chalk/date-picker.css +1 -1
- package/lib/theme-chalk/index.css +1 -1
- package/lib/theme-chalk/input-number.css +1 -1
- package/lib/theme-chalk/input.css +1 -1
- package/lib/theme-chalk/iovfont.css +1 -1
- package/lib/theme-chalk/link.css +1 -1
- package/lib/theme-chalk/message-box.css +1 -1
- package/lib/theme-chalk/pagination.css +1 -1
- package/lib/theme-chalk/select.css +1 -1
- package/lib/theme-chalk/slider.css +1 -1
- package/lib/theme-chalk/time-picker.css +1 -1
- package/lib/theme-chalk/transfer.css +1 -1
- package/lib/time-picker.js +58 -820
- package/lib/time-select.js +42 -303
- package/lib/timeline-item.js +29 -75
- package/lib/timeline.js +21 -20
- package/lib/tooltip.js +1 -0
- package/lib/transfer.js +36 -299
- package/lib/tree.js +54 -243
- package/lib/upload.js +86 -654
- package/lib/utils/clickoutside.js +7 -7
- package/lib/utils/vue-popper.js +7 -7
- package/package.json +154 -154
- package/packages/autocomplete/src/autocomplete-suggestions.vue +76 -76
- package/packages/autocomplete/src/autocomplete.vue +285 -285
- package/packages/button/src/button.vue +90 -90
- package/packages/calendar/src/date-table.vue +200 -200
- package/packages/calendar/src/main.vue +280 -280
- package/packages/carousel/src/item.vue +138 -138
- package/packages/carousel/src/main.vue +315 -315
- package/packages/cascader/src/cascader.vue +776 -776
- package/packages/cascader-panel/src/cascader-menu.vue +138 -138
- package/packages/cascader-panel/src/cascader-node.vue +246 -246
- package/packages/cascader-panel/src/cascader-panel.vue +391 -391
- package/packages/cascader-panel/src/node.js +166 -166
- package/packages/cascader-panel/src/store.js +58 -58
- package/packages/checkbox/src/checkbox-button.vue +199 -199
- package/packages/checkbox/src/checkbox-group.vue +49 -49
- package/packages/checkbox/src/checkbox.vue +225 -225
- package/packages/collapse/src/collapse-item.vue +114 -114
- package/packages/color-picker/src/components/picker-dropdown.vue +121 -121
- package/packages/color-picker/src/main.vue +188 -188
- package/packages/date-picker/src/basic/date-table.vue +441 -441
- package/packages/date-picker/src/basic/month-table.vue +269 -269
- package/packages/date-picker/src/basic/time-spinner.vue +304 -304
- package/packages/date-picker/src/basic/year-table.vue +111 -111
- package/packages/date-picker/src/panel/date-range.vue +680 -680
- package/packages/date-picker/src/panel/date.vue +609 -609
- package/packages/date-picker/src/panel/month-range.vue +289 -289
- package/packages/date-picker/src/panel/time-range.vue +248 -248
- package/packages/date-picker/src/panel/time-select.vue +178 -178
- package/packages/date-picker/src/panel/time.vue +186 -186
- package/packages/date-picker/src/picker.vue +967 -967
- package/packages/descriptions/src/index.js +180 -180
- package/packages/dialog/src/component.vue +262 -262
- package/packages/drawer/src/main.vue +205 -205
- package/packages/dropdown/src/dropdown-item.vue +37 -37
- package/packages/dropdown/src/dropdown-menu.vue +63 -63
- package/packages/dropdown/src/dropdown.vue +293 -293
- package/packages/empty/src/index.vue +70 -70
- package/packages/form/src/form-item.vue +324 -324
- package/packages/form/src/form.vue +182 -182
- package/packages/image/src/image-viewer.vue +330 -330
- package/packages/image/src/main.vue +249 -249
- package/packages/infinite-scroll/src/main.js +150 -150
- package/packages/input/src/input.vue +477 -477
- package/packages/input-number/src/input-number.vue +283 -283
- package/packages/loading/src/directive.js +133 -133
- package/packages/loading/src/index.js +106 -106
- package/packages/menu/src/menu-item.vue +112 -112
- package/packages/menu/src/menu.vue +325 -325
- package/packages/menu/src/submenu.vue +349 -349
- package/packages/message/src/main.js +91 -91
- package/packages/message-box/src/main.js +216 -216
- package/packages/message-box/src/main.vue +333 -333
- package/packages/notification/src/main.js +94 -94
- package/packages/page-header/src/main.vue +30 -30
- package/packages/pagination/src/pagination.js +390 -390
- package/packages/popconfirm/src/main.vue +104 -104
- package/packages/popover/src/main.vue +239 -239
- package/packages/radio/src/radio-button.vue +115 -115
- package/packages/radio/src/radio-group.vue +115 -115
- package/packages/radio/src/radio.vue +148 -148
- package/packages/rate/src/main.vue +348 -348
- package/packages/scrollbar/src/bar.js +92 -92
- package/packages/scrollbar/src/main.js +130 -130
- package/packages/select/src/option-group.vue +60 -60
- package/packages/select/src/option.vue +171 -171
- package/packages/select/src/select-dropdown.vue +74 -74
- package/packages/select/src/select.vue +979 -979
- package/packages/slider/src/button.vue +238 -238
- package/packages/slider/src/main.vue +427 -427
- package/packages/statistic/src/main.vue +204 -204
- package/packages/steps/src/steps.vue +68 -68
- package/packages/switch/src/component.vue +182 -182
- package/packages/table/src/config.js +153 -153
- package/packages/table/src/filter-panel.vue +194 -194
- package/packages/table/src/store/current.js +76 -76
- package/packages/table/src/store/helper.js +41 -41
- package/packages/table/src/store/index.js +147 -147
- package/packages/table/src/store/watcher.js +502 -502
- package/packages/table/src/table-body.js +469 -469
- package/packages/table/src/table-column.js +328 -328
- package/packages/table/src/table-header.js +571 -571
- package/packages/table/src/table-layout.js +249 -249
- package/packages/table/src/table-row.js +101 -101
- package/packages/table/src/table.vue +740 -740
- package/packages/table/src/util.js +273 -273
- package/packages/tabs/src/tab-bar.vue +57 -57
- package/packages/tabs/src/tab-nav.vue +294 -294
- package/packages/tabs/src/tabs.vue +201 -201
- package/packages/theme-chalk/src/button.scss +416 -416
- package/packages/theme-chalk/src/cascader.scss +252 -252
- package/packages/theme-chalk/src/checkbox.scss +419 -419
- package/packages/theme-chalk/src/common/var.scss +795 -795
- package/packages/theme-chalk/src/form.scss +201 -201
- package/packages/theme-chalk/src/input.scss +591 -591
- package/packages/theme-chalk/src/iovfont.scss +818 -803
- package/packages/theme-chalk/src/link.scss +8 -8
- package/packages/theme-chalk/src/message-box.scss +207 -207
- package/packages/theme-chalk/src/mixins/_button.scss +136 -136
- package/packages/theme-chalk/src/mixins/mixins.scss +190 -190
- package/packages/theme-chalk/src/radio-button.scss +115 -115
- package/packages/theme-chalk/src/select.scss +270 -270
- package/packages/theme-chalk/src/tabs.scss +755 -755
- package/packages/theme-chalk/src/upload.scss +568 -568
- package/packages/tooltip/src/main.js +242 -242
- package/packages/transfer/src/main.vue +231 -231
- package/packages/transfer/src/transfer-panel.vue +251 -251
- package/packages/tree/src/model/node.js +484 -484
- package/packages/tree/src/tree-node.vue +279 -279
- package/packages/tree/src/tree.vue +496 -496
- package/packages/upload/src/index.vue +420 -420
- package/packages/upload/src/upload-file.vue +98 -98
- package/packages/upload/src/upload-list.vue +115 -115
- package/packages/upload/src/upload-picture.vue +98 -98
- package/packages/upload/src/upload.vue +231 -231
- package/packages/upload/src/utils.js +31 -31
- package/src/directives/repeat-click.js +26 -26
- package/src/index.js +259 -259
- package/src/locale/format.js +46 -46
- package/src/locale/index.js +48 -48
- package/src/locale/lang/lo-LA.js +126 -126
- package/src/mixins/locale.js +9 -9
- package/src/mixins/migrating.js +54 -54
- package/src/transitions/collapse-transition.js +77 -77
- package/src/utils/clickoutside.js +76 -76
- package/src/utils/date-util.js +282 -282
- package/src/utils/popup/index.js +218 -218
- package/src/utils/popup/popup-manager.js +194 -194
- package/src/utils/util.js +245 -245
- package/src/utils/vdom.js +5 -5
- package/src/utils/vue-popper.js +198 -198
|
@@ -41,13 +41,13 @@ function createDocumentHandler(el, binding, vnode) {
|
|
|
41
41
|
};
|
|
42
42
|
}
|
|
43
43
|
|
|
44
|
-
/**
|
|
45
|
-
* v-clickoutside
|
|
46
|
-
* @desc 点击元素外面才会触发的事件
|
|
47
|
-
* @example
|
|
48
|
-
* ```vue
|
|
49
|
-
* <div v-element-clickoutside="handleClose">
|
|
50
|
-
* ```
|
|
44
|
+
/**
|
|
45
|
+
* v-clickoutside
|
|
46
|
+
* @desc 点击元素外面才会触发的事件
|
|
47
|
+
* @example
|
|
48
|
+
* ```vue
|
|
49
|
+
* <div v-element-clickoutside="handleClose">
|
|
50
|
+
* ```
|
|
51
51
|
*/
|
|
52
52
|
exports.default = {
|
|
53
53
|
bind: function bind(el, binding, vnode) {
|
package/lib/utils/vue-popper.js
CHANGED
|
@@ -15,13 +15,13 @@ var stop = function stop(e) {
|
|
|
15
15
|
return e.stopPropagation();
|
|
16
16
|
};
|
|
17
17
|
|
|
18
|
-
/**
|
|
19
|
-
* @param {HTMLElement} [reference=$refs.reference] - The reference element used to position the popper.
|
|
20
|
-
* @param {HTMLElement} [popper=$refs.popper] - The HTML element used as popper, or a configuration used to generate the popper.
|
|
21
|
-
* @param {String} [placement=button] - Placement of the popper accepted values: top(-start, -end), right(-start, -end), bottom(-start, -end), left(-start, -end)
|
|
22
|
-
* @param {Number} [offset=0] - Amount of pixels the popper will be shifted (can be negative).
|
|
23
|
-
* @param {Boolean} [visible=false] Visibility of the popup element.
|
|
24
|
-
* @param {Boolean} [visible-arrow=false] Visibility of the arrow, no style.
|
|
18
|
+
/**
|
|
19
|
+
* @param {HTMLElement} [reference=$refs.reference] - The reference element used to position the popper.
|
|
20
|
+
* @param {HTMLElement} [popper=$refs.popper] - The HTML element used as popper, or a configuration used to generate the popper.
|
|
21
|
+
* @param {String} [placement=button] - Placement of the popper accepted values: top(-start, -end), right(-start, -end), bottom(-start, -end), left(-start, -end)
|
|
22
|
+
* @param {Number} [offset=0] - Amount of pixels the popper will be shifted (can be negative).
|
|
23
|
+
* @param {Boolean} [visible=false] Visibility of the popup element.
|
|
24
|
+
* @param {Boolean} [visible-arrow=false] Visibility of the arrow, no style.
|
|
25
25
|
*/
|
|
26
26
|
exports.default = {
|
|
27
27
|
props: {
|
package/package.json
CHANGED
|
@@ -1,154 +1,154 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "iov-design",
|
|
3
|
-
"version": "2.15.
|
|
4
|
-
"description": "A Component Library for Vue.js.",
|
|
5
|
-
"main": "lib/iov-design.common.js",
|
|
6
|
-
"files": [
|
|
7
|
-
"lib",
|
|
8
|
-
"src",
|
|
9
|
-
"packages",
|
|
10
|
-
"types",
|
|
11
|
-
"web-types.json"
|
|
12
|
-
],
|
|
13
|
-
"typings": "types/index.d.ts",
|
|
14
|
-
"scripts": {
|
|
15
|
-
"fnm:env": "fnm env --use-on-cd | Out-String | Invoke-Expression",
|
|
16
|
-
"fnm:use": "fnm use --install-if-missing 8",
|
|
17
|
-
"bootstrap": "yarn || npm i",
|
|
18
|
-
"build:file": "node build/bin/iconInit.js & node build/bin/build-entry.js & node build/bin/i18n.js & node build/bin/version.js",
|
|
19
|
-
"build:theme": "node build/bin/gen-cssfile && gulp build --gulpfile packages/theme-chalk/gulpfile.js && cp-cli packages/theme-chalk/lib lib/theme-chalk",
|
|
20
|
-
"build:utils": "cross-env BABEL_ENV=utils babel src --out-dir lib --ignore src/index.js",
|
|
21
|
-
"build:umd": "node build/bin/build-locale.js",
|
|
22
|
-
"clean": "rimraf lib && rimraf packages/*/lib && rimraf test/**/coverage",
|
|
23
|
-
"deploy:build": "npm run build:file && cross-env NODE_ENV=production webpack --config build/webpack.demo.js && echo element.eleme.io>>examples/iov-design/CNAME",
|
|
24
|
-
"deploy:extension": "cross-env NODE_ENV=production webpack --config build/webpack.extension.js",
|
|
25
|
-
"dev:extension": "rimraf examples/extension/dist && cross-env NODE_ENV=development webpack --watch --config build/webpack.extension.js",
|
|
26
|
-
"dev": "npm run bootstrap && npm run build:file && cross-env NODE_ENV=development webpack-dev-server --config build/webpack.demo.js & node build/bin/template.js",
|
|
27
|
-
"dev:play": "npm run build:file && cross-env NODE_ENV=development PLAY_ENV=true webpack-dev-server --config build/webpack.demo.js",
|
|
28
|
-
"dist": "npm run clean && npm run build:file && npm run lint && webpack --config build/webpack.conf.js && webpack --config build/webpack.common.js && webpack --config build/webpack.component.js && npm run build:utils && npm run build:umd && npm run build:theme",
|
|
29
|
-
"i18n": "node build/bin/i18n.js",
|
|
30
|
-
"lint": "eslint src/**/* test/**/* packages/**/* build/**/* --quiet",
|
|
31
|
-
"pub": "npm run bootstrap && sh build/git-release.sh && sh build/release.sh && node build/bin/gen-indices.js",
|
|
32
|
-
"test": "npm run lint && npm run build:theme && cross-env CI_ENV=/dev/ BABEL_ENV=test karma start test/unit/karma.conf.js --single-run",
|
|
33
|
-
"test:watch": "npm run build:theme && cross-env BABEL_ENV=test karma start test/unit/karma.conf.js"
|
|
34
|
-
},
|
|
35
|
-
"faas": [
|
|
36
|
-
{
|
|
37
|
-
"domain": "element",
|
|
38
|
-
"public": "temp_web/element"
|
|
39
|
-
},
|
|
40
|
-
{
|
|
41
|
-
"domain": "element-theme",
|
|
42
|
-
"public": "examples/iov-design",
|
|
43
|
-
"build": [
|
|
44
|
-
"yarn",
|
|
45
|
-
"npm run deploy:build"
|
|
46
|
-
]
|
|
47
|
-
}
|
|
48
|
-
],
|
|
49
|
-
"repository": {
|
|
50
|
-
"type": "git",
|
|
51
|
-
"url": "git@github.com:ElemeFE/element.git"
|
|
52
|
-
},
|
|
53
|
-
"homepage": "http://element.eleme.io",
|
|
54
|
-
"keywords": [
|
|
55
|
-
"eleme",
|
|
56
|
-
"vue",
|
|
57
|
-
"components"
|
|
58
|
-
],
|
|
59
|
-
"license": "MIT",
|
|
60
|
-
"bugs": {
|
|
61
|
-
"url": "https://github.com/ElemeFE/element/issues"
|
|
62
|
-
},
|
|
63
|
-
"unpkg": "lib/index.js",
|
|
64
|
-
"style": "lib/theme-chalk/index.css",
|
|
65
|
-
"web-types": "./web-types.json",
|
|
66
|
-
"dependencies": {
|
|
67
|
-
"@arco-design/color": "^0.4.0",
|
|
68
|
-
"async-validator": "~1.8.1",
|
|
69
|
-
"babel-helper-vue-jsx-merge-props": "^2.0.0",
|
|
70
|
-
"deepmerge": "^1.2.0",
|
|
71
|
-
"normalize-wheel": "^1.0.1",
|
|
72
|
-
"resize-observer-polyfill": "^1.5.0",
|
|
73
|
-
"throttle-debounce": "^1.0.1"
|
|
74
|
-
},
|
|
75
|
-
"peerDependencies": {
|
|
76
|
-
"vue": "^2.5.17"
|
|
77
|
-
},
|
|
78
|
-
"devDependencies": {
|
|
79
|
-
"@vue/component-compiler-utils": "^2.6.0",
|
|
80
|
-
"algoliasearch": "^3.24.5",
|
|
81
|
-
"babel-cli": "^6.26.0",
|
|
82
|
-
"babel-core": "^6.26.3",
|
|
83
|
-
"babel-loader": "^7.1.5",
|
|
84
|
-
"babel-plugin-add-module-exports": "^0.2.1",
|
|
85
|
-
"babel-plugin-istanbul": "^4.1.1",
|
|
86
|
-
"babel-plugin-module-resolver": "^2.2.0",
|
|
87
|
-
"babel-plugin-syntax-jsx": "^6.18.0",
|
|
88
|
-
"babel-plugin-transform-vue-jsx": "^3.7.0",
|
|
89
|
-
"babel-preset-env": "^1.7.0",
|
|
90
|
-
"babel-preset-stage-2": "^6.24.1",
|
|
91
|
-
"babel-regenerator-runtime": "^6.5.0",
|
|
92
|
-
"chai": "^4.2.0",
|
|
93
|
-
"chokidar": "^1.7.0",
|
|
94
|
-
"copy-webpack-plugin": "^5.0.0",
|
|
95
|
-
"coveralls": "^3.0.3",
|
|
96
|
-
"cp-cli": "^1.0.2",
|
|
97
|
-
"cross-env": "^3.1.3",
|
|
98
|
-
"css-loader": "^2.1.0",
|
|
99
|
-
"es6-promise": "^4.0.5",
|
|
100
|
-
"eslint": "4.18.2",
|
|
101
|
-
"eslint-config-elemefe": "0.1.1",
|
|
102
|
-
"eslint-loader": "^2.0.0",
|
|
103
|
-
"eslint-plugin-html": "^4.0.1",
|
|
104
|
-
"eslint-plugin-json": "^1.2.0",
|
|
105
|
-
"file-loader": "^1.1.11",
|
|
106
|
-
"file-save": "^0.2.0",
|
|
107
|
-
"gulp": "^4.0.0",
|
|
108
|
-
"gulp-autoprefixer": "^6.0.0",
|
|
109
|
-
"gulp-cssmin": "^0.2.0",
|
|
110
|
-
"gulp-sass": "^4.0.2",
|
|
111
|
-
"highlight.js": "^9.3.0",
|
|
112
|
-
"html-webpack-plugin": "^3.2.0",
|
|
113
|
-
"json-loader": "^0.5.7",
|
|
114
|
-
"json-templater": "^1.0.4",
|
|
115
|
-
"karma": "^4.0.1",
|
|
116
|
-
"karma-chrome-launcher": "^2.2.0",
|
|
117
|
-
"karma-coverage": "^1.1.2",
|
|
118
|
-
"karma-mocha": "^1.3.0",
|
|
119
|
-
"karma-sinon-chai": "^2.0.2",
|
|
120
|
-
"karma-sourcemap-loader": "^0.3.7",
|
|
121
|
-
"karma-spec-reporter": "^0.0.32",
|
|
122
|
-
"karma-webpack": "^3.0.5",
|
|
123
|
-
"launch-editor-middleware": "^2.3.0",
|
|
124
|
-
"markdown-it": "^8.4.1",
|
|
125
|
-
"markdown-it-anchor": "^5.0.2",
|
|
126
|
-
"markdown-it-chain": "^1.3.0",
|
|
127
|
-
"markdown-it-container": "^2.0.0",
|
|
128
|
-
"mini-css-extract-plugin": "^0.4.1",
|
|
129
|
-
"mocha": "^6.0.2",
|
|
130
|
-
"node-sass": "^4.11.0",
|
|
131
|
-
"optimize-css-assets-webpack-plugin": "^5.0.1",
|
|
132
|
-
"postcss": "^7.0.14",
|
|
133
|
-
"progress-bar-webpack-plugin": "^1.11.0",
|
|
134
|
-
"rimraf": "^2.5.4",
|
|
135
|
-
"sass-loader": "^7.1.0",
|
|
136
|
-
"select-version-cli": "^0.0.2",
|
|
137
|
-
"sinon": "^7.2.7",
|
|
138
|
-
"sinon-chai": "^3.3.0",
|
|
139
|
-
"style-loader": "^0.23.1",
|
|
140
|
-
"transliteration": "^1.1.11",
|
|
141
|
-
"uglifyjs-webpack-plugin": "^2.1.1",
|
|
142
|
-
"uppercamelcase": "^1.1.0",
|
|
143
|
-
"url-loader": "^1.0.1",
|
|
144
|
-
"vue": "2.5.21",
|
|
145
|
-
"vue-loader": "^15.7.0",
|
|
146
|
-
"vue-router": "^3.0.1",
|
|
147
|
-
"vue-template-compiler": "2.5.21",
|
|
148
|
-
"vue-template-es2015-compiler": "^1.6.0",
|
|
149
|
-
"webpack": "^4.14.0",
|
|
150
|
-
"webpack-cli": "^3.0.8",
|
|
151
|
-
"webpack-dev-server": "^3.1.11",
|
|
152
|
-
"webpack-node-externals": "^1.7.2"
|
|
153
|
-
}
|
|
154
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "iov-design",
|
|
3
|
+
"version": "2.15.62",
|
|
4
|
+
"description": "A Component Library for Vue.js.",
|
|
5
|
+
"main": "lib/iov-design.common.js",
|
|
6
|
+
"files": [
|
|
7
|
+
"lib",
|
|
8
|
+
"src",
|
|
9
|
+
"packages",
|
|
10
|
+
"types",
|
|
11
|
+
"web-types.json"
|
|
12
|
+
],
|
|
13
|
+
"typings": "types/index.d.ts",
|
|
14
|
+
"scripts": {
|
|
15
|
+
"fnm:env": "fnm env --use-on-cd | Out-String | Invoke-Expression",
|
|
16
|
+
"fnm:use": "fnm use --install-if-missing 8",
|
|
17
|
+
"bootstrap": "yarn || npm i",
|
|
18
|
+
"build:file": "node build/bin/iconInit.js & node build/bin/build-entry.js & node build/bin/i18n.js & node build/bin/version.js",
|
|
19
|
+
"build:theme": "node build/bin/gen-cssfile && gulp build --gulpfile packages/theme-chalk/gulpfile.js && cp-cli packages/theme-chalk/lib lib/theme-chalk",
|
|
20
|
+
"build:utils": "cross-env BABEL_ENV=utils babel src --out-dir lib --ignore src/index.js",
|
|
21
|
+
"build:umd": "node build/bin/build-locale.js",
|
|
22
|
+
"clean": "rimraf lib && rimraf packages/*/lib && rimraf test/**/coverage",
|
|
23
|
+
"deploy:build": "npm run build:file && cross-env NODE_ENV=production webpack --config build/webpack.demo.js && echo element.eleme.io>>examples/iov-design/CNAME",
|
|
24
|
+
"deploy:extension": "cross-env NODE_ENV=production webpack --config build/webpack.extension.js",
|
|
25
|
+
"dev:extension": "rimraf examples/extension/dist && cross-env NODE_ENV=development webpack --watch --config build/webpack.extension.js",
|
|
26
|
+
"dev": "npm run bootstrap && npm run build:file && cross-env NODE_ENV=development webpack-dev-server --config build/webpack.demo.js & node build/bin/template.js",
|
|
27
|
+
"dev:play": "npm run build:file && cross-env NODE_ENV=development PLAY_ENV=true webpack-dev-server --config build/webpack.demo.js",
|
|
28
|
+
"dist": "npm run clean && npm run build:file && npm run lint && webpack --config build/webpack.conf.js && webpack --config build/webpack.common.js && webpack --config build/webpack.component.js && npm run build:utils && npm run build:umd && npm run build:theme",
|
|
29
|
+
"i18n": "node build/bin/i18n.js",
|
|
30
|
+
"lint": "eslint src/**/* test/**/* packages/**/* build/**/* --quiet",
|
|
31
|
+
"pub": "npm run bootstrap && sh build/git-release.sh && sh build/release.sh && node build/bin/gen-indices.js",
|
|
32
|
+
"test": "npm run lint && npm run build:theme && cross-env CI_ENV=/dev/ BABEL_ENV=test karma start test/unit/karma.conf.js --single-run",
|
|
33
|
+
"test:watch": "npm run build:theme && cross-env BABEL_ENV=test karma start test/unit/karma.conf.js"
|
|
34
|
+
},
|
|
35
|
+
"faas": [
|
|
36
|
+
{
|
|
37
|
+
"domain": "element",
|
|
38
|
+
"public": "temp_web/element"
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"domain": "element-theme",
|
|
42
|
+
"public": "examples/iov-design",
|
|
43
|
+
"build": [
|
|
44
|
+
"yarn",
|
|
45
|
+
"npm run deploy:build"
|
|
46
|
+
]
|
|
47
|
+
}
|
|
48
|
+
],
|
|
49
|
+
"repository": {
|
|
50
|
+
"type": "git",
|
|
51
|
+
"url": "git@github.com:ElemeFE/element.git"
|
|
52
|
+
},
|
|
53
|
+
"homepage": "http://element.eleme.io",
|
|
54
|
+
"keywords": [
|
|
55
|
+
"eleme",
|
|
56
|
+
"vue",
|
|
57
|
+
"components"
|
|
58
|
+
],
|
|
59
|
+
"license": "MIT",
|
|
60
|
+
"bugs": {
|
|
61
|
+
"url": "https://github.com/ElemeFE/element/issues"
|
|
62
|
+
},
|
|
63
|
+
"unpkg": "lib/index.js",
|
|
64
|
+
"style": "lib/theme-chalk/index.css",
|
|
65
|
+
"web-types": "./web-types.json",
|
|
66
|
+
"dependencies": {
|
|
67
|
+
"@arco-design/color": "^0.4.0",
|
|
68
|
+
"async-validator": "~1.8.1",
|
|
69
|
+
"babel-helper-vue-jsx-merge-props": "^2.0.0",
|
|
70
|
+
"deepmerge": "^1.2.0",
|
|
71
|
+
"normalize-wheel": "^1.0.1",
|
|
72
|
+
"resize-observer-polyfill": "^1.5.0",
|
|
73
|
+
"throttle-debounce": "^1.0.1"
|
|
74
|
+
},
|
|
75
|
+
"peerDependencies": {
|
|
76
|
+
"vue": "^2.5.17"
|
|
77
|
+
},
|
|
78
|
+
"devDependencies": {
|
|
79
|
+
"@vue/component-compiler-utils": "^2.6.0",
|
|
80
|
+
"algoliasearch": "^3.24.5",
|
|
81
|
+
"babel-cli": "^6.26.0",
|
|
82
|
+
"babel-core": "^6.26.3",
|
|
83
|
+
"babel-loader": "^7.1.5",
|
|
84
|
+
"babel-plugin-add-module-exports": "^0.2.1",
|
|
85
|
+
"babel-plugin-istanbul": "^4.1.1",
|
|
86
|
+
"babel-plugin-module-resolver": "^2.2.0",
|
|
87
|
+
"babel-plugin-syntax-jsx": "^6.18.0",
|
|
88
|
+
"babel-plugin-transform-vue-jsx": "^3.7.0",
|
|
89
|
+
"babel-preset-env": "^1.7.0",
|
|
90
|
+
"babel-preset-stage-2": "^6.24.1",
|
|
91
|
+
"babel-regenerator-runtime": "^6.5.0",
|
|
92
|
+
"chai": "^4.2.0",
|
|
93
|
+
"chokidar": "^1.7.0",
|
|
94
|
+
"copy-webpack-plugin": "^5.0.0",
|
|
95
|
+
"coveralls": "^3.0.3",
|
|
96
|
+
"cp-cli": "^1.0.2",
|
|
97
|
+
"cross-env": "^3.1.3",
|
|
98
|
+
"css-loader": "^2.1.0",
|
|
99
|
+
"es6-promise": "^4.0.5",
|
|
100
|
+
"eslint": "4.18.2",
|
|
101
|
+
"eslint-config-elemefe": "0.1.1",
|
|
102
|
+
"eslint-loader": "^2.0.0",
|
|
103
|
+
"eslint-plugin-html": "^4.0.1",
|
|
104
|
+
"eslint-plugin-json": "^1.2.0",
|
|
105
|
+
"file-loader": "^1.1.11",
|
|
106
|
+
"file-save": "^0.2.0",
|
|
107
|
+
"gulp": "^4.0.0",
|
|
108
|
+
"gulp-autoprefixer": "^6.0.0",
|
|
109
|
+
"gulp-cssmin": "^0.2.0",
|
|
110
|
+
"gulp-sass": "^4.0.2",
|
|
111
|
+
"highlight.js": "^9.3.0",
|
|
112
|
+
"html-webpack-plugin": "^3.2.0",
|
|
113
|
+
"json-loader": "^0.5.7",
|
|
114
|
+
"json-templater": "^1.0.4",
|
|
115
|
+
"karma": "^4.0.1",
|
|
116
|
+
"karma-chrome-launcher": "^2.2.0",
|
|
117
|
+
"karma-coverage": "^1.1.2",
|
|
118
|
+
"karma-mocha": "^1.3.0",
|
|
119
|
+
"karma-sinon-chai": "^2.0.2",
|
|
120
|
+
"karma-sourcemap-loader": "^0.3.7",
|
|
121
|
+
"karma-spec-reporter": "^0.0.32",
|
|
122
|
+
"karma-webpack": "^3.0.5",
|
|
123
|
+
"launch-editor-middleware": "^2.3.0",
|
|
124
|
+
"markdown-it": "^8.4.1",
|
|
125
|
+
"markdown-it-anchor": "^5.0.2",
|
|
126
|
+
"markdown-it-chain": "^1.3.0",
|
|
127
|
+
"markdown-it-container": "^2.0.0",
|
|
128
|
+
"mini-css-extract-plugin": "^0.4.1",
|
|
129
|
+
"mocha": "^6.0.2",
|
|
130
|
+
"node-sass": "^4.11.0",
|
|
131
|
+
"optimize-css-assets-webpack-plugin": "^5.0.1",
|
|
132
|
+
"postcss": "^7.0.14",
|
|
133
|
+
"progress-bar-webpack-plugin": "^1.11.0",
|
|
134
|
+
"rimraf": "^2.5.4",
|
|
135
|
+
"sass-loader": "^7.1.0",
|
|
136
|
+
"select-version-cli": "^0.0.2",
|
|
137
|
+
"sinon": "^7.2.7",
|
|
138
|
+
"sinon-chai": "^3.3.0",
|
|
139
|
+
"style-loader": "^0.23.1",
|
|
140
|
+
"transliteration": "^1.1.11",
|
|
141
|
+
"uglifyjs-webpack-plugin": "^2.1.1",
|
|
142
|
+
"uppercamelcase": "^1.1.0",
|
|
143
|
+
"url-loader": "^1.0.1",
|
|
144
|
+
"vue": "2.5.21",
|
|
145
|
+
"vue-loader": "^15.7.0",
|
|
146
|
+
"vue-router": "^3.0.1",
|
|
147
|
+
"vue-template-compiler": "2.5.21",
|
|
148
|
+
"vue-template-es2015-compiler": "^1.6.0",
|
|
149
|
+
"webpack": "^4.14.0",
|
|
150
|
+
"webpack-cli": "^3.0.8",
|
|
151
|
+
"webpack-dev-server": "^3.1.11",
|
|
152
|
+
"webpack-node-externals": "^1.7.2"
|
|
153
|
+
}
|
|
154
|
+
}
|
|
@@ -1,76 +1,76 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<transition name="el-zoom-in-top" @after-leave="doDestroy">
|
|
3
|
-
<div
|
|
4
|
-
v-show="showPopper"
|
|
5
|
-
class="el-autocomplete-suggestion el-popper"
|
|
6
|
-
:class="{ 'is-loading': !parent.hideLoading && parent.loading }"
|
|
7
|
-
:style="{ width: dropdownWidth }"
|
|
8
|
-
role="region">
|
|
9
|
-
<el-scrollbar
|
|
10
|
-
tag="ul"
|
|
11
|
-
wrap-class="el-autocomplete-suggestion__wrap"
|
|
12
|
-
view-class="el-autocomplete-suggestion__list">
|
|
13
|
-
<li v-if="!parent.hideLoading && parent.loading"><i class="el-icon-loading"></i></li>
|
|
14
|
-
<slot v-else>
|
|
15
|
-
</slot>
|
|
16
|
-
</el-scrollbar>
|
|
17
|
-
</div>
|
|
18
|
-
</transition>
|
|
19
|
-
</template>
|
|
20
|
-
<script>
|
|
21
|
-
import Popper from 'iov-design/src/utils/vue-popper';
|
|
22
|
-
import Emitter from 'iov-design/src/mixins/emitter';
|
|
23
|
-
import ElScrollbar from 'iov-design/packages/scrollbar';
|
|
24
|
-
|
|
25
|
-
export default {
|
|
26
|
-
components: { ElScrollbar },
|
|
27
|
-
mixins: [Popper, Emitter],
|
|
28
|
-
|
|
29
|
-
componentName: 'ElAutocompleteSuggestions',
|
|
30
|
-
|
|
31
|
-
data() {
|
|
32
|
-
return {
|
|
33
|
-
parent: this.$parent,
|
|
34
|
-
dropdownWidth: ''
|
|
35
|
-
};
|
|
36
|
-
},
|
|
37
|
-
|
|
38
|
-
props: {
|
|
39
|
-
options: {
|
|
40
|
-
default() {
|
|
41
|
-
return {
|
|
42
|
-
gpuAcceleration: false
|
|
43
|
-
};
|
|
44
|
-
}
|
|
45
|
-
},
|
|
46
|
-
id: String
|
|
47
|
-
},
|
|
48
|
-
|
|
49
|
-
methods: {
|
|
50
|
-
select(item) {
|
|
51
|
-
this.dispatch('ElAutocomplete', 'item-click', item);
|
|
52
|
-
}
|
|
53
|
-
},
|
|
54
|
-
|
|
55
|
-
updated() {
|
|
56
|
-
this.$nextTick(_ => {
|
|
57
|
-
this.popperJS && this.updatePopper();
|
|
58
|
-
});
|
|
59
|
-
},
|
|
60
|
-
|
|
61
|
-
mounted() {
|
|
62
|
-
this.$parent.popperElm = this.popperElm = this.$el;
|
|
63
|
-
this.referenceElm = this.$parent.$refs.input.$refs.input || this.$parent.$refs.input.$refs.textarea;
|
|
64
|
-
this.referenceList = this.$el.querySelector('.el-autocomplete-suggestion__list');
|
|
65
|
-
this.referenceList.setAttribute('role', 'listbox');
|
|
66
|
-
this.referenceList.setAttribute('id', this.id);
|
|
67
|
-
},
|
|
68
|
-
|
|
69
|
-
created() {
|
|
70
|
-
this.$on('visible', (val, inputWidth) => {
|
|
71
|
-
this.dropdownWidth = inputWidth + 'px';
|
|
72
|
-
this.showPopper = val;
|
|
73
|
-
});
|
|
74
|
-
}
|
|
75
|
-
};
|
|
76
|
-
</script>
|
|
1
|
+
<template>
|
|
2
|
+
<transition name="el-zoom-in-top" @after-leave="doDestroy">
|
|
3
|
+
<div
|
|
4
|
+
v-show="showPopper"
|
|
5
|
+
class="el-autocomplete-suggestion el-popper"
|
|
6
|
+
:class="{ 'is-loading': !parent.hideLoading && parent.loading }"
|
|
7
|
+
:style="{ width: dropdownWidth }"
|
|
8
|
+
role="region">
|
|
9
|
+
<el-scrollbar
|
|
10
|
+
tag="ul"
|
|
11
|
+
wrap-class="el-autocomplete-suggestion__wrap"
|
|
12
|
+
view-class="el-autocomplete-suggestion__list">
|
|
13
|
+
<li v-if="!parent.hideLoading && parent.loading"><i class="el-icon-loading"></i></li>
|
|
14
|
+
<slot v-else>
|
|
15
|
+
</slot>
|
|
16
|
+
</el-scrollbar>
|
|
17
|
+
</div>
|
|
18
|
+
</transition>
|
|
19
|
+
</template>
|
|
20
|
+
<script>
|
|
21
|
+
import Popper from 'iov-design/src/utils/vue-popper';
|
|
22
|
+
import Emitter from 'iov-design/src/mixins/emitter';
|
|
23
|
+
import ElScrollbar from 'iov-design/packages/scrollbar';
|
|
24
|
+
|
|
25
|
+
export default {
|
|
26
|
+
components: { ElScrollbar },
|
|
27
|
+
mixins: [Popper, Emitter],
|
|
28
|
+
|
|
29
|
+
componentName: 'ElAutocompleteSuggestions',
|
|
30
|
+
|
|
31
|
+
data() {
|
|
32
|
+
return {
|
|
33
|
+
parent: this.$parent,
|
|
34
|
+
dropdownWidth: ''
|
|
35
|
+
};
|
|
36
|
+
},
|
|
37
|
+
|
|
38
|
+
props: {
|
|
39
|
+
options: {
|
|
40
|
+
default() {
|
|
41
|
+
return {
|
|
42
|
+
gpuAcceleration: false
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
id: String
|
|
47
|
+
},
|
|
48
|
+
|
|
49
|
+
methods: {
|
|
50
|
+
select(item) {
|
|
51
|
+
this.dispatch('ElAutocomplete', 'item-click', item);
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
|
|
55
|
+
updated() {
|
|
56
|
+
this.$nextTick(_ => {
|
|
57
|
+
this.popperJS && this.updatePopper();
|
|
58
|
+
});
|
|
59
|
+
},
|
|
60
|
+
|
|
61
|
+
mounted() {
|
|
62
|
+
this.$parent.popperElm = this.popperElm = this.$el;
|
|
63
|
+
this.referenceElm = this.$parent.$refs.input.$refs.input || this.$parent.$refs.input.$refs.textarea;
|
|
64
|
+
this.referenceList = this.$el.querySelector('.el-autocomplete-suggestion__list');
|
|
65
|
+
this.referenceList.setAttribute('role', 'listbox');
|
|
66
|
+
this.referenceList.setAttribute('id', this.id);
|
|
67
|
+
},
|
|
68
|
+
|
|
69
|
+
created() {
|
|
70
|
+
this.$on('visible', (val, inputWidth) => {
|
|
71
|
+
this.dropdownWidth = inputWidth + 'px';
|
|
72
|
+
this.showPopper = val;
|
|
73
|
+
});
|
|
74
|
+
}
|
|
75
|
+
};
|
|
76
|
+
</script>
|