@es-plus/vue2 1.0.1 → 1.0.3
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/CHANGELOG.md +46 -0
- package/dist/components/es-crud-page/es-crud-page.vue.d.ts +66 -24
- package/dist/components/es-crud-page/es-crud-page.vue.d.ts.map +1 -1
- package/dist/components/es-dialog/component.vue.d.ts +143 -44
- package/dist/components/es-dialog/component.vue.d.ts.map +1 -1
- package/dist/components/es-dialog/render-jsx.vue.d.ts +19 -5
- package/dist/components/es-dialog/render-jsx.vue.d.ts.map +1 -1
- package/dist/components/es-form/es-form.vue.d.ts +162 -60
- package/dist/components/es-form/es-form.vue.d.ts.map +1 -1
- package/dist/components/es-table/column-item.vue.d.ts +11 -5
- package/dist/components/es-table/column-item.vue.d.ts.map +1 -1
- package/dist/components/es-table/component.vue.d.ts +210 -93
- package/dist/components/es-table/component.vue.d.ts.map +1 -1
- package/dist/components/es-table/table-btns.vue.d.ts +44 -20
- package/dist/components/es-table/table-btns.vue.d.ts.map +1 -1
- package/dist/composables/use-form-layout.d.ts +9 -9
- package/dist/composables/use-table-resize.d.ts +1 -1
- package/dist/composables/use-table-selection.d.ts +9 -3
- package/dist/composables/use-table-selection.d.ts.map +1 -1
- package/dist/es-plus-vue2.js +2 -2
- package/dist/es-plus-vue2.js.map +1 -1
- package/dist/es-plus-vue2.umd.cjs +1 -1
- package/dist/es-plus-vue2.umd.cjs.map +1 -1
- package/dist/vue-compat.d.ts +14 -12
- package/dist/vue-compat.d.ts.map +1 -1
- package/package.json +82 -86
|
@@ -21,23 +21,10 @@ type RenderableBtn = {
|
|
|
21
21
|
permissionValue?: string;
|
|
22
22
|
code?: 1 | 2;
|
|
23
23
|
};
|
|
24
|
-
declare const _default: import('vue').
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
};
|
|
29
|
-
btnConfig: {
|
|
30
|
-
type: () => BtnConfig[];
|
|
31
|
-
default: () => any[];
|
|
32
|
-
};
|
|
33
|
-
instance: {
|
|
34
|
-
type: () => Record<string, unknown>;
|
|
35
|
-
default: () => {};
|
|
36
|
-
};
|
|
37
|
-
}, {
|
|
38
|
-
processedBtnLeft: import('vue').ComputedRef<RenderableBtn[]>;
|
|
39
|
-
processedBtnRight: import('vue').ComputedRef<RenderableBtn[]>;
|
|
40
|
-
showContainer: import('vue').ComputedRef<boolean>;
|
|
24
|
+
declare const _default: import('vue').ComponentOptions<import('vue').default<Record<string, any>, Record<string, any>, never, never, (event: string, ...args: any[]) => import('vue').default>, import('@vue/composition-api').ShallowUnwrapRef<{
|
|
25
|
+
processedBtnLeft: import('@vue/composition-api').ComputedRef<RenderableBtn[]>;
|
|
26
|
+
processedBtnRight: import('@vue/composition-api').ComputedRef<RenderableBtn[]>;
|
|
27
|
+
showContainer: import('@vue/composition-api').ComputedRef<boolean>;
|
|
41
28
|
getDisabledState: (item: Record<string, unknown>) => boolean;
|
|
42
29
|
buttonContainerStyle: (index: number) => {
|
|
43
30
|
display: string;
|
|
@@ -50,7 +37,20 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
50
37
|
resolveBtnSize: (item: {
|
|
51
38
|
size?: string;
|
|
52
39
|
}) => string;
|
|
53
|
-
}
|
|
40
|
+
}> & import('@vue/composition-api').Data, {}, {}, {
|
|
41
|
+
leftText: {
|
|
42
|
+
type: StringConstructor;
|
|
43
|
+
default: string;
|
|
44
|
+
};
|
|
45
|
+
btnConfig: {
|
|
46
|
+
type: () => BtnConfig[];
|
|
47
|
+
default: () => any[];
|
|
48
|
+
};
|
|
49
|
+
instance: {
|
|
50
|
+
type: () => Record<string, unknown>;
|
|
51
|
+
default: () => {};
|
|
52
|
+
};
|
|
53
|
+
}, import('@vue/composition-api').ExtractPropTypes<{
|
|
54
54
|
leftText: {
|
|
55
55
|
type: StringConstructor;
|
|
56
56
|
default: string;
|
|
@@ -63,10 +63,34 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
63
63
|
type: () => Record<string, unknown>;
|
|
64
64
|
default: () => {};
|
|
65
65
|
};
|
|
66
|
-
}>>, {
|
|
66
|
+
}>, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin> & Omit<import('vue').VueConstructor<import('vue').default<Record<string, any>, Record<string, any>, never, never, (event: string, ...args: any[]) => import('vue').default>>, never> & (new (...args: any[]) => import('@vue/composition-api').ComponentRenderProxy<{
|
|
67
|
+
leftText: string;
|
|
68
|
+
btnConfig: BtnConfig[];
|
|
69
|
+
instance: Record<string, unknown>;
|
|
70
|
+
} & {}, import('@vue/composition-api').ShallowUnwrapRef<{
|
|
71
|
+
processedBtnLeft: import('@vue/composition-api').ComputedRef<RenderableBtn[]>;
|
|
72
|
+
processedBtnRight: import('@vue/composition-api').ComputedRef<RenderableBtn[]>;
|
|
73
|
+
showContainer: import('@vue/composition-api').ComputedRef<boolean>;
|
|
74
|
+
getDisabledState: (item: Record<string, unknown>) => boolean;
|
|
75
|
+
buttonContainerStyle: (index: number) => {
|
|
76
|
+
display: string;
|
|
77
|
+
marginLeft: string;
|
|
78
|
+
};
|
|
79
|
+
getCompIcon: (key?: string) => string | undefined;
|
|
80
|
+
filterOptions: (item: Record<string, unknown>) => {
|
|
81
|
+
[x: string]: unknown;
|
|
82
|
+
};
|
|
83
|
+
resolveBtnSize: (item: {
|
|
84
|
+
size?: string;
|
|
85
|
+
}) => string;
|
|
86
|
+
}>, import('@vue/composition-api').Data, {}, {}, {}, {}, {}, {
|
|
87
|
+
leftText: string;
|
|
88
|
+
btnConfig: BtnConfig[];
|
|
89
|
+
instance: Record<string, unknown>;
|
|
90
|
+
} & {}, {
|
|
67
91
|
leftText: string;
|
|
68
92
|
btnConfig: BtnConfig[];
|
|
69
93
|
instance: Record<string, unknown>;
|
|
70
|
-
}
|
|
94
|
+
}, true>);
|
|
71
95
|
export default _default;
|
|
72
96
|
//# sourceMappingURL=table-btns.vue.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"table-btns.vue.d.ts","sourceRoot":"","sources":["../../../src/components/es-table/table-btns.vue"],"names":[],"mappings":"AAyDA;AAoBA,OAAO,EAAsC,KAAK,SAAS,EAAE,MAAM,eAAe,CAAA;AAIlF;;;;;;;GAOG;AACH,KAAK,aAAa,GAAG;IACnB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,KAAK,CAAC,EAAE,CAAC,GAAG,IAAI,EAAE,OAAO,EAAE,KAAK,IAAI,CAAA;IACpC,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,QAAQ,CAAC,EAAE,OAAO,GAAG,CAAC,CAAC,GAAG,IAAI,EAAE,OAAO,EAAE,KAAK,OAAO,CAAC,CAAA;IACtD,MAAM,CAAC,EAAE,CAAC,GAAG,IAAI,EAAE,OAAO,EAAE,KAAK,OAAO,CAAA;IACxC,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,IAAI,CAAC,EAAE,CAAC,GAAG,CAAC,CAAA;CACb,CAAA
|
|
1
|
+
{"version":3,"file":"table-btns.vue.d.ts","sourceRoot":"","sources":["../../../src/components/es-table/table-btns.vue"],"names":[],"mappings":"AAyDA;AAoBA,OAAO,EAAsC,KAAK,SAAS,EAAE,MAAM,eAAe,CAAA;AAIlF;;;;;;;GAOG;AACH,KAAK,aAAa,GAAG;IACnB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,KAAK,CAAC,EAAE,CAAC,GAAG,IAAI,EAAE,OAAO,EAAE,KAAK,IAAI,CAAA;IACpC,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,QAAQ,CAAC,EAAE,OAAO,GAAG,CAAC,CAAC,GAAG,IAAI,EAAE,OAAO,EAAE,KAAK,OAAO,CAAC,CAAA;IACtD,MAAM,CAAC,EAAE,CAAC,GAAG,IAAI,EAAE,OAAO,EAAE,KAAK,OAAO,CAAA;IACxC,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,IAAI,CAAC,EAAE,CAAC,GAAG,CAAC,CAAA;CACb,CAAA;;;;;6BAoFmC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAAG,OAAO;kCAO5B,MAAM;;;;;0BAUd,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;;;2BAoBtB;QAAE,IAAI,CAAC,EAAE,MAAM,CAAA;KAAE,KAAG,MAAM;;;;;;;cA/FvC,MAAM,SAAS,EAAE;;;;cAIhB,MAAM,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;;;;;;;;;cAJ9B,MAAM,SAAS,EAAE;;;;cAIhB,MAAM,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;;;;;;;;;;;6BAsDf,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAAG,OAAO;kCAO5B,MAAM;;;;;0BAUd,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;;;2BAoBtB;QAAE,IAAI,CAAC,EAAE,MAAM,CAAA;KAAE,KAAG,MAAM;;;;;;;;;;AArG5D,wBAqHE"}
|
|
@@ -6,18 +6,18 @@ export interface UseFormLayoutProps {
|
|
|
6
6
|
formItemList: FormItemOption[];
|
|
7
7
|
}
|
|
8
8
|
export declare function useFormLayout(props: UseFormLayoutProps): {
|
|
9
|
-
folded: import('vue').Ref<boolean>;
|
|
10
|
-
isBtnHidden: import('vue').ComputedRef<boolean>;
|
|
11
|
-
rowLayout: import('vue').ComputedRef<{
|
|
9
|
+
folded: import('@vue/composition-api').Ref<boolean>;
|
|
10
|
+
isBtnHidden: import('@vue/composition-api').ComputedRef<boolean>;
|
|
11
|
+
rowLayout: import('@vue/composition-api').ComputedRef<{
|
|
12
12
|
type: string;
|
|
13
13
|
gutter: number;
|
|
14
14
|
}>;
|
|
15
|
-
formLayout: import('vue').ComputedRef<Record<string, unknown>>;
|
|
16
|
-
getSetOptionsStatus: import('vue').ComputedRef<boolean>;
|
|
17
|
-
getRowColsAlgorithm: import('vue').ComputedRef<FormLayoutResult>;
|
|
18
|
-
isFold: import('vue').ComputedRef<boolean>;
|
|
19
|
-
getBtnColSpan: import('vue').ComputedRef<number>;
|
|
20
|
-
formItem: import('vue').ComputedRef<{
|
|
15
|
+
formLayout: import('@vue/composition-api').ComputedRef<Record<string, unknown>>;
|
|
16
|
+
getSetOptionsStatus: import('@vue/composition-api').ComputedRef<boolean>;
|
|
17
|
+
getRowColsAlgorithm: import('@vue/composition-api').ComputedRef<FormLayoutResult>;
|
|
18
|
+
isFold: import('@vue/composition-api').ComputedRef<boolean>;
|
|
19
|
+
getBtnColSpan: import('@vue/composition-api').ComputedRef<number>;
|
|
20
|
+
formItem: import('@vue/composition-api').ComputedRef<{
|
|
21
21
|
isFold: boolean;
|
|
22
22
|
prop: string;
|
|
23
23
|
label: string;
|
|
@@ -22,7 +22,7 @@ export declare function useTableResize(tableContainerRef: {
|
|
|
22
22
|
heightType?: 'auto' | 'height';
|
|
23
23
|
tabHeight?: number | string;
|
|
24
24
|
}): {
|
|
25
|
-
tableHeight: import('vue').Ref<number>;
|
|
25
|
+
tableHeight: import('@vue/composition-api').Ref<number>;
|
|
26
26
|
resizeObservers: () => void;
|
|
27
27
|
startObserver: () => void;
|
|
28
28
|
stopObserver: () => void;
|
|
@@ -1,9 +1,15 @@
|
|
|
1
1
|
import { TableRefLike } from '@es-plus/core';
|
|
2
2
|
|
|
3
3
|
export declare function useTableSelection(rowkey?: string): {
|
|
4
|
-
multipleSelection: import('vue').Ref<
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
multipleSelection: import('@vue/composition-api').Ref<{
|
|
5
|
+
[x: string]: unknown;
|
|
6
|
+
}[]>;
|
|
7
|
+
selectionsByPage: import('@vue/composition-api').Ref<{
|
|
8
|
+
[x: number]: {
|
|
9
|
+
[x: string]: unknown;
|
|
10
|
+
}[];
|
|
11
|
+
}>;
|
|
12
|
+
isInitChange: import('@vue/composition-api').Ref<boolean>;
|
|
7
13
|
handleSelectionChange: (val: Record<string, unknown>[], currentPage: number) => void;
|
|
8
14
|
clearAllSelection: (tableRef: TableRefLike | null) => void;
|
|
9
15
|
initSelection: (dataList: Record<string, unknown>[], tableRef: TableRefLike | null) => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-table-selection.d.ts","sourceRoot":"","sources":["../../src/composables/use-table-selection.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAGH,OAAO,EAKL,KAAK,YAAY,EAClB,MAAM,eAAe,CAAA;AAEtB,wBAAgB,iBAAiB,CAAC,MAAM,CAAC,EAAE,MAAM
|
|
1
|
+
{"version":3,"file":"use-table-selection.d.ts","sourceRoot":"","sources":["../../src/composables/use-table-selection.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAGH,OAAO,EAKL,KAAK,YAAY,EAClB,MAAM,eAAe,CAAA;AAEtB,wBAAgB,iBAAiB,CAAC,MAAM,CAAC,EAAE,MAAM;;;;;;;;;;iCAaX,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,eAAe,MAAM;kCAM7C,YAAY,GAAG,IAAI;8BAWvB,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,YAAY,YAAY,GAAG,IAAI;EA+B1F"}
|
package/dist/es-plus-vue2.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { getNestedValue as G, setNestedValue as J, resolveFormLayProps as Ce, getRowColsAlgorithm as lt, configFormField as it, formatConfigOut as ct, getEveryFormQueryField as ut, queryTableListMethod as dt, getGlobalConfig as pe, getButtonPosition as Ze, createSelectionState as ft, restoreSelectionForPage as pt, clearAllSelection as mt, applySelectionChange as gt, isObject as fe, getCallback as yt, findValueByKey as ht, configureEsPlus as vt } from "@es-plus/core";
|
|
2
2
|
import { configureEsPlus as kn } from "@es-plus/core";
|
|
3
|
-
import bt, { ref as z, computed as B, watch as ce, defineComponent as se, getCurrentInstance as Ee, inject as ae, nextTick as Fe, h as le, onMounted as De, onBeforeUnmount as _t, provide as tt, reactive as $e, onUpdated as Ct } from "vue";
|
|
3
|
+
import bt, { ref as z, computed as B, watch as ce, defineComponent as se, getCurrentInstance as Ee, inject as ae, nextTick as Fe, h as le, onMounted as De, onBeforeUnmount as _t, provide as tt, reactive as $e, onUpdated as Ct } from "@vue/composition-api";
|
|
4
4
|
import { MessageBox as Ge } from "element-ui";
|
|
5
5
|
function _e(n) {
|
|
6
6
|
if (Array.isArray(n)) return n;
|
|
@@ -2085,7 +2085,7 @@ const yn = [ye, Se, Be, He], hn = (n) => {
|
|
|
2085
2085
|
}
|
|
2086
2086
|
});
|
|
2087
2087
|
}, Sn = {
|
|
2088
|
-
version: "1.0.
|
|
2088
|
+
version: "1.0.3",
|
|
2089
2089
|
install: vn
|
|
2090
2090
|
};
|
|
2091
2091
|
export {
|