cosey 0.4.7 → 0.4.10
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/components/table/table.vue.js +3 -1
- package/components/table-action/index.d.ts +12 -0
- package/components/table-action/item.d.ts +4 -0
- package/components/table-action/item.js +4 -0
- package/components/table-action/item.vue.d.ts +9 -0
- package/components/table-action/item.vue.js +4 -1
- package/components/table-action/table-action.vue.d.ts +4 -0
- package/package.json +1 -1
|
@@ -183,7 +183,9 @@ var stdin_default = /* @__PURE__ */defineComponent({
|
|
|
183
183
|
res = props.transformResponse?.(res) || res;
|
|
184
184
|
tableData.value = (tableKeys.list ? get(res, tableKeys.list) : res) || [];
|
|
185
185
|
total.value = +get(res, tableKeys.total) || 0;
|
|
186
|
-
|
|
186
|
+
if (!reloading.value) {
|
|
187
|
+
elTableRef.value?.setScrollTop(0);
|
|
188
|
+
}
|
|
187
189
|
},
|
|
188
190
|
onFinally() {
|
|
189
191
|
reloading.value = false;
|
|
@@ -26,6 +26,10 @@ declare const _TableAction: {
|
|
|
26
26
|
type: BooleanConstructor;
|
|
27
27
|
default: boolean;
|
|
28
28
|
};
|
|
29
|
+
visible: {
|
|
30
|
+
type: BooleanConstructor;
|
|
31
|
+
default: boolean;
|
|
32
|
+
};
|
|
29
33
|
icon: {
|
|
30
34
|
type: StringConstructor;
|
|
31
35
|
};
|
|
@@ -125,6 +129,10 @@ declare const _TableAction: {
|
|
|
125
129
|
type: BooleanConstructor;
|
|
126
130
|
default: boolean;
|
|
127
131
|
};
|
|
132
|
+
visible: {
|
|
133
|
+
type: BooleanConstructor;
|
|
134
|
+
default: boolean;
|
|
135
|
+
};
|
|
128
136
|
icon: {
|
|
129
137
|
type: StringConstructor;
|
|
130
138
|
};
|
|
@@ -221,6 +229,10 @@ declare const _TableAction: {
|
|
|
221
229
|
type: BooleanConstructor;
|
|
222
230
|
default: boolean;
|
|
223
231
|
};
|
|
232
|
+
visible: {
|
|
233
|
+
type: BooleanConstructor;
|
|
234
|
+
default: boolean;
|
|
235
|
+
};
|
|
224
236
|
icon: {
|
|
225
237
|
type: StringConstructor;
|
|
226
238
|
};
|
|
@@ -23,6 +23,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
23
23
|
type: BooleanConstructor;
|
|
24
24
|
default: boolean;
|
|
25
25
|
};
|
|
26
|
+
visible: {
|
|
27
|
+
type: BooleanConstructor;
|
|
28
|
+
default: boolean;
|
|
29
|
+
};
|
|
26
30
|
icon: {
|
|
27
31
|
type: StringConstructor;
|
|
28
32
|
};
|
|
@@ -113,6 +117,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
113
117
|
type: BooleanConstructor;
|
|
114
118
|
default: boolean;
|
|
115
119
|
};
|
|
120
|
+
visible: {
|
|
121
|
+
type: BooleanConstructor;
|
|
122
|
+
default: boolean;
|
|
123
|
+
};
|
|
116
124
|
icon: {
|
|
117
125
|
type: StringConstructor;
|
|
118
126
|
};
|
|
@@ -180,6 +188,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
180
188
|
};
|
|
181
189
|
}>> & Readonly<{}>, {
|
|
182
190
|
hidden: boolean;
|
|
191
|
+
visible: boolean;
|
|
183
192
|
round: boolean;
|
|
184
193
|
dark: boolean;
|
|
185
194
|
text: boolean;
|
|
@@ -25,6 +25,9 @@ var stdin_default = /* @__PURE__ */defineComponent({
|
|
|
25
25
|
return omit(props, "icon");
|
|
26
26
|
});
|
|
27
27
|
const loading = ref(false);
|
|
28
|
+
const mergedVisible = computed(() => {
|
|
29
|
+
return props.hidden ? false : props.visible;
|
|
30
|
+
});
|
|
28
31
|
const onConfirm = async (e, confirm) => {
|
|
29
32
|
loading.value = true;
|
|
30
33
|
try {
|
|
@@ -39,7 +42,7 @@ var stdin_default = /* @__PURE__ */defineComponent({
|
|
|
39
42
|
};
|
|
40
43
|
return (_ctx, _cache) => {
|
|
41
44
|
const _component_el_popconfirm = resolveComponent("el-popconfirm");
|
|
42
|
-
return
|
|
45
|
+
return mergedVisible.value ? (openBlock(), createElementBlock(Fragment, {
|
|
43
46
|
key: 0
|
|
44
47
|
}, [_ctx.popconfirm ? (openBlock(), createBlock(_component_el_popconfirm, normalizeProps(mergeProps({
|
|
45
48
|
key: 0
|