cy-element-ui 1.1.16 → 1.1.18
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 +8 -8
- package/lib/{alert.js → Alert.js} +2 -2
- package/lib/{aside.js → Aside.js} +2 -2
- package/lib/Autocomplete.js +2051 -0
- package/lib/{avatar.js → Avatar.js} +2 -2
- package/lib/{backtop.js → Backtop.js} +4 -4
- package/lib/{badge.js → Badge.js} +2 -2
- package/lib/{breadcrumb.js → Breadcrumb.js} +2 -2
- package/lib/{breadcrumb-item.js → BreadcrumbItem.js} +2 -2
- package/lib/{button.js → Button.js} +2 -2
- package/lib/{button-group.js → ButtonGroup.js} +2 -2
- package/lib/{calendar.js → Calendar.js} +238 -25
- package/lib/{card.js → Card.js} +2 -2
- package/lib/{carousel.js → Carousel.js} +12 -12
- package/lib/{carousel-item.js → CarouselItem.js} +2 -2
- package/lib/Cascader.js +4641 -0
- package/lib/{cascader-panel.js → CascaderPanel.js} +1101 -57
- package/lib/{checkbox.js → Checkbox.js} +9 -9
- package/lib/{checkbox-button.js → CheckboxButton.js} +2 -2
- package/lib/{checkbox-group.js → CheckboxGroup.js} +9 -9
- package/lib/{col.js → Col.js} +2 -2
- package/lib/{collapse.js → Collapse.js} +2 -2
- package/lib/{collapse-item.js → CollapseItem.js} +4 -4
- package/lib/{color-picker.js → ColorPicker.js} +967 -25
- package/lib/{container.js → Container.js} +2 -2
- package/lib/{selectDisplayInput.js → CySelectDisplayInput.js} +8 -8
- package/lib/{subTitle.js → CySubTitle.js} +8 -8
- package/lib/{tabDialog.js → CyTabDialog.js} +26 -26
- package/lib/{treeSelect.js → CyTreeSelect.js} +3161 -3169
- package/lib/{date-picker.js → DatePicker.js} +1372 -139
- package/lib/{descriptions.js → Descriptions.js} +4 -4
- package/lib/{descriptions-item.js → DescriptionsItem.js} +2 -2
- package/lib/{dialog.js → Dialog.js} +12 -12
- package/lib/{divider.js → Divider.js} +2 -2
- package/lib/{drawer.js → Drawer.js} +4 -4
- package/lib/{dropdown.js → Dropdown.js} +244 -31
- package/lib/{dropdown-item.js → DropdownItem.js} +2 -2
- package/lib/{dropdown-menu.js → DropdownMenu.js} +2 -2
- package/lib/{empty.js → Empty.js} +4 -4
- package/lib/{footer.js → Footer.js} +2 -2
- package/lib/{form.js → Form.js} +10 -10
- package/lib/{form-item.js → FormItem.js} +12 -12
- package/lib/{header.js → Header.js} +2 -2
- package/lib/{icon.js → Icon.js} +2 -2
- package/lib/{image.js → Image.js} +22 -22
- package/lib/{infinite-scroll.js → InfiniteScroll.js} +16 -16
- package/lib/{input.js → Input.js} +27 -26
- package/lib/InputNumber.js +1552 -0
- package/lib/{link.js → Link.js} +2 -2
- package/lib/{loading.js → Loading.js} +15 -15
- package/lib/{main.js → Main.js} +2 -2
- package/lib/{menu.js → Menu.js} +10 -10
- package/lib/{menu-item.js → MenuItem.js} +339 -12
- package/lib/{menu-item-group.js → MenuItemGroup.js} +2 -2
- package/lib/{message.js → Message.js} +16 -16
- package/lib/{message-box.js → MessageBox.js} +973 -31
- package/lib/{notification.js → Notification.js} +11 -11
- package/lib/{option.js → Option.js} +11 -11
- package/lib/{option-group.js → OptionGroup.js} +2 -2
- package/lib/{page-header.js → PageHeader.js} +4 -4
- package/lib/Pagination.js +4123 -0
- package/lib/Popconfirm.js +1025 -0
- package/lib/{popover.js → Popover.js} +6 -6
- package/lib/{progress.js → Progress.js} +2 -2
- package/lib/{radio.js → Radio.js} +9 -9
- package/lib/{radio-button.js → RadioButton.js} +2 -2
- package/lib/{radio-group.js → RadioGroup.js} +2 -2
- package/lib/{rate.js → Rate.js} +20 -20
- package/lib/{result.js → Result.js} +2 -2
- package/lib/{row.js → Row.js} +2 -2
- package/lib/{scrollbar.js → Scrollbar.js} +26 -26
- package/lib/{select.js → Select.js} +1371 -170
- package/lib/{skeleton.js → Skeleton.js} +2 -2
- package/lib/{skeleton-item.js → SkeletonItem.js} +2 -2
- package/lib/Slider.js +2854 -0
- package/lib/{spinner.js → Spinner.js} +2 -2
- package/lib/{statistic.js → Statistic.js} +4 -4
- package/lib/{step.js → Step.js} +2 -2
- package/lib/{steps.js → Steps.js} +4 -4
- package/lib/{submenu.js → Submenu.js} +13 -13
- package/lib/{switch.js → Switch.js} +10 -10
- package/lib/{tab-pane.js → TabPane.js} +2 -2
- package/lib/{table.js → Table.js} +1231 -121
- package/lib/{table-column.js → TableColumn.js} +824 -295
- package/lib/{tabs.js → Tabs.js} +4 -4
- package/lib/{tag.js → Tag.js} +2 -2
- package/lib/{time-picker.js → TimePicker.js} +1183 -91
- package/lib/{time-select.js → TimeSelect.js} +1132 -26
- package/lib/{timeline.js → Timeline.js} +2 -2
- package/lib/{timeline-item.js → TimelineItem.js} +2 -2
- package/lib/{tooltip.js → Tooltip.js} +27 -27
- package/lib/Transfer.js +2557 -0
- package/lib/{tree.js → Tree.js} +436 -19
- package/lib/{upload.js → Upload.js} +411 -19
- package/lib/index.js +1 -1
- package/package.json +5 -23
- package/packages/{tabDialog → cy/tabDialog}/src/main.vue +1 -1
- package/packages/{treeSelect → cy/treeSelect}/src/main.vue +4 -4
- package/packages/theme-chalk/src/index.scss +3 -1
- package/src/index.js +16 -16
- package/types/cy/cy-element-ui.d.ts +31 -0
- package/types/cy/cy-select-display-input.d.ts +7 -0
- package/types/cy/cy-sub-title.d.ts +7 -0
- package/types/cy/cy-tab-dialog.d.ts +7 -0
- package/types/cy/cy-tree-select.d.ts +7 -0
- package/types/cy/index.d.ts +1 -0
- package/types/cy/select-display-input.d.ts +19 -0
- package/types/cy/sub-title.d.ts +10 -0
- package/types/cy/tab-dialog.d.ts +51 -0
- package/types/cy/tree-select.d.ts +44 -0
- package/types/index.d.ts +1 -0
- package/lib/autocomplete.js +0 -952
- package/lib/cascader.js +0 -1439
- package/lib/element-ui.common.js +0 -44918
- package/lib/input-number.js +0 -757
- package/lib/pagination.js +0 -950
- package/lib/popconfirm.js +0 -457
- package/lib/slider.js +0 -1199
- package/lib/theme-chalk/alert.css +0 -1
- package/lib/theme-chalk/aside.css +0 -1
- package/lib/theme-chalk/autocomplete.css +0 -1
- package/lib/theme-chalk/avatar.css +0 -1
- package/lib/theme-chalk/backtop.css +0 -1
- package/lib/theme-chalk/badge.css +0 -1
- package/lib/theme-chalk/base.css +0 -1
- package/lib/theme-chalk/breadcrumb-item.css +0 -0
- package/lib/theme-chalk/breadcrumb.css +0 -1
- package/lib/theme-chalk/button-group.css +0 -0
- package/lib/theme-chalk/button.css +0 -1
- package/lib/theme-chalk/calendar.css +0 -1
- package/lib/theme-chalk/card.css +0 -1
- package/lib/theme-chalk/carousel-item.css +0 -1
- package/lib/theme-chalk/carousel.css +0 -1
- package/lib/theme-chalk/cascader-panel.css +0 -1
- package/lib/theme-chalk/cascader.css +0 -1
- package/lib/theme-chalk/checkbox-button.css +0 -0
- package/lib/theme-chalk/checkbox-group.css +0 -0
- package/lib/theme-chalk/checkbox.css +0 -1
- package/lib/theme-chalk/col.css +0 -1
- package/lib/theme-chalk/collapse-item.css +0 -0
- package/lib/theme-chalk/collapse.css +0 -1
- package/lib/theme-chalk/color-picker.css +0 -1
- package/lib/theme-chalk/container.css +0 -1
- package/lib/theme-chalk/date-picker.css +0 -1
- package/lib/theme-chalk/descriptions-item.css +0 -1
- package/lib/theme-chalk/descriptions.css +0 -1
- package/lib/theme-chalk/dialog.css +0 -1
- package/lib/theme-chalk/display.css +0 -1
- package/lib/theme-chalk/divider.css +0 -1
- package/lib/theme-chalk/drawer.css +0 -1
- package/lib/theme-chalk/dropdown-item.css +0 -0
- package/lib/theme-chalk/dropdown-menu.css +0 -0
- package/lib/theme-chalk/dropdown.css +0 -1
- package/lib/theme-chalk/element.css +0 -1
- package/lib/theme-chalk/empty.css +0 -1
- package/lib/theme-chalk/fonts/element-icons.ttf +0 -0
- package/lib/theme-chalk/fonts/element-icons.woff +0 -0
- package/lib/theme-chalk/footer.css +0 -1
- package/lib/theme-chalk/form-item.css +0 -0
- package/lib/theme-chalk/form.css +0 -1
- package/lib/theme-chalk/header.css +0 -1
- package/lib/theme-chalk/icon.css +0 -1
- package/lib/theme-chalk/image.css +0 -1
- package/lib/theme-chalk/index.css +0 -1
- package/lib/theme-chalk/infinite-scroll.css +0 -0
- package/lib/theme-chalk/infiniteScroll.css +0 -0
- package/lib/theme-chalk/input-number.css +0 -1
- package/lib/theme-chalk/input.css +0 -1
- package/lib/theme-chalk/link.css +0 -1
- package/lib/theme-chalk/loading.css +0 -1
- package/lib/theme-chalk/main.css +0 -1
- package/lib/theme-chalk/menu-item-group.css +0 -0
- package/lib/theme-chalk/menu-item.css +0 -0
- package/lib/theme-chalk/menu.css +0 -1
- package/lib/theme-chalk/message-box.css +0 -1
- package/lib/theme-chalk/message.css +0 -1
- package/lib/theme-chalk/notification.css +0 -1
- package/lib/theme-chalk/option-group.css +0 -1
- package/lib/theme-chalk/option.css +0 -1
- package/lib/theme-chalk/page-header.css +0 -1
- package/lib/theme-chalk/pagination.css +0 -1
- package/lib/theme-chalk/popconfirm.css +0 -1
- package/lib/theme-chalk/popover.css +0 -1
- package/lib/theme-chalk/popper.css +0 -1
- package/lib/theme-chalk/progress.css +0 -1
- package/lib/theme-chalk/radio-button.css +0 -1
- package/lib/theme-chalk/radio-group.css +0 -1
- package/lib/theme-chalk/radio.css +0 -1
- package/lib/theme-chalk/rate.css +0 -1
- package/lib/theme-chalk/reset.css +0 -1
- package/lib/theme-chalk/result.css +0 -1
- package/lib/theme-chalk/row.css +0 -1
- package/lib/theme-chalk/scrollbar.css +0 -1
- package/lib/theme-chalk/select-dropdown.css +0 -1
- package/lib/theme-chalk/select.css +0 -1
- package/lib/theme-chalk/selectDisplayInput.css +0 -1
- package/lib/theme-chalk/skeleton-item.css +0 -1
- package/lib/theme-chalk/skeleton.css +0 -1
- package/lib/theme-chalk/slider.css +0 -1
- package/lib/theme-chalk/spinner.css +0 -1
- package/lib/theme-chalk/statistic.css +0 -1
- package/lib/theme-chalk/step.css +0 -1
- package/lib/theme-chalk/steps.css +0 -1
- package/lib/theme-chalk/subTitle.css +0 -1
- package/lib/theme-chalk/submenu.css +0 -0
- package/lib/theme-chalk/switch.css +0 -1
- package/lib/theme-chalk/tab-pane.css +0 -0
- package/lib/theme-chalk/tabDialog.css +0 -1
- package/lib/theme-chalk/table-column.css +0 -1
- package/lib/theme-chalk/table.css +0 -1
- package/lib/theme-chalk/tabs.css +0 -1
- package/lib/theme-chalk/tag.css +0 -1
- package/lib/theme-chalk/time-picker.css +0 -1
- package/lib/theme-chalk/time-select.css +0 -1
- package/lib/theme-chalk/timeline-item.css +0 -1
- package/lib/theme-chalk/timeline.css +0 -1
- package/lib/theme-chalk/tooltip.css +0 -1
- package/lib/theme-chalk/transfer.css +0 -1
- package/lib/theme-chalk/tree.css +0 -1
- package/lib/theme-chalk/treeSelect.css +0 -1
- package/lib/theme-chalk/upload.css +0 -1
- package/lib/transfer.js +0 -1102
- package/lib/umd/locale/en.js +0 -142
- package/lib/umd/locale/zh-CN.js +0 -142
- package/lib/umd/locale/zh-TW.js +0 -142
- package/src/locale/lang/en.js +0 -123
- package/src/locale/lang/zh-TW.js +0 -123
- /package/packages/{selectDisplayInput → cy/selectDisplayInput}/index.js +0 -0
- /package/packages/{selectDisplayInput → cy/selectDisplayInput}/src/main.vue +0 -0
- /package/packages/{subTitle → cy/subTitle}/index.js +0 -0
- /package/packages/{subTitle → cy/subTitle}/src/main.vue +0 -0
- /package/packages/{tabDialog → cy/tabDialog}/index.js +0 -0
- /package/packages/{tabDialog → cy/tabDialog}/src/dialog/drag.js +0 -0
- /package/packages/{tabDialog → cy/tabDialog}/src/dialog/dragHeight.js +0 -0
- /package/packages/{tabDialog → cy/tabDialog}/src/dialog/dragWidth.js +0 -0
- /package/packages/{treeSelect → cy/treeSelect}/index.js +0 -0
|
@@ -82,7 +82,7 @@ module.exports =
|
|
|
82
82
|
/******/
|
|
83
83
|
/******/
|
|
84
84
|
/******/ // Load entry module and return exports
|
|
85
|
-
/******/ return __webpack_require__(__webpack_require__.s =
|
|
85
|
+
/******/ return __webpack_require__(__webpack_require__.s = 60);
|
|
86
86
|
/******/ })
|
|
87
87
|
/************************************************************************/
|
|
88
88
|
/******/ ({
|
|
@@ -192,28 +192,414 @@ function normalizeComponent(
|
|
|
192
192
|
|
|
193
193
|
/***/ }),
|
|
194
194
|
|
|
195
|
-
/***/
|
|
195
|
+
/***/ 24:
|
|
196
196
|
/***/ (function(module, exports) {
|
|
197
197
|
|
|
198
|
-
module.exports = require("
|
|
198
|
+
module.exports = require("babel-helper-vue-jsx-merge-props");
|
|
199
199
|
|
|
200
200
|
/***/ }),
|
|
201
201
|
|
|
202
|
-
/***/
|
|
203
|
-
/***/ (function(module,
|
|
202
|
+
/***/ 42:
|
|
203
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
204
|
+
|
|
205
|
+
"use strict";
|
|
206
|
+
// ESM COMPAT FLAG
|
|
207
|
+
__webpack_require__.r(__webpack_exports__);
|
|
208
|
+
|
|
209
|
+
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/progress/src/progress.vue?vue&type=template&id=cee7789c
|
|
210
|
+
var render = function () {
|
|
211
|
+
var _vm = this
|
|
212
|
+
var _h = _vm.$createElement
|
|
213
|
+
var _c = _vm._self._c || _h
|
|
214
|
+
return _c(
|
|
215
|
+
"div",
|
|
216
|
+
{
|
|
217
|
+
staticClass: "el-progress",
|
|
218
|
+
class: [
|
|
219
|
+
"el-progress--" + _vm.type,
|
|
220
|
+
_vm.status ? "is-" + _vm.status : "",
|
|
221
|
+
{
|
|
222
|
+
"el-progress--without-text": !_vm.showText,
|
|
223
|
+
"el-progress--text-inside": _vm.textInside,
|
|
224
|
+
},
|
|
225
|
+
],
|
|
226
|
+
attrs: {
|
|
227
|
+
role: "progressbar",
|
|
228
|
+
"aria-valuenow": _vm.percentage,
|
|
229
|
+
"aria-valuemin": "0",
|
|
230
|
+
"aria-valuemax": "100",
|
|
231
|
+
},
|
|
232
|
+
},
|
|
233
|
+
[
|
|
234
|
+
_vm.type === "line"
|
|
235
|
+
? _c("div", { staticClass: "el-progress-bar" }, [
|
|
236
|
+
_c(
|
|
237
|
+
"div",
|
|
238
|
+
{
|
|
239
|
+
staticClass: "el-progress-bar__outer",
|
|
240
|
+
style: {
|
|
241
|
+
height: _vm.strokeWidth + "px",
|
|
242
|
+
backgroundColor: _vm.defineBackColor,
|
|
243
|
+
},
|
|
244
|
+
},
|
|
245
|
+
[
|
|
246
|
+
_c(
|
|
247
|
+
"div",
|
|
248
|
+
{
|
|
249
|
+
staticClass: "el-progress-bar__inner",
|
|
250
|
+
style: _vm.barStyle,
|
|
251
|
+
},
|
|
252
|
+
[
|
|
253
|
+
_vm.showText && _vm.textInside
|
|
254
|
+
? _c(
|
|
255
|
+
"div",
|
|
256
|
+
{
|
|
257
|
+
staticClass: "el-progress-bar__innerText",
|
|
258
|
+
style: { color: _vm.textColor },
|
|
259
|
+
},
|
|
260
|
+
[_vm._v(_vm._s(_vm.content))]
|
|
261
|
+
)
|
|
262
|
+
: _vm._e(),
|
|
263
|
+
]
|
|
264
|
+
),
|
|
265
|
+
]
|
|
266
|
+
),
|
|
267
|
+
])
|
|
268
|
+
: _c(
|
|
269
|
+
"div",
|
|
270
|
+
{
|
|
271
|
+
staticClass: "el-progress-circle",
|
|
272
|
+
style: { height: _vm.width + "px", width: _vm.width + "px" },
|
|
273
|
+
},
|
|
274
|
+
[
|
|
275
|
+
_c("svg", { attrs: { viewBox: "0 0 100 100" } }, [
|
|
276
|
+
_c("path", {
|
|
277
|
+
staticClass: "el-progress-circle__track",
|
|
278
|
+
style: _vm.trailPathStyle,
|
|
279
|
+
attrs: {
|
|
280
|
+
d: _vm.trackPath,
|
|
281
|
+
stroke: _vm.defineBackColor,
|
|
282
|
+
"stroke-width": _vm.relativeStrokeWidth,
|
|
283
|
+
fill: "none",
|
|
284
|
+
},
|
|
285
|
+
}),
|
|
286
|
+
_c("path", {
|
|
287
|
+
staticClass: "el-progress-circle__path",
|
|
288
|
+
style: _vm.circlePathStyle,
|
|
289
|
+
attrs: {
|
|
290
|
+
d: _vm.trackPath,
|
|
291
|
+
stroke: _vm.stroke,
|
|
292
|
+
fill: "none",
|
|
293
|
+
"stroke-linecap": _vm.strokeLinecap,
|
|
294
|
+
"stroke-width": _vm.percentage
|
|
295
|
+
? _vm.relativeStrokeWidth
|
|
296
|
+
: 0,
|
|
297
|
+
},
|
|
298
|
+
}),
|
|
299
|
+
]),
|
|
300
|
+
]
|
|
301
|
+
),
|
|
302
|
+
_vm.showText && !_vm.textInside
|
|
303
|
+
? _c(
|
|
304
|
+
"div",
|
|
305
|
+
{
|
|
306
|
+
staticClass: "el-progress__text",
|
|
307
|
+
style: {
|
|
308
|
+
fontSize: _vm.progressTextSize + "px",
|
|
309
|
+
color: _vm.textColor,
|
|
310
|
+
},
|
|
311
|
+
},
|
|
312
|
+
[
|
|
313
|
+
!_vm.status
|
|
314
|
+
? [_vm._v(_vm._s(_vm.content))]
|
|
315
|
+
: _c("i", { class: _vm.iconClass }),
|
|
316
|
+
],
|
|
317
|
+
2
|
|
318
|
+
)
|
|
319
|
+
: _vm._e(),
|
|
320
|
+
]
|
|
321
|
+
)
|
|
322
|
+
}
|
|
323
|
+
var staticRenderFns = []
|
|
324
|
+
render._withStripped = true
|
|
325
|
+
|
|
326
|
+
|
|
327
|
+
// CONCATENATED MODULE: ./packages/progress/src/progress.vue?vue&type=template&id=cee7789c
|
|
328
|
+
|
|
329
|
+
// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/progress/src/progress.vue?vue&type=script&lang=js
|
|
330
|
+
//
|
|
331
|
+
//
|
|
332
|
+
//
|
|
333
|
+
//
|
|
334
|
+
//
|
|
335
|
+
//
|
|
336
|
+
//
|
|
337
|
+
//
|
|
338
|
+
//
|
|
339
|
+
//
|
|
340
|
+
//
|
|
341
|
+
//
|
|
342
|
+
//
|
|
343
|
+
//
|
|
344
|
+
//
|
|
345
|
+
//
|
|
346
|
+
//
|
|
347
|
+
//
|
|
348
|
+
//
|
|
349
|
+
//
|
|
350
|
+
//
|
|
351
|
+
//
|
|
352
|
+
//
|
|
353
|
+
//
|
|
354
|
+
//
|
|
355
|
+
//
|
|
356
|
+
//
|
|
357
|
+
//
|
|
358
|
+
//
|
|
359
|
+
//
|
|
360
|
+
//
|
|
361
|
+
//
|
|
362
|
+
//
|
|
363
|
+
//
|
|
364
|
+
//
|
|
365
|
+
//
|
|
366
|
+
//
|
|
367
|
+
//
|
|
368
|
+
//
|
|
369
|
+
//
|
|
370
|
+
//
|
|
371
|
+
//
|
|
372
|
+
//
|
|
373
|
+
//
|
|
374
|
+
//
|
|
375
|
+
//
|
|
376
|
+
//
|
|
377
|
+
//
|
|
378
|
+
//
|
|
379
|
+
//
|
|
380
|
+
//
|
|
381
|
+
//
|
|
382
|
+
|
|
383
|
+
/* harmony default export */ var progressvue_type_script_lang_js = ({
|
|
384
|
+
name: 'ElProgress',
|
|
385
|
+
props: {
|
|
386
|
+
type: {
|
|
387
|
+
type: String,
|
|
388
|
+
default: 'line',
|
|
389
|
+
validator: function validator(val) {
|
|
390
|
+
return ['line', 'circle', 'dashboard'].indexOf(val) > -1;
|
|
391
|
+
}
|
|
392
|
+
},
|
|
393
|
+
percentage: {
|
|
394
|
+
type: Number,
|
|
395
|
+
default: 0,
|
|
396
|
+
required: true,
|
|
397
|
+
validator: function validator(val) {
|
|
398
|
+
return val >= 0 && val <= 100;
|
|
399
|
+
}
|
|
400
|
+
},
|
|
401
|
+
status: {
|
|
402
|
+
type: String,
|
|
403
|
+
validator: function validator(val) {
|
|
404
|
+
return ['success', 'exception', 'warning'].indexOf(val) > -1;
|
|
405
|
+
}
|
|
406
|
+
},
|
|
407
|
+
strokeWidth: {
|
|
408
|
+
type: Number,
|
|
409
|
+
default: 6
|
|
410
|
+
},
|
|
411
|
+
strokeLinecap: {
|
|
412
|
+
type: String,
|
|
413
|
+
default: 'round'
|
|
414
|
+
},
|
|
415
|
+
textInside: {
|
|
416
|
+
type: Boolean,
|
|
417
|
+
default: false
|
|
418
|
+
},
|
|
419
|
+
width: {
|
|
420
|
+
type: Number,
|
|
421
|
+
default: 126
|
|
422
|
+
},
|
|
423
|
+
showText: {
|
|
424
|
+
type: Boolean,
|
|
425
|
+
default: true
|
|
426
|
+
},
|
|
427
|
+
color: {
|
|
428
|
+
type: [String, Array, Function],
|
|
429
|
+
default: ''
|
|
430
|
+
},
|
|
431
|
+
defineBackColor: {
|
|
432
|
+
type: [String, Array, Function],
|
|
433
|
+
default: '#ebeef5'
|
|
434
|
+
},
|
|
435
|
+
textColor: {
|
|
436
|
+
type: [String, Array, Function],
|
|
437
|
+
default: '#606266'
|
|
438
|
+
},
|
|
439
|
+
format: Function
|
|
440
|
+
},
|
|
441
|
+
computed: {
|
|
442
|
+
barStyle: function barStyle() {
|
|
443
|
+
var style = {};
|
|
444
|
+
style.width = this.percentage + '%';
|
|
445
|
+
style.backgroundColor = this.getCurrentColor(this.percentage);
|
|
446
|
+
return style;
|
|
447
|
+
},
|
|
448
|
+
relativeStrokeWidth: function relativeStrokeWidth() {
|
|
449
|
+
return (this.strokeWidth / this.width * 100).toFixed(1);
|
|
450
|
+
},
|
|
451
|
+
radius: function radius() {
|
|
452
|
+
if (this.type === 'circle' || this.type === 'dashboard') {
|
|
453
|
+
return parseInt(50 - parseFloat(this.relativeStrokeWidth) / 2, 10);
|
|
454
|
+
} else {
|
|
455
|
+
return 0;
|
|
456
|
+
}
|
|
457
|
+
},
|
|
458
|
+
trackPath: function trackPath() {
|
|
459
|
+
var radius = this.radius;
|
|
460
|
+
var isDashboard = this.type === 'dashboard';
|
|
461
|
+
return '\n M 50 50\n m 0 ' + (isDashboard ? '' : '-') + radius + '\n a ' + radius + ' ' + radius + ' 0 1 1 0 ' + (isDashboard ? '-' : '') + radius * 2 + '\n a ' + radius + ' ' + radius + ' 0 1 1 0 ' + (isDashboard ? '' : '-') + radius * 2 + '\n ';
|
|
462
|
+
},
|
|
463
|
+
perimeter: function perimeter() {
|
|
464
|
+
return 2 * Math.PI * this.radius;
|
|
465
|
+
},
|
|
466
|
+
rate: function rate() {
|
|
467
|
+
return this.type === 'dashboard' ? 0.75 : 1;
|
|
468
|
+
},
|
|
469
|
+
strokeDashoffset: function strokeDashoffset() {
|
|
470
|
+
var offset = -1 * this.perimeter * (1 - this.rate) / 2;
|
|
471
|
+
return offset + 'px';
|
|
472
|
+
},
|
|
473
|
+
trailPathStyle: function trailPathStyle() {
|
|
474
|
+
return {
|
|
475
|
+
strokeDasharray: this.perimeter * this.rate + 'px, ' + this.perimeter + 'px',
|
|
476
|
+
strokeDashoffset: this.strokeDashoffset
|
|
477
|
+
};
|
|
478
|
+
},
|
|
479
|
+
circlePathStyle: function circlePathStyle() {
|
|
480
|
+
return {
|
|
481
|
+
strokeDasharray: this.perimeter * this.rate * (this.percentage / 100) + 'px, ' + this.perimeter + 'px',
|
|
482
|
+
strokeDashoffset: this.strokeDashoffset,
|
|
483
|
+
transition: 'stroke-dasharray 0.6s ease 0s, stroke 0.6s ease'
|
|
484
|
+
};
|
|
485
|
+
},
|
|
486
|
+
stroke: function stroke() {
|
|
487
|
+
var ret = void 0;
|
|
488
|
+
if (this.color) {
|
|
489
|
+
ret = this.getCurrentColor(this.percentage);
|
|
490
|
+
} else {
|
|
491
|
+
switch (this.status) {
|
|
492
|
+
case 'success':
|
|
493
|
+
ret = '#13ce66';
|
|
494
|
+
break;
|
|
495
|
+
case 'exception':
|
|
496
|
+
ret = '#ff4949';
|
|
497
|
+
break;
|
|
498
|
+
case 'warning':
|
|
499
|
+
ret = '#e6a23c';
|
|
500
|
+
break;
|
|
501
|
+
default:
|
|
502
|
+
ret = '#20a0ff';
|
|
503
|
+
}
|
|
504
|
+
}
|
|
505
|
+
return ret;
|
|
506
|
+
},
|
|
507
|
+
iconClass: function iconClass() {
|
|
508
|
+
if (this.status === 'warning') {
|
|
509
|
+
return 'el-icon-warning';
|
|
510
|
+
}
|
|
511
|
+
if (this.type === 'line') {
|
|
512
|
+
return this.status === 'success' ? 'el-icon-circle-check' : 'el-icon-circle-close';
|
|
513
|
+
} else {
|
|
514
|
+
return this.status === 'success' ? 'el-icon-check' : 'el-icon-close';
|
|
515
|
+
}
|
|
516
|
+
},
|
|
517
|
+
progressTextSize: function progressTextSize() {
|
|
518
|
+
return this.type === 'line' ? 12 + this.strokeWidth * 0.4 : this.width * 0.111111 + 2;
|
|
519
|
+
},
|
|
520
|
+
content: function content() {
|
|
521
|
+
if (typeof this.format === 'function') {
|
|
522
|
+
return this.format(this.percentage) || '';
|
|
523
|
+
} else {
|
|
524
|
+
return this.percentage + '%';
|
|
525
|
+
}
|
|
526
|
+
}
|
|
527
|
+
},
|
|
528
|
+
methods: {
|
|
529
|
+
getCurrentColor: function getCurrentColor(percentage) {
|
|
530
|
+
if (typeof this.color === 'function') {
|
|
531
|
+
return this.color(percentage);
|
|
532
|
+
} else if (typeof this.color === 'string') {
|
|
533
|
+
return this.color;
|
|
534
|
+
} else {
|
|
535
|
+
return this.getLevelColor(percentage);
|
|
536
|
+
}
|
|
537
|
+
},
|
|
538
|
+
getLevelColor: function getLevelColor(percentage) {
|
|
539
|
+
var colorArray = this.getColorArray().sort(function (a, b) {
|
|
540
|
+
return a.percentage - b.percentage;
|
|
541
|
+
});
|
|
542
|
+
|
|
543
|
+
for (var i = 0; i < colorArray.length; i++) {
|
|
544
|
+
if (colorArray[i].percentage > percentage) {
|
|
545
|
+
return colorArray[i].color;
|
|
546
|
+
}
|
|
547
|
+
}
|
|
548
|
+
return colorArray[colorArray.length - 1].color;
|
|
549
|
+
},
|
|
550
|
+
getColorArray: function getColorArray() {
|
|
551
|
+
var color = this.color;
|
|
552
|
+
var span = 100 / color.length;
|
|
553
|
+
return color.map(function (seriesColor, index) {
|
|
554
|
+
if (typeof seriesColor === 'string') {
|
|
555
|
+
return {
|
|
556
|
+
color: seriesColor,
|
|
557
|
+
percentage: (index + 1) * span
|
|
558
|
+
};
|
|
559
|
+
}
|
|
560
|
+
return seriesColor;
|
|
561
|
+
});
|
|
562
|
+
}
|
|
563
|
+
}
|
|
564
|
+
});
|
|
565
|
+
// CONCATENATED MODULE: ./packages/progress/src/progress.vue?vue&type=script&lang=js
|
|
566
|
+
/* harmony default export */ var src_progressvue_type_script_lang_js = (progressvue_type_script_lang_js);
|
|
567
|
+
// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
|
|
568
|
+
var componentNormalizer = __webpack_require__(0);
|
|
569
|
+
|
|
570
|
+
// CONCATENATED MODULE: ./packages/progress/src/progress.vue
|
|
204
571
|
|
|
205
|
-
module.exports = require("babel-helper-vue-jsx-merge-props");
|
|
206
572
|
|
|
207
|
-
/***/ }),
|
|
208
573
|
|
|
209
|
-
/***/ 48:
|
|
210
|
-
/***/ (function(module, exports) {
|
|
211
574
|
|
|
212
|
-
|
|
575
|
+
|
|
576
|
+
/* normalize component */
|
|
577
|
+
|
|
578
|
+
var component = Object(componentNormalizer["a" /* default */])(
|
|
579
|
+
src_progressvue_type_script_lang_js,
|
|
580
|
+
render,
|
|
581
|
+
staticRenderFns,
|
|
582
|
+
false,
|
|
583
|
+
null,
|
|
584
|
+
null,
|
|
585
|
+
null
|
|
586
|
+
|
|
587
|
+
)
|
|
588
|
+
|
|
589
|
+
/* harmony default export */ var progress = (component.exports);
|
|
590
|
+
// CONCATENATED MODULE: ./packages/progress/index.js
|
|
591
|
+
|
|
592
|
+
|
|
593
|
+
/* istanbul ignore next */
|
|
594
|
+
progress.install = function (Vue) {
|
|
595
|
+
Vue.component(progress.name, progress);
|
|
596
|
+
};
|
|
597
|
+
|
|
598
|
+
/* harmony default export */ var packages_progress = __webpack_exports__["default"] = (progress);
|
|
213
599
|
|
|
214
600
|
/***/ }),
|
|
215
601
|
|
|
216
|
-
/***/
|
|
602
|
+
/***/ 60:
|
|
217
603
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
218
604
|
|
|
219
605
|
"use strict";
|
|
@@ -384,12 +770,11 @@ upload_listvue_type_template_id_3c713bfc_render._withStripped = true
|
|
|
384
770
|
// CONCATENATED MODULE: ./packages/upload/src/upload-list.vue?vue&type=template&id=3c713bfc
|
|
385
771
|
|
|
386
772
|
// EXTERNAL MODULE: external "element-ui/lib/mixins/locale"
|
|
387
|
-
var locale_ = __webpack_require__(
|
|
773
|
+
var locale_ = __webpack_require__(9);
|
|
388
774
|
var locale_default = /*#__PURE__*/__webpack_require__.n(locale_);
|
|
389
775
|
|
|
390
|
-
// EXTERNAL MODULE:
|
|
391
|
-
var
|
|
392
|
-
var progress_default = /*#__PURE__*/__webpack_require__.n(progress_);
|
|
776
|
+
// EXTERNAL MODULE: ./packages/progress/index.js + 5 modules
|
|
777
|
+
var progress = __webpack_require__(42);
|
|
393
778
|
|
|
394
779
|
// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/upload/src/upload-list.vue?vue&type=script&lang=js
|
|
395
780
|
//
|
|
@@ -472,7 +857,7 @@ var progress_default = /*#__PURE__*/__webpack_require__.n(progress_);
|
|
|
472
857
|
};
|
|
473
858
|
},
|
|
474
859
|
|
|
475
|
-
components: { ElProgress:
|
|
860
|
+
components: { ElProgress: progress["default"] },
|
|
476
861
|
|
|
477
862
|
props: {
|
|
478
863
|
files: {
|
|
@@ -523,7 +908,7 @@ var component = Object(componentNormalizer["a" /* default */])(
|
|
|
523
908
|
|
|
524
909
|
/* harmony default export */ var upload_list = (component.exports);
|
|
525
910
|
// EXTERNAL MODULE: external "babel-helper-vue-jsx-merge-props"
|
|
526
|
-
var external_babel_helper_vue_jsx_merge_props_ = __webpack_require__(
|
|
911
|
+
var external_babel_helper_vue_jsx_merge_props_ = __webpack_require__(24);
|
|
527
912
|
var external_babel_helper_vue_jsx_merge_props_default = /*#__PURE__*/__webpack_require__.n(external_babel_helper_vue_jsx_merge_props_);
|
|
528
913
|
|
|
529
914
|
// CONCATENATED MODULE: ./packages/upload/src/ajax.js
|
|
@@ -999,7 +1384,7 @@ var upload_component = Object(componentNormalizer["a" /* default */])(
|
|
|
999
1384
|
|
|
1000
1385
|
/* harmony default export */ var src_upload = (upload_component.exports);
|
|
1001
1386
|
// EXTERNAL MODULE: external "element-ui/lib/mixins/migrating"
|
|
1002
|
-
var migrating_ = __webpack_require__(
|
|
1387
|
+
var migrating_ = __webpack_require__(7);
|
|
1003
1388
|
var migrating_default = /*#__PURE__*/__webpack_require__.n(migrating_);
|
|
1004
1389
|
|
|
1005
1390
|
// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/upload/src/index.vue?vue&type=script&lang=js
|
|
@@ -1017,7 +1402,7 @@ function noop() {}
|
|
|
1017
1402
|
mixins: [migrating_default.a],
|
|
1018
1403
|
|
|
1019
1404
|
components: {
|
|
1020
|
-
ElProgress:
|
|
1405
|
+
ElProgress: progress["default"],
|
|
1021
1406
|
UploadList: upload_list,
|
|
1022
1407
|
Upload: src_upload
|
|
1023
1408
|
},
|
|
@@ -1383,6 +1768,13 @@ src.install = function (Vue) {
|
|
|
1383
1768
|
/***/ 7:
|
|
1384
1769
|
/***/ (function(module, exports) {
|
|
1385
1770
|
|
|
1771
|
+
module.exports = require("element-ui/lib/mixins/migrating");
|
|
1772
|
+
|
|
1773
|
+
/***/ }),
|
|
1774
|
+
|
|
1775
|
+
/***/ 9:
|
|
1776
|
+
/***/ (function(module, exports) {
|
|
1777
|
+
|
|
1386
1778
|
module.exports = require("element-ui/lib/mixins/locale");
|
|
1387
1779
|
|
|
1388
1780
|
/***/ })
|