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/page-header.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,52 +196,20 @@ 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/page-header/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("div", { staticClass: "el-page-header" }, [
|
|
204
|
-
_c(
|
|
205
|
-
"div",
|
|
206
|
-
{
|
|
207
|
-
staticClass: "el-page-header__left",
|
|
208
|
-
on: {
|
|
209
|
-
click: function($event) {
|
|
210
|
-
_vm.$emit("back")
|
|
211
|
-
}
|
|
212
|
-
}
|
|
213
|
-
},
|
|
214
|
-
[
|
|
215
|
-
_c("i", { staticClass: "el-icon-back" }),
|
|
216
|
-
_c(
|
|
217
|
-
"div",
|
|
218
|
-
{ staticClass: "el-page-header__title" },
|
|
219
|
-
[_vm._t("title", [_vm._v(_vm._s(_vm.title))])],
|
|
220
|
-
2
|
|
221
|
-
)
|
|
222
|
-
]
|
|
223
|
-
),
|
|
224
|
-
_c(
|
|
225
|
-
"div",
|
|
226
|
-
{ staticClass: "el-page-header__content" },
|
|
227
|
-
[_vm._t("content", [_vm._v(_vm._s(_vm.content))])],
|
|
228
|
-
2
|
|
229
|
-
)
|
|
230
|
-
])
|
|
231
|
-
}
|
|
202
|
+
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/page-header/src/main.vue?vue&type=template&id=e050984c
|
|
203
|
+
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"el-page-header"},[_c('div',{staticClass:"el-page-header__left",on:{"click":function($event){_vm.$emit('back')}}},[_c('i',{staticClass:"el-icon-back"}),_c('div',{staticClass:"el-page-header__title"},[_vm._t("title",[_vm._v(_vm._s(_vm.title))])],2)]),_c('div',{staticClass:"el-page-header__content"},[_vm._t("content",[_vm._v(_vm._s(_vm.content))])],2)])}
|
|
232
204
|
var staticRenderFns = []
|
|
233
205
|
render._withStripped = true
|
|
234
206
|
|
|
235
|
-
|
|
236
|
-
// CONCATENATED MODULE: ./packages/page-header/src/main.vue?vue&type=template&id=5070954c&
|
|
207
|
+
// CONCATENATED MODULE: ./packages/page-header/src/main.vue?vue&type=template&id=e050984c
|
|
237
208
|
|
|
238
209
|
// EXTERNAL MODULE: external "iov-design/lib/locale"
|
|
239
210
|
var locale_ = __webpack_require__(20);
|
|
240
211
|
|
|
241
|
-
// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/page-header/src/main.vue?vue&type=script&lang=js
|
|
212
|
+
// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/page-header/src/main.vue?vue&type=script&lang=js
|
|
242
213
|
//
|
|
243
214
|
//
|
|
244
215
|
//
|
|
@@ -255,7 +226,7 @@ var locale_ = __webpack_require__(20);
|
|
|
255
226
|
//
|
|
256
227
|
|
|
257
228
|
|
|
258
|
-
/* harmony default export */ var
|
|
229
|
+
/* harmony default export */ var mainvue_type_script_lang_js = ({
|
|
259
230
|
name: 'ElPageHeader',
|
|
260
231
|
|
|
261
232
|
props: {
|
|
@@ -268,8 +239,8 @@ var locale_ = __webpack_require__(20);
|
|
|
268
239
|
content: String
|
|
269
240
|
}
|
|
270
241
|
});
|
|
271
|
-
// CONCATENATED MODULE: ./packages/page-header/src/main.vue?vue&type=script&lang=js
|
|
272
|
-
/* harmony default export */ var
|
|
242
|
+
// CONCATENATED MODULE: ./packages/page-header/src/main.vue?vue&type=script&lang=js
|
|
243
|
+
/* harmony default export */ var src_mainvue_type_script_lang_js = (mainvue_type_script_lang_js);
|
|
273
244
|
// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
|
|
274
245
|
var componentNormalizer = __webpack_require__(0);
|
|
275
246
|
|
|
@@ -282,7 +253,7 @@ var componentNormalizer = __webpack_require__(0);
|
|
|
282
253
|
/* normalize component */
|
|
283
254
|
|
|
284
255
|
var component = Object(componentNormalizer["a" /* default */])(
|
|
285
|
-
|
|
256
|
+
src_mainvue_type_script_lang_js,
|
|
286
257
|
render,
|
|
287
258
|
staticRenderFns,
|
|
288
259
|
false,
|
|
@@ -292,9 +263,6 @@ var component = Object(componentNormalizer["a" /* default */])(
|
|
|
292
263
|
|
|
293
264
|
)
|
|
294
265
|
|
|
295
|
-
/* hot reload */
|
|
296
|
-
if (false) { var api; }
|
|
297
|
-
component.options.__file = "packages/page-header/src/main.vue"
|
|
298
266
|
/* harmony default export */ var main = (component.exports);
|
|
299
267
|
// CONCATENATED MODULE: ./packages/page-header/index.js
|
|
300
268
|
|
package/lib/pagination.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
|
|
|
@@ -228,90 +231,17 @@ module.exports = require("iov-design/lib/mixins/locale");
|
|
|
228
231
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
229
232
|
|
|
230
233
|
"use strict";
|
|
234
|
+
// ESM COMPAT FLAG
|
|
231
235
|
__webpack_require__.r(__webpack_exports__);
|
|
232
236
|
|
|
233
|
-
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/pagination/src/pager.vue?vue&type=template&id=
|
|
234
|
-
var render = function() {
|
|
235
|
-
var _vm = this
|
|
236
|
-
var _h = _vm.$createElement
|
|
237
|
-
var _c = _vm._self._c || _h
|
|
238
|
-
return _c(
|
|
239
|
-
"ul",
|
|
240
|
-
{ staticClass: "el-pager", on: { click: _vm.onPagerClick } },
|
|
241
|
-
[
|
|
242
|
-
_vm.pageCount > 0
|
|
243
|
-
? _c(
|
|
244
|
-
"li",
|
|
245
|
-
{
|
|
246
|
-
staticClass: "number",
|
|
247
|
-
class: { active: _vm.currentPage === 1, disabled: _vm.disabled }
|
|
248
|
-
},
|
|
249
|
-
[_vm._v("1")]
|
|
250
|
-
)
|
|
251
|
-
: _vm._e(),
|
|
252
|
-
_vm.showPrevMore
|
|
253
|
-
? _c("li", {
|
|
254
|
-
staticClass: "more btn-quickprev",
|
|
255
|
-
class: [_vm.quickprevIconClass, { disabled: _vm.disabled }],
|
|
256
|
-
on: {
|
|
257
|
-
mouseenter: function($event) {
|
|
258
|
-
_vm.onMouseenter("left")
|
|
259
|
-
},
|
|
260
|
-
mouseleave: function($event) {
|
|
261
|
-
_vm.quickprevIconClass = "iov-icon-horizontal-more"
|
|
262
|
-
}
|
|
263
|
-
}
|
|
264
|
-
})
|
|
265
|
-
: _vm._e(),
|
|
266
|
-
_vm._l(_vm.pagers, function(pager) {
|
|
267
|
-
return _c(
|
|
268
|
-
"li",
|
|
269
|
-
{
|
|
270
|
-
key: pager,
|
|
271
|
-
staticClass: "number",
|
|
272
|
-
class: { active: _vm.currentPage === pager, disabled: _vm.disabled }
|
|
273
|
-
},
|
|
274
|
-
[_vm._v(_vm._s(pager))]
|
|
275
|
-
)
|
|
276
|
-
}),
|
|
277
|
-
_vm.showNextMore
|
|
278
|
-
? _c("li", {
|
|
279
|
-
staticClass: "more btn-quicknext",
|
|
280
|
-
class: [_vm.quicknextIconClass, { disabled: _vm.disabled }],
|
|
281
|
-
on: {
|
|
282
|
-
mouseenter: function($event) {
|
|
283
|
-
_vm.onMouseenter("right")
|
|
284
|
-
},
|
|
285
|
-
mouseleave: function($event) {
|
|
286
|
-
_vm.quicknextIconClass = "iov-icon-horizontal-more"
|
|
287
|
-
}
|
|
288
|
-
}
|
|
289
|
-
})
|
|
290
|
-
: _vm._e(),
|
|
291
|
-
_vm.pageCount > 1
|
|
292
|
-
? _c(
|
|
293
|
-
"li",
|
|
294
|
-
{
|
|
295
|
-
staticClass: "number",
|
|
296
|
-
class: {
|
|
297
|
-
active: _vm.currentPage === _vm.pageCount,
|
|
298
|
-
disabled: _vm.disabled
|
|
299
|
-
}
|
|
300
|
-
},
|
|
301
|
-
[_vm._v(_vm._s(_vm.pageCount))]
|
|
302
|
-
)
|
|
303
|
-
: _vm._e()
|
|
304
|
-
],
|
|
305
|
-
2
|
|
306
|
-
)
|
|
307
|
-
}
|
|
237
|
+
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/pagination/src/pager.vue?vue&type=template&id=28325654
|
|
238
|
+
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('ul',{staticClass:"el-pager",on:{"click":_vm.onPagerClick}},[(_vm.pageCount > 0)?_c('li',{staticClass:"number",class:{ active: _vm.currentPage === 1, disabled: _vm.disabled }},[_vm._v("1")]):_vm._e(),(_vm.showPrevMore)?_c('li',{staticClass:"more btn-quickprev",class:[_vm.quickprevIconClass, { disabled: _vm.disabled }],on:{"mouseenter":function($event){_vm.onMouseenter('left')},"mouseleave":function($event){_vm.quickprevIconClass = 'iov-icon-horizontal-more'}}}):_vm._e(),_vm._l((_vm.pagers),function(pager){return _c('li',{key:pager,staticClass:"number",class:{ active: _vm.currentPage === pager, disabled: _vm.disabled }},[_vm._v(_vm._s(pager))])}),(_vm.showNextMore)?_c('li',{staticClass:"more btn-quicknext",class:[_vm.quicknextIconClass, { disabled: _vm.disabled }],on:{"mouseenter":function($event){_vm.onMouseenter('right')},"mouseleave":function($event){_vm.quicknextIconClass = 'iov-icon-horizontal-more'}}}):_vm._e(),(_vm.pageCount > 1)?_c('li',{staticClass:"number",class:{ active: _vm.currentPage === _vm.pageCount, disabled: _vm.disabled }},[_vm._v(_vm._s(_vm.pageCount))]):_vm._e()],2)}
|
|
308
239
|
var staticRenderFns = []
|
|
309
240
|
render._withStripped = true
|
|
310
241
|
|
|
242
|
+
// CONCATENATED MODULE: ./packages/pagination/src/pager.vue?vue&type=template&id=28325654
|
|
311
243
|
|
|
312
|
-
// CONCATENATED MODULE: ./packages/pagination/src/pager.vue?vue&type=
|
|
313
|
-
|
|
314
|
-
// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/pagination/src/pager.vue?vue&type=script&lang=js&
|
|
244
|
+
// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/pagination/src/pager.vue?vue&type=script&lang=js
|
|
315
245
|
//
|
|
316
246
|
//
|
|
317
247
|
//
|
|
@@ -345,7 +275,7 @@ render._withStripped = true
|
|
|
345
275
|
//
|
|
346
276
|
//
|
|
347
277
|
|
|
348
|
-
/* harmony default export */ var
|
|
278
|
+
/* harmony default export */ var pagervue_type_script_lang_js = ({
|
|
349
279
|
name: 'ElPager',
|
|
350
280
|
|
|
351
281
|
props: {
|
|
@@ -472,8 +402,8 @@ render._withStripped = true
|
|
|
472
402
|
};
|
|
473
403
|
}
|
|
474
404
|
});
|
|
475
|
-
// CONCATENATED MODULE: ./packages/pagination/src/pager.vue?vue&type=script&lang=js
|
|
476
|
-
/* harmony default export */ var
|
|
405
|
+
// CONCATENATED MODULE: ./packages/pagination/src/pager.vue?vue&type=script&lang=js
|
|
406
|
+
/* harmony default export */ var src_pagervue_type_script_lang_js = (pagervue_type_script_lang_js);
|
|
477
407
|
// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
|
|
478
408
|
var componentNormalizer = __webpack_require__(0);
|
|
479
409
|
|
|
@@ -486,7 +416,7 @@ var componentNormalizer = __webpack_require__(0);
|
|
|
486
416
|
/* normalize component */
|
|
487
417
|
|
|
488
418
|
var component = Object(componentNormalizer["a" /* default */])(
|
|
489
|
-
|
|
419
|
+
src_pagervue_type_script_lang_js,
|
|
490
420
|
render,
|
|
491
421
|
staticRenderFns,
|
|
492
422
|
false,
|
|
@@ -496,9 +426,6 @@ var component = Object(componentNormalizer["a" /* default */])(
|
|
|
496
426
|
|
|
497
427
|
)
|
|
498
428
|
|
|
499
|
-
/* hot reload */
|
|
500
|
-
if (false) { var api; }
|
|
501
|
-
component.options.__file = "packages/pagination/src/pager.vue"
|
|
502
429
|
/* harmony default export */ var pager = (component.exports);
|
|
503
430
|
// EXTERNAL MODULE: external "iov-design/lib/select"
|
|
504
431
|
var select_ = __webpack_require__(46);
|
package/lib/popconfirm.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
|
|
|
@@ -214,88 +217,15 @@ module.exports = require("iov-design/lib/popover");
|
|
|
214
217
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
215
218
|
|
|
216
219
|
"use strict";
|
|
220
|
+
// ESM COMPAT FLAG
|
|
217
221
|
__webpack_require__.r(__webpack_exports__);
|
|
218
222
|
|
|
219
|
-
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/popconfirm/src/main.vue?vue&type=template&id=
|
|
220
|
-
var render = function() {
|
|
221
|
-
var _vm = this
|
|
222
|
-
var _h = _vm.$createElement
|
|
223
|
-
var _c = _vm._self._c || _h
|
|
224
|
-
return _c(
|
|
225
|
-
"el-popover",
|
|
226
|
-
_vm._b(
|
|
227
|
-
{
|
|
228
|
-
attrs: { trigger: "click" },
|
|
229
|
-
model: {
|
|
230
|
-
value: _vm.visible,
|
|
231
|
-
callback: function($$v) {
|
|
232
|
-
_vm.visible = $$v
|
|
233
|
-
},
|
|
234
|
-
expression: "visible"
|
|
235
|
-
}
|
|
236
|
-
},
|
|
237
|
-
"el-popover",
|
|
238
|
-
_vm.$attrs,
|
|
239
|
-
false
|
|
240
|
-
),
|
|
241
|
-
[
|
|
242
|
-
_c("div", { staticClass: "el-popconfirm" }, [
|
|
243
|
-
_c("p", { staticClass: "el-popconfirm__main" }, [
|
|
244
|
-
!_vm.hideIcon
|
|
245
|
-
? _c("i", {
|
|
246
|
-
staticClass: "el-popconfirm__icon",
|
|
247
|
-
class: _vm.icon,
|
|
248
|
-
style: { color: _vm.iconColor }
|
|
249
|
-
})
|
|
250
|
-
: _vm._e(),
|
|
251
|
-
_vm._v("\n " + _vm._s(_vm.title) + "\n ")
|
|
252
|
-
]),
|
|
253
|
-
_c(
|
|
254
|
-
"div",
|
|
255
|
-
{ staticClass: "el-popconfirm__action" },
|
|
256
|
-
[
|
|
257
|
-
_c(
|
|
258
|
-
"el-button",
|
|
259
|
-
{
|
|
260
|
-
attrs: { size: "mini", type: _vm.cancelButtonType },
|
|
261
|
-
on: { click: _vm.cancel }
|
|
262
|
-
},
|
|
263
|
-
[
|
|
264
|
-
_vm._v(
|
|
265
|
-
"\n " +
|
|
266
|
-
_vm._s(_vm.displayCancelButtonText) +
|
|
267
|
-
"\n "
|
|
268
|
-
)
|
|
269
|
-
]
|
|
270
|
-
),
|
|
271
|
-
_c(
|
|
272
|
-
"el-button",
|
|
273
|
-
{
|
|
274
|
-
attrs: { size: "mini", type: _vm.confirmButtonType },
|
|
275
|
-
on: { click: _vm.confirm }
|
|
276
|
-
},
|
|
277
|
-
[
|
|
278
|
-
_vm._v(
|
|
279
|
-
"\n " +
|
|
280
|
-
_vm._s(_vm.displayConfirmButtonText) +
|
|
281
|
-
"\n "
|
|
282
|
-
)
|
|
283
|
-
]
|
|
284
|
-
)
|
|
285
|
-
],
|
|
286
|
-
1
|
|
287
|
-
)
|
|
288
|
-
]),
|
|
289
|
-
_vm._t("reference", null, { slot: "reference" })
|
|
290
|
-
],
|
|
291
|
-
2
|
|
292
|
-
)
|
|
293
|
-
}
|
|
223
|
+
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/popconfirm/src/main.vue?vue&type=template&id=39cd67f2
|
|
224
|
+
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('el-popover',_vm._b({attrs:{"trigger":"click"},model:{value:(_vm.visible),callback:function ($$v) {_vm.visible=$$v},expression:"visible"}},'el-popover',_vm.$attrs,false),[_c('div',{staticClass:"el-popconfirm"},[_c('p',{staticClass:"el-popconfirm__main"},[(!_vm.hideIcon)?_c('i',{staticClass:"el-popconfirm__icon",class:_vm.icon,style:({color: _vm.iconColor})}):_vm._e(),_vm._v("\n "+_vm._s(_vm.title)+"\n ")]),_c('div',{staticClass:"el-popconfirm__action"},[_c('el-button',{attrs:{"size":"mini","type":_vm.cancelButtonType},on:{"click":_vm.cancel}},[_vm._v("\n "+_vm._s(_vm.displayCancelButtonText)+"\n ")]),_c('el-button',{attrs:{"size":"mini","type":_vm.confirmButtonType},on:{"click":_vm.confirm}},[_vm._v("\n "+_vm._s(_vm.displayConfirmButtonText)+"\n ")])],1)]),_vm._t("reference",null,{slot:"reference"})],2)}
|
|
294
225
|
var staticRenderFns = []
|
|
295
226
|
render._withStripped = true
|
|
296
227
|
|
|
297
|
-
|
|
298
|
-
// CONCATENATED MODULE: ./packages/popconfirm/src/main.vue?vue&type=template&id=048de730&
|
|
228
|
+
// CONCATENATED MODULE: ./packages/popconfirm/src/main.vue?vue&type=template&id=39cd67f2
|
|
299
229
|
|
|
300
230
|
// EXTERNAL MODULE: external "iov-design/lib/popover"
|
|
301
231
|
var popover_ = __webpack_require__(54);
|
|
@@ -308,7 +238,7 @@ var button_default = /*#__PURE__*/__webpack_require__.n(button_);
|
|
|
308
238
|
// EXTERNAL MODULE: external "iov-design/lib/locale"
|
|
309
239
|
var locale_ = __webpack_require__(20);
|
|
310
240
|
|
|
311
|
-
// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/popconfirm/src/main.vue?vue&type=script&lang=js
|
|
241
|
+
// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/popconfirm/src/main.vue?vue&type=script&lang=js
|
|
312
242
|
//
|
|
313
243
|
//
|
|
314
244
|
//
|
|
@@ -351,7 +281,7 @@ var locale_ = __webpack_require__(20);
|
|
|
351
281
|
|
|
352
282
|
|
|
353
283
|
|
|
354
|
-
/* harmony default export */ var
|
|
284
|
+
/* harmony default export */ var mainvue_type_script_lang_js = ({
|
|
355
285
|
name: 'ElPopconfirm',
|
|
356
286
|
props: {
|
|
357
287
|
title: {
|
|
@@ -413,8 +343,8 @@ var locale_ = __webpack_require__(20);
|
|
|
413
343
|
}
|
|
414
344
|
}
|
|
415
345
|
});
|
|
416
|
-
// CONCATENATED MODULE: ./packages/popconfirm/src/main.vue?vue&type=script&lang=js
|
|
417
|
-
/* harmony default export */ var
|
|
346
|
+
// CONCATENATED MODULE: ./packages/popconfirm/src/main.vue?vue&type=script&lang=js
|
|
347
|
+
/* harmony default export */ var src_mainvue_type_script_lang_js = (mainvue_type_script_lang_js);
|
|
418
348
|
// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
|
|
419
349
|
var componentNormalizer = __webpack_require__(0);
|
|
420
350
|
|
|
@@ -427,7 +357,7 @@ var componentNormalizer = __webpack_require__(0);
|
|
|
427
357
|
/* normalize component */
|
|
428
358
|
|
|
429
359
|
var component = Object(componentNormalizer["a" /* default */])(
|
|
430
|
-
|
|
360
|
+
src_mainvue_type_script_lang_js,
|
|
431
361
|
render,
|
|
432
362
|
staticRenderFns,
|
|
433
363
|
false,
|
|
@@ -437,9 +367,6 @@ var component = Object(componentNormalizer["a" /* default */])(
|
|
|
437
367
|
|
|
438
368
|
)
|
|
439
369
|
|
|
440
|
-
/* hot reload */
|
|
441
|
-
if (false) { var api; }
|
|
442
|
-
component.options.__file = "packages/popconfirm/src/main.vue"
|
|
443
370
|
/* harmony default export */ var main = (component.exports);
|
|
444
371
|
// CONCATENATED MODULE: ./packages/popconfirm/index.js
|
|
445
372
|
|