mrxy-yk 1.13.2 → 1.13.4
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/form-table/FormTable.d.ts +1 -0
- package/dist/components/form-table/FormTable.vue.setup.js +10 -1
- package/dist/element-plus/components/pagination/Pagination.d.ts +2 -0
- package/dist/element-plus/components/pagination/Pagination.vue.setup.js +5 -3
- package/dist/utils/prototype/lib/FileUtil.js +1 -1
- package/package.json +1 -1
- package/web-types.json +1 -1
|
@@ -12,6 +12,7 @@ type __VLS_Slots = {} & {
|
|
|
12
12
|
};
|
|
13
13
|
declare const __VLS_base: DefineComponent<__VLS_Props, {
|
|
14
14
|
readonly hotInstance: HotInstance;
|
|
15
|
+
readonly getPhysicalData: Record<PropertyKey, any>[];
|
|
15
16
|
redrawing(data?: Record<PropertyKey, any>[]): void;
|
|
16
17
|
validate(): Promise<unknown>;
|
|
17
18
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
@@ -128,8 +128,17 @@ var FormTable_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ define
|
|
|
128
128
|
get hotInstance() {
|
|
129
129
|
return hotInstance;
|
|
130
130
|
},
|
|
131
|
+
get getPhysicalData() {
|
|
132
|
+
const data = hotInstance.getData();
|
|
133
|
+
const result = [];
|
|
134
|
+
for (let i = 0, len = data.length; i < len; i++) {
|
|
135
|
+
const physicalRow = hotInstance.toPhysicalRow(i);
|
|
136
|
+
result.push(physicalRow);
|
|
137
|
+
}
|
|
138
|
+
return result;
|
|
139
|
+
},
|
|
131
140
|
redrawing(data) {
|
|
132
|
-
if (data) tableData = data;
|
|
141
|
+
if (data) tableData = toRaw(data);
|
|
133
142
|
hotInstance?.loadData(tableData);
|
|
134
143
|
},
|
|
135
144
|
validate() {
|
|
@@ -5,6 +5,7 @@ type __VLS_Props = {
|
|
|
5
5
|
pages?: Pages;
|
|
6
6
|
tableHook?: UseTableSearchHooksExample<any, any, any, any, any, any, any>;
|
|
7
7
|
background?: boolean;
|
|
8
|
+
layout?: string;
|
|
8
9
|
};
|
|
9
10
|
declare const __VLS_export: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
10
11
|
change: (...args: any[]) => void;
|
|
@@ -14,6 +15,7 @@ declare const __VLS_export: DefineComponent<__VLS_Props, {}, {}, {}, {}, Compone
|
|
|
14
15
|
"onUpdate:pages"?: (...args: any[]) => any;
|
|
15
16
|
}>, {
|
|
16
17
|
background: boolean;
|
|
18
|
+
layout: string;
|
|
17
19
|
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
18
20
|
declare const _default: typeof __VLS_export;
|
|
19
21
|
export default _default;
|
|
@@ -10,7 +10,8 @@ var Pagination_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defin
|
|
|
10
10
|
background: {
|
|
11
11
|
type: Boolean,
|
|
12
12
|
default: false
|
|
13
|
-
}
|
|
13
|
+
},
|
|
14
|
+
layout: { default: "total, sizes, prev, pager, next, jumper" }
|
|
14
15
|
},
|
|
15
16
|
emits: ["change", "update:pages"],
|
|
16
17
|
setup(__props, { emit: __emit }) {
|
|
@@ -51,7 +52,7 @@ var Pagination_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defin
|
|
|
51
52
|
total: unref(pages).total,
|
|
52
53
|
background: __props.background,
|
|
53
54
|
size: "small",
|
|
54
|
-
layout:
|
|
55
|
+
layout: props.layout,
|
|
55
56
|
"page-sizes": [
|
|
56
57
|
10,
|
|
57
58
|
15,
|
|
@@ -66,7 +67,8 @@ var Pagination_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defin
|
|
|
66
67
|
"current-page",
|
|
67
68
|
"page-size",
|
|
68
69
|
"total",
|
|
69
|
-
"background"
|
|
70
|
+
"background",
|
|
71
|
+
"layout"
|
|
70
72
|
])]);
|
|
71
73
|
};
|
|
72
74
|
}
|
package/package.json
CHANGED