@ithinkdt/ui 4.0.0-403 → 4.0.0-404
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.
|
@@ -1737,6 +1737,10 @@ const DtDeptRender = /* @__PURE__ */ defineComponent({
|
|
|
1737
1737
|
type: Boolean,
|
|
1738
1738
|
default: void 0
|
|
1739
1739
|
},
|
|
1740
|
+
type: {
|
|
1741
|
+
type: String,
|
|
1742
|
+
default: void 0
|
|
1743
|
+
},
|
|
1740
1744
|
succeeded: {
|
|
1741
1745
|
type: [Boolean, Object],
|
|
1742
1746
|
default: void 0
|
|
@@ -1762,13 +1766,13 @@ const DtDeptRender = /* @__PURE__ */ defineComponent({
|
|
|
1762
1766
|
props: StateButtonProps,
|
|
1763
1767
|
setup(e, { slots: v }) {
|
|
1764
1768
|
return () => {
|
|
1765
|
-
let {
|
|
1769
|
+
let { type: y, disabled: b, succeeded: x, successText: S, failureText: C } = e;
|
|
1766
1770
|
return createVNode(NButton, {
|
|
1767
|
-
type:
|
|
1768
|
-
disabled: typeof
|
|
1771
|
+
type: x ? "success" : x === !1 ? "error" : y,
|
|
1772
|
+
disabled: typeof x == "boolean" ? !0 : b
|
|
1769
1773
|
}, {
|
|
1770
|
-
default: () => (
|
|
1771
|
-
icon: () =>
|
|
1774
|
+
default: () => (x ? v.success ? v.success() : S : x === !1 ? v.failure ? v.failure() : C : v.default?.()) ?? v.default(),
|
|
1775
|
+
icon: () => x ? v.successIcon ? v.successIcon() : createVNode(NIcon, null, { default: () => [createVNode(ICheck, null, null)] }) : x === !1 ? v.failureIcon ? v.failureIcon() : createVNode(NIcon, null, { default: () => [createVNode(IClose, null, null)] }) : v.icon?.()
|
|
1772
1776
|
});
|
|
1773
1777
|
};
|
|
1774
1778
|
}
|
package/dist/components.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "./use-i18n-Dx7V4KrY.js";
|
|
2
2
|
import "./directives-qqYcWl1I.js";
|
|
3
3
|
import "./use-style-DcT-1dj4.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-
|
|
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-SsroO6X6.js";
|
|
5
5
|
export { DataActions, DataCustom, DataFilter, DataForm, DataFormActions, DataLocaleInput, DataPagination, DataSelection, DataTable, DtDeptRender, DtUserDept, DtUserRender, NCheckboxes, NRadios, NStateButton, StateButtonProps, dataFormActionsProps, renderUsers, useDataTableDrag, useLocaleEdit };
|
package/dist/page.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { n as useI18n } from "./use-i18n-Dx7V4KrY.js";
|
|
2
2
|
import "./directives-qqYcWl1I.js";
|
|
3
3
|
import "./use-style-DcT-1dj4.js";
|
|
4
|
-
import { a as DtUserRender, b as NCheckboxes, h as DataForm, i as DtUserDept, r as DtDeptRender, s as NRadios } from "./components-
|
|
4
|
+
import { a as DtUserRender, b as NCheckboxes, h as DataForm, i as DtUserDept, r as DtDeptRender, s as NRadios } from "./components-SsroO6X6.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";
|