vft 0.0.147 → 0.0.148
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/attributes.json +1 -1
- package/dist/index.css +1 -1
- package/es/app-components/form/form-label-wrap.d.ts +2 -2
- package/es/components/date-picker/date-picker-com/panel-date-pick.vue.d.ts +1 -1
- package/es/components/date-picker/date-picker-com/panel-date-range.vue.d.ts +1 -1
- package/es/components/date-picker/panel-utils.d.ts +8 -8
- package/es/components/multiple-tabs/tab-content.vue.d.ts +1 -2
- package/es/components/table/table.vue2.js +141 -143
- package/es/components/table/use/use-table.js +4 -1
- package/es/components/verify-code/index.d.ts +5 -1
- package/es/components/verify-code/verify-code.vue.d.ts +5 -1
- package/es/package.json.d.ts +11 -11
- package/es/package.json.js +1 -1
- package/lib/app-components/form/form-label-wrap.d.ts +2 -2
- package/lib/components/date-picker/date-picker-com/panel-date-pick.vue.d.ts +1 -1
- package/lib/components/date-picker/date-picker-com/panel-date-range.vue.d.ts +1 -1
- package/lib/components/date-picker/panel-utils.d.ts +8 -8
- package/lib/components/multiple-tabs/tab-content.vue.d.ts +1 -2
- package/lib/components/table/table.vue2.cjs +1 -1
- package/lib/components/table/use/use-table.cjs +1 -1
- package/lib/components/verify-code/index.d.ts +5 -1
- package/lib/components/verify-code/verify-code.vue.d.ts +5 -1
- package/lib/package.json.cjs +1 -1
- package/lib/package.json.d.ts +11 -11
- package/package.json +11 -11
- package/tags.json +1 -1
- package/theme-style/index.css +1 -1
- package/theme-style/src/autocomplete.scss +20 -20
- package/theme-style/src/badge.scss +8 -11
- package/theme-style/src/breadcrumb.scss +2 -0
- package/theme-style/src/button-group.scss +29 -22
- package/theme-style/src/calendar.scss +13 -12
- package/theme-style/src/carousel-item.scss +2 -0
- package/theme-style/src/carousel.scss +7 -7
- package/theme-style/src/cascader-panel.scss +28 -28
- package/theme-style/src/cascader.scss +63 -63
- package/theme-style/src/check-tag.scss +5 -5
- package/theme-style/src/checkbox-button.scss +13 -14
- package/theme-style/src/checkbox.scss +38 -37
- package/theme-style/src/clamp-toggle.scss +1 -0
- package/theme-style/src/col.scss +2 -5
- package/theme-style/src/collapse.scss +10 -5
- package/theme-style/src/color/index.scss +0 -1
- package/theme-style/src/common/popup.scss +2 -0
- package/theme-style/src/dark/css-vars.scss +0 -1
- package/theme-style/src/dark/var.scss +1 -1
- package/theme-style/src/date-picker/date-range-picker.scss +22 -22
- package/theme-style/src/date-picker/date-table.scss +5 -0
- package/theme-style/src/date-picker/month-table.scss +7 -0
- package/theme-style/src/date-picker/picker-panel.scss +15 -14
- package/theme-style/src/date-picker/picker.scss +35 -34
- package/theme-style/src/date-picker/year-table.scss +1 -0
- package/theme-style/src/date-time-select.scss +7 -6
- package/theme-style/src/drawer.scss +15 -13
- package/theme-style/src/dropdown.scss +45 -49
- package/theme-style/src/footer-layout.scss +4 -4
- package/theme-style/src/footer.scss +2 -2
- package/theme-style/src/header.scss +2 -2
- package/theme-style/src/image.scss +5 -0
- package/theme-style/src/md/figure.scss +0 -4
- package/theme-style/src/md-vue-playground.scss +2 -2
- package/theme-style/src/message-box.scss +28 -29
- package/theme-style/src/mixins/_button.scss +1 -1
- package/theme-style/src/mixins/_col.scss +8 -7
- package/theme-style/src/notification.scss +19 -18
- package/theme-style/src/option-group.scss +0 -1
- package/theme-style/src/option-item.scss +0 -1
- package/theme-style/src/option.scss +0 -1
- package/theme-style/src/overlay.scss +3 -3
- package/theme-style/src/page-wrapper.scss +1 -1
- package/theme-style/src/popover.scss +2 -1
- package/theme-style/src/popper.scss +44 -42
- package/theme-style/src/radio-button.scss +22 -23
- package/theme-style/src/radio.scss +43 -42
- package/theme-style/src/rate.scss +36 -38
- package/theme-style/src/result.scss +8 -7
- package/theme-style/src/row.scss +6 -0
- package/theme-style/src/scrollbar.scss +1 -1
- package/theme-style/src/search.scss +4 -4
- package/theme-style/src/select/common.scss +1 -0
- package/theme-style/src/select-dropdown-v2.scss +5 -5
- package/theme-style/src/select-dropdown.scss +0 -1
- package/theme-style/src/skeleton.scss +4 -2
- package/theme-style/src/slider.scss +16 -15
- package/theme-style/src/spinner.scss +3 -0
- package/theme-style/src/step.scss +5 -5
- package/theme-style/src/tag.scss +77 -76
- package/theme-style/src/timeline-item.scss +15 -12
- package/theme-style/src/transfer.scss +6 -2
- package/theme-style/src/var.scss +0 -1
- package/theme-style/src/virtual-list.scss +7 -2
- package/theme-style/vft-autocomplete.css +1 -1
- package/theme-style/vft-badge.css +1 -1
- package/theme-style/vft-button-group.css +1 -1
- package/theme-style/vft-calendar.css +1 -1
- package/theme-style/vft-carousel.css +1 -1
- package/theme-style/vft-cascader-panel.css +1 -1
- package/theme-style/vft-cascader.css +1 -1
- package/theme-style/vft-check-tag.css +1 -1
- package/theme-style/vft-checkbox-button.css +1 -1
- package/theme-style/vft-checkbox.css +1 -1
- package/theme-style/vft-col.css +1 -1
- package/theme-style/vft-collapse.css +1 -1
- package/theme-style/vft-date-picker.css +1 -1
- package/theme-style/vft-date-time-select.css +1 -1
- package/theme-style/vft-drawer.css +1 -1
- package/theme-style/vft-dropdown.css +1 -1
- package/theme-style/vft-footer-layout.css +1 -1
- package/theme-style/vft-footer.css +1 -1
- package/theme-style/vft-header.css +1 -1
- package/theme-style/vft-md-vue-playground.css +1 -1
- package/theme-style/vft-message-box.css +1 -1
- package/theme-style/vft-notification.css +1 -1
- package/theme-style/vft-page-wrapper.css +1 -1
- package/theme-style/vft-popover.css +1 -1
- package/theme-style/vft-popper.css +1 -1
- package/theme-style/vft-radio-button.css +1 -1
- package/theme-style/vft-radio.css +1 -1
- package/theme-style/vft-rate.css +1 -1
- package/theme-style/vft-result.css +1 -1
- package/theme-style/vft-search.css +1 -1
- package/theme-style/vft-select-dropdown-v2.css +1 -1
- package/theme-style/vft-select.css +1 -1
- package/theme-style/vft-slider.css +1 -1
- package/theme-style/vft-step.css +1 -1
- package/theme-style/vft-tag.css +1 -1
- package/theme-style/vft-time-picker.css +1 -1
- package/theme-style/vft-time-select.css +1 -1
- package/theme-style/vft-timeline-item.css +1 -1
- package/theme-style/vft-transfer.css +1 -1
- package/web-types.json +1 -1
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
declare const _default: import("vue").DefineComponent<{
|
|
2
2
|
isAutoWidth: BooleanConstructor;
|
|
3
3
|
updateAll: BooleanConstructor;
|
|
4
|
-
}, () => JSX.Element | null,
|
|
4
|
+
}, () => JSX.Element | null, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
5
5
|
isAutoWidth: BooleanConstructor;
|
|
6
6
|
updateAll: BooleanConstructor;
|
|
7
7
|
}>>, {
|
|
8
8
|
isAutoWidth: boolean;
|
|
9
9
|
updateAll: boolean;
|
|
10
|
-
}>;
|
|
10
|
+
}, {}>;
|
|
11
11
|
export default _default;
|
|
@@ -44,8 +44,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
44
44
|
__epPropKey: true;
|
|
45
45
|
};
|
|
46
46
|
}>> & {
|
|
47
|
-
"onPanel-change"?: ((...args: any[]) => any) | undefined;
|
|
48
47
|
onPick?: ((...args: any[]) => any) | undefined;
|
|
48
|
+
"onPanel-change"?: ((...args: any[]) => any) | undefined;
|
|
49
49
|
"onSet-picker-option"?: ((...args: any[]) => any) | undefined;
|
|
50
50
|
}, {
|
|
51
51
|
format: string;
|
|
@@ -33,9 +33,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
33
33
|
__epPropKey: true;
|
|
34
34
|
};
|
|
35
35
|
}>> & {
|
|
36
|
+
onPick?: ((...args: any[]) => any) | undefined;
|
|
36
37
|
"onCalendar-change"?: ((...args: any[]) => any) | undefined;
|
|
37
38
|
"onPanel-change"?: ((...args: any[]) => any) | undefined;
|
|
38
|
-
onPick?: ((...args: any[]) => any) | undefined;
|
|
39
39
|
"onSet-picker-option"?: ((...args: any[]) => any) | undefined;
|
|
40
40
|
}, {
|
|
41
41
|
unlinkPanels: boolean;
|
|
@@ -51,8 +51,8 @@ export declare const getPanel: (type: IDatePickerType) => ({
|
|
|
51
51
|
[key: string]: any;
|
|
52
52
|
}>) => void)[] | undefined;
|
|
53
53
|
readonly visible?: import("../../utils").EpPropMergeType<BooleanConstructor, unknown, unknown> | undefined;
|
|
54
|
-
"onPanel-change"?: ((...args: any[]) => any) | undefined;
|
|
55
54
|
onPick?: ((...args: any[]) => any) | undefined;
|
|
55
|
+
"onPanel-change"?: ((...args: any[]) => any) | undefined;
|
|
56
56
|
readonly parsedValue?: import("../../utils").EpPropMergeType<(new (...args: any[]) => import("dayjs").Dayjs | import("dayjs").Dayjs[]) | (() => import("dayjs").Dayjs | import("dayjs").Dayjs[]) | ((new (...args: any[]) => import("dayjs").Dayjs | import("dayjs").Dayjs[]) | (() => import("dayjs").Dayjs | import("dayjs").Dayjs[]))[], unknown, unknown> | undefined;
|
|
57
57
|
"onSet-picker-option"?: ((...args: any[]) => any) | undefined;
|
|
58
58
|
};
|
|
@@ -90,8 +90,8 @@ export declare const getPanel: (type: IDatePickerType) => ({
|
|
|
90
90
|
__epPropKey: true;
|
|
91
91
|
};
|
|
92
92
|
}>> & {
|
|
93
|
-
"onPanel-change"?: ((...args: any[]) => any) | undefined;
|
|
94
93
|
onPick?: ((...args: any[]) => any) | undefined;
|
|
94
|
+
"onPanel-change"?: ((...args: any[]) => any) | undefined;
|
|
95
95
|
"onSet-picker-option"?: ((...args: any[]) => any) | undefined;
|
|
96
96
|
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
97
97
|
"panel-change": (...args: any[]) => void;
|
|
@@ -140,8 +140,8 @@ export declare const getPanel: (type: IDatePickerType) => ({
|
|
|
140
140
|
__epPropKey: true;
|
|
141
141
|
};
|
|
142
142
|
}>> & {
|
|
143
|
-
"onPanel-change"?: ((...args: any[]) => any) | undefined;
|
|
144
143
|
onPick?: ((...args: any[]) => any) | undefined;
|
|
144
|
+
"onPanel-change"?: ((...args: any[]) => any) | undefined;
|
|
145
145
|
"onSet-picker-option"?: ((...args: any[]) => any) | undefined;
|
|
146
146
|
} & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties & {};
|
|
147
147
|
__isFragment?: undefined;
|
|
@@ -168,8 +168,8 @@ export declare const getPanel: (type: IDatePickerType) => ({
|
|
|
168
168
|
__epPropKey: true;
|
|
169
169
|
};
|
|
170
170
|
}>> & {
|
|
171
|
-
"onPanel-change"?: ((...args: any[]) => any) | undefined;
|
|
172
171
|
onPick?: ((...args: any[]) => any) | undefined;
|
|
172
|
+
"onPanel-change"?: ((...args: any[]) => any) | undefined;
|
|
173
173
|
"onSet-picker-option"?: ((...args: any[]) => any) | undefined;
|
|
174
174
|
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
175
175
|
"panel-change": (...args: any[]) => void;
|
|
@@ -234,9 +234,9 @@ export declare const getPanel: (type: IDatePickerType) => ({
|
|
|
234
234
|
}>) => void) | ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
235
235
|
[key: string]: any;
|
|
236
236
|
}>) => void)[] | undefined;
|
|
237
|
+
onPick?: ((...args: any[]) => any) | undefined;
|
|
237
238
|
"onCalendar-change"?: ((...args: any[]) => any) | undefined;
|
|
238
239
|
"onPanel-change"?: ((...args: any[]) => any) | undefined;
|
|
239
|
-
onPick?: ((...args: any[]) => any) | undefined;
|
|
240
240
|
readonly parsedValue?: import("dayjs").Dayjs[] | undefined;
|
|
241
241
|
"onSet-picker-option"?: ((...args: any[]) => any) | undefined;
|
|
242
242
|
};
|
|
@@ -268,9 +268,9 @@ export declare const getPanel: (type: IDatePickerType) => ({
|
|
|
268
268
|
__epPropKey: true;
|
|
269
269
|
};
|
|
270
270
|
}>> & {
|
|
271
|
+
onPick?: ((...args: any[]) => any) | undefined;
|
|
271
272
|
"onCalendar-change"?: ((...args: any[]) => any) | undefined;
|
|
272
273
|
"onPanel-change"?: ((...args: any[]) => any) | undefined;
|
|
273
|
-
onPick?: ((...args: any[]) => any) | undefined;
|
|
274
274
|
"onSet-picker-option"?: ((...args: any[]) => any) | undefined;
|
|
275
275
|
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
276
276
|
"calendar-change": (...args: any[]) => void;
|
|
@@ -314,9 +314,9 @@ export declare const getPanel: (type: IDatePickerType) => ({
|
|
|
314
314
|
__epPropKey: true;
|
|
315
315
|
};
|
|
316
316
|
}>> & {
|
|
317
|
+
onPick?: ((...args: any[]) => any) | undefined;
|
|
317
318
|
"onCalendar-change"?: ((...args: any[]) => any) | undefined;
|
|
318
319
|
"onPanel-change"?: ((...args: any[]) => any) | undefined;
|
|
319
|
-
onPick?: ((...args: any[]) => any) | undefined;
|
|
320
320
|
"onSet-picker-option"?: ((...args: any[]) => any) | undefined;
|
|
321
321
|
} & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties & {};
|
|
322
322
|
__isFragment?: undefined;
|
|
@@ -337,9 +337,9 @@ export declare const getPanel: (type: IDatePickerType) => ({
|
|
|
337
337
|
__epPropKey: true;
|
|
338
338
|
};
|
|
339
339
|
}>> & {
|
|
340
|
+
onPick?: ((...args: any[]) => any) | undefined;
|
|
340
341
|
"onCalendar-change"?: ((...args: any[]) => any) | undefined;
|
|
341
342
|
"onPanel-change"?: ((...args: any[]) => any) | undefined;
|
|
342
|
-
onPick?: ((...args: any[]) => any) | undefined;
|
|
343
343
|
"onSet-picker-option"?: ((...args: any[]) => any) | undefined;
|
|
344
344
|
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
345
345
|
"calendar-change": (...args: any[]) => void;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { type RouteLocationNormalized } from 'vue-router';
|
|
2
|
-
declare function handleContext(e: MouseEvent): void;
|
|
3
2
|
declare const _default: import("vue").DefineComponent<{
|
|
4
3
|
tabItem: {
|
|
5
4
|
type: import("vue").PropType<RouteLocationNormalized>;
|
|
@@ -16,7 +15,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
16
15
|
type: import("vue").PropType<boolean>;
|
|
17
16
|
};
|
|
18
17
|
}, {
|
|
19
|
-
handleContext:
|
|
18
|
+
handleContext: (e: MouseEvent) => void;
|
|
20
19
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
21
20
|
tabItem: {
|
|
22
21
|
type: import("vue").PropType<RouteLocationNormalized>;
|
|
@@ -1,41 +1,42 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { deepMerge as
|
|
3
|
-
import { VftEmpty as
|
|
4
|
-
import { vLoading as
|
|
1
|
+
import { defineComponent as N, useAttrs as ae, ref as d, getCurrentInstance as le, computed as g, unref as e, watch as re, nextTick as ne, toRaw as ce, openBlock as f, createElementBlock as ie, normalizeClass as se, createVNode as D, mergeProps as H, withCtx as m, renderSlot as T, createBlock as F, createCommentVNode as A, withDirectives as de, createElementVNode as ge } from "vue";
|
|
2
|
+
import { deepMerge as E, omit as fe, isFunction as me } from "@vft/utils";
|
|
3
|
+
import { VftEmpty as ue } from "../empty/index.js";
|
|
4
|
+
import { vLoading as pe } from "../loading/directive.js";
|
|
5
5
|
import "@vueuse/core";
|
|
6
6
|
import "../../utils/ns-cover.js";
|
|
7
7
|
import "lodash";
|
|
8
|
-
import { useNamespace as
|
|
8
|
+
import { useNamespace as he } from "../../hooks/use-namespace/index.js";
|
|
9
9
|
import "@popperjs/core";
|
|
10
10
|
import "../../hooks/use-z-index/index.js";
|
|
11
11
|
import "../icon/index.js";
|
|
12
|
-
import { VftPagination as
|
|
13
|
-
import { VftSuperForm as
|
|
14
|
-
import { PAGE_SIZE as
|
|
15
|
-
import { useColumns as
|
|
16
|
-
import { useDataSource as
|
|
17
|
-
import { useLoading as
|
|
18
|
-
import { usePagination as
|
|
19
|
-
import
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
|
|
12
|
+
import { VftPagination as be } from "../pagination/index.js";
|
|
13
|
+
import { VftSuperForm as ye } from "../super-form/index.js";
|
|
14
|
+
import { PAGE_SIZE as Ce } from "./constants.js";
|
|
15
|
+
import { useColumns as xe } from "./use/use-columns.js";
|
|
16
|
+
import { useDataSource as we } from "./use/use-data-source.js";
|
|
17
|
+
import { useLoading as ke } from "./use/use-loading.js";
|
|
18
|
+
import { usePagination as Se } from "./use/use-pagination.js";
|
|
19
|
+
import ve from "xe-utils";
|
|
20
|
+
import { VxeGrid as Be } from "vxe-table";
|
|
21
|
+
import { FormCompEnum as Re } from "../super-form/component-map.js";
|
|
22
|
+
import { useForm as _e } from "../super-form/use/use-form.js";
|
|
23
|
+
import { EmptyEnum as ze } from "../empty/constants.js";
|
|
24
|
+
const Pe = {
|
|
24
25
|
"vft-loading-text": "加载中..."
|
|
25
|
-
},
|
|
26
|
+
}, c = (
|
|
26
27
|
/* hoist-static*/
|
|
27
|
-
|
|
28
|
-
),
|
|
29
|
-
name:
|
|
30
|
-
}), tt = /* @__PURE__ */
|
|
31
|
-
...
|
|
28
|
+
he("table")
|
|
29
|
+
), De = N({
|
|
30
|
+
name: c.b()
|
|
31
|
+
}), tt = /* @__PURE__ */ N({
|
|
32
|
+
...De,
|
|
32
33
|
props: {
|
|
33
34
|
sticky: {
|
|
34
35
|
type: [Boolean, Object]
|
|
35
36
|
},
|
|
36
37
|
api: {},
|
|
37
38
|
pageSize: {
|
|
38
|
-
default:
|
|
39
|
+
default: Ce
|
|
39
40
|
},
|
|
40
41
|
total: {},
|
|
41
42
|
rowkey: {
|
|
@@ -318,66 +319,66 @@ const De = {
|
|
|
318
319
|
"toolbar-tool-click",
|
|
319
320
|
"zoom"
|
|
320
321
|
],
|
|
321
|
-
setup(
|
|
322
|
-
expose:
|
|
323
|
-
emit:
|
|
322
|
+
setup(He, {
|
|
323
|
+
expose: O,
|
|
324
|
+
emit: r
|
|
324
325
|
}) {
|
|
325
|
-
var _, z
|
|
326
|
-
const V =
|
|
327
|
-
getLoading:
|
|
328
|
-
setLoading:
|
|
329
|
-
} =
|
|
330
|
-
getPaginationInfo:
|
|
331
|
-
setPagination:
|
|
332
|
-
getShowPagination:
|
|
333
|
-
getCurrentPage:
|
|
334
|
-
} =
|
|
335
|
-
getViewColumns:
|
|
336
|
-
setColumns:
|
|
337
|
-
} =
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
326
|
+
var R, _, z;
|
|
327
|
+
const V = ae(), u = d(), I = d([]), i = d(), q = le(), l = g(() => E(q.props, e(i))), {
|
|
328
|
+
getLoading: G,
|
|
329
|
+
setLoading: L
|
|
330
|
+
} = ke(l), {
|
|
331
|
+
getPaginationInfo: s,
|
|
332
|
+
setPagination: p,
|
|
333
|
+
getShowPagination: h,
|
|
334
|
+
getCurrentPage: M
|
|
335
|
+
} = Se(l), {
|
|
336
|
+
getViewColumns: K,
|
|
337
|
+
setColumns: X
|
|
338
|
+
} = xe(l);
|
|
339
|
+
re(() => M(), (t) => {
|
|
340
|
+
ne(() => {
|
|
341
|
+
b({
|
|
341
342
|
seqConfig: {
|
|
342
|
-
startIndex: (t - 1) * e(
|
|
343
|
+
startIndex: (t - 1) * e(l).pageSize
|
|
343
344
|
}
|
|
344
345
|
});
|
|
345
346
|
});
|
|
346
347
|
}, {
|
|
347
348
|
immediate: !0
|
|
348
349
|
});
|
|
349
|
-
function
|
|
350
|
-
|
|
351
|
-
...e(
|
|
350
|
+
function b(t) {
|
|
351
|
+
i.value = {
|
|
352
|
+
...e(i),
|
|
352
353
|
...t
|
|
353
354
|
};
|
|
354
355
|
}
|
|
355
356
|
const {
|
|
356
|
-
getDataSourceRef:
|
|
357
|
-
handleTableChange:
|
|
358
|
-
reload:
|
|
359
|
-
deleteTableDataRecord:
|
|
360
|
-
insertTableDataRecord:
|
|
361
|
-
updateTableData:
|
|
362
|
-
updateTableDataRecord:
|
|
363
|
-
setTableData:
|
|
364
|
-
getDataSource:
|
|
365
|
-
getRawDataSource:
|
|
366
|
-
tableSearch:
|
|
367
|
-
} =
|
|
368
|
-
tableData:
|
|
369
|
-
setLoading:
|
|
370
|
-
getPaginationInfo:
|
|
371
|
-
setPagination:
|
|
372
|
-
},
|
|
373
|
-
function
|
|
374
|
-
|
|
357
|
+
getDataSourceRef: y,
|
|
358
|
+
handleTableChange: $,
|
|
359
|
+
reload: j,
|
|
360
|
+
deleteTableDataRecord: W,
|
|
361
|
+
insertTableDataRecord: Y,
|
|
362
|
+
updateTableData: U,
|
|
363
|
+
updateTableDataRecord: Z,
|
|
364
|
+
setTableData: C,
|
|
365
|
+
getDataSource: J,
|
|
366
|
+
getRawDataSource: x,
|
|
367
|
+
tableSearch: w
|
|
368
|
+
} = we(l, {
|
|
369
|
+
tableData: I,
|
|
370
|
+
setLoading: L,
|
|
371
|
+
getPaginationInfo: s,
|
|
372
|
+
setPagination: p
|
|
373
|
+
}, r);
|
|
374
|
+
function k(...t) {
|
|
375
|
+
$.call(void 0, ...t), r("change", ...t);
|
|
375
376
|
const {
|
|
376
377
|
onChange: o
|
|
377
|
-
} = e(
|
|
378
|
-
o &&
|
|
378
|
+
} = e(l);
|
|
379
|
+
o && me(o) && o.call(void 0, ...t);
|
|
379
380
|
}
|
|
380
|
-
const
|
|
381
|
+
const Q = g(() => window.innerHeight - e(l).extraSysHeight + "px"), S = {};
|
|
381
382
|
[
|
|
382
383
|
"update:data",
|
|
383
384
|
"keydown-start",
|
|
@@ -460,52 +461,52 @@ const De = {
|
|
|
460
461
|
"toolbar-tool-click",
|
|
461
462
|
"zoom"
|
|
462
463
|
].forEach((t) => {
|
|
463
|
-
const o =
|
|
464
|
-
|
|
464
|
+
const o = ve.camelCase(`on-${t}`);
|
|
465
|
+
S[o] = (...a) => r(t, ...a);
|
|
465
466
|
});
|
|
466
|
-
const
|
|
467
|
-
var o,
|
|
468
|
-
const t = e(
|
|
467
|
+
const n = g(() => {
|
|
468
|
+
var o, a;
|
|
469
|
+
const t = e(y);
|
|
469
470
|
return {
|
|
470
471
|
...V,
|
|
471
|
-
...e(
|
|
472
|
-
maxHeight: (o = e(
|
|
473
|
-
columns:
|
|
474
|
-
loading: e(
|
|
472
|
+
...e(l),
|
|
473
|
+
maxHeight: (o = e(l)) != null && o.maxHeight ? (a = e(l)) == null ? void 0 : a.maxHeight : Q.value,
|
|
474
|
+
columns: ce(e(K)),
|
|
475
|
+
loading: e(G),
|
|
475
476
|
data: t,
|
|
476
|
-
...
|
|
477
|
+
...S
|
|
477
478
|
};
|
|
478
|
-
}),
|
|
479
|
-
setPagination:
|
|
480
|
-
emit:
|
|
481
|
-
setProps:
|
|
482
|
-
reload:
|
|
483
|
-
getShowPagination:
|
|
484
|
-
deleteTableDataRecord:
|
|
485
|
-
insertTableDataRecord:
|
|
486
|
-
updateTableDataRecord:
|
|
487
|
-
updateTableData:
|
|
488
|
-
setTableData:
|
|
489
|
-
getDataSource:
|
|
490
|
-
getDataSourceRef:
|
|
491
|
-
setColumns:
|
|
492
|
-
getRawDataSource:
|
|
493
|
-
tableSearch:
|
|
479
|
+
}), v = {
|
|
480
|
+
setPagination: p,
|
|
481
|
+
emit: r,
|
|
482
|
+
setProps: b,
|
|
483
|
+
reload: j,
|
|
484
|
+
getShowPagination: h,
|
|
485
|
+
deleteTableDataRecord: W,
|
|
486
|
+
insertTableDataRecord: Y,
|
|
487
|
+
updateTableDataRecord: Z,
|
|
488
|
+
updateTableData: U,
|
|
489
|
+
setTableData: C,
|
|
490
|
+
getDataSource: J,
|
|
491
|
+
getDataSourceRef: y,
|
|
492
|
+
setColumns: X,
|
|
493
|
+
getRawDataSource: x,
|
|
494
|
+
tableSearch: w
|
|
494
495
|
};
|
|
495
|
-
|
|
496
|
-
const
|
|
496
|
+
r("register", v);
|
|
497
|
+
const ee = {
|
|
497
498
|
field: "_filterTableData",
|
|
498
499
|
label: "",
|
|
499
|
-
type:
|
|
500
|
+
type: Re.SEARCH,
|
|
500
501
|
componentProps: ({}) => ({
|
|
501
502
|
onChange: (t) => {
|
|
502
|
-
|
|
503
|
+
B({
|
|
503
504
|
_filterTableData: t
|
|
504
505
|
});
|
|
505
506
|
}
|
|
506
507
|
})
|
|
507
|
-
}, [
|
|
508
|
-
schemas: [(
|
|
508
|
+
}, [te] = _e(E({
|
|
509
|
+
schemas: [(_ = (R = n.value) == null ? void 0 : R.formOptions) != null && _.addSearchAllSchema ? ee : {}],
|
|
509
510
|
rowProps: {
|
|
510
511
|
justify: "start"
|
|
511
512
|
},
|
|
@@ -519,52 +520,49 @@ const De = {
|
|
|
519
520
|
btnText: "搜索"
|
|
520
521
|
},
|
|
521
522
|
actionInline: !0
|
|
522
|
-
},
|
|
523
|
-
(
|
|
523
|
+
}, fe(
|
|
524
|
+
(z = n.value) == null ? void 0 : z.formOptions,
|
|
524
525
|
["showActionForm", "addSearchAllSchema"]
|
|
525
526
|
// 'union' | 'intersection' | 'concat' | 'replace' = 'union'
|
|
526
|
-
), "replace")),
|
|
527
|
-
Reflect.has(t, "_filterTableData") &&
|
|
528
|
-
},
|
|
529
|
-
x(
|
|
527
|
+
), "replace")), B = (t) => {
|
|
528
|
+
Reflect.has(t, "_filterTableData") && w(t._filterTableData), r("form-submit", t);
|
|
529
|
+
}, oe = () => {
|
|
530
|
+
C(x()), r("form-reset");
|
|
530
531
|
};
|
|
531
|
-
return
|
|
532
|
+
return O({
|
|
532
533
|
table: u,
|
|
533
|
-
...
|
|
534
|
-
}), (t, o) => {
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
}))
|
|
566
|
-
}), null, 16, ["class"])) : E("", !0)], 2);
|
|
567
|
-
};
|
|
534
|
+
...v
|
|
535
|
+
}), (t, o) => (f(), ie("div", {
|
|
536
|
+
class: se(e(c).b())
|
|
537
|
+
}, [D(e(Be), H({
|
|
538
|
+
ref_key: "xGrid",
|
|
539
|
+
ref: u
|
|
540
|
+
}, n.value), {
|
|
541
|
+
toolbar_buttons: m(() => {
|
|
542
|
+
var a, P;
|
|
543
|
+
return [T(t.$slots, "toolbar-left"), (P = (a = n.value) == null ? void 0 : a.formOptions) != null && P.showActionForm ? (f(), F(e(ye), {
|
|
544
|
+
key: 0,
|
|
545
|
+
onRegister: e(te),
|
|
546
|
+
onSubmit: B,
|
|
547
|
+
onReset: oe
|
|
548
|
+
}, null, 8, ["onRegister"])) : A("", !0), T(t.$slots, "toolbar-right")];
|
|
549
|
+
}),
|
|
550
|
+
empty: m(() => [D(e(ue), {
|
|
551
|
+
type: e(ze).NO_DATA
|
|
552
|
+
}, null, 8, ["type"])]),
|
|
553
|
+
loading: m(() => [de(ge("div", Pe, null, 512), [[e(pe), n.value.loading]])]),
|
|
554
|
+
_: 3
|
|
555
|
+
}, 16), e(h) ? (f(), F(e(be), H({
|
|
556
|
+
key: 0
|
|
557
|
+
}, e(s), {
|
|
558
|
+
class: [e(c).e("pager"), e(c).m("pager-" + e(s).pagePlacement)],
|
|
559
|
+
onCurrentChange: o[0] || (o[0] = (a) => k({
|
|
560
|
+
currentPage: a
|
|
561
|
+
})),
|
|
562
|
+
onSizeChange: o[1] || (o[1] = (a) => k({
|
|
563
|
+
pageSize: a
|
|
564
|
+
}))
|
|
565
|
+
}), null, 16, ["class"])) : A("", !0)], 2));
|
|
568
566
|
}
|
|
569
567
|
});
|
|
570
568
|
export {
|
|
@@ -41,7 +41,10 @@ function p(r) {
|
|
|
41
41
|
setColumns: (e) => {
|
|
42
42
|
t().setColumns(e);
|
|
43
43
|
},
|
|
44
|
-
setTableData: (e) =>
|
|
44
|
+
setTableData: (e) => {
|
|
45
|
+
var a;
|
|
46
|
+
return (a = t()) == null ? void 0 : a.setTableData(e);
|
|
47
|
+
},
|
|
45
48
|
setPagination: (e) => t().setPagination(e),
|
|
46
49
|
deleteTableDataRecord: (e, a) => t().deleteTableDataRecord(e, a),
|
|
47
50
|
insertTableDataRecord: (e, a) => t().insertTableDataRecord(e, a),
|
|
@@ -11,7 +11,11 @@ export declare const VftVerifyCode: import("vft/es/utils").SFCWithInstall<import
|
|
|
11
11
|
}, {
|
|
12
12
|
getCode: () => void;
|
|
13
13
|
code: import("vue").Ref<string>;
|
|
14
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
14
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
15
|
+
[x: {
|
|
16
|
+
click: void;
|
|
17
|
+
} & string]: (...args: any[]) => void;
|
|
18
|
+
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
15
19
|
height: {
|
|
16
20
|
type: import("vue").PropType<number>;
|
|
17
21
|
};
|
|
@@ -11,7 +11,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
11
11
|
}, {
|
|
12
12
|
getCode: () => void;
|
|
13
13
|
code: import("vue").Ref<string>;
|
|
14
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
14
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
15
|
+
[x: {
|
|
16
|
+
click: void;
|
|
17
|
+
} & string]: (...args: any[]) => void;
|
|
18
|
+
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
15
19
|
height: {
|
|
16
20
|
type: import("vue").PropType<number>;
|
|
17
21
|
};
|
package/es/package.json.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
declare const _default: {
|
|
2
2
|
"name": "vft",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.148",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"main": "lib/index.cjs",
|
|
6
6
|
"module": "es/index.js",
|
|
@@ -51,21 +51,21 @@ declare const _default: {
|
|
|
51
51
|
"@vft/use": "workspace:*",
|
|
52
52
|
"@vft/utils": "workspace:*",
|
|
53
53
|
"@vft/directives": "workspace:*",
|
|
54
|
-
"@ctrl/tinycolor": "
|
|
55
|
-
"@floating-ui/dom": "
|
|
54
|
+
"@ctrl/tinycolor": "3.6.0",
|
|
55
|
+
"@floating-ui/dom": "1.2.8",
|
|
56
56
|
"@popperjs/core": "npm:@sxzz/popperjs-es@^2.11.7",
|
|
57
|
-
"@vue/repl": "
|
|
57
|
+
"@vue/repl": "1.4.1",
|
|
58
58
|
"@vueuse/core": "10.1.2",
|
|
59
|
-
"@waline/client": "
|
|
60
|
-
"async-validator": "
|
|
61
|
-
"dayjs": "
|
|
62
|
-
"fflate": "
|
|
59
|
+
"@waline/client": "2.15.5",
|
|
60
|
+
"async-validator": "4.2.5",
|
|
61
|
+
"dayjs": "1.11.7",
|
|
62
|
+
"fflate": "0.8.0",
|
|
63
63
|
"hotkeys-js": "3.10.2",
|
|
64
|
-
"lodash": "
|
|
65
|
-
"memoize-one": "
|
|
64
|
+
"lodash": "4.17.21",
|
|
65
|
+
"memoize-one": "6.0.0",
|
|
66
66
|
"qrcode": "1.5.3",
|
|
67
67
|
"resize-detector": "0.3.0",
|
|
68
|
-
"sortablejs": "
|
|
68
|
+
"sortablejs": "1.15.0"
|
|
69
69
|
},
|
|
70
70
|
"vetur": {
|
|
71
71
|
"tags": "tags.json",
|
package/es/package.json.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
declare const _default: import("vue").DefineComponent<{
|
|
2
2
|
isAutoWidth: BooleanConstructor;
|
|
3
3
|
updateAll: BooleanConstructor;
|
|
4
|
-
}, () => JSX.Element | null,
|
|
4
|
+
}, () => JSX.Element | null, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
5
5
|
isAutoWidth: BooleanConstructor;
|
|
6
6
|
updateAll: BooleanConstructor;
|
|
7
7
|
}>>, {
|
|
8
8
|
isAutoWidth: boolean;
|
|
9
9
|
updateAll: boolean;
|
|
10
|
-
}>;
|
|
10
|
+
}, {}>;
|
|
11
11
|
export default _default;
|
|
@@ -44,8 +44,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
44
44
|
__epPropKey: true;
|
|
45
45
|
};
|
|
46
46
|
}>> & {
|
|
47
|
-
"onPanel-change"?: ((...args: any[]) => any) | undefined;
|
|
48
47
|
onPick?: ((...args: any[]) => any) | undefined;
|
|
48
|
+
"onPanel-change"?: ((...args: any[]) => any) | undefined;
|
|
49
49
|
"onSet-picker-option"?: ((...args: any[]) => any) | undefined;
|
|
50
50
|
}, {
|
|
51
51
|
format: string;
|
|
@@ -33,9 +33,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
33
33
|
__epPropKey: true;
|
|
34
34
|
};
|
|
35
35
|
}>> & {
|
|
36
|
+
onPick?: ((...args: any[]) => any) | undefined;
|
|
36
37
|
"onCalendar-change"?: ((...args: any[]) => any) | undefined;
|
|
37
38
|
"onPanel-change"?: ((...args: any[]) => any) | undefined;
|
|
38
|
-
onPick?: ((...args: any[]) => any) | undefined;
|
|
39
39
|
"onSet-picker-option"?: ((...args: any[]) => any) | undefined;
|
|
40
40
|
}, {
|
|
41
41
|
unlinkPanels: boolean;
|