@dazhicheng/ui 1.6.17 → 1.6.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/tt-area/TtArea.vue.js +1 -1
- package/dist/components/tt-drawer/src/components/DrawerHeader.vue.js +2 -2
- package/dist/components/tt-form/src/form-render/FormField.vue2.js +165 -159
- package/dist/components/tt-form/src/form-render/dependencies.d.ts +1 -1
- package/dist/components/tt-form/src/form-render/dependencies.js +53 -53
- package/dist/components/tt-form/src/form-render/form.vue2.js +68 -67
- package/dist/components/tt-form/src/form-render/helper.js +20 -16
- package/dist/components/tt-form/src/group-form/groupFormApi.js +46 -45
- package/dist/components/tt-icon/index.vue.js +2 -2
- package/dist/components/tt-loading/src/loading.vue.js +2 -2
- package/dist/components/tt-table/src/TableForm.vue.d.ts +9 -0
- package/dist/components/tt-table/src/TableForm.vue.js +190 -179
- package/dist/components/tt-table/src/props.d.ts +6 -1
- package/dist/components/tt-table/src/props.js +9 -4
- package/dist/components/tt-table/src/types/tableForm.d.ts +19 -0
- package/dist/hooks/useBasicDataOptions.js +27 -26
- package/dist/hooks/useDataPermissionOptions.js +75 -92
- package/dist/hooks/userListCache.d.ts +12 -0
- package/dist/hooks/userListCache.js +17 -0
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./TtArea.vue3.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-
|
|
4
|
+
const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-116cb5cb"]]);
|
|
5
5
|
export {
|
|
6
6
|
m as default
|
|
7
7
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import r from "./DrawerHeader.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import o from "../../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const f = /* @__PURE__ */ o(r, [["__scopeId", "data-v-6cdf82e0"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
f as default
|
|
7
7
|
};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import { defineComponent as he, useTemplateRef as H, unref as o, computed as a, reactive as be, markRaw as ye, toRaw as C, watch as J, nextTick as Ce, onUnmounted as ge, createBlock as p, createCommentVNode as c, openBlock as m, mergeProps as w, withCtx as v, withDirectives as Fe, createVNode as g, createElementVNode as $, createElementBlock as Q, normalizeClass as E, normalizeStyle as X, renderSlot as Se, normalizeProps as Ne, guardReactiveProps as Re, resolveDynamicComponent as ke, createSlots as Oe, renderList as we, Transition as Ee, vShow as Pe } from "vue";
|
|
2
|
+
import Te from "../form/FormControl.vue.js";
|
|
3
|
+
import Be from "../form/FormDescription.vue.js";
|
|
4
4
|
import Ve from "../form/FormItem.vue.js";
|
|
5
5
|
import "axios";
|
|
6
6
|
import "element-plus";
|
|
7
|
-
import { isString as
|
|
7
|
+
import { isString as h, isFunction as q, isObject as Ie } from "../../../../packages/utils/src/is.js";
|
|
8
8
|
import "dayjs";
|
|
9
9
|
import "numeral";
|
|
10
|
-
import { clnm as
|
|
10
|
+
import { clnm as j } from "../../../../packages/utils/src/tool.js";
|
|
11
11
|
import "../../../../node_modules/.pnpm/decimal.js@10.6.0/node_modules/decimal.js/decimal.js";
|
|
12
12
|
import "../../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/aes.js";
|
|
13
13
|
import "../../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/enc-utf8.js";
|
|
@@ -20,18 +20,18 @@ import "../../../tt-icon/index.js";
|
|
|
20
20
|
import "@vueuse/core";
|
|
21
21
|
import { useFormValues as Ae, useFieldError as Me, Field as Ue } from "vee-validate";
|
|
22
22
|
/* empty css */
|
|
23
|
-
import
|
|
23
|
+
import P from "../form/RenderContent.vue.js";
|
|
24
24
|
import { toTypedSchema as De } from "@vee-validate/zod";
|
|
25
25
|
import { injectFormProps as We, injectComponentRefMap as ze } from "../useFormContext.js";
|
|
26
26
|
import { useFormContext as xe, injectRenderFormProps as Ke } from "./context.js";
|
|
27
27
|
import Ge, { resolveRequiredRuleName as He } from "./dependencies.js";
|
|
28
28
|
import Je from "./FormLabel.vue2.js";
|
|
29
29
|
import { useSelectCollapseOptions as Qe } from "../hooks/useSelectCollapse.js";
|
|
30
|
-
import { isEventObjectLike as
|
|
30
|
+
import { isEventObjectLike as Y } from "./helper.js";
|
|
31
31
|
const Xe = { class: "flex-auto overflow-hidden" }, Ye = {
|
|
32
32
|
key: 0,
|
|
33
33
|
class: "ml-1"
|
|
34
|
-
}, Pn = /* @__PURE__ */
|
|
34
|
+
}, Pn = /* @__PURE__ */ he({
|
|
35
35
|
__name: "FormField",
|
|
36
36
|
props: {
|
|
37
37
|
component: {},
|
|
@@ -67,19 +67,19 @@ const Xe = { class: "flex-auto overflow-hidden" }, Ye = {
|
|
|
67
67
|
wrapperClass: {},
|
|
68
68
|
commonComponentProps: {}
|
|
69
69
|
},
|
|
70
|
-
setup(
|
|
71
|
-
const
|
|
70
|
+
setup(t) {
|
|
71
|
+
const T = H("wrapperRef"), { componentBindEventMap: Z, componentMap: _, isVertical: b } = xe(), ee = Ke(), R = Ae(), ne = Me(t.fieldName), d = H("fieldComponentRef"), [te, oe] = We(), A = o(te).formApi, F = a(() => ee.compact), S = a(() => {
|
|
72
72
|
var e;
|
|
73
|
-
return ((e =
|
|
74
|
-
}), B =
|
|
73
|
+
return ((e = ne.value) == null ? void 0 : e.length) > 0;
|
|
74
|
+
}), B = be(
|
|
75
75
|
new Proxy({}, {
|
|
76
76
|
/**
|
|
77
77
|
* @param _target 代理目标(空对象,不实际存储)
|
|
78
78
|
* @param key 属性名
|
|
79
79
|
* @returns 当前表单值
|
|
80
80
|
*/
|
|
81
|
-
get(e,
|
|
82
|
-
return $e(
|
|
81
|
+
get(e, n) {
|
|
82
|
+
return $e(R.value, n);
|
|
83
83
|
},
|
|
84
84
|
/**
|
|
85
85
|
* @param _target 代理目标
|
|
@@ -87,162 +87,168 @@ const Xe = { class: "flex-auto overflow-hidden" }, Ye = {
|
|
|
87
87
|
* @param value 新值
|
|
88
88
|
* @returns 是否设置成功
|
|
89
89
|
*/
|
|
90
|
-
set(e,
|
|
91
|
-
return Le(
|
|
90
|
+
set(e, n, l) {
|
|
91
|
+
return Le(R.value, n, l), oe.validateField(n, { warn: !1 }), !0;
|
|
92
92
|
}
|
|
93
93
|
})
|
|
94
|
-
),
|
|
95
|
-
const e =
|
|
96
|
-
return
|
|
97
|
-
}), { dynamicComponentProps:
|
|
98
|
-
() =>
|
|
99
|
-
),
|
|
94
|
+
), M = a(() => {
|
|
95
|
+
const e = h(t.component) ? _.value[t.component] : t.component;
|
|
96
|
+
return ye(C(e));
|
|
97
|
+
}), { dynamicComponentProps: le, dynamicRules: ie, isDisabled: ae, isIf: U, isRequired: V, isShow: D } = Ge(
|
|
98
|
+
() => t.dependencies
|
|
99
|
+
), re = a(() => {
|
|
100
100
|
var e;
|
|
101
|
-
return (e =
|
|
102
|
-
width: `${
|
|
101
|
+
return (e = t.labelClass) != null && e.includes("w-") || b.value ? {} : {
|
|
102
|
+
width: `${t.labelWidth}px`
|
|
103
103
|
};
|
|
104
|
-
}),
|
|
105
|
-
|
|
106
|
-
|
|
104
|
+
}), W = a(() => {
|
|
105
|
+
const e = ie.value || t.rules;
|
|
106
|
+
return e && C(e);
|
|
107
|
+
}), z = a(() => !t.hide && U.value && D.value), I = a(() => {
|
|
108
|
+
var r, N, u;
|
|
109
|
+
if (!z.value)
|
|
107
110
|
return !1;
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
+
const e = W.value;
|
|
112
|
+
if (!e)
|
|
113
|
+
return V.value;
|
|
114
|
+
if (V.value)
|
|
111
115
|
return !0;
|
|
112
|
-
if (
|
|
113
|
-
return ["required", "selectRequired"].includes(
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
116
|
+
if (h(e))
|
|
117
|
+
return ["required", "selectRequired"].includes(e);
|
|
118
|
+
const n = C(e);
|
|
119
|
+
let l = (r = n == null ? void 0 : n.isOptional) == null ? void 0 : r.call(n);
|
|
120
|
+
const i = n == null ? void 0 : n.def;
|
|
121
|
+
if ((i == null ? void 0 : i.type) === "default" && "innerType" in i) {
|
|
122
|
+
const O = i.innerType;
|
|
123
|
+
O && (l = (u = (N = C(O)).isOptional) == null ? void 0 : u.call(N));
|
|
119
124
|
}
|
|
120
|
-
return !
|
|
121
|
-
}),
|
|
122
|
-
var
|
|
123
|
-
if (!
|
|
125
|
+
return !l;
|
|
126
|
+
}), ue = a(() => {
|
|
127
|
+
var i;
|
|
128
|
+
if (!z.value)
|
|
124
129
|
return null;
|
|
125
|
-
|
|
130
|
+
const e = W.value;
|
|
126
131
|
if (!e)
|
|
127
|
-
return
|
|
128
|
-
if (
|
|
132
|
+
return V.value ? He(M.value) : null;
|
|
133
|
+
if (h(e))
|
|
129
134
|
return e;
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
135
|
+
let n = C(e);
|
|
136
|
+
if (!!I.value) {
|
|
137
|
+
const r = (i = n == null ? void 0 : n.unwrap) == null ? void 0 : i.call(n);
|
|
138
|
+
r && (n = C(r));
|
|
133
139
|
}
|
|
134
|
-
return De(
|
|
135
|
-
}),
|
|
136
|
-
const e =
|
|
140
|
+
return De(n);
|
|
141
|
+
}), s = a(() => {
|
|
142
|
+
const e = q(t.componentProps) ? t.componentProps(R.value, A) : t.componentProps;
|
|
137
143
|
return {
|
|
138
|
-
...
|
|
144
|
+
...t.commonComponentProps,
|
|
139
145
|
...e,
|
|
140
|
-
...
|
|
146
|
+
...le.value
|
|
141
147
|
};
|
|
142
|
-
}), { selectComponentProps:
|
|
148
|
+
}), { selectComponentProps: se } = Qe(
|
|
143
149
|
a(() => ({
|
|
144
|
-
componentProps:
|
|
145
|
-
component:
|
|
146
|
-
selectWrapRef:
|
|
147
|
-
selectRef:
|
|
150
|
+
componentProps: s,
|
|
151
|
+
component: t.component,
|
|
152
|
+
selectWrapRef: T,
|
|
153
|
+
selectRef: d
|
|
148
154
|
}))
|
|
149
155
|
);
|
|
150
|
-
|
|
156
|
+
J(
|
|
151
157
|
() => {
|
|
152
158
|
var e;
|
|
153
|
-
return (e =
|
|
159
|
+
return (e = s.value) == null ? void 0 : e.autofocus;
|
|
154
160
|
},
|
|
155
161
|
(e) => {
|
|
156
162
|
e === !0 && Ce(() => {
|
|
157
|
-
|
|
163
|
+
ve();
|
|
158
164
|
});
|
|
159
165
|
},
|
|
160
166
|
{ immediate: !0 }
|
|
161
167
|
);
|
|
162
|
-
const
|
|
168
|
+
const k = a(() => {
|
|
163
169
|
var e;
|
|
164
|
-
return
|
|
165
|
-
}),
|
|
166
|
-
const e =
|
|
170
|
+
return ae.value || t.disabled || ((e = s.value) == null ? void 0 : e.disabled);
|
|
171
|
+
}), x = a(() => q(t.renderComponentContent) ? t.renderComponentContent(R.value, A) : {}), me = a(() => Object.keys(x.value)), ce = a(() => {
|
|
172
|
+
const e = ue.value;
|
|
167
173
|
return {
|
|
168
174
|
keepValue: !0,
|
|
169
|
-
label:
|
|
175
|
+
label: h(t.label) ? t.label : "",
|
|
170
176
|
...e ? { rules: e } : {},
|
|
171
|
-
...
|
|
177
|
+
...t.formFieldProps
|
|
172
178
|
};
|
|
173
179
|
});
|
|
174
|
-
function
|
|
175
|
-
var
|
|
176
|
-
const
|
|
177
|
-
let
|
|
178
|
-
if (
|
|
179
|
-
const
|
|
180
|
-
|
|
180
|
+
function de(e) {
|
|
181
|
+
var N;
|
|
182
|
+
const n = e.componentField.modelValue, l = e.componentField["onUpdate:modelValue"], i = t.modelPropName || (h(t.component) ? (N = Z.value) == null ? void 0 : N[t.component] : null);
|
|
183
|
+
let r = n;
|
|
184
|
+
if (n && Ie(n) && i) {
|
|
185
|
+
const u = n.target;
|
|
186
|
+
r = Y(n) ? u == null ? void 0 : u[i] : (n == null ? void 0 : n[i]) ?? n;
|
|
181
187
|
}
|
|
182
188
|
return i ? {
|
|
183
|
-
[`onUpdate:${i}`]:
|
|
184
|
-
[i]:
|
|
185
|
-
onChange:
|
|
186
|
-
var
|
|
187
|
-
const
|
|
188
|
-
if (!
|
|
189
|
-
return
|
|
190
|
-
const
|
|
191
|
-
return
|
|
189
|
+
[`onUpdate:${i}`]: l,
|
|
190
|
+
[i]: r === void 0 ? t.emptyStateValue : r,
|
|
191
|
+
onChange: t.disabledOnChangeListener ? void 0 : (u) => {
|
|
192
|
+
var G;
|
|
193
|
+
const O = Y(u), y = (G = e == null ? void 0 : e.componentField) == null ? void 0 : G.onChange;
|
|
194
|
+
if (!O)
|
|
195
|
+
return y == null ? void 0 : y(u);
|
|
196
|
+
const L = u.target;
|
|
197
|
+
return y == null ? void 0 : y((L == null ? void 0 : L[i]) ?? u);
|
|
192
198
|
},
|
|
193
|
-
...
|
|
199
|
+
...t.disabledOnInputListener ? { onInput: void 0 } : {}
|
|
194
200
|
} : {
|
|
195
|
-
...
|
|
196
|
-
...
|
|
201
|
+
...t.disabledOnInputListener ? { onInput: void 0 } : {},
|
|
202
|
+
...t.disabledOnChangeListener ? { onChange: void 0 } : {}
|
|
197
203
|
};
|
|
198
204
|
}
|
|
199
|
-
const
|
|
200
|
-
function
|
|
201
|
-
const
|
|
205
|
+
const fe = /* @__PURE__ */ new Set(["ElCheckbox", "ElCheckboxButton", "ElSwitch"]), pe = /* @__PURE__ */ new Set(["ElInputNumber"]);
|
|
206
|
+
function K(e) {
|
|
207
|
+
const n = de(e), l = {
|
|
202
208
|
...e.componentField,
|
|
203
|
-
...
|
|
204
|
-
...
|
|
205
|
-
...
|
|
206
|
-
...Reflect.has(
|
|
207
|
-
...Reflect.has(
|
|
209
|
+
...s.value,
|
|
210
|
+
...se.value,
|
|
211
|
+
...n,
|
|
212
|
+
...Reflect.has(s.value, "onChange") ? { onChange: s.value.onChange } : {},
|
|
213
|
+
...Reflect.has(s.value, "onInput") ? { onInput: s.value.onInput } : {}
|
|
208
214
|
};
|
|
209
|
-
return Reflect.has(
|
|
210
|
-
...
|
|
211
|
-
placeholder:
|
|
215
|
+
return Reflect.has(s.value, "name") || delete l.name, h(t.component) && fe.has(t.component) && l.modelValue === void 0 && (l.modelValue = !1), h(t.component) && pe.has(t.component) && (l.controls = !1, l.align = "left"), {
|
|
216
|
+
...l,
|
|
217
|
+
placeholder: k.value ? "" : l.placeholder
|
|
212
218
|
};
|
|
213
219
|
}
|
|
214
|
-
function
|
|
215
|
-
var e,
|
|
216
|
-
|
|
217
|
-
document.activeElement !==
|
|
220
|
+
function ve() {
|
|
221
|
+
var e, n;
|
|
222
|
+
d.value && q(d.value.focus) && // 检查当前是否有元素被聚焦
|
|
223
|
+
document.activeElement !== d.value && ((n = (e = d.value) == null ? void 0 : e.focus) == null || n.call(e));
|
|
218
224
|
}
|
|
219
|
-
const
|
|
220
|
-
return
|
|
221
|
-
|
|
225
|
+
const f = ze();
|
|
226
|
+
return J(d, (e) => {
|
|
227
|
+
f == null || f.set(t.fieldName, e);
|
|
222
228
|
}), ge(() => {
|
|
223
|
-
|
|
224
|
-
}), (e,
|
|
225
|
-
default:
|
|
226
|
-
Fe(
|
|
229
|
+
f != null && f.has(t.fieldName) && f.delete(t.fieldName);
|
|
230
|
+
}), (e, n) => !e.hide && o(U) ? (m(), p(o(Ue), w({ key: 0 }, ce.value, { name: e.fieldName }), {
|
|
231
|
+
default: v((l) => [
|
|
232
|
+
Fe(g(o(Ve), w({
|
|
227
233
|
class: [{
|
|
228
|
-
"form-valid-error":
|
|
229
|
-
"form-is-required":
|
|
230
|
-
"pb-(--form-valid-error-nocompact-padding-bottom)": !
|
|
231
|
-
"pb-2":
|
|
234
|
+
"form-valid-error": S.value,
|
|
235
|
+
"form-is-required": I.value,
|
|
236
|
+
"pb-(--form-valid-error-nocompact-padding-bottom)": !F.value,
|
|
237
|
+
"pb-2": F.value
|
|
232
238
|
}, "relative"]
|
|
233
239
|
}, e.$attrs), {
|
|
234
|
-
default:
|
|
235
|
-
|
|
236
|
-
class:
|
|
240
|
+
default: v(() => [
|
|
241
|
+
$("div", {
|
|
242
|
+
class: E([{ "flex-col": o(b), "flex-row items-center": !o(b) }, "flex"])
|
|
237
243
|
}, [
|
|
238
|
-
e.hideLabel ? c("", !0) : (
|
|
244
|
+
e.hideLabel ? c("", !0) : (m(), p(Je, {
|
|
239
245
|
key: 0,
|
|
240
|
-
class:
|
|
241
|
-
|
|
246
|
+
class: E(
|
|
247
|
+
o(j)(
|
|
242
248
|
"flex leading-6",
|
|
243
249
|
{
|
|
244
|
-
"mr-2 shrink-0 items-center justify-end": !
|
|
245
|
-
"mb-1 flex-row":
|
|
250
|
+
"mr-2 shrink-0 items-center justify-end": !o(b),
|
|
251
|
+
"mb-1 flex-row": o(b)
|
|
246
252
|
},
|
|
247
253
|
e.labelClass
|
|
248
254
|
)
|
|
@@ -250,55 +256,55 @@ const Xe = { class: "flex-auto overflow-hidden" }, Ye = {
|
|
|
250
256
|
help: e.help,
|
|
251
257
|
colon: e.colon,
|
|
252
258
|
label: e.label,
|
|
253
|
-
required:
|
|
254
|
-
style:
|
|
259
|
+
required: I.value && !e.hideRequiredMark,
|
|
260
|
+
style: X(re.value),
|
|
255
261
|
"tool-tip": e.toolTip,
|
|
256
262
|
"help-trigger": e.helpTrigger,
|
|
257
263
|
form: B,
|
|
258
264
|
"tool-tip-text": e.toolTipText
|
|
259
265
|
}, {
|
|
260
|
-
default:
|
|
261
|
-
e.label ? (
|
|
266
|
+
default: v(() => [
|
|
267
|
+
e.label ? (m(), p(o(P), {
|
|
262
268
|
key: 0,
|
|
263
269
|
content: e.label
|
|
264
270
|
}, null, 8, ["content"])) : c("", !0)
|
|
265
271
|
]),
|
|
266
272
|
_: 1
|
|
267
273
|
}, 8, ["class", "help", "colon", "label", "required", "style", "tool-tip", "help-trigger", "form", "tool-tip-text"])),
|
|
268
|
-
|
|
269
|
-
|
|
274
|
+
$("div", Xe, [
|
|
275
|
+
$("div", {
|
|
270
276
|
ref_key: "wrapperRef",
|
|
271
|
-
ref:
|
|
272
|
-
class:
|
|
277
|
+
ref: T,
|
|
278
|
+
class: E(o(j)("relative flex w-full items-center", e.wrapperClass))
|
|
273
279
|
}, [
|
|
274
|
-
|
|
275
|
-
class:
|
|
280
|
+
g(o(Te), {
|
|
281
|
+
class: E(o(j)(e.controlClass))
|
|
276
282
|
}, {
|
|
277
|
-
default:
|
|
278
|
-
|
|
279
|
-
...
|
|
280
|
-
...
|
|
281
|
-
disabled:
|
|
282
|
-
isInValid:
|
|
283
|
+
default: v(() => [
|
|
284
|
+
Se(e.$slots, "default", Ne(Re({
|
|
285
|
+
...l,
|
|
286
|
+
...K(l),
|
|
287
|
+
disabled: k.value,
|
|
288
|
+
isInValid: S.value,
|
|
283
289
|
form: B,
|
|
284
290
|
fieldName: e.fieldName
|
|
285
291
|
})), () => [
|
|
286
|
-
(
|
|
292
|
+
(m(), p(ke(M.value), w({
|
|
287
293
|
ref_key: "fieldComponentRef",
|
|
288
|
-
ref:
|
|
294
|
+
ref: d
|
|
289
295
|
}, {
|
|
290
|
-
...
|
|
291
|
-
disabled:
|
|
292
|
-
isInValid:
|
|
296
|
+
...K(l),
|
|
297
|
+
disabled: k.value,
|
|
298
|
+
isInValid: S.value,
|
|
293
299
|
form: B,
|
|
294
300
|
fieldName: e.fieldName
|
|
295
|
-
}, { disabled:
|
|
296
|
-
|
|
301
|
+
}, { disabled: k.value }), Oe({ _: 2 }, [
|
|
302
|
+
we(me.value, (i) => ({
|
|
297
303
|
name: i,
|
|
298
|
-
fn:
|
|
299
|
-
|
|
300
|
-
content:
|
|
301
|
-
}, { ...
|
|
304
|
+
fn: v((r) => [
|
|
305
|
+
g(o(P), w({
|
|
306
|
+
content: x.value[i]
|
|
307
|
+
}, { ...r, formContext: l }), null, 16, ["content"])
|
|
302
308
|
])
|
|
303
309
|
}))
|
|
304
310
|
]), 1040, ["disabled"]))
|
|
@@ -306,32 +312,32 @@ const Xe = { class: "flex-auto overflow-hidden" }, Ye = {
|
|
|
306
312
|
]),
|
|
307
313
|
_: 2
|
|
308
314
|
}, 1032, ["class"]),
|
|
309
|
-
e.suffix ? (
|
|
310
|
-
|
|
315
|
+
e.suffix ? (m(), Q("div", Ye, [
|
|
316
|
+
g(o(P), { content: e.suffix }, null, 8, ["content"])
|
|
311
317
|
])) : c("", !0),
|
|
312
|
-
|
|
318
|
+
F.value && S.value ? (m(), p(o(qe), {
|
|
313
319
|
key: 1,
|
|
314
|
-
"ref-dom":
|
|
320
|
+
"ref-dom": T.value
|
|
315
321
|
}, null, 8, ["ref-dom"])) : c("", !0)
|
|
316
322
|
], 2)
|
|
317
323
|
])
|
|
318
324
|
], 2),
|
|
319
|
-
e.description || !
|
|
325
|
+
e.description || !F.value ? (m(), Q("div", {
|
|
320
326
|
key: 0,
|
|
321
|
-
style:
|
|
327
|
+
style: X(!o(b) && !e.hideLabel ? { paddingLeft: `${(e.labelWidth || 0) + 8}px` } : {})
|
|
322
328
|
}, [
|
|
323
|
-
e.description ? (
|
|
329
|
+
e.description ? (m(), p(o(Be), {
|
|
324
330
|
key: 0,
|
|
325
331
|
class: "text-[12px]"
|
|
326
332
|
}, {
|
|
327
|
-
default:
|
|
328
|
-
|
|
333
|
+
default: v(() => [
|
|
334
|
+
g(o(P), { content: e.description }, null, 8, ["content"])
|
|
329
335
|
]),
|
|
330
336
|
_: 1
|
|
331
337
|
})) : c("", !0),
|
|
332
|
-
|
|
333
|
-
default:
|
|
334
|
-
!
|
|
338
|
+
g(Ee, { name: "slide-up" }, {
|
|
339
|
+
default: v(() => [
|
|
340
|
+
!F.value && S.value ? (m(), p(o(je), {
|
|
335
341
|
key: 0,
|
|
336
342
|
class: "absolute"
|
|
337
343
|
})) : c("", !0)
|
|
@@ -342,7 +348,7 @@ const Xe = { class: "flex-auto overflow-hidden" }, Ye = {
|
|
|
342
348
|
]),
|
|
343
349
|
_: 2
|
|
344
350
|
}, 1040, ["class"]), [
|
|
345
|
-
[Pe,
|
|
351
|
+
[Pe, o(D)]
|
|
346
352
|
])
|
|
347
353
|
]),
|
|
348
354
|
_: 3
|
|
@@ -22,7 +22,7 @@ export default function useDependencies(getDependencies: () => FormItemDependenc
|
|
|
22
22
|
placeholder?: any;
|
|
23
23
|
title?: any;
|
|
24
24
|
}>;
|
|
25
|
-
dynamicRules: import('vue').
|
|
25
|
+
dynamicRules: import('vue').ShallowRef<FormSchemaRuleType | undefined, FormSchemaRuleType | undefined>;
|
|
26
26
|
isDisabled: import('vue').Ref<boolean, boolean>;
|
|
27
27
|
isIf: import('vue').Ref<boolean, boolean>;
|
|
28
28
|
isRequired: import('vue').Ref<boolean, boolean>;
|