@web-utils/form-ui 1.0.0-beta50 → 1.0.0-beta52
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/chunks/{eae6huQB.mjs → B1k8ydde.mjs} +2 -2
- package/chunks/{B1IPSTA6.mjs → B75qfA0z.mjs} +2 -2
- package/chunks/{pIzhYsBe.mjs → BAw6wxW1.mjs} +2 -2
- package/chunks/{hzaYr6Ud2.mjs → BQyL45PF2.mjs} +1 -1
- package/chunks/{B9gA65rt2.mjs → BSU2FqMP2.mjs} +2 -2
- package/chunks/{Cln3RBAD.mjs → BWh6u1O0.mjs} +1 -1
- package/chunks/{DA7oGHSX.mjs → BXVB-H8_.mjs} +2 -2
- package/chunks/B_RAcbs_.mjs +108 -0
- package/chunks/{BtcjAHE6.mjs → BshE3RnA.mjs} +2 -2
- package/chunks/{CuAoMR3n.mjs → C6hLXCPk.mjs} +5 -16
- package/chunks/{vXQf89tS.mjs → C7G-cAoI.mjs} +1 -1
- package/chunks/{CAd1zK9Q.mjs → CBFbSsTJ.mjs} +2 -2
- package/chunks/CGDnQr1c.mjs +67 -0
- package/chunks/CGHcOyNC2.mjs +87 -0
- package/chunks/{ByHz4mmh.mjs → CVKPpQdS.mjs} +2 -2
- package/chunks/{BUGCiCnl.mjs → CXsoKP22.mjs} +4 -1
- package/chunks/CjRZ71IY2.mjs +512 -0
- package/chunks/CkjtCuMs.mjs +416 -0
- package/chunks/{D0Zg2CV0.mjs → CtHmTtVP.mjs} +3 -3
- package/chunks/{V2p-PCpL.mjs → CzHaJsnD.mjs} +3 -3
- package/chunks/{Dkd5BC98.mjs → D2MB3CnR.mjs} +2 -6
- package/chunks/{D_qiRmiE.mjs → D3mFJzGr.mjs} +32 -26
- package/chunks/{BbSPWDDZ.mjs → DLgFBI_X.mjs} +2 -2
- package/chunks/{BfxDxIg0.mjs → DVbw6xIr.mjs} +2 -2
- package/chunks/{kflKDW4T2.mjs → DZJ-ShZA2.mjs} +38 -39
- package/chunks/{CqoVAnxC2.mjs → DcFllKOf2.mjs} +2 -6
- package/chunks/DhVmHzB7.mjs +653 -0
- package/chunks/{6yfBZFOB.mjs → DitpKWMd.mjs} +4 -3
- package/chunks/{bFbPPcdq.mjs → DkXlFWjs.mjs} +2 -2
- package/chunks/{CxTg0r4n.mjs → Dt3lfDnL.mjs} +1 -1
- package/chunks/{BA2KEptL.mjs → GMFHxPJq.mjs} +2 -6
- package/chunks/{BqWvBF14.mjs → JKFepPeL.mjs} +2 -2
- package/chunks/{CJdkjadi.mjs → KuAMIZnG.mjs} +1 -1
- package/chunks/{BBERmTup.mjs → XoImEoke.mjs} +19 -4
- package/chunks/{wXeqV-_7.mjs → eBESsR-G.mjs} +2 -2
- package/chunks/{CabldOLo.mjs → v-O82KSn.mjs} +4 -3
- package/confirm-button/index.d.ts +9 -2
- package/confirm-button/index.mjs +1 -1
- package/confirmable/index.d.ts +9 -2
- package/confirmable/index.mjs +1 -1
- package/constants/index.d.ts +1 -0
- package/constants/index.mjs +2 -2
- package/editable-tree/index.mjs +1 -1
- package/element-dialog/index.d.ts +2 -2
- package/form-button/index.d.ts +9 -2
- package/form-cascader/index.d.ts +16 -10
- package/form-cascader/index.mjs +1 -1
- package/form-checkbox/index.d.ts +8 -2
- package/form-checkbox/index.mjs +1 -1
- package/form-checkbox-group/index.d.ts +8 -2
- package/form-checkbox-group/index.mjs +1 -1
- package/form-date-picker/index.d.ts +8 -2
- package/form-date-picker/index.mjs +1 -1
- package/form-image/index.d.ts +8 -2
- package/form-image/index.mjs +1 -1
- package/form-input/index.d.ts +8 -2
- package/form-input/index.mjs +1 -1
- package/form-input-cron-expression/index.d.ts +8 -2
- package/form-input-cron-expression/index.mjs +1 -1
- package/form-input-email/index.d.ts +8 -2
- package/form-input-email/index.mjs +1 -1
- package/form-input-id-card/index.d.ts +8 -2
- package/form-input-id-card/index.mjs +1 -1
- package/form-input-number/index.d.ts +8 -2
- package/form-input-number/index.mjs +1 -1
- package/form-input-phone-number/index.d.ts +8 -2
- package/form-input-phone-number/index.mjs +1 -1
- package/form-input-tag/index.d.ts +8 -2
- package/form-input-tag/index.mjs +1 -1
- package/form-input-time/index.d.ts +16 -10
- package/form-input-time/index.mjs +1 -1
- package/form-item-group/index.mjs +1 -1
- package/form-item-x/index.d.ts +8 -2
- package/form-item-x/index.mjs +1 -1
- package/form-radio-group/index.d.ts +8 -2
- package/form-radio-group/index.mjs +1 -1
- package/form-rate/index.d.ts +8 -2
- package/form-rate/index.mjs +1 -1
- package/form-select/index.d.ts +8 -2
- package/form-select/index.mjs +1 -1
- package/form-slider/index.d.ts +8 -2
- package/form-slider/index.mjs +1 -1
- package/form-switch/index.d.ts +8 -2
- package/form-switch/index.mjs +1 -1
- package/form-table/index.d.ts +43 -25
- package/form-table/index.mjs +1 -1
- package/form-table-plus/index.d.ts +8 -8
- package/form-table-plus/index.mjs +1 -1
- package/form-text/index.d.ts +8 -2
- package/form-text/index.mjs +1 -1
- package/form-textarea/index.d.ts +12 -12
- package/form-textarea/index.mjs +1 -1
- package/form-time-select/index.d.ts +16 -10
- package/form-time-select/index.mjs +1 -1
- package/helper/sub-table-plus.d.ts +38 -0
- package/helper/sub-table-plus.mjs +4 -0
- package/index.css +1 -1
- package/index.mjs +33 -33
- package/package.json +1 -1
- package/pageable-table/index.d.ts +13 -11
- package/pageable-table/index.mjs +1 -1
- package/pageable-table/style.css +1 -1
- package/sub-table/index.d.ts +36 -30
- package/sub-table/index.mjs +2 -472
- package/sub-table-plus/index.d.ts +15 -3
- package/sub-table-plus/index.mjs +1 -1
- package/table-column/index.d.ts +8 -5
- package/table-column/index.mjs +1 -1
- package/table-column-def/index.d.ts +14 -12
- package/table-column-def/index.mjs +1 -1
- package/table-view/index.d.ts +6 -1
- package/table-view/index.mjs +121 -110
- package/toolbar/index.mjs +1 -1
- package/toolbar-button/index.d.ts +2 -2
- package/toolbar-button/index.mjs +1 -1
- package/vue-cron/index.mjs +1 -1
- package/web-types.json +1 -1
- package/x-input-tag/index.mjs +1 -1
- package/chunks/B-zqRAXo.mjs +0 -69
- package/chunks/BsZgAJX_2.mjs +0 -81
- package/chunks/cqIZWDHo.mjs +0 -614
- package/chunks/gCeDFHo1.mjs +0 -32
- package/chunks/hlha6Bhc.mjs +0 -107
- package/chunks/zwXzk9ff2.mjs +0 -568
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as e } from "./
|
|
2
|
-
import { n as t, t as n } from "./
|
|
1
|
+
import { n as e } from "./D3mFJzGr.mjs";
|
|
2
|
+
import { n as t, t as n } from "./v-O82KSn.mjs";
|
|
3
3
|
import { createVNode as r, isVNode as i, mergeProps as a, useModel as o } from "vue";
|
|
4
4
|
//#region src/components/form/FormInputEmail.vue?vue&type=script&lang.jsx
|
|
5
5
|
function s(e) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { i as e, n as t } from "./
|
|
2
|
-
import { n } from "./
|
|
1
|
+
import { i as e, n as t } from "./D3mFJzGr.mjs";
|
|
2
|
+
import { n } from "./KuAMIZnG.mjs";
|
|
3
3
|
import { computed as r, createVNode as i, mergeProps as a } from "vue";
|
|
4
4
|
import { ElDatePicker as o } from "element-plus/es";
|
|
5
5
|
import { toDate as s } from "@web-utils/integrations/dayjs";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { i as e, n as t } from "./
|
|
2
|
-
import { n } from "./
|
|
1
|
+
import { i as e, n as t } from "./D3mFJzGr.mjs";
|
|
2
|
+
import { n } from "./KuAMIZnG.mjs";
|
|
3
3
|
import { createVNode as r, mergeProps as i, useModel as a } from "vue";
|
|
4
4
|
import { ElSlider as o } from "element-plus/es";
|
|
5
5
|
//#region src/components/form/props/slide.ts
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { s as e } from "./DcTVYqeJ.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 "./Dt3lfDnL.mjs";
|
|
5
5
|
import { NOOP as a, capitalize as o } from "@web-utils/core";
|
|
6
6
|
import { Comment as s, createVNode as c } from "vue";
|
|
7
7
|
//#region src/components/toolbar/Toolbar.vue?vue&type=script&lang.jsx
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { f as e } from "./DcTVYqeJ.mjs";
|
|
2
|
-
import { o as t, r as n } from "./
|
|
3
|
-
import { n as r } from "./
|
|
2
|
+
import { o as t, r as n } from "./D3mFJzGr.mjs";
|
|
3
|
+
import { n as r } from "./KuAMIZnG.mjs";
|
|
4
4
|
import { createVNode as i, mergeProps as a } from "vue";
|
|
5
5
|
import { ElText as o } from "element-plus/es";
|
|
6
6
|
//#region src/components/form/props/text.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { d as e, t } from "./DcTVYqeJ.mjs";
|
|
2
|
-
import { t as n } from "./
|
|
2
|
+
import { t as n } from "./Dt3lfDnL.mjs";
|
|
3
3
|
import { t as r } from "./CkOD-_VV.mjs";
|
|
4
4
|
import { computePosition as i, delay as a, fastClone as o, findTreeChildren as s, hasOwn as c, isFunction as l, isNotEmpty as u, isPlainObject as d, isUndefined as f, isVerticalScrollbarVisible as p, patch as m, scrollbarWidth as h } from "@web-utils/core";
|
|
5
5
|
import { Fragment as g, createBlock as _, createCommentVNode as v, createElementBlock as y, createElementVNode as b, createTextVNode as x, createVNode as S, mergeProps as C, normalizeClass as w, normalizeStyle as T, openBlock as E, renderSlot as D, toDisplayString as O, toHandlers as k, vShow as A, withCtx as j, withDirectives as M, withModifiers as N } from "vue";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { i as e, n as t } from "./
|
|
2
|
-
import { n } from "./
|
|
1
|
+
import { i as e, n as t } from "./D3mFJzGr.mjs";
|
|
2
|
+
import { n } from "./KuAMIZnG.mjs";
|
|
3
3
|
import { useDictionary as r } from "../hook/useDictionary.mjs";
|
|
4
4
|
import { computed as i, createVNode as a, isVNode as o, mergeProps as s, useModel as c } from "vue";
|
|
5
5
|
import { ElRadio as l, ElRadioButton as u, ElRadioGroup as d } from "element-plus/es";
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
import { formItemGroupContextKey as e, formViewContextKey as t } from "../constants/index.mjs";
|
|
2
|
+
import n from "../empty-view/index.mjs";
|
|
3
|
+
import { Fragment as r, computed as i, createTextVNode as a, createVNode as o, h as s, inject as c, isVNode as l, onBeforeUnmount as u, onMounted as d, provide as f, reactive as p, ref as m, toRef as h, useTemplateRef as g, vShow as _, watchEffect as v, withDirectives as y } from "vue";
|
|
4
|
+
import { ElCol as b, ElCollapseTransition as x } from "element-plus";
|
|
5
|
+
import { ElRow as S } from "element-plus/es";
|
|
6
|
+
//#region src/components/form/FormItemGroup.vue?vue&type=script&lang.jsx
|
|
7
|
+
function C(e) {
|
|
8
|
+
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !l(e);
|
|
9
|
+
}
|
|
10
|
+
//#endregion
|
|
11
|
+
//#region src/components/form/FormItemGroup.vue
|
|
12
|
+
var w = {
|
|
13
|
+
name: "FormItemGroup",
|
|
14
|
+
props: {
|
|
15
|
+
blockTitle: String,
|
|
16
|
+
tips: String,
|
|
17
|
+
active: Boolean,
|
|
18
|
+
enabled: {
|
|
19
|
+
type: Boolean,
|
|
20
|
+
default: void 0
|
|
21
|
+
},
|
|
22
|
+
disabled: {
|
|
23
|
+
type: Boolean,
|
|
24
|
+
default: void 0
|
|
25
|
+
},
|
|
26
|
+
tag: {
|
|
27
|
+
type: String,
|
|
28
|
+
default: "ElCol"
|
|
29
|
+
},
|
|
30
|
+
span: {
|
|
31
|
+
type: Number,
|
|
32
|
+
default: 24
|
|
33
|
+
},
|
|
34
|
+
block: {
|
|
35
|
+
type: Boolean,
|
|
36
|
+
default: !0
|
|
37
|
+
},
|
|
38
|
+
wrapRow: {
|
|
39
|
+
type: Boolean,
|
|
40
|
+
default: !0
|
|
41
|
+
},
|
|
42
|
+
gutter: {
|
|
43
|
+
type: Number,
|
|
44
|
+
default: 20
|
|
45
|
+
},
|
|
46
|
+
collapse: Boolean,
|
|
47
|
+
showTitle: {
|
|
48
|
+
type: Boolean,
|
|
49
|
+
default: !0
|
|
50
|
+
},
|
|
51
|
+
notDispatch: Boolean
|
|
52
|
+
},
|
|
53
|
+
setup(l, { expose: w, slots: T }) {
|
|
54
|
+
let E = c(t, null), D = g("root"), O = m(!0), k = h(() => l.enabled), A = h(() => l.disabled), j = i(() => l.enabled === !0 ? !1 : l.disabled === !0), M = i(() => l.tag === "ElCol"), N = () => O.value = !O.value, P = () => {
|
|
55
|
+
O.value = !0;
|
|
56
|
+
};
|
|
57
|
+
v(() => {
|
|
58
|
+
O.value = !l.collapse;
|
|
59
|
+
});
|
|
60
|
+
let F = {
|
|
61
|
+
$el: h(() => M.value ? D.value.$el : D.value),
|
|
62
|
+
enabled: k,
|
|
63
|
+
disabled: A,
|
|
64
|
+
open: P,
|
|
65
|
+
expand: O,
|
|
66
|
+
blockTitle: h(() => l.blockTitle)
|
|
67
|
+
}, I = p(F);
|
|
68
|
+
return f(e, I), d(() => {
|
|
69
|
+
l.notDispatch || E == null || E.addGroup(I);
|
|
70
|
+
}), u(() => {
|
|
71
|
+
l.notDispatch || E == null || E.removeGroup(I);
|
|
72
|
+
}), w(F), () => {
|
|
73
|
+
let e = () => {
|
|
74
|
+
var e;
|
|
75
|
+
return o(r, null, [y(o("div", {
|
|
76
|
+
class: "form-item-group-title",
|
|
77
|
+
onClick: N
|
|
78
|
+
}, [o("span", {
|
|
79
|
+
class: "flex-item",
|
|
80
|
+
style: "flex: 1"
|
|
81
|
+
}, [
|
|
82
|
+
T.title ? T.title() : l.blockTitle,
|
|
83
|
+
T.tips || l.tips ? o("span", { style: "color: #ff0000; font-size: 14px" }, [
|
|
84
|
+
a("("),
|
|
85
|
+
T.tips ? T.tips() : l.tips,
|
|
86
|
+
a(")")
|
|
87
|
+
]) : null,
|
|
88
|
+
(e = T["title-right"]) == null ? void 0 : e.call(T)
|
|
89
|
+
]), o("i", { class: O.value ? "el-icon-arrow-down" : "el-icon-arrow-right" }, null)]), [[_, l.showTitle]]), o(x, null, { default: () => {
|
|
90
|
+
let e;
|
|
91
|
+
return T.default ? l.wrapRow ? y(o(S, { gutter: l.gutter }, C(e = T.default()) ? e : { default: () => [e] }), [[_, O.value]]) : y(o("div", null, [T.default()]), [[_, O.value]]) : y(o(n, {
|
|
92
|
+
"font-size": "14px",
|
|
93
|
+
"empty-tips": "暂无信息"
|
|
94
|
+
}, null), [[_, O.value]]);
|
|
95
|
+
} })]);
|
|
96
|
+
}, t = {
|
|
97
|
+
ref: "root",
|
|
98
|
+
class: ["form-item-group", {
|
|
99
|
+
"default-active": l.active,
|
|
100
|
+
"is-disabled": j.value
|
|
101
|
+
}]
|
|
102
|
+
};
|
|
103
|
+
return M.value && (t.span = l.block ? 24 : l.span), s(M.value ? b : "div", t, M.value ? e : e());
|
|
104
|
+
};
|
|
105
|
+
}
|
|
106
|
+
};
|
|
107
|
+
//#endregion
|
|
108
|
+
export { w as t };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { i as e, n as t } from "./
|
|
2
|
-
import { n } from "./
|
|
1
|
+
import { i as e, n as t } from "./D3mFJzGr.mjs";
|
|
2
|
+
import { n } from "./KuAMIZnG.mjs";
|
|
3
3
|
import { useDictionary as r } from "../hook/useDictionary.mjs";
|
|
4
4
|
import { isNumber as i, isPlainObject as a, isString as o } from "@web-utils/core";
|
|
5
5
|
import { computed as s, createVNode as c, mergeProps as l, ref as u, watchEffect as d } from "vue";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { n as e } from "./
|
|
2
|
-
import { n as t, t as n } from "./
|
|
3
|
-
import { t as r } from "./
|
|
1
|
+
import { n as e } from "./D3mFJzGr.mjs";
|
|
2
|
+
import { n as t, t as n } from "./KuAMIZnG.mjs";
|
|
3
|
+
import { t as r } from "./v-O82KSn.mjs";
|
|
4
4
|
import { createVNode as i, isVNode as a, mergeProps as o, useModel as s } from "vue";
|
|
5
5
|
//#region src/components/form/props/textarea.ts
|
|
6
6
|
var c = {
|
|
@@ -78,25 +78,14 @@ function l(e) {
|
|
|
78
78
|
var u = {
|
|
79
79
|
name: "FormTextarea",
|
|
80
80
|
inheritAttrs: !1,
|
|
81
|
-
props: {
|
|
82
|
-
...c,
|
|
83
|
-
maxlength: {
|
|
84
|
-
type: [String, Number],
|
|
85
|
-
default: 800
|
|
86
|
-
},
|
|
87
|
-
block: {
|
|
88
|
-
type: Boolean,
|
|
89
|
-
default: !0
|
|
90
|
-
}
|
|
91
|
-
},
|
|
81
|
+
props: { ...c },
|
|
92
82
|
emits: { ...e },
|
|
93
83
|
setup(e, { slots: t, attrs: n }) {
|
|
94
84
|
let a = s(e, "modelValue");
|
|
95
85
|
return () => i(r, o(e, n, {
|
|
96
|
-
maxlength: e.maxlength,
|
|
97
|
-
block: e.block,
|
|
98
86
|
modelValue: a.value,
|
|
99
87
|
"onUpdate:modelValue": (e) => a.value = e,
|
|
88
|
+
block: e.block === void 0 ? !0 : e.block,
|
|
100
89
|
type: "textarea"
|
|
101
90
|
}), l(t) ? t : { default: () => [t] });
|
|
102
91
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as e } from "./
|
|
1
|
+
import { t as e } from "./Dt3lfDnL.mjs";
|
|
2
2
|
import { t } from "./CkOD-_VV.mjs";
|
|
3
3
|
import { copy as n } from "@web-utils/core";
|
|
4
4
|
import { Fragment as r, createBlock as i, createCommentVNode as a, createElementBlock as o, createElementVNode as s, createTextVNode as c, createVNode as l, openBlock as u, renderList as d, toDisplayString as f, withCtx as p } from "vue";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as e } from "./
|
|
2
|
-
import { n as t, t as n } from "./
|
|
1
|
+
import { n as e } from "./D3mFJzGr.mjs";
|
|
2
|
+
import { n as t, t as n } from "./v-O82KSn.mjs";
|
|
3
3
|
import { createVNode as r, isVNode as i, mergeProps as a, useModel as o } from "vue";
|
|
4
4
|
//#region src/components/form/FormInputIdCard.vue?vue&type=script&lang.jsx
|
|
5
5
|
function s(e) {
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { a as e, f as t } from "./DcTVYqeJ.mjs";
|
|
2
|
+
import { t as n } from "./DOZRzqlo.mjs";
|
|
3
|
+
import { cellClickHandlerContextKey as r } from "../constants/index.mjs";
|
|
4
|
+
import { n as i, t as a } from "./XoImEoke.mjs";
|
|
5
|
+
import { createVNode as o, inject as s, mergeProps as c } from "vue";
|
|
6
|
+
import { ElTableColumn as l } from "element-plus/es";
|
|
7
|
+
//#region src/components/table/TableColumn.vue?vue&type=script&lang.jsx
|
|
8
|
+
var u = {
|
|
9
|
+
selection: !0,
|
|
10
|
+
"single-selection": !0,
|
|
11
|
+
index: !0,
|
|
12
|
+
expand: !0
|
|
13
|
+
}, d = (e, t, n, r, i) => {
|
|
14
|
+
e == null || e(t, n, r, i);
|
|
15
|
+
}, f = (e) => {
|
|
16
|
+
let t = e.target;
|
|
17
|
+
for (; t && t.tagName.toUpperCase() !== "HTML";) {
|
|
18
|
+
if (t.tagName.toUpperCase() === "TD") return t;
|
|
19
|
+
t = t.parentNode;
|
|
20
|
+
}
|
|
21
|
+
return null;
|
|
22
|
+
}, p = () => {}, m = (t) => !e(t).length, h = {
|
|
23
|
+
name: "TableColumn",
|
|
24
|
+
props: { ...a },
|
|
25
|
+
setup(e, { slots: a, attrs: h }) {
|
|
26
|
+
let g = s(r, null), _ = t(e, i);
|
|
27
|
+
return () => {
|
|
28
|
+
let t, r = u[e.type];
|
|
29
|
+
if (!r) {
|
|
30
|
+
let r = e.clickable || h.onClick || e.cellClick;
|
|
31
|
+
(r || e.dictType || e.options) && (t = (t) => {
|
|
32
|
+
var i;
|
|
33
|
+
let { row: s, column: c } = t, l = r ? (t) => {
|
|
34
|
+
let n = f(t);
|
|
35
|
+
if (h.onClick || e.cellClick) {
|
|
36
|
+
var r, i;
|
|
37
|
+
(r = h.onClick) == null || r.call(h, s, c, s, c, n, t), (i = e.cellClick) == null || i.call(e, s, c, s, c, n, t);
|
|
38
|
+
} else d(g, s, c, n, t);
|
|
39
|
+
} : p, u = a == null || (i = a.default) == null ? void 0 : i.call(a, t);
|
|
40
|
+
return m(u) && (u = null), (e.dictType || e.options) && !u ? o(n, {
|
|
41
|
+
class: { "is-clickable": r },
|
|
42
|
+
onClick: l,
|
|
43
|
+
row: s,
|
|
44
|
+
column: c,
|
|
45
|
+
dictType: e.dictType,
|
|
46
|
+
treeDict: e.treeDict,
|
|
47
|
+
idAsValue: e.idAsValue,
|
|
48
|
+
labelAsValue: e.labelAsValue,
|
|
49
|
+
options: e.options
|
|
50
|
+
}, null) : r ? o("span", {
|
|
51
|
+
class: "is-clickable",
|
|
52
|
+
onClick: l
|
|
53
|
+
}, [u || (s == null ? void 0 : s[c == null ? void 0 : c.property])]) : u;
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
return o(l, c(_.value, {
|
|
57
|
+
key: e.filterable,
|
|
58
|
+
showOverflowTooltip: r ? !1 : e.showOverflowTooltip
|
|
59
|
+
}), {
|
|
60
|
+
...a,
|
|
61
|
+
default: t || a.default
|
|
62
|
+
});
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
};
|
|
66
|
+
//#endregion
|
|
67
|
+
export { h as t };
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import { i as e, n as t } from "./D3mFJzGr.mjs";
|
|
2
|
+
import { n, t as r } from "./KuAMIZnG.mjs";
|
|
3
|
+
import { n as i, t as a } from "./CkjtCuMs.mjs";
|
|
4
|
+
import { createVNode as o, mergeProps as s, ref as c, useModel as l } from "vue";
|
|
5
|
+
//#region src/components/table/form-table.ts
|
|
6
|
+
var u = {
|
|
7
|
+
...n,
|
|
8
|
+
...r,
|
|
9
|
+
...i
|
|
10
|
+
}, d = {
|
|
11
|
+
modelValue: !0,
|
|
12
|
+
block: !0
|
|
13
|
+
}, f = (e) => n[e] === void 0 && d[e] !== !0, p = {
|
|
14
|
+
name: "FormTable",
|
|
15
|
+
props: { ...u },
|
|
16
|
+
emits: {
|
|
17
|
+
...t,
|
|
18
|
+
"add-row": null
|
|
19
|
+
},
|
|
20
|
+
setup(t, { emit: n, attrs: r, slots: i }) {
|
|
21
|
+
let u = l(t, "modelValue"), d = c([]), p = (e) => {
|
|
22
|
+
d.value = e;
|
|
23
|
+
}, { render: m, placeholder: h, disabled: g, listeners: _, inputProps: v } = e(t, {
|
|
24
|
+
emit: n,
|
|
25
|
+
slots: i,
|
|
26
|
+
attrs: r,
|
|
27
|
+
predicate: f,
|
|
28
|
+
block: t.block === void 0 ? !0 : t.block
|
|
29
|
+
});
|
|
30
|
+
return () => {
|
|
31
|
+
var e;
|
|
32
|
+
let n = {};
|
|
33
|
+
for (let r = 0; r < (((e = t.columns) == null ? void 0 : e.length) ?? 0); r++) {
|
|
34
|
+
let e = t.columns[r];
|
|
35
|
+
n[e.prop] = (t, n, r) => {
|
|
36
|
+
var a;
|
|
37
|
+
return (a = i[e.prop]) == null ? void 0 : a.call(i, t, n, r);
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
return m({ vNodes: o(a, s(_.value, v.value, {
|
|
41
|
+
disabled: g.value,
|
|
42
|
+
modelValue: u.value,
|
|
43
|
+
"onUpdate:modelValue": (e) => u.value = e,
|
|
44
|
+
placeholder: h.value,
|
|
45
|
+
onSelectionChange: p
|
|
46
|
+
}), {
|
|
47
|
+
...n,
|
|
48
|
+
columns: ({ columns: e }) => {
|
|
49
|
+
var t;
|
|
50
|
+
return (t = i.columns) == null ? void 0 : t.call(i, { columns: e });
|
|
51
|
+
},
|
|
52
|
+
handle: ({ add: e, remove: t }) => {
|
|
53
|
+
var n;
|
|
54
|
+
return (n = i.handle) == null ? void 0 : n.call(i, {
|
|
55
|
+
add: e,
|
|
56
|
+
remove: t
|
|
57
|
+
});
|
|
58
|
+
},
|
|
59
|
+
tag: ({ column: e, row: t, $index: n }) => {
|
|
60
|
+
var r;
|
|
61
|
+
return (r = i.tag) == null ? void 0 : r.call(i, {
|
|
62
|
+
column: e,
|
|
63
|
+
row: t,
|
|
64
|
+
$index: n
|
|
65
|
+
});
|
|
66
|
+
},
|
|
67
|
+
"handle-column-header": ({ column: e, $index: t }) => {
|
|
68
|
+
var n;
|
|
69
|
+
return (n = i["handle-column-header"]) == null ? void 0 : n.call(i, {
|
|
70
|
+
column: e,
|
|
71
|
+
index: t
|
|
72
|
+
});
|
|
73
|
+
},
|
|
74
|
+
toolbar: ({ addRow: e, delRow: t, refresh: n }) => {
|
|
75
|
+
var r;
|
|
76
|
+
return (r = i.toolbar) == null ? void 0 : r.call(i, {
|
|
77
|
+
addRow: e,
|
|
78
|
+
delRow: t,
|
|
79
|
+
refresh: n
|
|
80
|
+
});
|
|
81
|
+
}
|
|
82
|
+
}) });
|
|
83
|
+
};
|
|
84
|
+
}
|
|
85
|
+
};
|
|
86
|
+
//#endregion
|
|
87
|
+
export { p as t };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { i as e, n as t } from "./
|
|
2
|
-
import { n } from "./
|
|
1
|
+
import { i as e, n as t } from "./D3mFJzGr.mjs";
|
|
2
|
+
import { n } from "./KuAMIZnG.mjs";
|
|
3
3
|
import { createVNode as r, mergeProps as i, useModel as a } from "vue";
|
|
4
4
|
import { ElRate as o } from "element-plus/es";
|
|
5
5
|
//#region src/components/form/props/rate.ts
|