pro-design-vue 1.3.32 → 1.3.33
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/index.full.js +30 -14
- package/dist/index.full.min.js +4 -4
- package/dist/index.full.min.js.map +1 -1
- package/dist/index.full.min.mjs +5 -5
- package/dist/index.full.min.mjs.map +1 -1
- package/dist/index.full.mjs +30 -14
- package/es/components/button/index.d.ts +17 -8
- package/es/components/button/src/Button.d.ts +17 -8
- package/es/components/table/src/components/AutoHeightHeader/Header.vue.d.ts +17 -8
- package/es/components/table/src/components/AutoHeightHeader/HeaderRow.vue.d.ts +17 -8
- package/es/components/table/src/components/Filter/FilterDropdown.vue.d.ts +17 -8
- package/es/components/table/src/components/Header/Header.vue.d.ts +17 -8
- package/es/components/table/src/components/Header/HeaderCell.vue.d.ts +17 -8
- package/es/components/table/src/components/Header/HeaderRows.vue.d.ts +17 -8
- package/es/components/table/src/components/Header/HeaderRowsWrap.vue.d.ts +17 -8
- package/es/components/table/src/components/InteralTable.vue.d.ts +34 -16
- package/es/components/table/src/components/interface.d.ts +1 -1
- package/es/components/table/src/hooks/useFetchData.d.ts +1 -1
- package/es/index.d.ts +18 -9
- package/es/packages/components/button/src/Button.mjs +19 -6
- package/es/packages/components/button/src/Button.mjs.map +1 -1
- package/es/packages/components/table/src/components/Table.mjs +2 -2
- package/es/packages/components/table/src/components/Table.mjs.map +1 -1
- package/es/packages/components/table/src/components/interface.mjs.map +1 -1
- package/es/packages/components/table/src/hooks/useFetchData.mjs +7 -4
- package/es/packages/components/table/src/hooks/useFetchData.mjs.map +1 -1
- package/es/version.d.ts +1 -1
- package/es/version.mjs +1 -1
- package/es/version.mjs.map +1 -1
- package/lib/components/button/index.d.ts +17 -8
- package/lib/components/button/src/Button.d.ts +17 -8
- package/lib/components/table/src/components/AutoHeightHeader/Header.vue.d.ts +17 -8
- package/lib/components/table/src/components/AutoHeightHeader/HeaderRow.vue.d.ts +17 -8
- package/lib/components/table/src/components/Filter/FilterDropdown.vue.d.ts +17 -8
- package/lib/components/table/src/components/Header/Header.vue.d.ts +17 -8
- package/lib/components/table/src/components/Header/HeaderCell.vue.d.ts +17 -8
- package/lib/components/table/src/components/Header/HeaderRows.vue.d.ts +17 -8
- package/lib/components/table/src/components/Header/HeaderRowsWrap.vue.d.ts +17 -8
- package/lib/components/table/src/components/InteralTable.vue.d.ts +34 -16
- package/lib/components/table/src/components/interface.d.ts +1 -1
- package/lib/components/table/src/hooks/useFetchData.d.ts +1 -1
- package/lib/index.d.ts +18 -9
- package/lib/packages/components/button/src/Button.js +19 -6
- package/lib/packages/components/button/src/Button.js.map +1 -1
- package/lib/packages/components/table/src/components/Table.js +2 -2
- package/lib/packages/components/table/src/components/Table.js.map +1 -1
- package/lib/packages/components/table/src/components/interface.js.map +1 -1
- package/lib/packages/components/table/src/hooks/useFetchData.js +7 -4
- package/lib/packages/components/table/src/hooks/useFetchData.js.map +1 -1
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/lib/version.js.map +1 -1
- package/package.json +1 -1
|
@@ -6076,14 +6076,18 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
6076
6076
|
type: StringConstructor;
|
|
6077
6077
|
default: string;
|
|
6078
6078
|
};
|
|
6079
|
+
data: {
|
|
6080
|
+
type: PropType<any>;
|
|
6081
|
+
default: undefined;
|
|
6082
|
+
};
|
|
6079
6083
|
items: {
|
|
6080
6084
|
type: PropType<import("ant-design-vue").ItemType[]>;
|
|
6081
6085
|
default: () => never[];
|
|
6082
6086
|
};
|
|
6083
|
-
onClick: PropType<(e: MouseEvent) => void>;
|
|
6084
|
-
onConfirm: PropType<(
|
|
6085
|
-
onCancel: PropType<(
|
|
6086
|
-
onMenuClick: PropType<
|
|
6087
|
+
onClick: PropType<(e: MouseEvent, data?: any) => void>;
|
|
6088
|
+
onConfirm: PropType<(...args: any[]) => void>;
|
|
6089
|
+
onCancel: PropType<(...args: any[]) => void>;
|
|
6090
|
+
onMenuClick: PropType<(...args: any[]) => void>;
|
|
6087
6091
|
}>, () => import("vue/jsx-runtime").JSX.Element | null, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("cancel" | "click" | "confirm" | "menu-click")[], "cancel" | "click" | "confirm" | "menu-click", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
6088
6092
|
type: PropType<import("ant-design-vue").ButtonProps["type"]>;
|
|
6089
6093
|
htmlType: {
|
|
@@ -6164,14 +6168,18 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
6164
6168
|
type: StringConstructor;
|
|
6165
6169
|
default: string;
|
|
6166
6170
|
};
|
|
6171
|
+
data: {
|
|
6172
|
+
type: PropType<any>;
|
|
6173
|
+
default: undefined;
|
|
6174
|
+
};
|
|
6167
6175
|
items: {
|
|
6168
6176
|
type: PropType<import("ant-design-vue").ItemType[]>;
|
|
6169
6177
|
default: () => never[];
|
|
6170
6178
|
};
|
|
6171
|
-
onClick: PropType<(e: MouseEvent) => void>;
|
|
6172
|
-
onConfirm: PropType<(
|
|
6173
|
-
onCancel: PropType<(
|
|
6174
|
-
onMenuClick: PropType<
|
|
6179
|
+
onClick: PropType<(e: MouseEvent, data?: any) => void>;
|
|
6180
|
+
onConfirm: PropType<(...args: any[]) => void>;
|
|
6181
|
+
onCancel: PropType<(...args: any[]) => void>;
|
|
6182
|
+
onMenuClick: PropType<(...args: any[]) => void>;
|
|
6175
6183
|
}>> & Readonly<{
|
|
6176
6184
|
onCancel?: ((...args: any[]) => any) | undefined;
|
|
6177
6185
|
onClick?: ((...args: any[]) => any) | undefined;
|
|
@@ -6188,6 +6196,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
6188
6196
|
ghost: boolean;
|
|
6189
6197
|
block: boolean;
|
|
6190
6198
|
mode: "default" | "popconfirm" | "confirm" | "dropdown";
|
|
6199
|
+
data: any;
|
|
6191
6200
|
items: import("ant-design-vue").ItemType[];
|
|
6192
6201
|
tooltip: string;
|
|
6193
6202
|
stop: boolean;
|
|
@@ -2233,14 +2233,18 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
2233
2233
|
type: StringConstructor;
|
|
2234
2234
|
default: string;
|
|
2235
2235
|
};
|
|
2236
|
+
data: {
|
|
2237
|
+
type: PropType<any>;
|
|
2238
|
+
default: undefined;
|
|
2239
|
+
};
|
|
2236
2240
|
items: {
|
|
2237
2241
|
type: PropType<import("ant-design-vue").ItemType[]>;
|
|
2238
2242
|
default: () => never[];
|
|
2239
2243
|
};
|
|
2240
|
-
onClick: PropType<(e: MouseEvent) => void>;
|
|
2241
|
-
onConfirm: PropType<(
|
|
2242
|
-
onCancel: PropType<(
|
|
2243
|
-
onMenuClick: PropType<
|
|
2244
|
+
onClick: PropType<(e: MouseEvent, data?: any) => void>;
|
|
2245
|
+
onConfirm: PropType<(...args: any[]) => void>;
|
|
2246
|
+
onCancel: PropType<(...args: any[]) => void>;
|
|
2247
|
+
onMenuClick: PropType<(...args: any[]) => void>;
|
|
2244
2248
|
}>, () => import("vue/jsx-runtime").JSX.Element | null, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("cancel" | "click" | "confirm" | "menu-click")[], "cancel" | "click" | "confirm" | "menu-click", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
2245
2249
|
type: PropType<import("ant-design-vue").ButtonProps["type"]>;
|
|
2246
2250
|
htmlType: {
|
|
@@ -2321,14 +2325,18 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
2321
2325
|
type: StringConstructor;
|
|
2322
2326
|
default: string;
|
|
2323
2327
|
};
|
|
2328
|
+
data: {
|
|
2329
|
+
type: PropType<any>;
|
|
2330
|
+
default: undefined;
|
|
2331
|
+
};
|
|
2324
2332
|
items: {
|
|
2325
2333
|
type: PropType<import("ant-design-vue").ItemType[]>;
|
|
2326
2334
|
default: () => never[];
|
|
2327
2335
|
};
|
|
2328
|
-
onClick: PropType<(e: MouseEvent) => void>;
|
|
2329
|
-
onConfirm: PropType<(
|
|
2330
|
-
onCancel: PropType<(
|
|
2331
|
-
onMenuClick: PropType<
|
|
2336
|
+
onClick: PropType<(e: MouseEvent, data?: any) => void>;
|
|
2337
|
+
onConfirm: PropType<(...args: any[]) => void>;
|
|
2338
|
+
onCancel: PropType<(...args: any[]) => void>;
|
|
2339
|
+
onMenuClick: PropType<(...args: any[]) => void>;
|
|
2332
2340
|
}>> & Readonly<{
|
|
2333
2341
|
onCancel?: ((...args: any[]) => any) | undefined;
|
|
2334
2342
|
onClick?: ((...args: any[]) => any) | undefined;
|
|
@@ -2345,6 +2353,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
2345
2353
|
ghost: boolean;
|
|
2346
2354
|
block: boolean;
|
|
2347
2355
|
mode: "default" | "popconfirm" | "confirm" | "dropdown";
|
|
2356
|
+
data: any;
|
|
2348
2357
|
items: import("ant-design-vue").ItemType[];
|
|
2349
2358
|
tooltip: string;
|
|
2350
2359
|
stop: boolean;
|
|
@@ -4999,14 +4999,18 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
4999
4999
|
type: StringConstructor;
|
|
5000
5000
|
default: string;
|
|
5001
5001
|
};
|
|
5002
|
+
data: {
|
|
5003
|
+
type: PropType<any>;
|
|
5004
|
+
default: undefined;
|
|
5005
|
+
};
|
|
5002
5006
|
items: {
|
|
5003
5007
|
type: PropType<import("ant-design-vue").ItemType[]>;
|
|
5004
5008
|
default: () => never[];
|
|
5005
5009
|
};
|
|
5006
|
-
onClick: PropType<(e: MouseEvent) => void>;
|
|
5007
|
-
onConfirm: PropType<(
|
|
5008
|
-
onCancel: PropType<(
|
|
5009
|
-
onMenuClick: PropType<
|
|
5010
|
+
onClick: PropType<(e: MouseEvent, data?: any) => void>;
|
|
5011
|
+
onConfirm: PropType<(...args: any[]) => void>;
|
|
5012
|
+
onCancel: PropType<(...args: any[]) => void>;
|
|
5013
|
+
onMenuClick: PropType<(...args: any[]) => void>;
|
|
5010
5014
|
}>, () => import("vue/jsx-runtime").JSX.Element | null, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("cancel" | "click" | "confirm" | "menu-click")[], "cancel" | "click" | "confirm" | "menu-click", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
5011
5015
|
type: PropType<import("ant-design-vue").ButtonProps["type"]>;
|
|
5012
5016
|
htmlType: {
|
|
@@ -5087,14 +5091,18 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
5087
5091
|
type: StringConstructor;
|
|
5088
5092
|
default: string;
|
|
5089
5093
|
};
|
|
5094
|
+
data: {
|
|
5095
|
+
type: PropType<any>;
|
|
5096
|
+
default: undefined;
|
|
5097
|
+
};
|
|
5090
5098
|
items: {
|
|
5091
5099
|
type: PropType<import("ant-design-vue").ItemType[]>;
|
|
5092
5100
|
default: () => never[];
|
|
5093
5101
|
};
|
|
5094
|
-
onClick: PropType<(e: MouseEvent) => void>;
|
|
5095
|
-
onConfirm: PropType<(
|
|
5096
|
-
onCancel: PropType<(
|
|
5097
|
-
onMenuClick: PropType<
|
|
5102
|
+
onClick: PropType<(e: MouseEvent, data?: any) => void>;
|
|
5103
|
+
onConfirm: PropType<(...args: any[]) => void>;
|
|
5104
|
+
onCancel: PropType<(...args: any[]) => void>;
|
|
5105
|
+
onMenuClick: PropType<(...args: any[]) => void>;
|
|
5098
5106
|
}>> & Readonly<{
|
|
5099
5107
|
onCancel?: ((...args: any[]) => any) | undefined;
|
|
5100
5108
|
onClick?: ((...args: any[]) => any) | undefined;
|
|
@@ -5111,6 +5119,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
5111
5119
|
ghost: boolean;
|
|
5112
5120
|
block: boolean;
|
|
5113
5121
|
mode: "default" | "popconfirm" | "confirm" | "dropdown";
|
|
5122
|
+
data: any;
|
|
5114
5123
|
items: import("ant-design-vue").ItemType[];
|
|
5115
5124
|
tooltip: string;
|
|
5116
5125
|
stop: boolean;
|
|
@@ -4131,14 +4131,18 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
4131
4131
|
type: StringConstructor;
|
|
4132
4132
|
default: string;
|
|
4133
4133
|
};
|
|
4134
|
+
data: {
|
|
4135
|
+
type: PropType<any>;
|
|
4136
|
+
default: undefined;
|
|
4137
|
+
};
|
|
4134
4138
|
items: {
|
|
4135
4139
|
type: PropType<import("ant-design-vue").ItemType[]>;
|
|
4136
4140
|
default: () => never[];
|
|
4137
4141
|
};
|
|
4138
|
-
onClick: PropType<(e: MouseEvent) => void>;
|
|
4139
|
-
onConfirm: PropType<(
|
|
4140
|
-
onCancel: PropType<(
|
|
4141
|
-
onMenuClick: PropType<
|
|
4142
|
+
onClick: PropType<(e: MouseEvent, data?: any) => void>;
|
|
4143
|
+
onConfirm: PropType<(...args: any[]) => void>;
|
|
4144
|
+
onCancel: PropType<(...args: any[]) => void>;
|
|
4145
|
+
onMenuClick: PropType<(...args: any[]) => void>;
|
|
4142
4146
|
}>, () => import("vue/jsx-runtime").JSX.Element | null, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("cancel" | "click" | "confirm" | "menu-click")[], "cancel" | "click" | "confirm" | "menu-click", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
4143
4147
|
type: PropType<import("ant-design-vue").ButtonProps["type"]>;
|
|
4144
4148
|
htmlType: {
|
|
@@ -4219,14 +4223,18 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
4219
4223
|
type: StringConstructor;
|
|
4220
4224
|
default: string;
|
|
4221
4225
|
};
|
|
4226
|
+
data: {
|
|
4227
|
+
type: PropType<any>;
|
|
4228
|
+
default: undefined;
|
|
4229
|
+
};
|
|
4222
4230
|
items: {
|
|
4223
4231
|
type: PropType<import("ant-design-vue").ItemType[]>;
|
|
4224
4232
|
default: () => never[];
|
|
4225
4233
|
};
|
|
4226
|
-
onClick: PropType<(e: MouseEvent) => void>;
|
|
4227
|
-
onConfirm: PropType<(
|
|
4228
|
-
onCancel: PropType<(
|
|
4229
|
-
onMenuClick: PropType<
|
|
4234
|
+
onClick: PropType<(e: MouseEvent, data?: any) => void>;
|
|
4235
|
+
onConfirm: PropType<(...args: any[]) => void>;
|
|
4236
|
+
onCancel: PropType<(...args: any[]) => void>;
|
|
4237
|
+
onMenuClick: PropType<(...args: any[]) => void>;
|
|
4230
4238
|
}>> & Readonly<{
|
|
4231
4239
|
onCancel?: ((...args: any[]) => any) | undefined;
|
|
4232
4240
|
onClick?: ((...args: any[]) => any) | undefined;
|
|
@@ -4243,6 +4251,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
4243
4251
|
ghost: boolean;
|
|
4244
4252
|
block: boolean;
|
|
4245
4253
|
mode: "default" | "popconfirm" | "confirm" | "dropdown";
|
|
4254
|
+
data: any;
|
|
4246
4255
|
items: import("ant-design-vue").ItemType[];
|
|
4247
4256
|
tooltip: string;
|
|
4248
4257
|
stop: boolean;
|
|
@@ -4886,14 +4886,18 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
4886
4886
|
type: StringConstructor;
|
|
4887
4887
|
default: string;
|
|
4888
4888
|
};
|
|
4889
|
+
data: {
|
|
4890
|
+
type: PropType<any>;
|
|
4891
|
+
default: undefined;
|
|
4892
|
+
};
|
|
4889
4893
|
items: {
|
|
4890
4894
|
type: PropType<import("ant-design-vue").ItemType[]>;
|
|
4891
4895
|
default: () => never[];
|
|
4892
4896
|
};
|
|
4893
|
-
onClick: PropType<(e: MouseEvent) => void>;
|
|
4894
|
-
onConfirm: PropType<(
|
|
4895
|
-
onCancel: PropType<(
|
|
4896
|
-
onMenuClick: PropType<
|
|
4897
|
+
onClick: PropType<(e: MouseEvent, data?: any) => void>;
|
|
4898
|
+
onConfirm: PropType<(...args: any[]) => void>;
|
|
4899
|
+
onCancel: PropType<(...args: any[]) => void>;
|
|
4900
|
+
onMenuClick: PropType<(...args: any[]) => void>;
|
|
4897
4901
|
}>, () => import("vue/jsx-runtime").JSX.Element | null, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("cancel" | "click" | "confirm" | "menu-click")[], "cancel" | "click" | "confirm" | "menu-click", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
4898
4902
|
type: PropType<import("ant-design-vue").ButtonProps["type"]>;
|
|
4899
4903
|
htmlType: {
|
|
@@ -4974,14 +4978,18 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
4974
4978
|
type: StringConstructor;
|
|
4975
4979
|
default: string;
|
|
4976
4980
|
};
|
|
4981
|
+
data: {
|
|
4982
|
+
type: PropType<any>;
|
|
4983
|
+
default: undefined;
|
|
4984
|
+
};
|
|
4977
4985
|
items: {
|
|
4978
4986
|
type: PropType<import("ant-design-vue").ItemType[]>;
|
|
4979
4987
|
default: () => never[];
|
|
4980
4988
|
};
|
|
4981
|
-
onClick: PropType<(e: MouseEvent) => void>;
|
|
4982
|
-
onConfirm: PropType<(
|
|
4983
|
-
onCancel: PropType<(
|
|
4984
|
-
onMenuClick: PropType<
|
|
4989
|
+
onClick: PropType<(e: MouseEvent, data?: any) => void>;
|
|
4990
|
+
onConfirm: PropType<(...args: any[]) => void>;
|
|
4991
|
+
onCancel: PropType<(...args: any[]) => void>;
|
|
4992
|
+
onMenuClick: PropType<(...args: any[]) => void>;
|
|
4985
4993
|
}>> & Readonly<{
|
|
4986
4994
|
onCancel?: ((...args: any[]) => any) | undefined;
|
|
4987
4995
|
onClick?: ((...args: any[]) => any) | undefined;
|
|
@@ -4998,6 +5006,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
4998
5006
|
ghost: boolean;
|
|
4999
5007
|
block: boolean;
|
|
5000
5008
|
mode: "default" | "popconfirm" | "confirm" | "dropdown";
|
|
5009
|
+
data: any;
|
|
5001
5010
|
items: import("ant-design-vue").ItemType[];
|
|
5002
5011
|
tooltip: string;
|
|
5003
5012
|
stop: boolean;
|
|
@@ -4937,14 +4937,18 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
4937
4937
|
type: StringConstructor;
|
|
4938
4938
|
default: string;
|
|
4939
4939
|
};
|
|
4940
|
+
data: {
|
|
4941
|
+
type: PropType<any>;
|
|
4942
|
+
default: undefined;
|
|
4943
|
+
};
|
|
4940
4944
|
items: {
|
|
4941
4945
|
type: PropType<import("ant-design-vue").ItemType[]>;
|
|
4942
4946
|
default: () => never[];
|
|
4943
4947
|
};
|
|
4944
|
-
onClick: PropType<(e: MouseEvent) => void>;
|
|
4945
|
-
onConfirm: PropType<(
|
|
4946
|
-
onCancel: PropType<(
|
|
4947
|
-
onMenuClick: PropType<
|
|
4948
|
+
onClick: PropType<(e: MouseEvent, data?: any) => void>;
|
|
4949
|
+
onConfirm: PropType<(...args: any[]) => void>;
|
|
4950
|
+
onCancel: PropType<(...args: any[]) => void>;
|
|
4951
|
+
onMenuClick: PropType<(...args: any[]) => void>;
|
|
4948
4952
|
}>, () => import("vue/jsx-runtime").JSX.Element | null, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("cancel" | "click" | "confirm" | "menu-click")[], "cancel" | "click" | "confirm" | "menu-click", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
4949
4953
|
type: PropType<import("ant-design-vue").ButtonProps["type"]>;
|
|
4950
4954
|
htmlType: {
|
|
@@ -5025,14 +5029,18 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
5025
5029
|
type: StringConstructor;
|
|
5026
5030
|
default: string;
|
|
5027
5031
|
};
|
|
5032
|
+
data: {
|
|
5033
|
+
type: PropType<any>;
|
|
5034
|
+
default: undefined;
|
|
5035
|
+
};
|
|
5028
5036
|
items: {
|
|
5029
5037
|
type: PropType<import("ant-design-vue").ItemType[]>;
|
|
5030
5038
|
default: () => never[];
|
|
5031
5039
|
};
|
|
5032
|
-
onClick: PropType<(e: MouseEvent) => void>;
|
|
5033
|
-
onConfirm: PropType<(
|
|
5034
|
-
onCancel: PropType<(
|
|
5035
|
-
onMenuClick: PropType<
|
|
5040
|
+
onClick: PropType<(e: MouseEvent, data?: any) => void>;
|
|
5041
|
+
onConfirm: PropType<(...args: any[]) => void>;
|
|
5042
|
+
onCancel: PropType<(...args: any[]) => void>;
|
|
5043
|
+
onMenuClick: PropType<(...args: any[]) => void>;
|
|
5036
5044
|
}>> & Readonly<{
|
|
5037
5045
|
onCancel?: ((...args: any[]) => any) | undefined;
|
|
5038
5046
|
onClick?: ((...args: any[]) => any) | undefined;
|
|
@@ -5049,6 +5057,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
5049
5057
|
ghost: boolean;
|
|
5050
5058
|
block: boolean;
|
|
5051
5059
|
mode: "default" | "popconfirm" | "confirm" | "dropdown";
|
|
5060
|
+
data: any;
|
|
5052
5061
|
items: import("ant-design-vue").ItemType[];
|
|
5053
5062
|
tooltip: string;
|
|
5054
5063
|
stop: boolean;
|
|
@@ -7800,14 +7800,18 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
7800
7800
|
type: StringConstructor;
|
|
7801
7801
|
default: string;
|
|
7802
7802
|
};
|
|
7803
|
+
data: {
|
|
7804
|
+
type: import("vue").PropType<any>;
|
|
7805
|
+
default: undefined;
|
|
7806
|
+
};
|
|
7803
7807
|
items: {
|
|
7804
7808
|
type: import("vue").PropType<import("ant-design-vue").ItemType[]>;
|
|
7805
7809
|
default: () => never[];
|
|
7806
7810
|
};
|
|
7807
|
-
onClick: import("vue").PropType<(e: MouseEvent) => void>;
|
|
7808
|
-
onConfirm: import("vue").PropType<(
|
|
7809
|
-
onCancel: import("vue").PropType<(
|
|
7810
|
-
onMenuClick: import("vue").PropType<
|
|
7811
|
+
onClick: import("vue").PropType<(e: MouseEvent, data?: any) => void>;
|
|
7812
|
+
onConfirm: import("vue").PropType<(...args: any[]) => void>;
|
|
7813
|
+
onCancel: import("vue").PropType<(...args: any[]) => void>;
|
|
7814
|
+
onMenuClick: import("vue").PropType<(...args: any[]) => void>;
|
|
7811
7815
|
}>, () => import("vue/jsx-runtime").JSX.Element | null, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("cancel" | "click" | "confirm" | "menu-click")[], "cancel" | "click" | "confirm" | "menu-click", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
7812
7816
|
type: import("vue").PropType<import("ant-design-vue").ButtonProps["type"]>;
|
|
7813
7817
|
htmlType: {
|
|
@@ -7888,14 +7892,18 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
7888
7892
|
type: StringConstructor;
|
|
7889
7893
|
default: string;
|
|
7890
7894
|
};
|
|
7895
|
+
data: {
|
|
7896
|
+
type: import("vue").PropType<any>;
|
|
7897
|
+
default: undefined;
|
|
7898
|
+
};
|
|
7891
7899
|
items: {
|
|
7892
7900
|
type: import("vue").PropType<import("ant-design-vue").ItemType[]>;
|
|
7893
7901
|
default: () => never[];
|
|
7894
7902
|
};
|
|
7895
|
-
onClick: import("vue").PropType<(e: MouseEvent) => void>;
|
|
7896
|
-
onConfirm: import("vue").PropType<(
|
|
7897
|
-
onCancel: import("vue").PropType<(
|
|
7898
|
-
onMenuClick: import("vue").PropType<
|
|
7903
|
+
onClick: import("vue").PropType<(e: MouseEvent, data?: any) => void>;
|
|
7904
|
+
onConfirm: import("vue").PropType<(...args: any[]) => void>;
|
|
7905
|
+
onCancel: import("vue").PropType<(...args: any[]) => void>;
|
|
7906
|
+
onMenuClick: import("vue").PropType<(...args: any[]) => void>;
|
|
7899
7907
|
}>> & Readonly<{
|
|
7900
7908
|
onCancel?: ((...args: any[]) => any) | undefined;
|
|
7901
7909
|
onClick?: ((...args: any[]) => any) | undefined;
|
|
@@ -7912,6 +7920,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
7912
7920
|
ghost: boolean;
|
|
7913
7921
|
block: boolean;
|
|
7914
7922
|
mode: "default" | "popconfirm" | "confirm" | "dropdown";
|
|
7923
|
+
data: any;
|
|
7915
7924
|
items: import("ant-design-vue").ItemType[];
|
|
7916
7925
|
tooltip: string;
|
|
7917
7926
|
stop: boolean;
|
|
@@ -13603,14 +13612,18 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
13603
13612
|
type: StringConstructor;
|
|
13604
13613
|
default: string;
|
|
13605
13614
|
};
|
|
13615
|
+
data: {
|
|
13616
|
+
type: import("vue").PropType<any>;
|
|
13617
|
+
default: undefined;
|
|
13618
|
+
};
|
|
13606
13619
|
items: {
|
|
13607
13620
|
type: import("vue").PropType<import("ant-design-vue").ItemType[]>;
|
|
13608
13621
|
default: () => never[];
|
|
13609
13622
|
};
|
|
13610
|
-
onClick: import("vue").PropType<(e: MouseEvent) => void>;
|
|
13611
|
-
onConfirm: import("vue").PropType<(
|
|
13612
|
-
onCancel: import("vue").PropType<(
|
|
13613
|
-
onMenuClick: import("vue").PropType<
|
|
13623
|
+
onClick: import("vue").PropType<(e: MouseEvent, data?: any) => void>;
|
|
13624
|
+
onConfirm: import("vue").PropType<(...args: any[]) => void>;
|
|
13625
|
+
onCancel: import("vue").PropType<(...args: any[]) => void>;
|
|
13626
|
+
onMenuClick: import("vue").PropType<(...args: any[]) => void>;
|
|
13614
13627
|
}>, () => import("vue/jsx-runtime").JSX.Element | null, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("cancel" | "click" | "confirm" | "menu-click")[], "cancel" | "click" | "confirm" | "menu-click", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
13615
13628
|
type: import("vue").PropType<import("ant-design-vue").ButtonProps["type"]>;
|
|
13616
13629
|
htmlType: {
|
|
@@ -13691,14 +13704,18 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
13691
13704
|
type: StringConstructor;
|
|
13692
13705
|
default: string;
|
|
13693
13706
|
};
|
|
13707
|
+
data: {
|
|
13708
|
+
type: import("vue").PropType<any>;
|
|
13709
|
+
default: undefined;
|
|
13710
|
+
};
|
|
13694
13711
|
items: {
|
|
13695
13712
|
type: import("vue").PropType<import("ant-design-vue").ItemType[]>;
|
|
13696
13713
|
default: () => never[];
|
|
13697
13714
|
};
|
|
13698
|
-
onClick: import("vue").PropType<(e: MouseEvent) => void>;
|
|
13699
|
-
onConfirm: import("vue").PropType<(
|
|
13700
|
-
onCancel: import("vue").PropType<(
|
|
13701
|
-
onMenuClick: import("vue").PropType<
|
|
13715
|
+
onClick: import("vue").PropType<(e: MouseEvent, data?: any) => void>;
|
|
13716
|
+
onConfirm: import("vue").PropType<(...args: any[]) => void>;
|
|
13717
|
+
onCancel: import("vue").PropType<(...args: any[]) => void>;
|
|
13718
|
+
onMenuClick: import("vue").PropType<(...args: any[]) => void>;
|
|
13702
13719
|
}>> & Readonly<{
|
|
13703
13720
|
onCancel?: ((...args: any[]) => any) | undefined;
|
|
13704
13721
|
onClick?: ((...args: any[]) => any) | undefined;
|
|
@@ -13715,6 +13732,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
13715
13732
|
ghost: boolean;
|
|
13716
13733
|
block: boolean;
|
|
13717
13734
|
mode: "default" | "popconfirm" | "confirm" | "dropdown";
|
|
13735
|
+
data: any;
|
|
13718
13736
|
items: import("ant-design-vue").ItemType[];
|
|
13719
13737
|
tooltip: string;
|
|
13720
13738
|
stop: boolean;
|
|
@@ -2006,7 +2006,7 @@ export type Request<T = DefaultRecordType, U = Record<string, any>> = (params: U
|
|
|
2006
2006
|
pageSize?: number;
|
|
2007
2007
|
current?: number;
|
|
2008
2008
|
keyword?: string;
|
|
2009
|
-
}, sorters?: SorterResult<T>[], filter?: Record<string, (string | number)[] | null
|
|
2009
|
+
}, sorters?: SorterResult<T>[], filter?: Record<string, (string | number)[] | null>, abort?: AbortController) => Promise<Partial<RequestData<T>>>;
|
|
2010
2010
|
export type RequestData<T = DefaultRecordType> = {
|
|
2011
2011
|
data: T[] | undefined;
|
|
2012
2012
|
success?: boolean;
|
|
@@ -21,4 +21,4 @@ export type UseFetchDataAction<T = any> = {
|
|
|
21
21
|
setPagination: (val: PageInfo) => void;
|
|
22
22
|
onTableChange: ProTableProps['onChange'];
|
|
23
23
|
};
|
|
24
|
-
export declare const useFetchData: (getData: ComputedRef<((params?: Record<string, any>, sorters?: SorterResult<any>[], filter?: Record<string, (string | number)[] | null
|
|
24
|
+
export declare const useFetchData: (getData: ComputedRef<((params?: Record<string, any>, sorters?: SorterResult<any>[], filter?: Record<string, (string | number)[] | null>, abort?: AbortController) => Promise<RequestData>) | undefined>, props: ProTableProps) => UseFetchDataAction;
|
package/lib/index.d.ts
CHANGED
|
@@ -6424,14 +6424,18 @@ export declare const ProButton: SFCWithInstall<DefineComponent<ExtractPropTypes<
|
|
|
6424
6424
|
type: StringConstructor;
|
|
6425
6425
|
default: string;
|
|
6426
6426
|
};
|
|
6427
|
+
data: {
|
|
6428
|
+
type: PropType<any>;
|
|
6429
|
+
default: undefined;
|
|
6430
|
+
};
|
|
6427
6431
|
items: {
|
|
6428
6432
|
type: PropType<ItemType[]>;
|
|
6429
6433
|
default: () => never[];
|
|
6430
6434
|
};
|
|
6431
|
-
onClick: PropType<(e: MouseEvent) => void>;
|
|
6432
|
-
onConfirm: PropType<(
|
|
6433
|
-
onCancel: PropType<(
|
|
6434
|
-
onMenuClick: PropType<
|
|
6435
|
+
onClick: PropType<(e: MouseEvent, data?: any) => void>;
|
|
6436
|
+
onConfirm: PropType<(...args: any[]) => void>;
|
|
6437
|
+
onCancel: PropType<(...args: any[]) => void>;
|
|
6438
|
+
onMenuClick: PropType<(...args: any[]) => void>;
|
|
6435
6439
|
}>, () => JSX.Element | null, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, ("cancel" | "click" | "confirm" | "menu-click")[], "cancel" | "click" | "confirm" | "menu-click", PublicProps, Readonly<ExtractPropTypes<{
|
|
6436
6440
|
type: PropType<ButtonProps["type"]>;
|
|
6437
6441
|
htmlType: {
|
|
@@ -6512,14 +6516,18 @@ export declare const ProButton: SFCWithInstall<DefineComponent<ExtractPropTypes<
|
|
|
6512
6516
|
type: StringConstructor;
|
|
6513
6517
|
default: string;
|
|
6514
6518
|
};
|
|
6519
|
+
data: {
|
|
6520
|
+
type: PropType<any>;
|
|
6521
|
+
default: undefined;
|
|
6522
|
+
};
|
|
6515
6523
|
items: {
|
|
6516
6524
|
type: PropType<ItemType[]>;
|
|
6517
6525
|
default: () => never[];
|
|
6518
6526
|
};
|
|
6519
|
-
onClick: PropType<(e: MouseEvent) => void>;
|
|
6520
|
-
onConfirm: PropType<(
|
|
6521
|
-
onCancel: PropType<(
|
|
6522
|
-
onMenuClick: PropType<
|
|
6527
|
+
onClick: PropType<(e: MouseEvent, data?: any) => void>;
|
|
6528
|
+
onConfirm: PropType<(...args: any[]) => void>;
|
|
6529
|
+
onCancel: PropType<(...args: any[]) => void>;
|
|
6530
|
+
onMenuClick: PropType<(...args: any[]) => void>;
|
|
6523
6531
|
}>> & Readonly<{
|
|
6524
6532
|
onCancel?: ((...args: any[]) => any) | undefined;
|
|
6525
6533
|
onClick?: ((...args: any[]) => any) | undefined;
|
|
@@ -6536,6 +6544,7 @@ export declare const ProButton: SFCWithInstall<DefineComponent<ExtractPropTypes<
|
|
|
6536
6544
|
ghost: boolean;
|
|
6537
6545
|
block: boolean;
|
|
6538
6546
|
mode: "default" | "popconfirm" | "confirm" | "dropdown";
|
|
6547
|
+
data: any;
|
|
6539
6548
|
items: ItemType[];
|
|
6540
6549
|
tooltip: string;
|
|
6541
6550
|
stop: boolean;
|
|
@@ -7327,7 +7336,7 @@ export declare type ProTableRequest<T = DefaultRecordType, U = Record<string, an
|
|
|
7327
7336
|
pageSize?: number;
|
|
7328
7337
|
current?: number;
|
|
7329
7338
|
keyword?: string;
|
|
7330
|
-
}, sorters?: SorterResult<T>[], filter?: Record<string, (string | number)[] | null
|
|
7339
|
+
}, sorters?: SorterResult<T>[], filter?: Record<string, (string | number)[] | null>, abort?: AbortController) => Promise<Partial<RequestData<T>>>;
|
|
7331
7340
|
export declare interface ProTableRowSelection<T = DefaultRecordType> {
|
|
7332
7341
|
/** Keep the selection keys in list even the key not exist in `dataSource` anymore */
|
|
7333
7342
|
preserveSelectedRowKeys?: boolean;
|
|
@@ -91,6 +91,10 @@ var Button = /* @__PURE__ */ vue.defineComponent({
|
|
|
91
91
|
type: String,
|
|
92
92
|
default: ""
|
|
93
93
|
},
|
|
94
|
+
data: {
|
|
95
|
+
type: [String, Boolean, Number, Array, Object],
|
|
96
|
+
default: void 0
|
|
97
|
+
},
|
|
94
98
|
items: {
|
|
95
99
|
type: Array,
|
|
96
100
|
default: () => []
|
|
@@ -127,7 +131,7 @@ var Button = /* @__PURE__ */ vue.defineComponent({
|
|
|
127
131
|
e.stopPropagation();
|
|
128
132
|
}
|
|
129
133
|
if (props.mode === "default") {
|
|
130
|
-
emit("click", e);
|
|
134
|
+
emit("click", e, props.data);
|
|
131
135
|
return;
|
|
132
136
|
}
|
|
133
137
|
if (props.mode === "confirm") {
|
|
@@ -137,11 +141,11 @@ var Button = /* @__PURE__ */ vue.defineComponent({
|
|
|
137
141
|
title: renderConfirmContent((_c = props.confirmProps) == null ? void 0 : _c.title) || ((_d = props.confirmProps) == null ? void 0 : _d.title),
|
|
138
142
|
onCancel() {
|
|
139
143
|
var _a2;
|
|
140
|
-
return (_a2 = props.onCancel) == null ? void 0 : _a2.call(props);
|
|
144
|
+
return (_a2 = props.onCancel) == null ? void 0 : _a2.call(props, props.data);
|
|
141
145
|
},
|
|
142
146
|
onOk() {
|
|
143
147
|
var _a2;
|
|
144
|
-
return (_a2 = props.onConfirm) == null ? void 0 : _a2.call(props);
|
|
148
|
+
return (_a2 = props.onConfirm) == null ? void 0 : _a2.call(props, props.data);
|
|
145
149
|
}
|
|
146
150
|
});
|
|
147
151
|
}
|
|
@@ -187,8 +191,14 @@ var Button = /* @__PURE__ */ vue.defineComponent({
|
|
|
187
191
|
}
|
|
188
192
|
if (props.mode === "popconfirm") {
|
|
189
193
|
return vue.createVNode(antDesignVue.Popconfirm, vue.mergeProps(props.popconfirmProps, {
|
|
190
|
-
"onConfirm":
|
|
191
|
-
|
|
194
|
+
"onConfirm": () => {
|
|
195
|
+
var _a2;
|
|
196
|
+
return (_a2 = props.onConfirm) == null ? void 0 : _a2.call(props, props.data);
|
|
197
|
+
},
|
|
198
|
+
"onCancel": () => {
|
|
199
|
+
var _a2;
|
|
200
|
+
return (_a2 = props.onCancel) == null ? void 0 : _a2.call(props, props.data);
|
|
201
|
+
}
|
|
192
202
|
}), _isSlot(defaultDom) ? defaultDom : {
|
|
193
203
|
default: () => [defaultDom]
|
|
194
204
|
});
|
|
@@ -198,7 +208,10 @@ var Button = /* @__PURE__ */ vue.defineComponent({
|
|
|
198
208
|
default: () => [defaultDom],
|
|
199
209
|
overlay: () => vue.createVNode(antDesignVue.Menu, vue.mergeProps(props.menuProps, {
|
|
200
210
|
"items": props.items,
|
|
201
|
-
"onClick":
|
|
211
|
+
"onClick": (...args) => {
|
|
212
|
+
var _a2;
|
|
213
|
+
return (_a2 = props.onMenuClick) == null ? void 0 : _a2.call(props, ...args, props.data);
|
|
214
|
+
}
|
|
202
215
|
}), null)
|
|
203
216
|
});
|
|
204
217
|
}
|