@ithinkdt/ui 4.0.0-600 → 4.0.0-601
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-BMKQsJ4d.js → components-CDuTve1u.js} +8 -8
- package/dist/components.js +4 -4
- package/dist/{directives-CB8tcZsk.js → directives-8VsgmCuO.js} +1 -1
- package/dist/directives.js +2 -2
- package/dist/index.js +3 -3
- package/dist/page.js +22 -22
- package/dist/use-style.js +1 -1
- package/package.json +4 -4
- /package/dist/{use-i18n-D-AJ8KbA.js → use-i18n-Dx7V4KrY.js} +0 -0
- /package/dist/{use-style-DrH-89qR.js → use-style-D9hLG26i.js} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { n as useI18n } from "./use-i18n-
|
|
2
|
-
import { g as useStyle, h as useMergedClsPrefix, n as cB, r as cE, t as c } from "./use-style-
|
|
3
|
-
import { i as vTooltip } from "./directives-
|
|
1
|
+
import { n as useI18n } from "./use-i18n-Dx7V4KrY.js";
|
|
2
|
+
import { g as useStyle, h as useMergedClsPrefix, n as cB, r as cE, t as c } from "./use-style-D9hLG26i.js";
|
|
3
|
+
import { i as vTooltip } from "./directives-8VsgmCuO.js";
|
|
4
4
|
import { Fragment, computed, createTextVNode, createVNode, defineComponent, h, 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 { NAnchor, NAnchorLink, 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";
|
|
@@ -799,7 +799,7 @@ const DataForm = /* @__PURE__ */ defineComponent({
|
|
|
799
799
|
immediate: !0,
|
|
800
800
|
debounce: 100
|
|
801
801
|
}), () => {
|
|
802
|
-
let { items: y, loading: O, validation: k, showColon: A, tooltipPlacement: j, showFeedback: N, labelWidth: P = "7.2em", labelAlign: F = e.labelPlacement === "top" ? "left" : "right", grid: I, showAction: L, showSubmitBtn: R, showResetBtn: B, showCancelBtn: V, actionAlign: H, actionJustify: U, actionGap: W, submitDisabled: G, submitText: K, resetText: q, cancelText: J, succeeded: Y, successText: X, failureText: Z
|
|
802
|
+
let { items: y, loading: O, validation: k, showColon: A, tooltipPlacement: j, showFeedback: N, labelWidth: P = "7.2em", labelAlign: F = e.labelPlacement === "top" ? "left" : "right", grid: I, showAction: L, showSubmitBtn: R, showResetBtn: B, showCancelBtn: V, actionAlign: H, actionJustify: U, actionGap: W, submitDisabled: G, submitText: K, resetText: q, cancelText: J, succeeded: Y, successText: X, failureText: Z,...Q } = e, $ = !e.readonly && N !== !1;
|
|
803
803
|
return createVNode(NForm, mergeProps({
|
|
804
804
|
labelWidth: P,
|
|
805
805
|
labelAlign: F,
|
|
@@ -811,7 +811,7 @@ const DataForm = /* @__PURE__ */ defineComponent({
|
|
|
811
811
|
itemResponsive: !0
|
|
812
812
|
}, I, { yGap: $ ? 0 : I?.yGap ?? 24 }), { default: () => {
|
|
813
813
|
let x = 0;
|
|
814
|
-
return createVNode(Fragment, null, [y.map(({ hidden: y, name: b, render: S, label: C, showColon: w, span: T = 6, rowSpan: E, offset: O = 0, tooltip: A, tooltipPlacement: j = e.tooltipPlacement, validationStatus: N = k[b]?.errors?.some((e) => e !== void 0) ? "error" : k[b]?.warnings?.some((e) => e !== void 0) ? "warnings" : k[b] ? "success" : void 0, readonly: P = e.readonly, showRequireMark: F = !P, showTooltipWhenReadonly: I = !1
|
|
814
|
+
return createVNode(Fragment, null, [y.map(({ hidden: y, name: b, render: S, label: C, showColon: w, span: T = 6, rowSpan: E, offset: O = 0, tooltip: A, tooltipPlacement: j = e.tooltipPlacement, validationStatus: N = k[b]?.errors?.some((e) => e !== void 0) ? "error" : k[b]?.warnings?.some((e) => e !== void 0) ? "warnings" : k[b] ? "success" : void 0, readonly: P = e.readonly, showRequireMark: F = !P, showTooltipWhenReadonly: I = !1,...L }) => {
|
|
815
815
|
if (y) return;
|
|
816
816
|
x += T;
|
|
817
817
|
let R;
|
|
@@ -961,7 +961,7 @@ const DataForm = /* @__PURE__ */ defineComponent({
|
|
|
961
961
|
suffix: !0
|
|
962
962
|
});
|
|
963
963
|
return () => {
|
|
964
|
-
let { filterOnReset: e, filterText: b, resetText: k, customizable: A, defaultCollapsed: j, collapsible: N, grid: P
|
|
964
|
+
let { filterOnReset: e, filterText: b, resetText: k, customizable: A, defaultCollapsed: j, collapsible: N, grid: P,...F } = y;
|
|
965
965
|
return createVNode(DataForm, mergeProps({ grid: {
|
|
966
966
|
cols: "12 768:18 1280:24 1536:30",
|
|
967
967
|
yGap: 20,
|
|
@@ -1276,7 +1276,7 @@ function _map(e, y) {
|
|
|
1276
1276
|
csvTitle: e.exportTitle,
|
|
1277
1277
|
...e,
|
|
1278
1278
|
title: () => {
|
|
1279
|
-
let y = toValue(e.title), b = y && withDirectives(createVNode("
|
|
1279
|
+
let y = toValue(e.title), b = y && withDirectives(createVNode("div", null, [y]), [[
|
|
1280
1280
|
vTooltip,
|
|
1281
1281
|
() => toValue(e.title),
|
|
1282
1282
|
void 0,
|
|
@@ -1451,7 +1451,7 @@ const DataTable = /* @__PURE__ */ defineComponent({
|
|
|
1451
1451
|
}
|
|
1452
1452
|
});
|
|
1453
1453
|
var style = /* @__PURE__ */ cB("datatable", [cE("row-highlight", [c("& > td", { backgroundColor: "var(--n-tr-highlight-color, var(--n-merged-border-color)) !important" })])]);
|
|
1454
|
-
function useDataTableDrag(e, { data: y, onSort: b
|
|
1454
|
+
function useDataTableDrag(e, { data: y, onSort: b,...x }) {
|
|
1455
1455
|
watch([ref(y), e], async ([e, y]) => {
|
|
1456
1456
|
if (e.length === 0) return;
|
|
1457
1457
|
await nextTick();
|
package/dist/components.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "./use-i18n-
|
|
2
|
-
import "./use-style-
|
|
3
|
-
import "./directives-
|
|
4
|
-
import { _ as dataFormActionsProps, a as DtUserRender, b as DataActions, 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 DataDescriptions, x as NCheckboxes, y as DataCustom } from "./components-
|
|
1
|
+
import "./use-i18n-Dx7V4KrY.js";
|
|
2
|
+
import "./use-style-D9hLG26i.js";
|
|
3
|
+
import "./directives-8VsgmCuO.js";
|
|
4
|
+
import { _ as dataFormActionsProps, a as DtUserRender, b as DataActions, 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 DataDescriptions, x as NCheckboxes, y as DataCustom } from "./components-CDuTve1u.js";
|
|
5
5
|
export { DataActions, DataCustom, DataDescriptions, 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-D9hLG26i.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 "./use-style-
|
|
2
|
-
import { i as vTooltip, n as vSpin, r as TooltipDirectiveProvider, t as SpinDirectiveProvider } from "./directives-
|
|
1
|
+
import "./use-style-D9hLG26i.js";
|
|
2
|
+
import { i as vTooltip, n as vSpin, r as TooltipDirectiveProvider, t as SpinDirectiveProvider } from "./directives-8VsgmCuO.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 { g as useStyle, i as cM, n as cB, r as cE, t as c } from "./use-style-
|
|
3
|
-
import { i as vTooltip, n as vSpin, r as TooltipDirectiveProvider, t as SpinDirectiveProvider } from "./directives-
|
|
1
|
+
import { n as useI18n, t as UI_I18N_INJECTION } from "./use-i18n-Dx7V4KrY.js";
|
|
2
|
+
import { g as useStyle, i as cM, n as cB, r as cE, t as c } from "./use-style-D9hLG26i.js";
|
|
3
|
+
import { i as vTooltip, n as vSpin, r as TooltipDirectiveProvider, t as SpinDirectiveProvider } from "./directives-8VsgmCuO.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,7 +1,7 @@
|
|
|
1
|
-
import { n as useI18n } from "./use-i18n-
|
|
2
|
-
import "./use-style-
|
|
3
|
-
import "./directives-
|
|
4
|
-
import { a as DtUserRender, h as DataForm, i as DtUserDept, r as DtDeptRender, s as NRadios, x as NCheckboxes } from "./components-
|
|
1
|
+
import { n as useI18n } from "./use-i18n-Dx7V4KrY.js";
|
|
2
|
+
import "./use-style-D9hLG26i.js";
|
|
3
|
+
import "./directives-8VsgmCuO.js";
|
|
4
|
+
import { a as DtUserRender, h as DataForm, i as DtUserDept, r as DtDeptRender, s as NRadios, x as NCheckboxes } from "./components-CDuTve1u.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";
|
|
@@ -67,7 +67,7 @@ var mapProps = (r) => Object.fromEntries(Object.entries(r || {}).map(([r, a]) =>
|
|
|
67
67
|
a.onUpdateFileList?.(r), nextTick(() => l.nTriggerFormChange());
|
|
68
68
|
};
|
|
69
69
|
return () => {
|
|
70
|
-
let { type: r, onUpdateFileList: s
|
|
70
|
+
let { type: r, onUpdateFileList: s,...u } = a;
|
|
71
71
|
return createVNode(NUpload, mergeProps(u, {
|
|
72
72
|
ref: p,
|
|
73
73
|
customRequest: f.value,
|
|
@@ -90,7 +90,7 @@ var mapProps = (r) => Object.fromEntries(Object.entries(r || {}).map(([r, a]) =>
|
|
|
90
90
|
function createPageFormHelper({ getUserGroups: r, getUsersByGroup: o, getDeptsByCode: c, getUsersByDept: d, getUsersByUsername: f, uploadFile: m, getFileInfos: g }) {
|
|
91
91
|
let _ = (r) => r, x = (r) => isNullish(r) ? r : String(r), C = (r) => isNullish(r) ? r : Number(r);
|
|
92
92
|
return {
|
|
93
|
-
input: () => ({ slots: r, props: a }, { modelValue: o, "onUpdate:modelValue": s, required: c, readonly: l
|
|
93
|
+
input: () => ({ slots: r, props: a }, { modelValue: o, "onUpdate:modelValue": s, required: c, readonly: l,...u }) => l ? createVNode(NText, {
|
|
94
94
|
depth: 2,
|
|
95
95
|
style: "line-height: 1.25"
|
|
96
96
|
}, { default: () => [o ?? ""] }) : (a = mapProps(a), h(NInput, {
|
|
@@ -102,12 +102,12 @@ function createPageFormHelper({ getUserGroups: r, getUsersByGroup: o, getDeptsBy
|
|
|
102
102
|
}, r)),
|
|
103
103
|
number: () => {
|
|
104
104
|
let r, a;
|
|
105
|
-
return ({ slots: o, props: s }, { modelValue: c, "onUpdate:modelValue": l, required: u, readonly: d
|
|
105
|
+
return ({ slots: o, props: s }, { modelValue: c, "onUpdate:modelValue": l, required: u, readonly: d,...f }) => {
|
|
106
106
|
if (d) return createVNode(NText, {
|
|
107
107
|
depth: 2,
|
|
108
108
|
style: "line-height: 1.25"
|
|
109
109
|
}, { default: () => [c ?? ""] });
|
|
110
|
-
let { valueType: m = "number"
|
|
110
|
+
let { valueType: m = "number",...g } = mapProps(s), _ = m === "string" ? C(c) : c;
|
|
111
111
|
return r = l, m === "string" && !a && (a = (a, ...o) => {
|
|
112
112
|
r(x(a), ...o);
|
|
113
113
|
}), h(NInputNumber, {
|
|
@@ -121,8 +121,8 @@ function createPageFormHelper({ getUserGroups: r, getUsersByGroup: o, getDeptsBy
|
|
|
121
121
|
},
|
|
122
122
|
select: () => {
|
|
123
123
|
let r, a, o, s, c;
|
|
124
|
-
return ({ slots: l, props: u }, { modelValue: d, "onUpdate:modelValue": f, required: m, readonly: g
|
|
125
|
-
let { dictType: b, options: S, valueType: w = "string"
|
|
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
126
|
S ? a = S : r !== b && (r = b, !a && r && (a = useDict(r)));
|
|
127
127
|
let D = T.multiple ? d?.map(E) : E(d);
|
|
128
128
|
if (g) if (T.multiple) {
|
|
@@ -154,7 +154,7 @@ function createPageFormHelper({ getUserGroups: r, getUsersByGroup: o, getDeptsBy
|
|
|
154
154
|
}, l);
|
|
155
155
|
};
|
|
156
156
|
},
|
|
157
|
-
checkbox: () => ({ slots: r, props: a }, { modelValue: o, "onUpdate:modelValue": s, required: c, readonly: l
|
|
157
|
+
checkbox: () => ({ slots: r, props: a }, { modelValue: o, "onUpdate:modelValue": s, required: c, readonly: l,...u }) => {
|
|
158
158
|
if (a = mapProps(a), l) {
|
|
159
159
|
let s;
|
|
160
160
|
return s = o === (a.checkedValue ?? !0) ? r?.checked ? r.checked() : createVNode(NCheckbox, { checked: !0 }, null) : r?.unchecked ? r.unchecked() : createVNode(NCheckbox, { disabled: !0 }, null), createVNode(NText, {
|
|
@@ -171,8 +171,8 @@ function createPageFormHelper({ getUserGroups: r, getUsersByGroup: o, getDeptsBy
|
|
|
171
171
|
},
|
|
172
172
|
checkboxes: () => {
|
|
173
173
|
let r, a, o, s;
|
|
174
|
-
return ({ props: c }, { modelValue: l, "onUpdate:modelValue": d, required: f, readonly: m
|
|
175
|
-
let { dictType: v, options: y, valueType: b = "string"
|
|
174
|
+
return ({ props: c }, { modelValue: l, "onUpdate:modelValue": d, required: f, readonly: m,...g }) => {
|
|
175
|
+
let { dictType: v, options: y, valueType: b = "string",...S } = mapProps(c), w = b === "number" ? x : _;
|
|
176
176
|
y ? a = y : r !== v && (r = v, !a && r && (a = useDict(r)));
|
|
177
177
|
let T = l?.map(w) ?? [];
|
|
178
178
|
if (m) {
|
|
@@ -198,8 +198,8 @@ function createPageFormHelper({ getUserGroups: r, getUsersByGroup: o, getDeptsBy
|
|
|
198
198
|
},
|
|
199
199
|
radios: () => {
|
|
200
200
|
let r, a, o, s;
|
|
201
|
-
return ({ props: c }, { modelValue: u, "onUpdate:modelValue": d, required: f, readonly: m
|
|
202
|
-
let { dictType: v, options: y, valueType: b = "string"
|
|
201
|
+
return ({ props: c }, { modelValue: u, "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
203
|
y ? a = y : r !== v && (r = v, !a && r && (a = useDict(r)));
|
|
204
204
|
let T = w(u);
|
|
205
205
|
if (m) {
|
|
@@ -220,8 +220,8 @@ function createPageFormHelper({ getUserGroups: r, getUsersByGroup: o, getDeptsBy
|
|
|
220
220
|
});
|
|
221
221
|
};
|
|
222
222
|
},
|
|
223
|
-
datepicker: () => ({ slots: r, props: a }, { modelValue: o, "onUpdate:modelValue": s, required: c, readonly: l
|
|
224
|
-
let { type: d = "date", format: f = d.startsWith("datetime") ? "yyyy-MM-dd HH:mm:ss" : "yyyy-MM-dd"
|
|
223
|
+
datepicker: () => ({ slots: r, 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
225
|
return l ? d.endsWith("range") ? createVNode(NText, {
|
|
226
226
|
depth: 2,
|
|
227
227
|
style: "line-height: 1.25"
|
|
@@ -240,7 +240,7 @@ function createPageFormHelper({ getUserGroups: r, getUsersByGroup: o, getDeptsBy
|
|
|
240
240
|
"onUpdate:value": s
|
|
241
241
|
}, r);
|
|
242
242
|
},
|
|
243
|
-
file: () => ({ slots: r, props: a }, { modelValue: o, "onUpdate:modelValue": s, required: c, readonly: l
|
|
243
|
+
file: () => ({ slots: r, props: a }, { modelValue: o, "onUpdate:modelValue": s, required: c, readonly: l,...u }) => {
|
|
244
244
|
if (a = mapProps(a), l) {
|
|
245
245
|
let r;
|
|
246
246
|
return console.warn("[file] 原则上此组建不应该显示在详情中"), fileList.value.length === 0 ? void 0 : createVNode(NFlex, {
|
|
@@ -276,7 +276,7 @@ function createPageFormHelper({ getUserGroups: r, getUsersByGroup: o, getDeptsBy
|
|
|
276
276
|
});
|
|
277
277
|
}, u;
|
|
278
278
|
return {
|
|
279
|
-
renderer: ({ slots: c, props: d }, { modelValue: f, "onUpdate:modelValue": g, required: _, readonly: y
|
|
279
|
+
renderer: ({ slots: c, props: d }, { modelValue: f, "onUpdate:modelValue": g, required: _, readonly: y,...b }) => {
|
|
280
280
|
let x = mapProps(d);
|
|
281
281
|
if (u = x.ref ??= shallowRef(), r !== f && (r = f, l(f?.split(",") ?? [])), y) {
|
|
282
282
|
let r;
|
|
@@ -313,7 +313,7 @@ function createPageFormHelper({ getUserGroups: r, getUsersByGroup: o, getDeptsBy
|
|
|
313
313
|
},
|
|
314
314
|
user: () => {
|
|
315
315
|
let l, u, m;
|
|
316
|
-
return ({ slots: g, props: _ }, { modelValue: y, "onUpdate:modelValue": b, required: x, readonly: S
|
|
316
|
+
return ({ slots: g, props: _ }, { modelValue: y, "onUpdate:modelValue": b, required: x, readonly: S,...C }) => {
|
|
317
317
|
let w = mapProps(_);
|
|
318
318
|
return l || (l = shallowRef([]), u = shallowRef([]), m = shallowRef([]), f().then((r) => {
|
|
319
319
|
l.value = r;
|
|
@@ -471,7 +471,7 @@ function createModalHelper() {
|
|
|
471
471
|
display: "flex",
|
|
472
472
|
flexDirection: "column"
|
|
473
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
|
|
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
475
|
let V = d ? () => d : d === null ? null : () => createVNode(NFlex, {
|
|
476
476
|
justify: "end",
|
|
477
477
|
gap: "16"
|
|
@@ -516,7 +516,7 @@ function createModalHelper() {
|
|
|
516
516
|
action: V
|
|
517
517
|
});
|
|
518
518
|
}
|
|
519
|
-
let { bodyContentClass: H, bodyContentStyle: U
|
|
519
|
+
let { bodyContentClass: H, bodyContentStyle: U,...W } = B;
|
|
520
520
|
return createVNode(NDrawer, mergeProps({
|
|
521
521
|
show: c,
|
|
522
522
|
trapFocus: !1,
|
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-D9hLG26i.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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ithinkdt/ui",
|
|
3
|
-
"version": "4.0.0-
|
|
3
|
+
"version": "4.0.0-601",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"description": "iThinkDT UI",
|
|
@@ -86,14 +86,14 @@
|
|
|
86
86
|
"ithinkdt-ui": "^1.8.1",
|
|
87
87
|
"typescript": "~5.9.3",
|
|
88
88
|
"unocss": ">=66.5.10",
|
|
89
|
-
"vite": "npm:rolldown-vite@7.
|
|
89
|
+
"vite": "npm:rolldown-vite@7.1.20",
|
|
90
90
|
"vue": "^3.5.25",
|
|
91
91
|
"vue-router": "^4.6.3",
|
|
92
|
-
"@ithinkdt/page": "^4.0.0-
|
|
92
|
+
"@ithinkdt/page": "^4.0.0-601"
|
|
93
93
|
},
|
|
94
94
|
"scripts": {
|
|
95
95
|
"dev": "vite build --watch",
|
|
96
96
|
"build": "vite build",
|
|
97
|
-
"release": "pnpm run build && pnpm publish --no-git-checks"
|
|
97
|
+
"release": "pnpm run build && pnpm publish --no-git-checks --tag rc"
|
|
98
98
|
}
|
|
99
99
|
}
|
|
File without changes
|
|
File without changes
|