@web-utils/form-ui 1.0.0-beta74 → 1.0.0-beta76
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/affix/index.mjs +1 -1
- package/capsule-tab/index.mjs +2 -27
- package/card/index.mjs +1 -1
- package/chunks/{DqWJCka8.mjs → 285I1DfO.mjs} +1 -1
- package/chunks/{DizOY5i8.mjs → 6eDDQWcr.mjs} +2 -2
- package/chunks/{D6YM84Pf2.mjs → B-WTB0ce2.mjs} +1 -1
- package/chunks/{Opn85Hlx2.mjs → B2Y1LWJ3.mjs} +1 -1
- package/chunks/{Ce4tNNzg2.mjs → BLBHnUme2.mjs} +1 -1
- package/chunks/{BI6kCG2j2.mjs → BM8snKHN2.mjs} +2 -2
- package/chunks/{Lkg7bYLD2.mjs → BP_0cJ172.mjs} +70 -70
- package/chunks/{-fXBgN9b2.mjs → BTNnujZA2.mjs} +1 -1
- package/chunks/{DTq5QLoT.mjs → BZRmdKBG.mjs} +2 -2
- package/chunks/{B0BOjeph2.mjs → BaB0bq4I2.mjs} +1 -1
- package/chunks/{jsgk7Yse2.mjs → Bh2SlzOo.mjs} +1 -1
- package/chunks/{7_9hAeqb.mjs → BkoWiWEW.mjs} +2 -2
- package/chunks/{CWBRpkHy.mjs → Bq9KMIsC.mjs} +4 -4
- package/chunks/{Dv7YRB2U2.mjs → BvlU_Z6D2.mjs} +1 -1
- package/chunks/C-iN5MJZ.mjs +57 -0
- package/chunks/{Byy1rvPO.mjs → C0gLPKS8.mjs} +2 -2
- package/chunks/{DVMfVn-M.mjs → C3pzNRoU2.mjs} +2 -2
- package/chunks/C7rEqtOR.mjs +70 -0
- package/chunks/{sWVkgzQt2.mjs → CF23xugU2.mjs} +2 -2
- package/chunks/{Dh_BQpvC2.mjs → CFKKwzh72.mjs} +2 -2
- package/chunks/{_q6JzJYp.mjs → CGVBF4Ml.mjs} +1 -1
- package/chunks/{CFoSvMJ-2.mjs → CI-pH-gR2.mjs} +1 -1
- package/chunks/{-yfgKY3g.mjs → CLn5E7NV.mjs} +1 -1
- package/chunks/{DVdQHb_v.mjs → CVM0lwn22.mjs} +2 -2
- package/chunks/{CjYOitzM2.mjs → CWaId08S2.mjs} +1 -1
- package/chunks/{BhIWiH5R.mjs → Cb7kjZa-.mjs} +3 -3
- package/chunks/{DucSg7Mt.mjs → CeI6Qrij.mjs} +2 -2
- package/chunks/{CelJ2L8A2.mjs → Cg6ahpHk.mjs} +2 -2
- package/chunks/{DrWUdRj32.mjs → CpIXTVFU2.mjs} +2 -2
- package/chunks/Ctx93AFS.mjs +54 -0
- package/chunks/{D4Pd8rZi.mjs → CyQmVphZ.mjs} +2 -2
- package/chunks/{Daa7nl7U.mjs → D6qJXu04.mjs} +1 -1
- package/chunks/{Bj0kgDOA.mjs → DFa2J7ul.mjs} +4 -4
- package/chunks/{HsHwYW1a.mjs → DLdsvozr.mjs} +2 -2
- package/chunks/{DyLQsqWJ.mjs → DMDsZeqv.mjs} +1 -1
- package/chunks/{C6mb7Nru2.mjs → DNiq6hHj2.mjs} +3 -3
- package/chunks/{KDVLIvaS.mjs → DP7eF99m2.mjs} +1 -1
- package/chunks/{CwyebsNL2.mjs → DRXM1Mt22.mjs} +1 -1
- package/chunks/{DjaV6_cg2.mjs → D_gR5ibl2.mjs} +2 -2
- package/chunks/{BE4V5Vf5.mjs → Dgwcljur.mjs} +63 -41
- package/chunks/{Cknuquqx.mjs → Dhdoa4M6.mjs} +1 -1
- package/chunks/{Dm3gQGoV2.mjs → Dje2xUVd2.mjs} +2 -2
- package/chunks/Dodxnwze.mjs +60 -0
- package/chunks/DokYQ49m.mjs +29 -0
- package/chunks/{gTgPZrgY2.mjs → DvkUImww2.mjs} +113 -113
- package/chunks/{-zgWD713.mjs → DyGddGTO.mjs} +1 -1
- package/chunks/{YdNYH25C.mjs → SInS7QSL.mjs} +1 -1
- package/chunks/{BGJjAw5E.mjs → hPAfGilD.mjs} +1 -1
- package/chunks/{Ccxbv7uz2.mjs → kAaQhLJs2.mjs} +1 -1
- package/chunks/{QTy8g5MS.mjs → l5bfIjYm.mjs} +21 -26
- package/chunks/{nL59ZuIk.mjs → ohCkWdwS.mjs} +1 -1
- package/chunks/{CO3taG7t2.mjs → tJ_t87kJ.mjs} +1 -1
- package/chunks/{BctSGDgW2.mjs → x2jJ6cfy2.mjs} +1 -1
- package/code-mirror-editor/index.mjs +1 -1
- package/confirm-button/index.mjs +1 -1
- package/confirmable/index.mjs +1 -1
- package/context-menu/index.mjs +1 -1
- package/count-up/index.mjs +1 -1
- package/custom-scrollbar/index.mjs +1 -1
- package/data-box/index.mjs +2 -69
- package/data-card/index.mjs +1 -1
- package/data-card-text/index.mjs +1 -1
- package/data-display/index.mjs +1 -1
- package/data-icons/index.mjs +1 -1
- package/data-imgtext/index.mjs +1 -1
- package/data-operatext/index.mjs +1 -1
- package/data-panel/index.mjs +1 -1
- package/data-pay/index.mjs +1 -1
- package/data-price/index.mjs +1 -1
- package/data-progress/index.mjs +1 -1
- package/data-rotate/index.mjs +2 -66
- package/data-table-picker/index.mjs +3 -3
- package/data-tabs/index.mjs +2 -72
- package/dict-render/index.mjs +1 -1
- package/e-charts/index.mjs +1 -1
- package/easy-popup/index.mjs +1 -1
- package/editable-progress/index.mjs +1 -1
- package/editable-tree/index.mjs +2 -2
- package/element-dialog/index.mjs +1 -1
- package/element-resize-observer/index.mjs +1 -1
- package/flex-box/index.mjs +1 -1
- package/flex-column/index.mjs +1 -1
- package/flex-item/index.mjs +1 -1
- package/flex-row/index.mjs +1 -1
- package/flex-scroller/index.mjs +1 -1
- package/flow-designer/index.mjs +1 -1
- package/flow-viewer/index.mjs +1 -1
- package/form-advice/index.mjs +2 -2
- package/form-cascader/index.mjs +1 -1
- package/form-checkbox/index.mjs +1 -1
- package/form-checkbox-group/index.mjs +1 -1
- package/form-date-picker/index.mjs +1 -1
- package/form-holder/index.mjs +1 -1
- package/form-image/index.mjs +1 -1
- package/form-input/index.mjs +1 -1
- package/form-input-cron-expression/index.mjs +1 -1
- package/form-input-email/index.mjs +1 -1
- package/form-input-id-card/index.mjs +1 -1
- package/form-input-number/index.mjs +1 -1
- package/form-input-phone-number/index.mjs +1 -1
- package/form-input-tag/index.mjs +1 -1
- package/form-input-time/index.mjs +1 -1
- package/form-item-group/index.mjs +1 -1
- package/form-item-x/index.mjs +1 -1
- package/form-radio-group/index.mjs +1 -1
- package/form-rate/index.mjs +1 -1
- package/form-red-table/index.mjs +22 -22
- package/form-row/index.mjs +1 -1
- package/form-select/index.mjs +1 -1
- package/form-slider/index.mjs +1 -1
- package/form-switch/index.mjs +1 -1
- package/form-table/index.mjs +1 -1
- package/form-table-plus/index.mjs +1 -1
- package/form-text/index.mjs +1 -1
- package/form-textarea/index.mjs +1 -1
- package/form-time-select/index.mjs +1 -1
- package/form-tree-select/index.mjs +1 -1
- package/form-tree-select-multiple/index.mjs +1 -1
- package/form-view/index.mjs +3 -3
- package/guide-steps/index.mjs +1 -1
- package/helper/input.d.ts +3 -1
- package/helper/input.mjs +1 -1
- package/helper/sub-table-plus.d.ts +1 -1
- package/highlight-j-s/index.mjs +1 -1
- package/iframe-window/index.mjs +1 -1
- package/image-cropper/index.mjs +4 -4
- package/image-preview/index.mjs +1 -1
- package/image-viewer/index.mjs +1 -1
- package/index.mjs +54 -54
- package/input-number-range/index.mjs +1 -1
- package/keyboard/index.mjs +1 -1
- package/loading-view/index.mjs +1 -1
- package/name-avatar/index.mjs +1 -1
- package/package.json +3 -3
- package/page-index/index.mjs +1 -1
- package/page-index-top/index.mjs +1 -1
- package/pageable-table/index.mjs +1 -1
- package/photo-swipe/index.mjs +1 -1
- package/resolver/index.mjs +1 -1
- package/sign-panel/index.mjs +1 -1
- package/split-pane/index.mjs +1 -1
- package/sub-table/index.mjs +1 -1
- package/sub-table-plus/index.mjs +1 -1
- package/swiper/index.mjs +2 -2
- package/table-column/index.mjs +1 -1
- package/table-column-def/index.mjs +1 -1
- package/table-view/index.mjs +5 -5
- package/tag-render/index.mjs +16 -17
- package/text-ellipsis/index.mjs +1 -1
- package/toolbar/index.mjs +1 -1
- package/toolbar-button/index.mjs +1 -1
- package/vue-cron/index.mjs +1 -1
- package/vue-tags-input/index.mjs +1 -1
- package/vue-tree-select/index.mjs +1 -1
- package/vue-video-player/index.mjs +1 -1
- package/watermark/index.mjs +1 -1
- package/web-types.json +1 -1
- package/x-input-tag/index.mjs +38 -39
- package/year-calendar/index.mjs +1 -1
- package/address-input/index.d.ts +0 -52
- package/affix/index.d.ts +0 -30
- package/awesome-button/index.d.ts +0 -60
- package/capsule-tab/index.d.ts +0 -22
- package/card/index.d.ts +0 -41
- package/chunks/DqW9QtF3.mjs +0 -68
- package/code-mirror-editor/index.d.ts +0 -50
- package/confirm-button/index.d.ts +0 -122
- package/confirmable/index.d.ts +0 -93
- package/context-menu/index.d.ts +0 -183
- package/count-up/index.d.ts +0 -70
- package/custom-scrollbar/index.d.ts +0 -49
- package/data-box/index.d.ts +0 -19
- package/data-card/index.d.ts +0 -20
- package/data-card-text/index.d.ts +0 -21
- package/data-display/index.d.ts +0 -20
- package/data-icons/index.d.ts +0 -21
- package/data-imgtext/index.d.ts +0 -18
- package/data-operatext/index.d.ts +0 -17
- package/data-panel/index.d.ts +0 -19
- package/data-pay/index.d.ts +0 -19
- package/data-price/index.d.ts +0 -17
- package/data-progress/index.d.ts +0 -19
- package/data-rotate/index.d.ts +0 -19
- package/data-table-picker/index.d.ts +0 -61
- package/data-tabs/index.d.ts +0 -19
- package/dict-render/index.d.ts +0 -28
- package/e-charts/index.d.ts +0 -79
- package/easy-popup/index.d.ts +0 -114
- package/editable-progress/index.d.ts +0 -68
- package/editable-tree/index.d.ts +0 -281
- package/element-dialog/index.d.ts +0 -376
- package/element-resize-observer/index.d.ts +0 -8
- package/empty-view/index.d.ts +0 -29
- package/error-view/index.d.ts +0 -25
- package/flex-box/index.d.ts +0 -44
- package/flex-column/index.d.ts +0 -41
- package/flex-item/index.d.ts +0 -77
- package/flex-row/index.d.ts +0 -41
- package/flex-scroll-area/index.d.ts +0 -22
- package/flex-scroller/index.d.ts +0 -26
- package/flow-designer/index.d.ts +0 -353
- package/flow-viewer/index.d.ts +0 -62
- package/form-advice/index.d.ts +0 -9
- package/form-button/index.d.ts +0 -123
- package/form-card/index.d.ts +0 -14
- package/form-cascader/index.d.ts +0 -478
- package/form-cell/index.d.ts +0 -25
- package/form-checkbox/index.d.ts +0 -314
- package/form-checkbox-group/index.d.ts +0 -373
- package/form-date-picker/index.d.ts +0 -487
- package/form-holder/index.d.ts +0 -162
- package/form-image/index.d.ts +0 -220
- package/form-input/index.d.ts +0 -378
- package/form-input-cron-expression/index.d.ts +0 -223
- package/form-input-email/index.d.ts +0 -376
- package/form-input-id-card/index.d.ts +0 -376
- package/form-input-number/index.d.ts +0 -329
- package/form-input-phone-number/index.d.ts +0 -376
- package/form-input-tag/index.d.ts +0 -270
- package/form-input-time/index.d.ts +0 -441
- package/form-item-config-provider/index.d.ts +0 -40
- package/form-item-group/index.d.ts +0 -92
- package/form-item-x/index.d.ts +0 -190
- package/form-radio-group/index.d.ts +0 -374
- package/form-rate/index.d.ts +0 -325
- package/form-red-table/index.d.ts +0 -21
- package/form-row/index.d.ts +0 -11
- package/form-select/index.d.ts +0 -606
- package/form-slider/index.d.ts +0 -352
- package/form-switch/index.d.ts +0 -343
- package/form-table/index.d.ts +0 -287
- package/form-table-plus/index.d.ts +0 -266
- package/form-text/index.d.ts +0 -235
- package/form-textarea/index.d.ts +0 -351
- package/form-time-select/index.d.ts +0 -325
- package/form-tree-select/index.d.ts +0 -715
- package/form-tree-select-multiple/index.d.ts +0 -717
- package/form-view/index.d.ts +0 -226
- package/guide-steps/index.d.ts +0 -31
- package/highlight-j-s/index.d.ts +0 -18
- package/iframe-window/index.d.ts +0 -9
- package/image-cropper/index.d.ts +0 -365
- package/image-preview/index.d.ts +0 -61
- package/image-viewer/index.d.ts +0 -25
- package/input-number-range/index.d.ts +0 -41
- package/keyboard/index.d.ts +0 -64
- package/loading-view/index.d.ts +0 -65
- package/name-avatar/index.d.ts +0 -62
- package/nav-bar/index.d.ts +0 -21
- package/page/index.d.ts +0 -21
- package/page-header/index.d.ts +0 -27
- package/page-index/index.d.ts +0 -82
- package/page-index-top/index.d.ts +0 -38
- package/page-skeleton/index.d.ts +0 -30
- package/page-skeleton-new/index.d.ts +0 -34
- package/pageable-table/index.d.ts +0 -400
- package/photo-swipe/index.d.ts +0 -18
- package/sign-panel/index.d.ts +0 -85
- package/skeleton-panel/index.d.ts +0 -27
- package/split-pane/index.d.ts +0 -106
- package/stateful/index.d.ts +0 -92
- package/sub-table/index.d.ts +0 -109
- package/sub-table-plus/index.d.ts +0 -109
- package/swiper/index.d.ts +0 -27
- package/table-column/index.d.ts +0 -163
- package/table-column-def/index.d.ts +0 -97
- package/table-view/index.d.ts +0 -346
- package/tag-render/index.d.ts +0 -48
- package/text-ellipsis/index.d.ts +0 -111
- package/toolbar/index.d.ts +0 -129
- package/toolbar-button/index.d.ts +0 -189
- package/vue-cron/index.d.ts +0 -191
- package/vue-qr-code/index.d.ts +0 -47
- package/vue-tags-input/index.d.ts +0 -373
- package/vue-tree-select/index.d.ts +0 -1489
- package/vue-video-player/index.d.ts +0 -117
- package/watermark/index.d.ts +0 -97
- package/x-input-tag/index.d.ts +0 -2
- package/year-calendar/index.d.ts +0 -99
- /package/chunks/{BoCxKwBf.mjs → 3UWcbJcG.mjs} +0 -0
- /package/chunks/{CaczibeD.mjs → B1MSrc6f.mjs} +0 -0
- /package/chunks/{CQeEP_Tl.mjs → B1jgu0ci.mjs} +0 -0
- /package/chunks/{DZCryyFG.mjs → CHmZyvFr.mjs} +0 -0
- /package/chunks/{BrelfRGo2.mjs → CJ7Ai-mH2.mjs} +0 -0
- /package/chunks/{8A7LSgb4.mjs → CZeL7oiY2.mjs} +0 -0
- /package/chunks/{CE67pCwD.mjs → C_QfuxeQ.mjs} +0 -0
- /package/chunks/{BhzlH7Az.mjs → DdACGFy3.mjs} +0 -0
- /package/chunks/{OBTStTaa.mjs → V-Js6hNd.mjs} +0 -0
- /package/chunks/{OEBJ-trG.mjs → X-ckP2Hj.mjs} +0 -0
- /package/chunks/{fjtZc9Rq2.mjs → b_78-Wov2.mjs} +0 -0
- /package/chunks/{tjwOOiNr2.mjs → gNfZhMJk2.mjs} +0 -0
- /package/chunks/{BH7VEktl.mjs → mnqSaATq.mjs} +0 -0
- /package/chunks/{Dq63V0CC.mjs → tzjUpVIj.mjs} +0 -0
- /package/chunks/{BBvIPqcc.mjs → z6tpYT0z.mjs} +0 -0
package/affix/index.mjs
CHANGED
|
@@ -41,7 +41,7 @@ var y = /* @__PURE__ */ Object.assign({ name: "Affix" }, {
|
|
|
41
41
|
ref: O,
|
|
42
42
|
class: o([{ affix: p(w) }]),
|
|
43
43
|
style: s(p(E))
|
|
44
|
-
}, [r(" @slot 内容插槽\n @param affix {boolean} 是否固定\n @param affix1 {boolean|string} 是否固定"), f(e.$slots, "default")], 6), g(a("div", { style: s(p(D)) }, null, 4), [[h, p(T)]])], 512));
|
|
44
|
+
}, [r(" @slot 内容插槽\r\n @param affix {boolean} 是否固定\r\n @param affix1 {boolean|string} 是否固定"), f(e.$slots, "default")], 6), g(a("div", { style: s(p(D)) }, null, 4), [[h, p(T)]])], 512));
|
|
45
45
|
}
|
|
46
46
|
});
|
|
47
47
|
//#endregion
|
package/capsule-tab/index.mjs
CHANGED
|
@@ -1,27 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../chunks/
|
|
2
|
-
|
|
3
|
-
//#region src/components/CapsuleTab.vue
|
|
4
|
-
var s = {
|
|
5
|
-
name: "CapsuleTab",
|
|
6
|
-
props: {
|
|
7
|
-
tabs: {
|
|
8
|
-
type: Array,
|
|
9
|
-
default: () => []
|
|
10
|
-
},
|
|
11
|
-
modelValue: { type: String }
|
|
12
|
-
},
|
|
13
|
-
emits: ["update:modelValue"]
|
|
14
|
-
}, c = { class: "capsule-tab" }, l = ["onClick"];
|
|
15
|
-
function u(e, s, u, d, f, p) {
|
|
16
|
-
return i(), n("ul", c, [(i(!0), n(t, null, a(u.tabs, (t) => (i(), n("li", {
|
|
17
|
-
key: t.value,
|
|
18
|
-
class: r(["tab-item", {
|
|
19
|
-
active: u.modelValue === t.value,
|
|
20
|
-
single: u.tabs.length === 1
|
|
21
|
-
}]),
|
|
22
|
-
onClick: (n) => e.$emit("update:modelValue", t.value)
|
|
23
|
-
}, o(t.label), 11, l))), 128))]);
|
|
24
|
-
}
|
|
25
|
-
var d = /* @__PURE__ */ e(s, [["render", u]]);
|
|
26
|
-
//#endregion
|
|
27
|
-
export { d as default };
|
|
1
|
+
import { t as e } from "../chunks/DokYQ49m.mjs";
|
|
2
|
+
export { e as default };
|
package/card/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as e } from "../chunks/
|
|
1
|
+
import { t as e } from "../chunks/B1MSrc6f.mjs";
|
|
2
2
|
import { ElCol as t, ElRow as n } from "element-plus/es";
|
|
3
3
|
import "element-plus/es/components/base/style/css";
|
|
4
4
|
import { Fragment as r, createBlock as i, createCommentVNode as a, createElementBlock as o, createElementVNode as s, createVNode as c, openBlock as l, renderList as u, renderSlot as d, toDisplayString as f, withCtx as p } from "vue";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as e } from "./CjjJimnU.mjs";
|
|
2
|
-
import { t } from "./
|
|
2
|
+
import { t } from "./B1MSrc6f.mjs";
|
|
3
3
|
import { ElInput as n } from "element-plus/es";
|
|
4
4
|
import "element-plus/es/components/base/style/css";
|
|
5
5
|
import "element-plus/es/components/input/style/css";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { a as e, h as t } from "./ClVh1Lek.mjs";
|
|
2
2
|
import { cellClickHandlerContextKey as n } from "../constants/index.mjs";
|
|
3
|
-
import { t as r } from "./
|
|
4
|
-
import { n as i, t as a } from "./
|
|
3
|
+
import { t as r } from "./tzjUpVIj.mjs";
|
|
4
|
+
import { n as i, t as a } from "./C_QfuxeQ.mjs";
|
|
5
5
|
import { ElTableColumn as o } from "element-plus/es";
|
|
6
6
|
import "element-plus/es/components/base/style/css";
|
|
7
7
|
import { createVNode as s, inject as c, mergeProps as l } from "vue";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as e, o as t } from "./
|
|
1
|
+
import { n as e, o as t } from "./Dgwcljur.mjs";
|
|
2
2
|
import { allProps as n, predicate as r } from "../props/slide.mjs";
|
|
3
3
|
import { ElSlider as i } from "element-plus/es";
|
|
4
4
|
import "element-plus/es/components/base/style/css";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as e, o as t } from "./
|
|
1
|
+
import { n as e, o as t } from "./Dgwcljur.mjs";
|
|
2
2
|
import { useDictionary as n } from "../hook/useDictionary.mjs";
|
|
3
3
|
import { allProps as r, predicate as i } from "../props/radio-group.mjs";
|
|
4
4
|
import { ElRadio as a, ElRadioButton as o, ElRadioGroup as s } from "element-plus/es";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as e, o as t } from "./
|
|
2
|
-
import { t as n } from "./
|
|
1
|
+
import { n as e, o as t } from "./Dgwcljur.mjs";
|
|
2
|
+
import { t as n } from "./b_78-Wov2.mjs";
|
|
3
3
|
import { allProps as r, predicate as i } from "../props/tree-select.mjs";
|
|
4
4
|
import { createVNode as a, mergeProps as o } from "vue";
|
|
5
5
|
//#endregion
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { t as e } from "./
|
|
2
|
-
import { t } from "./
|
|
3
|
-
import { t as n } from "./
|
|
4
|
-
import { t as r } from "./
|
|
5
|
-
import { n as i } from "./
|
|
6
|
-
import { t as a } from "./
|
|
7
|
-
import { t as o } from "./
|
|
8
|
-
import { t as s } from "./
|
|
9
|
-
import { t as c } from "./
|
|
10
|
-
import { t as l } from "
|
|
11
|
-
import { t as u } from "./
|
|
12
|
-
import { t as d } from "./
|
|
1
|
+
import { t as e } from "./B1MSrc6f.mjs";
|
|
2
|
+
import { t } from "./Cb7kjZa-.mjs";
|
|
3
|
+
import { t as n } from "./mnqSaATq.mjs";
|
|
4
|
+
import { t as r } from "./tzjUpVIj.mjs";
|
|
5
|
+
import { n as i } from "./Dgwcljur.mjs";
|
|
6
|
+
import { t as a } from "./ohCkWdwS.mjs";
|
|
7
|
+
import { t as o } from "./C7rEqtOR.mjs";
|
|
8
|
+
import { t as s } from "./DLdsvozr.mjs";
|
|
9
|
+
import { t as c } from "./DMDsZeqv.mjs";
|
|
10
|
+
import { t as l } from "./BTNnujZA2.mjs";
|
|
11
|
+
import { t as u } from "./Dje2xUVd2.mjs";
|
|
12
|
+
import { t as d } from "./BaB0bq4I2.mjs";
|
|
13
13
|
import f from "../table-column-def/index.mjs";
|
|
14
|
-
import { t as p } from "./
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
14
|
+
import { t as p } from "./D_gR5ibl2.mjs";
|
|
15
|
+
import { formContextKey as m, formItemContextKey as h } from "element-plus/es";
|
|
16
|
+
import { Fragment as g, createBlock as _, createCommentVNode as v, createElementBlock as y, createElementVNode as b, createSlots as x, createTextVNode as S, createVNode as C, mergeProps as w, openBlock as T, renderList as E, renderSlot as D, resolveComponent as O, toDisplayString as k, withCtx as A, withModifiers as j } from "vue";
|
|
17
|
+
import { findTreeChildren as M, isFunction as N } from "@web-utils/core";
|
|
18
|
+
import { cloneDeep as P } from "@web-utils/integrations/lodash";
|
|
19
19
|
//#region src/components/table/sub-table.ts
|
|
20
20
|
var F = {
|
|
21
21
|
modelValue: Array,
|
|
@@ -59,11 +59,11 @@ var F = {
|
|
|
59
59
|
},
|
|
60
60
|
inject: {
|
|
61
61
|
elForm: {
|
|
62
|
-
from:
|
|
62
|
+
from: m,
|
|
63
63
|
default: ""
|
|
64
64
|
},
|
|
65
65
|
elFormItem: {
|
|
66
|
-
from:
|
|
66
|
+
from: h,
|
|
67
67
|
default: ""
|
|
68
68
|
}
|
|
69
69
|
},
|
|
@@ -109,7 +109,7 @@ var F = {
|
|
|
109
109
|
},
|
|
110
110
|
methods: {
|
|
111
111
|
getCellType(e, t) {
|
|
112
|
-
return
|
|
112
|
+
return N(t.getType) ? t.getType(e, t) : t.type;
|
|
113
113
|
},
|
|
114
114
|
getInputAttr(e, t, n) {
|
|
115
115
|
var r;
|
|
@@ -134,7 +134,7 @@ var F = {
|
|
|
134
134
|
} catch {}
|
|
135
135
|
},
|
|
136
136
|
add(e, t) {
|
|
137
|
-
let n =
|
|
137
|
+
let n = P(this.rowProps);
|
|
138
138
|
this.rows.splice(t + 1, 0, n);
|
|
139
139
|
},
|
|
140
140
|
addRow() {
|
|
@@ -165,7 +165,7 @@ var F = {
|
|
|
165
165
|
if (r) return r.name;
|
|
166
166
|
}
|
|
167
167
|
if (n.type === "cascader" && (i = n.attrs) != null && i.options) {
|
|
168
|
-
let [r] =
|
|
168
|
+
let [r] = M(n.attrs.options, (r) => r[n.attrs.valueKey || "value"] === e[t.property]);
|
|
169
169
|
if (r) return r[n.attrs.valueKey || "label"];
|
|
170
170
|
}
|
|
171
171
|
return e[t.property];
|
|
@@ -178,9 +178,9 @@ var F = {
|
|
|
178
178
|
key: 0,
|
|
179
179
|
style: { color: "#f56c6c" }
|
|
180
180
|
}, z = ["onClick"];
|
|
181
|
-
function B(e, i,
|
|
182
|
-
let P = n, F = o, I = u, B =
|
|
183
|
-
return
|
|
181
|
+
function B(e, i, m, h, M, N) {
|
|
182
|
+
let P = n, F = o, I = u, B = O("FormInputUser"), V = O("FormInputDepartment"), H = d, U = c, W = a, G = s, K = l, q = p, J = r, Y = f, X = t;
|
|
183
|
+
return T(), _(X, w({
|
|
184
184
|
ref: "table",
|
|
185
185
|
class: "sub-table",
|
|
186
186
|
"auto-height": "",
|
|
@@ -193,9 +193,9 @@ function B(e, i, A, j, M, N) {
|
|
|
193
193
|
selection: N.enabled,
|
|
194
194
|
"row-db-click": e.rowDbClick,
|
|
195
195
|
onSelectionChange: N.onSelectionChange
|
|
196
|
-
}),
|
|
197
|
-
default:
|
|
198
|
-
|
|
196
|
+
}), x({
|
|
197
|
+
default: A(() => [
|
|
198
|
+
D(e.$slots, "columns", { columns: e.columns }, () => [(T(!0), y(g, null, E(N.filteredColumns, (t) => (T(), _(Y, {
|
|
199
199
|
key: t.prop,
|
|
200
200
|
label: t.label,
|
|
201
201
|
width: t.width,
|
|
@@ -206,34 +206,34 @@ function B(e, i, A, j, M, N) {
|
|
|
206
206
|
options: t.options,
|
|
207
207
|
"show-overflow-tooltip": !N.available && t.showOverflowTooltip
|
|
208
208
|
}, {
|
|
209
|
-
header:
|
|
210
|
-
default:
|
|
211
|
-
|
|
212
|
-
|
|
209
|
+
header: A(() => [!e.disabled && t.required ? (T(), y("span", R, "*")) : v("v-if", !0), S(" " + k(t.label), 1)]),
|
|
210
|
+
default: A(({ row: n, column: r, $index: i }) => [
|
|
211
|
+
v("tag 插槽"),
|
|
212
|
+
D(e.$slots, "tag", {
|
|
213
213
|
row: n,
|
|
214
214
|
column: r,
|
|
215
215
|
index: i
|
|
216
216
|
}),
|
|
217
|
-
|
|
218
|
-
|
|
217
|
+
v("列默认插槽,名字和 prop 保持一致"),
|
|
218
|
+
D(e.$slots, t.prop, {
|
|
219
219
|
row: n,
|
|
220
220
|
column: r,
|
|
221
221
|
index: i
|
|
222
222
|
}, () => {
|
|
223
223
|
var e;
|
|
224
|
-
return [N.available ? (
|
|
224
|
+
return [N.available ? (T(), y(g, { key: 0 }, [N.getCellType(n, t) === "input" ? (T(), _(F, w({
|
|
225
225
|
key: 0,
|
|
226
226
|
ref_for: !0
|
|
227
|
-
}, N.getInputAttr(n, t, i), { "onUpdate:modelValue": (e) => N.onInput(n, e, t) }), null, 16, ["onUpdate:modelValue"])) : N.getCellType(n, t) === "inputPhoneNumber" ? (
|
|
227
|
+
}, N.getInputAttr(n, t, i), { "onUpdate:modelValue": (e) => N.onInput(n, e, t) }), null, 16, ["onUpdate:modelValue"])) : N.getCellType(n, t) === "inputPhoneNumber" ? (T(), _(I, w({
|
|
228
228
|
key: 1,
|
|
229
229
|
ref_for: !0
|
|
230
|
-
}, N.getInputAttr(n, t, i), { "onUpdate:modelValue": (e) => N.onInput(n, e, t) }), null, 16, ["onUpdate:modelValue"])) : N.getCellType(n, t) === "user" ? (
|
|
230
|
+
}, N.getInputAttr(n, t, i), { "onUpdate:modelValue": (e) => N.onInput(n, e, t) }), null, 16, ["onUpdate:modelValue"])) : N.getCellType(n, t) === "user" ? (T(), y(g, { key: 2 }, [t.single ? (T(), _(B, w({
|
|
231
231
|
key: 0,
|
|
232
232
|
ref_for: !0
|
|
233
|
-
}, N.getInputAttr(n, t, i), { "onUpdate:modelValue": (e) => N.onInput(n, e, t) }), null, 16, ["onUpdate:modelValue"])) : (
|
|
233
|
+
}, N.getInputAttr(n, t, i), { "onUpdate:modelValue": (e) => N.onInput(n, e, t) }), null, 16, ["onUpdate:modelValue"])) : (T(), _(B, w({
|
|
234
234
|
key: 1,
|
|
235
235
|
ref_for: !0
|
|
236
|
-
}, N.getInputAttr(n, t, i), { "onUpdate:modelValue": (e) => N.onInput(n, e, t) }), null, 16, ["onUpdate:modelValue"]))], 64)) : N.getCellType(n, t) === "department" ? (
|
|
236
|
+
}, N.getInputAttr(n, t, i), { "onUpdate:modelValue": (e) => N.onInput(n, e, t) }), null, 16, ["onUpdate:modelValue"]))], 64)) : N.getCellType(n, t) === "department" ? (T(), y(g, { key: 3 }, [t.single ? (T(), _(V, w({
|
|
237
237
|
key: 0,
|
|
238
238
|
ref_for: !0
|
|
239
239
|
}, N.getInputAttr(n, t, i), {
|
|
@@ -244,16 +244,16 @@ function B(e, i, A, j, M, N) {
|
|
|
244
244
|
"name",
|
|
245
245
|
"onUpdate:name",
|
|
246
246
|
"onUpdate:modelValue"
|
|
247
|
-
])) : (
|
|
247
|
+
])) : (T(), _(V, w({
|
|
248
248
|
key: 1,
|
|
249
249
|
ref_for: !0
|
|
250
250
|
}, N.getInputAttr(n, t, i), {
|
|
251
251
|
disabled: N.isInputDisabled(n, t),
|
|
252
252
|
"onUpdate:modelValue": (e) => N.onInput(n, e, t)
|
|
253
|
-
}), null, 16, ["disabled", "onUpdate:modelValue"]))], 64)) : N.getCellType(n, t) === "select" ? (
|
|
253
|
+
}), null, 16, ["disabled", "onUpdate:modelValue"]))], 64)) : N.getCellType(n, t) === "select" ? (T(), _(H, w({
|
|
254
254
|
key: 4,
|
|
255
255
|
ref_for: !0
|
|
256
|
-
}, N.getInputAttr(n, t, i), { "onUpdate:modelValue": (e) => N.onInput(n, e, t) }), null, 16, ["onUpdate:modelValue"])) : N.getCellType(n, t) === "datePicker" ? (
|
|
256
|
+
}, N.getInputAttr(n, t, i), { "onUpdate:modelValue": (e) => N.onInput(n, e, t) }), null, 16, ["onUpdate:modelValue"])) : N.getCellType(n, t) === "datePicker" ? (T(), _(U, w({
|
|
257
257
|
key: 5,
|
|
258
258
|
ref_for: !0
|
|
259
259
|
}, N.getInputAttr(n, t, i), {
|
|
@@ -268,19 +268,19 @@ function B(e, i, A, j, M, N) {
|
|
|
268
268
|
"end",
|
|
269
269
|
"onUpdate:end",
|
|
270
270
|
"onUpdate:modelValue"
|
|
271
|
-
])) : N.getCellType(n, t) === "cascader" ? (
|
|
271
|
+
])) : N.getCellType(n, t) === "cascader" ? (T(), _(W, w({
|
|
272
272
|
key: 6,
|
|
273
273
|
ref_for: !0
|
|
274
|
-
}, N.getInputAttr(n, t, i), { "onUpdate:modelValue": (e) => N.onInput(n, e, t) }), null, 16, ["onUpdate:modelValue"])) : N.getCellType(n, t) === "checkbox" ? (
|
|
274
|
+
}, N.getInputAttr(n, t, i), { "onUpdate:modelValue": (e) => N.onInput(n, e, t) }), null, 16, ["onUpdate:modelValue"])) : N.getCellType(n, t) === "checkbox" ? (T(), _(G, w({
|
|
275
275
|
key: 7,
|
|
276
276
|
ref_for: !0
|
|
277
|
-
}, N.getInputAttr(n, t, i), { "onUpdate:modelValue": (e) => N.onInput(n, e, t) }), null, 16, ["onUpdate:modelValue"])) : N.getCellType(n, t) === "number" ? (
|
|
277
|
+
}, N.getInputAttr(n, t, i), { "onUpdate:modelValue": (e) => N.onInput(n, e, t) }), null, 16, ["onUpdate:modelValue"])) : N.getCellType(n, t) === "number" ? (T(), _(K, w({
|
|
278
278
|
key: 8,
|
|
279
279
|
ref_for: !0
|
|
280
|
-
}, N.getInputAttr(n, t, i), { "onUpdate:modelValue": (e) => N.onInput(n, e, t) }), null, 16, ["onUpdate:modelValue"])) : N.getCellType(n, t) === "textarea" ? (
|
|
280
|
+
}, N.getInputAttr(n, t, i), { "onUpdate:modelValue": (e) => N.onInput(n, e, t) }), null, 16, ["onUpdate:modelValue"])) : N.getCellType(n, t) === "textarea" ? (T(), _(q, w({
|
|
281
281
|
key: 9,
|
|
282
282
|
ref_for: !0
|
|
283
|
-
}, N.getInputAttr(n, t, i), { "onUpdate:modelValue": (e) => N.onInput(n, e, t) }), null, 16, ["onUpdate:modelValue"])) : (
|
|
283
|
+
}, N.getInputAttr(n, t, i), { "onUpdate:modelValue": (e) => N.onInput(n, e, t) }), null, 16, ["onUpdate:modelValue"])) : (T(), y(g, { key: 10 }, [S(k(N.getVal(n, r, t)), 1)], 64))], 64)) : t.dicType || (e = t.options) != null && e.length ? (T(), _(J, {
|
|
284
284
|
key: 1,
|
|
285
285
|
"dict-type": t.dicType,
|
|
286
286
|
"id-as-value": t.idAsValue,
|
|
@@ -295,7 +295,7 @@ function B(e, i, A, j, M, N) {
|
|
|
295
295
|
"column",
|
|
296
296
|
"row",
|
|
297
297
|
"options"
|
|
298
|
-
])) : (
|
|
298
|
+
])) : (T(), y(g, { key: 2 }, [S(k(N.getVal(n, r, t)), 1)], 64))];
|
|
299
299
|
})
|
|
300
300
|
]),
|
|
301
301
|
_: 2
|
|
@@ -309,13 +309,13 @@ function B(e, i, A, j, M, N) {
|
|
|
309
309
|
"options",
|
|
310
310
|
"show-overflow-tooltip"
|
|
311
311
|
]))), 128))]),
|
|
312
|
-
|
|
313
|
-
|
|
312
|
+
v(" 自定义操作列 "),
|
|
313
|
+
D(e.$slots, "handle", {
|
|
314
314
|
add: N.add,
|
|
315
315
|
remove: N.remove
|
|
316
316
|
}),
|
|
317
|
-
|
|
318
|
-
(!e.modelValue || e.modelValue.length < e.limit) && !e.disabled && N.enabled && e.editable && e.handleColumn ? (
|
|
317
|
+
v(" 操作列 "),
|
|
318
|
+
(!e.modelValue || e.modelValue.length < e.limit) && !e.disabled && N.enabled && e.editable && e.handleColumn ? (T(), _(Y, {
|
|
319
319
|
key: 0,
|
|
320
320
|
label: "操作",
|
|
321
321
|
fixed: "right",
|
|
@@ -323,11 +323,11 @@ function B(e, i, A, j, M, N) {
|
|
|
323
323
|
align: "center",
|
|
324
324
|
prop: "menu"
|
|
325
325
|
}, {
|
|
326
|
-
header:
|
|
326
|
+
header: A(({ column: t, $index: n }) => [D(e.$slots, "handle-column-header", {
|
|
327
327
|
column: t,
|
|
328
328
|
index: n
|
|
329
|
-
}, () => [
|
|
330
|
-
default:
|
|
329
|
+
}, () => [S(k(t.label), 1)])]),
|
|
330
|
+
default: A(({ row: t, $index: n }) => [e.showHandleColumnAddButton && e.modelValue.length < e.maxLimit ? (T(), y("i", {
|
|
331
331
|
key: 0,
|
|
332
332
|
class: "el-icon-circle-plus sub-table-handle-button table-button-add",
|
|
333
333
|
style: {
|
|
@@ -336,8 +336,8 @@ function B(e, i, A, j, M, N) {
|
|
|
336
336
|
cursor: "pointer"
|
|
337
337
|
},
|
|
338
338
|
title: "添加",
|
|
339
|
-
onClick:
|
|
340
|
-
}, null, 8, z)) :
|
|
339
|
+
onClick: j((e) => N.add(t, n), ["stop"])
|
|
340
|
+
}, null, 8, z)) : v("v-if", !0), e.modelValue && e.modelValue.length > 1 || e.allowEmpty ? (T(), _(P, {
|
|
341
341
|
key: 1,
|
|
342
342
|
class: "el-icon-error sub-table-handle-button table-button-remove",
|
|
343
343
|
style: {
|
|
@@ -348,27 +348,27 @@ function B(e, i, A, j, M, N) {
|
|
|
348
348
|
confirm: "",
|
|
349
349
|
text: "",
|
|
350
350
|
message: "您确定要删除该行吗?",
|
|
351
|
-
onClick:
|
|
352
|
-
}, null, 8, ["onClick"])) :
|
|
351
|
+
onClick: j((e) => N.remove(t, n), ["stop"])
|
|
352
|
+
}, null, 8, ["onClick"])) : v("v-if", !0)]),
|
|
353
353
|
_: 3
|
|
354
|
-
})) :
|
|
354
|
+
})) : v("v-if", !0)
|
|
355
355
|
]),
|
|
356
356
|
_: 2
|
|
357
357
|
}, [e.editable ? void 0 : {
|
|
358
358
|
name: "toolbar",
|
|
359
|
-
fn:
|
|
359
|
+
fn: A(() => [N.enabled || e.fetchApi ? (T(), y("div", L, [D(e.$slots, "toolbar", {
|
|
360
360
|
addRow: N.addRow,
|
|
361
361
|
delRow: N.delRow,
|
|
362
362
|
refresh: N.refresh
|
|
363
|
-
}, () => [N.enabled ? (
|
|
363
|
+
}, () => [N.enabled ? (T(), y(g, { key: 0 }, [C(P, {
|
|
364
364
|
class: "table-header-button add",
|
|
365
365
|
icon: "el-icon-circle-plus",
|
|
366
366
|
type: "text",
|
|
367
367
|
onClick: N.addRow
|
|
368
368
|
}, {
|
|
369
|
-
default:
|
|
369
|
+
default: A(() => [...i[1] || (i[1] = [S(" 添加 ", -1)])]),
|
|
370
370
|
_: 1
|
|
371
|
-
}, 8, ["onClick"]),
|
|
371
|
+
}, 8, ["onClick"]), C(P, {
|
|
372
372
|
class: "table-header-button remove",
|
|
373
373
|
confirm: "",
|
|
374
374
|
message: "您确定要删除选中的记录吗?",
|
|
@@ -376,9 +376,9 @@ function B(e, i, A, j, M, N) {
|
|
|
376
376
|
text: "",
|
|
377
377
|
onClick: N.delRow
|
|
378
378
|
}, {
|
|
379
|
-
default:
|
|
379
|
+
default: A(() => [...i[2] || (i[2] = [S(" 删除 ", -1)])]),
|
|
380
380
|
_: 1
|
|
381
|
-
}, 8, ["onClick"])], 64)) :
|
|
381
|
+
}, 8, ["onClick"])], 64)) : v("v-if", !0), e.fetchApi ? (T(), _(P, {
|
|
382
382
|
key: 1,
|
|
383
383
|
class: "table-header-button refresh",
|
|
384
384
|
icon: "el-icon-refresh-left",
|
|
@@ -386,20 +386,20 @@ function B(e, i, A, j, M, N) {
|
|
|
386
386
|
disabled: !1,
|
|
387
387
|
onClick: N.refresh
|
|
388
388
|
}, {
|
|
389
|
-
default:
|
|
389
|
+
default: A(() => [...i[3] || (i[3] = [S(" 刷新 ", -1)])]),
|
|
390
390
|
_: 1
|
|
391
|
-
}, 8, ["onClick"])) :
|
|
391
|
+
}, 8, ["onClick"])) : v("v-if", !0)])])) : v("v-if", !0)]),
|
|
392
392
|
key: "0"
|
|
393
393
|
}, e.allowEmpty && !e.disabled && e.showEmptyAddButton ? {
|
|
394
394
|
name: "empty",
|
|
395
|
-
fn:
|
|
395
|
+
fn: A(() => [b("i", {
|
|
396
396
|
class: "el-icon-circle-plus sub-table-handle-button table-button-add",
|
|
397
397
|
style: {
|
|
398
398
|
"font-size": "20px",
|
|
399
399
|
cursor: "pointer"
|
|
400
400
|
},
|
|
401
401
|
title: "添加",
|
|
402
|
-
onClick: i[0] || (i[0] =
|
|
402
|
+
onClick: i[0] || (i[0] = j((e) => N.add(null, 0), ["stop"]))
|
|
403
403
|
})]),
|
|
404
404
|
key: "1"
|
|
405
405
|
} : void 0]), 1040, [
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as e, o as t } from "./
|
|
1
|
+
import { n as e, o as t } from "./Dgwcljur.mjs";
|
|
2
2
|
import { allProps as n, predicate as r } from "../props/input-number.mjs";
|
|
3
3
|
import { ElInputNumber as i } from "element-plus/es";
|
|
4
4
|
import "element-plus/es/components/base/style/css";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { n as e } from "./CjjJimnU.mjs";
|
|
2
|
-
import { t } from "./
|
|
3
|
-
import { i as n, n as r } from "./
|
|
2
|
+
import { t } from "./B1MSrc6f.mjs";
|
|
3
|
+
import { i as n, n as r } from "./B1jgu0ci.mjs";
|
|
4
4
|
import { ElForm as i, ElFormItem as a, ElInput as o, ElOption as s, ElSelect as c, ElSwitch as l } from "element-plus/es";
|
|
5
5
|
import "element-plus/es/components/base/style/css";
|
|
6
6
|
import "element-plus/es/components/input/style/css";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as e, o as t } from "./
|
|
1
|
+
import { n as e, o as t } from "./Dgwcljur.mjs";
|
|
2
2
|
import { useDictionary as n } from "../hook/useDictionary.mjs";
|
|
3
3
|
import { allProps as r, predicate as i } from "../props/select.mjs";
|
|
4
4
|
import { ElOption as a, ElSelect as o } from "element-plus/es";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { s as e } from "./ClVh1Lek.mjs";
|
|
2
2
|
import { goBack as t, hasAuthority as n } from "../api/index.mjs";
|
|
3
3
|
import { toolbarContextKey as r } from "../constants/index.mjs";
|
|
4
|
-
import { t as i } from "./
|
|
4
|
+
import { t as i } from "./mnqSaATq.mjs";
|
|
5
5
|
import { Comment as a, createVNode as o } from "vue";
|
|
6
6
|
import { NOOP as s, capitalize as c } from "@web-utils/core";
|
|
7
7
|
//#region src/components/toolbar/Toolbar.vue?vue&type=script&lang.jsx
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { n as e } from "./CjjJimnU.mjs";
|
|
2
|
-
import { t } from "./
|
|
3
|
-
import { t as n } from "./
|
|
2
|
+
import { t } from "./B1MSrc6f.mjs";
|
|
3
|
+
import { t as n } from "./V-Js6hNd.mjs";
|
|
4
4
|
import { ElButton as r, ElDivider as i, ElDrawer as a, ElForm as o, ElFormItem as s, ElInput as c, ElOption as l, ElSelect as u, ElTable as d, ElTableColumn as f } from "element-plus/es";
|
|
5
5
|
import "element-plus/es/components/base/style/css";
|
|
6
6
|
import "element-plus/es/components/input/style/css";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { n as e } from "./CjjJimnU.mjs";
|
|
2
|
-
import { t } from "./
|
|
3
|
-
import { t as n } from "./
|
|
4
|
-
import { r, t as i } from "./
|
|
5
|
-
import { a, i as o, n as s, r as c } from "./
|
|
2
|
+
import { t } from "./B1MSrc6f.mjs";
|
|
3
|
+
import { t as n } from "./V-Js6hNd.mjs";
|
|
4
|
+
import { r, t as i } from "./B1jgu0ci.mjs";
|
|
5
|
+
import { a, i as o, n as s, r as c } from "./z6tpYT0z.mjs";
|
|
6
6
|
import { ElButton as l, ElDivider as u, ElDrawer as d, ElForm as f, ElFormItem as p, ElInput as m, ElOption as h, ElSelect as g, ElTable as _, ElTableColumn as v } from "element-plus/es";
|
|
7
7
|
import "element-plus/es/components/base/style/css";
|
|
8
8
|
import "element-plus/es/components/input/style/css";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { h as e } from "./ClVh1Lek.mjs";
|
|
2
2
|
import { useFormItemProps as t } from "../helper/form-item.mjs";
|
|
3
|
-
import { r as n } from "./
|
|
3
|
+
import { r as n } from "./Dgwcljur.mjs";
|
|
4
4
|
import { allProps as r, predicate as i } from "../props/text.mjs";
|
|
5
5
|
import { ElText as a } from "element-plus/es";
|
|
6
6
|
import "element-plus/es/components/base/style/css";
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import e from "../count-up/index.mjs";
|
|
2
|
+
import { ElCol as t, ElRow as n } from "element-plus/es";
|
|
3
|
+
import "element-plus/es/components/base/style/css";
|
|
4
|
+
import { Fragment as r, computed as i, createBlock as a, createElementBlock as o, createElementVNode as s, createVNode as c, defineComponent as l, normalizeClass as u, normalizeStyle as d, openBlock as f, renderList as p, toDisplayString as m, unref as h, withCtx as g } from "vue";
|
|
5
|
+
import "element-plus/es/components/row/style/css";
|
|
6
|
+
import "element-plus/es/components/col/style/css";
|
|
7
|
+
//#region src/components/data/box/DataBox.vue?vue&type=script&setup=true&lang.ts
|
|
8
|
+
var _ = { class: "data-box" }, v = { class: "item" }, y = [
|
|
9
|
+
"href",
|
|
10
|
+
"target",
|
|
11
|
+
"onClick"
|
|
12
|
+
], b = { class: "item-info" }, x = { class: "info" }, S = /* @__PURE__ */ l({
|
|
13
|
+
name: "DataBox",
|
|
14
|
+
__name: "DataBox",
|
|
15
|
+
props: { option: {
|
|
16
|
+
type: Object,
|
|
17
|
+
default: () => ({})
|
|
18
|
+
} },
|
|
19
|
+
setup(l) {
|
|
20
|
+
let S = l, C = i(() => S.option.animation), w = i(() => S.option.decimals || 0), T = i(() => S.option.span || 8), E = i(() => S.option.data || []);
|
|
21
|
+
return (i, l) => {
|
|
22
|
+
let S = e, D = t, O = n;
|
|
23
|
+
return f(), o("div", _, [c(O, { span: 24 }, {
|
|
24
|
+
default: g(() => [(f(!0), o(r, null, p(h(E), (e, t) => (f(), a(D, {
|
|
25
|
+
key: t,
|
|
26
|
+
md: h(T),
|
|
27
|
+
xs: 24,
|
|
28
|
+
sm: 12
|
|
29
|
+
}, {
|
|
30
|
+
default: g(() => [s("div", v, [s("a", {
|
|
31
|
+
href: e.href,
|
|
32
|
+
target: e.target,
|
|
33
|
+
onClick: (t) => e.click && e.click(e)
|
|
34
|
+
}, [s("div", {
|
|
35
|
+
class: "item-icon",
|
|
36
|
+
style: d({ backgroundColor: e.color })
|
|
37
|
+
}, [s("i", { class: u(e.icon) }, null, 2)], 4), s("div", b, [c(S, {
|
|
38
|
+
animation: e.animation || h(C),
|
|
39
|
+
decimals: e.decimals || h(w),
|
|
40
|
+
style: d({ color: e.color }),
|
|
41
|
+
class: "title",
|
|
42
|
+
end: e.count
|
|
43
|
+
}, null, 8, [
|
|
44
|
+
"animation",
|
|
45
|
+
"decimals",
|
|
46
|
+
"style",
|
|
47
|
+
"end"
|
|
48
|
+
]), s("div", x, m(e.title), 1)])], 8, y)])]),
|
|
49
|
+
_: 2
|
|
50
|
+
}, 1032, ["md"]))), 128))]),
|
|
51
|
+
_: 1
|
|
52
|
+
})]);
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
});
|
|
56
|
+
//#endregion
|
|
57
|
+
export { S as t };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as e } from "./
|
|
2
|
-
import { t } from "./
|
|
1
|
+
import { t as e } from "./B1MSrc6f.mjs";
|
|
2
|
+
import { t } from "./V-Js6hNd.mjs";
|
|
3
3
|
import { ElButton as n, ElForm as r, ElFormItem as i, ElInput as a, ElTable as o, ElTableColumn as s } from "element-plus/es";
|
|
4
4
|
import "element-plus/es/components/base/style/css";
|
|
5
5
|
import "element-plus/es/components/input/style/css";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as e } from "./
|
|
2
|
-
import { t } from "./
|
|
1
|
+
import { t as e } from "./B1MSrc6f.mjs";
|
|
2
|
+
import { t } from "./mnqSaATq.mjs";
|
|
3
3
|
import { ElInputNumber as n, ElOption as r, ElRadio as i, ElRadioGroup as a, ElSelect as o, ElTabPane as s, ElTabs as c } from "element-plus/es";
|
|
4
4
|
import "element-plus/es/components/base/style/css";
|
|
5
5
|
import { Fragment as l, createBlock as u, createCommentVNode as d, createElementBlock as f, createElementVNode as p, createTextVNode as m, createVNode as h, openBlock as g, renderList as _, toDisplayString as v, withCtx as y } from "vue";
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { n as e, o as t, t as n } from "./Dgwcljur.mjs";
|
|
2
|
+
import { allProps as r, predicate as i } from "../props/input.mjs";
|
|
3
|
+
import { ElInput as a } from "element-plus/es";
|
|
4
|
+
import "element-plus/es/components/base/style/css";
|
|
5
|
+
import "element-plus/es/components/input/style/css";
|
|
6
|
+
import { computed as o, createVNode as s, mergeProps as c, onMounted as l, useModel as u } from "vue";
|
|
7
|
+
import { validatePhoneNum as d } from "@web-utils/core";
|
|
8
|
+
//#region src/utils/form-validate.ts
|
|
9
|
+
var f = (e, t, n) => t && !/^[A-Za-z0-9\u4e00-\u9fa5_-]+@[a-zA-Z0-9_-]+(\.[a-zA-Z0-9_-]+)+$/.test(t) ? n(/* @__PURE__ */ Error("invalid")) : n();
|
|
10
|
+
function p(e, t, n) {
|
|
11
|
+
t && !/^[1-9][0-9]{5}(18|19|(2[0-9]))[0-9]{2}((0[1-9])|(10|11|12))(([0-2][1-9])|10|20|30|31)[0-9]{3}[0-9Xx]$/.test(t) ? n(/* @__PURE__ */ Error("invalid")) : n();
|
|
12
|
+
}
|
|
13
|
+
function m(e, t, n) {
|
|
14
|
+
if (this.$refs.table.$refs.table.records.length === 0) {
|
|
15
|
+
n(Error(e.message || `请添加${e.label}`));
|
|
16
|
+
return;
|
|
17
|
+
}
|
|
18
|
+
n();
|
|
19
|
+
}
|
|
20
|
+
//#endregion
|
|
21
|
+
//#region src/components/form/FormInput.vue
|
|
22
|
+
var h = {
|
|
23
|
+
name: "FormInput",
|
|
24
|
+
inheritAttrs: !1,
|
|
25
|
+
props: { ...r },
|
|
26
|
+
emits: { ...e },
|
|
27
|
+
setup(e, { emit: r, slots: m, attrs: h }) {
|
|
28
|
+
let g = u(e, "modelValue"), _ = `请输入正确的${e.label}!`, { render: v, placeholder: y, disabled: b, listeners: x, inputProps: S, printing: C, formItem: w } = t(e, {
|
|
29
|
+
emit: r,
|
|
30
|
+
slots: m,
|
|
31
|
+
attrs: h,
|
|
32
|
+
rules: o(() => {
|
|
33
|
+
if (!e.type || e.type === "textarea") return null;
|
|
34
|
+
let t = {
|
|
35
|
+
message: _,
|
|
36
|
+
trigger: "blur"
|
|
37
|
+
};
|
|
38
|
+
if (e.type === "email") t.validator = f;
|
|
39
|
+
else if (e.type === "idcard") t.validator = p;
|
|
40
|
+
else if (e.type === "phone") t.validator = d;
|
|
41
|
+
else return null;
|
|
42
|
+
return [t];
|
|
43
|
+
}),
|
|
44
|
+
predicate: i
|
|
45
|
+
});
|
|
46
|
+
return l(() => {
|
|
47
|
+
console.log(w.value);
|
|
48
|
+
}), () => v({ vNodes: C.value ? e.modelValue : s(a, c(x.value, S.value, {
|
|
49
|
+
class: ["form-input", {
|
|
50
|
+
"is-readonly": e.readonlyGrey && e.readonly && !e.picker,
|
|
51
|
+
"el-input-cursor-pointer": e.picker && !b.value
|
|
52
|
+
}],
|
|
53
|
+
modelValue: g.value,
|
|
54
|
+
"onUpdate:modelValue": (e) => g.value = e,
|
|
55
|
+
disabled: b.value,
|
|
56
|
+
placeholder: y.value,
|
|
57
|
+
readonly: e.readonly || e.picker,
|
|
58
|
+
"prefix-icon": n({ icon: e.picker ? "el-icon-search" : e.prefixIcon }),
|
|
59
|
+
"suffix-icon": n({ icon: e.suffixIcon })
|
|
60
|
+
}), {
|
|
61
|
+
prefix: m.prefix || e.prefix ? () => e.prefix : null,
|
|
62
|
+
suffix: m.suffix || e.suffix ? () => e.suffix : null,
|
|
63
|
+
"password-icon": m["password-icon"],
|
|
64
|
+
prepend: m.prepend || e.prepend ? () => e.prepend : null,
|
|
65
|
+
append: m.append || e.append ? () => e.append : null
|
|
66
|
+
}) });
|
|
67
|
+
}
|
|
68
|
+
};
|
|
69
|
+
//#endregion
|
|
70
|
+
export { m as n, h as t };
|