@dazhicheng/ui 1.5.261 → 1.5.263
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-api-component/index.vue2.js +41 -40
- package/dist/components/tt-button/index.vue2.js +10 -9
- package/dist/components/tt-drawer/src/RenderDrawer.vue.js +16 -15
- package/dist/components/tt-drawer/src/components/DrawerFooter.vue.js +3 -2
- package/dist/components/tt-drawer/src/components/DrawerHeader.vue2.js +3 -2
- package/dist/components/tt-drawer/src/props.js +3 -2
- package/dist/components/tt-form/index.js +7 -6
- package/dist/components/tt-form/src/components/FormActions.vue2.js +3 -2
- package/dist/components/tt-form/src/form-render/form.vue2.js +3 -2
- package/dist/components/tt-form/src/group-form/GroupForm.vue2.js +3 -2
- package/dist/components/tt-form/src/group-form/GroupSection.vue2.js +26 -25
- package/dist/components/tt-form/src/group-form/LazyFormField.vue.js +3 -2
- package/dist/components/tt-form/src/hooks/useSelectCollapse.js +82 -64
- package/dist/components/tt-form/src/index.vue2.js +3 -2
- package/dist/components/tt-log/index.vue.js +5 -4
- package/dist/components/tt-modal/src/RenderModal.vue.js +3 -2
- package/dist/components/tt-modal/src/components/ModalHeader.vue2.js +7 -6
- package/dist/components/tt-modal/src/components/ModalWrapper.vue.js +3 -2
- package/dist/components/tt-modal/src/props.js +3 -2
- package/dist/components/tt-nav-anchor/src/TtNavAnchor.vue.js +3 -2
- package/dist/components/tt-panel-select/src/components/PanelLeft.vue.js +29 -23
- package/dist/components/tt-panel-select/src/components/PanelMiddle.vue.js +89 -81
- package/dist/components/tt-panel-select/src/components/PanelRight.vue.js +49 -43
- package/dist/components/tt-panel-select/src/hooks/usePanelData.js +56 -49
- package/dist/components/tt-panel-select/src/hooks/usePanelSelection.d.ts +3 -0
- package/dist/components/tt-panel-select/src/hooks/usePanelSelection.js +94 -61
- package/dist/components/tt-panel-select/src/index.vue.d.ts +1 -1
- package/dist/components/tt-panel-select/src/index.vue.js +205 -190
- package/dist/components/tt-radio-group/index.vue.js +11 -10
- package/dist/components/tt-select/src/Select.vue.js +3 -2
- package/dist/components/tt-select/src/components/SelectTable.vue.js +3 -2
- package/dist/components/tt-select/src/components/Table.vue.js +3 -2
- package/dist/components/tt-table/index.js +1 -1
- package/dist/components/tt-table/src/Table.vue.js +45 -44
- package/dist/components/tt-table/src/TableForm.vue.js +1 -1
- package/dist/components/tt-table/src/components/TableAction.vue.js +12 -11
- package/dist/components/tt-table/src/components/TableButtons.js +3 -2
- package/dist/components/tt-table/src/components/TableColumnModal.vue2.js +34 -33
- package/dist/components/tt-table/src/props.js +5 -4
- package/dist/components/tt-upload/src/TtUpload.vue.js +15 -14
- package/dist/hooks/basicDataCodes.d.ts +4 -1
- package/dist/hooks/basicDataCodes.js +35 -33
- package/dist/hooks/usePanelSelectSchemas.d.ts +3 -2
- package/dist/hooks/usePanelSelectSchemas.js +62 -62
- package/dist/hooks/useScreenshotOss.js +3 -2
- package/dist/plugins/vxeTable/switchStatus.js +3 -2
- package/dist/style.css +1 -1
- package/package.json +3 -3
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { defineComponent as H, mergeModels as D, useModel as J, useAttrs as Q, useSlots as W, ref as u, computed as g, unref as t, watch as X, createBlock as Y, openBlock as E, resolveDynamicComponent as Z, mergeProps as ee, createSlots as te, renderList as
|
|
1
|
+
import { defineComponent as H, mergeModels as D, useModel as J, useAttrs as Q, useSlots as W, ref as u, computed as g, unref as t, watch as X, createBlock as Y, openBlock as E, resolveDynamicComponent as Z, mergeProps as ee, createSlots as te, renderList as oe, withCtx as P, renderSlot as ae, normalizeProps as le, guardReactiveProps as ne, createElementBlock as ie, createCommentVNode as re, normalizeClass as se, createVNode as $, nextTick as de } from "vue";
|
|
2
2
|
import { ElIcon as ue } from "element-plus";
|
|
3
3
|
import { Loading as fe } from "@element-plus/icons-vue";
|
|
4
4
|
import "../../node_modules/.pnpm/vue-types@5.1.3_vue@3.5.21_typescript@5.9.3_/node_modules/vue-types/shim/index.modern.js";
|
|
5
|
-
import { useDesign as
|
|
5
|
+
import { useDesign as pe } from "../../packages/hooks/src/useDesign.js";
|
|
6
6
|
import "axios";
|
|
7
7
|
import { isFunction as h } from "../../packages/utils/src/is.js";
|
|
8
8
|
import "xe-utils";
|
|
@@ -14,9 +14,10 @@ import "../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/aes.js";
|
|
|
14
14
|
import "../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/enc-utf8.js";
|
|
15
15
|
import "../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/mode-ecb.js";
|
|
16
16
|
import "../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/pad-pkcs7.js";
|
|
17
|
-
import { isEqual as
|
|
17
|
+
import { isEqual as ce, get as y, cloneDeep as L } from "lodash-es";
|
|
18
|
+
import "vue-router";
|
|
18
19
|
import { objectOmit as _ } from "@vueuse/core";
|
|
19
|
-
const
|
|
20
|
+
const Ee = /* @__PURE__ */ H({
|
|
20
21
|
name: "ApiComponent",
|
|
21
22
|
inheritAttrs: !1,
|
|
22
23
|
__name: "index",
|
|
@@ -46,9 +47,9 @@ const De = /* @__PURE__ */ H({
|
|
|
46
47
|
}),
|
|
47
48
|
emits: /* @__PURE__ */ D(["optionsChange", "change"], ["update:modelValue"]),
|
|
48
49
|
setup(w, { expose: z, emit: M }) {
|
|
49
|
-
const { prefixCls: T } =
|
|
50
|
+
const { prefixCls: T } = pe("api-component"), o = w, C = M, f = J(w, "modelValue"), j = Q(), q = W(), k = u({}), m = u([]), p = u(!1), b = u(!1), F = u(!1), a = g(() => {
|
|
50
51
|
var O;
|
|
51
|
-
const { labelField: e, valueField: n, disabledField: i, childrenField: l, numberToString: r } =
|
|
52
|
+
const { labelField: e, valueField: n, disabledField: i, childrenField: l, numberToString: r } = o, s = t(m);
|
|
52
53
|
function S(v) {
|
|
53
54
|
return v.map((d) => {
|
|
54
55
|
const R = y(d, n);
|
|
@@ -61,34 +62,34 @@ const De = /* @__PURE__ */ H({
|
|
|
61
62
|
};
|
|
62
63
|
});
|
|
63
64
|
}
|
|
64
|
-
const N = S(s), G = (O =
|
|
65
|
+
const N = S(s), G = (O = o.options) != null && O.every((v) => Reflect.has(v, "value") && Reflect.has(v, "label")) ? o.options : S(o.options);
|
|
65
66
|
return N.length > 0 ? N : G;
|
|
66
67
|
}), x = g(() => ({
|
|
67
|
-
[
|
|
68
|
-
[
|
|
69
|
-
[`onUpdate:${
|
|
68
|
+
[o.modelPropName]: t(f),
|
|
69
|
+
[o.optionsPropName]: t(a),
|
|
70
|
+
[`onUpdate:${o.modelPropName}`]: (e) => {
|
|
70
71
|
f.value = e;
|
|
71
72
|
},
|
|
72
|
-
..._(j, [`onUpdate:${
|
|
73
|
-
...
|
|
74
|
-
[
|
|
73
|
+
..._(j, [`onUpdate:${o.modelPropName}`]),
|
|
74
|
+
...o.visibleEvent ? {
|
|
75
|
+
[o.visibleEvent]: U
|
|
75
76
|
} : {},
|
|
76
77
|
/**
|
|
77
78
|
* Element Plus 的 ElSelect / ElSelectV2 等:`loading` 插槽仅在 `props.loading === true` 时才会渲染,
|
|
78
79
|
* 需与内部请求态同步,否则插槽内容永远不会显示。
|
|
79
80
|
*/
|
|
80
|
-
...
|
|
81
|
+
...o.loadingSlot ? { loading: t(p) } : {}
|
|
81
82
|
}));
|
|
82
|
-
async function
|
|
83
|
-
const { api: e, beforeFetch: n, afterFetch: i, resultField: l } =
|
|
83
|
+
async function c() {
|
|
84
|
+
const { api: e, beforeFetch: n, afterFetch: i, resultField: l } = o;
|
|
84
85
|
if (!(!e || !h(e))) {
|
|
85
|
-
if (
|
|
86
|
+
if (p.value) {
|
|
86
87
|
F.value = !0;
|
|
87
88
|
return;
|
|
88
89
|
}
|
|
89
90
|
m.value = [];
|
|
90
91
|
try {
|
|
91
|
-
|
|
92
|
+
p.value = !0;
|
|
92
93
|
let r = t(V);
|
|
93
94
|
n && h(n) && (r = await n(L(r)) || r);
|
|
94
95
|
let s = await e(r);
|
|
@@ -100,63 +101,63 @@ const De = /* @__PURE__ */ H({
|
|
|
100
101
|
} catch {
|
|
101
102
|
b.value = !1;
|
|
102
103
|
} finally {
|
|
103
|
-
|
|
104
|
+
p.value = !1, F.value && (F.value = !1, await de(), c());
|
|
104
105
|
}
|
|
105
106
|
}
|
|
106
107
|
}
|
|
107
108
|
async function U(e) {
|
|
108
|
-
e && (
|
|
109
|
+
e && (o.alwaysLoad ? await c() : !o.immediate && !t(b) && await c());
|
|
109
110
|
}
|
|
110
111
|
const V = g(() => ({
|
|
111
|
-
...
|
|
112
|
+
...o.params,
|
|
112
113
|
...t(k)
|
|
113
114
|
}));
|
|
114
115
|
X(
|
|
115
116
|
V,
|
|
116
117
|
(e, n) => {
|
|
117
|
-
|
|
118
|
+
ce(e, n) || c();
|
|
118
119
|
},
|
|
119
|
-
{ deep: !0, immediate:
|
|
120
|
+
{ deep: !0, immediate: o.immediate }
|
|
120
121
|
);
|
|
121
122
|
function A() {
|
|
122
|
-
if (f.value === void 0 &&
|
|
123
|
+
if (f.value === void 0 && o.autoSelect && t(a).length > 0) {
|
|
123
124
|
let e;
|
|
124
|
-
if (h(
|
|
125
|
-
e =
|
|
125
|
+
if (h(o.autoSelect))
|
|
126
|
+
e = o.autoSelect(t(a));
|
|
126
127
|
else
|
|
127
|
-
switch (
|
|
128
|
+
switch (o.autoSelect) {
|
|
128
129
|
case "first": {
|
|
129
|
-
e = t(
|
|
130
|
+
e = t(a)[0];
|
|
130
131
|
break;
|
|
131
132
|
}
|
|
132
133
|
case "last": {
|
|
133
|
-
e = t(
|
|
134
|
+
e = t(a)[t(a).length - 1];
|
|
134
135
|
break;
|
|
135
136
|
}
|
|
136
137
|
case "one": {
|
|
137
|
-
t(
|
|
138
|
+
t(a).length === 1 && (e = t(a)[0]);
|
|
138
139
|
break;
|
|
139
140
|
}
|
|
140
141
|
}
|
|
141
142
|
e && (f.value = e.value);
|
|
142
143
|
}
|
|
143
|
-
C("optionsChange", t(
|
|
144
|
+
C("optionsChange", t(a));
|
|
144
145
|
}
|
|
145
146
|
function I(e) {
|
|
146
147
|
var n, i;
|
|
147
148
|
C(
|
|
148
149
|
"change",
|
|
149
150
|
e,
|
|
150
|
-
L(t(
|
|
151
|
-
Array.isArray(e) ? (n = t(
|
|
151
|
+
L(t(a)),
|
|
152
|
+
Array.isArray(e) ? (n = t(a)) == null ? void 0 : n.filter((l) => e.some((r) => r === l.value)) : (i = t(a)) == null ? void 0 : i.find((l) => l.value === e)
|
|
152
153
|
);
|
|
153
154
|
}
|
|
154
155
|
const B = u(null), K = g(
|
|
155
|
-
() => Object.keys(q).filter((e) => e !==
|
|
156
|
+
() => Object.keys(q).filter((e) => e !== o.loadingSlot)
|
|
156
157
|
);
|
|
157
158
|
return z({
|
|
158
159
|
/** 获取options数据 */
|
|
159
|
-
getOptions: () => t(
|
|
160
|
+
getOptions: () => t(a),
|
|
160
161
|
/** 获取当前值 */
|
|
161
162
|
getValue: () => t(f),
|
|
162
163
|
/**
|
|
@@ -168,7 +169,7 @@ const De = /* @__PURE__ */ H({
|
|
|
168
169
|
k.value = e;
|
|
169
170
|
},
|
|
170
171
|
/** 手动请求数据 */
|
|
171
|
-
reload:
|
|
172
|
+
reload: c
|
|
172
173
|
}), (e, n) => (E(), Y(Z(e.component), ee({
|
|
173
174
|
ref_key: "componentRef",
|
|
174
175
|
ref: B
|
|
@@ -176,16 +177,16 @@ const De = /* @__PURE__ */ H({
|
|
|
176
177
|
placeholder: e.$attrs.placeholder,
|
|
177
178
|
onChange: I
|
|
178
179
|
}), te({ _: 2 }, [
|
|
179
|
-
|
|
180
|
+
oe(K.value, (i) => ({
|
|
180
181
|
name: i,
|
|
181
182
|
fn: P((l) => [
|
|
182
|
-
|
|
183
|
+
ae(e.$slots, i, le(ne(l || {})), void 0, !0)
|
|
183
184
|
])
|
|
184
185
|
})),
|
|
185
186
|
e.loadingSlot ? {
|
|
186
187
|
name: e.loadingSlot,
|
|
187
188
|
fn: P(() => [
|
|
188
|
-
|
|
189
|
+
p.value ? (E(), ie("div", {
|
|
189
190
|
key: 0,
|
|
190
191
|
class: se(`${t(T)}__dropdown-loading`)
|
|
191
192
|
}, [
|
|
@@ -206,5 +207,5 @@ const De = /* @__PURE__ */ H({
|
|
|
206
207
|
}
|
|
207
208
|
});
|
|
208
209
|
export {
|
|
209
|
-
|
|
210
|
+
Ee as default
|
|
210
211
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as b, useAttrs as g, ref as
|
|
1
|
+
import { defineComponent as b, useAttrs as g, ref as s, computed as k, withDirectives as v, createBlock as h, openBlock as C, unref as t, mergeProps as _, createSlots as x, renderList as D, withCtx as P, renderSlot as R, normalizeProps as S, guardReactiveProps as T } from "vue";
|
|
2
2
|
import "lodash-es";
|
|
3
3
|
import "@vueuse/core";
|
|
4
4
|
import "../tt-icon/index.js";
|
|
@@ -17,7 +17,8 @@ import "../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/aes.js";
|
|
|
17
17
|
import "../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/enc-utf8.js";
|
|
18
18
|
import "../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/mode-ecb.js";
|
|
19
19
|
import "../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/pad-pkcs7.js";
|
|
20
|
-
|
|
20
|
+
import "vue-router";
|
|
21
|
+
const eo = /* @__PURE__ */ b({
|
|
21
22
|
name: "TtButton",
|
|
22
23
|
__name: "index",
|
|
23
24
|
props: {
|
|
@@ -43,11 +44,11 @@ const oo = /* @__PURE__ */ b({
|
|
|
43
44
|
iconFont: {}
|
|
44
45
|
},
|
|
45
46
|
emits: ["click"],
|
|
46
|
-
setup(
|
|
47
|
-
const n =
|
|
47
|
+
setup(l, { expose: c, emit: d }) {
|
|
48
|
+
const n = l, m = d, i = g(), r = s(!1), u = k(() => {
|
|
48
49
|
const o = i["disabled-tip"];
|
|
49
50
|
return z(o) && o.length > 0 ? o.some((e) => !!(e != null && e.condition)) : A(o) ? !!o.condition : !!n.disabled;
|
|
50
|
-
}), a =
|
|
51
|
+
}), a = s(null), { prefixCls: f } = w("button");
|
|
51
52
|
async function y(o) {
|
|
52
53
|
m("click", o, (e) => {
|
|
53
54
|
r.value = e || !1;
|
|
@@ -63,10 +64,10 @@ const oo = /* @__PURE__ */ b({
|
|
|
63
64
|
loading: r.value || n.loading,
|
|
64
65
|
onClick: y
|
|
65
66
|
}), x({ _: 2 }, [
|
|
66
|
-
D(Object.keys(o.$slots), (
|
|
67
|
-
name:
|
|
67
|
+
D(Object.keys(o.$slots), (p) => ({
|
|
68
|
+
name: p,
|
|
68
69
|
fn: P((B) => [
|
|
69
|
-
R(o.$slots,
|
|
70
|
+
R(o.$slots, p, S(T(B || {})), void 0, !0)
|
|
70
71
|
])
|
|
71
72
|
}))
|
|
72
73
|
]), 1040, ["class", "loading"])), [
|
|
@@ -75,5 +76,5 @@ const oo = /* @__PURE__ */ b({
|
|
|
75
76
|
}
|
|
76
77
|
});
|
|
77
78
|
export {
|
|
78
|
-
|
|
79
|
+
eo as default
|
|
79
80
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as Z, useAttrs as ee, ref as $, useId as oe, getCurrentInstance as te, reactive as re, computed as a, unref as t, toValue as s, watch as se, nextTick as ie, onMounted as ne, onUnmounted as le, createBlock as B, createCommentVNode as S, openBlock as w, mergeProps as V, createSlots as D, withCtx as n, withDirectives as ae, createVNode as T, createElementBlock as me, normalizeClass as
|
|
1
|
+
import { defineComponent as Z, useAttrs as ee, ref as $, useId as oe, getCurrentInstance as te, reactive as re, computed as a, unref as t, toValue as s, watch as se, nextTick as ie, onMounted as ne, onUnmounted as le, createBlock as B, createCommentVNode as S, openBlock as w, mergeProps as V, createSlots as D, withCtx as n, withDirectives as ae, createVNode as T, createElementBlock as me, normalizeClass as pe, normalizeStyle as ce, renderSlot as m, renderList as de, normalizeProps as ue, guardReactiveProps as fe } from "vue";
|
|
2
2
|
import "../../../node_modules/.pnpm/vue-types@5.1.3_vue@3.5.21_typescript@5.9.3_/node_modules/vue-types/shim/index.modern.js";
|
|
3
3
|
import { useDesign as he } from "../../../packages/hooks/src/useDesign.js";
|
|
4
4
|
import { usePriorityValues as ge, getPriorityValues as ke } from "../../../packages/hooks/src/usePriorityValue.js";
|
|
@@ -15,6 +15,7 @@ import "../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/enc-u
|
|
|
15
15
|
import "../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/mode-ecb.js";
|
|
16
16
|
import "../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/pad-pkcs7.js";
|
|
17
17
|
import { omit as be, pick as R } from "lodash-es";
|
|
18
|
+
import "vue-router";
|
|
18
19
|
import "../../tt-loading/index.js";
|
|
19
20
|
import { useStore as ve } from "@tanstack/vue-store";
|
|
20
21
|
import Pe from "./components/DrawerFooter.vue.js";
|
|
@@ -25,7 +26,7 @@ import { basicProps as Be } from "./props.js";
|
|
|
25
26
|
import { DrawerApi as Se } from "./utils/drawer-api.js";
|
|
26
27
|
import { pushModal as Ve, removeModal as x } from "../../tt-modal/src/utils/modal-stack.js";
|
|
27
28
|
import { vTtLoading as De } from "../../tt-loading/src/directive.js";
|
|
28
|
-
const
|
|
29
|
+
const ro = /* @__PURE__ */ Z({
|
|
29
30
|
name: "TtDrawer",
|
|
30
31
|
__name: "RenderDrawer",
|
|
31
32
|
props: {
|
|
@@ -40,9 +41,9 @@ const to = /* @__PURE__ */ Z({
|
|
|
40
41
|
emits: ["visible-change", "register", "update:visible"],
|
|
41
42
|
setup(F, { expose: H, emit: z }) {
|
|
42
43
|
var P;
|
|
43
|
-
const
|
|
44
|
-
let r =
|
|
45
|
-
r || (r = new Se(
|
|
44
|
+
const p = F, c = z, d = ee(), u = $(!1), C = oe(), f = $(null), { prefixCls: b } = he("drawer"), o = te();
|
|
45
|
+
let r = p.drawerApi;
|
|
46
|
+
r || (r = new Se(p), r.useStore = (e) => ve(r.store, e));
|
|
46
47
|
const l = re({
|
|
47
48
|
setDrawerProps: r.setState,
|
|
48
49
|
emitVisible: void 0
|
|
@@ -61,8 +62,8 @@ const to = /* @__PURE__ */ Z({
|
|
|
61
62
|
loading: q,
|
|
62
63
|
loadingText: G,
|
|
63
64
|
...J
|
|
64
|
-
} = ge(
|
|
65
|
-
const e = ke(J), i = be(
|
|
65
|
+
} = ge(p, A), K = a(() => {
|
|
66
|
+
const e = ke(J), i = be(d, ["onOk", "onClosed", "onClose", "onVisibleChange", "onReceiveSharedData"]);
|
|
66
67
|
return {
|
|
67
68
|
...R(e, Object.keys(O)),
|
|
68
69
|
...i,
|
|
@@ -92,19 +93,19 @@ const to = /* @__PURE__ */ Z({
|
|
|
92
93
|
(e) => {
|
|
93
94
|
ie(() => {
|
|
94
95
|
var i;
|
|
95
|
-
|
|
96
|
+
c("update:visible", e), c("visible-change", e), o && ((i = l.emitVisible) == null || i.call(l, e, o == null ? void 0 : o.uid)), o != null && o.uid && (e ? Ve({ uid: o.uid, close: () => r.onClosed() }) : x(o.uid)), e ? u.value = e : (setTimeout(() => {
|
|
96
97
|
u.value = e;
|
|
97
98
|
}, 300), r.changeOkLoading(!1));
|
|
98
99
|
});
|
|
99
100
|
}
|
|
100
101
|
);
|
|
101
102
|
const [Y] = $e(C, h, r.setState);
|
|
102
|
-
return o &&
|
|
103
|
-
const e = R(
|
|
103
|
+
return o && c("register", l, o == null ? void 0 : o.uid), ne(() => {
|
|
104
|
+
const e = R(d, ["onOk", "onClosed", "onVisibleChange"]);
|
|
104
105
|
r.mount(f.value, {
|
|
105
106
|
...e,
|
|
106
107
|
// 兼容 BasicDrawer 组件的 onClose 事件
|
|
107
|
-
onClosed: e.onClosed ||
|
|
108
|
+
onClosed: e.onClosed || d.onClose
|
|
108
109
|
});
|
|
109
110
|
}), le(() => {
|
|
110
111
|
o != null && o.uid && x(o.uid);
|
|
@@ -122,8 +123,8 @@ const to = /* @__PURE__ */ Z({
|
|
|
122
123
|
}), D({
|
|
123
124
|
default: n(() => [
|
|
124
125
|
ae((w(), me("div", {
|
|
125
|
-
style:
|
|
126
|
-
class:
|
|
126
|
+
style: ce(X.value),
|
|
127
|
+
class: pe(`${t(b)}-content`)
|
|
127
128
|
}, [
|
|
128
129
|
m(e.$slots, "default")
|
|
129
130
|
], 6)), [
|
|
@@ -136,7 +137,7 @@ const to = /* @__PURE__ */ Z({
|
|
|
136
137
|
onClose: t(r).onClosed,
|
|
137
138
|
onFooterok: t(r).onOk
|
|
138
139
|
}), D({ _: 2 }, [
|
|
139
|
-
|
|
140
|
+
de(Object.keys(e.$slots), (k) => ({
|
|
140
141
|
name: k,
|
|
141
142
|
fn: n((y) => [
|
|
142
143
|
m(e.$slots, k, ue(fe(y)))
|
|
@@ -169,5 +170,5 @@ const to = /* @__PURE__ */ Z({
|
|
|
169
170
|
}
|
|
170
171
|
});
|
|
171
172
|
export {
|
|
172
|
-
|
|
173
|
+
ro as default
|
|
173
174
|
};
|
|
@@ -14,9 +14,10 @@ import "../../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/en
|
|
|
14
14
|
import "../../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/mode-ecb.js";
|
|
15
15
|
import "../../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/pad-pkcs7.js";
|
|
16
16
|
import "lodash-es";
|
|
17
|
+
import "vue-router";
|
|
17
18
|
import { TtButton as k } from "../../../tt-button/index.js";
|
|
18
19
|
import { footerProps as x } from "../props.js";
|
|
19
|
-
const
|
|
20
|
+
const tt = /* @__PURE__ */ v({
|
|
20
21
|
name: "DrawerFooter",
|
|
21
22
|
__name: "DrawerFooter",
|
|
22
23
|
props: x,
|
|
@@ -65,5 +66,5 @@ const _ = /* @__PURE__ */ v({
|
|
|
65
66
|
}
|
|
66
67
|
});
|
|
67
68
|
export {
|
|
68
|
-
|
|
69
|
+
tt as default
|
|
69
70
|
};
|
|
@@ -13,7 +13,8 @@ import "../../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/en
|
|
|
13
13
|
import "../../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/mode-ecb.js";
|
|
14
14
|
import "../../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/pad-pkcs7.js";
|
|
15
15
|
import "lodash-es";
|
|
16
|
-
|
|
16
|
+
import "vue-router";
|
|
17
|
+
const N = /* @__PURE__ */ o({
|
|
17
18
|
name: "DrawerHeader",
|
|
18
19
|
__name: "DrawerHeader",
|
|
19
20
|
props: {
|
|
@@ -30,5 +31,5 @@ const z = /* @__PURE__ */ o({
|
|
|
30
31
|
}
|
|
31
32
|
});
|
|
32
33
|
export {
|
|
33
|
-
|
|
34
|
+
N as default
|
|
34
35
|
};
|
|
@@ -12,6 +12,7 @@ import "../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/enc-u
|
|
|
12
12
|
import "../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/mode-ecb.js";
|
|
13
13
|
import "../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/pad-pkcs7.js";
|
|
14
14
|
import "lodash-es";
|
|
15
|
+
import "vue-router";
|
|
15
16
|
import { GlobalConfig as t } from "../../../hooks/useSetup.js";
|
|
16
17
|
const e = {
|
|
17
18
|
/** 确定抽屉的loading */
|
|
@@ -47,7 +48,7 @@ const e = {
|
|
|
47
48
|
},
|
|
48
49
|
height: o.string.def("56px"),
|
|
49
50
|
size: o.string.def("30%")
|
|
50
|
-
},
|
|
51
|
+
}, C = {
|
|
51
52
|
/** class */
|
|
52
53
|
class: o.string.def(""),
|
|
53
54
|
/** 标题 */
|
|
@@ -80,6 +81,6 @@ const e = {
|
|
|
80
81
|
...e
|
|
81
82
|
};
|
|
82
83
|
export {
|
|
83
|
-
|
|
84
|
+
C as basicProps,
|
|
84
85
|
e as footerProps
|
|
85
86
|
};
|
|
@@ -13,7 +13,7 @@ import "../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/mode-ecb
|
|
|
13
13
|
import "../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/pad-pkcs7.js";
|
|
14
14
|
import "lodash-es";
|
|
15
15
|
import { setupForm as i } from "./src/config.js";
|
|
16
|
-
import { COMPONENT_MAP as
|
|
16
|
+
import { COMPONENT_MAP as $ } from "./src/config.js";
|
|
17
17
|
import { globalShareState as p } from "./src/shared/global-state.js";
|
|
18
18
|
import "@tanstack/vue-store";
|
|
19
19
|
import "es-toolkit/compat";
|
|
@@ -21,6 +21,7 @@ import "vee-validate";
|
|
|
21
21
|
import * as E from "zod";
|
|
22
22
|
import "./src/shared/zod-defaults.js";
|
|
23
23
|
import "../../node_modules/.pnpm/vue-types@5.1.3_vue@3.5.21_typescript@5.9.3_/node_modules/vue-types/shim/index.modern.js";
|
|
24
|
+
import "vue-router";
|
|
24
25
|
import "@vueuse/core";
|
|
25
26
|
import "../tt-button/index.js";
|
|
26
27
|
import "../tt-icon/index.js";
|
|
@@ -38,7 +39,7 @@ import "./src/form-render/FormFieldContact.js";
|
|
|
38
39
|
import "../tt-nav-anchor/index.js";
|
|
39
40
|
/* empty css */
|
|
40
41
|
/* empty css */
|
|
41
|
-
function
|
|
42
|
+
function W(t, m) {
|
|
42
43
|
i({
|
|
43
44
|
config: {
|
|
44
45
|
// vue组件库默认都是 modelValue
|
|
@@ -56,12 +57,12 @@ function U(t, m) {
|
|
|
56
57
|
}
|
|
57
58
|
});
|
|
58
59
|
}
|
|
59
|
-
function
|
|
60
|
+
function X(t) {
|
|
60
61
|
p.setComponents({ ...t });
|
|
61
62
|
}
|
|
62
63
|
export {
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
64
|
+
$ as COMPONENT_MAP,
|
|
65
|
+
X as addComponent,
|
|
66
|
+
W as setConfig,
|
|
66
67
|
E as z
|
|
67
68
|
};
|
|
@@ -12,10 +12,11 @@ import "lodash-es";
|
|
|
12
12
|
import { TtButton as P } from "../../../tt-button/index.js";
|
|
13
13
|
import "../../../../node_modules/.pnpm/vue-types@5.1.3_vue@3.5.21_typescript@5.9.3_/node_modules/vue-types/shim/index.modern.js";
|
|
14
14
|
import { useDesign as J } from "../../../../packages/hooks/src/useDesign.js";
|
|
15
|
+
import "vue-router";
|
|
15
16
|
import K from "./ExpandableArrow.vue2.js";
|
|
16
17
|
/* empty css */
|
|
17
18
|
import { injectFormProps as Q } from "../useFormContext.js";
|
|
18
|
-
const
|
|
19
|
+
const ve = /* @__PURE__ */ O({
|
|
19
20
|
__name: "FormActions",
|
|
20
21
|
props: {
|
|
21
22
|
modelValue: { default: !1, type: Boolean },
|
|
@@ -183,5 +184,5 @@ const de = /* @__PURE__ */ O({
|
|
|
183
184
|
}
|
|
184
185
|
});
|
|
185
186
|
export {
|
|
186
|
-
|
|
187
|
+
ve as default
|
|
187
188
|
};
|
|
@@ -24,7 +24,8 @@ import { FieldRenderer as ce } from "./FormFieldContact.js";
|
|
|
24
24
|
import { getBaseRules as Ce, getDefaultValueInZodStack as ge } from "./helper.js";
|
|
25
25
|
import "../../../../node_modules/.pnpm/vue-types@5.1.3_vue@3.5.21_typescript@5.9.3_/node_modules/vue-types/shim/index.modern.js";
|
|
26
26
|
import { useDesign as ye } from "../../../../packages/hooks/src/useDesign.js";
|
|
27
|
-
|
|
27
|
+
import "vue-router";
|
|
28
|
+
const Ue = /* @__PURE__ */ ee({
|
|
28
29
|
name: "FormRender",
|
|
29
30
|
__name: "form",
|
|
30
31
|
props: {
|
|
@@ -202,5 +203,5 @@ const je = /* @__PURE__ */ ee({
|
|
|
202
203
|
}
|
|
203
204
|
});
|
|
204
205
|
export {
|
|
205
|
-
|
|
206
|
+
Ue as default
|
|
206
207
|
};
|
|
@@ -15,6 +15,7 @@ import "../../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/en
|
|
|
15
15
|
import "../../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/mode-ecb.js";
|
|
16
16
|
import "../../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/pad-pkcs7.js";
|
|
17
17
|
import "lodash-es";
|
|
18
|
+
import "vue-router";
|
|
18
19
|
import { DEFAULT_FORM_COMMON_CONFIG as Se, COMPONENT_BIND_EVENT_MAP as Ee, COMPONENT_MAP as _e } from "../config.js";
|
|
19
20
|
import { provideFormRenderProps as Fe } from "../form-render/context.js";
|
|
20
21
|
import { useForwardPriorityValues as Re } from "../hooks/useForwardPriorityValues.js";
|
|
@@ -24,7 +25,7 @@ import be from "./GroupSection.vue2.js";
|
|
|
24
25
|
import { RENDER_SCHEDULER_KEY as Ne, createRenderScheduler as Oe, GROUP_VISIBILITY_CALLBACK_KEY as He, HIDDEN_GROUP_KEYS_KEY as Pe } from "./lazyContext.js";
|
|
25
26
|
import { getSchemaKey as Ge, isGroupSchema as Ie } from "./utils.js";
|
|
26
27
|
import { getFormRootWrapperClass as ke } from "../form-render/rootWrapperClass.js";
|
|
27
|
-
const Le = 5, Ve = 500,
|
|
28
|
+
const Le = 5, Ve = 500, vo = /* @__PURE__ */ ae({
|
|
28
29
|
name: "TtVirtualGroupForm",
|
|
29
30
|
inheritAttrs: !1,
|
|
30
31
|
__name: "GroupForm",
|
|
@@ -249,5 +250,5 @@ const Le = 5, Ve = 500, po = /* @__PURE__ */ ae({
|
|
|
249
250
|
}
|
|
250
251
|
});
|
|
251
252
|
export {
|
|
252
|
-
|
|
253
|
+
vo as default
|
|
253
254
|
};
|