@web-utils/component 5.0.0-beta01 → 5.0.0-beta03
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/awesome-button/index.mjs +25 -31
- package/{utils/style.css → base.css} +1 -1
- package/chat/index.mjs +3 -12
- package/chunks/{EditableTree.C_IJBL5b.mjs → EditableTree.CV8b95tW.mjs} +130 -139
- package/chunks/{ElementBaseInfo.DyuFR6fE.mjs → ElementBaseInfo.lW0iwU10.mjs} +2 -3
- package/chunks/ElementDialog.DWhAJsUn.mjs +520 -0
- package/chunks/{ElementForm.ButuYDPA.mjs → ElementForm.C7yebHWH.mjs} +12 -39
- package/chunks/{ElementListeners.Dg3e_dmp.mjs → ElementListeners.B_SjC8dp.mjs} +10 -31
- package/chunks/{ElementMultiInstance.Dmi79FqA.mjs → ElementMultiInstance.Xw27Z5mm.mjs} +2 -3
- package/chunks/{ElementOtherConfig.C2AddGTp.mjs → ElementOtherConfig.DnNmAhKn.mjs} +0 -1
- package/chunks/{ElementProperties.CfV8UF7L.mjs → ElementProperties.DKr9JE_O.mjs} +3 -12
- package/chunks/{ElementTaskConfig.Bn7ycGGn.mjs → ElementTaskConfig.CPjsXlpS.mjs} +6 -10
- package/chunks/{FlowCondition.C6PdqOAW.mjs → FlowCondition.BA7GF34X.mjs} +4 -5
- package/chunks/{FlowDesigner.uJYFfKpR.mjs → FlowDesigner.DH1ypcUw.mjs} +17 -18
- package/chunks/{FormBlock.BEENc22F.mjs → FormBlock.D6kZl7sm.mjs} +8 -8
- package/chunks/FormCascader.BXL8lKww.mjs +1229 -0
- package/chunks/{FormInputTime.Bg3UIP8H.mjs → FormInputTime.DzTPiDNh.mjs} +339 -337
- package/chunks/{FormItem.H9OOvNzT.mjs → FormItem.B8iPLduv.mjs} +12 -13
- package/chunks/{FormItemGroup.D9eRy-cZ.mjs → FormItemGroup.CCGqEapT.mjs} +38 -31
- package/chunks/{FormSelect.CanodoAI.mjs → FormSelect.t0jbTL_K.mjs} +470 -467
- package/chunks/{FormSwitch.DTqdaFjv.mjs → FormSwitch.uoFQ-xp_.mjs} +53 -51
- package/chunks/{FormTemp.DiI5EfgK.mjs → FormTemp.CeHtEZQe.mjs} +11 -6
- package/chunks/{FyCurd.DMj1dMK9.mjs → FyCurd.DqJuCLNW.mjs} +22 -25
- package/chunks/{FyForm.vgR8ujEF.mjs → FyForm.CgyGhetD.mjs} +25 -21
- package/chunks/{FyFormDesign.DEWT6LsX.mjs → FyFormDesign.DIIK7mXK.mjs} +49 -128
- package/chunks/{FyUpload.B2QKfTxF.mjs → FyUpload.DoBEuYcC.mjs} +2 -2
- package/chunks/ImagePreview.DDFrZgo5.mjs +649 -0
- package/chunks/{Keyboard.ItiRy7Gb.mjs → Keyboard.DBspwbYo.mjs} +2 -2
- package/chunks/{MonacoEditor.Bd5Kui-Y.mjs → MonacoEditor.Bq9d6JSz.mjs} +65 -64
- package/chunks/{PageableTable.Bujb0NUx.mjs → PageableTable.DR-REJN5.mjs} +84 -83
- package/chunks/{SignalAndMessage.CYVzlFuL.mjs → SignalAndMessage.CL2u19it.mjs} +1 -10
- package/chunks/{TableColumn.DJYkznbJ.mjs → TableColumn.Cq9Bvevm.mjs} +34 -28
- package/chunks/{TableView.DyIdIxAg.mjs → TableView.DMWMaGLA.mjs} +26 -33
- package/chunks/ToolbarButton.AlTszc53.mjs +107 -0
- package/chunks/{UserTaskListeners.Bp-2qkHs.mjs → UserTaskListeners.Qfm8hKWP.mjs} +9 -27
- package/chunks/{VueCron.GfjodnyM.mjs → VueCron.BmPnLuu3.mjs} +163 -142
- package/chunks/{VueTreeSelect.9Ywl-I8e.mjs → VueTreeSelect.GHx4Z2lG.mjs} +48 -43
- package/chunks/button.gVyl7Y__.mjs +927 -0
- package/chunks/checkbox.AmhCpaBZ.mjs +438 -0
- package/chunks/chunk.A6TnG60p.mjs +13 -0
- package/chunks/confirmable-mixin.BZtxXY0h.mjs +273 -0
- package/chunks/constants.Dw7hXt67.mjs +4 -0
- package/chunks/{dictionary.DxZxP0ej.mjs → dictionary.BqVLM7Lf.mjs} +1 -1
- package/chunks/{event.eJ-c1Z3a.mjs → event.CmOTnori.mjs} +4 -7
- package/chunks/event.ZRs4J5TN.mjs +4 -0
- package/chunks/{focus-trap.DT4GnqQI.mjs → focus-trap.CuUc8N2C.mjs} +26 -26
- package/chunks/{form-input.D25eDRMq.mjs → form-input.DdSb45Tz.mjs} +3 -3
- package/chunks/{form-item.CgmUuw_n.mjs → form-item.fYYCXvCs.mjs} +77 -75
- package/chunks/icon.AJYLfX1m.mjs +26 -0
- package/chunks/{icon.CbS8-322.mjs → icon.niAg1zTC.mjs} +31 -39
- package/chunks/{init.DwpukyOB.mjs → init.CtUEiRbU.mjs} +6 -6
- package/chunks/{input.PejnqwSH.mjs → input.B_wW4aF-.mjs} +107 -106
- package/chunks/install.BJl2MN77.mjs +73 -0
- package/chunks/message-box.wGWcYSSd.mjs +463 -0
- package/chunks/{message.BCmee5N0.mjs → message.DnTACuzV.mjs} +76 -75
- package/chunks/{overlay.DubSnqma.mjs → overlay.Rhu_rfhx.mjs} +5 -5
- package/chunks/{radio.BotKXqJr.mjs → radio.BMkZBhl5.mjs} +45 -45
- package/chunks/{scroll.CzORc5Zk.mjs → scroll.BJIpzi2Q.mjs} +2 -2
- package/chunks/{scrollbar.CAmrlKi9.mjs → scrollbar.CvxOszy3.mjs} +4 -4
- package/chunks/{style.BmlGmjpO.mjs → style.CraPDfJA.mjs} +3 -3
- package/chunks/{tag.DPi-PLbb.mjs → tag.B6yUaGj-.mjs} +25 -25
- package/chunks/{teleport._VGEzK4d.mjs → teleport.87mkIv8m.mjs} +3 -3
- package/chunks/{tooltip.D50x7Rva.mjs → tooltip.Dzjs7LZ8.mjs} +108 -108
- package/chunks/typescript.D0a40c7B.mjs +4 -0
- package/chunks/{use-aria.BW7nWOl1.mjs → use-aria.B9uqqWAE.mjs} +2 -2
- package/chunks/{use-composition.mUaomyno.mjs → use-composition.BMPJBvYs.mjs} +4 -4
- package/chunks/{use-deprecated.BfDSbZS9.mjs → use-deprecated.vx6LTDA_.mjs} +2 -2
- package/chunks/use-empty-values.CxYKjLV9.mjs +81 -0
- package/chunks/use-form-item.DMDTkMq9.mjs +48 -0
- package/chunks/use-global-config.Dkt91Ob3.mjs +57 -0
- package/chunks/{use-id.CFO5NeoV.mjs → use-id.CyzdvfQn.mjs} +3 -3
- package/chunks/{use-empty-values.Dy_r78F6.mjs → use-locale.CBoQRFjH.mjs} +12 -87
- package/chunks/{use-size.DxrwTUwf.mjs → use-size.CoorvF12.mjs} +2 -2
- package/chunks/validator.Drv0r2Nb.mjs +5 -0
- package/chunks/{vnode.D_SioRnx.mjs → vnode.raM3wMJz.mjs} +2 -2
- package/confirm-button/index.mjs +1 -1
- package/confirmable/index.mjs +1 -1
- package/context-menu/index.mjs +39 -38
- package/data-box/style.css +1 -1
- package/data-card/style.css +1 -1
- package/data-display/style.css +1 -1
- package/data-icons/style.css +1 -1
- package/data-imgtext/style.css +1 -1
- package/data-operatext/style.css +1 -1
- package/data-panel/style.css +1 -1
- package/data-pay/style.css +1 -1
- package/data-price/style.css +1 -1
- package/data-progress/style.css +1 -1
- package/data-rotate/style.css +1 -1
- package/data-table-picker/index.mjs +2 -6
- package/data-tabs/style.css +1 -1
- package/dialog-form/index.mjs +7 -3
- package/dynamic-table/index.mjs +1 -2
- package/editable-tree/index.mjs +1 -1
- package/element-dialog/index.mjs +1 -1
- package/element-dialog/style.css +1 -1
- package/empty-view/index.mjs +18 -20
- package/error-view/index.mjs +17 -19
- package/flex-column/index.mjs +11 -9
- package/flex-item/index.mjs +22 -16
- package/flex-row/index.mjs +11 -10
- package/flow/index.mjs +1 -1
- package/flow-designer/index.mjs +1 -1
- package/form-block/index.mjs +1 -1
- package/form-cascader/index.mjs +1 -1
- package/form-checkbox/index.mjs +4 -4
- package/form-checkbox-group/index.mjs +6 -6
- package/form-date-picker/index.mjs +3 -3
- package/form-holder/index.mjs +2 -5
- package/form-input/index.mjs +4 -4
- package/form-input-cron-expression/index.mjs +4 -4
- package/form-input-email/index.mjs +10 -9
- package/form-input-id-card/index.mjs +10 -9
- package/form-input-phone-number/index.mjs +11 -10
- package/form-input-tag/index.mjs +2 -2
- package/form-input-time/index.mjs +1 -1
- package/form-item/index.mjs +1 -1
- package/form-item-group/index.mjs +1 -1
- package/form-radio-group/index.mjs +6 -6
- package/form-select/index.mjs +1 -1
- package/form-switch/index.mjs +1 -1
- package/form-table/index.mjs +2 -2
- package/form-table-plus/index.mjs +4 -4
- package/form-textarea/index.mjs +4 -4
- package/form-tree-select/index.mjs +3 -3
- package/form-tree-select-multiple/index.mjs +3 -3
- package/form-view/index.mjs +13 -8
- package/fy-array/index.mjs +1 -1
- package/fy-cascader/index.mjs +1 -1
- package/fy-checkbox/index.mjs +1 -1
- package/fy-code/index.mjs +2 -2
- package/fy-curd/index.mjs +1 -1
- package/fy-date/index.mjs +1 -1
- package/fy-dynamic/index.mjs +3 -7
- package/fy-form/index.mjs +1 -1
- package/fy-form/style.css +1 -1
- package/fy-form-design/index.mjs +1 -1
- package/fy-form-design/style.css +1 -1
- package/fy-input/index.mjs +1 -1
- package/fy-input-color/index.mjs +1 -2
- package/fy-input-icon/index.mjs +37 -32
- package/fy-input-map/index.mjs +1 -1
- package/fy-input-number/index.mjs +1 -1
- package/fy-input-table/index.mjs +1 -1
- package/fy-input-tree/index.mjs +3 -3
- package/fy-input-tree/style.css +1 -1
- package/fy-radio/index.mjs +2 -2
- package/fy-rate/index.mjs +2 -2
- package/fy-select/index.mjs +5 -5
- package/fy-slider/index.mjs +1 -1
- package/fy-switch/index.mjs +2 -2
- package/fy-time/index.mjs +1 -1
- package/fy-title/index.mjs +1 -1
- package/fy-tree/index.mjs +1 -1
- package/fy-u-editor/index.mjs +1 -1
- package/fy-upload/index.mjs +1 -1
- package/guide-steps/index.mjs +1 -1
- package/helper-function.d.ts +3 -3
- package/helper-function.mjs +36 -20
- package/iframe-window/index.mjs +30 -29
- package/image-cropper/index.mjs +144 -163
- package/image-cropper/style.css +1 -1
- package/image-preview/index.mjs +2 -187
- package/index.d.ts +1 -2
- package/index.mjs +153 -154
- package/input-number-range/index.mjs +0 -2
- package/keyboard/index.mjs +1 -1
- package/license/index.mjs +1 -1
- package/monaco-editor/index.mjs +1 -1
- package/nav-bar/index.mjs +1 -1
- package/notice/index.mjs +1 -4
- package/package.json +12 -14
- package/pageable-table/index.mjs +1 -1
- package/pageable-view/index.mjs +2 -2
- package/photo-swipe/index.mjs +1 -1
- package/picker-table-view/index.mjs +4 -8
- package/present-view/index.mjs +18 -13
- package/record-video/index.mjs +1 -1
- package/resize-observer/index.mjs +1 -1
- package/search/index.mjs +2 -2
- package/split-pane/index.mjs +1 -1
- package/stateful/index.mjs +18 -17
- package/static-pageable-table/index.mjs +1 -4
- package/sub-table/index.mjs +2 -5
- package/sub-table-plus/index.mjs +3 -6
- package/tab/index.mjs +1 -1
- package/tab-item/index.mjs +1 -1
- package/table-column/index.mjs +1 -1
- package/table-view/index.mjs +1 -1
- package/tag-render/index.mjs +28 -24
- package/toolbar/index.mjs +1 -1
- package/toolbar-button/index.mjs +2 -146
- package/vue-cron/index.mjs +1 -1
- package/vue-qr-code/index.mjs +7 -6
- package/vue-tags-input/index.mjs +1 -1
- package/vue-tree-select/index.mjs +1 -1
- package/watermark/index.mjs +13 -13
- package/web-types.json +265 -363
- package/x-input-tag/index.mjs +0 -3
- package/chunks/ElementDialog.C0IjriTW.mjs +0 -681
- package/chunks/FormCascader.CaM-oEhv.mjs +0 -1226
- package/chunks/checkbox.emIuFmnt.mjs +0 -437
- package/chunks/confirmable-mixin.BBil7dto.mjs +0 -1646
- package/chunks/event.B4iwtUNO.mjs +0 -4
- package/chunks/install.yLcn5MLL.mjs +0 -84
- package/chunks/typescript.DiWBU4nj.mjs +0 -4
- package/chunks/use-form-item.wsRjehHp.mjs +0 -47
- package/chunks/use-global-config.C9hs-O_x.mjs +0 -56
- package/chunks/validator.C4-z_t9p.mjs +0 -5
- package/login/index.mjs +0 -252
- package/login/style.css +0 -1
- /package/chunks/{FyUEditor.D_rEYfll.mjs → FyUEditor.uvZS8UgS.mjs} +0 -0
- /package/chunks/{RecordVideo.B35_dLty.mjs → RecordVideo.CKTY-gk9.mjs} +0 -0
- /package/chunks/{SplitPane.Dw96M0Yf.mjs → SplitPane.DNNid7WB.mjs} +0 -0
- /package/chunks/{Toolbar.DHuXJAoG.mjs → Toolbar.DytZ6fO0.mjs} +0 -0
- /package/chunks/{core.DJv6Qrae.mjs → core.Blrh_Fjl.mjs} +0 -0
- /package/chunks/{dataformat.Bfr4nOcA.mjs → dataformat.F7GtAoiN.mjs} +0 -0
- /package/chunks/{dic.DgDfnovD.mjs → dic.NZCGhtA7.mjs} +0 -0
- /package/chunks/{dictionary.5eKjWeAp.mjs → dictionary.DXYdZefs.mjs} +0 -0
- /package/chunks/{form-pick.Axem0gOO.mjs → form-pick.BEC7lrNH.mjs} +0 -0
- /package/chunks/{form-validate.B1KPCHqN.mjs → form-validate.JFOV_f-C.mjs} +0 -0
- /package/chunks/{packages.BGjydzjm.mjs → packages.CONbEH13.mjs} +0 -0
- /package/chunks/{permission.DgEVNWlh.mjs → permission.8WDtOmzA.mjs} +0 -0
- /package/chunks/{photo-swipe.BB0SJZg9.mjs → photo-swipe.BvBJGc5x.mjs} +0 -0
- /package/chunks/{slot.C6Ozd2e7.mjs → slot.CZCo32Cw.mjs} +0 -0
- /package/chunks/{sub-table-plus-props.B_lLth3j.mjs → sub-table-plus-props.DvS8aKT4.mjs} +0 -0
- /package/chunks/{tab-mixin.u0EZpx3j.mjs → tab-mixin.C9DSz8xu.mjs} +0 -0
- /package/chunks/{util.B3sjVZoZ.mjs → util.fjuzrmWz.mjs} +0 -0
- /package/chunks/{utilSelf.ZED4DmCU.mjs → utilSelf.Bv7FtUNb.mjs} +0 -0
- /package/chunks/{utils.Cs2fYBrT.mjs → utils.C37EhJ-u.mjs} +0 -0
- /package/chunks/{utils.DsGhtCIO.mjs → utils.C8RvIGLM.mjs} +0 -0
|
@@ -1,15 +1,17 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { t as
|
|
3
|
-
import { n as
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { t as
|
|
7
|
-
import {
|
|
8
|
-
import { t as
|
|
9
|
-
import {
|
|
10
|
-
import { t as
|
|
1
|
+
import "./chunk.A6TnG60p.mjs";
|
|
2
|
+
import { t as e } from "./_plugin-vue_export-helper.7vrlOII_.mjs";
|
|
3
|
+
import { n as t, r as n, t as r } from "./event.ZRs4J5TN.mjs";
|
|
4
|
+
import { _ as i, g as a, o, t as s } from "./install.BJl2MN77.mjs";
|
|
5
|
+
import { F as c, M as l, O as u, R as d, j as f, k as p, n as m } from "./style.CraPDfJA.mjs";
|
|
6
|
+
import { i as h, n as ee, r as te, t as ne } from "./use-form-item.DMDTkMq9.mjs";
|
|
7
|
+
import { t as g } from "./use-aria.B9uqqWAE.mjs";
|
|
8
|
+
import { h as _, t as v } from "./icon.niAg1zTC.mjs";
|
|
9
|
+
import { a as y } from "./icon.AJYLfX1m.mjs";
|
|
10
|
+
import { t as b } from "./validator.Drv0r2Nb.mjs";
|
|
11
|
+
import { d as x, n as S, u as C } from "./util.fjuzrmWz.mjs";
|
|
12
|
+
import { t as w } from "./form-input.DdSb45Tz.mjs";
|
|
11
13
|
import { computed as T, createBlock as E, createCommentVNode as D, createElementBlock as O, createElementVNode as k, createVNode as A, defineComponent as j, mergeProps as M, nextTick as N, normalizeClass as P, normalizeStyle as F, onMounted as I, openBlock as L, ref as re, renderSlot as R, resolveComponent as z, resolveDynamicComponent as B, shallowRef as V, toDisplayString as H, toHandlers as U, unref as W, watch as G, withCtx as K, withKeys as q, withModifiers as J } from "vue";
|
|
12
|
-
//#region node_modules/.pnpm/element-plus@2.13.
|
|
14
|
+
//#region node_modules/.pnpm/element-plus@2.13.6_typescr_b86181ecd25892dfea09546870d44c51/node_modules/element-plus/es/components/switch/src/switch.mjs
|
|
13
15
|
var Y = f({
|
|
14
16
|
modelValue: {
|
|
15
17
|
type: [
|
|
@@ -33,10 +35,10 @@ var Y = f({
|
|
|
33
35
|
default: ""
|
|
34
36
|
},
|
|
35
37
|
inlinePrompt: Boolean,
|
|
36
|
-
inactiveActionIcon: { type:
|
|
37
|
-
activeActionIcon: { type:
|
|
38
|
-
activeIcon: { type:
|
|
39
|
-
inactiveIcon: { type:
|
|
38
|
+
inactiveActionIcon: { type: y },
|
|
39
|
+
activeActionIcon: { type: y },
|
|
40
|
+
activeIcon: { type: y },
|
|
41
|
+
inactiveIcon: { type: y },
|
|
40
42
|
activeText: {
|
|
41
43
|
type: String,
|
|
42
44
|
default: ""
|
|
@@ -74,9 +76,9 @@ var Y = f({
|
|
|
74
76
|
tabindex: { type: [String, Number] },
|
|
75
77
|
...g(["ariaLabel"])
|
|
76
78
|
}), X = {
|
|
77
|
-
[
|
|
78
|
-
[
|
|
79
|
-
[
|
|
79
|
+
[n]: (e) => c(e) || i(e) || d(e),
|
|
80
|
+
[r]: (e) => c(e) || i(e) || d(e),
|
|
81
|
+
[t]: (e) => c(e) || i(e) || d(e)
|
|
80
82
|
}, ie = [
|
|
81
83
|
"id",
|
|
82
84
|
"aria-checked",
|
|
@@ -87,39 +89,39 @@ var Y = f({
|
|
|
87
89
|
"false-value",
|
|
88
90
|
"disabled",
|
|
89
91
|
"tabindex"
|
|
90
|
-
], ae = ["aria-hidden"], oe = { key: 1 }, se = { key: 1 }, ce = ["aria-hidden"], Z = "ElSwitch", Q = C(
|
|
92
|
+
], ae = ["aria-hidden"], oe = { key: 1 }, se = { key: 1 }, ce = ["aria-hidden"], Z = "ElSwitch", Q = C(s(/* @__PURE__ */ j({
|
|
91
93
|
name: Z,
|
|
92
94
|
__name: "switch",
|
|
93
95
|
props: Y,
|
|
94
96
|
emits: X,
|
|
95
|
-
setup(e, { expose:
|
|
96
|
-
let l = e, d =
|
|
97
|
+
setup(e, { expose: i, emit: s }) {
|
|
98
|
+
let l = e, d = s, { formItem: f } = ne(), g = h(), y = o("switch"), { inputId: b } = ee(l, { formItemContext: f }), x = te(T(() => {
|
|
97
99
|
if (l.loading) return !0;
|
|
98
100
|
})), S = re(l.modelValue !== !1), C = V(), w = T(() => [
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
101
|
+
y.b(),
|
|
102
|
+
y.m(g.value),
|
|
103
|
+
y.is("disabled", x.value),
|
|
104
|
+
y.is("checked", Y.value)
|
|
103
105
|
]), j = T(() => [
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
106
|
+
y.e("label"),
|
|
107
|
+
y.em("label", "left"),
|
|
108
|
+
y.is("active", !Y.value)
|
|
107
109
|
]), M = T(() => [
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
110
|
+
y.e("label"),
|
|
111
|
+
y.em("label", "right"),
|
|
112
|
+
y.is("active", Y.value)
|
|
111
113
|
]), z = T(() => ({ width: m(l.width) }));
|
|
112
114
|
G(() => l.modelValue, () => {
|
|
113
115
|
S.value = !0;
|
|
114
116
|
});
|
|
115
117
|
let U = T(() => S.value ? l.modelValue : !1), Y = T(() => U.value === l.activeValue);
|
|
116
|
-
[l.activeValue, l.inactiveValue].includes(U.value) || (d(
|
|
118
|
+
[l.activeValue, l.inactiveValue].includes(U.value) || (d(n, l.inactiveValue), d(r, l.inactiveValue), d(t, l.inactiveValue)), G(Y, (e) => {
|
|
117
119
|
var t;
|
|
118
120
|
C.value.checked = e, l.validateEvent && (f == null || (t = f.validate) == null || t.call(f, "change").catch((e) => u(e)));
|
|
119
121
|
});
|
|
120
122
|
let X = () => {
|
|
121
123
|
let e = Y.value ? l.inactiveValue : l.activeValue;
|
|
122
|
-
d(
|
|
124
|
+
d(n, e), d(r, e), d(t, e), N(() => {
|
|
123
125
|
C.value.checked = Y.value;
|
|
124
126
|
});
|
|
125
127
|
}, Q = () => {
|
|
@@ -129,16 +131,16 @@ var Y = f({
|
|
|
129
131
|
X();
|
|
130
132
|
return;
|
|
131
133
|
}
|
|
132
|
-
let
|
|
133
|
-
[t
|
|
134
|
+
let t = e();
|
|
135
|
+
[a(t), c(t)].includes(!0) || p(Z, "beforeChange must return type `Promise<boolean>` or `boolean`"), a(t) ? t.then((e) => {
|
|
134
136
|
e && X();
|
|
135
137
|
}).catch((e) => {
|
|
136
138
|
u(Z, `some error occurred: ${e}`);
|
|
137
|
-
}) :
|
|
139
|
+
}) : t && X();
|
|
138
140
|
};
|
|
139
141
|
return I(() => {
|
|
140
142
|
C.value.checked = Y.value;
|
|
141
|
-
}),
|
|
143
|
+
}), i({
|
|
142
144
|
focus: () => {
|
|
143
145
|
var e, t;
|
|
144
146
|
(e = C.value) == null || (t = e.focus) == null || t.call(e);
|
|
@@ -152,7 +154,7 @@ var Y = f({
|
|
|
152
154
|
id: W(b),
|
|
153
155
|
ref_key: "input",
|
|
154
156
|
ref: C,
|
|
155
|
-
class: P(W(
|
|
157
|
+
class: P(W(y).e("input")),
|
|
156
158
|
type: "checkbox",
|
|
157
159
|
role: "switch",
|
|
158
160
|
"aria-checked": Y.value,
|
|
@@ -169,7 +171,7 @@ var Y = f({
|
|
|
169
171
|
!e.inlinePrompt && (e.inactiveIcon || e.inactiveText || t.$slots.inactive) ? (L(), O("span", {
|
|
170
172
|
key: 0,
|
|
171
173
|
class: P(j.value)
|
|
172
|
-
}, [R(t.$slots, "inactive", {}, () => [e.inactiveIcon ? (L(), E(W(
|
|
174
|
+
}, [R(t.$slots, "inactive", {}, () => [e.inactiveIcon ? (L(), E(W(v), { key: 0 }, {
|
|
173
175
|
default: K(() => [(L(), E(B(e.inactiveIcon)))]),
|
|
174
176
|
_: 1
|
|
175
177
|
})) : D("v-if", !0), !e.inactiveIcon && e.inactiveText ? (L(), O("span", {
|
|
@@ -177,40 +179,40 @@ var Y = f({
|
|
|
177
179
|
"aria-hidden": Y.value
|
|
178
180
|
}, H(e.inactiveText), 9, ae)) : D("v-if", !0)])], 2)) : D("v-if", !0),
|
|
179
181
|
k("span", {
|
|
180
|
-
class: P(W(
|
|
182
|
+
class: P(W(y).e("core")),
|
|
181
183
|
style: F(z.value)
|
|
182
184
|
}, [e.inlinePrompt ? (L(), O("div", {
|
|
183
185
|
key: 0,
|
|
184
|
-
class: P(W(
|
|
186
|
+
class: P(W(y).e("inner"))
|
|
185
187
|
}, [Y.value ? (L(), O("div", {
|
|
186
188
|
key: 1,
|
|
187
|
-
class: P(W(
|
|
188
|
-
}, [R(t.$slots, "active", {}, () => [e.activeIcon ? (L(), E(W(
|
|
189
|
+
class: P(W(y).e("inner-wrapper"))
|
|
190
|
+
}, [R(t.$slots, "active", {}, () => [e.activeIcon ? (L(), E(W(v), { key: 0 }, {
|
|
189
191
|
default: K(() => [(L(), E(B(e.activeIcon)))]),
|
|
190
192
|
_: 1
|
|
191
193
|
})) : D("v-if", !0), !e.activeIcon && e.activeText ? (L(), O("span", se, H(e.activeText), 1)) : D("v-if", !0)])], 2)) : (L(), O("div", {
|
|
192
194
|
key: 0,
|
|
193
|
-
class: P(W(
|
|
194
|
-
}, [R(t.$slots, "inactive", {}, () => [e.inactiveIcon ? (L(), E(W(
|
|
195
|
+
class: P(W(y).e("inner-wrapper"))
|
|
196
|
+
}, [R(t.$slots, "inactive", {}, () => [e.inactiveIcon ? (L(), E(W(v), { key: 0 }, {
|
|
195
197
|
default: K(() => [(L(), E(B(e.inactiveIcon)))]),
|
|
196
198
|
_: 1
|
|
197
|
-
})) : D("v-if", !0), !e.inactiveIcon && e.inactiveText ? (L(), O("span", oe, H(e.inactiveText), 1)) : D("v-if", !0)])], 2))], 2)) : D("v-if", !0), k("div", { class: P(W(
|
|
199
|
+
})) : D("v-if", !0), !e.inactiveIcon && e.inactiveText ? (L(), O("span", oe, H(e.inactiveText), 1)) : D("v-if", !0)])], 2))], 2)) : D("v-if", !0), k("div", { class: P(W(y).e("action")) }, [e.loading ? (L(), E(W(v), {
|
|
198
200
|
key: 0,
|
|
199
|
-
class: P(W(
|
|
201
|
+
class: P(W(y).is("loading"))
|
|
200
202
|
}, {
|
|
201
203
|
default: K(() => [A(W(_))]),
|
|
202
204
|
_: 1
|
|
203
|
-
}, 8, ["class"])) : Y.value ? R(t.$slots, "active-action", { key: 1 }, () => [e.activeActionIcon ? (L(), E(W(
|
|
205
|
+
}, 8, ["class"])) : Y.value ? R(t.$slots, "active-action", { key: 1 }, () => [e.activeActionIcon ? (L(), E(W(v), { key: 0 }, {
|
|
204
206
|
default: K(() => [(L(), E(B(e.activeActionIcon)))]),
|
|
205
207
|
_: 1
|
|
206
|
-
})) : D("v-if", !0)]) : Y.value ? D("v-if", !0) : R(t.$slots, "inactive-action", { key: 2 }, () => [e.inactiveActionIcon ? (L(), E(W(
|
|
208
|
+
})) : D("v-if", !0)]) : Y.value ? D("v-if", !0) : R(t.$slots, "inactive-action", { key: 2 }, () => [e.inactiveActionIcon ? (L(), E(W(v), { key: 0 }, {
|
|
207
209
|
default: K(() => [(L(), E(B(e.inactiveActionIcon)))]),
|
|
208
210
|
_: 1
|
|
209
211
|
})) : D("v-if", !0)])], 2)], 6),
|
|
210
212
|
!e.inlinePrompt && (e.activeIcon || e.activeText || t.$slots.active) ? (L(), O("span", {
|
|
211
213
|
key: 1,
|
|
212
214
|
class: P(M.value)
|
|
213
|
-
}, [R(t.$slots, "active", {}, () => [e.activeIcon ? (L(), E(W(
|
|
215
|
+
}, [R(t.$slots, "active", {}, () => [e.activeIcon ? (L(), E(W(v), { key: 0 }, {
|
|
214
216
|
default: K(() => [(L(), E(B(e.activeIcon)))]),
|
|
215
217
|
_: 1
|
|
216
218
|
})) : D("v-if", !0), !e.activeIcon && e.activeText ? (L(), O("span", {
|
|
@@ -291,6 +293,6 @@ function $(e, t, n, r, i, a) {
|
|
|
291
293
|
_: 3
|
|
292
294
|
}, 16, ["rules", "disabled"]);
|
|
293
295
|
}
|
|
294
|
-
var ue = /* @__PURE__ */
|
|
296
|
+
var ue = /* @__PURE__ */ e(le, [["render", $]]);
|
|
295
297
|
//#endregion
|
|
296
298
|
export { ue as t };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as e } from "./_plugin-vue_export-helper.7vrlOII_.mjs";
|
|
2
2
|
import { A as t, C as n, E as r, S as i, T as a, f as o, h as s, u as c, w as l } from "./util.g-WQEec9.mjs";
|
|
3
|
-
import { t as u } from "./slot.
|
|
4
|
-
import { a as d, i as f } from "./dataformat.
|
|
3
|
+
import { t as u } from "./slot.CZCo32Cw.mjs";
|
|
4
|
+
import { a as d, i as f } from "./dataformat.F7GtAoiN.mjs";
|
|
5
5
|
import { createBlock as p, createCommentVNode as m, createElementBlock as h, createSlots as g, guardReactiveProps as _, mergeProps as v, normalizeProps as y, openBlock as b, renderList as x, renderSlot as S, resolveDynamicComponent as C, toHandlers as w, withCtx as T, withKeys as E } from "vue";
|
|
6
6
|
import { isBlank as D } from "@web-utils/core";
|
|
7
7
|
import { formatDate as O } from "@web-utils/integrations/dayjs";
|
|
@@ -28,7 +28,7 @@ var k = (e = {}, n = {}, u = {}, d = []) => {
|
|
|
28
28
|
components: { FyUEditor: () => import("../fy-u-editor/index.mjs") },
|
|
29
29
|
mixins: [u],
|
|
30
30
|
props: {
|
|
31
|
-
|
|
31
|
+
modelValue: [
|
|
32
32
|
String,
|
|
33
33
|
Object,
|
|
34
34
|
Number,
|
|
@@ -62,6 +62,11 @@ var k = (e = {}, n = {}, u = {}, d = []) => {
|
|
|
62
62
|
default: () => ({})
|
|
63
63
|
}
|
|
64
64
|
},
|
|
65
|
+
emits: [
|
|
66
|
+
"enter",
|
|
67
|
+
"change",
|
|
68
|
+
"update:modelValue"
|
|
69
|
+
],
|
|
65
70
|
computed: {
|
|
66
71
|
params() {
|
|
67
72
|
return this.column.params || {};
|
|
@@ -71,10 +76,10 @@ var k = (e = {}, n = {}, u = {}, d = []) => {
|
|
|
71
76
|
},
|
|
72
77
|
text: {
|
|
73
78
|
get() {
|
|
74
|
-
return this.
|
|
79
|
+
return this.modelValue;
|
|
75
80
|
},
|
|
76
81
|
set(e) {
|
|
77
|
-
this.$emit("
|
|
82
|
+
this.$emit("update:modelValue", e), this.$emit("change", e);
|
|
78
83
|
}
|
|
79
84
|
}
|
|
80
85
|
},
|
|
@@ -106,7 +111,7 @@ function M(e, t, n, r, i, a) {
|
|
|
106
111
|
"table-data": n.tableData,
|
|
107
112
|
type: n.type || n.column.type,
|
|
108
113
|
"column-slot": n.columnSlot
|
|
109
|
-
}, w(a.event), { onKeyup: E(a.enterChange, ["enter"
|
|
114
|
+
}, w(a.event), { onKeyup: E(a.enterChange, ["enter"]) }), g({
|
|
110
115
|
default: T(() => [a.params.html ? (b(), h("span", {
|
|
111
116
|
key: 0,
|
|
112
117
|
innerHTML: a.params.html
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { t as e } from "./_plugin-vue_export-helper.7vrlOII_.mjs";
|
|
2
2
|
import { C as t, O as n, a as r, g as i, l as a, t as o, v as s, x as c } from "./util.g-WQEec9.mjs";
|
|
3
|
-
import { t as l } from "./slot.
|
|
4
|
-
import { c as u, o as d, r as f, t as p } from "./dataformat.
|
|
5
|
-
import { t as m } from "./packages.
|
|
6
|
-
import { t as h } from "./permission.
|
|
7
|
-
import { i as g } from "./dic.
|
|
8
|
-
import { t as _ } from "./init.
|
|
9
|
-
import { n as v, t as y } from "./FormTemp.
|
|
3
|
+
import { t as l } from "./slot.CZCo32Cw.mjs";
|
|
4
|
+
import { c as u, o as d, r as f, t as p } from "./dataformat.F7GtAoiN.mjs";
|
|
5
|
+
import { t as m } from "./packages.CONbEH13.mjs";
|
|
6
|
+
import { t as h } from "./permission.8WDtOmzA.mjs";
|
|
7
|
+
import { i as g } from "./dic.NZCGhtA7.mjs";
|
|
8
|
+
import { t as _ } from "./init.CtUEiRbU.mjs";
|
|
9
|
+
import { n as v, t as y } from "./FormTemp.CeHtEZQe.mjs";
|
|
10
10
|
import b from "../icon-temp/index.mjs";
|
|
11
11
|
import { Fragment as x, createBlock as S, createCommentVNode as C, createElementBlock as w, createElementVNode as T, createSlots as E, createTextVNode as D, createVNode as O, guardReactiveProps as k, mergeProps as A, normalizeClass as j, normalizeProps as M, normalizeStyle as N, openBlock as P, renderList as F, renderSlot as I, resolveComponent as L, resolveDirective as R, resolveDynamicComponent as z, toDisplayString as B, vShow as ee, withCtx as V, withDirectives as H, withModifiers as U } from "vue";
|
|
12
12
|
import { isBlank as W } from "@web-utils/core";
|
|
@@ -251,7 +251,7 @@ function ne(e, t, n, r, i, a) {
|
|
|
251
251
|
row: a.searchForm
|
|
252
252
|
})))), a.isSearchIcon ? (P(), w(x, { key: 0 }, [i.show === !1 ? (P(), S(o, {
|
|
253
253
|
key: 0,
|
|
254
|
-
|
|
254
|
+
text: "",
|
|
255
255
|
icon: "el-icon-arrow-down",
|
|
256
256
|
onClick: t[0] || (t[0] = (e) => i.show = !0)
|
|
257
257
|
}, {
|
|
@@ -259,7 +259,7 @@ function ne(e, t, n, r, i, a) {
|
|
|
259
259
|
_: 1
|
|
260
260
|
})) : C("v-if", !0), i.show === !0 ? (P(), S(o, {
|
|
261
261
|
key: 1,
|
|
262
|
-
|
|
262
|
+
text: "",
|
|
263
263
|
icon: "el-icon-arrow-up",
|
|
264
264
|
onClick: t[1] || (t[1] = (e) => i.show = !1)
|
|
265
265
|
}, {
|
|
@@ -506,15 +506,15 @@ var ie = /* @__PURE__ */ e(K, [["render", X]]), Z = {}, ae = {
|
|
|
506
506
|
let r = e.cascader;
|
|
507
507
|
r.forEach((i) => {
|
|
508
508
|
let a = i, o = t[e.prop], s = t.$index, c = this.findObject(this.columnOption, a);
|
|
509
|
-
W(c) || (W(this.crud.cascaderDIC[s]) &&
|
|
510
|
-
this
|
|
509
|
+
W(c) || (W(this.crud.cascaderDIC[s]) && (this.crud.cascaderDIC[s] = {}), this.crud.cascaderIndexList.includes(s) && r.forEach((e) => {
|
|
510
|
+
this.crud.cascaderDIC[s][e.prop] = [], r.forEach((e) => t[e] = "");
|
|
511
511
|
}), !(W(r) || W(o) || W(c)) && g({
|
|
512
512
|
column: c,
|
|
513
513
|
value: o,
|
|
514
514
|
form: t
|
|
515
515
|
}).then((e) => {
|
|
516
516
|
let r = e || [];
|
|
517
|
-
this.crud.cascaderIndexList.includes(s) || this.crud.cascaderIndexList.push(s), this.crud.cascaderDicList[s] ||
|
|
517
|
+
this.crud.cascaderIndexList.includes(s) || this.crud.cascaderIndexList.push(s), this.crud.cascaderDicList[s] || (this.crud.cascaderDicList[s] = {}), this.crud.cascaderDicList[s][a] || (this.crud.cascaderDicList[s][a] = r), this.crud.cascaderDIC[s][a] = r, !W(r[c.cascaderIndex]) && !W(r) && !W(c.cascaderIndex) && (t[a] = r[c.cascaderIndex][(c.props || {}).value || n.value]);
|
|
518
518
|
}));
|
|
519
519
|
});
|
|
520
520
|
});
|
|
@@ -1020,7 +1020,7 @@ function Ce(e, t, n, r, i, a) {
|
|
|
1020
1020
|
_: 2
|
|
1021
1021
|
}, 1024)]),
|
|
1022
1022
|
default: V(() => [O(o, {
|
|
1023
|
-
|
|
1023
|
+
text: "",
|
|
1024
1024
|
size: a.crud.isMediumSize
|
|
1025
1025
|
}, {
|
|
1026
1026
|
default: V(() => [D(B(a.crud.tableOption.menuBtnTitle || "按钮") + " ", 1), t[0] || (t[0] = T("i", { class: "el-icon-arrow-down el-icon--right" }, null, -1))]),
|
|
@@ -1394,7 +1394,7 @@ var De = /* @__PURE__ */ e(Te, [["render", Ee]]), Oe = {
|
|
|
1394
1394
|
}
|
|
1395
1395
|
} else if (this.isAdd) {
|
|
1396
1396
|
let { item: t } = this.crud.findData(e[this.crud.rowParentKey]);
|
|
1397
|
-
t ? (t[this.crud.childrenKey] ||
|
|
1397
|
+
t ? (t[this.crud.childrenKey] || (t[this.crud.childrenKey] = []), this.crud.tableOption.lazy && (t[this.crud.hasChildrenKey] = !0), t[this.crud.childrenKey].push(e)) : this.crud.list.push(e);
|
|
1398
1398
|
}
|
|
1399
1399
|
})(), this.hide();
|
|
1400
1400
|
},
|
|
@@ -1588,7 +1588,6 @@ function Ne(e, t, n, r, i, a) {
|
|
|
1588
1588
|
ref: "table",
|
|
1589
1589
|
data: i.data,
|
|
1590
1590
|
height: "100%",
|
|
1591
|
-
size: "small",
|
|
1592
1591
|
border: ""
|
|
1593
1592
|
}, {
|
|
1594
1593
|
default: V(() => [O(o, {
|
|
@@ -1961,7 +1960,6 @@ function He(e, t, n, r, i, a) {
|
|
|
1961
1960
|
O(o, {
|
|
1962
1961
|
type: "danger",
|
|
1963
1962
|
class: "avue-crud__filter-icon",
|
|
1964
|
-
size: "mini",
|
|
1965
1963
|
circle: "",
|
|
1966
1964
|
icon: "el-icon-minus",
|
|
1967
1965
|
onClick: (e) => a.handleDelete(t)
|
|
@@ -2036,7 +2034,7 @@ var Ue = {
|
|
|
2036
2034
|
type: [Function, Object],
|
|
2037
2035
|
default: () => ({})
|
|
2038
2036
|
},
|
|
2039
|
-
|
|
2037
|
+
modelValue: {
|
|
2040
2038
|
type: Object,
|
|
2041
2039
|
default: () => ({})
|
|
2042
2040
|
},
|
|
@@ -2180,9 +2178,9 @@ var Ue = {
|
|
|
2180
2178
|
}
|
|
2181
2179
|
},
|
|
2182
2180
|
watch: {
|
|
2183
|
-
|
|
2181
|
+
modelValue: {
|
|
2184
2182
|
handler() {
|
|
2185
|
-
this.tableForm = this.
|
|
2183
|
+
this.tableForm = this.modelValue;
|
|
2186
2184
|
},
|
|
2187
2185
|
immediate: !0,
|
|
2188
2186
|
deep: !0
|
|
@@ -2207,7 +2205,7 @@ var Ue = {
|
|
|
2207
2205
|
setPx: c,
|
|
2208
2206
|
optVal: s,
|
|
2209
2207
|
handleValidate(e, t, n) {
|
|
2210
|
-
this.listError[e] ||
|
|
2208
|
+
this.listError[e] || (this.listError[e] = {
|
|
2211
2209
|
valid: !1,
|
|
2212
2210
|
msg: ""
|
|
2213
2211
|
}), this.listError[e].valid = !t, this.listError[e].msg = n;
|
|
@@ -2260,11 +2258,11 @@ var Ue = {
|
|
|
2260
2258
|
},
|
|
2261
2259
|
dataInit() {
|
|
2262
2260
|
this.list = this.data, this.list.forEach((e, t) => {
|
|
2263
|
-
e.$cellEdit && !this.cascaderFormList[t] && (this.cascaderFormList[t] = r(e)),
|
|
2261
|
+
e.$cellEdit && !this.cascaderFormList[t] && (this.cascaderFormList[t] = r(e)), e.$cellEdit = e.$cellEdit || !1, e.$index = t;
|
|
2264
2262
|
});
|
|
2265
2263
|
},
|
|
2266
2264
|
headerDragend(e, t, n, r) {
|
|
2267
|
-
this.objectOption[n.property] &&
|
|
2265
|
+
this.objectOption[n.property] && (this.objectOption[n.property].width = e), this.$emit("header-dragend", e, t, n, r);
|
|
2268
2266
|
},
|
|
2269
2267
|
headerSort(e, t) {
|
|
2270
2268
|
let n = this.columnOption, r = n.splice(e, 1)[0];
|
|
@@ -2342,7 +2340,7 @@ var Ue = {
|
|
|
2342
2340
|
}), this.list.push(e);
|
|
2343
2341
|
},
|
|
2344
2342
|
rowCancel(e, t) {
|
|
2345
|
-
W(e[this.rowKey]) ? (this.list.splice(t, 1), delete this.cascaderDIC[t]) : (this.cascaderFormList[t].$cellEdit = !1, this
|
|
2343
|
+
W(e[this.rowKey]) ? (this.list.splice(t, 1), delete this.cascaderDIC[t]) : (this.cascaderFormList[t].$cellEdit = !1, this.cascaderDIC[t] = this.cascaderDicList[t], this.list[t] = this.cascaderFormList[t]), delete this.cascaderDicList[t], delete this.cascaderFormList[t], this.cascaderIndexList.splice(this.cascaderIndexList.indexOf(t), 1);
|
|
2346
2344
|
},
|
|
2347
2345
|
rowCell(e, t) {
|
|
2348
2346
|
e.$cellEdit ? this.rowCellUpdate(e, t) : this.rowCellEdit(e, t);
|
|
@@ -2508,8 +2506,7 @@ function qe(e, t, n, r, i, a) {
|
|
|
2508
2506
|
]),
|
|
2509
2507
|
a.optVal(e.tableOption.selectClearBtn, i.config.selectClearBtn) && e.tableOption.selection ? H((P(), S(c, {
|
|
2510
2508
|
key: 0,
|
|
2511
|
-
|
|
2512
|
-
size: "small",
|
|
2509
|
+
text: "",
|
|
2513
2510
|
onClick: a.selectClear
|
|
2514
2511
|
}, {
|
|
2515
2512
|
default: V(() => [...t[2] || (t[2] = [D(" 清 空 ", -1)])]),
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { t as e } from "./_plugin-vue_export-helper.7vrlOII_.mjs";
|
|
2
2
|
import { C as t, O as n, a as r, b as i, f as a, l as o, n as s, v as c, x as l } from "./util.g-WQEec9.mjs";
|
|
3
|
-
import { a as u, i as d, n as f, r as p, t as m } from "./dataformat.
|
|
4
|
-
import { t as h } from "./packages.
|
|
5
|
-
import { i as g } from "./dic.
|
|
6
|
-
import { t as _ } from "./init.
|
|
7
|
-
import { n as v, t as y } from "./FormTemp.
|
|
3
|
+
import { a as u, i as d, n as f, r as p, t as m } from "./dataformat.F7GtAoiN.mjs";
|
|
4
|
+
import { t as h } from "./packages.CONbEH13.mjs";
|
|
5
|
+
import { i as g } from "./dic.NZCGhtA7.mjs";
|
|
6
|
+
import { t as _ } from "./init.CtUEiRbU.mjs";
|
|
7
|
+
import { n as v, t as y } from "./FormTemp.CeHtEZQe.mjs";
|
|
8
8
|
import { Fragment as b, createBlock as x, createCommentVNode as S, createElementBlock as C, createElementVNode as w, createSlots as T, createTextVNode as E, createVNode as D, guardReactiveProps as O, mergeProps as k, normalizeClass as A, normalizeProps as j, normalizeStyle as M, openBlock as N, renderList as P, renderSlot as F, resolveComponent as I, resolveDynamicComponent as L, toDisplayString as R, vShow as z, withCtx as B, withDirectives as V, withModifiers as H } from "vue";
|
|
9
9
|
import { isBlank as U } from "@web-utils/core";
|
|
10
10
|
//#region src/components/utils/mock.ts
|
|
@@ -119,7 +119,7 @@ var W = (e, t, n, r) => {
|
|
|
119
119
|
},
|
|
120
120
|
computed: {
|
|
121
121
|
text() {
|
|
122
|
-
return this.collapse
|
|
122
|
+
return +!!this.collapse;
|
|
123
123
|
},
|
|
124
124
|
isHeader() {
|
|
125
125
|
return this.$slots.header && this.header || (this.label || this.icon) && this.header;
|
|
@@ -304,7 +304,7 @@ var Q = {
|
|
|
304
304
|
type: Boolean,
|
|
305
305
|
default: !1
|
|
306
306
|
},
|
|
307
|
-
|
|
307
|
+
modelValue: {
|
|
308
308
|
type: Object,
|
|
309
309
|
default: () => ({})
|
|
310
310
|
}
|
|
@@ -312,7 +312,10 @@ var Q = {
|
|
|
312
312
|
emits: [
|
|
313
313
|
"submit",
|
|
314
314
|
"error",
|
|
315
|
-
"tab-click"
|
|
315
|
+
"tab-click",
|
|
316
|
+
"change",
|
|
317
|
+
"update:modelValue",
|
|
318
|
+
"reset-change"
|
|
316
319
|
],
|
|
317
320
|
data() {
|
|
318
321
|
return {
|
|
@@ -420,7 +423,7 @@ var Q = {
|
|
|
420
423
|
}
|
|
421
424
|
},
|
|
422
425
|
watch: {
|
|
423
|
-
|
|
426
|
+
modelValue: {
|
|
424
427
|
handler() {
|
|
425
428
|
this.formCreate && this.setForm();
|
|
426
429
|
},
|
|
@@ -481,11 +484,11 @@ var Q = {
|
|
|
481
484
|
return this.isTabs ? `${t}` === this.activeName || t === 0 : !0;
|
|
482
485
|
},
|
|
483
486
|
dataFormat() {
|
|
484
|
-
let e = p(this.propOption).tableForm, t = this.
|
|
487
|
+
let e = p(this.propOption).tableForm, t = this.modelValue, n = {};
|
|
485
488
|
Object.entries(Object.assign(e, t)).forEach((e) => {
|
|
486
489
|
let r = e[0], i = e[1];
|
|
487
490
|
U(t[r]) ? n[r] = i : n[r] = t[r];
|
|
488
|
-
}), this
|
|
491
|
+
}), this.form = n, this.setLabel(), this.setControl(), this.setVal(), setTimeout(() => {
|
|
489
492
|
this.formCreate = !0, this.clearValidate();
|
|
490
493
|
});
|
|
491
494
|
},
|
|
@@ -498,16 +501,16 @@ var Q = {
|
|
|
498
501
|
let e = this.$watch(`form.${t}`, (e, t) => {
|
|
499
502
|
e !== t && i(this.form, n, e);
|
|
500
503
|
}), r = this.$watch(`form.${n}`, (e, n) => {
|
|
501
|
-
e !== n &&
|
|
504
|
+
e !== n && (this.form[t] = e);
|
|
502
505
|
});
|
|
503
|
-
o.push(e), o.push(r), this
|
|
506
|
+
o.push(e), o.push(r), this.form[t] = a(this.form, n);
|
|
504
507
|
}
|
|
505
508
|
if (r) {
|
|
506
509
|
let n = () => {
|
|
507
510
|
let t = r(this.form[e.prop], this.form) || {};
|
|
508
511
|
Object.keys(t).forEach((e) => {
|
|
509
512
|
let n = Object.assign(this.objectOption[e] || {}, t[e]);
|
|
510
|
-
|
|
513
|
+
his.objectOption[e] = n, t[e].dicData && (this.DIC[e] = t[e].dicData);
|
|
511
514
|
});
|
|
512
515
|
}, i = this.$watch(`form.${t}`, () => {
|
|
513
516
|
n();
|
|
@@ -519,19 +522,19 @@ var Q = {
|
|
|
519
522
|
});
|
|
520
523
|
},
|
|
521
524
|
setForm() {
|
|
522
|
-
Object.keys(this.
|
|
523
|
-
this
|
|
525
|
+
Object.keys(this.modelValue).forEach((e) => {
|
|
526
|
+
this.form[e] = this.modelValue[e];
|
|
524
527
|
});
|
|
525
528
|
},
|
|
526
529
|
setVal() {
|
|
527
|
-
this.$emit("
|
|
530
|
+
this.$emit("update:modelValue", this.form), this.$emit("change", this.form);
|
|
528
531
|
},
|
|
529
532
|
setLabel() {
|
|
530
533
|
this.tableOption.filterNull === !0 && (this.form = o(this.form, [""], !1)), this.tableOption.filterDic === !0 ? this.form = o(this.form, ["$"], !1) : this.propOption.forEach((e) => {
|
|
531
534
|
let t = this.DIC[e.prop];
|
|
532
535
|
if (U(t)) return;
|
|
533
536
|
let n = v(this.form, e, this.tableOption, t);
|
|
534
|
-
n ? this
|
|
537
|
+
n ? this.form[`$${e.prop}`] = n : delete this.form[`$${e.prop}`];
|
|
535
538
|
});
|
|
536
539
|
},
|
|
537
540
|
handleGroupClick(e) {
|
|
@@ -559,7 +562,7 @@ var Q = {
|
|
|
559
562
|
r.forEach((a) => {
|
|
560
563
|
let o = a, s = this.form[t.prop], c = this.findObject(e, o);
|
|
561
564
|
U(c) || (this.formList.includes(i) && r.forEach((e) => {
|
|
562
|
-
this.form[e] = "", this
|
|
565
|
+
this.form[e] = "", this.DIC[e] = [];
|
|
563
566
|
}), !(U(r) || U(s) || U(c)) && g({
|
|
564
567
|
column: c,
|
|
565
568
|
value: s,
|
|
@@ -567,7 +570,7 @@ var Q = {
|
|
|
567
570
|
}).then((e) => {
|
|
568
571
|
this.formList.includes(i) || this.formList.push(i);
|
|
569
572
|
let t = e || [];
|
|
570
|
-
this
|
|
573
|
+
this.DIC[o] = t, !U(t) && !U(t) && !U(c.cascaderIndex) && U(this.form[o]) && (this.form[o] = t[c.cascaderIndex][(c.props || {}).value || n.value]);
|
|
571
574
|
}));
|
|
572
575
|
});
|
|
573
576
|
});
|
|
@@ -747,13 +750,14 @@ function ee(e, t, n, r, i, a) {
|
|
|
747
750
|
"label-width": a.getLabelWidth(r, n)
|
|
748
751
|
}, T({
|
|
749
752
|
default: B(() => [(N(), x(L(a.validTip(r) ? "div" : "elTooltip"), {
|
|
753
|
+
class: "avue-form-item-input-wrapper",
|
|
750
754
|
disabled: a.validTip(r),
|
|
751
755
|
content: r.tip || a.getPlaceholder(r),
|
|
752
756
|
placement: r.tipPlacement
|
|
753
757
|
}, {
|
|
754
758
|
default: B(() => [e.$slots[r.prop] ? F(e.$slots, r.prop, {
|
|
755
759
|
key: 0,
|
|
756
|
-
|
|
760
|
+
modelValue: i.form[r.prop],
|
|
757
761
|
column: r,
|
|
758
762
|
label: i.form[`$${r.prop}`],
|
|
759
763
|
size: r.size || e.controlSize,
|