@web-utils/component 2.7.29 → 2.7.31
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/dist/chunks/{config.7dec2bf2.js → config.75161c38.js} +29 -29
- package/dist/chunks/confirmable-mixin.851d6299.js +137 -0
- package/dist/chunks/dataformat.b8c8c01a.js +237 -0
- package/dist/chunks/detail.6135ade5.js +55 -0
- package/dist/chunks/dic.e57b75f2.js +215 -0
- package/dist/chunks/{event.fc358074.js → event.812c361c.js} +54 -23
- package/dist/chunks/{form-input-mixin.760cd65d.js → form-input-mixin.3e63b57f.js} +4 -4
- package/dist/chunks/{form-item-mixin.fa314b67.js → form-item-mixin.a56c101a.js} +44 -17
- package/dist/chunks/{form-pick-mixin.c4e0391b.js → form-pick-mixin.822300f3.js} +1 -1
- package/dist/chunks/{init.e0133910.js → init.38cbb3a2.js} +41 -21
- package/dist/chunks/{input-number-mixin.6849fa63.js → input-number-mixin.44b78389.js} +4 -4
- package/dist/chunks/{mixins.6a394a6c.js → mixins.e1939731.js} +3 -2
- package/dist/chunks/{packages.419bde01.js → packages.c4ea639d.js} +12 -6
- package/dist/chunks/{permission.07c49abf.js → permission.9c766972.js} +6 -1
- package/dist/chunks/slot.55598d0f.js +35 -0
- package/dist/chunks/{tab-mixin.9d568df9.js → tab-mixin.9d848bf6.js} +29 -11
- package/dist/chunks/util.b0d0b0ad.js +478 -0
- package/dist/chunks/{utils.d7f73f8d.js → utils.2a3ffac9.js} +89 -24
- package/dist/chunks/{utils.f44207f4.js → utils.a8891d2c.js} +9 -5
- package/dist/chunks/vueComponentNormalizer.9c6b8b3d.js +59 -0
- package/dist/components/address-input/index.js +30 -17
- package/dist/components/address-input/style.css +15 -1
- package/dist/components/affix/index.js +78 -28
- package/dist/components/affix/style.css +5 -1
- package/dist/components/aside-menu/index.js +14 -8
- package/dist/components/aside-menu/style.css +9 -1
- package/dist/components/avatar/index.js +33 -15
- package/dist/components/avatar/style.css +57 -1
- package/dist/components/awesome-button/index.js +45 -31
- package/dist/components/base.css +410 -1
- package/dist/components/capsule-tab/index.js +13 -7
- package/dist/components/capsule-tab/style.css +32 -1
- package/dist/components/card/index.js +33 -20
- package/dist/components/card/style.css +90 -1
- package/dist/components/carousel/index.js +18 -12
- package/dist/components/carousel/style.css +41 -1
- package/dist/components/chat/index.js +245 -139
- package/dist/components/chat/style.css +279 -1
- package/dist/components/chunk-file-uploader/index.js +63 -29
- package/dist/components/chunk-file-uploader/style.css +4 -1
- package/dist/components/chunk-file-uploader-button/index.js +15 -9
- package/dist/components/chunk-file-uploader-button/style.css +17 -1
- package/dist/components/chunk-file-uploader-drop/index.js +45 -27
- package/dist/components/chunk-file-uploader-drop/style.css +12 -1
- package/dist/components/chunk-file-uploader-file/index.js +150 -73
- package/dist/components/chunk-file-uploader-file/style.css +125 -1
- package/dist/components/chunk-file-uploader-files/index.js +15 -9
- package/dist/components/chunk-file-uploader-files/style.css +9 -1
- package/dist/components/chunk-file-uploader-list/index.js +16 -10
- package/dist/components/chunk-file-uploader-list/style.css +9 -1
- package/dist/components/chunk-file-uploader-un-support/index.js +18 -10
- package/dist/components/chunk-file-uploader-un-support/style.css +6 -1
- package/dist/components/code-mirror-editor/index.js +75 -47
- package/dist/components/code-mirror-editor/style.css +17 -1
- package/dist/components/color-picker/index.js +62 -39
- package/dist/components/column/index.js +54 -29
- package/dist/components/column-default/index.js +47 -33
- package/dist/components/column-dynamic/index.js +26 -19
- package/dist/components/column-menu/index.js +98 -86
- package/dist/components/column-slot/index.js +135 -75
- package/dist/components/comment/index.js +28 -15
- package/dist/components/comment/style.css +92 -1
- package/dist/components/confirm-button/index.js +7 -5
- package/dist/components/confirmable/index.js +5 -4
- package/dist/components/context-menu/index.js +54 -32
- package/dist/components/context-menu/style.css +88 -1
- package/dist/components/count-up/index.js +55 -38
- package/dist/components/custom-scrollbar/index.js +45 -21
- package/dist/components/data-box/index.js +22 -16
- package/dist/components/data-box/style.css +58 -1
- package/dist/components/data-card/index.js +21 -15
- package/dist/components/data-card/style.css +46 -1
- package/dist/components/data-cardtext/index.js +19 -13
- package/dist/components/data-cardtext/style.css +36 -1
- package/dist/components/data-display/index.js +22 -16
- package/dist/components/data-display/style.css +37 -1
- package/dist/components/data-icons/index.js +23 -17
- package/dist/components/data-icons/style.css +53 -1
- package/dist/components/data-imgtext/index.js +26 -20
- package/dist/components/data-imgtext/style.css +70 -1
- package/dist/components/data-operatext/index.js +20 -14
- package/dist/components/data-operatext/style.css +81 -1
- package/dist/components/data-panel/index.js +21 -15
- package/dist/components/data-panel/style.css +37 -1
- package/dist/components/data-pay/index.js +29 -23
- package/dist/components/data-pay/style.css +102 -1
- package/dist/components/data-price/index.js +19 -13
- package/dist/components/data-price/style.css +81 -1
- package/dist/components/data-progress/index.js +26 -20
- package/dist/components/data-progress/style.css +30 -1
- package/dist/components/data-rotate/index.js +21 -15
- package/dist/components/data-rotate/style.css +50 -1
- package/dist/components/data-table-picker/index.js +47 -28
- package/dist/components/data-tabs/index.js +22 -16
- package/dist/components/data-tabs/style.css +70 -1
- package/dist/components/dialog-column/index.js +46 -33
- package/dist/components/dialog-excel/index.js +102 -53
- package/dist/components/dialog-filter/index.js +64 -51
- package/dist/components/dialog-form/index.js +56 -115
- package/dist/components/dialog-form/style.css +10 -1
- package/dist/components/dynamic-table/index.js +66 -42
- package/dist/components/dynamic-table/style.css +30 -1
- package/dist/components/e-charts/index.js +127 -46
- package/dist/components/e-charts/style.css +10 -1
- package/dist/components/easy-popup/index.js +32 -14
- package/dist/components/easy-popup/style.css +18 -1
- package/dist/components/editable-progress/index.js +64 -31
- package/dist/components/editable-progress/style.css +37 -1
- package/dist/components/editable-tree/index.js +513 -287
- package/dist/components/editable-tree/style.css +82 -1
- package/dist/components/egd-collapse/index.js +25 -12
- package/dist/components/egd-collapse-item/index.js +41 -25
- package/dist/components/element-dialog/index.js +101 -48
- package/dist/components/element-dialog/style.css +88 -1
- package/dist/components/empty-view/index.js +13 -7
- package/dist/components/empty-view/style.css +17 -1
- package/dist/components/error-view/index.js +12 -6
- package/dist/components/error-view/style.css +17 -1
- package/dist/components/flex-column/index.js +39 -17
- package/dist/components/flex-item/index.js +59 -24
- package/dist/components/flex-row/index.js +39 -17
- package/dist/components/flex-scroller/index.js +13 -7
- package/dist/components/flex-scroller/style.css +20 -1
- package/dist/components/flow/index.js +116 -64
- package/dist/components/flow/style.css +44 -1
- package/dist/components/flow-node/index.js +29 -21
- package/dist/components/flow-viewer/index.js +97 -52
- package/dist/components/flow-viewer/style.css +19 -1
- package/dist/components/form-button/index.js +12 -8
- package/dist/components/form-cascader/index.js +55 -40
- package/dist/components/form-checkbox-group/index.js +90 -60
- package/dist/components/form-checkbox-group/style.css +51 -1
- package/dist/components/form-date-picker/index.js +113 -44
- package/dist/components/form-group/index.js +23 -17
- package/dist/components/form-group/style.css +76 -1
- package/dist/components/form-holder/index.js +41 -30
- package/dist/components/form-input/index.js +42 -31
- package/dist/components/form-input-email/index.js +47 -30
- package/dist/components/form-input-id-card/index.js +40 -29
- package/dist/components/form-input-number/index.js +50 -38
- package/dist/components/form-input-number/style.css +12 -1
- package/dist/components/form-input-phone-number/index.js +40 -29
- package/dist/components/form-input-time/index.js +40 -29
- package/dist/components/form-item/index.js +99 -47
- package/dist/components/form-item/style.css +11 -1
- package/dist/components/form-item-config-provider/index.js +9 -8
- package/dist/components/form-item-group/index.js +69 -43
- package/dist/components/form-item-group/style.css +30 -1
- package/dist/components/form-radio-group/index.js +77 -53
- package/dist/components/form-radio-group/style.css +53 -1
- package/dist/components/form-select/index.js +71 -51
- package/dist/components/form-switch/index.js +41 -30
- package/dist/components/form-temp/index.js +49 -29
- package/dist/components/form-textarea/index.js +45 -34
- package/dist/components/form-view/index.js +152 -81
- package/dist/components/form-view/style.css +158 -1
- package/dist/components/fy-array/index.js +51 -43
- package/dist/components/fy-array/style.css +18 -1
- package/dist/components/fy-article/index.js +24 -13
- package/dist/components/fy-article/style.css +40 -1
- package/dist/components/fy-cascader/index.js +39 -29
- package/dist/components/fy-checkbox/index.js +38 -27
- package/dist/components/fy-checkbox/style.css +15 -1
- package/dist/components/fy-code/index.js +19 -12
- package/dist/components/fy-curd/index.js +290 -152
- package/dist/components/fy-curd/style.css +239 -1
- package/dist/components/fy-date/index.js +24 -18
- package/dist/components/fy-date/style.css +21 -1
- package/dist/components/fy-dialog-form/index.js +127 -54
- package/dist/components/fy-draggable/index.js +196 -73
- package/dist/components/fy-draggable/style.css +136 -1
- package/dist/components/fy-dynamic/index.js +116 -73
- package/dist/components/fy-dynamic/style.css +35 -1
- package/dist/components/fy-empty/index.js +15 -9
- package/dist/components/fy-empty/style.css +24 -1
- package/dist/components/fy-form/index.js +399 -221
- package/dist/components/fy-form/style.css +79 -1
- package/dist/components/fy-form-design/index.js +2267 -1630
- package/dist/components/fy-form-design/style.css +578 -1
- package/dist/components/fy-form-menu/index.js +43 -35
- package/dist/components/fy-input/index.js +46 -35
- package/dist/components/fy-input-color/index.js +40 -33
- package/dist/components/fy-input-icon/index.js +58 -37
- package/dist/components/fy-input-icon/style.css +39 -1
- package/dist/components/fy-input-map/index.js +113 -68
- package/dist/components/fy-input-map/style.css +50 -1
- package/dist/components/fy-input-number/index.js +29 -24
- package/dist/components/fy-input-table/index.js +82 -48
- package/dist/components/fy-input-table/style.css +10 -1
- package/dist/components/fy-input-tree/index.js +104 -60
- package/dist/components/fy-input-tree/style.css +25 -1
- package/dist/components/fy-progress/index.js +15 -10
- package/dist/components/fy-radio/index.js +20 -14
- package/dist/components/fy-radio/style.css +12 -1
- package/dist/components/fy-rate/index.js +21 -15
- package/dist/components/fy-rate/style.css +9 -1
- package/dist/components/fy-select/index.js +73 -55
- package/dist/components/fy-select/style.css +25 -1
- package/dist/components/fy-slider/index.js +22 -17
- package/dist/components/fy-switch/index.js +17 -12
- package/dist/components/fy-tabs/index.js +20 -12
- package/dist/components/fy-tabs/style.css +6 -0
- package/dist/components/fy-time/index.js +29 -18
- package/dist/components/fy-title/index.js +16 -8
- package/dist/components/fy-title/style.css +11 -1
- package/dist/components/fy-tree/index.js +135 -72
- package/dist/components/fy-tree/style.css +46 -1
- package/dist/components/fy-u-editor/index.js +172 -67
- package/dist/components/fy-u-editor/style.css +15 -1
- package/dist/components/fy-upload/index.js +317 -148
- package/dist/components/fy-upload/style.css +60 -1
- package/dist/components/guide-steps/index.js +31 -17
- package/dist/components/guide-steps/style.css +34 -1
- package/dist/components/header-menu/index.js +86 -66
- package/dist/components/header-search/index.js +92 -60
- package/dist/components/highlight-j-s/index.js +28 -15
- package/dist/components/highlight-j-s/style.css +21 -1
- package/dist/components/icon-card/index.js +13 -7
- package/dist/components/icon-card/style.css +56 -1
- package/dist/components/icon-temp/index.js +12 -6
- package/dist/components/icon-temp/style.css +21 -1
- package/dist/components/iframe-window/index.js +20 -14
- package/dist/components/iframe-window/style.css +20 -1
- package/dist/components/image-cropper/index.js +71 -162
- package/dist/components/image-cropper/style.css +34 -1
- package/dist/components/image-preview/index.js +78 -170
- package/dist/components/image-preview/style.css +72 -1
- package/dist/components/image-viewer/index.js +40 -22
- package/dist/components/image-viewer/style.css +21 -1
- package/dist/components/input-number/index.js +122 -56
- package/dist/components/input-number/style.css +15 -1
- package/dist/components/input-number-range/index.js +32 -20
- package/dist/components/input-number-range/style.css +12 -1
- package/dist/components/keep-view-alive/index.js +68 -21
- package/dist/components/keyboard/index.js +217 -132
- package/dist/components/keyboard/style.css +547 -1
- package/dist/components/license/index.js +81 -35
- package/dist/components/loading-view/index.js +12 -6
- package/dist/components/loading-view/style.css +17 -1
- package/dist/components/login/index.js +91 -62
- package/dist/components/login/style.css +25 -1
- package/dist/components/name-avatar/index.js +32 -10
- package/dist/components/name-avatar/style.css +35 -1
- package/dist/components/nav-bar/index.js +21 -11
- package/dist/components/nav-bar/style.css +17 -1
- package/dist/components/not-implement/index.js +16 -8
- package/dist/components/not-implement/style.css +15 -1
- package/dist/components/notice/index.js +40 -27
- package/dist/components/notice/style.css +54 -1
- package/dist/components/page/index.js +13 -7
- package/dist/components/page/style.css +12 -1
- package/dist/components/page-header/index.js +15 -9
- package/dist/components/page-header/style.css +14 -1
- package/dist/components/page-index/index.js +62 -37
- package/dist/components/page-index/style.css +23 -1
- package/dist/components/page-index-top/index.js +53 -34
- package/dist/components/page-skeleton/index.js +15 -9
- package/dist/components/page-skeleton/style.css +23 -1
- package/dist/components/page-skeleton-new/index.js +15 -9
- package/dist/components/page-skeleton-new/style.css +42 -1
- package/dist/components/pageable-table/index.js +187 -106
- package/dist/components/pageable-table/style.css +72 -1
- package/dist/components/pageable-view/index.js +164 -80
- package/dist/components/pageable-view/style.css +69 -1
- package/dist/components/photo-swipe/index.js +92 -46
- package/dist/components/process-designer/index.js +961 -772
- package/dist/components/process-designer/style.css +1186 -1
- package/dist/components/properties-panel/index.js +1488 -1044
- package/dist/components/properties-panel/style.css +122 -1
- package/dist/components/queue/index.js +24 -12
- package/dist/components/record-video/index.js +53 -27
- package/dist/components/record-video/style.css +53 -1
- package/dist/components/resize-observer/index.js +52 -18
- package/dist/components/resize-observer/style.css +31 -1
- package/dist/components/search/index.js +41 -22
- package/dist/components/search/style.css +57 -1
- package/dist/components/search-popover/index.js +153 -91
- package/dist/components/search-popover/style.css +93 -1
- package/dist/components/sign/index.js +138 -35
- package/dist/components/sign/style.css +12 -1
- package/dist/components/sign-panel/index.js +96 -46
- package/dist/components/sign-panel/style.css +97 -1
- package/dist/components/skeleton/index.js +22 -12
- package/dist/components/skeleton/style.css +61 -1
- package/dist/components/split-pane/index.js +125 -60
- package/dist/components/split-pane/style.css +100 -1
- package/dist/components/stateful/index.js +8 -5
- package/dist/components/stateful/style.css +33 -1
- package/dist/components/static-pageable-table/index.js +22 -15
- package/dist/components/static-pageable-table/style.css +9 -1
- package/dist/components/swiper/index.js +127 -58
- package/dist/components/swiper/style.css +43 -1
- package/dist/components/tab/index.js +34 -16
- package/dist/components/tab/style.css +122 -1
- package/dist/components/tab-item/index.js +14 -9
- package/dist/components/table-column/index.js +26 -17
- package/dist/components/table-page/index.js +42 -23
- package/dist/components/table-view/index.js +162 -87
- package/dist/components/table-view/style.css +95 -1
- package/dist/components/tag-render/index.js +41 -22
- package/dist/components/tag-render/style.css +33 -1
- package/dist/components/text-ellipsis/index.js +48 -26
- package/dist/components/text-ellipsis/style.css +9 -1
- package/dist/components/tinymce-editor/index.js +80 -60
- package/dist/components/tinymce-editor/style.css +43 -1
- package/dist/components/tinymce-wrapper/index.js +77 -41
- package/dist/components/tinymce-wrapper/style.css +36 -1
- package/dist/components/toolbar/index.js +46 -25
- package/dist/components/toolbar/style.css +39 -1
- package/dist/components/toolbar-button/index.js +46 -35
- package/dist/components/toolbar-button/style.css +21 -1
- package/dist/components/trigger/index.js +15 -8
- package/dist/components/verify/index.js +15 -8
- package/dist/components/verify/style.css +15 -1
- package/dist/components/vue-tags-input/index.js +233 -113
- package/dist/components/vue-tags-input/style.css +688 -1
- package/dist/components/watermark/index.js +33 -14
- package/dist/components/watermark/style.css +11 -1
- package/dist/index.css +2434 -1750
- package/dist/index.es.js +15982 -9409
- package/package.json +4 -4
- package/web-types.json +1 -1
- package/dist/chunks/confirmable-mixin.35bd1934.js +0 -104
- package/dist/chunks/dataformat.9cc4428a.js +0 -158
- package/dist/chunks/detail.544c52b0.js +0 -29
- package/dist/chunks/dic.9de2fe5a.js +0 -135
- package/dist/chunks/slot.a7387ecc.js +0 -27
- package/dist/chunks/util.89913643.js +0 -261
- package/dist/chunks/vueComponentNormalizer.77ec6792.js +0 -32
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@web-utils/component",
|
|
3
|
-
"version": "2.7.
|
|
3
|
+
"version": "2.7.31",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"private": false,
|
|
6
6
|
"license": "MIT",
|
|
@@ -32,9 +32,9 @@
|
|
|
32
32
|
"@tinymce/tinymce-vue": "3.2.8",
|
|
33
33
|
"@wangeditor/editor": "^5.1.23",
|
|
34
34
|
"@wangeditor/editor-for-vue": "^1.0.2",
|
|
35
|
-
"@web-utils/core": "^2.0.
|
|
36
|
-
"@web-utils/integrations": "^2.0.
|
|
37
|
-
"@web-utils/vue": "^2.0.
|
|
35
|
+
"@web-utils/core": "^2.0.28",
|
|
36
|
+
"@web-utils/integrations": "^2.0.28",
|
|
37
|
+
"@web-utils/vue": "^2.0.28",
|
|
38
38
|
"codemirror": "^5.65.11",
|
|
39
39
|
"countup.js": "^2.4.2",
|
|
40
40
|
"echarts": "^5.4.1",
|
package/web-types.json
CHANGED
|
@@ -1,104 +0,0 @@
|
|
|
1
|
-
var __defProp = Object.defineProperty, __defProps = Object.defineProperties;
|
|
2
|
-
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
3
|
-
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
4
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty, __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: !0, configurable: !0, writable: !0, value }) : obj[key] = value, __spreadValues = (a, b) => {
|
|
6
|
-
for (var prop in b || (b = {}))
|
|
7
|
-
__hasOwnProp.call(b, prop) && __defNormalProp(a, prop, b[prop]);
|
|
8
|
-
if (__getOwnPropSymbols)
|
|
9
|
-
for (var prop of __getOwnPropSymbols(b))
|
|
10
|
-
__propIsEnum.call(b, prop) && __defNormalProp(a, prop, b[prop]);
|
|
11
|
-
return a;
|
|
12
|
-
}, __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
13
|
-
var __async = (__this, __arguments, generator) => new Promise((resolve, reject) => {
|
|
14
|
-
var fulfilled = (value) => {
|
|
15
|
-
try {
|
|
16
|
-
step(generator.next(value));
|
|
17
|
-
} catch (e) {
|
|
18
|
-
reject(e);
|
|
19
|
-
}
|
|
20
|
-
}, rejected = (value) => {
|
|
21
|
-
try {
|
|
22
|
-
step(generator.throw(value));
|
|
23
|
-
} catch (e) {
|
|
24
|
-
reject(e);
|
|
25
|
-
}
|
|
26
|
-
}, step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
|
|
27
|
-
step((generator = generator.apply(__this, __arguments)).next());
|
|
28
|
-
});
|
|
29
|
-
import { MessageBox, Loading } from "element-ui";
|
|
30
|
-
import { isFunction } from "@web-utils/core";
|
|
31
|
-
function onClick(e, props, listeners) {
|
|
32
|
-
return __async(this, null, function* () {
|
|
33
|
-
const { stop, prevent, message, loadable, loadingText, confirmable, confirmType, confirmText } = props;
|
|
34
|
-
stop && e.stopPropagation(), prevent && e.preventDefault();
|
|
35
|
-
const { before, click, cancel, after } = listeners;
|
|
36
|
-
if (isFunction(click))
|
|
37
|
-
try {
|
|
38
|
-
let pass = !0;
|
|
39
|
-
if (isFunction(before) && (pass = yield before(e)), pass === !1)
|
|
40
|
-
return;
|
|
41
|
-
confirmable && (yield MessageBox.confirm(message || confirmText, { type: confirmType }));
|
|
42
|
-
let loadingInstance;
|
|
43
|
-
loadable && (loadingInstance = Loading.service({ background: "rgba(0,0,0,0.3)", text: loadingText }));
|
|
44
|
-
try {
|
|
45
|
-
yield click(e);
|
|
46
|
-
} catch (e2) {
|
|
47
|
-
}
|
|
48
|
-
loadable && loadingInstance.close(), isFunction(after) && (yield after(e));
|
|
49
|
-
} catch (e2) {
|
|
50
|
-
isFunction(cancel) && (yield cancel(e2));
|
|
51
|
-
}
|
|
52
|
-
});
|
|
53
|
-
}
|
|
54
|
-
const confirmableMixin = {
|
|
55
|
-
functional: !0,
|
|
56
|
-
props: {
|
|
57
|
-
stop: {
|
|
58
|
-
type: Boolean,
|
|
59
|
-
default: !0
|
|
60
|
-
},
|
|
61
|
-
prevent: {
|
|
62
|
-
type: Boolean,
|
|
63
|
-
default: !0
|
|
64
|
-
},
|
|
65
|
-
text: {
|
|
66
|
-
type: String,
|
|
67
|
-
default: ""
|
|
68
|
-
},
|
|
69
|
-
message: {
|
|
70
|
-
type: String,
|
|
71
|
-
default: "你确定要删除该记录吗?"
|
|
72
|
-
},
|
|
73
|
-
confirmable: {
|
|
74
|
-
type: Boolean,
|
|
75
|
-
default: !0
|
|
76
|
-
},
|
|
77
|
-
confirmText: {
|
|
78
|
-
type: String,
|
|
79
|
-
default: "你确定要删除该记录吗?"
|
|
80
|
-
},
|
|
81
|
-
confirmType: {
|
|
82
|
-
type: String,
|
|
83
|
-
default: "warning"
|
|
84
|
-
},
|
|
85
|
-
loadable: Boolean,
|
|
86
|
-
loadingText: {
|
|
87
|
-
type: String,
|
|
88
|
-
default: "正在处理中请稍候..."
|
|
89
|
-
},
|
|
90
|
-
tag: {
|
|
91
|
-
type: String,
|
|
92
|
-
default: "i"
|
|
93
|
-
}
|
|
94
|
-
},
|
|
95
|
-
render(createElement, { props, data, children, listeners }) {
|
|
96
|
-
return createElement(props.tag, __spreadProps(__spreadValues({}, data), {
|
|
97
|
-
on: { click: (e) => onClick(e, props, listeners) },
|
|
98
|
-
props
|
|
99
|
-
}), children || props.text);
|
|
100
|
-
}
|
|
101
|
-
};
|
|
102
|
-
export {
|
|
103
|
-
confirmableMixin as c
|
|
104
|
-
};
|
|
@@ -1,158 +0,0 @@
|
|
|
1
|
-
import { isBlank } from "@web-utils/core";
|
|
2
|
-
import { n as findObject, M as MULTIPLE_LIST, A as ARRAY_VALUE_LIST, R as RANGE_LIST, p as detailDataType, f as ARRAY_LIST, K as KEY_COMPONENT_NAME, q as createObj, S as SELECT_LIST, c as DIC_SPLIT, j as DATE_LIST, I as INPUT_LIST } from "./util.89913643.js";
|
|
3
|
-
const lang = {
|
|
4
|
-
common: {
|
|
5
|
-
condition: "条件",
|
|
6
|
-
display: "显示",
|
|
7
|
-
hide: "隐藏"
|
|
8
|
-
},
|
|
9
|
-
tip: {
|
|
10
|
-
select: "请选择",
|
|
11
|
-
input: "请输入"
|
|
12
|
-
},
|
|
13
|
-
check: {
|
|
14
|
-
checkAll: "全选"
|
|
15
|
-
},
|
|
16
|
-
upload: {
|
|
17
|
-
upload: "点击上传",
|
|
18
|
-
tip: "将文件拖到此处,或"
|
|
19
|
-
},
|
|
20
|
-
time: {
|
|
21
|
-
start: "开始",
|
|
22
|
-
end: "结束"
|
|
23
|
-
},
|
|
24
|
-
date: {
|
|
25
|
-
start: "开始",
|
|
26
|
-
end: "结束",
|
|
27
|
-
t: "今日",
|
|
28
|
-
y: "昨日",
|
|
29
|
-
n: "近7天",
|
|
30
|
-
a: "全部"
|
|
31
|
-
},
|
|
32
|
-
form: {
|
|
33
|
-
printBtn: "打 印",
|
|
34
|
-
mockBtn: "模 拟",
|
|
35
|
-
submitBtn: "提 交",
|
|
36
|
-
emptyBtn: "清 空"
|
|
37
|
-
},
|
|
38
|
-
crud: {
|
|
39
|
-
filter: {
|
|
40
|
-
addBtn: "新增条件",
|
|
41
|
-
clearBtn: "清空数据",
|
|
42
|
-
resetBtn: "清空条件",
|
|
43
|
-
cancelBtn: "取 消",
|
|
44
|
-
submitBtn: "确 定"
|
|
45
|
-
},
|
|
46
|
-
column: {
|
|
47
|
-
name: "列名",
|
|
48
|
-
hide: "隐藏",
|
|
49
|
-
fixed: "冻结",
|
|
50
|
-
filters: "过滤",
|
|
51
|
-
sortable: "排序",
|
|
52
|
-
index: "顺序",
|
|
53
|
-
width: "宽度"
|
|
54
|
-
},
|
|
55
|
-
tipStartTitle: "当前表格已选择",
|
|
56
|
-
tipEndTitle: "项",
|
|
57
|
-
editTitle: "编 辑",
|
|
58
|
-
copyTitle: "复 制",
|
|
59
|
-
addTitle: "新 增",
|
|
60
|
-
viewTitle: "查 看",
|
|
61
|
-
filterTitle: "过滤条件",
|
|
62
|
-
showTitle: "列显隐",
|
|
63
|
-
menu: "操作",
|
|
64
|
-
addBtn: "新 增",
|
|
65
|
-
show: "显 示",
|
|
66
|
-
hide: "隐 藏",
|
|
67
|
-
open: "展 开",
|
|
68
|
-
shrink: "收 缩",
|
|
69
|
-
printBtn: "打 印",
|
|
70
|
-
excelBtn: "导 出",
|
|
71
|
-
updateBtn: "修 改",
|
|
72
|
-
cancelBtn: "取 消",
|
|
73
|
-
searchBtn: "搜 索",
|
|
74
|
-
emptyBtn: "清 空",
|
|
75
|
-
menuBtn: "功 能",
|
|
76
|
-
saveBtn: "保 存",
|
|
77
|
-
viewBtn: "查 看",
|
|
78
|
-
editBtn: "编 辑",
|
|
79
|
-
copyBtn: "复 制",
|
|
80
|
-
delBtn: "删 除"
|
|
81
|
-
}
|
|
82
|
-
}, getValueByPath = (object, prop) => {
|
|
83
|
-
prop = prop || "";
|
|
84
|
-
const paths = prop.split(".");
|
|
85
|
-
let current = object, result = null;
|
|
86
|
-
for (let i = 0, j = paths.length; i < j; i++) {
|
|
87
|
-
const path = paths[i];
|
|
88
|
-
if (!current)
|
|
89
|
-
break;
|
|
90
|
-
if (i === j - 1) {
|
|
91
|
-
result = current[path];
|
|
92
|
-
break;
|
|
93
|
-
}
|
|
94
|
-
current = current[path];
|
|
95
|
-
}
|
|
96
|
-
return result;
|
|
97
|
-
}, translate = (path) => getValueByPath(lang, path), calcCascader = (list = []) => (list.forEach((ele) => {
|
|
98
|
-
const cascader = ele.cascader;
|
|
99
|
-
if (!isBlank(cascader)) {
|
|
100
|
-
const parentProp = ele.prop;
|
|
101
|
-
cascader.forEach((citem) => {
|
|
102
|
-
const column = findObject(list, citem);
|
|
103
|
-
column !== -1 && (column.parentProp = parentProp);
|
|
104
|
-
});
|
|
105
|
-
}
|
|
106
|
-
}), list);
|
|
107
|
-
let count = 0;
|
|
108
|
-
const calcCount = (ele, spanDefault = 12, init = !1) => {
|
|
109
|
-
init && (count = 0);
|
|
110
|
-
const spanAll = 24;
|
|
111
|
-
return count = count + (ele.span || spanDefault) + (ele.offset || 0), count === spanAll ? count = 0 : count > spanAll ? count = (ele.span || spanDefault) + (ele.offset || 0) : ele.row && count !== spanAll && (ele.count = spanAll - count, count = 0), ele;
|
|
112
|
-
}, initVal = (value, safe) => {
|
|
113
|
-
const { type, multiple, dataType, separator = DIC_SPLIT, alone, emitPath, range } = safe;
|
|
114
|
-
let list = value;
|
|
115
|
-
return MULTIPLE_LIST.includes(type) && multiple === !0 || ARRAY_VALUE_LIST.includes(type) && emitPath !== !1 || RANGE_LIST.includes(type) && range === !0 ? (Array.isArray(list) || (isBlank(list) ? list = [] : list = `${list}`.split(separator) || []), list.forEach((ele, index) => {
|
|
116
|
-
list[index] = detailDataType(ele, dataType);
|
|
117
|
-
}), ARRAY_LIST.includes(type) && isBlank(list) && alone && (list = [""])) : list = detailDataType(list, dataType), list;
|
|
118
|
-
}, getSearchType = (column) => {
|
|
119
|
-
const type = column.type, range = column.searchRange;
|
|
120
|
-
let result = type;
|
|
121
|
-
if (column.searchType)
|
|
122
|
-
return column.searchType;
|
|
123
|
-
if (["radio", "checkbox", "switch"].includes(type))
|
|
124
|
-
result = "select";
|
|
125
|
-
else if (DATE_LIST.includes(type)) {
|
|
126
|
-
const rangeKey = "range";
|
|
127
|
-
range ? type.includes(rangeKey) ? result = type : result = type + rangeKey : result = type.replace(rangeKey, "");
|
|
128
|
-
} else
|
|
129
|
-
["textarea"].includes(type) && (result = "input");
|
|
130
|
-
return result;
|
|
131
|
-
}, getComponent = (type, component) => {
|
|
132
|
-
let result = type || "input";
|
|
133
|
-
if (isBlank(component))
|
|
134
|
-
ARRAY_LIST.includes(type) ? result = "array" : ["time", "timerange"].includes(type) ? result = "time" : DATE_LIST.includes(type) ? result = "date" : ["password", "textarea", "search"].includes(type) ? result = "input" : INPUT_LIST.includes(type) && (result = `input-${type}`);
|
|
135
|
-
else
|
|
136
|
-
return component;
|
|
137
|
-
return KEY_COMPONENT_NAME + result;
|
|
138
|
-
}, formInitVal = (list = []) => {
|
|
139
|
-
let tableForm = {};
|
|
140
|
-
return list.forEach((ele) => {
|
|
141
|
-
ARRAY_VALUE_LIST.includes(ele.type) && ele.emitPath !== !1 || MULTIPLE_LIST.includes(ele.type) && ele.multiple || ele.dataType === "array" ? tableForm[ele.prop] = [] : RANGE_LIST.includes(ele.type) && ele.range === !0 ? tableForm[ele.prop] = [0, 0] : ["rate", "slider", "number"].includes(ele.type) || ele.dataType === "number" ? tableForm[ele.prop] = void 0 : tableForm[ele.prop] = "", ele.bind && (tableForm = createObj(tableForm, ele.bind)), isBlank(ele.value) || (tableForm[ele.prop] = ele.value);
|
|
142
|
-
}), {
|
|
143
|
-
tableForm
|
|
144
|
-
};
|
|
145
|
-
}, getPlaceholder = function(column) {
|
|
146
|
-
const placeholder = column.placeholder, label = column.label;
|
|
147
|
-
return isBlank(placeholder) ? SELECT_LIST.includes(column.type) ? `${translate("tip.select")} ${label}` : `${translate("tip.input")} ${label}` : placeholder;
|
|
148
|
-
};
|
|
149
|
-
export {
|
|
150
|
-
getPlaceholder as a,
|
|
151
|
-
calcCount as b,
|
|
152
|
-
calcCascader as c,
|
|
153
|
-
getSearchType as d,
|
|
154
|
-
formInitVal as f,
|
|
155
|
-
getComponent as g,
|
|
156
|
-
initVal as i,
|
|
157
|
-
translate as t
|
|
158
|
-
};
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { isBlank } from "@web-utils/core";
|
|
2
|
-
import { formatDate } from "@web-utils/integrations/dayjs";
|
|
3
|
-
import { g as getAsVal, M as MULTIPLE_LIST, A as ARRAY_VALUE_LIST, c as DIC_SPLIT, e as strCorNum, f as ARRAY_LIST, b as DIC_SHOW_SPLIT, h as getPasswordChar, j as DATE_LIST, k as findByValue } from "./util.89913643.js";
|
|
4
|
-
const detail = (row = {}, column = {}, option = {}, dic = []) => {
|
|
5
|
-
let result = row[column.prop];
|
|
6
|
-
const type = column.type, separator = column.separator;
|
|
7
|
-
if (column.bind && (result = getAsVal(row, column.bind)), isBlank(result))
|
|
8
|
-
result = "";
|
|
9
|
-
else {
|
|
10
|
-
const selectFlag = MULTIPLE_LIST.includes(column.type) && column.multiple, arrayFlag = ARRAY_VALUE_LIST.includes(column.type);
|
|
11
|
-
if ((["string", "number"].includes(column.dataType) || selectFlag || arrayFlag) && !Array.isArray(result) && (result = `${result}`.split(separator || DIC_SPLIT), column.dataType === "number" && (result = strCorNum(result))), ARRAY_LIST.includes(type))
|
|
12
|
-
Array.isArray(result) ? result = result.join(separator || DIC_SHOW_SPLIT) : result = result.split(separator || DIC_SPLIT).join(separator || DIC_SHOW_SPLIT);
|
|
13
|
-
else if (type === "password")
|
|
14
|
-
result = getPasswordChar(result, "*");
|
|
15
|
-
else if (DATE_LIST.includes(type) && column.format) {
|
|
16
|
-
const format = column.format.replace("dd", "DD").replace("yyyy", "YYYY"), formatValue = formatDate(Date.now(), "YYYY-MM-DD");
|
|
17
|
-
if (type.indexOf("range") !== -1) {
|
|
18
|
-
let date1 = result[0] || "", date2 = result[1] || "";
|
|
19
|
-
type === "timerange" && date1.length <= 8 && date2.length < 8 && (date1 = `${formatValue} ${date1}`, date2 = `${formatValue} ${date2}`), result = [formatDate(date1, format), formatDate(date2, format)].join(column.separator || "~");
|
|
20
|
-
} else
|
|
21
|
-
type === "time" && result.length <= 8 && (result = `${formatValue} ${result}`), result = formatDate(result, format);
|
|
22
|
-
}
|
|
23
|
-
result = findByValue(dic, result, column.props || option.props);
|
|
24
|
-
}
|
|
25
|
-
return column.formatter && typeof column.formatter == "function" && (result = column.formatter(row, row[column.prop], result, column)), result;
|
|
26
|
-
};
|
|
27
|
-
export {
|
|
28
|
-
detail as d
|
|
29
|
-
};
|
|
@@ -1,135 +0,0 @@
|
|
|
1
|
-
import { isBlank } from "@web-utils/core";
|
|
2
|
-
import { l as detailDic, m as getObjValue } from "./util.89913643.js";
|
|
3
|
-
const loadCascaderDic = (columnOption, list = []) => new Promise((resolve, reject) => {
|
|
4
|
-
const columnList = [], result = [], networkdic = {};
|
|
5
|
-
columnOption.forEach((ele) => {
|
|
6
|
-
ele.parentProp && columnList.push(ele);
|
|
7
|
-
}), list.forEach((ele, index) => {
|
|
8
|
-
columnList.forEach((column) => {
|
|
9
|
-
column.hide !== !0 && column.dicFlag !== !1 && result.push(
|
|
10
|
-
new Promise((resolve2) => {
|
|
11
|
-
isBlank(ele[column.parentProp]) ? resolve2({
|
|
12
|
-
prop: column.prop,
|
|
13
|
-
data: [],
|
|
14
|
-
index
|
|
15
|
-
}) : column.dicUrl && sendDic({
|
|
16
|
-
url: `${column.dicUrl.replace("{{key}}", ele[column.parentProp])}`,
|
|
17
|
-
props: column.props,
|
|
18
|
-
method: column.dicMethod,
|
|
19
|
-
headers: column.dicHeaders,
|
|
20
|
-
formatter: column.dicFormatter,
|
|
21
|
-
query: column.dicQuery,
|
|
22
|
-
form: ele
|
|
23
|
-
}).then((res) => {
|
|
24
|
-
resolve2({
|
|
25
|
-
prop: column.prop,
|
|
26
|
-
data: res,
|
|
27
|
-
index
|
|
28
|
-
});
|
|
29
|
-
});
|
|
30
|
-
})
|
|
31
|
-
);
|
|
32
|
-
});
|
|
33
|
-
}), Promise.all(result).then((data) => {
|
|
34
|
-
data.forEach((ele) => {
|
|
35
|
-
isBlank(networkdic[ele.index]) && (networkdic[ele.index] = {}), networkdic[ele.index][ele.prop] = ele.data;
|
|
36
|
-
}), resolve(networkdic);
|
|
37
|
-
});
|
|
38
|
-
}), loadDic = (option) => {
|
|
39
|
-
let ajaxdic = [];
|
|
40
|
-
return new Promise((resolve, reject) => {
|
|
41
|
-
ajaxdic = createdDic(option).ajaxdic, handleDic(ajaxdic).then((res) => {
|
|
42
|
-
resolve(res);
|
|
43
|
-
}).catch((err) => {
|
|
44
|
-
reject(err);
|
|
45
|
-
});
|
|
46
|
-
});
|
|
47
|
-
}, loadLocalDic = (option) => {
|
|
48
|
-
const locationdic = {}, alldic = option.dicData || {};
|
|
49
|
-
return option.column.forEach((ele) => {
|
|
50
|
-
ele.dicData && (locationdic[ele.prop] = detailDic(ele.dicData, ele.props, ele.dataType));
|
|
51
|
-
}), Object.assign(alldic, locationdic);
|
|
52
|
-
};
|
|
53
|
-
function createdDic(option) {
|
|
54
|
-
const column = option.column || [], ajaxdic = [], locationdic = {};
|
|
55
|
-
let flagdic = [];
|
|
56
|
-
return column.forEach((ele) => {
|
|
57
|
-
const dicData = ele.dicData, dicUrl = ele.dicUrl, prop = ele.prop, parentProp = ele.parentProp;
|
|
58
|
-
flagdic = flagdic.concat(ele.cascader || []), Array.isArray(dicData) && (locationdic[prop] = dicData), !(ele.dicFlag === !1 || ele.lazy === !0 || flagdic.includes(prop)) && dicUrl && !parentProp && ajaxdic.push({
|
|
59
|
-
url: dicUrl,
|
|
60
|
-
name: prop,
|
|
61
|
-
method: ele.dicMethod,
|
|
62
|
-
headers: column.dicHeaders,
|
|
63
|
-
formatter: ele.dicFormatter,
|
|
64
|
-
props: ele.props,
|
|
65
|
-
dataType: ele.dataType,
|
|
66
|
-
resKey: (ele.props || {}).res,
|
|
67
|
-
query: ele.dicQuery || {}
|
|
68
|
-
});
|
|
69
|
-
}), {
|
|
70
|
-
ajaxdic,
|
|
71
|
-
locationdic
|
|
72
|
-
};
|
|
73
|
-
}
|
|
74
|
-
function handleDic(list) {
|
|
75
|
-
const networkdic = {}, result = [];
|
|
76
|
-
return new Promise((resolve) => {
|
|
77
|
-
list.forEach((ele) => {
|
|
78
|
-
result.push(
|
|
79
|
-
new Promise((resolve2) => {
|
|
80
|
-
sendDic(Object.assign(ele, {
|
|
81
|
-
url: `${ele.url.replace("{{key}}", "")}`
|
|
82
|
-
})).then((res) => {
|
|
83
|
-
res = detailDic(res, ele.props, ele.dataType), resolve2(res);
|
|
84
|
-
}).catch(() => {
|
|
85
|
-
resolve2([]);
|
|
86
|
-
});
|
|
87
|
-
})
|
|
88
|
-
);
|
|
89
|
-
}), Promise.all(result).then((data) => {
|
|
90
|
-
list.forEach((ele, index) => {
|
|
91
|
-
networkdic[ele.name] = data[index];
|
|
92
|
-
}), resolve(networkdic);
|
|
93
|
-
});
|
|
94
|
-
});
|
|
95
|
-
}
|
|
96
|
-
const sendDic = (params) => {
|
|
97
|
-
let { url, query, method, resKey, props, formatter, headers = {}, value = "", column, form = {} } = params;
|
|
98
|
-
column && (url = column.dicUrl, method = column.dicMethod, headers = column.headers || {}, query = column.dicQuery || {}, formatter = column.dicFormatter, props = column.props);
|
|
99
|
-
const key = "key";
|
|
100
|
-
url = url || "";
|
|
101
|
-
let list = [];
|
|
102
|
-
const data = {};
|
|
103
|
-
return list = url.match(/[^{}]+(?=})/g) || [], list.forEach((ele) => {
|
|
104
|
-
const eleKey = `{{${ele}}}`, eleValue = form[ele];
|
|
105
|
-
ele === key ? url = url.replace(eleKey, value) : url = url.replace(eleKey, eleValue);
|
|
106
|
-
}), method === "post" && (list = Object.keys(query), list.forEach((ele) => {
|
|
107
|
-
const eleKey = query[ele];
|
|
108
|
-
typeof eleKey == "string" && eleKey.match(/\{{|}}/g) ? data[ele] = form[eleKey.replace(/\{{|}}/g, "")] : data[ele] = eleKey;
|
|
109
|
-
})), props && (resKey = (props || {}).res || resKey), new Promise((resolve) => {
|
|
110
|
-
const callback = (res) => {
|
|
111
|
-
let list2 = [];
|
|
112
|
-
typeof formatter == "function" ? list2 = formatter(res.data) : list2 = getObjValue(res.data, resKey), resolve(list2);
|
|
113
|
-
};
|
|
114
|
-
method === "post" ? window.axios.post(url, data, {
|
|
115
|
-
headers
|
|
116
|
-
}).then(function(res) {
|
|
117
|
-
callback(res);
|
|
118
|
-
}).catch(() => [
|
|
119
|
-
resolve([])
|
|
120
|
-
]) : window.axios.get(url, {
|
|
121
|
-
params: query,
|
|
122
|
-
headers
|
|
123
|
-
}).then(function(res) {
|
|
124
|
-
callback(res);
|
|
125
|
-
}).catch(() => [
|
|
126
|
-
resolve([])
|
|
127
|
-
]);
|
|
128
|
-
});
|
|
129
|
-
};
|
|
130
|
-
export {
|
|
131
|
-
loadDic as a,
|
|
132
|
-
loadCascaderDic as b,
|
|
133
|
-
loadLocalDic as l,
|
|
134
|
-
sendDic as s
|
|
135
|
-
};
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
const slot = {
|
|
2
|
-
methods: {
|
|
3
|
-
getSlotName(item = {}, type = "D", slot2) {
|
|
4
|
-
const result = {
|
|
5
|
-
F: "Form",
|
|
6
|
-
H: "Header",
|
|
7
|
-
E: "Error",
|
|
8
|
-
L: "Label",
|
|
9
|
-
S: "Search",
|
|
10
|
-
T: "Type",
|
|
11
|
-
D: ""
|
|
12
|
-
}, name = item.prop + result[type];
|
|
13
|
-
return slot2 ? slot2[name] : name;
|
|
14
|
-
},
|
|
15
|
-
getSlotList(list = [], slot2, propList) {
|
|
16
|
-
return propList = propList.map((ele) => ele.prop), Object.keys(slot2).filter((ele) => {
|
|
17
|
-
let result = !1;
|
|
18
|
-
return propList.includes(ele) || list.forEach((name) => {
|
|
19
|
-
ele.includes(name) && (result = !0);
|
|
20
|
-
}), result;
|
|
21
|
-
});
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
};
|
|
25
|
-
export {
|
|
26
|
-
slot as s
|
|
27
|
-
};
|