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
package/lib/card.js
CHANGED
|
@@ -98,20 +98,19 @@ module.exports =
|
|
|
98
98
|
// This module is a runtime utility for cleaner component module output and will
|
|
99
99
|
// be included in the final webpack user bundle.
|
|
100
100
|
|
|
101
|
-
function normalizeComponent
|
|
101
|
+
function normalizeComponent(
|
|
102
102
|
scriptExports,
|
|
103
103
|
render,
|
|
104
104
|
staticRenderFns,
|
|
105
105
|
functionalTemplate,
|
|
106
106
|
injectStyles,
|
|
107
107
|
scopeId,
|
|
108
|
-
moduleIdentifier
|
|
108
|
+
moduleIdentifier /* server only */,
|
|
109
109
|
shadowMode /* vue-cli only */
|
|
110
110
|
) {
|
|
111
111
|
// Vue.extend constructor export interop
|
|
112
|
-
var options =
|
|
113
|
-
? scriptExports.options
|
|
114
|
-
: scriptExports
|
|
112
|
+
var options =
|
|
113
|
+
typeof scriptExports === 'function' ? scriptExports.options : scriptExports
|
|
115
114
|
|
|
116
115
|
// render functions
|
|
117
116
|
if (render) {
|
|
@@ -131,7 +130,8 @@ function normalizeComponent (
|
|
|
131
130
|
}
|
|
132
131
|
|
|
133
132
|
var hook
|
|
134
|
-
if (moduleIdentifier) {
|
|
133
|
+
if (moduleIdentifier) {
|
|
134
|
+
// server build
|
|
135
135
|
hook = function (context) {
|
|
136
136
|
// 2.3 injection
|
|
137
137
|
context =
|
|
@@ -156,7 +156,12 @@ function normalizeComponent (
|
|
|
156
156
|
options._ssrRegister = hook
|
|
157
157
|
} else if (injectStyles) {
|
|
158
158
|
hook = shadowMode
|
|
159
|
-
? function () {
|
|
159
|
+
? function () {
|
|
160
|
+
injectStyles.call(
|
|
161
|
+
this,
|
|
162
|
+
(options.functional ? this.parent : this).$root.$options.shadowRoot
|
|
163
|
+
)
|
|
164
|
+
}
|
|
160
165
|
: injectStyles
|
|
161
166
|
}
|
|
162
167
|
|
|
@@ -165,18 +170,16 @@ function normalizeComponent (
|
|
|
165
170
|
// for template-only hot-reload because in that case the render fn doesn't
|
|
166
171
|
// go through the normalizer
|
|
167
172
|
options._injectStyles = hook
|
|
168
|
-
// register for
|
|
173
|
+
// register for functional component in vue file
|
|
169
174
|
var originalRender = options.render
|
|
170
|
-
options.render = function renderWithStyleInjection
|
|
175
|
+
options.render = function renderWithStyleInjection(h, context) {
|
|
171
176
|
hook.call(context)
|
|
172
177
|
return originalRender(h, context)
|
|
173
178
|
}
|
|
174
179
|
} else {
|
|
175
180
|
// inject component registration as beforeCreate hook
|
|
176
181
|
var existing = options.beforeCreate
|
|
177
|
-
options.beforeCreate = existing
|
|
178
|
-
? [].concat(existing, hook)
|
|
179
|
-
: [hook]
|
|
182
|
+
options.beforeCreate = existing ? [].concat(existing, hook) : [hook]
|
|
180
183
|
}
|
|
181
184
|
}
|
|
182
185
|
|
|
@@ -193,44 +196,17 @@ function normalizeComponent (
|
|
|
193
196
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
194
197
|
|
|
195
198
|
"use strict";
|
|
199
|
+
// ESM COMPAT FLAG
|
|
196
200
|
__webpack_require__.r(__webpack_exports__);
|
|
197
201
|
|
|
198
|
-
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/card/src/main.vue?vue&type=template&id=
|
|
199
|
-
var render = function() {
|
|
200
|
-
var _vm = this
|
|
201
|
-
var _h = _vm.$createElement
|
|
202
|
-
var _c = _vm._self._c || _h
|
|
203
|
-
return _c(
|
|
204
|
-
"div",
|
|
205
|
-
{
|
|
206
|
-
staticClass: "el-card",
|
|
207
|
-
class: _vm.shadow ? "is-" + _vm.shadow + "-shadow" : "is-always-shadow"
|
|
208
|
-
},
|
|
209
|
-
[
|
|
210
|
-
_vm.$slots.header || _vm.header
|
|
211
|
-
? _c(
|
|
212
|
-
"div",
|
|
213
|
-
{ staticClass: "el-card__header" },
|
|
214
|
-
[_vm._t("header", [_vm._v(_vm._s(_vm.header))])],
|
|
215
|
-
2
|
|
216
|
-
)
|
|
217
|
-
: _vm._e(),
|
|
218
|
-
_c(
|
|
219
|
-
"div",
|
|
220
|
-
{ staticClass: "el-card__body", style: _vm.bodyStyle },
|
|
221
|
-
[_vm._t("default")],
|
|
222
|
-
2
|
|
223
|
-
)
|
|
224
|
-
]
|
|
225
|
-
)
|
|
226
|
-
}
|
|
202
|
+
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/card/src/main.vue?vue&type=template&id=5b6da1dd
|
|
203
|
+
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"el-card",class:_vm.shadow ? 'is-' + _vm.shadow + '-shadow' : 'is-always-shadow'},[(_vm.$slots.header || _vm.header)?_c('div',{staticClass:"el-card__header"},[_vm._t("header",[_vm._v(_vm._s(_vm.header))])],2):_vm._e(),_c('div',{staticClass:"el-card__body",style:(_vm.bodyStyle)},[_vm._t("default")],2)])}
|
|
227
204
|
var staticRenderFns = []
|
|
228
205
|
render._withStripped = true
|
|
229
206
|
|
|
207
|
+
// CONCATENATED MODULE: ./packages/card/src/main.vue?vue&type=template&id=5b6da1dd
|
|
230
208
|
|
|
231
|
-
// CONCATENATED MODULE: ./packages/card/src/main.vue?vue&type=
|
|
232
|
-
|
|
233
|
-
// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/card/src/main.vue?vue&type=script&lang=js&
|
|
209
|
+
// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/card/src/main.vue?vue&type=script&lang=js
|
|
234
210
|
//
|
|
235
211
|
//
|
|
236
212
|
//
|
|
@@ -243,7 +219,7 @@ render._withStripped = true
|
|
|
243
219
|
//
|
|
244
220
|
//
|
|
245
221
|
|
|
246
|
-
/* harmony default export */ var
|
|
222
|
+
/* harmony default export */ var mainvue_type_script_lang_js = ({
|
|
247
223
|
name: 'ElCard',
|
|
248
224
|
props: {
|
|
249
225
|
header: {},
|
|
@@ -253,8 +229,8 @@ render._withStripped = true
|
|
|
253
229
|
}
|
|
254
230
|
}
|
|
255
231
|
});
|
|
256
|
-
// CONCATENATED MODULE: ./packages/card/src/main.vue?vue&type=script&lang=js
|
|
257
|
-
/* harmony default export */ var
|
|
232
|
+
// CONCATENATED MODULE: ./packages/card/src/main.vue?vue&type=script&lang=js
|
|
233
|
+
/* harmony default export */ var src_mainvue_type_script_lang_js = (mainvue_type_script_lang_js);
|
|
258
234
|
// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
|
|
259
235
|
var componentNormalizer = __webpack_require__(0);
|
|
260
236
|
|
|
@@ -267,7 +243,7 @@ var componentNormalizer = __webpack_require__(0);
|
|
|
267
243
|
/* normalize component */
|
|
268
244
|
|
|
269
245
|
var component = Object(componentNormalizer["a" /* default */])(
|
|
270
|
-
|
|
246
|
+
src_mainvue_type_script_lang_js,
|
|
271
247
|
render,
|
|
272
248
|
staticRenderFns,
|
|
273
249
|
false,
|
|
@@ -277,9 +253,6 @@ var component = Object(componentNormalizer["a" /* default */])(
|
|
|
277
253
|
|
|
278
254
|
)
|
|
279
255
|
|
|
280
|
-
/* hot reload */
|
|
281
|
-
if (false) { var api; }
|
|
282
|
-
component.options.__file = "packages/card/src/main.vue"
|
|
283
256
|
/* harmony default export */ var main = (component.exports);
|
|
284
257
|
// CONCATENATED MODULE: ./packages/card/index.js
|
|
285
258
|
|
package/lib/carousel-item.js
CHANGED
|
@@ -98,20 +98,19 @@ module.exports =
|
|
|
98
98
|
// This module is a runtime utility for cleaner component module output and will
|
|
99
99
|
// be included in the final webpack user bundle.
|
|
100
100
|
|
|
101
|
-
function normalizeComponent
|
|
101
|
+
function normalizeComponent(
|
|
102
102
|
scriptExports,
|
|
103
103
|
render,
|
|
104
104
|
staticRenderFns,
|
|
105
105
|
functionalTemplate,
|
|
106
106
|
injectStyles,
|
|
107
107
|
scopeId,
|
|
108
|
-
moduleIdentifier
|
|
108
|
+
moduleIdentifier /* server only */,
|
|
109
109
|
shadowMode /* vue-cli only */
|
|
110
110
|
) {
|
|
111
111
|
// Vue.extend constructor export interop
|
|
112
|
-
var options =
|
|
113
|
-
? scriptExports.options
|
|
114
|
-
: scriptExports
|
|
112
|
+
var options =
|
|
113
|
+
typeof scriptExports === 'function' ? scriptExports.options : scriptExports
|
|
115
114
|
|
|
116
115
|
// render functions
|
|
117
116
|
if (render) {
|
|
@@ -131,7 +130,8 @@ function normalizeComponent (
|
|
|
131
130
|
}
|
|
132
131
|
|
|
133
132
|
var hook
|
|
134
|
-
if (moduleIdentifier) {
|
|
133
|
+
if (moduleIdentifier) {
|
|
134
|
+
// server build
|
|
135
135
|
hook = function (context) {
|
|
136
136
|
// 2.3 injection
|
|
137
137
|
context =
|
|
@@ -156,7 +156,12 @@ function normalizeComponent (
|
|
|
156
156
|
options._ssrRegister = hook
|
|
157
157
|
} else if (injectStyles) {
|
|
158
158
|
hook = shadowMode
|
|
159
|
-
? function () {
|
|
159
|
+
? function () {
|
|
160
|
+
injectStyles.call(
|
|
161
|
+
this,
|
|
162
|
+
(options.functional ? this.parent : this).$root.$options.shadowRoot
|
|
163
|
+
)
|
|
164
|
+
}
|
|
160
165
|
: injectStyles
|
|
161
166
|
}
|
|
162
167
|
|
|
@@ -165,18 +170,16 @@ function normalizeComponent (
|
|
|
165
170
|
// for template-only hot-reload because in that case the render fn doesn't
|
|
166
171
|
// go through the normalizer
|
|
167
172
|
options._injectStyles = hook
|
|
168
|
-
// register for
|
|
173
|
+
// register for functional component in vue file
|
|
169
174
|
var originalRender = options.render
|
|
170
|
-
options.render = function renderWithStyleInjection
|
|
175
|
+
options.render = function renderWithStyleInjection(h, context) {
|
|
171
176
|
hook.call(context)
|
|
172
177
|
return originalRender(h, context)
|
|
173
178
|
}
|
|
174
179
|
} else {
|
|
175
180
|
// inject component registration as beforeCreate hook
|
|
176
181
|
var existing = options.beforeCreate
|
|
177
|
-
options.beforeCreate = existing
|
|
178
|
-
? [].concat(existing, hook)
|
|
179
|
-
: [hook]
|
|
182
|
+
options.beforeCreate = existing ? [].concat(existing, hook) : [hook]
|
|
180
183
|
}
|
|
181
184
|
}
|
|
182
185
|
|
|
@@ -200,64 +203,26 @@ module.exports = require("iov-design/lib/utils/util");
|
|
|
200
203
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
201
204
|
|
|
202
205
|
"use strict";
|
|
206
|
+
// ESM COMPAT FLAG
|
|
203
207
|
__webpack_require__.r(__webpack_exports__);
|
|
204
208
|
|
|
205
|
-
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/carousel/src/item.vue?vue&type=template&id=
|
|
206
|
-
var render = function() {
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
directives: [
|
|
214
|
-
{
|
|
215
|
-
name: "show",
|
|
216
|
-
rawName: "v-show",
|
|
217
|
-
value: _vm.ready,
|
|
218
|
-
expression: "ready"
|
|
219
|
-
}
|
|
220
|
-
],
|
|
221
|
-
staticClass: "el-carousel__item",
|
|
222
|
-
class: {
|
|
223
|
-
"is-active": _vm.active,
|
|
224
|
-
"el-carousel__item--card": _vm.$parent.type === "card",
|
|
225
|
-
"is-in-stage": _vm.inStage,
|
|
226
|
-
"is-hover": _vm.hover,
|
|
227
|
-
"is-animating": _vm.animating
|
|
228
|
-
},
|
|
229
|
-
style: _vm.itemStyle,
|
|
230
|
-
on: { click: _vm.handleItemClick }
|
|
231
|
-
},
|
|
232
|
-
[
|
|
233
|
-
_vm.$parent.type === "card"
|
|
234
|
-
? _c("div", {
|
|
235
|
-
directives: [
|
|
236
|
-
{
|
|
237
|
-
name: "show",
|
|
238
|
-
rawName: "v-show",
|
|
239
|
-
value: !_vm.active,
|
|
240
|
-
expression: "!active"
|
|
241
|
-
}
|
|
242
|
-
],
|
|
243
|
-
staticClass: "el-carousel__mask"
|
|
244
|
-
})
|
|
245
|
-
: _vm._e(),
|
|
246
|
-
_vm._t("default")
|
|
247
|
-
],
|
|
248
|
-
2
|
|
249
|
-
)
|
|
250
|
-
}
|
|
209
|
+
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/carousel/src/item.vue?vue&type=template&id=09f4d7c4
|
|
210
|
+
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.ready),expression:"ready"}],staticClass:"el-carousel__item",class:{
|
|
211
|
+
'is-active': _vm.active,
|
|
212
|
+
'el-carousel__item--card': _vm.$parent.type === 'card',
|
|
213
|
+
'is-in-stage': _vm.inStage,
|
|
214
|
+
'is-hover': _vm.hover,
|
|
215
|
+
'is-animating': _vm.animating
|
|
216
|
+
},style:(_vm.itemStyle),on:{"click":_vm.handleItemClick}},[(_vm.$parent.type === 'card')?_c('div',{directives:[{name:"show",rawName:"v-show",value:(!_vm.active),expression:"!active"}],staticClass:"el-carousel__mask"}):_vm._e(),_vm._t("default")],2)}
|
|
251
217
|
var staticRenderFns = []
|
|
252
218
|
render._withStripped = true
|
|
253
219
|
|
|
254
|
-
|
|
255
|
-
// CONCATENATED MODULE: ./packages/carousel/src/item.vue?vue&type=template&id=1801ae19&
|
|
220
|
+
// CONCATENATED MODULE: ./packages/carousel/src/item.vue?vue&type=template&id=09f4d7c4
|
|
256
221
|
|
|
257
222
|
// EXTERNAL MODULE: external "iov-design/lib/utils/util"
|
|
258
223
|
var util_ = __webpack_require__(3);
|
|
259
224
|
|
|
260
|
-
// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/carousel/src/item.vue?vue&type=script&lang=js
|
|
225
|
+
// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/carousel/src/item.vue?vue&type=script&lang=js
|
|
261
226
|
//
|
|
262
227
|
//
|
|
263
228
|
//
|
|
@@ -283,7 +248,7 @@ var util_ = __webpack_require__(3);
|
|
|
283
248
|
|
|
284
249
|
|
|
285
250
|
var CARD_SCALE = 0.83;
|
|
286
|
-
/* harmony default export */ var
|
|
251
|
+
/* harmony default export */ var itemvue_type_script_lang_js = ({
|
|
287
252
|
name: 'ElCarouselItem',
|
|
288
253
|
|
|
289
254
|
props: {
|
|
@@ -390,8 +355,8 @@ var CARD_SCALE = 0.83;
|
|
|
390
355
|
this.$parent && this.$parent.updateItems();
|
|
391
356
|
}
|
|
392
357
|
});
|
|
393
|
-
// CONCATENATED MODULE: ./packages/carousel/src/item.vue?vue&type=script&lang=js
|
|
394
|
-
/* harmony default export */ var
|
|
358
|
+
// CONCATENATED MODULE: ./packages/carousel/src/item.vue?vue&type=script&lang=js
|
|
359
|
+
/* harmony default export */ var src_itemvue_type_script_lang_js = (itemvue_type_script_lang_js);
|
|
395
360
|
// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
|
|
396
361
|
var componentNormalizer = __webpack_require__(0);
|
|
397
362
|
|
|
@@ -404,7 +369,7 @@ var componentNormalizer = __webpack_require__(0);
|
|
|
404
369
|
/* normalize component */
|
|
405
370
|
|
|
406
371
|
var component = Object(componentNormalizer["a" /* default */])(
|
|
407
|
-
|
|
372
|
+
src_itemvue_type_script_lang_js,
|
|
408
373
|
render,
|
|
409
374
|
staticRenderFns,
|
|
410
375
|
false,
|
|
@@ -414,9 +379,6 @@ var component = Object(componentNormalizer["a" /* default */])(
|
|
|
414
379
|
|
|
415
380
|
)
|
|
416
381
|
|
|
417
|
-
/* hot reload */
|
|
418
|
-
if (false) { var api; }
|
|
419
|
-
component.options.__file = "packages/carousel/src/item.vue"
|
|
420
382
|
/* harmony default export */ var item = (component.exports);
|
|
421
383
|
// CONCATENATED MODULE: ./packages/carousel-item/index.js
|
|
422
384
|
|
package/lib/carousel.js
CHANGED
|
@@ -98,20 +98,19 @@ module.exports =
|
|
|
98
98
|
// This module is a runtime utility for cleaner component module output and will
|
|
99
99
|
// be included in the final webpack user bundle.
|
|
100
100
|
|
|
101
|
-
function normalizeComponent
|
|
101
|
+
function normalizeComponent(
|
|
102
102
|
scriptExports,
|
|
103
103
|
render,
|
|
104
104
|
staticRenderFns,
|
|
105
105
|
functionalTemplate,
|
|
106
106
|
injectStyles,
|
|
107
107
|
scopeId,
|
|
108
|
-
moduleIdentifier
|
|
108
|
+
moduleIdentifier /* server only */,
|
|
109
109
|
shadowMode /* vue-cli only */
|
|
110
110
|
) {
|
|
111
111
|
// Vue.extend constructor export interop
|
|
112
|
-
var options =
|
|
113
|
-
? scriptExports.options
|
|
114
|
-
: scriptExports
|
|
112
|
+
var options =
|
|
113
|
+
typeof scriptExports === 'function' ? scriptExports.options : scriptExports
|
|
115
114
|
|
|
116
115
|
// render functions
|
|
117
116
|
if (render) {
|
|
@@ -131,7 +130,8 @@ function normalizeComponent (
|
|
|
131
130
|
}
|
|
132
131
|
|
|
133
132
|
var hook
|
|
134
|
-
if (moduleIdentifier) {
|
|
133
|
+
if (moduleIdentifier) {
|
|
134
|
+
// server build
|
|
135
135
|
hook = function (context) {
|
|
136
136
|
// 2.3 injection
|
|
137
137
|
context =
|
|
@@ -156,7 +156,12 @@ function normalizeComponent (
|
|
|
156
156
|
options._ssrRegister = hook
|
|
157
157
|
} else if (injectStyles) {
|
|
158
158
|
hook = shadowMode
|
|
159
|
-
? function () {
|
|
159
|
+
? function () {
|
|
160
|
+
injectStyles.call(
|
|
161
|
+
this,
|
|
162
|
+
(options.functional ? this.parent : this).$root.$options.shadowRoot
|
|
163
|
+
)
|
|
164
|
+
}
|
|
160
165
|
: injectStyles
|
|
161
166
|
}
|
|
162
167
|
|
|
@@ -165,18 +170,16 @@ function normalizeComponent (
|
|
|
165
170
|
// for template-only hot-reload because in that case the render fn doesn't
|
|
166
171
|
// go through the normalizer
|
|
167
172
|
options._injectStyles = hook
|
|
168
|
-
// register for
|
|
173
|
+
// register for functional component in vue file
|
|
169
174
|
var originalRender = options.render
|
|
170
|
-
options.render = function renderWithStyleInjection
|
|
175
|
+
options.render = function renderWithStyleInjection(h, context) {
|
|
171
176
|
hook.call(context)
|
|
172
177
|
return originalRender(h, context)
|
|
173
178
|
}
|
|
174
179
|
} else {
|
|
175
180
|
// inject component registration as beforeCreate hook
|
|
176
181
|
var existing = options.beforeCreate
|
|
177
|
-
options.beforeCreate = existing
|
|
178
|
-
? [].concat(existing, hook)
|
|
179
|
-
: [hook]
|
|
182
|
+
options.beforeCreate = existing ? [].concat(existing, hook) : [hook]
|
|
180
183
|
}
|
|
181
184
|
}
|
|
182
185
|
|
|
@@ -207,150 +210,18 @@ module.exports = require("throttle-debounce/throttle");
|
|
|
207
210
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
208
211
|
|
|
209
212
|
"use strict";
|
|
213
|
+
// ESM COMPAT FLAG
|
|
210
214
|
__webpack_require__.r(__webpack_exports__);
|
|
211
215
|
|
|
212
|
-
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/carousel/src/main.vue?vue&type=template&id=
|
|
213
|
-
var render = function() {
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
return _c(
|
|
218
|
-
"div",
|
|
219
|
-
{
|
|
220
|
-
class: _vm.carouselClasses,
|
|
221
|
-
on: {
|
|
222
|
-
mouseenter: function($event) {
|
|
223
|
-
$event.stopPropagation()
|
|
224
|
-
return _vm.handleMouseEnter($event)
|
|
225
|
-
},
|
|
226
|
-
mouseleave: function($event) {
|
|
227
|
-
$event.stopPropagation()
|
|
228
|
-
return _vm.handleMouseLeave($event)
|
|
229
|
-
}
|
|
230
|
-
}
|
|
231
|
-
},
|
|
232
|
-
[
|
|
233
|
-
_c(
|
|
234
|
-
"div",
|
|
235
|
-
{
|
|
236
|
-
staticClass: "el-carousel__container",
|
|
237
|
-
style: { height: _vm.height }
|
|
238
|
-
},
|
|
239
|
-
[
|
|
240
|
-
_vm.arrowDisplay
|
|
241
|
-
? _c("transition", { attrs: { name: "carousel-arrow-left" } }, [
|
|
242
|
-
_c(
|
|
243
|
-
"button",
|
|
244
|
-
{
|
|
245
|
-
directives: [
|
|
246
|
-
{
|
|
247
|
-
name: "show",
|
|
248
|
-
rawName: "v-show",
|
|
249
|
-
value:
|
|
250
|
-
(_vm.arrow === "always" || _vm.hover) &&
|
|
251
|
-
(_vm.loop || _vm.activeIndex > 0),
|
|
252
|
-
expression:
|
|
253
|
-
"(arrow === 'always' || hover) && (loop || activeIndex > 0)"
|
|
254
|
-
}
|
|
255
|
-
],
|
|
256
|
-
staticClass: "el-carousel__arrow el-carousel__arrow--left",
|
|
257
|
-
attrs: { type: "button" },
|
|
258
|
-
on: {
|
|
259
|
-
mouseenter: function($event) {
|
|
260
|
-
_vm.handleButtonEnter("left")
|
|
261
|
-
},
|
|
262
|
-
mouseleave: _vm.handleButtonLeave,
|
|
263
|
-
click: function($event) {
|
|
264
|
-
$event.stopPropagation()
|
|
265
|
-
_vm.throttledArrowClick(_vm.activeIndex - 1)
|
|
266
|
-
}
|
|
267
|
-
}
|
|
268
|
-
},
|
|
269
|
-
[_c("i", { staticClass: "el-icon-arrow-left" })]
|
|
270
|
-
)
|
|
271
|
-
])
|
|
272
|
-
: _vm._e(),
|
|
273
|
-
_vm.arrowDisplay
|
|
274
|
-
? _c("transition", { attrs: { name: "carousel-arrow-right" } }, [
|
|
275
|
-
_c(
|
|
276
|
-
"button",
|
|
277
|
-
{
|
|
278
|
-
directives: [
|
|
279
|
-
{
|
|
280
|
-
name: "show",
|
|
281
|
-
rawName: "v-show",
|
|
282
|
-
value:
|
|
283
|
-
(_vm.arrow === "always" || _vm.hover) &&
|
|
284
|
-
(_vm.loop || _vm.activeIndex < _vm.items.length - 1),
|
|
285
|
-
expression:
|
|
286
|
-
"(arrow === 'always' || hover) && (loop || activeIndex < items.length - 1)"
|
|
287
|
-
}
|
|
288
|
-
],
|
|
289
|
-
staticClass: "el-carousel__arrow el-carousel__arrow--right",
|
|
290
|
-
attrs: { type: "button" },
|
|
291
|
-
on: {
|
|
292
|
-
mouseenter: function($event) {
|
|
293
|
-
_vm.handleButtonEnter("right")
|
|
294
|
-
},
|
|
295
|
-
mouseleave: _vm.handleButtonLeave,
|
|
296
|
-
click: function($event) {
|
|
297
|
-
$event.stopPropagation()
|
|
298
|
-
_vm.throttledArrowClick(_vm.activeIndex + 1)
|
|
299
|
-
}
|
|
300
|
-
}
|
|
301
|
-
},
|
|
302
|
-
[_c("i", { staticClass: "el-icon-arrow-right" })]
|
|
303
|
-
)
|
|
304
|
-
])
|
|
305
|
-
: _vm._e(),
|
|
306
|
-
_vm._t("default")
|
|
307
|
-
],
|
|
308
|
-
2
|
|
309
|
-
),
|
|
310
|
-
_vm.indicatorPosition !== "none"
|
|
311
|
-
? _c(
|
|
312
|
-
"ul",
|
|
313
|
-
{ class: _vm.indicatorsClasses },
|
|
314
|
-
_vm._l(_vm.items, function(item, index) {
|
|
315
|
-
return _c(
|
|
316
|
-
"li",
|
|
317
|
-
{
|
|
318
|
-
key: index,
|
|
319
|
-
class: [
|
|
320
|
-
"el-carousel__indicator",
|
|
321
|
-
"el-carousel__indicator--" + _vm.direction,
|
|
322
|
-
{ "is-active": index === _vm.activeIndex }
|
|
323
|
-
],
|
|
324
|
-
on: {
|
|
325
|
-
mouseenter: function($event) {
|
|
326
|
-
_vm.throttledIndicatorHover(index)
|
|
327
|
-
},
|
|
328
|
-
click: function($event) {
|
|
329
|
-
$event.stopPropagation()
|
|
330
|
-
_vm.handleIndicatorClick(index)
|
|
331
|
-
}
|
|
332
|
-
}
|
|
333
|
-
},
|
|
334
|
-
[
|
|
335
|
-
_c("button", { staticClass: "el-carousel__button" }, [
|
|
336
|
-
_vm.hasLabel
|
|
337
|
-
? _c("span", [_vm._v(_vm._s(item.label))])
|
|
338
|
-
: _vm._e()
|
|
339
|
-
])
|
|
340
|
-
]
|
|
341
|
-
)
|
|
342
|
-
}),
|
|
343
|
-
0
|
|
344
|
-
)
|
|
345
|
-
: _vm._e()
|
|
346
|
-
]
|
|
347
|
-
)
|
|
348
|
-
}
|
|
216
|
+
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/carousel/src/main.vue?vue&type=template&id=7abe4e9f
|
|
217
|
+
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{class:_vm.carouselClasses,on:{"mouseenter":function($event){$event.stopPropagation();return _vm.handleMouseEnter($event)},"mouseleave":function($event){$event.stopPropagation();return _vm.handleMouseLeave($event)}}},[_c('div',{staticClass:"el-carousel__container",style:({ height: _vm.height })},[(_vm.arrowDisplay)?_c('transition',{attrs:{"name":"carousel-arrow-left"}},[_c('button',{directives:[{name:"show",rawName:"v-show",value:((_vm.arrow === 'always' || _vm.hover) && (_vm.loop || _vm.activeIndex > 0)),expression:"(arrow === 'always' || hover) && (loop || activeIndex > 0)"}],staticClass:"el-carousel__arrow el-carousel__arrow--left",attrs:{"type":"button"},on:{"mouseenter":function($event){_vm.handleButtonEnter('left')},"mouseleave":_vm.handleButtonLeave,"click":function($event){$event.stopPropagation();_vm.throttledArrowClick(_vm.activeIndex - 1)}}},[_c('i',{staticClass:"el-icon-arrow-left"})])]):_vm._e(),(_vm.arrowDisplay)?_c('transition',{attrs:{"name":"carousel-arrow-right"}},[_c('button',{directives:[{name:"show",rawName:"v-show",value:((_vm.arrow === 'always' || _vm.hover) && (_vm.loop || _vm.activeIndex < _vm.items.length - 1)),expression:"(arrow === 'always' || hover) && (loop || activeIndex < items.length - 1)"}],staticClass:"el-carousel__arrow el-carousel__arrow--right",attrs:{"type":"button"},on:{"mouseenter":function($event){_vm.handleButtonEnter('right')},"mouseleave":_vm.handleButtonLeave,"click":function($event){$event.stopPropagation();_vm.throttledArrowClick(_vm.activeIndex + 1)}}},[_c('i',{staticClass:"el-icon-arrow-right"})])]):_vm._e(),_vm._t("default")],2),(_vm.indicatorPosition !== 'none')?_c('ul',{class:_vm.indicatorsClasses},_vm._l((_vm.items),function(item,index){return _c('li',{key:index,class:[
|
|
218
|
+
'el-carousel__indicator',
|
|
219
|
+
'el-carousel__indicator--' + _vm.direction,
|
|
220
|
+
{ 'is-active': index === _vm.activeIndex }],on:{"mouseenter":function($event){_vm.throttledIndicatorHover(index)},"click":function($event){$event.stopPropagation();_vm.handleIndicatorClick(index)}}},[_c('button',{staticClass:"el-carousel__button"},[(_vm.hasLabel)?_c('span',[_vm._v(_vm._s(item.label))]):_vm._e()])])}),0):_vm._e()])}
|
|
349
221
|
var staticRenderFns = []
|
|
350
222
|
render._withStripped = true
|
|
351
223
|
|
|
352
|
-
|
|
353
|
-
// CONCATENATED MODULE: ./packages/carousel/src/main.vue?vue&type=template&id=5d5d1482&
|
|
224
|
+
// CONCATENATED MODULE: ./packages/carousel/src/main.vue?vue&type=template&id=7abe4e9f
|
|
354
225
|
|
|
355
226
|
// EXTERNAL MODULE: external "throttle-debounce/throttle"
|
|
356
227
|
var throttle_ = __webpack_require__(25);
|
|
@@ -359,7 +230,7 @@ var throttle_default = /*#__PURE__*/__webpack_require__.n(throttle_);
|
|
|
359
230
|
// EXTERNAL MODULE: external "iov-design/lib/utils/resize-event"
|
|
360
231
|
var resize_event_ = __webpack_require__(16);
|
|
361
232
|
|
|
362
|
-
// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/carousel/src/main.vue?vue&type=script&lang=js
|
|
233
|
+
// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/carousel/src/main.vue?vue&type=script&lang=js
|
|
363
234
|
//
|
|
364
235
|
//
|
|
365
236
|
//
|
|
@@ -420,7 +291,7 @@ var resize_event_ = __webpack_require__(16);
|
|
|
420
291
|
|
|
421
292
|
|
|
422
293
|
|
|
423
|
-
/* harmony default export */ var
|
|
294
|
+
/* harmony default export */ var mainvue_type_script_lang_js = ({
|
|
424
295
|
name: 'ElCarousel',
|
|
425
296
|
|
|
426
297
|
props: {
|
|
@@ -663,8 +534,8 @@ var resize_event_ = __webpack_require__(16);
|
|
|
663
534
|
this.pauseTimer();
|
|
664
535
|
}
|
|
665
536
|
});
|
|
666
|
-
// CONCATENATED MODULE: ./packages/carousel/src/main.vue?vue&type=script&lang=js
|
|
667
|
-
/* harmony default export */ var
|
|
537
|
+
// CONCATENATED MODULE: ./packages/carousel/src/main.vue?vue&type=script&lang=js
|
|
538
|
+
/* harmony default export */ var src_mainvue_type_script_lang_js = (mainvue_type_script_lang_js);
|
|
668
539
|
// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
|
|
669
540
|
var componentNormalizer = __webpack_require__(0);
|
|
670
541
|
|
|
@@ -677,7 +548,7 @@ var componentNormalizer = __webpack_require__(0);
|
|
|
677
548
|
/* normalize component */
|
|
678
549
|
|
|
679
550
|
var component = Object(componentNormalizer["a" /* default */])(
|
|
680
|
-
|
|
551
|
+
src_mainvue_type_script_lang_js,
|
|
681
552
|
render,
|
|
682
553
|
staticRenderFns,
|
|
683
554
|
false,
|
|
@@ -687,9 +558,6 @@ var component = Object(componentNormalizer["a" /* default */])(
|
|
|
687
558
|
|
|
688
559
|
)
|
|
689
560
|
|
|
690
|
-
/* hot reload */
|
|
691
|
-
if (false) { var api; }
|
|
692
|
-
component.options.__file = "packages/carousel/src/main.vue"
|
|
693
561
|
/* harmony default export */ var main = (component.exports);
|
|
694
562
|
// CONCATENATED MODULE: ./packages/carousel/index.js
|
|
695
563
|
|