3h1-ui 3.0.0-next.229 → 3.0.0-next.230
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/es/index.js
CHANGED
|
@@ -31965,78 +31965,79 @@ const withInstall$5 = (component) => {
|
|
|
31965
31965
|
};
|
|
31966
31966
|
withInstall$5(ShyTable);
|
|
31967
31967
|
const formTable = "";
|
|
31968
|
-
const
|
|
31969
|
-
|
|
31970
|
-
|
|
31971
|
-
|
|
31972
|
-
|
|
31973
|
-
|
|
31974
|
-
|
|
31975
|
-
|
|
31976
|
-
|
|
31977
|
-
|
|
31978
|
-
|
|
31979
|
-
|
|
31980
|
-
|
|
31981
|
-
|
|
31982
|
-
|
|
31983
|
-
|
|
31984
|
-
|
|
31985
|
-
|
|
31986
|
-
|
|
31987
|
-
|
|
31988
|
-
|
|
31989
|
-
|
|
31990
|
-
|
|
31991
|
-
|
|
31992
|
-
|
|
31993
|
-
|
|
31994
|
-
|
|
31995
|
-
|
|
31996
|
-
|
|
31997
|
-
|
|
31998
|
-
|
|
31999
|
-
|
|
32000
|
-
|
|
32001
|
-
|
|
32002
|
-
|
|
32003
|
-
|
|
32004
|
-
|
|
32005
|
-
|
|
32006
|
-
|
|
32007
|
-
|
|
32008
|
-
|
|
32009
|
-
|
|
32010
|
-
|
|
32011
|
-
|
|
32012
|
-
|
|
32013
|
-
|
|
32014
|
-
|
|
32015
|
-
|
|
32016
|
-
return [];
|
|
32017
|
-
}
|
|
32018
|
-
},
|
|
32019
|
-
showRowCount: {
|
|
32020
|
-
type: Number,
|
|
32021
|
-
default: 10
|
|
32022
|
-
},
|
|
32023
|
-
addBtnConf: {
|
|
32024
|
-
type: Object,
|
|
32025
|
-
default: () => {
|
|
32026
|
-
return {
|
|
32027
|
-
text: "新增",
|
|
32028
|
-
type: "dashed"
|
|
32029
|
-
};
|
|
32030
|
-
}
|
|
32031
|
-
},
|
|
32032
|
-
dynamicShowRemove: {
|
|
32033
|
-
type: Function,
|
|
32034
|
-
default: () => (record) => true
|
|
32035
|
-
},
|
|
32036
|
-
setFormModel: {
|
|
32037
|
-
type: Function
|
|
31968
|
+
const shyFormTableProps = reactive({
|
|
31969
|
+
isShowIndex: {
|
|
31970
|
+
type: Boolean,
|
|
31971
|
+
default: true
|
|
31972
|
+
},
|
|
31973
|
+
rowKey: {
|
|
31974
|
+
type: String,
|
|
31975
|
+
default: () => "uuid"
|
|
31976
|
+
},
|
|
31977
|
+
rowSelection: {
|
|
31978
|
+
type: Object
|
|
31979
|
+
},
|
|
31980
|
+
columns: {
|
|
31981
|
+
type: Array,
|
|
31982
|
+
default: () => []
|
|
31983
|
+
},
|
|
31984
|
+
value: {
|
|
31985
|
+
type: Array,
|
|
31986
|
+
default: () => []
|
|
31987
|
+
},
|
|
31988
|
+
isShowFooter: {
|
|
31989
|
+
type: Boolean,
|
|
31990
|
+
default: () => false
|
|
31991
|
+
},
|
|
31992
|
+
footerRender: {
|
|
31993
|
+
type: Function,
|
|
31994
|
+
default: () => ""
|
|
31995
|
+
},
|
|
31996
|
+
isShowAddBtn: {
|
|
31997
|
+
type: Boolean,
|
|
31998
|
+
default: () => true
|
|
31999
|
+
},
|
|
32000
|
+
isShowAction: {
|
|
32001
|
+
type: Boolean,
|
|
32002
|
+
default: () => true
|
|
32003
|
+
},
|
|
32004
|
+
isVirtual: {
|
|
32005
|
+
type: Boolean,
|
|
32006
|
+
default: () => true
|
|
32007
|
+
},
|
|
32008
|
+
isShowRemoveBtn: {
|
|
32009
|
+
type: Boolean,
|
|
32010
|
+
default: () => true
|
|
32011
|
+
},
|
|
32012
|
+
tableAction: {
|
|
32013
|
+
type: Function,
|
|
32014
|
+
default: (res) => {
|
|
32015
|
+
return [];
|
|
32038
32016
|
}
|
|
32039
32017
|
},
|
|
32018
|
+
showRowCount: {
|
|
32019
|
+
type: Number,
|
|
32020
|
+
default: 10
|
|
32021
|
+
},
|
|
32022
|
+
addBtnConf: {
|
|
32023
|
+
type: Object,
|
|
32024
|
+
default: () => {
|
|
32025
|
+
return {
|
|
32026
|
+
text: "新增",
|
|
32027
|
+
type: "dashed"
|
|
32028
|
+
};
|
|
32029
|
+
}
|
|
32030
|
+
},
|
|
32031
|
+
dynamicShowRemove: {
|
|
32032
|
+
type: Function,
|
|
32033
|
+
default: () => (record) => true
|
|
32034
|
+
},
|
|
32035
|
+
setFormModel: {
|
|
32036
|
+
type: Function
|
|
32037
|
+
}
|
|
32038
|
+
});
|
|
32039
|
+
const ShyFormTable = /* @__PURE__ */ defineComponent({
|
|
32040
|
+
props: shyFormTableProps,
|
|
32040
32041
|
emits: ["update:value", "change", "add", "remove"],
|
|
32041
32042
|
setup(props2, {
|
|
32042
32043
|
emit,
|
|
@@ -49760,6 +49761,7 @@ export {
|
|
|
49760
49761
|
shyContainerProps,
|
|
49761
49762
|
basicProps as shyDescriptionsProps,
|
|
49762
49763
|
shyFormBasicProps,
|
|
49764
|
+
shyFormTableProps,
|
|
49763
49765
|
shyGridItemProps,
|
|
49764
49766
|
shyLayoutContainerProps,
|
|
49765
49767
|
shyTableActionProps,
|
|
@@ -14,7 +14,7 @@ export { default as ShyApiTree } from './src/components/ApiTree.vue';
|
|
|
14
14
|
export { default as ShyApiRadioGroup } from './src/components/ApiRadioGroup.vue';
|
|
15
15
|
export { default as ShyApiCascader } from './src/components/ApiCascader.vue';
|
|
16
16
|
export { default as ShyApiTransfer } from './src/components/ApiTransfer.vue';
|
|
17
|
-
export { ShyFormTable as ShyTableChildren } from './src/components/Table';
|
|
17
|
+
export { ShyFormTable as ShyTableChildren, shyFormTableProps } from './src/components/Table';
|
|
18
18
|
export { default as ShyApiModalSelect } from './src/components/ApiModalSelect/ApiModalSelect.vue';
|
|
19
19
|
export { default as ShyFormWrapper } from './src/components/FormWrapper.vue';
|
|
20
20
|
export { shyFormBasicProps } from './src/props';
|
|
@@ -1,5 +1,88 @@
|
|
|
1
1
|
import { VNode } from 'vue';
|
|
2
2
|
import { TableRowSelection } from 'ant-design-vue/es/table/interface';
|
|
3
|
+
export declare const shyFormTableProps: {
|
|
4
|
+
isShowIndex: {
|
|
5
|
+
type: BooleanConstructor;
|
|
6
|
+
default: boolean;
|
|
7
|
+
};
|
|
8
|
+
rowKey: {
|
|
9
|
+
type: StringConstructor;
|
|
10
|
+
default: () => "uuid";
|
|
11
|
+
};
|
|
12
|
+
rowSelection: {
|
|
13
|
+
type: ((new (...args: any[]) => TableRowSelection<any>) | (() => TableRowSelection<any>)) | ((new (...args: any[]) => TableRowSelection<any>) | (() => TableRowSelection<any>))[];
|
|
14
|
+
};
|
|
15
|
+
columns: {
|
|
16
|
+
type: ((new (...args: any[]) => Recordable<any>[]) | (() => Recordable<any>[])) | ((new (...args: any[]) => Recordable<any>[]) | (() => Recordable<any>[]))[];
|
|
17
|
+
default: () => any[];
|
|
18
|
+
};
|
|
19
|
+
value: {
|
|
20
|
+
type: ((new (...args: any[]) => Recordable<any>[]) | (() => Recordable<any>[])) | ((new (...args: any[]) => Recordable<any>[]) | (() => Recordable<any>[]))[];
|
|
21
|
+
default: () => any[];
|
|
22
|
+
};
|
|
23
|
+
isShowFooter: {
|
|
24
|
+
type: BooleanConstructor;
|
|
25
|
+
default: () => false;
|
|
26
|
+
};
|
|
27
|
+
footerRender: {
|
|
28
|
+
type: ((new (...args: any[]) => () => VNode | VNode[] | string | number) | (() => () => VNode | VNode[] | string | number) | {
|
|
29
|
+
(): () => VNode | VNode[] | string | number;
|
|
30
|
+
new (): any;
|
|
31
|
+
readonly prototype: any;
|
|
32
|
+
}) | ((new (...args: any[]) => () => VNode | VNode[] | string | number) | (() => () => VNode | VNode[] | string | number) | {
|
|
33
|
+
(): () => VNode | VNode[] | string | number;
|
|
34
|
+
new (): any;
|
|
35
|
+
readonly prototype: any;
|
|
36
|
+
})[];
|
|
37
|
+
default: () => "";
|
|
38
|
+
};
|
|
39
|
+
isShowAddBtn: {
|
|
40
|
+
type: BooleanConstructor;
|
|
41
|
+
default: () => true;
|
|
42
|
+
};
|
|
43
|
+
isShowAction: {
|
|
44
|
+
type: BooleanConstructor;
|
|
45
|
+
default: () => true;
|
|
46
|
+
};
|
|
47
|
+
isVirtual: {
|
|
48
|
+
type: BooleanConstructor;
|
|
49
|
+
default: () => true;
|
|
50
|
+
};
|
|
51
|
+
isShowRemoveBtn: {
|
|
52
|
+
type: BooleanConstructor;
|
|
53
|
+
default: () => true;
|
|
54
|
+
};
|
|
55
|
+
tableAction: {
|
|
56
|
+
type: FunctionConstructor;
|
|
57
|
+
default: (res: any) => any[];
|
|
58
|
+
};
|
|
59
|
+
showRowCount: {
|
|
60
|
+
type: NumberConstructor;
|
|
61
|
+
default: number;
|
|
62
|
+
};
|
|
63
|
+
addBtnConf: {
|
|
64
|
+
type: ObjectConstructor;
|
|
65
|
+
default: () => {
|
|
66
|
+
text: string;
|
|
67
|
+
type: string;
|
|
68
|
+
};
|
|
69
|
+
};
|
|
70
|
+
dynamicShowRemove: {
|
|
71
|
+
type: ((new (...args: any[]) => (record: Recordable) => boolean) | (() => (record: Recordable) => boolean) | {
|
|
72
|
+
(): (record: Recordable) => boolean;
|
|
73
|
+
new (): any;
|
|
74
|
+
readonly prototype: any;
|
|
75
|
+
}) | ((new (...args: any[]) => (record: Recordable) => boolean) | (() => (record: Recordable) => boolean) | {
|
|
76
|
+
(): (record: Recordable) => boolean;
|
|
77
|
+
new (): any;
|
|
78
|
+
readonly prototype: any;
|
|
79
|
+
})[];
|
|
80
|
+
default: () => (record: any) => true;
|
|
81
|
+
};
|
|
82
|
+
setFormModel: {
|
|
83
|
+
type: FunctionConstructor;
|
|
84
|
+
};
|
|
85
|
+
};
|
|
3
86
|
declare const ShyFormTable: import("vue").DefineComponent<{
|
|
4
87
|
isShowIndex: {
|
|
5
88
|
type: BooleanConstructor;
|
|
@@ -10,14 +93,14 @@ declare const ShyFormTable: import("vue").DefineComponent<{
|
|
|
10
93
|
default: () => "uuid";
|
|
11
94
|
};
|
|
12
95
|
rowSelection: {
|
|
13
|
-
type:
|
|
96
|
+
type: ((new (...args: any[]) => TableRowSelection<any>) | (() => TableRowSelection<any>)) | ((new (...args: any[]) => TableRowSelection<any>) | (() => TableRowSelection<any>))[];
|
|
14
97
|
};
|
|
15
98
|
columns: {
|
|
16
|
-
type:
|
|
99
|
+
type: ((new (...args: any[]) => Recordable<any>[]) | (() => Recordable<any>[])) | ((new (...args: any[]) => Recordable<any>[]) | (() => Recordable<any>[]))[];
|
|
17
100
|
default: () => any[];
|
|
18
101
|
};
|
|
19
102
|
value: {
|
|
20
|
-
type:
|
|
103
|
+
type: ((new (...args: any[]) => Recordable<any>[]) | (() => Recordable<any>[])) | ((new (...args: any[]) => Recordable<any>[]) | (() => Recordable<any>[]))[];
|
|
21
104
|
default: () => any[];
|
|
22
105
|
};
|
|
23
106
|
isShowFooter: {
|
|
@@ -25,7 +108,15 @@ declare const ShyFormTable: import("vue").DefineComponent<{
|
|
|
25
108
|
default: () => false;
|
|
26
109
|
};
|
|
27
110
|
footerRender: {
|
|
28
|
-
type:
|
|
111
|
+
type: ((new (...args: any[]) => () => VNode | VNode[] | string | number) | (() => () => VNode | VNode[] | string | number) | {
|
|
112
|
+
(): () => VNode | VNode[] | string | number;
|
|
113
|
+
new (): any;
|
|
114
|
+
readonly prototype: any;
|
|
115
|
+
}) | ((new (...args: any[]) => () => VNode | VNode[] | string | number) | (() => () => VNode | VNode[] | string | number) | {
|
|
116
|
+
(): () => VNode | VNode[] | string | number;
|
|
117
|
+
new (): any;
|
|
118
|
+
readonly prototype: any;
|
|
119
|
+
})[];
|
|
29
120
|
default: () => "";
|
|
30
121
|
};
|
|
31
122
|
isShowAddBtn: {
|
|
@@ -60,7 +151,15 @@ declare const ShyFormTable: import("vue").DefineComponent<{
|
|
|
60
151
|
};
|
|
61
152
|
};
|
|
62
153
|
dynamicShowRemove: {
|
|
63
|
-
type:
|
|
154
|
+
type: ((new (...args: any[]) => (record: Recordable) => boolean) | (() => (record: Recordable) => boolean) | {
|
|
155
|
+
(): (record: Recordable) => boolean;
|
|
156
|
+
new (): any;
|
|
157
|
+
readonly prototype: any;
|
|
158
|
+
}) | ((new (...args: any[]) => (record: Recordable) => boolean) | (() => (record: Recordable) => boolean) | {
|
|
159
|
+
(): (record: Recordable) => boolean;
|
|
160
|
+
new (): any;
|
|
161
|
+
readonly prototype: any;
|
|
162
|
+
})[];
|
|
64
163
|
default: () => (record: any) => true;
|
|
65
164
|
};
|
|
66
165
|
setFormModel: {
|
|
@@ -76,14 +175,14 @@ declare const ShyFormTable: import("vue").DefineComponent<{
|
|
|
76
175
|
default: () => "uuid";
|
|
77
176
|
};
|
|
78
177
|
rowSelection: {
|
|
79
|
-
type:
|
|
178
|
+
type: ((new (...args: any[]) => TableRowSelection<any>) | (() => TableRowSelection<any>)) | ((new (...args: any[]) => TableRowSelection<any>) | (() => TableRowSelection<any>))[];
|
|
80
179
|
};
|
|
81
180
|
columns: {
|
|
82
|
-
type:
|
|
181
|
+
type: ((new (...args: any[]) => Recordable<any>[]) | (() => Recordable<any>[])) | ((new (...args: any[]) => Recordable<any>[]) | (() => Recordable<any>[]))[];
|
|
83
182
|
default: () => any[];
|
|
84
183
|
};
|
|
85
184
|
value: {
|
|
86
|
-
type:
|
|
185
|
+
type: ((new (...args: any[]) => Recordable<any>[]) | (() => Recordable<any>[])) | ((new (...args: any[]) => Recordable<any>[]) | (() => Recordable<any>[]))[];
|
|
87
186
|
default: () => any[];
|
|
88
187
|
};
|
|
89
188
|
isShowFooter: {
|
|
@@ -91,7 +190,15 @@ declare const ShyFormTable: import("vue").DefineComponent<{
|
|
|
91
190
|
default: () => false;
|
|
92
191
|
};
|
|
93
192
|
footerRender: {
|
|
94
|
-
type:
|
|
193
|
+
type: ((new (...args: any[]) => () => VNode | VNode[] | string | number) | (() => () => VNode | VNode[] | string | number) | {
|
|
194
|
+
(): () => VNode | VNode[] | string | number;
|
|
195
|
+
new (): any;
|
|
196
|
+
readonly prototype: any;
|
|
197
|
+
}) | ((new (...args: any[]) => () => VNode | VNode[] | string | number) | (() => () => VNode | VNode[] | string | number) | {
|
|
198
|
+
(): () => VNode | VNode[] | string | number;
|
|
199
|
+
new (): any;
|
|
200
|
+
readonly prototype: any;
|
|
201
|
+
})[];
|
|
95
202
|
default: () => "";
|
|
96
203
|
};
|
|
97
204
|
isShowAddBtn: {
|
|
@@ -126,7 +233,15 @@ declare const ShyFormTable: import("vue").DefineComponent<{
|
|
|
126
233
|
};
|
|
127
234
|
};
|
|
128
235
|
dynamicShowRemove: {
|
|
129
|
-
type:
|
|
236
|
+
type: ((new (...args: any[]) => (record: Recordable) => boolean) | (() => (record: Recordable) => boolean) | {
|
|
237
|
+
(): (record: Recordable) => boolean;
|
|
238
|
+
new (): any;
|
|
239
|
+
readonly prototype: any;
|
|
240
|
+
}) | ((new (...args: any[]) => (record: Recordable) => boolean) | (() => (record: Recordable) => boolean) | {
|
|
241
|
+
(): (record: Recordable) => boolean;
|
|
242
|
+
new (): any;
|
|
243
|
+
readonly prototype: any;
|
|
244
|
+
})[];
|
|
130
245
|
default: () => (record: any) => true;
|
|
131
246
|
};
|
|
132
247
|
setFormModel: {
|
package/lib/index.js
CHANGED
|
@@ -31989,78 +31989,79 @@ const withInstall$5 = (component) => {
|
|
|
31989
31989
|
};
|
|
31990
31990
|
withInstall$5(ShyTable);
|
|
31991
31991
|
const formTable = "";
|
|
31992
|
-
const
|
|
31993
|
-
|
|
31994
|
-
|
|
31995
|
-
|
|
31996
|
-
|
|
31997
|
-
|
|
31998
|
-
|
|
31999
|
-
|
|
32000
|
-
|
|
32001
|
-
|
|
32002
|
-
|
|
32003
|
-
|
|
32004
|
-
|
|
32005
|
-
|
|
32006
|
-
|
|
32007
|
-
|
|
32008
|
-
|
|
32009
|
-
|
|
32010
|
-
|
|
32011
|
-
|
|
32012
|
-
|
|
32013
|
-
|
|
32014
|
-
|
|
32015
|
-
|
|
32016
|
-
|
|
32017
|
-
|
|
32018
|
-
|
|
32019
|
-
|
|
32020
|
-
|
|
32021
|
-
|
|
32022
|
-
|
|
32023
|
-
|
|
32024
|
-
|
|
32025
|
-
|
|
32026
|
-
|
|
32027
|
-
|
|
32028
|
-
|
|
32029
|
-
|
|
32030
|
-
|
|
32031
|
-
|
|
32032
|
-
|
|
32033
|
-
|
|
32034
|
-
|
|
32035
|
-
|
|
32036
|
-
|
|
32037
|
-
|
|
32038
|
-
|
|
32039
|
-
|
|
32040
|
-
return [];
|
|
32041
|
-
}
|
|
32042
|
-
},
|
|
32043
|
-
showRowCount: {
|
|
32044
|
-
type: Number,
|
|
32045
|
-
default: 10
|
|
32046
|
-
},
|
|
32047
|
-
addBtnConf: {
|
|
32048
|
-
type: Object,
|
|
32049
|
-
default: () => {
|
|
32050
|
-
return {
|
|
32051
|
-
text: "新增",
|
|
32052
|
-
type: "dashed"
|
|
32053
|
-
};
|
|
32054
|
-
}
|
|
32055
|
-
},
|
|
32056
|
-
dynamicShowRemove: {
|
|
32057
|
-
type: Function,
|
|
32058
|
-
default: () => (record) => true
|
|
32059
|
-
},
|
|
32060
|
-
setFormModel: {
|
|
32061
|
-
type: Function
|
|
31992
|
+
const shyFormTableProps = vue.reactive({
|
|
31993
|
+
isShowIndex: {
|
|
31994
|
+
type: Boolean,
|
|
31995
|
+
default: true
|
|
31996
|
+
},
|
|
31997
|
+
rowKey: {
|
|
31998
|
+
type: String,
|
|
31999
|
+
default: () => "uuid"
|
|
32000
|
+
},
|
|
32001
|
+
rowSelection: {
|
|
32002
|
+
type: Object
|
|
32003
|
+
},
|
|
32004
|
+
columns: {
|
|
32005
|
+
type: Array,
|
|
32006
|
+
default: () => []
|
|
32007
|
+
},
|
|
32008
|
+
value: {
|
|
32009
|
+
type: Array,
|
|
32010
|
+
default: () => []
|
|
32011
|
+
},
|
|
32012
|
+
isShowFooter: {
|
|
32013
|
+
type: Boolean,
|
|
32014
|
+
default: () => false
|
|
32015
|
+
},
|
|
32016
|
+
footerRender: {
|
|
32017
|
+
type: Function,
|
|
32018
|
+
default: () => ""
|
|
32019
|
+
},
|
|
32020
|
+
isShowAddBtn: {
|
|
32021
|
+
type: Boolean,
|
|
32022
|
+
default: () => true
|
|
32023
|
+
},
|
|
32024
|
+
isShowAction: {
|
|
32025
|
+
type: Boolean,
|
|
32026
|
+
default: () => true
|
|
32027
|
+
},
|
|
32028
|
+
isVirtual: {
|
|
32029
|
+
type: Boolean,
|
|
32030
|
+
default: () => true
|
|
32031
|
+
},
|
|
32032
|
+
isShowRemoveBtn: {
|
|
32033
|
+
type: Boolean,
|
|
32034
|
+
default: () => true
|
|
32035
|
+
},
|
|
32036
|
+
tableAction: {
|
|
32037
|
+
type: Function,
|
|
32038
|
+
default: (res) => {
|
|
32039
|
+
return [];
|
|
32062
32040
|
}
|
|
32063
32041
|
},
|
|
32042
|
+
showRowCount: {
|
|
32043
|
+
type: Number,
|
|
32044
|
+
default: 10
|
|
32045
|
+
},
|
|
32046
|
+
addBtnConf: {
|
|
32047
|
+
type: Object,
|
|
32048
|
+
default: () => {
|
|
32049
|
+
return {
|
|
32050
|
+
text: "新增",
|
|
32051
|
+
type: "dashed"
|
|
32052
|
+
};
|
|
32053
|
+
}
|
|
32054
|
+
},
|
|
32055
|
+
dynamicShowRemove: {
|
|
32056
|
+
type: Function,
|
|
32057
|
+
default: () => (record) => true
|
|
32058
|
+
},
|
|
32059
|
+
setFormModel: {
|
|
32060
|
+
type: Function
|
|
32061
|
+
}
|
|
32062
|
+
});
|
|
32063
|
+
const ShyFormTable = /* @__PURE__ */ vue.defineComponent({
|
|
32064
|
+
props: shyFormTableProps,
|
|
32064
32065
|
emits: ["update:value", "change", "add", "remove"],
|
|
32065
32066
|
setup(props2, {
|
|
32066
32067
|
emit,
|
|
@@ -49783,6 +49784,7 @@ exports.searchTypeString = searchTypeString;
|
|
|
49783
49784
|
exports.shyContainerProps = shyContainerProps;
|
|
49784
49785
|
exports.shyDescriptionsProps = basicProps;
|
|
49785
49786
|
exports.shyFormBasicProps = shyFormBasicProps;
|
|
49787
|
+
exports.shyFormTableProps = shyFormTableProps;
|
|
49786
49788
|
exports.shyGridItemProps = shyGridItemProps;
|
|
49787
49789
|
exports.shyLayoutContainerProps = shyLayoutContainerProps;
|
|
49788
49790
|
exports.shyTableActionProps = shyTableActionProps;
|
|
@@ -14,7 +14,7 @@ export { default as ShyApiTree } from './src/components/ApiTree.vue';
|
|
|
14
14
|
export { default as ShyApiRadioGroup } from './src/components/ApiRadioGroup.vue';
|
|
15
15
|
export { default as ShyApiCascader } from './src/components/ApiCascader.vue';
|
|
16
16
|
export { default as ShyApiTransfer } from './src/components/ApiTransfer.vue';
|
|
17
|
-
export { ShyFormTable as ShyTableChildren } from './src/components/Table';
|
|
17
|
+
export { ShyFormTable as ShyTableChildren, shyFormTableProps } from './src/components/Table';
|
|
18
18
|
export { default as ShyApiModalSelect } from './src/components/ApiModalSelect/ApiModalSelect.vue';
|
|
19
19
|
export { default as ShyFormWrapper } from './src/components/FormWrapper.vue';
|
|
20
20
|
export { shyFormBasicProps } from './src/props';
|
|
@@ -1,5 +1,88 @@
|
|
|
1
1
|
import { VNode } from 'vue';
|
|
2
2
|
import { TableRowSelection } from 'ant-design-vue/es/table/interface';
|
|
3
|
+
export declare const shyFormTableProps: {
|
|
4
|
+
isShowIndex: {
|
|
5
|
+
type: BooleanConstructor;
|
|
6
|
+
default: boolean;
|
|
7
|
+
};
|
|
8
|
+
rowKey: {
|
|
9
|
+
type: StringConstructor;
|
|
10
|
+
default: () => "uuid";
|
|
11
|
+
};
|
|
12
|
+
rowSelection: {
|
|
13
|
+
type: ((new (...args: any[]) => TableRowSelection<any>) | (() => TableRowSelection<any>)) | ((new (...args: any[]) => TableRowSelection<any>) | (() => TableRowSelection<any>))[];
|
|
14
|
+
};
|
|
15
|
+
columns: {
|
|
16
|
+
type: ((new (...args: any[]) => Recordable<any>[]) | (() => Recordable<any>[])) | ((new (...args: any[]) => Recordable<any>[]) | (() => Recordable<any>[]))[];
|
|
17
|
+
default: () => any[];
|
|
18
|
+
};
|
|
19
|
+
value: {
|
|
20
|
+
type: ((new (...args: any[]) => Recordable<any>[]) | (() => Recordable<any>[])) | ((new (...args: any[]) => Recordable<any>[]) | (() => Recordable<any>[]))[];
|
|
21
|
+
default: () => any[];
|
|
22
|
+
};
|
|
23
|
+
isShowFooter: {
|
|
24
|
+
type: BooleanConstructor;
|
|
25
|
+
default: () => false;
|
|
26
|
+
};
|
|
27
|
+
footerRender: {
|
|
28
|
+
type: ((new (...args: any[]) => () => VNode | VNode[] | string | number) | (() => () => VNode | VNode[] | string | number) | {
|
|
29
|
+
(): () => VNode | VNode[] | string | number;
|
|
30
|
+
new (): any;
|
|
31
|
+
readonly prototype: any;
|
|
32
|
+
}) | ((new (...args: any[]) => () => VNode | VNode[] | string | number) | (() => () => VNode | VNode[] | string | number) | {
|
|
33
|
+
(): () => VNode | VNode[] | string | number;
|
|
34
|
+
new (): any;
|
|
35
|
+
readonly prototype: any;
|
|
36
|
+
})[];
|
|
37
|
+
default: () => "";
|
|
38
|
+
};
|
|
39
|
+
isShowAddBtn: {
|
|
40
|
+
type: BooleanConstructor;
|
|
41
|
+
default: () => true;
|
|
42
|
+
};
|
|
43
|
+
isShowAction: {
|
|
44
|
+
type: BooleanConstructor;
|
|
45
|
+
default: () => true;
|
|
46
|
+
};
|
|
47
|
+
isVirtual: {
|
|
48
|
+
type: BooleanConstructor;
|
|
49
|
+
default: () => true;
|
|
50
|
+
};
|
|
51
|
+
isShowRemoveBtn: {
|
|
52
|
+
type: BooleanConstructor;
|
|
53
|
+
default: () => true;
|
|
54
|
+
};
|
|
55
|
+
tableAction: {
|
|
56
|
+
type: FunctionConstructor;
|
|
57
|
+
default: (res: any) => any[];
|
|
58
|
+
};
|
|
59
|
+
showRowCount: {
|
|
60
|
+
type: NumberConstructor;
|
|
61
|
+
default: number;
|
|
62
|
+
};
|
|
63
|
+
addBtnConf: {
|
|
64
|
+
type: ObjectConstructor;
|
|
65
|
+
default: () => {
|
|
66
|
+
text: string;
|
|
67
|
+
type: string;
|
|
68
|
+
};
|
|
69
|
+
};
|
|
70
|
+
dynamicShowRemove: {
|
|
71
|
+
type: ((new (...args: any[]) => (record: Recordable) => boolean) | (() => (record: Recordable) => boolean) | {
|
|
72
|
+
(): (record: Recordable) => boolean;
|
|
73
|
+
new (): any;
|
|
74
|
+
readonly prototype: any;
|
|
75
|
+
}) | ((new (...args: any[]) => (record: Recordable) => boolean) | (() => (record: Recordable) => boolean) | {
|
|
76
|
+
(): (record: Recordable) => boolean;
|
|
77
|
+
new (): any;
|
|
78
|
+
readonly prototype: any;
|
|
79
|
+
})[];
|
|
80
|
+
default: () => (record: any) => true;
|
|
81
|
+
};
|
|
82
|
+
setFormModel: {
|
|
83
|
+
type: FunctionConstructor;
|
|
84
|
+
};
|
|
85
|
+
};
|
|
3
86
|
declare const ShyFormTable: import("vue").DefineComponent<{
|
|
4
87
|
isShowIndex: {
|
|
5
88
|
type: BooleanConstructor;
|
|
@@ -10,14 +93,14 @@ declare const ShyFormTable: import("vue").DefineComponent<{
|
|
|
10
93
|
default: () => "uuid";
|
|
11
94
|
};
|
|
12
95
|
rowSelection: {
|
|
13
|
-
type:
|
|
96
|
+
type: ((new (...args: any[]) => TableRowSelection<any>) | (() => TableRowSelection<any>)) | ((new (...args: any[]) => TableRowSelection<any>) | (() => TableRowSelection<any>))[];
|
|
14
97
|
};
|
|
15
98
|
columns: {
|
|
16
|
-
type:
|
|
99
|
+
type: ((new (...args: any[]) => Recordable<any>[]) | (() => Recordable<any>[])) | ((new (...args: any[]) => Recordable<any>[]) | (() => Recordable<any>[]))[];
|
|
17
100
|
default: () => any[];
|
|
18
101
|
};
|
|
19
102
|
value: {
|
|
20
|
-
type:
|
|
103
|
+
type: ((new (...args: any[]) => Recordable<any>[]) | (() => Recordable<any>[])) | ((new (...args: any[]) => Recordable<any>[]) | (() => Recordable<any>[]))[];
|
|
21
104
|
default: () => any[];
|
|
22
105
|
};
|
|
23
106
|
isShowFooter: {
|
|
@@ -25,7 +108,15 @@ declare const ShyFormTable: import("vue").DefineComponent<{
|
|
|
25
108
|
default: () => false;
|
|
26
109
|
};
|
|
27
110
|
footerRender: {
|
|
28
|
-
type:
|
|
111
|
+
type: ((new (...args: any[]) => () => VNode | VNode[] | string | number) | (() => () => VNode | VNode[] | string | number) | {
|
|
112
|
+
(): () => VNode | VNode[] | string | number;
|
|
113
|
+
new (): any;
|
|
114
|
+
readonly prototype: any;
|
|
115
|
+
}) | ((new (...args: any[]) => () => VNode | VNode[] | string | number) | (() => () => VNode | VNode[] | string | number) | {
|
|
116
|
+
(): () => VNode | VNode[] | string | number;
|
|
117
|
+
new (): any;
|
|
118
|
+
readonly prototype: any;
|
|
119
|
+
})[];
|
|
29
120
|
default: () => "";
|
|
30
121
|
};
|
|
31
122
|
isShowAddBtn: {
|
|
@@ -60,7 +151,15 @@ declare const ShyFormTable: import("vue").DefineComponent<{
|
|
|
60
151
|
};
|
|
61
152
|
};
|
|
62
153
|
dynamicShowRemove: {
|
|
63
|
-
type:
|
|
154
|
+
type: ((new (...args: any[]) => (record: Recordable) => boolean) | (() => (record: Recordable) => boolean) | {
|
|
155
|
+
(): (record: Recordable) => boolean;
|
|
156
|
+
new (): any;
|
|
157
|
+
readonly prototype: any;
|
|
158
|
+
}) | ((new (...args: any[]) => (record: Recordable) => boolean) | (() => (record: Recordable) => boolean) | {
|
|
159
|
+
(): (record: Recordable) => boolean;
|
|
160
|
+
new (): any;
|
|
161
|
+
readonly prototype: any;
|
|
162
|
+
})[];
|
|
64
163
|
default: () => (record: any) => true;
|
|
65
164
|
};
|
|
66
165
|
setFormModel: {
|
|
@@ -76,14 +175,14 @@ declare const ShyFormTable: import("vue").DefineComponent<{
|
|
|
76
175
|
default: () => "uuid";
|
|
77
176
|
};
|
|
78
177
|
rowSelection: {
|
|
79
|
-
type:
|
|
178
|
+
type: ((new (...args: any[]) => TableRowSelection<any>) | (() => TableRowSelection<any>)) | ((new (...args: any[]) => TableRowSelection<any>) | (() => TableRowSelection<any>))[];
|
|
80
179
|
};
|
|
81
180
|
columns: {
|
|
82
|
-
type:
|
|
181
|
+
type: ((new (...args: any[]) => Recordable<any>[]) | (() => Recordable<any>[])) | ((new (...args: any[]) => Recordable<any>[]) | (() => Recordable<any>[]))[];
|
|
83
182
|
default: () => any[];
|
|
84
183
|
};
|
|
85
184
|
value: {
|
|
86
|
-
type:
|
|
185
|
+
type: ((new (...args: any[]) => Recordable<any>[]) | (() => Recordable<any>[])) | ((new (...args: any[]) => Recordable<any>[]) | (() => Recordable<any>[]))[];
|
|
87
186
|
default: () => any[];
|
|
88
187
|
};
|
|
89
188
|
isShowFooter: {
|
|
@@ -91,7 +190,15 @@ declare const ShyFormTable: import("vue").DefineComponent<{
|
|
|
91
190
|
default: () => false;
|
|
92
191
|
};
|
|
93
192
|
footerRender: {
|
|
94
|
-
type:
|
|
193
|
+
type: ((new (...args: any[]) => () => VNode | VNode[] | string | number) | (() => () => VNode | VNode[] | string | number) | {
|
|
194
|
+
(): () => VNode | VNode[] | string | number;
|
|
195
|
+
new (): any;
|
|
196
|
+
readonly prototype: any;
|
|
197
|
+
}) | ((new (...args: any[]) => () => VNode | VNode[] | string | number) | (() => () => VNode | VNode[] | string | number) | {
|
|
198
|
+
(): () => VNode | VNode[] | string | number;
|
|
199
|
+
new (): any;
|
|
200
|
+
readonly prototype: any;
|
|
201
|
+
})[];
|
|
95
202
|
default: () => "";
|
|
96
203
|
};
|
|
97
204
|
isShowAddBtn: {
|
|
@@ -126,7 +233,15 @@ declare const ShyFormTable: import("vue").DefineComponent<{
|
|
|
126
233
|
};
|
|
127
234
|
};
|
|
128
235
|
dynamicShowRemove: {
|
|
129
|
-
type:
|
|
236
|
+
type: ((new (...args: any[]) => (record: Recordable) => boolean) | (() => (record: Recordable) => boolean) | {
|
|
237
|
+
(): (record: Recordable) => boolean;
|
|
238
|
+
new (): any;
|
|
239
|
+
readonly prototype: any;
|
|
240
|
+
}) | ((new (...args: any[]) => (record: Recordable) => boolean) | (() => (record: Recordable) => boolean) | {
|
|
241
|
+
(): (record: Recordable) => boolean;
|
|
242
|
+
new (): any;
|
|
243
|
+
readonly prototype: any;
|
|
244
|
+
})[];
|
|
130
245
|
default: () => (record: any) => true;
|
|
131
246
|
};
|
|
132
247
|
setFormModel: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "3h1-ui",
|
|
3
|
-
"version": "3.0.0-next.
|
|
3
|
+
"version": "3.0.0-next.230",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"module": "es/index.js",
|
|
@@ -29,9 +29,9 @@
|
|
|
29
29
|
"vue-json-pretty": "^2.2.3",
|
|
30
30
|
"vxe-table": "^4.3.6",
|
|
31
31
|
"xe-utils": "^3.5.7",
|
|
32
|
+
"@shy-plugins/utils": "1.0.0-next.1",
|
|
32
33
|
"@shy-plugins/tinymce": "^1.0.6",
|
|
33
|
-
"@shy-plugins/use": "1.0.1-next.5"
|
|
34
|
-
"@shy-plugins/utils": "1.0.0-next.1"
|
|
34
|
+
"@shy-plugins/use": "1.0.1-next.5"
|
|
35
35
|
},
|
|
36
36
|
"types": "es/ui/index.d.ts",
|
|
37
37
|
"devDependencies": {
|