@dazhicheng/ui 1.5.266 → 1.6.1
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.js +4 -3
- package/dist/components/tt-api-component/index.vue2.js +4 -3
- package/dist/components/tt-area/TtArea.vue.js +1 -1
- package/dist/components/tt-area/TtArea.vue3.js +8 -7
- package/dist/components/tt-button/index.js +5 -4
- package/dist/components/tt-button/index.vue2.js +4 -3
- package/dist/components/tt-checkbox/index.js +4 -3
- package/dist/components/tt-checkbox/index.vue.js +4 -3
- package/dist/components/tt-drawer/index.js +4 -3
- package/dist/components/tt-drawer/src/RenderDrawer.vue.js +4 -3
- package/dist/components/tt-drawer/src/components/DrawerFooter.vue.js +8 -7
- package/dist/components/tt-drawer/src/components/DrawerHeader.vue.js +2 -2
- package/dist/components/tt-drawer/src/components/DrawerHeader.vue2.js +3 -2
- package/dist/components/tt-drawer/src/hooks/useResizable.js +2 -2
- package/dist/components/tt-drawer/src/props.js +3 -2
- package/dist/components/tt-drawer/src/utils/drawer-api.js +4 -2
- package/dist/components/tt-empty/index.js +9 -8
- package/dist/components/tt-form/index.js +10 -9
- package/dist/components/tt-form/src/components/ExpandableArrow.vue2.js +3 -2
- package/dist/components/tt-form/src/components/FormActions.vue2.js +4 -2
- package/dist/components/tt-form/src/form/FormDescription.vue.js +3 -2
- package/dist/components/tt-form/src/form/FormItem.vue.js +6 -5
- package/dist/components/tt-form/src/form/FormLabel.vue.js +8 -7
- package/dist/components/tt-form/src/form/RenderContent.vue.js +4 -3
- package/dist/components/tt-form/src/form-render/FormField.vue2.js +30 -28
- package/dist/components/tt-form/src/form-render/FormLabel.vue2.js +4 -2
- package/dist/components/tt-form/src/form-render/array-register/FormArrayRegister.d.ts +3 -3
- package/dist/components/tt-form/src/form-render/array-register/FormArrayRegister.js +1 -0
- package/dist/components/tt-form/src/form-render/array-register/utils.js +6 -4
- package/dist/components/tt-form/src/form-render/dependencies.js +19 -18
- package/dist/components/tt-form/src/form-render/form.vue2.js +4 -2
- package/dist/components/tt-form/src/form-render/helper.js +15 -14
- package/dist/components/tt-form/src/form-render/rootWrapperClass.js +3 -2
- package/dist/components/tt-form/src/formApi.js +3 -2
- package/dist/components/tt-form/src/group-form/GroupForm.vue2.js +4 -3
- package/dist/components/tt-form/src/group-form/GroupSection.vue2.js +2 -0
- package/dist/components/tt-form/src/group-form/LazyFormField.vue.js +4 -2
- package/dist/components/tt-form/src/group-form/groupFormApi.js +4 -3
- package/dist/components/tt-form/src/hooks/useForwardPriorityValues.js +3 -2
- package/dist/components/tt-form/src/hooks/useSelectCollapse.js +28 -27
- package/dist/components/tt-form/src/index.vue2.js +3 -2
- package/dist/components/tt-form/src/useFormContext.js +11 -10
- package/dist/components/tt-form-item-error-tooltip/index.js +5 -4
- package/dist/components/tt-form-item-error-tooltip/index.vue.js +4 -3
- package/dist/components/tt-icon/index.js +6 -5
- package/dist/components/tt-icon/index.vue.js +2 -2
- package/dist/components/tt-image/index.js +6 -5
- package/dist/components/tt-image/src/components/ImageViewer.js +7 -6
- package/dist/components/tt-loading/index.js +4 -3
- package/dist/components/tt-loading/src/directive.js +24 -23
- package/dist/components/tt-loading/src/loading.vue.js +2 -2
- package/dist/components/tt-log/index.js +4 -3
- package/dist/components/tt-log/index.vue.js +3 -2
- package/dist/components/tt-modal/index.js +3 -2
- package/dist/components/tt-modal/src/RenderModal.vue.js +3 -2
- package/dist/components/tt-modal/src/components/ModalFooter.vue2.js +3 -2
- package/dist/components/tt-modal/src/components/ModalHeader.vue2.js +3 -2
- package/dist/components/tt-modal/src/components/ModalWrapper.vue.js +15 -14
- package/dist/components/tt-modal/src/props.js +3 -2
- package/dist/components/tt-modal/src/utils/modal-api.js +4 -2
- package/dist/components/tt-modal-form/index.vue.js +4 -3
- package/dist/components/tt-nav-anchor/index.js +4 -3
- package/dist/components/tt-nav-anchor/src/TtNavAnchor.vue.js +15 -14
- package/dist/components/tt-panel-select/index.js +4 -3
- package/dist/components/tt-panel-select/src/components/PanelMiddle.vue.d.ts +2 -2
- package/dist/components/tt-panel-select/src/hooks/usePanelData.js +95 -87
- package/dist/components/tt-panel-select/src/index.vue.js +4 -2
- package/dist/components/tt-radio-group/index.js +4 -3
- package/dist/components/tt-radio-group/index.vue.js +7 -6
- package/dist/components/tt-select/index.js +4 -3
- package/dist/components/tt-select/src/Select.vue.d.ts +12 -12
- package/dist/components/tt-select/src/Select.vue.js +4 -3
- package/dist/components/tt-select/src/components/SelectTable.vue.d.ts +116 -7
- package/dist/components/tt-select/src/components/SelectTable.vue.js +3 -2
- package/dist/components/tt-select/src/components/Table.vue.d.ts +8 -8
- package/dist/components/tt-select/src/components/Table.vue.js +3 -2
- package/dist/components/tt-select/src/hooks/useDataSource.js +4 -3
- package/dist/components/tt-select/src/hooks/useKeyboard.d.ts +7 -1
- package/dist/components/tt-select/src/hooks/useSelect.js +3 -2
- package/dist/components/tt-select/src/hooks/useSelectTableEvent.d.ts +1 -1
- package/dist/components/tt-select/src/hooks/useSelectTableEvent.js +28 -27
- package/dist/components/tt-select/src/props.d.ts +2 -2
- package/dist/components/tt-table/index.d.ts +526 -361
- package/dist/components/tt-table/index.js +7 -5
- package/dist/components/tt-table/src/Table.vue.d.ts +308 -218
- package/dist/components/tt-table/src/Table.vue.js +406 -618
- package/dist/components/tt-table/src/TableForm.vue.d.ts +384 -19
- package/dist/components/tt-table/src/TableForm.vue.js +219 -229
- package/dist/components/tt-table/src/components/TableAction.vue.js +110 -131
- package/dist/components/tt-table/src/components/TableButtons.js +30 -29
- package/dist/components/tt-table/src/components/TableColumnModal.vue2.js +88 -84
- package/dist/components/tt-table/src/components/TableToolbarTools.vue.d.ts +80 -0
- package/dist/components/tt-table/src/components/{TableToobalTools.vue.js → TableToolbarTools.vue.js} +34 -35
- package/dist/components/tt-table/src/components/TableToolbarTools.vue2.js +4 -0
- package/dist/components/tt-table/src/emits.d.ts +10 -1
- package/dist/components/tt-table/src/emits.js +2 -1
- package/dist/components/tt-table/src/hooks/useColumnPersistence.d.ts +19 -0
- package/dist/components/tt-table/src/hooks/useColumnPersistence.js +64 -0
- package/dist/components/tt-table/src/hooks/useColumns.d.ts +505 -21
- package/dist/components/tt-table/src/hooks/useColumns.js +101 -245
- package/dist/components/tt-table/src/hooks/useGridProps.d.ts +36 -0
- package/dist/components/tt-table/src/hooks/useGridProps.js +121 -0
- package/dist/components/tt-table/src/hooks/useKeyboardNav.d.ts +11 -0
- package/dist/components/tt-table/src/hooks/useKeyboardNav.js +98 -0
- package/dist/components/tt-table/src/hooks/usePagination.d.ts +14 -8
- package/dist/components/tt-table/src/hooks/usePagination.js +30 -33
- package/dist/components/tt-table/src/hooks/useQuery.d.ts +41 -0
- package/dist/components/tt-table/src/hooks/useQuery.js +148 -0
- package/dist/components/tt-table/src/hooks/useRowIdentity.d.ts +22 -0
- package/dist/components/tt-table/src/hooks/useRowIdentity.js +97 -0
- package/dist/components/tt-table/src/hooks/useRowSelection.d.ts +24 -12
- package/dist/components/tt-table/src/hooks/useRowSelection.js +95 -70
- package/dist/components/tt-table/src/hooks/{useLeftRightSlot.d.ts → useSideSlot.d.ts} +25 -17
- package/dist/components/tt-table/src/hooks/useSideSlot.js +78 -0
- package/dist/components/tt-table/src/hooks/useSyncProps.d.ts +12 -0
- package/dist/components/tt-table/src/hooks/useSyncProps.js +56 -0
- package/dist/components/tt-table/src/hooks/useTableData.d.ts +71 -0
- package/dist/components/tt-table/src/hooks/useTableData.js +308 -0
- package/dist/components/tt-table/src/hooks/useTableFooter.d.ts +15 -0
- package/dist/components/tt-table/src/hooks/useTableFooter.js +47 -0
- package/dist/components/tt-table/src/hooks/useTableForm.d.ts +10 -5
- package/dist/components/tt-table/src/hooks/useTableForm.js +56 -48
- package/dist/components/tt-table/src/hooks/useTableMethods.d.ts +165 -0
- package/dist/components/tt-table/src/hooks/useTableMethods.js +183 -0
- package/dist/components/tt-table/src/hooks/useTableRender.d.ts +57 -55
- package/dist/components/tt-table/src/props.d.ts +326 -153
- package/dist/components/tt-table/src/props.js +125 -271
- package/dist/components/tt-table/src/table-defaults.d.ts +25 -0
- package/dist/components/tt-table/src/table-defaults.js +71 -0
- package/dist/components/tt-table/src/table-mutation-events.d.ts +43 -0
- package/dist/components/tt-table/src/table-mutation-events.js +71 -0
- package/dist/components/tt-table/src/types/table.d.ts +223 -88
- package/dist/components/tt-table/src/types/tableAction.d.ts +23 -0
- package/dist/components/tt-table/src/types/tableForm.d.ts +15 -26
- package/dist/components/tt-table/src/utils/action-tab-index.d.ts +2 -0
- package/dist/components/tt-table/src/utils/action-tab-index.js +51 -0
- package/dist/components/tt-table/src/utils/context.js +26 -12
- package/dist/components/tt-table/src/utils/table-api.d.ts +136 -58
- package/dist/components/tt-table/src/utils/table-api.js +200 -165
- package/dist/components/tt-table/src/utils/table-form-api.d.ts +11 -11
- package/dist/components/tt-table/src/utils/table-form-api.js +35 -23
- package/dist/components/tt-text/index.js +4 -3
- package/dist/components/tt-upload/index.js +6 -5
- package/dist/components/tt-upload/src/TtUpload.vue.js +4 -3
- package/dist/components/types.d.ts +0 -20
- package/dist/directives/disabled-tip/index.js +9 -8
- package/dist/hooks/useFormSchemasLink.js +4 -3
- package/dist/hooks/useFormat.d.ts +35 -71
- package/dist/hooks/useFormat.js +28 -39
- package/dist/hooks/usePanelSelectSchemas.js +4 -3
- package/dist/hooks/useScreenshotOss.js +16 -15
- package/dist/hooks/useSetup.js +0 -3
- package/dist/packages/hooks/src/useDebounce.js +6 -5
- package/dist/packages/hooks/src/useElementScreenshot.js +4 -3
- package/dist/packages/hooks/src/usePriorityValue.js +5 -4
- package/dist/packages/utils/src/format.js +48 -0
- package/dist/packages/utils/src/is.js +20 -18
- package/dist/packages/utils/src/tool.js +76 -149
- package/dist/plugins/default/renderCellContent.js +4 -3
- package/dist/plugins/vxeTable/switchStatus.js +14 -13
- package/dist/style.css +1 -1
- package/package.json +3 -3
- package/dist/components/tt-table/src/components/TableToobalTools.vue.d.ts +0 -576
- package/dist/components/tt-table/src/components/TableToobalTools.vue2.js +0 -4
- package/dist/components/tt-table/src/enum.d.ts +0 -2
- package/dist/components/tt-table/src/hooks/useCellArea.d.ts +0 -15
- package/dist/components/tt-table/src/hooks/useCellArea.js +0 -15
- package/dist/components/tt-table/src/hooks/useCustomColumns.d.ts +0 -20
- package/dist/components/tt-table/src/hooks/useCustomColumns.js +0 -65
- package/dist/components/tt-table/src/hooks/useDataSource.d.ts +0 -29
- package/dist/components/tt-table/src/hooks/useDataSource.js +0 -232
- package/dist/components/tt-table/src/hooks/useLeftRightSlot.js +0 -64
- package/dist/components/tt-table/src/hooks/useTable.d.ts +0 -7
- package/dist/components/tt-table/src/hooks/useTableEvent.d.ts +0 -101
- package/dist/components/tt-table/src/hooks/useTableEvent.js +0 -197
- package/dist/components/tt-table/src/hooks/useTableFormEvent.d.ts +0 -10
- package/dist/components/tt-table/src/hooks/useTableHeight.d.ts +0 -15
- package/dist/components/tt-table/src/hooks/useTableSlot.d.ts +0 -11
- package/dist/components/tt-table/src/hooks/useTableSlot.js +0 -17
- package/dist/components/tt-table/src/utils/filters.d.ts +0 -109
- package/dist/components/tt-table/src/utils/vxeTable.d.ts +0 -28
- package/dist/packages/utils/src/check.js +0 -10
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { defineComponent as V, mergeModels as d, useModel as y, useAttrs as B, computed as k, ref as
|
|
1
|
+
import { defineComponent as V, mergeModels as d, useModel as y, useAttrs as B, computed as k, ref as p, watch as x, createBlock as L, openBlock as w, unref as c, mergeProps as E, withCtx as M, renderSlot as P } 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 A } from "../../packages/hooks/src/useDesign.js";
|
|
4
4
|
import "axios";
|
|
5
5
|
import { useFormItem as D, ElRadioGroup as F } from "element-plus";
|
|
6
6
|
import "dayjs";
|
|
7
|
+
import "numeral";
|
|
7
8
|
import "xe-utils";
|
|
8
9
|
import "dayjs/plugin/utc";
|
|
9
10
|
import "dayjs/plugin/timezone";
|
|
@@ -14,7 +15,7 @@ import "../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/mode-ecb
|
|
|
14
15
|
import "../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/pad-pkcs7.js";
|
|
15
16
|
import { omit as m } from "lodash-es";
|
|
16
17
|
import "vue-router";
|
|
17
|
-
const
|
|
18
|
+
const W = /* @__PURE__ */ V({
|
|
18
19
|
name: "TtRadioGroup",
|
|
19
20
|
inheritAttrs: !1,
|
|
20
21
|
__name: "index",
|
|
@@ -41,7 +42,7 @@ const Q = /* @__PURE__ */ V({
|
|
|
41
42
|
const a = n, l = y(n, "modelValue"), s = f, g = B(), { prefixCls: v } = A("radio-group"), h = k(() => ({
|
|
42
43
|
...m(a, ["clearable", "beforeChange", "modelValue"]),
|
|
43
44
|
...m(g, ["onUpdate:modelValue", "onChange", "class"])
|
|
44
|
-
})), r =
|
|
45
|
+
})), r = p(l.value), { formItem: i } = D(), u = p(!1);
|
|
45
46
|
async function C(e) {
|
|
46
47
|
const o = l.value;
|
|
47
48
|
let t = !0;
|
|
@@ -59,10 +60,10 @@ const Q = /* @__PURE__ */ V({
|
|
|
59
60
|
})), u.value = !0;
|
|
60
61
|
},
|
|
61
62
|
{ immediate: !0 }
|
|
62
|
-
), (e, o) => (w(), L(
|
|
63
|
+
), (e, o) => (w(), L(c(F), E(h.value, {
|
|
63
64
|
modelValue: r.value,
|
|
64
65
|
"onUpdate:modelValue": o[0] || (o[0] = (t) => r.value = t),
|
|
65
|
-
class: [
|
|
66
|
+
class: [c(v), e.$attrs.class],
|
|
66
67
|
"validate-event": !1,
|
|
67
68
|
onClickCapture: b,
|
|
68
69
|
onChange: C
|
|
@@ -75,5 +76,5 @@ const Q = /* @__PURE__ */ V({
|
|
|
75
76
|
}
|
|
76
77
|
});
|
|
77
78
|
export {
|
|
78
|
-
|
|
79
|
+
W as default
|
|
79
80
|
};
|
|
@@ -3,6 +3,7 @@ import "element-plus";
|
|
|
3
3
|
import "dayjs";
|
|
4
4
|
import "vue";
|
|
5
5
|
import { withInstall as t } from "../../packages/utils/src/install.js";
|
|
6
|
+
import "numeral";
|
|
6
7
|
import "xe-utils";
|
|
7
8
|
import "dayjs/plugin/utc";
|
|
8
9
|
import "dayjs/plugin/timezone";
|
|
@@ -14,8 +15,8 @@ import "../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/pad-pkcs
|
|
|
14
15
|
import "lodash-es";
|
|
15
16
|
import o from "./src/Select.vue.js";
|
|
16
17
|
/* empty css */
|
|
17
|
-
const
|
|
18
|
+
const I = t(o);
|
|
18
19
|
export {
|
|
19
|
-
|
|
20
|
-
|
|
20
|
+
I as TtSelect,
|
|
21
|
+
I as default
|
|
21
22
|
};
|
|
@@ -75,8 +75,8 @@ declare function __VLS_template(): {
|
|
|
75
75
|
$refs: {
|
|
76
76
|
[x: string]: unknown;
|
|
77
77
|
} & {
|
|
78
|
-
vxelist: (import('vxe-pc-ui').VxeListMethods & {
|
|
79
|
-
$props: import('vxe-pc-ui').VxeListProps<any> & import('vxe-pc-ui').VxeListEventProps
|
|
78
|
+
vxelist: (import('vxe-pc-ui').VxeListMethods<any> & {
|
|
79
|
+
$props: import('vxe-pc-ui').VxeListProps<any> & import('vxe-pc-ui').VxeListEventProps<any>;
|
|
80
80
|
$slots: import('vxe-pc-ui').VxeListSlots;
|
|
81
81
|
}) | null;
|
|
82
82
|
table: HTMLTableElement;
|
|
@@ -101,7 +101,7 @@ declare function __VLS_template(): {
|
|
|
101
101
|
};
|
|
102
102
|
list: {
|
|
103
103
|
type: import('vue').PropType<Record<string, any>[]>;
|
|
104
|
-
default: () =>
|
|
104
|
+
default: () => Record<string, any>[];
|
|
105
105
|
};
|
|
106
106
|
loading: {
|
|
107
107
|
type: BooleanConstructor;
|
|
@@ -125,7 +125,7 @@ declare function __VLS_template(): {
|
|
|
125
125
|
};
|
|
126
126
|
selectValue: {
|
|
127
127
|
type: import('vue').PropType<TtSelectModelValueType>;
|
|
128
|
-
default: () =>
|
|
128
|
+
default: () => TtSelectModelValueType;
|
|
129
129
|
};
|
|
130
130
|
selectWidth: {
|
|
131
131
|
type: NumberConstructor;
|
|
@@ -261,7 +261,7 @@ declare function __VLS_template(): {
|
|
|
261
261
|
};
|
|
262
262
|
list: {
|
|
263
263
|
type: import('vue').PropType<Record<string, any>[]>;
|
|
264
|
-
default: () =>
|
|
264
|
+
default: () => Record<string, any>[];
|
|
265
265
|
};
|
|
266
266
|
loading: {
|
|
267
267
|
type: BooleanConstructor;
|
|
@@ -285,7 +285,7 @@ declare function __VLS_template(): {
|
|
|
285
285
|
};
|
|
286
286
|
selectValue: {
|
|
287
287
|
type: import('vue').PropType<TtSelectModelValueType>;
|
|
288
|
-
default: () =>
|
|
288
|
+
default: () => TtSelectModelValueType;
|
|
289
289
|
};
|
|
290
290
|
selectWidth: {
|
|
291
291
|
type: NumberConstructor;
|
|
@@ -570,8 +570,8 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
570
570
|
$refs: {
|
|
571
571
|
[x: string]: unknown;
|
|
572
572
|
} & {
|
|
573
|
-
vxelist: (import('vxe-pc-ui').VxeListMethods & {
|
|
574
|
-
$props: import('vxe-pc-ui').VxeListProps<any> & import('vxe-pc-ui').VxeListEventProps
|
|
573
|
+
vxelist: (import('vxe-pc-ui').VxeListMethods<any> & {
|
|
574
|
+
$props: import('vxe-pc-ui').VxeListProps<any> & import('vxe-pc-ui').VxeListEventProps<any>;
|
|
575
575
|
$slots: import('vxe-pc-ui').VxeListSlots;
|
|
576
576
|
}) | null;
|
|
577
577
|
table: HTMLTableElement;
|
|
@@ -596,7 +596,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
596
596
|
};
|
|
597
597
|
list: {
|
|
598
598
|
type: import('vue').PropType<Record<string, any>[]>;
|
|
599
|
-
default: () =>
|
|
599
|
+
default: () => Record<string, any>[];
|
|
600
600
|
};
|
|
601
601
|
loading: {
|
|
602
602
|
type: BooleanConstructor;
|
|
@@ -620,7 +620,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
620
620
|
};
|
|
621
621
|
selectValue: {
|
|
622
622
|
type: import('vue').PropType<TtSelectModelValueType>;
|
|
623
|
-
default: () =>
|
|
623
|
+
default: () => TtSelectModelValueType;
|
|
624
624
|
};
|
|
625
625
|
selectWidth: {
|
|
626
626
|
type: NumberConstructor;
|
|
@@ -756,7 +756,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
756
756
|
};
|
|
757
757
|
list: {
|
|
758
758
|
type: import('vue').PropType<Record<string, any>[]>;
|
|
759
|
-
default: () =>
|
|
759
|
+
default: () => Record<string, any>[];
|
|
760
760
|
};
|
|
761
761
|
loading: {
|
|
762
762
|
type: BooleanConstructor;
|
|
@@ -780,7 +780,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
780
780
|
};
|
|
781
781
|
selectValue: {
|
|
782
782
|
type: import('vue').PropType<TtSelectModelValueType>;
|
|
783
|
-
default: () =>
|
|
783
|
+
default: () => TtSelectModelValueType;
|
|
784
784
|
};
|
|
785
785
|
selectWidth: {
|
|
786
786
|
type: NumberConstructor;
|
|
@@ -6,8 +6,9 @@ import { useDesign as Ze } from "../../../packages/hooks/src/useDesign.js";
|
|
|
6
6
|
import "axios";
|
|
7
7
|
import { ElIcon as et, ElSelect as tt } from "element-plus";
|
|
8
8
|
import { isArray as ne, isObject as ot, isEmpty as lt } from "../../../packages/utils/src/is.js";
|
|
9
|
-
import "xe-utils";
|
|
10
9
|
import "dayjs";
|
|
10
|
+
import "numeral";
|
|
11
|
+
import "xe-utils";
|
|
11
12
|
import "dayjs/plugin/utc";
|
|
12
13
|
import "dayjs/plugin/timezone";
|
|
13
14
|
import "../../../node_modules/.pnpm/decimal.js@10.6.0/node_modules/decimal.js/decimal.js";
|
|
@@ -29,7 +30,7 @@ import { usePagination as ft } from "./hooks/usePagination.js";
|
|
|
29
30
|
import { useSelect as gt } from "./hooks/useSelect.js";
|
|
30
31
|
import { useSelectTableEvent as vt } from "./hooks/useSelectTableEvent.js";
|
|
31
32
|
import { selectProps as bt, configDefault as ht } from "./props.js";
|
|
32
|
-
const Pt = ["title"],
|
|
33
|
+
const Pt = ["title"], Yt = /* @__PURE__ */ Ne({
|
|
33
34
|
name: "TtSelect",
|
|
34
35
|
inheritAttrs: !1,
|
|
35
36
|
__name: "Select",
|
|
@@ -323,5 +324,5 @@ const Pt = ["title"], Xt = /* @__PURE__ */ Ne({
|
|
|
323
324
|
}
|
|
324
325
|
});
|
|
325
326
|
export {
|
|
326
|
-
|
|
327
|
+
Yt as default
|
|
327
328
|
};
|
|
@@ -1,11 +1,48 @@
|
|
|
1
|
-
import { VxeGridProps } from 'vxe-table';
|
|
1
|
+
import { VxeGridEventProps, VxeGridProps } from 'vxe-table';
|
|
2
2
|
/** 获取实例 */
|
|
3
3
|
declare function getGridInstance(): import('vxe-table').VxeGridInstance | undefined;
|
|
4
4
|
declare function __VLS_template(): {
|
|
5
5
|
attrs: Partial<{}>;
|
|
6
|
-
slots: Partial<Record<string, (_:
|
|
6
|
+
slots: Partial<Record<string, (_: {
|
|
7
|
+
[key: string]: any;
|
|
8
|
+
$table: import('vxe-table').VxeTableConstructor<any>;
|
|
9
|
+
$grid: import('vxe-table').VxeGridConstructor<any> | null | undefined;
|
|
10
|
+
$gantt: import('vxe-pc-ui').VxeGanttConstructor<any> | null | undefined;
|
|
11
|
+
rowid: string;
|
|
12
|
+
row: any;
|
|
13
|
+
rowIndex: number;
|
|
14
|
+
$rowIndex: number;
|
|
15
|
+
_rowIndex: number;
|
|
16
|
+
column: import("vxe-table").VxeTableDefines.ColumnInfo<any>;
|
|
17
|
+
columnIndex: number;
|
|
18
|
+
$columnIndex: number;
|
|
19
|
+
_columnIndex: number;
|
|
20
|
+
option: import("vxe-table").VxeColumnPropTypes.FilterItem;
|
|
21
|
+
type: string;
|
|
22
|
+
fixed: import("vxe-table").VxeColumnPropTypes.Fixed;
|
|
23
|
+
checked: boolean;
|
|
24
|
+
indeterminate: boolean;
|
|
25
|
+
seq: string | number;
|
|
26
|
+
level: number;
|
|
27
|
+
isEdit: boolean;
|
|
28
|
+
isHidden: boolean;
|
|
29
|
+
field: string;
|
|
30
|
+
item: any;
|
|
31
|
+
data: any;
|
|
32
|
+
tooltipContent: string;
|
|
33
|
+
groupContent: string;
|
|
34
|
+
groupField: string;
|
|
35
|
+
childCount: number;
|
|
36
|
+
groupValues: number;
|
|
37
|
+
aggValue: number;
|
|
38
|
+
visibleData: any[];
|
|
39
|
+
items: any[];
|
|
40
|
+
}) => any>>;
|
|
7
41
|
refs: {
|
|
8
|
-
gridRef: any
|
|
42
|
+
gridRef: (import('vxe-table').VxeGridMethods<any> & {
|
|
43
|
+
$props: VxeGridProps<any> & VxeGridEventProps<any>;
|
|
44
|
+
$slots: import('vxe-table').VxeGridSlots<any>;
|
|
45
|
+
}) | null;
|
|
9
46
|
};
|
|
10
47
|
rootEl: HTMLDivElement;
|
|
11
48
|
};
|
|
@@ -21,7 +58,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
21
58
|
};
|
|
22
59
|
list: {
|
|
23
60
|
type: import('vue').PropType<Record<string, any>[]>;
|
|
24
|
-
default: () =>
|
|
61
|
+
default: () => Record<string, any>[];
|
|
25
62
|
};
|
|
26
63
|
loading: {
|
|
27
64
|
type: BooleanConstructor;
|
|
@@ -45,7 +82,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
45
82
|
};
|
|
46
83
|
selectValue: {
|
|
47
84
|
type: import('vue').PropType<import('../types').TtSelectModelValueType>;
|
|
48
|
-
default: () =>
|
|
85
|
+
default: () => import('../types').TtSelectModelValueType;
|
|
49
86
|
};
|
|
50
87
|
selectWidth: {
|
|
51
88
|
type: NumberConstructor;
|
|
@@ -81,7 +118,76 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
81
118
|
};
|
|
82
119
|
}>, {
|
|
83
120
|
getGridInstance: typeof getGridInstance;
|
|
84
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin,
|
|
121
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
122
|
+
configProps: {
|
|
123
|
+
type: import('vue').PropType<import('../props').TtSelectProps["configProps"]>;
|
|
124
|
+
default: () => {};
|
|
125
|
+
};
|
|
126
|
+
grid: {
|
|
127
|
+
type: import('vue').PropType<import('../props').TtSelectProps["gridProps"]>;
|
|
128
|
+
default: () => {};
|
|
129
|
+
};
|
|
130
|
+
list: {
|
|
131
|
+
type: import('vue').PropType<Record<string, any>[]>;
|
|
132
|
+
default: () => Record<string, any>[];
|
|
133
|
+
};
|
|
134
|
+
loading: {
|
|
135
|
+
type: BooleanConstructor;
|
|
136
|
+
default: boolean;
|
|
137
|
+
};
|
|
138
|
+
showPager: {
|
|
139
|
+
type: BooleanConstructor;
|
|
140
|
+
default: boolean;
|
|
141
|
+
};
|
|
142
|
+
pagination: {
|
|
143
|
+
type: import('vue').PropType<VxeGridProps["pagerConfig"]>;
|
|
144
|
+
default: () => {};
|
|
145
|
+
};
|
|
146
|
+
multiple: {
|
|
147
|
+
type: BooleanConstructor;
|
|
148
|
+
default: boolean;
|
|
149
|
+
};
|
|
150
|
+
disableFn: {
|
|
151
|
+
type: import('vue').PropType<import('../types').TtSelectConfigProps["disableFn"]>;
|
|
152
|
+
default: null;
|
|
153
|
+
};
|
|
154
|
+
selectValue: {
|
|
155
|
+
type: import('vue').PropType<import('../types').TtSelectModelValueType>;
|
|
156
|
+
default: () => import('../types').TtSelectModelValueType;
|
|
157
|
+
};
|
|
158
|
+
selectWidth: {
|
|
159
|
+
type: NumberConstructor;
|
|
160
|
+
default: number;
|
|
161
|
+
};
|
|
162
|
+
deleteField: {
|
|
163
|
+
type: StringConstructor;
|
|
164
|
+
default: string;
|
|
165
|
+
};
|
|
166
|
+
setPagination: {
|
|
167
|
+
type: import('vue').PropType<(pagination: VxeGridProps["pagerConfig"]) => void>;
|
|
168
|
+
default: null;
|
|
169
|
+
};
|
|
170
|
+
getPagination: {
|
|
171
|
+
type: import('vue').PropType<() => VxeGridProps["pagerConfig"]>;
|
|
172
|
+
default: null;
|
|
173
|
+
};
|
|
174
|
+
reload: {
|
|
175
|
+
type: import('vue').PropType<(bool?: boolean) => Promise<void>>;
|
|
176
|
+
default: null;
|
|
177
|
+
};
|
|
178
|
+
hasNextPage: {
|
|
179
|
+
type: BooleanConstructor;
|
|
180
|
+
default: boolean;
|
|
181
|
+
};
|
|
182
|
+
showCheckbox: {
|
|
183
|
+
type: BooleanConstructor;
|
|
184
|
+
default: boolean;
|
|
185
|
+
};
|
|
186
|
+
multipleLimit: {
|
|
187
|
+
type: NumberConstructor;
|
|
188
|
+
default: number;
|
|
189
|
+
};
|
|
190
|
+
}>> & Readonly<{}>, {
|
|
85
191
|
grid: import('../props').TtSelectGridProps;
|
|
86
192
|
list: Record<string, any>[];
|
|
87
193
|
reload: (bool?: boolean) => Promise<void>;
|
|
@@ -100,7 +206,10 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
100
206
|
hasNextPage: boolean;
|
|
101
207
|
showCheckbox: boolean;
|
|
102
208
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
|
|
103
|
-
gridRef: any
|
|
209
|
+
gridRef: (import('vxe-table').VxeGridMethods<any> & {
|
|
210
|
+
$props: VxeGridProps<any> & VxeGridEventProps<any>;
|
|
211
|
+
$slots: import('vxe-table').VxeGridSlots<any>;
|
|
212
|
+
}) | null;
|
|
104
213
|
}, HTMLDivElement>;
|
|
105
214
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
106
215
|
export default _default;
|
|
@@ -4,6 +4,7 @@ import { useDesign as j } from "../../../../packages/hooks/src/useDesign.js";
|
|
|
4
4
|
import "axios";
|
|
5
5
|
import { vLoading as B } from "element-plus";
|
|
6
6
|
import "dayjs";
|
|
7
|
+
import "numeral";
|
|
7
8
|
import L from "xe-utils";
|
|
8
9
|
import "dayjs/plugin/utc";
|
|
9
10
|
import "dayjs/plugin/timezone";
|
|
@@ -20,7 +21,7 @@ import { tableEmits as c } from "vxe-table/es/table/src/emits";
|
|
|
20
21
|
import { GRID_MIN_HEIGHT as A, GRID_MAX_HEIGHT as U } from "../const.js";
|
|
21
22
|
import { useGrid as Y } from "../hooks/useGrid.js";
|
|
22
23
|
import { selectTableProps as $ } from "../props.js";
|
|
23
|
-
const q = { class: "flex flex-col items-center justify-center" },
|
|
24
|
+
const q = { class: "flex flex-col items-center justify-center" }, ve = /* @__PURE__ */ C({
|
|
24
25
|
__name: "SelectTable",
|
|
25
26
|
props: $,
|
|
26
27
|
emits: c,
|
|
@@ -94,5 +95,5 @@ const q = { class: "flex flex-col items-center justify-center" }, he = /* @__PUR
|
|
|
94
95
|
}
|
|
95
96
|
});
|
|
96
97
|
export {
|
|
97
|
-
|
|
98
|
+
ve as default
|
|
98
99
|
};
|
|
@@ -32,8 +32,8 @@ declare function __VLS_template(): {
|
|
|
32
32
|
empty: () => VNode;
|
|
33
33
|
};
|
|
34
34
|
refs: {
|
|
35
|
-
vxelist: (import('vxe-pc-ui').VxeListMethods & {
|
|
36
|
-
$props: VxeListProps<any> & import('vxe-pc-ui').VxeListEventProps
|
|
35
|
+
vxelist: (import('vxe-pc-ui').VxeListMethods<any> & {
|
|
36
|
+
$props: VxeListProps<any> & import('vxe-pc-ui').VxeListEventProps<any>;
|
|
37
37
|
$slots: import('vxe-pc-ui').VxeListSlots;
|
|
38
38
|
}) | null;
|
|
39
39
|
table: HTMLTableElement;
|
|
@@ -53,7 +53,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
53
53
|
};
|
|
54
54
|
list: {
|
|
55
55
|
type: import('vue').PropType<Record<string, any>[]>;
|
|
56
|
-
default: () =>
|
|
56
|
+
default: () => Record<string, any>[];
|
|
57
57
|
};
|
|
58
58
|
loading: {
|
|
59
59
|
type: BooleanConstructor;
|
|
@@ -77,7 +77,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
77
77
|
};
|
|
78
78
|
selectValue: {
|
|
79
79
|
type: import('vue').PropType<import('../types').TtSelectModelValueType>;
|
|
80
|
-
default: () =>
|
|
80
|
+
default: () => import('../types').TtSelectModelValueType;
|
|
81
81
|
};
|
|
82
82
|
selectWidth: {
|
|
83
83
|
type: NumberConstructor;
|
|
@@ -152,7 +152,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
152
152
|
};
|
|
153
153
|
list: {
|
|
154
154
|
type: import('vue').PropType<Record<string, any>[]>;
|
|
155
|
-
default: () =>
|
|
155
|
+
default: () => Record<string, any>[];
|
|
156
156
|
};
|
|
157
157
|
loading: {
|
|
158
158
|
type: BooleanConstructor;
|
|
@@ -176,7 +176,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
176
176
|
};
|
|
177
177
|
selectValue: {
|
|
178
178
|
type: import('vue').PropType<import('../types').TtSelectModelValueType>;
|
|
179
|
-
default: () =>
|
|
179
|
+
default: () => import('../types').TtSelectModelValueType;
|
|
180
180
|
};
|
|
181
181
|
selectWidth: {
|
|
182
182
|
type: NumberConstructor;
|
|
@@ -234,8 +234,8 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
234
234
|
hasNextPage: boolean;
|
|
235
235
|
showCheckbox: boolean;
|
|
236
236
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
|
|
237
|
-
vxelist: (import('vxe-pc-ui').VxeListMethods & {
|
|
238
|
-
$props: VxeListProps<any> & import('vxe-pc-ui').VxeListEventProps
|
|
237
|
+
vxelist: (import('vxe-pc-ui').VxeListMethods<any> & {
|
|
238
|
+
$props: VxeListProps<any> & import('vxe-pc-ui').VxeListEventProps<any>;
|
|
239
239
|
$slots: import('vxe-pc-ui').VxeListSlots;
|
|
240
240
|
}) | null;
|
|
241
241
|
table: HTMLTableElement;
|
|
@@ -2,6 +2,7 @@ import { defineComponent as We, useTemplateRef as S, ref as v, shallowRef as we,
|
|
|
2
2
|
import "axios";
|
|
3
3
|
import { ElCheckbox as Z, ElTooltip as Be } from "element-plus";
|
|
4
4
|
import "dayjs";
|
|
5
|
+
import "numeral";
|
|
5
6
|
import "xe-utils";
|
|
6
7
|
import "dayjs/plugin/utc";
|
|
7
8
|
import "dayjs/plugin/timezone";
|
|
@@ -25,7 +26,7 @@ const Ge = { class: "vxe-table--render-default size--mini border--default" }, Xe
|
|
|
25
26
|
}, je = ["onClick", "onMouseenter"], Je = { class: "vxe-cell" }, Ke = {
|
|
26
27
|
key: 1,
|
|
27
28
|
class: "vxe-body--column is--padding col--ellipsis"
|
|
28
|
-
}, Qe = { class: "vxe-cell" },
|
|
29
|
+
}, Qe = { class: "vxe-cell" }, yt = /* @__PURE__ */ We({
|
|
29
30
|
name: "TtSelectTable",
|
|
30
31
|
__name: "Table",
|
|
31
32
|
props: Ae,
|
|
@@ -314,5 +315,5 @@ const Ge = { class: "vxe-table--render-default size--mini border--default" }, Xe
|
|
|
314
315
|
}
|
|
315
316
|
});
|
|
316
317
|
export {
|
|
317
|
-
|
|
318
|
+
yt as default
|
|
318
319
|
};
|
|
@@ -2,8 +2,9 @@ import "axios";
|
|
|
2
2
|
import { ElMessage as fe } from "element-plus";
|
|
3
3
|
import { isFunction as v, isNullOrUnDef as w } from "../../../../packages/utils/src/is.js";
|
|
4
4
|
import { ref as g, computed as u, unref as e, watch as h, nextTick as oe, toValue as b } from "vue";
|
|
5
|
-
import "xe-utils";
|
|
6
5
|
import "dayjs";
|
|
6
|
+
import "numeral";
|
|
7
|
+
import "xe-utils";
|
|
7
8
|
import "dayjs/plugin/utc";
|
|
8
9
|
import "dayjs/plugin/timezone";
|
|
9
10
|
import "../../../../node_modules/.pnpm/decimal.js@10.6.0/node_modules/decimal.js/decimal.js";
|
|
@@ -14,7 +15,7 @@ import "../../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/pa
|
|
|
14
15
|
import { cloneDeep as B, isArray as k, set as A, get as S } from "lodash-es";
|
|
15
16
|
import { useDebounceFn as ge } from "@vueuse/core";
|
|
16
17
|
import { isEqualObject as x } from "../utils/index.js";
|
|
17
|
-
function
|
|
18
|
+
function Ne(a, l, C) {
|
|
18
19
|
const F = g([]), P = g(""), D = g(!0), K = g([]), M = g(-1), L = g(!1), G = g(!1), E = g(!1), q = g(!1), H = u(() => e(a).isGrpc ? e(a).totalFieldGrpc || "total" : e(a).totalField || "data.pagination.total"), J = u(() => e(a).isGrpc ? e(a).dataFieldGrpc || "items" : e(a).dataField || "data"), Q = u(() => e(a).isGrpc ? e(a).resultFieldGrpc || "items" : e(a).resultField || "data.list"), W = u(() => e(a).searchField || "keyword"), V = u(() => e(a).valueField || "value"), O = u(() => e(a).labelField || "label"), z = u(() => e(a).mergeFields || []), X = u(() => e(a).isGrpc ? e(a).currentPageFieldGrpc || "page.index" : e(a).currentPageField || "pageIndex"), Y = u(() => e(a).isGrpc ? e(a).pageSizeFieldGrpc || "page.size" : e(a).pageSizeField || "pageSize"), R = u(() => e(a).deleteField || ""), Z = u(() => e(a).messageField || ""), $ = u(() => e(a).hasNextPageField), N = u(() => e(a).immediate || !1), p = u(() => e(a).changeDataClearable || !1), ee = u(() => e(a).defaultSingle), te = u(() => e(a).isSelectFirstOption), ae = u(() => e(G) || e(L));
|
|
19
20
|
let I = e(a).isPage ?? !0;
|
|
20
21
|
async function ie(t) {
|
|
@@ -202,5 +203,5 @@ function ze(a, l, C) {
|
|
|
202
203
|
};
|
|
203
204
|
}
|
|
204
205
|
export {
|
|
205
|
-
|
|
206
|
+
Ne as useDataSource
|
|
206
207
|
};
|
|
@@ -6,7 +6,13 @@ type OptType = {
|
|
|
6
6
|
/**
|
|
7
7
|
* 获取表格实例的函数
|
|
8
8
|
*/
|
|
9
|
-
|
|
9
|
+
/**
|
|
10
|
+
* 获取表格实例。
|
|
11
|
+
*
|
|
12
|
+
* 返回值可能为 `undefined`:下拉面板未展开时表格还没挂载。
|
|
13
|
+
* 内部各键盘处理函数都有 `if (!tableRef) return` 守卫,签名与实现保持一致。
|
|
14
|
+
*/
|
|
15
|
+
tableInstance: () => VxeGridInstance | undefined;
|
|
10
16
|
/**
|
|
11
17
|
* 当前活动行的索引
|
|
12
18
|
*/
|
|
@@ -2,6 +2,7 @@ import "axios";
|
|
|
2
2
|
import "element-plus";
|
|
3
3
|
import "dayjs";
|
|
4
4
|
import { ref as w, computed as d, unref as t, watchEffect as I } from "vue";
|
|
5
|
+
import "numeral";
|
|
5
6
|
import { calcWordsWidth as M } from "../../../../packages/utils/src/tool.js";
|
|
6
7
|
import "../../../../node_modules/.pnpm/decimal.js@10.6.0/node_modules/decimal.js/decimal.js";
|
|
7
8
|
import "../../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/aes.js";
|
|
@@ -9,7 +10,7 @@ import "../../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/en
|
|
|
9
10
|
import "../../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/mode-ecb.js";
|
|
10
11
|
import "../../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/pad-pkcs7.js";
|
|
11
12
|
import { get as L } from "lodash-es";
|
|
12
|
-
function
|
|
13
|
+
function G(n, e) {
|
|
13
14
|
const S = w(1), h = /* @__PURE__ */ new Map(), m = w(0), p = w(!1), b = d(() => e.collapse ?? t(n).multiple), W = d(() => e.isFilterMethod ?? !0), E = d(() => e.searchField), v = d(() => {
|
|
14
15
|
if (e.autoSelectWidth && !t(n).multiple && t(e.selectOption)) {
|
|
15
16
|
const l = t(e.selectOption).label || "";
|
|
@@ -104,5 +105,5 @@ function q(n, e) {
|
|
|
104
105
|
};
|
|
105
106
|
}
|
|
106
107
|
export {
|
|
107
|
-
|
|
108
|
+
G as useSelect
|
|
108
109
|
};
|