cosey 0.3.14 → 0.3.16
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/form/form.d.ts +1 -0
- package/components/form/form.vue.d.ts +1 -0
- package/components/form/index.d.ts +3 -0
- package/components/form-query/form-query.vue.d.ts +1 -0
- package/components/form-query/index.d.ts +3 -0
- package/components/table/index.d.ts +6 -0
- package/components/table/table-query/table-query.vue.d.ts +1 -0
- package/components/table/table.d.ts +1 -0
- package/components/table/table.js +2 -1
- package/components/table/table.vue.d.ts +2 -0
- package/components/table/table.vue.js +5 -1
- package/package.json +1 -1
|
@@ -137,6 +137,7 @@ export interface FormSlots {
|
|
|
137
137
|
export interface FormEmits extends /* @vue-ignore */ EmitFn<ElFormEmits> {
|
|
138
138
|
}
|
|
139
139
|
export interface FormExpose {
|
|
140
|
+
reset: () => void;
|
|
140
141
|
submit: () => Promise<any>;
|
|
141
142
|
validate: (callback?: FormValidateCallback) => FormValidationResult;
|
|
142
143
|
validateField: (props?: Arrayable<FormItemProp>, callback?: FormValidateCallback) => FormValidationResult;
|
|
@@ -120,6 +120,7 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
120
120
|
};
|
|
121
121
|
disabled: BooleanConstructor;
|
|
122
122
|
}>, {
|
|
123
|
+
reset: () => void;
|
|
123
124
|
submit: () => Promise<any>;
|
|
124
125
|
validate: (callback?: import("element-plus").FormValidateCallback) => import("element-plus").FormValidationResult;
|
|
125
126
|
validateField: (props?: import("@vueuse/core").Arrayable<import("element-plus").FormItemProp>, callback?: import("element-plus").FormValidateCallback) => import("element-plus").FormValidationResult;
|
|
@@ -126,6 +126,7 @@ declare const _Form: {
|
|
|
126
126
|
}>> & Readonly<{
|
|
127
127
|
onValidate?: ((prop: import("element-plus").FormItemProp, isValid: boolean, message: string) => any) | undefined;
|
|
128
128
|
}>, {
|
|
129
|
+
reset: () => void;
|
|
129
130
|
submit: () => Promise<any>;
|
|
130
131
|
validate: (callback?: import("element-plus").FormValidateCallback) => import("element-plus").FormValidationResult;
|
|
131
132
|
validateField: (props?: import("@vueuse/core").Arrayable<import("element-plus").FormItemProp>, callback?: import("element-plus").FormValidateCallback) => import("element-plus").FormValidationResult;
|
|
@@ -284,6 +285,7 @@ declare const _Form: {
|
|
|
284
285
|
}>> & Readonly<{
|
|
285
286
|
onValidate?: ((prop: import("element-plus").FormItemProp, isValid: boolean, message: string) => any) | undefined;
|
|
286
287
|
}>, {
|
|
288
|
+
reset: () => void;
|
|
287
289
|
submit: () => Promise<any>;
|
|
288
290
|
validate: (callback?: import("element-plus").FormValidateCallback) => import("element-plus").FormValidationResult;
|
|
289
291
|
validateField: (props?: import("@vueuse/core").Arrayable<import("element-plus").FormItemProp>, callback?: import("element-plus").FormValidateCallback) => import("element-plus").FormValidationResult;
|
|
@@ -437,6 +439,7 @@ declare const _Form: {
|
|
|
437
439
|
}>> & Readonly<{
|
|
438
440
|
onValidate?: ((prop: import("element-plus").FormItemProp, isValid: boolean, message: string) => any) | undefined;
|
|
439
441
|
}>, {
|
|
442
|
+
reset: () => void;
|
|
440
443
|
submit: () => Promise<any>;
|
|
441
444
|
validate: (callback?: import("element-plus").FormValidateCallback) => import("element-plus").FormValidationResult;
|
|
442
445
|
validateField: (props?: import("@vueuse/core").Arrayable<import("element-plus").FormItemProp>, callback?: import("element-plus").FormValidateCallback) => import("element-plus").FormValidationResult;
|
|
@@ -136,6 +136,7 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
136
136
|
};
|
|
137
137
|
disabled: BooleanConstructor;
|
|
138
138
|
}>, {
|
|
139
|
+
reset: () => void;
|
|
139
140
|
submit: () => Promise<any>;
|
|
140
141
|
validate: (callback?: import("element-plus").FormValidateCallback) => import("element-plus").FormValidationResult;
|
|
141
142
|
validateField: (props?: import("@vueuse/core").Arrayable<import("element-plus").FormItemProp>, callback?: import("element-plus").FormValidateCallback) => import("element-plus").FormValidationResult;
|
|
@@ -139,6 +139,7 @@ declare const _FormQuery: {
|
|
|
139
139
|
onValidate?: ((prop: import("element-plus").FormItemProp, isValid: boolean, message: string) => any) | undefined;
|
|
140
140
|
"onUpdate:collapsed"?: ((val: boolean) => any) | undefined;
|
|
141
141
|
}>, {
|
|
142
|
+
reset: () => void;
|
|
142
143
|
submit: () => Promise<any>;
|
|
143
144
|
validate: (callback?: import("element-plus").FormValidateCallback) => import("element-plus").FormValidationResult;
|
|
144
145
|
validateField: (props?: import("@vueuse/core").Arrayable<import("element-plus").FormItemProp>, callback?: import("element-plus").FormValidateCallback) => import("element-plus").FormValidationResult;
|
|
@@ -318,6 +319,7 @@ declare const _FormQuery: {
|
|
|
318
319
|
onValidate?: ((prop: import("element-plus").FormItemProp, isValid: boolean, message: string) => any) | undefined;
|
|
319
320
|
"onUpdate:collapsed"?: ((val: boolean) => any) | undefined;
|
|
320
321
|
}>, {
|
|
322
|
+
reset: () => void;
|
|
321
323
|
submit: () => Promise<any>;
|
|
322
324
|
validate: (callback?: import("element-plus").FormValidateCallback) => import("element-plus").FormValidationResult;
|
|
323
325
|
validateField: (props?: import("@vueuse/core").Arrayable<import("element-plus").FormItemProp>, callback?: import("element-plus").FormValidateCallback) => import("element-plus").FormValidationResult;
|
|
@@ -491,6 +493,7 @@ declare const _FormQuery: {
|
|
|
491
493
|
onValidate?: ((prop: import("element-plus").FormItemProp, isValid: boolean, message: string) => any) | undefined;
|
|
492
494
|
"onUpdate:collapsed"?: ((val: boolean) => any) | undefined;
|
|
493
495
|
}>, {
|
|
496
|
+
reset: () => void;
|
|
494
497
|
submit: () => Promise<any>;
|
|
495
498
|
validate: (callback?: import("element-plus").FormValidateCallback) => import("element-plus").FormValidationResult;
|
|
496
499
|
validateField: (props?: import("@vueuse/core").Arrayable<import("element-plus").FormItemProp>, callback?: import("element-plus").FormValidateCallback) => import("element-plus").FormValidationResult;
|
|
@@ -273,6 +273,8 @@ declare const _Table: {
|
|
|
273
273
|
collapseAll: () => void;
|
|
274
274
|
getFetchParams: () => Record<string, any>;
|
|
275
275
|
getFullFetchParams: () => Record<string, any>;
|
|
276
|
+
setData: (data: any[]) => void;
|
|
277
|
+
reset: () => void;
|
|
276
278
|
submit: () => Promise<any>;
|
|
277
279
|
validate: (callback?: import("element-plus").FormValidateCallback) => import("element-plus").FormValidationResult;
|
|
278
280
|
validateField: (props?: import("@vueuse/core").Arrayable<import("element-plus").FormItemProp>, callback?: import("element-plus").FormValidateCallback) => import("element-plus").FormValidationResult;
|
|
@@ -599,6 +601,8 @@ declare const _Table: {
|
|
|
599
601
|
collapseAll: () => void;
|
|
600
602
|
getFetchParams: () => Record<string, any>;
|
|
601
603
|
getFullFetchParams: () => Record<string, any>;
|
|
604
|
+
setData: (data: any[]) => void;
|
|
605
|
+
reset: () => void;
|
|
602
606
|
submit: () => Promise<any>;
|
|
603
607
|
validate: (callback?: import("element-plus").FormValidateCallback) => import("element-plus").FormValidationResult;
|
|
604
608
|
validateField: (props?: import("@vueuse/core").Arrayable<import("element-plus").FormItemProp>, callback?: import("element-plus").FormValidateCallback) => import("element-plus").FormValidationResult;
|
|
@@ -783,6 +787,8 @@ declare const _Table: {
|
|
|
783
787
|
collapseAll: () => void;
|
|
784
788
|
getFetchParams: () => Record<string, any>;
|
|
785
789
|
getFullFetchParams: () => Record<string, any>;
|
|
790
|
+
setData: (data: any[]) => void;
|
|
791
|
+
reset: () => void;
|
|
786
792
|
submit: () => Promise<any>;
|
|
787
793
|
validate: (callback?: import("element-plus").FormValidateCallback) => import("element-plus").FormValidationResult;
|
|
788
794
|
validateField: (props?: import("@vueuse/core").Arrayable<import("element-plus").FormItemProp>, callback?: import("element-plus").FormValidateCallback) => import("element-plus").FormValidationResult;
|
|
@@ -140,6 +140,7 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
140
140
|
};
|
|
141
141
|
disabled: BooleanConstructor;
|
|
142
142
|
}>, {
|
|
143
|
+
reset: () => void;
|
|
143
144
|
submit: () => Promise<any>;
|
|
144
145
|
validate: (callback?: import("element-plus").FormValidateCallback) => import("element-plus").FormValidationResult;
|
|
145
146
|
validateField: (props?: import("@vueuse/core").Arrayable<import("element-plus").FormItemProp>, callback?: import("element-plus").FormValidateCallback) => import("element-plus").FormValidationResult;
|
|
@@ -159,6 +159,7 @@ export interface TableCustomExpose {
|
|
|
159
159
|
collapseAll: () => void;
|
|
160
160
|
getFetchParams: () => Record<string, any>;
|
|
161
161
|
getFullFetchParams: () => Record<string, any>;
|
|
162
|
+
setData: (data: any[]) => void;
|
|
162
163
|
}
|
|
163
164
|
export type TableExpose = TableCustomExpose & TableQueryExpose & {
|
|
164
165
|
clearSelection: () => void;
|
|
@@ -133,6 +133,8 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
133
133
|
collapseAll: () => void;
|
|
134
134
|
getFetchParams: () => Record<string, any>;
|
|
135
135
|
getFullFetchParams: () => Record<string, any>;
|
|
136
|
+
setData: (data: any[]) => void;
|
|
137
|
+
reset: () => void;
|
|
136
138
|
submit: () => Promise<any>;
|
|
137
139
|
validate: (callback?: import("element-plus").FormValidateCallback) => import("element-plus").FormValidationResult;
|
|
138
140
|
validateField: (props?: import("@vueuse/core").Arrayable<import("element-plus").FormItemProp>, callback?: import("element-plus").FormValidateCallback) => import("element-plus").FormValidationResult;
|
|
@@ -126,6 +126,9 @@ var stdin_default = /* @__PURE__ */defineComponent({
|
|
|
126
126
|
watch(() => props.data, () => {
|
|
127
127
|
tableData.value = props.data || [];
|
|
128
128
|
});
|
|
129
|
+
const setData = data => {
|
|
130
|
+
tableData.value = data;
|
|
131
|
+
};
|
|
129
132
|
const tableDataWithSummary = computed(() => {
|
|
130
133
|
const columns = flattedColumns.value.map(column => {
|
|
131
134
|
return {
|
|
@@ -332,7 +335,8 @@ var stdin_default = /* @__PURE__ */defineComponent({
|
|
|
332
335
|
expandAll,
|
|
333
336
|
collapseAll,
|
|
334
337
|
getFetchParams,
|
|
335
|
-
getFullFetchParams
|
|
338
|
+
getFullFetchParams,
|
|
339
|
+
setData
|
|
336
340
|
}, () => tableQueryRef.value);
|
|
337
341
|
watch(() => props.getExpose, () => {
|
|
338
342
|
props.getExpose?.(expose);
|