@aplus-frontend/ui 0.1.31 → 0.1.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/es/index.mjs +77 -72
- package/es/src/ap-button/ap-action-button.vue.d.ts +43 -0
- package/es/src/ap-button/ap-action-button.vue.mjs +43 -0
- package/es/src/ap-button/ap-action-button.vue2.mjs +4 -0
- package/es/src/ap-button/ap-button.vue.mjs +52 -50
- package/es/src/ap-button/index.d.ts +2 -1
- package/es/src/ap-button/index.mjs +1 -0
- package/es/src/ap-button/interface.d.ts +1 -0
- package/es/src/ap-descriptions/ap-descriptions.vue.mjs +43 -45
- package/es/src/ap-descriptions/formatter/index.d.ts +2 -2
- package/es/src/ap-descriptions/helper.d.ts +19 -1
- package/es/src/ap-descriptions/helper.mjs +22 -12
- package/es/src/ap-descriptions/style/ap-descriptions.css +1 -5
- package/es/src/ap-download/ap-download.vue.mjs +51 -40
- package/es/src/ap-download/utils/getFileInfo.d.ts +4 -1
- package/es/src/ap-download/utils/getFileInfo.mjs +51 -26
- package/es/src/ap-form/ap-form-item.vue.d.ts +1 -1
- package/es/src/ap-form/ap-form-item.vue.mjs +68 -62
- package/es/src/ap-form/ap-form-list.vue.mjs +23 -21
- package/es/src/ap-form/ap-form.vue.d.ts +3 -1
- package/es/src/ap-form/ap-form.vue2.mjs +130 -80
- package/es/src/ap-form/interface.d.ts +51 -1
- package/es/src/ap-form/items/checkbox/index.vue.mjs +6 -5
- package/es/src/ap-form/items/date/index.vue.mjs +10 -9
- package/es/src/ap-form/items/date-range/index.vue.mjs +8 -7
- package/es/src/ap-form/items/number/index.vue.mjs +12 -11
- package/es/src/ap-form/items/radio/index.vue.mjs +5 -4
- package/es/src/ap-form/items/select/index.vue.mjs +1 -0
- package/es/src/ap-form/items/switch/index.vue.mjs +10 -9
- package/es/src/ap-form/items/text/index.vue2.mjs +1 -0
- package/es/src/ap-form/items/text/password.vue.mjs +1 -0
- package/es/src/ap-form/items/text-area/index.vue.mjs +7 -6
- package/es/src/ap-form/modal-form/index.vue.d.ts +7 -3
- package/es/src/ap-form/search-form/index.vue.d.ts +7 -3
- package/es/src/ap-form/utils/get.d.ts +1 -0
- package/es/src/ap-form/utils/get.mjs +12 -0
- package/es/src/ap-form/utils/set.d.ts +6 -0
- package/es/src/ap-form/utils/set.mjs +41 -0
- package/es/src/ap-list/index.vue.d.ts +3 -0
- package/es/src/ap-list/index.vue.mjs +51 -49
- package/es/src/ap-table/ap-table.vue.d.ts +4 -1
- package/es/src/ap-table/ap-table.vue.mjs +65 -59
- package/es/src/ap-table/constants.d.ts +121 -1
- package/es/src/ap-table/interface.d.ts +6 -1
- package/es/src/ap-table/utils.d.ts +121 -1
- package/es/src/business/ap-attachment/ApAttachment.mjs +76 -68
- package/es/src/business/ap-card/ApCard.vue.d.ts +27 -0
- package/es/src/business/ap-card/ApCard.vue.mjs +4 -0
- package/es/src/business/ap-card/ApCard.vue2.mjs +65 -0
- package/es/src/business/ap-card/index.css +10 -0
- package/es/src/business/ap-card/interface.d.ts +9 -0
- package/es/src/business/ap-expand-alert/ApExpandAlert.vue.d.ts +30 -100
- package/es/src/business/ap-expand-alert/ApExpandAlert.vue2.mjs +104 -64
- package/es/src/business/ap-expand-alert/interface.d.ts +24 -6
- package/es/src/business/ap-expand-alert/style.css +9 -0
- package/es/src/business/ap-export-group/ApExportGroup.vue2.mjs +59 -70
- package/es/src/business/ap-export-group/handleExportDownload.d.ts +1 -0
- package/es/src/business/ap-export-group/handleExportDownload.mjs +14 -0
- package/es/src/business/{title → ap-title}/style.css +4 -4
- package/es/src/business/hooks/usePageListApTable.d.ts +2 -0
- package/es/src/business/index.d.ts +105 -188
- package/es/src/business/index.mjs +28 -23
- package/es/src/check-card/group.vue.d.ts +7 -1
- package/es/src/check-card/group.vue.mjs +26 -22
- package/es/src/check-card/index.vue.d.ts +5 -2
- package/es/src/check-card/index.vue2.mjs +69 -60
- package/es/src/check-card/interface.d.ts +12 -0
- package/es/src/check-card/style/index.css +8 -5
- package/es/src/config-provider/config-provider-props.d.ts +5 -1
- package/es/src/config-provider/config-provider-props.mjs +6 -2
- package/es/src/config-provider/config-provider.d.ts +10 -1
- package/es/src/config-provider/config-provider.mjs +20 -19
- package/es/src/config-provider/constants.d.ts +9 -0
- package/es/src/config-provider/hooks/use-global-config.d.ts +5 -1
- package/es/src/config-provider/index.d.ts +20 -1
- package/es/src/editable-table/interface.d.ts +3 -2
- package/es/src/index.mjs +215 -210
- package/es/src/locale/lang/en.mjs +4 -0
- package/es/src/locale/lang/zh-cn.mjs +4 -0
- package/es/src/theme/ap-card/ap-card.css +10 -0
- package/es/src/theme/ap-descriptions/ap-descriptions.css +1 -5
- package/es/src/theme/ap-expand-alert/ap-expand-alert.css +9 -0
- package/es/src/theme/ap-title/ap-title.css +4 -4
- package/es/src/theme/check-card/index.css +8 -5
- package/es/src/theme/css-var/index.mjs +33 -15
- package/lib/index.js +1 -1
- package/lib/src/ap-button/ap-action-button.vue.d.ts +43 -0
- package/lib/src/ap-button/ap-action-button.vue.js +1 -0
- package/lib/src/ap-button/ap-action-button.vue2.js +1 -0
- package/lib/src/ap-button/ap-button.vue.js +1 -1
- package/lib/src/ap-button/index.d.ts +2 -1
- package/lib/src/ap-button/index.js +1 -1
- package/lib/src/ap-button/interface.d.ts +1 -0
- package/lib/src/ap-descriptions/ap-descriptions.vue.js +1 -1
- package/lib/src/ap-descriptions/formatter/index.d.ts +2 -2
- package/lib/src/ap-descriptions/helper.d.ts +19 -1
- package/lib/src/ap-descriptions/helper.js +1 -1
- package/lib/src/ap-descriptions/style/ap-descriptions.css +1 -5
- package/lib/src/ap-download/ap-download.vue.js +1 -1
- package/lib/src/ap-download/utils/getFileInfo.d.ts +4 -1
- package/lib/src/ap-download/utils/getFileInfo.js +1 -1
- package/lib/src/ap-form/ap-form-item.vue.d.ts +1 -1
- package/lib/src/ap-form/ap-form-item.vue.js +1 -1
- package/lib/src/ap-form/ap-form-list.vue.js +1 -1
- package/lib/src/ap-form/ap-form.vue.d.ts +3 -1
- package/lib/src/ap-form/ap-form.vue2.js +1 -1
- package/lib/src/ap-form/interface.d.ts +51 -1
- package/lib/src/ap-form/items/checkbox/index.vue.js +1 -1
- package/lib/src/ap-form/items/date/index.vue.js +1 -1
- package/lib/src/ap-form/items/date-range/index.vue.js +1 -1
- package/lib/src/ap-form/items/number/index.vue.js +1 -1
- package/lib/src/ap-form/items/radio/index.vue.js +1 -1
- package/lib/src/ap-form/items/select/index.vue.js +1 -1
- package/lib/src/ap-form/items/switch/index.vue.js +1 -1
- package/lib/src/ap-form/items/text/index.vue2.js +1 -1
- package/lib/src/ap-form/items/text/password.vue.js +1 -1
- package/lib/src/ap-form/items/text-area/index.vue.js +1 -1
- package/lib/src/ap-form/modal-form/index.vue.d.ts +7 -3
- package/lib/src/ap-form/search-form/index.vue.d.ts +7 -3
- package/lib/src/ap-form/utils/get.d.ts +1 -0
- package/lib/src/ap-form/utils/get.js +1 -0
- package/lib/src/ap-form/utils/set.d.ts +6 -0
- package/lib/src/ap-form/utils/set.js +1 -0
- package/lib/src/ap-list/index.vue.d.ts +3 -0
- package/lib/src/ap-list/index.vue.js +1 -1
- package/lib/src/ap-table/ap-table.vue.d.ts +4 -1
- package/lib/src/ap-table/ap-table.vue.js +1 -1
- package/lib/src/ap-table/constants.d.ts +121 -1
- package/lib/src/ap-table/interface.d.ts +6 -1
- package/lib/src/ap-table/utils.d.ts +121 -1
- package/lib/src/business/ap-attachment/ApAttachment.js +1 -1
- package/lib/src/business/ap-card/ApCard.vue.d.ts +27 -0
- package/lib/src/business/ap-card/ApCard.vue.js +1 -0
- package/lib/src/business/ap-card/ApCard.vue2.js +1 -0
- package/lib/src/business/ap-card/index.css +10 -0
- package/lib/src/business/ap-card/interface.d.ts +9 -0
- package/lib/src/business/ap-expand-alert/ApExpandAlert.vue.d.ts +30 -100
- package/lib/src/business/ap-expand-alert/ApExpandAlert.vue2.js +1 -1
- package/lib/src/business/ap-expand-alert/interface.d.ts +24 -6
- package/lib/src/business/ap-expand-alert/style.css +9 -0
- package/lib/src/business/ap-export-group/ApExportGroup.vue2.js +1 -1
- package/lib/src/business/ap-export-group/handleExportDownload.d.ts +1 -0
- package/lib/src/business/ap-export-group/handleExportDownload.js +1 -0
- package/lib/src/business/{title → ap-title}/style.css +4 -4
- package/lib/src/business/hooks/usePageListApTable.d.ts +2 -0
- package/lib/src/business/index.d.ts +105 -188
- package/lib/src/business/index.js +1 -1
- package/lib/src/check-card/group.vue.d.ts +7 -1
- package/lib/src/check-card/group.vue.js +1 -1
- package/lib/src/check-card/index.vue.d.ts +5 -2
- package/lib/src/check-card/index.vue2.js +1 -1
- package/lib/src/check-card/interface.d.ts +12 -0
- package/lib/src/check-card/style/index.css +8 -5
- package/lib/src/config-provider/config-provider-props.d.ts +5 -1
- package/lib/src/config-provider/config-provider-props.js +1 -1
- package/lib/src/config-provider/config-provider.d.ts +10 -1
- package/lib/src/config-provider/config-provider.js +1 -1
- package/lib/src/config-provider/constants.d.ts +9 -0
- package/lib/src/config-provider/hooks/use-global-config.d.ts +5 -1
- package/lib/src/config-provider/index.d.ts +20 -1
- package/lib/src/editable-table/interface.d.ts +3 -2
- package/lib/src/index.js +1 -1
- package/lib/src/locale/lang/en.js +1 -1
- package/lib/src/locale/lang/zh-cn.js +1 -1
- package/lib/src/theme/ap-card/ap-card.css +10 -0
- package/lib/src/theme/ap-descriptions/ap-descriptions.css +1 -5
- package/lib/src/theme/ap-expand-alert/ap-expand-alert.css +9 -0
- package/lib/src/theme/ap-title/ap-title.css +4 -4
- package/lib/src/theme/check-card/index.css +8 -5
- package/lib/src/theme/css-var/index.js +1 -1
- package/package.json +1 -1
- /package/es/src/business/{title → ap-title}/ApTitle.vue.d.ts +0 -0
- /package/es/src/business/{title → ap-title}/ApTitle.vue.mjs +0 -0
- /package/es/src/business/{title → ap-title}/ApTitle.vue2.mjs +0 -0
- /package/es/src/business/{title → ap-title}/interface.d.ts +0 -0
- /package/lib/src/business/{title → ap-title}/ApTitle.vue.d.ts +0 -0
- /package/lib/src/business/{title → ap-title}/ApTitle.vue.js +0 -0
- /package/lib/src/business/{title → ap-title}/ApTitle.vue2.js +0 -0
- /package/lib/src/business/{title → ap-title}/interface.d.ts +0 -0
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
.aplus-ap-title {
|
|
2
2
|
position: relative;
|
|
3
3
|
width: 100%;
|
|
4
|
-
height: 20px;
|
|
5
4
|
display: flex;
|
|
6
5
|
align-items: center;
|
|
7
6
|
justify-content: space-between;
|
|
@@ -12,7 +11,8 @@
|
|
|
12
11
|
position: absolute;
|
|
13
12
|
content: '';
|
|
14
13
|
left: 0;
|
|
15
|
-
top:
|
|
14
|
+
top: 50%;
|
|
15
|
+
transform: translateY(-50%);
|
|
16
16
|
width: 3px;
|
|
17
17
|
height: 16px;
|
|
18
18
|
background: #0070ff;
|
|
@@ -30,11 +30,11 @@
|
|
|
30
30
|
color: #0070ff;
|
|
31
31
|
}
|
|
32
32
|
.aplus-ap-title--admin {
|
|
33
|
-
height: 22px;
|
|
34
33
|
padding-left: 14px;
|
|
35
34
|
}
|
|
36
35
|
.aplus-ap-title--admin::before {
|
|
37
|
-
top:
|
|
36
|
+
top: 50%;
|
|
37
|
+
transform: translateY(-50%);
|
|
38
38
|
width: 8px;
|
|
39
39
|
height: 8px;
|
|
40
40
|
border-radius: 50%;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { ApTableProps } from '../../';
|
|
2
2
|
import { UseTableRefreshOption } from './useTableRefresh';
|
|
3
3
|
import { Recordable } from '../../type';
|
|
4
|
+
import { TableColumnsType } from 'ant-design-vue';
|
|
4
5
|
export interface UsePageListApTable extends ApTableProps {
|
|
5
6
|
/** 是否显示默认的行选择配置
|
|
6
7
|
* @default true
|
|
@@ -46,6 +47,7 @@ export declare function usePageListApTable(props?: UsePageListApTable): [ApTable
|
|
|
46
47
|
clearAll: () => void;
|
|
47
48
|
toggleSelect: (item: any) => void;
|
|
48
49
|
} | undefined;
|
|
50
|
+
getShownColumns: () => TableColumnsType<any>;
|
|
49
51
|
} | null | undefined;
|
|
50
52
|
clearSelection: () => void;
|
|
51
53
|
}];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ApTransformDataHelper } from '../utils/ap-trans-data';
|
|
2
|
-
import { CreateComponentPublicInstance, ExtractPropTypes, PropType, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ComponentOptionsBase, Plugin, VNode, CSSProperties,
|
|
2
|
+
import { CreateComponentPublicInstance, ExtractPropTypes, PropType, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ComponentOptionsBase, Plugin, Component, VNode, CSSProperties, PublicProps, ShallowUnwrapRef, RendererNode, RendererElement, DefineComponent } from 'vue';
|
|
3
3
|
import { TooltipPlacement, AdjustOverflow } from 'ant-design-vue/es/tooltip';
|
|
4
4
|
import { VueTypeValidableDef } from '../../node_modules/vue-types';
|
|
5
5
|
import { LiteralUnion, Key } from 'ant-design-vue/es/_util/type';
|
|
@@ -19,8 +19,9 @@ import { PresetColorType } from 'ant-design-vue/es/_util/colors';
|
|
|
19
19
|
import { AlignType, BuildInPlacements } from 'ant-design-vue/es/vc-trigger/interface';
|
|
20
20
|
import { ApLadderSlots } from './ap-ladder/interface';
|
|
21
21
|
import { AttachmentItemProps, ApAttachmentProps } from './ap-attachment';
|
|
22
|
+
import { ApCardTitleProps } from './ap-card/interface';
|
|
22
23
|
export * from './hooks/index';
|
|
23
|
-
export type { ApTitleProps } from './title/interface';
|
|
24
|
+
export type { ApTitleProps } from './ap-title/interface';
|
|
24
25
|
export type { ApExpandAlertProps } from './ap-expand-alert/interface';
|
|
25
26
|
export type { ApLabelProps, ApLabelGroupProps, ApLabelGroupItemProps } from './ap-label/interface';
|
|
26
27
|
export type { ApStatusProps, ApStatusGroupProps, ApStatusGroupItemProps } from './ap-status/interface';
|
|
@@ -30,6 +31,7 @@ export type { ApExportGroupProps } from './ap-export-group/interface';
|
|
|
30
31
|
export type { ApLadderProps, ApLadderLabelValue, CurrencyCode, TooltipNeedProps } from './ap-ladder/interface';
|
|
31
32
|
export * from './ap-batch-action-group/interface';
|
|
32
33
|
export type { AttachmentItemProps, ApAttachmentProps } from './ap-attachment';
|
|
34
|
+
export * from './ap-export-group/handleExportDownload';
|
|
33
35
|
export declare const ApTitle: {
|
|
34
36
|
new (...args: any[]): CreateComponentPublicInstance<Readonly< ExtractPropTypes<{
|
|
35
37
|
title: {
|
|
@@ -174,196 +176,62 @@ export declare const ApTitle: {
|
|
|
174
176
|
onClick?: () => void;
|
|
175
177
|
};
|
|
176
178
|
}));
|
|
177
|
-
export declare const ApExpandAlert: {
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
type: PropType<string>;
|
|
196
|
-
default: string;
|
|
197
|
-
};
|
|
198
|
-
rows: {
|
|
199
|
-
type: PropType<string | number>;
|
|
200
|
-
required: true;
|
|
201
|
-
default: number;
|
|
202
|
-
};
|
|
203
|
-
tipTitle: {
|
|
204
|
-
type: PropType<string>;
|
|
205
|
-
default: string;
|
|
206
|
-
};
|
|
207
|
-
mapLabel: {
|
|
208
|
-
type: PropType<string>;
|
|
209
|
-
};
|
|
210
|
-
}>> & {
|
|
211
|
-
onExpand?: ((...args: any[]) => any) | undefined;
|
|
212
|
-
onChoose?: ((...args: any[]) => any) | undefined;
|
|
213
|
-
}, {
|
|
214
|
-
setExpand: (state?: boolean) => void;
|
|
215
|
-
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
216
|
-
expand: (...args: any[]) => void;
|
|
217
|
-
choose: (...args: any[]) => void;
|
|
218
|
-
}, VNodeProps & AllowedComponentProps & ComponentCustomProps & Readonly< ExtractPropTypes<{
|
|
219
|
-
type: {
|
|
220
|
-
type: PropType<"error" | "success" | "info" | "warning" | undefined>;
|
|
221
|
-
required: true;
|
|
222
|
-
default: string;
|
|
223
|
-
};
|
|
224
|
-
data: {
|
|
225
|
-
type: PropType<string | any[]>;
|
|
226
|
-
required: true;
|
|
227
|
-
default: () => never[];
|
|
228
|
-
};
|
|
229
|
-
separator: {
|
|
230
|
-
type: PropType<string>;
|
|
231
|
-
required: true;
|
|
232
|
-
default: string;
|
|
233
|
-
};
|
|
234
|
-
prefix: {
|
|
235
|
-
type: PropType<string>;
|
|
236
|
-
default: string;
|
|
237
|
-
};
|
|
238
|
-
rows: {
|
|
239
|
-
type: PropType<string | number>;
|
|
240
|
-
required: true;
|
|
241
|
-
default: number;
|
|
242
|
-
};
|
|
243
|
-
tipTitle: {
|
|
244
|
-
type: PropType<string>;
|
|
245
|
-
default: string;
|
|
246
|
-
};
|
|
247
|
-
mapLabel: {
|
|
248
|
-
type: PropType<string>;
|
|
249
|
-
};
|
|
250
|
-
}>> & {
|
|
251
|
-
onExpand?: ((...args: any[]) => any) | undefined;
|
|
252
|
-
onChoose?: ((...args: any[]) => any) | undefined;
|
|
253
|
-
}, {
|
|
254
|
-
type: "warning" | "error" | "success" | "info" | undefined;
|
|
255
|
-
data: Array<any> | string;
|
|
256
|
-
separator: string;
|
|
257
|
-
prefix: string;
|
|
258
|
-
rows: string | number;
|
|
259
|
-
tipTitle: string;
|
|
260
|
-
}, true, {}, {}, {
|
|
261
|
-
P: {};
|
|
262
|
-
B: {};
|
|
263
|
-
D: {};
|
|
264
|
-
C: {};
|
|
265
|
-
M: {};
|
|
266
|
-
Defaults: {};
|
|
267
|
-
}, Readonly< ExtractPropTypes<{
|
|
268
|
-
type: {
|
|
269
|
-
type: PropType<"error" | "success" | "info" | "warning" | undefined>;
|
|
270
|
-
required: true;
|
|
271
|
-
default: string;
|
|
272
|
-
};
|
|
273
|
-
data: {
|
|
274
|
-
type: PropType<string | any[]>;
|
|
275
|
-
required: true;
|
|
276
|
-
default: () => never[];
|
|
277
|
-
};
|
|
278
|
-
separator: {
|
|
279
|
-
type: PropType<string>;
|
|
280
|
-
required: true;
|
|
281
|
-
default: string;
|
|
282
|
-
};
|
|
283
|
-
prefix: {
|
|
284
|
-
type: PropType<string>;
|
|
285
|
-
default: string;
|
|
286
|
-
};
|
|
287
|
-
rows: {
|
|
288
|
-
type: PropType<string | number>;
|
|
289
|
-
required: true;
|
|
290
|
-
default: number;
|
|
291
|
-
};
|
|
292
|
-
tipTitle: {
|
|
293
|
-
type: PropType<string>;
|
|
294
|
-
default: string;
|
|
295
|
-
};
|
|
296
|
-
mapLabel: {
|
|
297
|
-
type: PropType<string>;
|
|
298
|
-
};
|
|
299
|
-
}>> & {
|
|
179
|
+
export declare const ApExpandAlert: <T extends Record<string, any>>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: {
|
|
180
|
+
attrs: any;
|
|
181
|
+
slots: Readonly<{
|
|
182
|
+
default(props: any): any;
|
|
183
|
+
item(props: {
|
|
184
|
+
record: T;
|
|
185
|
+
index: number;
|
|
186
|
+
}): any;
|
|
187
|
+
}> & {
|
|
188
|
+
default(props: any): any;
|
|
189
|
+
item(props: {
|
|
190
|
+
record: T;
|
|
191
|
+
index: number;
|
|
192
|
+
}): any;
|
|
193
|
+
};
|
|
194
|
+
emit: (event: "expand" | "choose", ...args: any[]) => void;
|
|
195
|
+
}, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
196
|
+
props: {
|
|
300
197
|
onExpand?: ((...args: any[]) => any) | undefined;
|
|
301
198
|
onChoose?: ((...args: any[]) => any) | undefined;
|
|
302
|
-
|
|
199
|
+
type?: "warning" | "error" | "success" | "info" | "card" | undefined;
|
|
200
|
+
data?: string | T[] | undefined;
|
|
201
|
+
prefix?: string | undefined;
|
|
202
|
+
tipTitle?: string | undefined;
|
|
203
|
+
mapLabel?: string | undefined;
|
|
204
|
+
separator?: ( Component | VNode | string) | undefined;
|
|
205
|
+
separatorStyle?: CSSProperties | undefined;
|
|
206
|
+
contentStyle?: Omit< CSSProperties, "wordBreak" | "overflow" | "display" | "webkitLineClamp" | "webkitBoxOrient"> | undefined;
|
|
207
|
+
prefixStyle?: CSSProperties | undefined;
|
|
208
|
+
rows?: (string | number) | undefined;
|
|
209
|
+
defaultExpand?: boolean | undefined;
|
|
210
|
+
showIcon?: boolean | undefined;
|
|
211
|
+
} & PublicProps;
|
|
212
|
+
expose(exposed: ShallowUnwrapRef<{
|
|
303
213
|
setExpand: (state?: boolean) => void;
|
|
304
|
-
}
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
required: true;
|
|
319
|
-
default: string;
|
|
320
|
-
};
|
|
321
|
-
data: {
|
|
322
|
-
type: PropType<string | any[]>;
|
|
323
|
-
required: true;
|
|
324
|
-
default: () => never[];
|
|
325
|
-
};
|
|
326
|
-
separator: {
|
|
327
|
-
type: PropType<string>;
|
|
328
|
-
required: true;
|
|
329
|
-
default: string;
|
|
330
|
-
};
|
|
331
|
-
prefix: {
|
|
332
|
-
type: PropType<string>;
|
|
333
|
-
default: string;
|
|
334
|
-
};
|
|
335
|
-
rows: {
|
|
336
|
-
type: PropType<string | number>;
|
|
337
|
-
required: true;
|
|
338
|
-
default: number;
|
|
339
|
-
};
|
|
340
|
-
tipTitle: {
|
|
341
|
-
type: PropType<string>;
|
|
342
|
-
default: string;
|
|
343
|
-
};
|
|
344
|
-
mapLabel: {
|
|
345
|
-
type: PropType<string>;
|
|
346
|
-
};
|
|
347
|
-
}>> & {
|
|
348
|
-
onExpand?: ((...args: any[]) => any) | undefined;
|
|
349
|
-
onChoose?: ((...args: any[]) => any) | undefined;
|
|
350
|
-
}, {
|
|
351
|
-
setExpand: (state?: boolean) => void;
|
|
352
|
-
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
353
|
-
expand: (...args: any[]) => void;
|
|
354
|
-
choose: (...args: any[]) => void;
|
|
355
|
-
}, string, {
|
|
356
|
-
type: "warning" | "error" | "success" | "info" | undefined;
|
|
357
|
-
data: Array<any> | string;
|
|
358
|
-
separator: string;
|
|
359
|
-
prefix: string;
|
|
360
|
-
rows: string | number;
|
|
361
|
-
tipTitle: string;
|
|
362
|
-
}, {}, string, {}> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
|
|
363
|
-
$slots: {
|
|
364
|
-
default?(_: {}): any;
|
|
214
|
+
}>): void;
|
|
215
|
+
attrs: any;
|
|
216
|
+
slots: Readonly<{
|
|
217
|
+
default(props: any): any;
|
|
218
|
+
item(props: {
|
|
219
|
+
record: T;
|
|
220
|
+
index: number;
|
|
221
|
+
}): any;
|
|
222
|
+
}> & {
|
|
223
|
+
default(props: any): any;
|
|
224
|
+
item(props: {
|
|
225
|
+
record: T;
|
|
226
|
+
index: number;
|
|
227
|
+
}): any;
|
|
365
228
|
};
|
|
366
|
-
|
|
229
|
+
emit: (event: "expand" | "choose", ...args: any[]) => void;
|
|
230
|
+
}>) => VNode<RendererNode, RendererElement, {
|
|
231
|
+
[key: string]: any;
|
|
232
|
+
}> & {
|
|
233
|
+
__ctx?: Awaited<typeof __VLS_setup>;
|
|
234
|
+
};
|
|
367
235
|
export declare const ApLabel: {
|
|
368
236
|
new (...args: any[]): CreateComponentPublicInstance<Readonly< ExtractPropTypes<{
|
|
369
237
|
helpMessage: {
|
|
@@ -2798,5 +2666,54 @@ export declare const ApAttachment: DefineComponent<{
|
|
|
2798
2666
|
attachmentList: AttachmentItemProps[];
|
|
2799
2667
|
fileMorePopoverPlacement: TooltipPlacement;
|
|
2800
2668
|
}, {}>;
|
|
2669
|
+
export declare const ApCard: {
|
|
2670
|
+
new (...args: any[]): CreateComponentPublicInstance<Readonly< ExtractPropTypes<{
|
|
2671
|
+
titleProps: {
|
|
2672
|
+
type: PropType<ApCardTitleProps>;
|
|
2673
|
+
};
|
|
2674
|
+
padding: {
|
|
2675
|
+
type: PropType<string>;
|
|
2676
|
+
};
|
|
2677
|
+
}>>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, VNodeProps & AllowedComponentProps & ComponentCustomProps & Readonly< ExtractPropTypes<{
|
|
2678
|
+
titleProps: {
|
|
2679
|
+
type: PropType<ApCardTitleProps>;
|
|
2680
|
+
};
|
|
2681
|
+
padding: {
|
|
2682
|
+
type: PropType<string>;
|
|
2683
|
+
};
|
|
2684
|
+
}>>, {}, true, {}, {}, {
|
|
2685
|
+
P: {};
|
|
2686
|
+
B: {};
|
|
2687
|
+
D: {};
|
|
2688
|
+
C: {};
|
|
2689
|
+
M: {};
|
|
2690
|
+
Defaults: {};
|
|
2691
|
+
}, Readonly< ExtractPropTypes<{
|
|
2692
|
+
titleProps: {
|
|
2693
|
+
type: PropType<ApCardTitleProps>;
|
|
2694
|
+
};
|
|
2695
|
+
padding: {
|
|
2696
|
+
type: PropType<string>;
|
|
2697
|
+
};
|
|
2698
|
+
}>>, {}, {}, {}, {}, {}>;
|
|
2699
|
+
__isFragment?: never;
|
|
2700
|
+
__isTeleport?: never;
|
|
2701
|
+
__isSuspense?: never;
|
|
2702
|
+
} & ComponentOptionsBase<Readonly< ExtractPropTypes<{
|
|
2703
|
+
titleProps: {
|
|
2704
|
+
type: PropType<ApCardTitleProps>;
|
|
2705
|
+
};
|
|
2706
|
+
padding: {
|
|
2707
|
+
type: PropType<string>;
|
|
2708
|
+
};
|
|
2709
|
+
}>>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {}, {}, string, {}> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
|
|
2710
|
+
$slots: {
|
|
2711
|
+
default?(_: {}): any;
|
|
2712
|
+
};
|
|
2713
|
+
}) & ( Plugin & (new (...args: any[]) => {
|
|
2714
|
+
$props: {
|
|
2715
|
+
onClick?: () => void;
|
|
2716
|
+
};
|
|
2717
|
+
}));
|
|
2801
2718
|
export { ApTransformDataHelper };
|
|
2802
2719
|
export * from './ap-table-modal';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { withInstall as o } from "@aplus-frontend/utils";
|
|
2
2
|
import "./hooks/index.mjs";
|
|
3
|
-
import "./title/ApTitle.vue.mjs";
|
|
3
|
+
import "./ap-title/ApTitle.vue.mjs";
|
|
4
4
|
import "./ap-expand-alert/ApExpandAlert.vue.mjs";
|
|
5
5
|
import t from "./ap-label/ApLabel.mjs";
|
|
6
|
-
import
|
|
6
|
+
import r from "./ap-label/ApLabelGroup.mjs";
|
|
7
7
|
import "./ap-status/ApStatus.vue.mjs";
|
|
8
8
|
import "./ap-status/ApStatusGroup.vue.mjs";
|
|
9
9
|
import "./ap-select-layout/select-layout.vue.mjs";
|
|
@@ -13,11 +13,13 @@ import "./ap-batch-action/ApBatchAction.vue.mjs";
|
|
|
13
13
|
import "./ap-batch-action-group/ApBatchActionGroup.vue.mjs";
|
|
14
14
|
import "./ap-image/ApImage.vue.mjs";
|
|
15
15
|
import "./ap-ladder/ApLadder.vue.mjs";
|
|
16
|
-
import
|
|
17
|
-
import
|
|
16
|
+
import m from "./ap-attachment/ApAttachment.mjs";
|
|
17
|
+
import "./ap-card/ApCard.vue.mjs";
|
|
18
|
+
import { ApTransformDataHelper as fo } from "../utils/ap-trans-data/index.mjs";
|
|
18
19
|
import "./ap-batch-action-group/interface.mjs";
|
|
19
|
-
import {
|
|
20
|
-
import
|
|
20
|
+
import { handleExportDownload as _o } from "./ap-export-group/handleExportDownload.mjs";
|
|
21
|
+
import { default as eo } from "./ap-table-modal/index.mjs";
|
|
22
|
+
import p from "./ap-title/ApTitle.vue2.mjs";
|
|
21
23
|
import i from "./ap-expand-alert/ApExpandAlert.vue2.mjs";
|
|
22
24
|
import a from "./ap-status/ApStatus.vue2.mjs";
|
|
23
25
|
import n from "./ap-status/ApStatusGroup.vue2.mjs";
|
|
@@ -28,22 +30,25 @@ import _ from "./ap-batch-action/ApBatchAction.vue2.mjs";
|
|
|
28
30
|
import A from "./ap-batch-action-group/ApBatchActionGroup.vue2.mjs";
|
|
29
31
|
import e from "./ap-image/ApImage.vue2.mjs";
|
|
30
32
|
import l from "./ap-ladder/ApLadder.vue2.mjs";
|
|
31
|
-
|
|
33
|
+
import $ from "./ap-card/ApCard.vue2.mjs";
|
|
34
|
+
const P = o(p), Q = i, U = o(t), V = o(a), W = o(n), X = o(c), Y = o(f), Z = s, oo = _, to = r, ro = A, mo = e, po = o(l), io = m, ao = o($);
|
|
32
35
|
export {
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
to as
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
36
|
+
io as ApAttachment,
|
|
37
|
+
oo as ApBatchAction,
|
|
38
|
+
ro as ApBatchActionGroup,
|
|
39
|
+
ao as ApCard,
|
|
40
|
+
Q as ApExpandAlert,
|
|
41
|
+
Y as ApExportGroup,
|
|
42
|
+
mo as ApImage,
|
|
43
|
+
Z as ApInputRadio,
|
|
44
|
+
U as ApLabel,
|
|
45
|
+
to as ApLabelGroup,
|
|
46
|
+
po as ApLadder,
|
|
47
|
+
X as ApSelectLayout,
|
|
48
|
+
V as ApStatus,
|
|
49
|
+
W as ApStatusGroup,
|
|
50
|
+
eo as ApTableModal,
|
|
51
|
+
P as ApTitle,
|
|
52
|
+
fo as ApTransformDataHelper,
|
|
53
|
+
_o as handleExportDownload
|
|
49
54
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CheckCardGroupProps, CheckCardValueType } from './interface';
|
|
2
|
-
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
|
|
2
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, CSSProperties, PropType } from 'vue';
|
|
3
3
|
declare function __VLS_template(): {
|
|
4
4
|
slots: {
|
|
5
5
|
default?(_: {}): any;
|
|
@@ -17,6 +17,8 @@ declare const __VLS_component: DefineComponent<__VLS_WithDefaults<__VLS_TypeProp
|
|
|
17
17
|
size: undefined;
|
|
18
18
|
stopPropagation: undefined;
|
|
19
19
|
defaultValue: undefined;
|
|
20
|
+
indicatorSize: undefined;
|
|
21
|
+
style: undefined;
|
|
20
22
|
}>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
21
23
|
"update:value": (...args: any[]) => void;
|
|
22
24
|
}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<CheckCardGroupProps>, {
|
|
@@ -28,10 +30,13 @@ declare const __VLS_component: DefineComponent<__VLS_WithDefaults<__VLS_TypeProp
|
|
|
28
30
|
size: undefined;
|
|
29
31
|
stopPropagation: undefined;
|
|
30
32
|
defaultValue: undefined;
|
|
33
|
+
indicatorSize: undefined;
|
|
34
|
+
style: undefined;
|
|
31
35
|
}>>> & {
|
|
32
36
|
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
33
37
|
}, {
|
|
34
38
|
size: "middle" | "small";
|
|
39
|
+
style: CSSProperties;
|
|
35
40
|
value: CheckCardValueType | CheckCardValueType[];
|
|
36
41
|
multiple: boolean;
|
|
37
42
|
disabled: boolean;
|
|
@@ -39,6 +44,7 @@ declare const __VLS_component: DefineComponent<__VLS_WithDefaults<__VLS_TypeProp
|
|
|
39
44
|
defaultValue: CheckCardValueType | CheckCardValueType[];
|
|
40
45
|
bordered: boolean;
|
|
41
46
|
stopPropagation: boolean | ((event: MouseEvent) => boolean);
|
|
47
|
+
indicatorSize: number;
|
|
42
48
|
}, {}>;
|
|
43
49
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
44
50
|
export default _default;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as v, unref as r, computed as g, renderSlot as y } from "vue";
|
|
2
2
|
import "../hooks/index.mjs";
|
|
3
|
-
import { useProvideCheckCard as
|
|
4
|
-
import { isUndefined as
|
|
5
|
-
import { useControllableValue as
|
|
6
|
-
const
|
|
3
|
+
import { useProvideCheckCard as b } from "./context.mjs";
|
|
4
|
+
import { isUndefined as S } from "lodash-unified";
|
|
5
|
+
import { useControllableValue as B } from "../hooks/useControllableValue.mjs";
|
|
6
|
+
const P = /* @__PURE__ */ v({
|
|
7
7
|
name: "CheckCardGroup",
|
|
8
8
|
__name: "group",
|
|
9
9
|
props: {
|
|
@@ -12,47 +12,51 @@ const z = /* @__PURE__ */ g({
|
|
|
12
12
|
loading: { type: Boolean, default: void 0 },
|
|
13
13
|
size: { default: void 0 },
|
|
14
14
|
stopPropagation: { type: [Boolean, Function], default: void 0 },
|
|
15
|
+
indicatorSize: { default: void 0 },
|
|
16
|
+
style: { default: void 0 },
|
|
15
17
|
multiple: { type: Boolean, default: !1 },
|
|
16
18
|
defaultValue: { type: [String, Number, Boolean, Array], default: void 0 },
|
|
17
19
|
value: { type: [String, Number, Boolean, Array], default: void 0 },
|
|
18
20
|
"onUpdate:value": {}
|
|
19
21
|
},
|
|
20
22
|
emits: ["update:value"],
|
|
21
|
-
setup(
|
|
22
|
-
const t =
|
|
23
|
-
function
|
|
23
|
+
setup(n, { emit: u }) {
|
|
24
|
+
const t = n, s = u, { value: a, updateValue: d } = B(t, s), l = /* @__PURE__ */ new Map();
|
|
25
|
+
function p(e) {
|
|
24
26
|
if (!t.multiple) {
|
|
25
|
-
if (r(
|
|
27
|
+
if (r(a) === e)
|
|
26
28
|
return;
|
|
27
|
-
|
|
29
|
+
d(e);
|
|
28
30
|
return;
|
|
29
31
|
}
|
|
30
|
-
let o = [...r(
|
|
31
|
-
const c = o.find((
|
|
32
|
-
|
|
32
|
+
let o = [...r(a) || []];
|
|
33
|
+
const c = o.find((i) => i === e);
|
|
34
|
+
S(c) ? o.push(e) : o = o.filter((i) => i !== e).filter((i) => l.has(i)), d(o);
|
|
33
35
|
}
|
|
34
36
|
function f(e) {
|
|
35
|
-
|
|
37
|
+
l.set(e, !0);
|
|
36
38
|
}
|
|
37
39
|
function m(e) {
|
|
38
|
-
|
|
40
|
+
l.delete(e);
|
|
39
41
|
}
|
|
40
|
-
return
|
|
41
|
-
|
|
42
|
-
toggleOption:
|
|
42
|
+
return b(
|
|
43
|
+
g(() => ({
|
|
44
|
+
toggleOption: p,
|
|
43
45
|
registerValue: f,
|
|
44
46
|
cancelValue: m,
|
|
45
47
|
disabled: t.disabled,
|
|
46
48
|
size: t.size,
|
|
47
49
|
bordered: t.bordered,
|
|
48
50
|
loading: t.loading,
|
|
49
|
-
value: r(
|
|
51
|
+
value: r(a),
|
|
50
52
|
multiple: t.multiple,
|
|
51
|
-
stopPropagation: t.stopPropagation
|
|
53
|
+
stopPropagation: t.stopPropagation,
|
|
54
|
+
style: t.style,
|
|
55
|
+
indicatorSize: t.indicatorSize
|
|
52
56
|
}))
|
|
53
|
-
), (e, o) =>
|
|
57
|
+
), (e, o) => y(e.$slots, "default");
|
|
54
58
|
}
|
|
55
59
|
});
|
|
56
60
|
export {
|
|
57
|
-
|
|
61
|
+
P as default
|
|
58
62
|
};
|
|
@@ -15,16 +15,18 @@ declare const __VLS_component: DefineComponent<__VLS_WithDefaults<__VLS_TypeProp
|
|
|
15
15
|
bordered: boolean;
|
|
16
16
|
size: string;
|
|
17
17
|
checked: undefined;
|
|
18
|
-
style:
|
|
18
|
+
style: undefined;
|
|
19
19
|
stopPropagation: boolean;
|
|
20
|
+
indicatorSize: undefined;
|
|
20
21
|
}>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
21
22
|
"update:checked": (...args: any[]) => void;
|
|
22
23
|
}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<CheckCardProps>, {
|
|
23
24
|
bordered: boolean;
|
|
24
25
|
size: string;
|
|
25
26
|
checked: undefined;
|
|
26
|
-
style:
|
|
27
|
+
style: undefined;
|
|
27
28
|
stopPropagation: boolean;
|
|
29
|
+
indicatorSize: undefined;
|
|
28
30
|
}>>> & {
|
|
29
31
|
"onUpdate:checked"?: ((...args: any[]) => any) | undefined;
|
|
30
32
|
}, {
|
|
@@ -33,6 +35,7 @@ declare const __VLS_component: DefineComponent<__VLS_WithDefaults<__VLS_TypeProp
|
|
|
33
35
|
bordered: boolean;
|
|
34
36
|
checked: boolean;
|
|
35
37
|
stopPropagation: boolean | ((event: MouseEvent) => boolean);
|
|
38
|
+
indicatorSize: number;
|
|
36
39
|
}, {}>;
|
|
37
40
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
38
41
|
export default _default;
|