@ithinkdt/ui 4.0.0-404 → 4.0.0-406
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-SsroO6X6.js → components--Rlef087.js} +3 -3
- package/dist/components.js +4 -4
- package/dist/{directives-qqYcWl1I.js → directives-Bpfh9AKg.js} +1 -1
- package/dist/directives.js +2 -2
- package/dist/index.js +3 -3
- package/dist/page.js +310 -285
- package/dist/use-style.js +1 -1
- package/esm/page.d.ts +6 -1
- package/package.json +6 -6
- /package/dist/{use-i18n-Dx7V4KrY.js → use-i18n-D-AJ8KbA.js} +0 -0
- /package/dist/{use-style-DcT-1dj4.js → use-style-mj2B1q0l.js} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { n as useI18n } from "./use-i18n-
|
|
2
|
-
import { i as vTooltip } from "./directives-
|
|
3
|
-
import { g as useStyle, h as useMergedClsPrefix, n as cB, r as cE, t as c } from "./use-style-
|
|
1
|
+
import { n as useI18n } from "./use-i18n-D-AJ8KbA.js";
|
|
2
|
+
import { i as vTooltip } from "./directives-Bpfh9AKg.js";
|
|
3
|
+
import { g as useStyle, h as useMergedClsPrefix, n as cB, r as cE, t as c } from "./use-style-mj2B1q0l.js";
|
|
4
4
|
import { Fragment, computed, createTextVNode, createVNode, defineComponent, inject, isVNode, mergeProps, nextTick, reactive, ref, shallowRef, toRaw, toRef, toValue, unref, useTemplateRef, watch, withDirectives } from "vue";
|
|
5
5
|
import { toReactive, unrefElement, until, useCurrentElement, useElementSize, watchDebounced } from "@vueuse/core";
|
|
6
6
|
import { NAvatar, NAvatarGroup, NButton, NCard, NCheckbox, NCheckboxGroup, NDataTable, NDropdown, NEllipsis, NEmpty, NFlex, NForm, NFormItem, NGi, NGrid, NH4, NIcon, NInput, NList, NListItem, NPagination, NPerformantEllipsis, NPopover, NRadio, NRadioButton, NRadioGroup, NSelect, NSpin, NTag, NText, NTooltip, NTransfer, NTree, NTreeSelect, dataTableProps, formProps, useDialog } from "ithinkdt-ui";
|
package/dist/components.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "./use-i18n-
|
|
2
|
-
import "./directives-
|
|
3
|
-
import "./use-style-
|
|
4
|
-
import { _ as dataFormActionsProps, a as DtUserRender, b as NCheckboxes, c as DataTable, d as DataPagination, f as DataLocaleInput, g as DataFormActions, h as DataForm, i as DtUserDept, l as useDataTableDrag, m as DataFilter, n as StateButtonProps, o as renderUsers, p as useLocaleEdit, r as DtDeptRender, s as NRadios, t as NStateButton, u as DataSelection, v as DataCustom, y as DataActions } from "./components
|
|
1
|
+
import "./use-i18n-D-AJ8KbA.js";
|
|
2
|
+
import "./directives-Bpfh9AKg.js";
|
|
3
|
+
import "./use-style-mj2B1q0l.js";
|
|
4
|
+
import { _ as dataFormActionsProps, a as DtUserRender, b as NCheckboxes, c as DataTable, d as DataPagination, f as DataLocaleInput, g as DataFormActions, h as DataForm, i as DtUserDept, l as useDataTableDrag, m as DataFilter, n as StateButtonProps, o as renderUsers, p as useLocaleEdit, r as DtDeptRender, s as NRadios, t as NStateButton, u as DataSelection, v as DataCustom, y as DataActions } from "./components--Rlef087.js";
|
|
5
5
|
export { DataActions, DataCustom, DataFilter, DataForm, DataFormActions, DataLocaleInput, DataPagination, DataSelection, DataTable, DtDeptRender, DtUserDept, DtUserRender, NCheckboxes, NRadios, NStateButton, StateButtonProps, dataFormActionsProps, renderUsers, useDataTableDrag, useLocaleEdit };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { g as useStyle, i as cM, n as cB, r as cE, t as c } from "./use-style-
|
|
1
|
+
import { g as useStyle, i as cM, n as cB, r as cE, t as c } from "./use-style-mj2B1q0l.js";
|
|
2
2
|
import { Fragment, createVNode, defineComponent, h, nextTick, reactive, ref, shallowRef, toRef, watch } from "vue";
|
|
3
3
|
import { promiseTimeout, useEventListener } from "@vueuse/core";
|
|
4
4
|
import { NTooltip } from "ithinkdt-ui";
|
package/dist/directives.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { i as vTooltip, n as vSpin, r as TooltipDirectiveProvider, t as SpinDirectiveProvider } from "./directives-
|
|
2
|
-
import "./use-style-
|
|
1
|
+
import { i as vTooltip, n as vSpin, r as TooltipDirectiveProvider, t as SpinDirectiveProvider } from "./directives-Bpfh9AKg.js";
|
|
2
|
+
import "./use-style-mj2B1q0l.js";
|
|
3
3
|
export { SpinDirectiveProvider, TooltipDirectiveProvider, vSpin, vTooltip };
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { n as useI18n, t as UI_I18N_INJECTION } from "./use-i18n-
|
|
2
|
-
import { i as vTooltip, n as vSpin, r as TooltipDirectiveProvider, t as SpinDirectiveProvider } from "./directives-
|
|
3
|
-
import { g as useStyle, i as cM, n as cB, r as cE, t as c } from "./use-style-
|
|
1
|
+
import { n as useI18n, t as UI_I18N_INJECTION } from "./use-i18n-D-AJ8KbA.js";
|
|
2
|
+
import { i as vTooltip, n as vSpin, r as TooltipDirectiveProvider, t as SpinDirectiveProvider } from "./directives-Bpfh9AKg.js";
|
|
3
|
+
import { g as useStyle, i as cM, n as cB, r as cE, t as c } from "./use-style-mj2B1q0l.js";
|
|
4
4
|
import { Fragment, computed, createVNode, defineComponent, inject, isVNode, mergeProps, provide, reactive, ref, renderSlot, shallowRef, toRef, toValue, unref, useTemplateRef, watch, withDirectives } from "vue";
|
|
5
5
|
import { computedAsync, promiseTimeout, useElementHover, useElementSize, useEventListener, useFullscreen, watchDebounced } from "@vueuse/core";
|
|
6
6
|
import { NAvatar, NBadge, NBreadcrumb, NBreadcrumbItem, NButton, NDrawer, NDrawerContent, NDropdown, NEmpty, NIcon, NList, NListItem, NMenu, NPagination, NPopover, NScrollbar, NText, NThing, useThemeVars } from "ithinkdt-ui";
|
package/dist/page.js
CHANGED
|
@@ -1,17 +1,18 @@
|
|
|
1
|
-
import { n as useI18n } from "./use-i18n-
|
|
2
|
-
import "./directives-
|
|
3
|
-
import "./use-style-
|
|
4
|
-
import { a as DtUserRender, b as NCheckboxes, h as DataForm, i as DtUserDept, r as DtDeptRender, s as NRadios } from "./components
|
|
1
|
+
import { n as useI18n } from "./use-i18n-D-AJ8KbA.js";
|
|
2
|
+
import "./directives-Bpfh9AKg.js";
|
|
3
|
+
import "./use-style-mj2B1q0l.js";
|
|
4
|
+
import { a as DtUserRender, b as NCheckboxes, h as DataForm, i as DtUserDept, r as DtDeptRender, s as NRadios } from "./components--Rlef087.js";
|
|
5
5
|
import { computed, createVNode, defineComponent, h, isVNode, mergeProps, ref, shallowRef, unref } from "vue";
|
|
6
6
|
import { until } from "@vueuse/core";
|
|
7
7
|
import { NButton, NCheckbox, NColorPicker, NDatePicker, NDrawer, NDrawerContent, NFlex, NInput, NInputNumber, NModal, NScrollbar, NSelect, NText, NUpload, useMessage } from "ithinkdt-ui";
|
|
8
8
|
import { format } from "date-fns";
|
|
9
9
|
import { useFormItem } from "ithinkdt-ui/es/_mixins";
|
|
10
|
+
import { isNullish } from "@ithinkdt/common";
|
|
10
11
|
import { useDict, useDictMap } from "@ithinkdt/common/dict";
|
|
11
|
-
function _isSlot(
|
|
12
|
-
return typeof
|
|
12
|
+
function _isSlot(e) {
|
|
13
|
+
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !isVNode(e);
|
|
13
14
|
}
|
|
14
|
-
var mapProps = (
|
|
15
|
+
var mapProps = (e) => Object.fromEntries(Object.entries(e || {}).map(([e, a]) => [e, unref(a)])), SimpleUpload = /* @__PURE__ */ defineComponent({
|
|
15
16
|
name: "SimpleUpload",
|
|
16
17
|
props: {
|
|
17
18
|
type: {
|
|
@@ -49,405 +50,429 @@ var mapProps = (n) => Object.fromEntries(Object.entries(n || {}).map(([n, c]) =>
|
|
|
49
50
|
onUpdateFileList: { type: [Array, Function] },
|
|
50
51
|
uploadFile: { type: Function }
|
|
51
52
|
},
|
|
52
|
-
setup(
|
|
53
|
-
let { t:
|
|
54
|
-
SimpleUpload.t =
|
|
55
|
-
let
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
}).catch((
|
|
59
|
-
|
|
53
|
+
setup(a, { slots: o, expose: s }) {
|
|
54
|
+
let { t: c } = useI18n();
|
|
55
|
+
SimpleUpload.t = c;
|
|
56
|
+
let l = useFormItem(a), u = useMessage(), f = computed(() => a.customRequest || (({ file: e, onProgress: o, onFinish: s, onError: c }) => {
|
|
57
|
+
a.uploadFile(e.file, (e) => o({ percent: e })).then((a) => {
|
|
58
|
+
e.file.fileId = a, s();
|
|
59
|
+
}).catch((e) => {
|
|
60
|
+
u.error(e.message), c(e);
|
|
60
61
|
});
|
|
61
|
-
})),
|
|
62
|
-
|
|
63
|
-
return until(
|
|
62
|
+
})), p = ref();
|
|
63
|
+
s({ submit() {
|
|
64
|
+
return until(p).toBeTruthy().then((e) => e.submit());
|
|
64
65
|
} });
|
|
65
|
-
let
|
|
66
|
-
|
|
66
|
+
let m = (e) => {
|
|
67
|
+
a.onUpdateFileList?.(e), nextTick(() => l.nTriggerFormChange());
|
|
67
68
|
};
|
|
68
69
|
return () => {
|
|
69
|
-
let { type:
|
|
70
|
-
return createVNode(NUpload, mergeProps(
|
|
71
|
-
ref:
|
|
72
|
-
customRequest:
|
|
73
|
-
listType:
|
|
74
|
-
accept:
|
|
75
|
-
"onUpdate:fileList":
|
|
70
|
+
let { type: e, onUpdateFileList: s, ...u } = a;
|
|
71
|
+
return createVNode(NUpload, mergeProps(u, {
|
|
72
|
+
ref: p,
|
|
73
|
+
customRequest: f.value,
|
|
74
|
+
listType: e === "image" ? "image-card" : "text",
|
|
75
|
+
accept: u.accept ?? e === "image" ? "image/*" : void 0,
|
|
76
|
+
"onUpdate:fileList": m
|
|
76
77
|
}), {
|
|
77
|
-
default:
|
|
78
|
-
let
|
|
78
|
+
default: e === "image" ? void 0 : () => {
|
|
79
|
+
let e;
|
|
79
80
|
return createVNode(NButton, {
|
|
80
|
-
disabled:
|
|
81
|
-
size:
|
|
82
|
-
}, _isSlot(
|
|
81
|
+
disabled: l.mergedDisabledRef.value,
|
|
82
|
+
size: l.mergedSizeRef.value
|
|
83
|
+
}, _isSlot(e = c("common.page.form.selectFileText")) ? e : { default: () => [e] });
|
|
83
84
|
},
|
|
84
|
-
...
|
|
85
|
+
...o
|
|
85
86
|
});
|
|
86
87
|
};
|
|
87
88
|
}
|
|
88
89
|
});
|
|
89
|
-
function createPageFormHelper({ getUserGroups:
|
|
90
|
+
function createPageFormHelper({ getUserGroups: e, getUsersByGroup: s, getDeptsByCode: l, getUsersByDept: d, getUsersByUsername: f, uploadFile: m, getFileInfos: g }) {
|
|
91
|
+
let _ = (e) => e, x = (e) => isNullish(e) ? e : String(e), C = (e) => isNullish(e) ? e : Number(e);
|
|
90
92
|
return {
|
|
91
|
-
input: () => ({ slots:
|
|
93
|
+
input: () => ({ slots: e, props: a }, { modelValue: o, "onUpdate:modelValue": s, required: c, readonly: l, ...u }) => l ? createVNode(NText, {
|
|
92
94
|
depth: 2,
|
|
93
95
|
style: "line-height: 1.25"
|
|
94
|
-
}, { default: () => [
|
|
96
|
+
}, { default: () => [o ?? ""] }) : (a = mapProps(a), h(NInput, {
|
|
95
97
|
clearable: !0,
|
|
96
|
-
...
|
|
97
|
-
...
|
|
98
|
-
value:
|
|
99
|
-
"onUpdate:value":
|
|
100
|
-
},
|
|
101
|
-
number: () =>
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
98
|
+
...a,
|
|
99
|
+
...u,
|
|
100
|
+
value: o,
|
|
101
|
+
"onUpdate:value": s
|
|
102
|
+
}, e)),
|
|
103
|
+
number: () => {
|
|
104
|
+
let e, a;
|
|
105
|
+
return ({ slots: o, props: s }, { modelValue: c, "onUpdate:modelValue": l, required: u, readonly: d, ...f }) => {
|
|
106
|
+
if (d) return createVNode(NText, {
|
|
107
|
+
depth: 2,
|
|
108
|
+
style: "line-height: 1.25"
|
|
109
|
+
}, { default: () => [c ?? ""] });
|
|
110
|
+
let { valueType: m = "number", ...g } = mapProps(s), _ = m === "string" ? C(c) : c;
|
|
111
|
+
return e = l, m === "string" && !a && (a = (a, ...o) => {
|
|
112
|
+
e(x(a), ...o);
|
|
113
|
+
}), h(NInputNumber, {
|
|
114
|
+
clearable: !0,
|
|
115
|
+
...g,
|
|
116
|
+
...f,
|
|
117
|
+
value: _,
|
|
118
|
+
"onUpdate:value": m === "string" ? a : e
|
|
119
|
+
}, o);
|
|
120
|
+
};
|
|
121
|
+
},
|
|
111
122
|
select: () => {
|
|
112
|
-
let
|
|
113
|
-
return ({ slots: l, props: u }, { modelValue: d, "onUpdate:modelValue": f, required:
|
|
114
|
-
let { dictType:
|
|
115
|
-
|
|
116
|
-
|
|
123
|
+
let e, a, o, s, c;
|
|
124
|
+
return ({ slots: l, props: u }, { modelValue: d, "onUpdate:modelValue": f, required: m, readonly: g, ...v }) => {
|
|
125
|
+
let { dictType: b, options: S, valueType: w = "string", ...T } = mapProps(u), E = w === "number" ? x : _;
|
|
126
|
+
S ? a = S : e !== b && (e = b, !a && e && (a = useDict(e)));
|
|
127
|
+
let D = T.multiple ? d?.map(E) : E(d);
|
|
128
|
+
if (g) if (T.multiple) {
|
|
129
|
+
let e;
|
|
117
130
|
return createVNode(NText, {
|
|
118
131
|
depth: 2,
|
|
119
132
|
style: "line-height: 1.25"
|
|
120
|
-
}, _isSlot(
|
|
121
|
-
let
|
|
122
|
-
return createVNode("span", { key:
|
|
123
|
-
})) ?
|
|
133
|
+
}, _isSlot(e = (D?.map((e) => a?.find((a) => a[T.valueField || "value"] === e)) ?? []).map((e, a, o) => {
|
|
134
|
+
let s = e ? T.renderLabel ? T.renderLabel(e) ?? "" : e[T.labelField || "label"] ?? "" : D[a] ?? "";
|
|
135
|
+
return createVNode("span", { key: e ? e[T.valueField || "value"] : D[a] ?? "" }, [s, a < o.length - 1 ? ", " : ""]);
|
|
136
|
+
})) ? e : { default: () => [e] });
|
|
124
137
|
} else {
|
|
125
|
-
let
|
|
138
|
+
let e = a?.find((e) => e[T.valueField || "value"] === D);
|
|
126
139
|
return createVNode(NText, {
|
|
127
140
|
depth: 2,
|
|
128
141
|
style: "line-height: 1.25"
|
|
129
|
-
}, { default: () => [
|
|
142
|
+
}, { default: () => [e ? T.renderLabel ? T.renderLabel(e) ?? "" : e[T.labelField || "label"] ?? "" : D ?? ""] });
|
|
130
143
|
}
|
|
131
|
-
return
|
|
144
|
+
return s = T.multiple, o = f, w === "number" && !c && (c = (e, ...a) => {
|
|
145
|
+
o(s ? e?.map(C) : C(e), ...a);
|
|
146
|
+
}), h(NSelect, {
|
|
132
147
|
clearable: !0,
|
|
133
|
-
loading:
|
|
134
|
-
...
|
|
135
|
-
options: unref(
|
|
136
|
-
...
|
|
137
|
-
value:
|
|
138
|
-
"onUpdate:value":
|
|
148
|
+
loading: a?.loading,
|
|
149
|
+
...T,
|
|
150
|
+
options: unref(a),
|
|
151
|
+
...v,
|
|
152
|
+
value: D,
|
|
153
|
+
"onUpdate:value": w === "number" ? c : o
|
|
139
154
|
}, l);
|
|
140
155
|
};
|
|
141
156
|
},
|
|
142
|
-
checkbox: () => ({ slots:
|
|
143
|
-
if (
|
|
144
|
-
let
|
|
145
|
-
return
|
|
157
|
+
checkbox: () => ({ slots: e, props: a }, { modelValue: o, "onUpdate:modelValue": s, required: c, readonly: l, ...u }) => {
|
|
158
|
+
if (a = mapProps(a), l) {
|
|
159
|
+
let s;
|
|
160
|
+
return s = o === (a.checkedValue ?? !0) ? e?.checked ? e.checked() : createVNode(NCheckbox, { checked: !0 }, null) : e?.unchecked ? e.unchecked() : createVNode(NCheckbox, { disabled: !0 }, null), createVNode(NText, {
|
|
146
161
|
depth: 2,
|
|
147
162
|
style: "line-height: 1.25"
|
|
148
|
-
}, _isSlot(
|
|
163
|
+
}, _isSlot(s) ? s : { default: () => [s] });
|
|
149
164
|
}
|
|
150
165
|
return h(NCheckbox, {
|
|
151
|
-
...
|
|
152
|
-
...
|
|
153
|
-
checked:
|
|
154
|
-
"onUpdate:checked":
|
|
155
|
-
},
|
|
166
|
+
...a,
|
|
167
|
+
...u,
|
|
168
|
+
checked: o,
|
|
169
|
+
"onUpdate:checked": s
|
|
170
|
+
}, e);
|
|
156
171
|
},
|
|
157
172
|
checkboxes: () => {
|
|
158
|
-
let
|
|
159
|
-
return ({ props:
|
|
160
|
-
let { dictType:
|
|
161
|
-
|
|
162
|
-
|
|
173
|
+
let e, a, s, c;
|
|
174
|
+
return ({ props: l }, { modelValue: u, "onUpdate:modelValue": d, required: f, readonly: m, ...g }) => {
|
|
175
|
+
let { dictType: v, options: y, valueType: b = "string", ...S } = mapProps(l), w = b === "number" ? x : _;
|
|
176
|
+
y ? a = y : e !== v && (e = v, !a && e && (a = useDict(e)));
|
|
177
|
+
let T = u?.map(w) ?? [];
|
|
178
|
+
if (m) {
|
|
179
|
+
let e;
|
|
163
180
|
return createVNode(NText, {
|
|
164
181
|
depth: 2,
|
|
165
182
|
style: "line-height: 2.4"
|
|
166
|
-
}, _isSlot(
|
|
167
|
-
let
|
|
168
|
-
return createVNode("span", { key:
|
|
169
|
-
})) ?
|
|
183
|
+
}, _isSlot(e = (T?.map((e) => a?.find((a) => a[S.valueField || "value"] === e)) ?? []).map((e, a, o) => {
|
|
184
|
+
let s = e ? e[S.labelField ?? "label"] ?? "" : T[a] ?? "";
|
|
185
|
+
return createVNode("span", { key: e ? e[S.valueField ?? "value"] : T[a] ?? "" }, [s, a < o.length - 1 ? ", " : ""]);
|
|
186
|
+
})) ? e : { default: () => [e] });
|
|
170
187
|
}
|
|
171
|
-
return
|
|
172
|
-
...
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
188
|
+
return s = d, b === "number" && !c && (c = (e, ...a) => {
|
|
189
|
+
s(multiple0 ? e?.map(C) : C(e), ...a);
|
|
190
|
+
}), h(NCheckboxes, {
|
|
191
|
+
...S,
|
|
192
|
+
...g,
|
|
193
|
+
options: a,
|
|
194
|
+
modelValue: T,
|
|
195
|
+
"onUpdate:modelValue": b === "number" ? c : s
|
|
176
196
|
});
|
|
177
197
|
};
|
|
178
198
|
},
|
|
179
199
|
radios: () => {
|
|
180
|
-
let
|
|
181
|
-
return ({ props:
|
|
182
|
-
let { dictType:
|
|
183
|
-
|
|
184
|
-
|
|
200
|
+
let e, a, o, s;
|
|
201
|
+
return ({ props: c }, { modelValue: l, "onUpdate:modelValue": d, required: f, readonly: m, ...g }) => {
|
|
202
|
+
let { dictType: v, options: y, valueType: b = "string", ...S } = mapProps(c), w = b === "number" ? x : _;
|
|
203
|
+
y ? a = y : e !== v && (e = v, !a && e && (a = useDict(e)));
|
|
204
|
+
let T = w(l);
|
|
205
|
+
if (m) {
|
|
206
|
+
let e = a?.find((e) => e[S.valueField ?? "value"] === T);
|
|
185
207
|
return createVNode(NText, {
|
|
186
208
|
depth: 2,
|
|
187
209
|
style: "line-height: 1.25"
|
|
188
|
-
}, { default: () => [
|
|
210
|
+
}, { default: () => [e ? e[S.labelField ?? "label"] ?? "" : T ?? ""] });
|
|
189
211
|
}
|
|
190
|
-
return
|
|
191
|
-
...
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
212
|
+
return o = d, b === "number" && !s && (s = (e, ...a) => {
|
|
213
|
+
o(C(e), ...a);
|
|
214
|
+
}), h(NRadios, {
|
|
215
|
+
...S,
|
|
216
|
+
...g,
|
|
217
|
+
options: a,
|
|
218
|
+
modelValue: T,
|
|
219
|
+
"onUpdate:modelValue": b === "number" ? s : o
|
|
195
220
|
});
|
|
196
221
|
};
|
|
197
222
|
},
|
|
198
|
-
datepicker: () => ({ slots:
|
|
199
|
-
let { type:
|
|
200
|
-
return
|
|
223
|
+
datepicker: () => ({ slots: e, props: a }, { modelValue: o, "onUpdate:modelValue": s, required: c, readonly: l, ...u }) => {
|
|
224
|
+
let { type: d = "date", format: f = d.startsWith("datetime") ? "yyyy-MM-dd HH:mm:ss" : "yyyy-MM-dd", ...m } = mapProps(a);
|
|
225
|
+
return l ? d.endsWith("range") ? createVNode(NText, {
|
|
201
226
|
depth: 2,
|
|
202
227
|
style: "line-height: 1.25"
|
|
203
|
-
}, { default: () => [
|
|
228
|
+
}, { default: () => [o ? `${o[0] ? format(o[0], f) : ""} ~ ${o[1] ? format(o[1], f) : ""}` : ""] }) : createVNode(NText, {
|
|
204
229
|
depth: 2,
|
|
205
230
|
style: "line-height: 1.25"
|
|
206
|
-
}, { default: () => [
|
|
231
|
+
}, { default: () => [o ? format(o, f) : ""] }) : h(NDatePicker, {
|
|
207
232
|
actions: null,
|
|
208
233
|
updateValueOnClose: !0,
|
|
209
234
|
clearable: !0,
|
|
210
|
-
...
|
|
211
|
-
...
|
|
212
|
-
type:
|
|
213
|
-
format:
|
|
214
|
-
value:
|
|
215
|
-
"onUpdate:value":
|
|
216
|
-
},
|
|
235
|
+
...m,
|
|
236
|
+
...u,
|
|
237
|
+
type: d,
|
|
238
|
+
format: f,
|
|
239
|
+
value: o,
|
|
240
|
+
"onUpdate:value": s
|
|
241
|
+
}, e);
|
|
217
242
|
},
|
|
218
|
-
file: () => ({ slots:
|
|
219
|
-
if (
|
|
220
|
-
let
|
|
243
|
+
file: () => ({ slots: e, props: a }, { modelValue: o, "onUpdate:modelValue": s, required: c, readonly: l, ...u }) => {
|
|
244
|
+
if (a = mapProps(a), l) {
|
|
245
|
+
let e;
|
|
221
246
|
return console.warn("[file] 原则上此组建不应该显示在详情中"), fileList.value.length === 0 ? void 0 : createVNode(NFlex, {
|
|
222
247
|
gap: "8",
|
|
223
248
|
vertical: !0
|
|
224
|
-
}, _isSlot(
|
|
225
|
-
key:
|
|
226
|
-
href:
|
|
249
|
+
}, _isSlot(e = o.map((e) => createVNode("a", {
|
|
250
|
+
key: e.id,
|
|
251
|
+
href: e.url,
|
|
227
252
|
target: "_blank",
|
|
228
253
|
rel: "noreferrer",
|
|
229
254
|
style: "max-width: 100px; text-overflow: ellipsis; overflow: hidden; white-space: nowrap; display: inline-block"
|
|
230
|
-
}, [
|
|
255
|
+
}, [e.name]))) ? e : { default: () => [e] });
|
|
231
256
|
}
|
|
232
257
|
return h(SimpleUpload, {
|
|
233
|
-
...
|
|
234
|
-
...
|
|
258
|
+
...a,
|
|
259
|
+
...u,
|
|
235
260
|
defaultUpload: !1,
|
|
236
|
-
uploadFile:
|
|
237
|
-
fileList:
|
|
238
|
-
onUpdateFileList:
|
|
239
|
-
},
|
|
261
|
+
uploadFile: m,
|
|
262
|
+
fileList: o,
|
|
263
|
+
onUpdateFileList: s
|
|
264
|
+
}, e);
|
|
240
265
|
},
|
|
241
266
|
upload: () => {
|
|
242
|
-
let
|
|
243
|
-
let
|
|
244
|
-
|
|
245
|
-
let
|
|
246
|
-
Promise.resolve(
|
|
247
|
-
if (
|
|
248
|
-
|
|
249
|
-
for (let
|
|
267
|
+
let e = null, a = /* @__PURE__ */ new Map(), o = /* @__PURE__ */ new Map(), s = shallowRef([]), c = 0, l = (e) => {
|
|
268
|
+
let a = ++c;
|
|
269
|
+
s.value = e.map((e) => o.get(e)).filter(Boolean);
|
|
270
|
+
let l = e.filter((e) => !o.has(e));
|
|
271
|
+
Promise.resolve(l.length > 0 ? g(l) : []).then((l) => {
|
|
272
|
+
if (a === c) {
|
|
273
|
+
s.value = e.map((e) => o.get(e) || l.find((a) => a.id === e)), o.clear();
|
|
274
|
+
for (let e of s.value) o.set(e.id, e);
|
|
250
275
|
}
|
|
251
276
|
});
|
|
252
|
-
},
|
|
277
|
+
}, u;
|
|
253
278
|
return {
|
|
254
|
-
renderer: ({ slots:
|
|
255
|
-
let
|
|
256
|
-
if (
|
|
257
|
-
let
|
|
258
|
-
return
|
|
279
|
+
renderer: ({ slots: c, props: d }, { modelValue: f, "onUpdate:modelValue": g, required: _, readonly: y, ...b }) => {
|
|
280
|
+
let x = mapProps(d);
|
|
281
|
+
if (u = x.ref ??= shallowRef(), e !== f && (e = f, l(f?.split(",") ?? [])), y) {
|
|
282
|
+
let e;
|
|
283
|
+
return s.value.length === 0 ? void 0 : createVNode(NFlex, {
|
|
259
284
|
gap: "8",
|
|
260
285
|
vertical: !0,
|
|
261
286
|
style: "padding: 6px 0"
|
|
262
|
-
}, _isSlot(
|
|
263
|
-
key:
|
|
264
|
-
href:
|
|
287
|
+
}, _isSlot(e = s.value.map((e) => createVNode("a", {
|
|
288
|
+
key: e.id,
|
|
289
|
+
href: e.url,
|
|
265
290
|
target: "_blank",
|
|
266
291
|
rel: "noreferrer",
|
|
267
|
-
title:
|
|
268
|
-
download:
|
|
292
|
+
title: e.name,
|
|
293
|
+
download: e.name,
|
|
269
294
|
style: "max-width: 100%; text-overflow: ellipsis; overflow: hidden; white-space: nowrap; display: inline-block"
|
|
270
|
-
}, [
|
|
295
|
+
}, [e.name]))) ? e : { default: () => [e] });
|
|
271
296
|
}
|
|
272
297
|
return h(SimpleUpload, {
|
|
273
|
-
...
|
|
274
|
-
...
|
|
275
|
-
uploadFile:
|
|
276
|
-
fileList:
|
|
277
|
-
onUpdateFileList: (
|
|
278
|
-
|
|
279
|
-
for (let
|
|
280
|
-
|
|
298
|
+
...x,
|
|
299
|
+
...b,
|
|
300
|
+
uploadFile: m,
|
|
301
|
+
fileList: s.value,
|
|
302
|
+
onUpdateFileList: (e = []) => {
|
|
303
|
+
o.clear();
|
|
304
|
+
for (let s of e) s.file?.fileId && a.set(s.id, s.file.fileId), s.file?.fileId ? o.set(s.file.fileId, s) : o.set(s.id, s);
|
|
305
|
+
s.value = e, g(s.value.map((e) => a.get(e.id) || e.id).join(",") || null);
|
|
281
306
|
}
|
|
282
|
-
},
|
|
307
|
+
}, c);
|
|
283
308
|
},
|
|
284
309
|
beforeSubmit: async () => {
|
|
285
|
-
if (await
|
|
310
|
+
if (await u?.value?.submit(), await until(s).toMatch((e) => e.every((e) => !["pending", "uploading"].includes(e.status))), s.value.some((e) => e.status === "error")) return SimpleUpload.t("common.page.form.validate.fileErrorMessage");
|
|
286
311
|
}
|
|
287
312
|
};
|
|
288
313
|
},
|
|
289
314
|
user: () => {
|
|
290
|
-
let
|
|
291
|
-
return ({ slots:
|
|
292
|
-
let
|
|
293
|
-
return
|
|
294
|
-
|
|
295
|
-
}),
|
|
296
|
-
|
|
297
|
-
}),
|
|
298
|
-
|
|
299
|
-
})),
|
|
300
|
-
value:
|
|
301
|
-
multiple:
|
|
302
|
-
getUsersByUsername:
|
|
315
|
+
let o, u, m;
|
|
316
|
+
return ({ slots: g, props: _ }, { modelValue: y, "onUpdate:modelValue": b, required: x, readonly: S, ...C }) => {
|
|
317
|
+
let w = mapProps(_);
|
|
318
|
+
return o || (o = shallowRef([]), u = shallowRef([]), m = shallowRef([]), f().then((e) => {
|
|
319
|
+
o.value = e;
|
|
320
|
+
}), e().then((e) => {
|
|
321
|
+
u.value = e;
|
|
322
|
+
}), l().then((e) => {
|
|
323
|
+
m.value = e;
|
|
324
|
+
})), S ? createVNode(DtUserRender, {
|
|
325
|
+
value: y,
|
|
326
|
+
multiple: w.multiple,
|
|
327
|
+
getUsersByUsername: f
|
|
303
328
|
}, null) : h(DtUserDept, {
|
|
304
329
|
type: "user",
|
|
305
|
-
users:
|
|
306
|
-
depts:
|
|
307
|
-
groups:
|
|
308
|
-
getUsersByDept:
|
|
309
|
-
getUsersByGroup:
|
|
310
|
-
...
|
|
311
|
-
...
|
|
312
|
-
modelValue:
|
|
313
|
-
"onUpdate:modelValue":
|
|
314
|
-
},
|
|
330
|
+
users: o.value,
|
|
331
|
+
depts: m.value,
|
|
332
|
+
groups: u.value,
|
|
333
|
+
getUsersByDept: d,
|
|
334
|
+
getUsersByGroup: s,
|
|
335
|
+
...w,
|
|
336
|
+
...C,
|
|
337
|
+
modelValue: y,
|
|
338
|
+
"onUpdate:modelValue": b
|
|
339
|
+
}, g);
|
|
315
340
|
};
|
|
316
341
|
}
|
|
317
342
|
};
|
|
318
343
|
}
|
|
319
|
-
function createPageTableHelper({ getDeptsByCode:
|
|
320
|
-
let
|
|
321
|
-
if (
|
|
322
|
-
},
|
|
344
|
+
function createPageTableHelper({ getDeptsByCode: e, getUsersByUsername: o, getFileInfos: s, previewFileUrl: c }) {
|
|
345
|
+
let u = (e) => () => (a, o, s, c) => {
|
|
346
|
+
if (a != null) return format(a, c.formatter ?? e);
|
|
347
|
+
}, d = (e = {}) => createVNode("svg", mergeProps({
|
|
323
348
|
xmlns: "http://www.w3.org/2000/svg",
|
|
324
349
|
width: "1em",
|
|
325
350
|
height: "1em",
|
|
326
351
|
viewBox: "0 0 32 32"
|
|
327
|
-
},
|
|
352
|
+
}, e), [createVNode("circle", {
|
|
328
353
|
cx: "16",
|
|
329
354
|
cy: "16",
|
|
330
355
|
r: "8",
|
|
331
356
|
fill: "currentColor"
|
|
332
357
|
}, null)]);
|
|
333
358
|
return {
|
|
334
|
-
date:
|
|
335
|
-
datetime:
|
|
359
|
+
date: u("yyyy-MM-dd"),
|
|
360
|
+
datetime: u("yyyy-MM-dd HH:mm:ss"),
|
|
336
361
|
dict: () => {
|
|
337
|
-
let
|
|
338
|
-
return (
|
|
339
|
-
if (
|
|
340
|
-
let { dictType:
|
|
341
|
-
if (
|
|
342
|
-
if (
|
|
343
|
-
let
|
|
362
|
+
let e, a, o;
|
|
363
|
+
return (s, c, l, u) => {
|
|
364
|
+
if (s == null) return;
|
|
365
|
+
let { dictType: f, options: p, multiple: m, statusMap: g } = mapProps(u);
|
|
366
|
+
if (p ? a !== p && (a = p, o = new Map(p.map((e) => [e[u.valueField || "value"], e]))) : e !== f && (e = f, !o && e && (o = useDictMap(e))), !m) {
|
|
367
|
+
if (s = s.toString(), g && s in g) {
|
|
368
|
+
let e = g[s] ?? "default";
|
|
344
369
|
return [
|
|
345
370
|
"primary",
|
|
346
371
|
"success",
|
|
347
372
|
"warning",
|
|
348
373
|
"danger"
|
|
349
|
-
].includes(
|
|
374
|
+
].includes(e) && (e = `var(--color-${e})`), createVNode("span", { style: "position: relative; padding-left: 1.25em" }, [createVNode(d, { style: `color: ${e}; position: absolute;left: 0; top: 1.5px` }, null), createVNode("span", null, [o.get(s)?.[u.labelField || "label"] ?? s ?? ""])]);
|
|
350
375
|
}
|
|
351
|
-
return
|
|
376
|
+
return o.get(s)?.[u.labelField || "label"] ?? s ?? "";
|
|
352
377
|
}
|
|
353
|
-
return
|
|
378
|
+
return s?.map((e) => o.get(e?.toString())?.[u.labelField || "label"] ?? e?.toString() ?? "") ?? "";
|
|
354
379
|
};
|
|
355
380
|
},
|
|
356
|
-
number: () => (
|
|
357
|
-
if (
|
|
358
|
-
switch (
|
|
359
|
-
case typeof
|
|
360
|
-
|
|
381
|
+
number: () => (e, a, o, s) => {
|
|
382
|
+
if (e != null) {
|
|
383
|
+
switch (s.percent && (e = Number(e) * 100), "number") {
|
|
384
|
+
case typeof s.fixed:
|
|
385
|
+
e = e.toFixed(s.fixed);
|
|
361
386
|
break;
|
|
362
|
-
case typeof
|
|
363
|
-
|
|
387
|
+
case typeof s.round:
|
|
388
|
+
e = e.toFixed(s.round).replace(/0+$/, "");
|
|
364
389
|
break;
|
|
365
|
-
case typeof
|
|
366
|
-
|
|
390
|
+
case typeof s.precision:
|
|
391
|
+
e = e.toPrecision(s.precision);
|
|
367
392
|
break;
|
|
368
393
|
}
|
|
369
|
-
return
|
|
394
|
+
return s?.separator ? Number(e).toLocaleString() : e;
|
|
370
395
|
}
|
|
371
396
|
},
|
|
372
|
-
email: () => (
|
|
373
|
-
url: () => (
|
|
374
|
-
color: () => (
|
|
375
|
-
value:
|
|
397
|
+
email: () => (e) => createVNode("a", { href: `mailto:${e}` }, [e]),
|
|
398
|
+
url: () => (e) => createVNode("a", { href: e }, [e]),
|
|
399
|
+
color: () => (e) => createVNode(NColorPicker, {
|
|
400
|
+
value: e,
|
|
376
401
|
disabled: !0,
|
|
377
402
|
size: "small"
|
|
378
403
|
}, null),
|
|
379
|
-
image: () => (
|
|
380
|
-
let
|
|
381
|
-
return
|
|
404
|
+
image: () => (e, a, o, s) => {
|
|
405
|
+
let l;
|
|
406
|
+
return e ? createVNode(NFlex, {
|
|
382
407
|
gap: "8",
|
|
383
408
|
wrap: !0
|
|
384
|
-
}, _isSlot(
|
|
385
|
-
key:
|
|
386
|
-
src:
|
|
409
|
+
}, _isSlot(l = (Array.isArray(e) ? e : s?.multiple ? e.split(",") : [e]).map((e) => c(e)).map((e) => createVNode("img", {
|
|
410
|
+
key: e,
|
|
411
|
+
src: e,
|
|
387
412
|
style: "max-height: 32px; max-width: 100px; object-fit: contain"
|
|
388
|
-
}, null))) ?
|
|
413
|
+
}, null))) ? l : { default: () => [l] }) : void 0;
|
|
389
414
|
},
|
|
390
415
|
file: () => {
|
|
391
|
-
let
|
|
392
|
-
return (
|
|
393
|
-
let
|
|
394
|
-
return
|
|
395
|
-
|
|
416
|
+
let e = nanoid();
|
|
417
|
+
return (a, o, c, l) => {
|
|
418
|
+
let u;
|
|
419
|
+
return a ? (o.__file_urls ??= {}, o.__file_urls[e] || s(Array.isArray(a) ? a : l?.multiple ? a.split(",") : [a]).then((a) => {
|
|
420
|
+
o.__file_urls[e] = a;
|
|
396
421
|
}), createVNode(NFlex, {
|
|
397
422
|
gap: "8",
|
|
398
423
|
wrap: !0
|
|
399
|
-
}, _isSlot(
|
|
400
|
-
key:
|
|
401
|
-
href:
|
|
424
|
+
}, _isSlot(u = (o.__file_urls[e] || []).map((e) => createVNode("a", {
|
|
425
|
+
key: e.id,
|
|
426
|
+
href: e.url,
|
|
402
427
|
target: "_blank",
|
|
403
428
|
rel: "noreferrer",
|
|
404
429
|
style: "max-width: 100px; text-overflow: ellipsis; overflow: hidden; white-space: nowrap; display: inline-block"
|
|
405
|
-
}, [
|
|
430
|
+
}, [e.name]))) ? u : { default: () => [u] })) : void 0;
|
|
406
431
|
};
|
|
407
432
|
},
|
|
408
|
-
dept: () => (
|
|
409
|
-
if (
|
|
410
|
-
value:
|
|
411
|
-
multiple:
|
|
412
|
-
getDeptsByCode:
|
|
433
|
+
dept: () => (a, o, s, c) => {
|
|
434
|
+
if (a) return createVNode(DtDeptRender, {
|
|
435
|
+
value: a,
|
|
436
|
+
multiple: c?.multiple,
|
|
437
|
+
getDeptsByCode: e
|
|
413
438
|
}, null);
|
|
414
439
|
},
|
|
415
|
-
user: () => (
|
|
416
|
-
if (
|
|
417
|
-
value:
|
|
418
|
-
multiple:
|
|
419
|
-
getUsersByUsername:
|
|
440
|
+
user: () => (e, s, c, l) => {
|
|
441
|
+
if (e) return createVNode(DtUserRender, {
|
|
442
|
+
value: e,
|
|
443
|
+
multiple: l?.multiple,
|
|
444
|
+
getUsersByUsername: o
|
|
420
445
|
}, null);
|
|
421
446
|
}
|
|
422
447
|
};
|
|
423
448
|
}
|
|
424
449
|
function createFormHelper() {
|
|
425
|
-
return () => ({ items:
|
|
426
|
-
readonly:
|
|
427
|
-
model:
|
|
428
|
-
items:
|
|
429
|
-
validation:
|
|
430
|
-
showColon: unref(
|
|
431
|
-
labelWidth: unref(
|
|
432
|
-
labelAlign: unref(
|
|
433
|
-
labelPlacement: unref(
|
|
434
|
-
showRequireMark: unref(
|
|
435
|
-
requireMarkPlacement: unref(
|
|
436
|
-
showFeedback: unref(
|
|
450
|
+
return () => ({ items: e, model: a, handleSubmit: o, reset: c, validation: l, readonly: u, inModal: d, showFeedback: f, showColon: p, labelWidth: m, labelAlign: g, labelPlacement: _, showRequireMark: v, requireMarkPlacement: b }) => createVNode(DataForm, {
|
|
451
|
+
readonly: u,
|
|
452
|
+
model: a,
|
|
453
|
+
items: e,
|
|
454
|
+
validation: l,
|
|
455
|
+
showColon: unref(p) ?? !0,
|
|
456
|
+
labelWidth: unref(m),
|
|
457
|
+
labelAlign: unref(g),
|
|
458
|
+
labelPlacement: unref(_),
|
|
459
|
+
showRequireMark: unref(v),
|
|
460
|
+
requireMarkPlacement: unref(b),
|
|
461
|
+
showFeedback: unref(f) ?? !0,
|
|
437
462
|
showAction: !1,
|
|
438
|
-
onSubmit:
|
|
439
|
-
onRest:
|
|
440
|
-
style:
|
|
463
|
+
onSubmit: o,
|
|
464
|
+
onRest: c,
|
|
465
|
+
style: d ? "padding-right: 2rem; padding-top: 1rem" : void 0
|
|
441
466
|
}, null);
|
|
442
467
|
}
|
|
443
468
|
function createModalHelper() {
|
|
444
|
-
let
|
|
469
|
+
let e = (e) => typeof e == "number" ? `${e}px` : e, a = {
|
|
445
470
|
maxHeight: "calc(100vh - 130px)",
|
|
446
471
|
display: "flex",
|
|
447
472
|
flexDirection: "column"
|
|
448
|
-
},
|
|
449
|
-
return () => ({ type:
|
|
450
|
-
let V =
|
|
473
|
+
}, o = { content: !0 };
|
|
474
|
+
return () => ({ type: s = "dialog", visible: c, title: l, content: u, footer: d, placement: f, resizable: p, draggable: m, closeOnEsc: _, closable: v, showMask: y, maskClosable: b, width: S, height: C, style: w, onClose: O, onCancel: k, onConfirm: A, onAfterClose: j, onAfterOpen: M, confirmText: N, confirmDisabled: P, confirmLoading: F, cancelText: I, cancelDisabled: L, cancelLoading: R, nativeScrollbar: z, ...B }) => {
|
|
475
|
+
let V = d ? () => d : d === null ? null : () => createVNode(NFlex, {
|
|
451
476
|
justify: "end",
|
|
452
477
|
gap: "16"
|
|
453
478
|
}, { default: () => [I === null ? void 0 : createVNode(NButton, {
|
|
@@ -462,58 +487,58 @@ function createModalHelper() {
|
|
|
462
487
|
loading: F,
|
|
463
488
|
style: "min-width: 60px"
|
|
464
489
|
}, _isSlot(N) ? N : { default: () => [N] })] });
|
|
465
|
-
if (
|
|
466
|
-
let { style:
|
|
467
|
-
width:
|
|
468
|
-
height:
|
|
469
|
-
} }, { style:
|
|
490
|
+
if (s === "dialog") {
|
|
491
|
+
let { style: s } = mergeProps({ style: {
|
|
492
|
+
width: e(S ?? 520),
|
|
493
|
+
height: e(C)
|
|
494
|
+
} }, { style: w });
|
|
470
495
|
return createVNode(NModal, mergeProps({
|
|
471
|
-
show:
|
|
496
|
+
show: c,
|
|
472
497
|
preset: "card",
|
|
473
|
-
title: () =>
|
|
474
|
-
maskClosable:
|
|
475
|
-
closeOnEsc:
|
|
476
|
-
closable:
|
|
498
|
+
title: () => l,
|
|
499
|
+
maskClosable: b ?? !1,
|
|
500
|
+
closeOnEsc: _,
|
|
501
|
+
closable: v,
|
|
477
502
|
onClose: O,
|
|
478
|
-
segmented:
|
|
503
|
+
segmented: o,
|
|
479
504
|
size: "small",
|
|
480
505
|
onAfterEnter: M,
|
|
481
506
|
onAfterLeave: j,
|
|
482
507
|
onUpdateShow: O,
|
|
483
|
-
draggable:
|
|
484
|
-
style:
|
|
485
|
-
contentStyle:
|
|
508
|
+
draggable: m ?? !0,
|
|
509
|
+
style: s,
|
|
510
|
+
contentStyle: a
|
|
486
511
|
}, B), {
|
|
487
512
|
default: () => createVNode(NScrollbar, {
|
|
488
513
|
abstract: !0,
|
|
489
514
|
style: "display: flex; flex-direction: column"
|
|
490
|
-
}, _isSlot(
|
|
515
|
+
}, _isSlot(u) ? u : { default: () => [u] }),
|
|
491
516
|
action: V
|
|
492
517
|
});
|
|
493
518
|
}
|
|
494
519
|
let { bodyContentClass: H, bodyContentStyle: U, ...W } = B;
|
|
495
520
|
return createVNode(NDrawer, mergeProps({
|
|
496
|
-
show:
|
|
521
|
+
show: c,
|
|
497
522
|
trapFocus: !1,
|
|
498
|
-
closeOnEsc:
|
|
499
|
-
showMask:
|
|
500
|
-
maskClosable:
|
|
501
|
-
resizable:
|
|
502
|
-
placement:
|
|
503
|
-
width:
|
|
504
|
-
height:
|
|
523
|
+
closeOnEsc: _,
|
|
524
|
+
showMask: y,
|
|
525
|
+
maskClosable: b,
|
|
526
|
+
resizable: p,
|
|
527
|
+
placement: f,
|
|
528
|
+
width: S ?? 440,
|
|
529
|
+
height: C,
|
|
505
530
|
onUpdateShow: O,
|
|
506
531
|
onAfterEnter: M,
|
|
507
532
|
onAfterLeave: j,
|
|
508
|
-
style:
|
|
533
|
+
style: w
|
|
509
534
|
}, W), { default: () => [createVNode(NDrawerContent, {
|
|
510
|
-
closable:
|
|
535
|
+
closable: v,
|
|
511
536
|
nativeScrollbar: z ?? !1,
|
|
512
537
|
bodyContentClass: H,
|
|
513
538
|
bodyContentStyle: U
|
|
514
539
|
}, {
|
|
515
|
-
default: () =>
|
|
516
|
-
header: () =>
|
|
540
|
+
default: () => u,
|
|
541
|
+
header: () => l,
|
|
517
542
|
footer: V
|
|
518
543
|
})] });
|
|
519
544
|
};
|
package/dist/use-style.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as flex, c as flexDirCol, d as flexJustifySB, f as fullHeight, g as useStyle, h as useMergedClsPrefix, i as cM, l as flexGap, m as fullWidth, n as cB, o as flexAlignCenter, p as fullWH, r as cE, s as flexCenter, t as c, u as flexJustifyCenter } from "./use-style-
|
|
1
|
+
import { a as flex, c as flexDirCol, d as flexJustifySB, f as fullHeight, g as useStyle, h as useMergedClsPrefix, i as cM, l as flexGap, m as fullWidth, n as cB, o as flexAlignCenter, p as fullWH, r as cE, s as flexCenter, t as c, u as flexJustifyCenter } from "./use-style-mj2B1q0l.js";
|
|
2
2
|
export { c, cB, cE, cM, useStyle as default, flex, flexAlignCenter, flexCenter, flexDirCol, flexGap, flexJustifyCenter, flexJustifySB, fullHeight, fullWH, fullWidth, useMergedClsPrefix as useClsPrefix };
|
package/esm/page.d.ts
CHANGED
|
@@ -26,7 +26,9 @@ declare module '@ithinkdt/page' {
|
|
|
26
26
|
inputSlots?: InputSlots
|
|
27
27
|
}
|
|
28
28
|
number: {
|
|
29
|
-
numberProps?: ShallowMaybeRef<Omit<InputNumberProps, 'value' | 'onUpdate:value' | 'disabled'>> & PublicProps
|
|
29
|
+
numberProps?: ShallowMaybeRef<Omit<InputNumberProps, 'value' | 'onUpdate:value' | 'disabled'>> & PublicProps & {
|
|
30
|
+
valueType?: 'string' | 'number' | undefined
|
|
31
|
+
}
|
|
30
32
|
numberSlots?: InputNumberSlots
|
|
31
33
|
}
|
|
32
34
|
select: {
|
|
@@ -34,6 +36,7 @@ declare module '@ithinkdt/page' {
|
|
|
34
36
|
& {
|
|
35
37
|
dictType?: DictTypeKey | undefined
|
|
36
38
|
options?: DictItem[] | (SelectOption | SelectGroupOption)[] | undefined
|
|
39
|
+
valueType?: 'string' | 'number' | undefined
|
|
37
40
|
}>
|
|
38
41
|
selectSlots?: SelectSlots
|
|
39
42
|
}
|
|
@@ -52,6 +55,7 @@ declare module '@ithinkdt/page' {
|
|
|
52
55
|
& {
|
|
53
56
|
dictType?: DictTypeKey | undefined
|
|
54
57
|
options?: DictItem[] | undefined
|
|
58
|
+
valueType?: 'string' | 'number' | undefined
|
|
55
59
|
}>
|
|
56
60
|
checkboxesSlots?: { }
|
|
57
61
|
}
|
|
@@ -61,6 +65,7 @@ declare module '@ithinkdt/page' {
|
|
|
61
65
|
& {
|
|
62
66
|
dictType?: DictTypeKey | undefined
|
|
63
67
|
options?: DictItem[] | undefined
|
|
68
|
+
valueType?: 'string' | 'number' | undefined
|
|
64
69
|
}>
|
|
65
70
|
radiosSlots?: { }
|
|
66
71
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ithinkdt/ui",
|
|
3
|
-
"version": "4.0.0-
|
|
3
|
+
"version": "4.0.0-406",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"description": "iThinkDT UI",
|
|
@@ -82,14 +82,14 @@
|
|
|
82
82
|
}
|
|
83
83
|
},
|
|
84
84
|
"devDependencies": {
|
|
85
|
-
"@vitejs/plugin-vue-jsx": "^5.1.
|
|
85
|
+
"@vitejs/plugin-vue-jsx": "^5.1.2",
|
|
86
86
|
"ithinkdt-ui": "^1.8.1",
|
|
87
87
|
"typescript": "~5.9.3",
|
|
88
|
-
"unocss": ">=66.5.
|
|
89
|
-
"vite": "npm:rolldown-vite@^7.2.
|
|
90
|
-
"vue": "^3.5.
|
|
88
|
+
"unocss": ">=66.5.9",
|
|
89
|
+
"vite": "npm:rolldown-vite@^7.2.7",
|
|
90
|
+
"vue": "^3.5.25",
|
|
91
91
|
"vue-router": "^4.6.3",
|
|
92
|
-
"@ithinkdt/page": "^4.0.0-
|
|
92
|
+
"@ithinkdt/page": "^4.0.0-401"
|
|
93
93
|
},
|
|
94
94
|
"scripts": {
|
|
95
95
|
"dev": "vite build --watch",
|
|
File without changes
|
|
File without changes
|