@aplus-frontend/ui 0.1.17 → 0.1.18
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/src/ap-download/ap-download.vue.mjs +26 -26
- package/es/src/ap-table/ap-table.vue.mjs +55 -55
- package/es/src/business/ap-batch-action-group/interface.d.ts +1 -1
- package/es/src/business/ap-image/ApImage.vue.d.ts +2 -2
- package/es/src/business/ap-image/ApImage.vue2.mjs +1 -1
- package/es/src/business/ap-label/ApLabel.d.ts +141 -0
- package/es/src/business/ap-label/ApLabel.mjs +49 -0
- package/es/src/business/ap-label/ApLabelGroup.mjs +11 -12
- package/es/src/business/ap-label/constans.d.ts +65 -1
- package/es/src/business/ap-label/constans.mjs +33 -2
- package/es/src/business/ap-label/index.d.ts +1 -1
- package/es/src/business/ap-label/interface.d.ts +2 -1
- package/es/src/business/index.d.ts +166 -174
- package/es/src/business/index.mjs +18 -19
- package/es/src/pro-form/hooks/use-label-width.d.ts +1 -1
- package/lib/src/ap-download/ap-download.vue.js +1 -1
- package/lib/src/ap-table/ap-table.vue.js +1 -1
- package/lib/src/business/ap-batch-action-group/interface.d.ts +1 -1
- package/lib/src/business/ap-image/ApImage.vue.d.ts +2 -2
- package/lib/src/business/ap-image/ApImage.vue2.js +1 -1
- package/lib/src/business/ap-label/ApLabel.d.ts +141 -0
- package/lib/src/business/ap-label/ApLabel.js +1 -0
- package/lib/src/business/ap-label/ApLabelGroup.js +1 -1
- package/lib/src/business/ap-label/constans.d.ts +65 -1
- package/lib/src/business/ap-label/constans.js +1 -1
- package/lib/src/business/ap-label/index.d.ts +1 -1
- package/lib/src/business/ap-label/interface.d.ts +2 -1
- package/lib/src/business/index.d.ts +166 -174
- package/lib/src/business/index.js +1 -1
- package/lib/src/pro-form/hooks/use-label-width.d.ts +1 -1
- package/package.json +3 -3
- package/es/src/business/ap-label/ApLabel.vue.d.ts +0 -56
- package/es/src/business/ap-label/ApLabel.vue.mjs +0 -4
- package/es/src/business/ap-label/ApLabel.vue2.mjs +0 -85
- package/lib/src/business/ap-label/ApLabel.vue.d.ts +0 -56
- package/lib/src/business/ap-label/ApLabel.vue.js +0 -1
- package/lib/src/business/ap-label/ApLabel.vue2.js +0 -1
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
import { badgeProps as e } from "ant-design-vue/es/badge/Badge";
|
|
2
|
+
const o = () => ({
|
|
2
3
|
value: {
|
|
3
4
|
type: String,
|
|
4
5
|
default: void 0
|
|
@@ -15,7 +16,37 @@ const e = () => ({
|
|
|
15
16
|
type: Object,
|
|
16
17
|
default: null
|
|
17
18
|
}
|
|
19
|
+
}), l = () => ({
|
|
20
|
+
...e(),
|
|
21
|
+
helpMessage: {
|
|
22
|
+
type: String,
|
|
23
|
+
default: void 0
|
|
24
|
+
},
|
|
25
|
+
placement: {
|
|
26
|
+
type: String,
|
|
27
|
+
default: "top"
|
|
28
|
+
},
|
|
29
|
+
iconColor: {
|
|
30
|
+
type: String,
|
|
31
|
+
default: "#FF4D4F"
|
|
32
|
+
},
|
|
33
|
+
iconType: {
|
|
34
|
+
type: String,
|
|
35
|
+
default: "question"
|
|
36
|
+
},
|
|
37
|
+
iconSize: {
|
|
38
|
+
type: Number,
|
|
39
|
+
default: 16
|
|
40
|
+
},
|
|
41
|
+
show: {
|
|
42
|
+
type: Boolean,
|
|
43
|
+
default: !0
|
|
44
|
+
},
|
|
45
|
+
toolTipBgColor: {
|
|
46
|
+
type: String
|
|
47
|
+
}
|
|
18
48
|
});
|
|
19
49
|
export {
|
|
20
|
-
|
|
50
|
+
o as ApLabelGroupProps,
|
|
51
|
+
l as ApLabelProps
|
|
21
52
|
};
|
|
@@ -4,12 +4,13 @@ import { TagProps } from 'ant-design-vue/es/Tag';
|
|
|
4
4
|
import { VNode, VNodeChild } from 'vue';
|
|
5
5
|
type Recordable = Record<string, any>;
|
|
6
6
|
export type ApLabelProps = BadgeProps & Partial<{
|
|
7
|
-
helpMessage: string;
|
|
7
|
+
helpMessage: VNode | string | undefined;
|
|
8
8
|
placement: TooltipPlacement;
|
|
9
9
|
iconColor: string;
|
|
10
10
|
iconType: 'question' | 'warning' | 'ellipsis' | 'success';
|
|
11
11
|
iconSize: number;
|
|
12
12
|
show: boolean;
|
|
13
|
+
toolTipBgColor: string;
|
|
13
14
|
}>;
|
|
14
15
|
export type tagConfigKey = TagProps & {
|
|
15
16
|
value: number | string | undefined | null;
|
|
@@ -1,27 +1,23 @@
|
|
|
1
1
|
import { ApTransformDataHelper } from '../utils/ap-trans-data';
|
|
2
|
-
import { CreateComponentPublicInstance, ExtractPropTypes, PropType, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ComponentOptionsBase, Plugin,
|
|
2
|
+
import { CreateComponentPublicInstance, ExtractPropTypes, PropType, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ComponentOptionsBase, Plugin, VNode, CSSProperties, RendererNode, RendererElement, PublicProps, ShallowUnwrapRef, DefineComponent } from 'vue';
|
|
3
3
|
import { TooltipPlacement } from 'ant-design-vue/es/tooltip';
|
|
4
|
-
import {
|
|
4
|
+
import { VueTypeValidableDef } from '../../node_modules/vue-types';
|
|
5
|
+
import { LiteralUnion, Key } from 'ant-design-vue/es/_util/type';
|
|
5
6
|
import { ApStatusProps, ApStatusGroupItemProps } from './ap-status/interface';
|
|
6
7
|
import { ApSelectItem } from './ap-select-layout/interface';
|
|
7
8
|
import { ValueType } from 'ant-design-vue/es/input-number/src/utils/MiniDecimal';
|
|
8
9
|
import { ApInputRadioOptions } from './ap-input-radio/interface';
|
|
9
|
-
import { KeyboardEventHandler, MouseEventHandler } from 'ant-design-vue/es/_util/EventInterface';
|
|
10
|
+
import { KeyboardEventHandler, MouseEventHandler, FocusEventHandler } from 'ant-design-vue/es/_util/EventInterface';
|
|
10
11
|
import { ApLabelGroupItemProps } from './ap-label/interface';
|
|
11
12
|
import { ButtonType, ButtonShape, ButtonSize } from 'ant-design-vue/es/button';
|
|
12
13
|
import { ButtonHTMLType } from 'ant-design-vue/es/button/buttonTypes';
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import { DropdownArrowOptions, Trigger, Align } from 'ant-design-vue/lib/dropdown/props';
|
|
18
|
-
import { ItemType, MenuTheme, MenuMode } from 'ant-design-vue/lib';
|
|
19
|
-
import { Key } from 'ant-design-vue/lib/_util/type';
|
|
20
|
-
import { CSSMotionProps } from 'ant-design-vue/lib/_util/transition';
|
|
21
|
-
import { BuiltinPlacements, TriggerSubMenuAction, SelectEventHandler, MenuClickEventHandler } from 'ant-design-vue/lib/menu/src/interface';
|
|
14
|
+
import { DropdownArrowOptions, Trigger, Align } from 'ant-design-vue/es/dropdown/props';
|
|
15
|
+
import { ItemType, MenuTheme, MenuMode } from 'ant-design-vue';
|
|
16
|
+
import { CSSMotionProps } from 'ant-design-vue/es/_util/transition';
|
|
17
|
+
import { BuiltinPlacements, TriggerSubMenuAction, SelectEventHandler, MenuClickEventHandler } from 'ant-design-vue/es/menu/src/interface';
|
|
22
18
|
import { ApBatchActionGroupMenuProps } from './ap-batch-action-group/interface';
|
|
23
19
|
import { accessCreate } from '@aplus-frontend/oss';
|
|
24
|
-
import { ImagePreviewType } from 'ant-design-vue/
|
|
20
|
+
import { ImagePreviewType } from 'ant-design-vue/es/vc-image';
|
|
25
21
|
export type { ApTitleProps } from './title/interface';
|
|
26
22
|
export type { ApExpandAlertProps } from './expandAlert/interface';
|
|
27
23
|
export type { ApLabelProps, ApLabelGroupProps, ApLabelGroupItemProps } from './ap-label/interface';
|
|
@@ -366,142 +362,139 @@ export declare const ApExpandAlert: {
|
|
|
366
362
|
});
|
|
367
363
|
export declare const ApLabel: {
|
|
368
364
|
new (...args: any[]): CreateComponentPublicInstance<Readonly< ExtractPropTypes<{
|
|
369
|
-
|
|
370
|
-
type: PropType<
|
|
371
|
-
|
|
372
|
-
title: {
|
|
373
|
-
type: PropType<string>;
|
|
365
|
+
helpMessage: {
|
|
366
|
+
type: PropType< VNode | string | undefined>;
|
|
367
|
+
default: undefined;
|
|
374
368
|
};
|
|
375
369
|
placement: {
|
|
376
370
|
type: PropType<TooltipPlacement>;
|
|
377
371
|
default: string;
|
|
378
372
|
};
|
|
379
|
-
|
|
373
|
+
iconColor: {
|
|
380
374
|
type: PropType<string>;
|
|
381
|
-
};
|
|
382
|
-
iconType: {
|
|
383
|
-
type: PropType<"ellipsis" | "success" | "warning" | "question">;
|
|
384
375
|
default: string;
|
|
385
376
|
};
|
|
386
|
-
|
|
387
|
-
type: PropType<
|
|
377
|
+
iconType: {
|
|
378
|
+
type: PropType<"question" | "warning" | "ellipsis" | "success">;
|
|
388
379
|
default: string;
|
|
389
380
|
};
|
|
390
|
-
color: {
|
|
391
|
-
type: PropType<LiteralUnion<"blue" | "purple" | "cyan" | "green" | "magenta" | "pink" | "red" | "orange" | "yellow" | "volcano" | "geekblue" | "lime" | "gold">>;
|
|
392
|
-
};
|
|
393
381
|
iconSize: {
|
|
394
382
|
type: PropType<number>;
|
|
395
383
|
default: number;
|
|
396
384
|
};
|
|
397
|
-
status: {
|
|
398
|
-
type: PropType<"error" | "default" | "success" | "warning" | "processing">;
|
|
399
|
-
default: string;
|
|
400
|
-
};
|
|
401
|
-
offset: {
|
|
402
|
-
type: PropType<[string | number, string | number]>;
|
|
403
|
-
};
|
|
404
385
|
show: {
|
|
405
|
-
type:
|
|
386
|
+
type: BooleanConstructor;
|
|
406
387
|
default: boolean;
|
|
407
388
|
};
|
|
408
|
-
|
|
409
|
-
type: PropType<boolean>;
|
|
410
|
-
};
|
|
411
|
-
helpMessage: {
|
|
389
|
+
toolTipBgColor: {
|
|
412
390
|
type: PropType<string>;
|
|
413
391
|
};
|
|
414
|
-
count: {
|
|
415
|
-
|
|
392
|
+
count: VueTypeValidableDef<any> & {
|
|
393
|
+
default: any;
|
|
416
394
|
};
|
|
417
395
|
showZero: {
|
|
418
|
-
type:
|
|
396
|
+
type: BooleanConstructor;
|
|
397
|
+
default: any;
|
|
419
398
|
};
|
|
420
399
|
overflowCount: {
|
|
421
|
-
type:
|
|
400
|
+
type: NumberConstructor;
|
|
401
|
+
default: number;
|
|
422
402
|
};
|
|
423
|
-
|
|
424
|
-
type:
|
|
403
|
+
dot: {
|
|
404
|
+
type: BooleanConstructor;
|
|
405
|
+
default: any;
|
|
425
406
|
};
|
|
426
|
-
|
|
427
|
-
|
|
407
|
+
prefixCls: StringConstructor;
|
|
408
|
+
scrollNumberPrefixCls: StringConstructor;
|
|
409
|
+
status: {
|
|
410
|
+
type: PropType<"error" | "default" | "success" | "processing" | "warning">;
|
|
428
411
|
};
|
|
429
|
-
|
|
430
|
-
type: PropType<
|
|
412
|
+
size: {
|
|
413
|
+
type: PropType<"default" | "small">;
|
|
431
414
|
default: string;
|
|
432
415
|
};
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
416
|
+
color: PropType<LiteralUnion<"blue" | "cyan" | "gold" | "green" | "lime" | "magenta" | "orange" | "pink" | "purple" | "red" | "yellow" | "volcano" | "geekblue">>;
|
|
417
|
+
text: VueTypeValidableDef<any>;
|
|
418
|
+
offset: PropType<[string | number, string | number]>;
|
|
419
|
+
numberStyle: {
|
|
420
|
+
type: PropType<CSSProperties>;
|
|
421
|
+
default: CSSProperties;
|
|
436
422
|
};
|
|
437
|
-
title:
|
|
438
|
-
|
|
423
|
+
title: StringConstructor;
|
|
424
|
+
}>>, () => import("vue/jsx-runtime").JSX.Element, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, VNodeProps & AllowedComponentProps & ComponentCustomProps & Readonly< ExtractPropTypes<{
|
|
425
|
+
helpMessage: {
|
|
426
|
+
type: PropType< VNode | string | undefined>;
|
|
427
|
+
default: undefined;
|
|
439
428
|
};
|
|
440
429
|
placement: {
|
|
441
430
|
type: PropType<TooltipPlacement>;
|
|
442
431
|
default: string;
|
|
443
432
|
};
|
|
444
|
-
|
|
433
|
+
iconColor: {
|
|
445
434
|
type: PropType<string>;
|
|
446
|
-
};
|
|
447
|
-
iconType: {
|
|
448
|
-
type: PropType<"ellipsis" | "success" | "warning" | "question">;
|
|
449
435
|
default: string;
|
|
450
436
|
};
|
|
451
|
-
|
|
452
|
-
type: PropType<
|
|
437
|
+
iconType: {
|
|
438
|
+
type: PropType<"question" | "warning" | "ellipsis" | "success">;
|
|
453
439
|
default: string;
|
|
454
440
|
};
|
|
455
|
-
color: {
|
|
456
|
-
type: PropType<LiteralUnion<"blue" | "purple" | "cyan" | "green" | "magenta" | "pink" | "red" | "orange" | "yellow" | "volcano" | "geekblue" | "lime" | "gold">>;
|
|
457
|
-
};
|
|
458
441
|
iconSize: {
|
|
459
442
|
type: PropType<number>;
|
|
460
443
|
default: number;
|
|
461
444
|
};
|
|
462
|
-
status: {
|
|
463
|
-
type: PropType<"error" | "default" | "success" | "warning" | "processing">;
|
|
464
|
-
default: string;
|
|
465
|
-
};
|
|
466
|
-
offset: {
|
|
467
|
-
type: PropType<[string | number, string | number]>;
|
|
468
|
-
};
|
|
469
445
|
show: {
|
|
470
|
-
type:
|
|
446
|
+
type: BooleanConstructor;
|
|
471
447
|
default: boolean;
|
|
472
448
|
};
|
|
473
|
-
|
|
474
|
-
type: PropType<boolean>;
|
|
475
|
-
};
|
|
476
|
-
helpMessage: {
|
|
449
|
+
toolTipBgColor: {
|
|
477
450
|
type: PropType<string>;
|
|
478
451
|
};
|
|
479
|
-
count: {
|
|
480
|
-
|
|
452
|
+
count: VueTypeValidableDef<any> & {
|
|
453
|
+
default: any;
|
|
481
454
|
};
|
|
482
455
|
showZero: {
|
|
483
|
-
type:
|
|
456
|
+
type: BooleanConstructor;
|
|
457
|
+
default: any;
|
|
484
458
|
};
|
|
485
459
|
overflowCount: {
|
|
486
|
-
type:
|
|
460
|
+
type: NumberConstructor;
|
|
461
|
+
default: number;
|
|
487
462
|
};
|
|
488
|
-
|
|
489
|
-
type:
|
|
463
|
+
dot: {
|
|
464
|
+
type: BooleanConstructor;
|
|
465
|
+
default: any;
|
|
490
466
|
};
|
|
491
|
-
|
|
492
|
-
|
|
467
|
+
prefixCls: StringConstructor;
|
|
468
|
+
scrollNumberPrefixCls: StringConstructor;
|
|
469
|
+
status: {
|
|
470
|
+
type: PropType<"error" | "default" | "success" | "processing" | "warning">;
|
|
493
471
|
};
|
|
494
|
-
|
|
495
|
-
type: PropType<
|
|
472
|
+
size: {
|
|
473
|
+
type: PropType<"default" | "small">;
|
|
496
474
|
default: string;
|
|
497
475
|
};
|
|
476
|
+
color: PropType<LiteralUnion<"blue" | "cyan" | "gold" | "green" | "lime" | "magenta" | "orange" | "pink" | "purple" | "red" | "yellow" | "volcano" | "geekblue">>;
|
|
477
|
+
text: VueTypeValidableDef<any>;
|
|
478
|
+
offset: PropType<[string | number, string | number]>;
|
|
479
|
+
numberStyle: {
|
|
480
|
+
type: PropType<CSSProperties>;
|
|
481
|
+
default: CSSProperties;
|
|
482
|
+
};
|
|
483
|
+
title: StringConstructor;
|
|
498
484
|
}>>, {
|
|
485
|
+
size: "small" | "default";
|
|
499
486
|
placement: TooltipPlacement;
|
|
500
|
-
iconType: "
|
|
501
|
-
text: any;
|
|
487
|
+
iconType: "ellipsis" | "success" | "warning" | "question";
|
|
502
488
|
iconSize: number;
|
|
503
|
-
status: "error" | "default" | "success" | "warning" | "processing";
|
|
504
489
|
show: boolean;
|
|
490
|
+
dot: boolean;
|
|
491
|
+
helpMessage: string | VNode<RendererNode, RendererElement, {
|
|
492
|
+
[key: string]: any;
|
|
493
|
+
}> | undefined;
|
|
494
|
+
count: any;
|
|
495
|
+
showZero: boolean;
|
|
496
|
+
overflowCount: number;
|
|
497
|
+
numberStyle: CSSProperties;
|
|
505
498
|
iconColor: string;
|
|
506
499
|
}, true, {}, {}, {
|
|
507
500
|
P: {};
|
|
@@ -511,161 +504,160 @@ export declare const ApLabel: {
|
|
|
511
504
|
M: {};
|
|
512
505
|
Defaults: {};
|
|
513
506
|
}, Readonly< ExtractPropTypes<{
|
|
514
|
-
|
|
515
|
-
type: PropType<
|
|
516
|
-
|
|
517
|
-
title: {
|
|
518
|
-
type: PropType<string>;
|
|
507
|
+
helpMessage: {
|
|
508
|
+
type: PropType< VNode | string | undefined>;
|
|
509
|
+
default: undefined;
|
|
519
510
|
};
|
|
520
511
|
placement: {
|
|
521
512
|
type: PropType<TooltipPlacement>;
|
|
522
513
|
default: string;
|
|
523
514
|
};
|
|
524
|
-
|
|
515
|
+
iconColor: {
|
|
525
516
|
type: PropType<string>;
|
|
526
|
-
};
|
|
527
|
-
iconType: {
|
|
528
|
-
type: PropType<"ellipsis" | "success" | "warning" | "question">;
|
|
529
517
|
default: string;
|
|
530
518
|
};
|
|
531
|
-
|
|
532
|
-
type: PropType<
|
|
519
|
+
iconType: {
|
|
520
|
+
type: PropType<"question" | "warning" | "ellipsis" | "success">;
|
|
533
521
|
default: string;
|
|
534
522
|
};
|
|
535
|
-
color: {
|
|
536
|
-
type: PropType<LiteralUnion<"blue" | "purple" | "cyan" | "green" | "magenta" | "pink" | "red" | "orange" | "yellow" | "volcano" | "geekblue" | "lime" | "gold">>;
|
|
537
|
-
};
|
|
538
523
|
iconSize: {
|
|
539
524
|
type: PropType<number>;
|
|
540
525
|
default: number;
|
|
541
526
|
};
|
|
542
|
-
status: {
|
|
543
|
-
type: PropType<"error" | "default" | "success" | "warning" | "processing">;
|
|
544
|
-
default: string;
|
|
545
|
-
};
|
|
546
|
-
offset: {
|
|
547
|
-
type: PropType<[string | number, string | number]>;
|
|
548
|
-
};
|
|
549
527
|
show: {
|
|
550
|
-
type:
|
|
528
|
+
type: BooleanConstructor;
|
|
551
529
|
default: boolean;
|
|
552
530
|
};
|
|
553
|
-
|
|
554
|
-
type: PropType<boolean>;
|
|
555
|
-
};
|
|
556
|
-
helpMessage: {
|
|
531
|
+
toolTipBgColor: {
|
|
557
532
|
type: PropType<string>;
|
|
558
533
|
};
|
|
559
|
-
count: {
|
|
560
|
-
|
|
534
|
+
count: VueTypeValidableDef<any> & {
|
|
535
|
+
default: any;
|
|
561
536
|
};
|
|
562
537
|
showZero: {
|
|
563
|
-
type:
|
|
538
|
+
type: BooleanConstructor;
|
|
539
|
+
default: any;
|
|
564
540
|
};
|
|
565
541
|
overflowCount: {
|
|
566
|
-
type:
|
|
542
|
+
type: NumberConstructor;
|
|
543
|
+
default: number;
|
|
567
544
|
};
|
|
568
|
-
|
|
569
|
-
type:
|
|
545
|
+
dot: {
|
|
546
|
+
type: BooleanConstructor;
|
|
547
|
+
default: any;
|
|
570
548
|
};
|
|
571
|
-
|
|
572
|
-
|
|
549
|
+
prefixCls: StringConstructor;
|
|
550
|
+
scrollNumberPrefixCls: StringConstructor;
|
|
551
|
+
status: {
|
|
552
|
+
type: PropType<"error" | "default" | "success" | "processing" | "warning">;
|
|
573
553
|
};
|
|
574
|
-
|
|
575
|
-
type: PropType<
|
|
554
|
+
size: {
|
|
555
|
+
type: PropType<"default" | "small">;
|
|
576
556
|
default: string;
|
|
577
557
|
};
|
|
578
|
-
|
|
558
|
+
color: PropType<LiteralUnion<"blue" | "cyan" | "gold" | "green" | "lime" | "magenta" | "orange" | "pink" | "purple" | "red" | "yellow" | "volcano" | "geekblue">>;
|
|
559
|
+
text: VueTypeValidableDef<any>;
|
|
560
|
+
offset: PropType<[string | number, string | number]>;
|
|
561
|
+
numberStyle: {
|
|
562
|
+
type: PropType<CSSProperties>;
|
|
563
|
+
default: CSSProperties;
|
|
564
|
+
};
|
|
565
|
+
title: StringConstructor;
|
|
566
|
+
}>>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, {
|
|
567
|
+
size: "small" | "default";
|
|
579
568
|
placement: TooltipPlacement;
|
|
580
|
-
iconType: "
|
|
581
|
-
text: any;
|
|
569
|
+
iconType: "ellipsis" | "success" | "warning" | "question";
|
|
582
570
|
iconSize: number;
|
|
583
|
-
status: "error" | "default" | "success" | "warning" | "processing";
|
|
584
571
|
show: boolean;
|
|
572
|
+
dot: boolean;
|
|
573
|
+
helpMessage: string | VNode<RendererNode, RendererElement, {
|
|
574
|
+
[key: string]: any;
|
|
575
|
+
}> | undefined;
|
|
576
|
+
count: any;
|
|
577
|
+
showZero: boolean;
|
|
578
|
+
overflowCount: number;
|
|
579
|
+
numberStyle: CSSProperties;
|
|
585
580
|
iconColor: string;
|
|
586
581
|
}>;
|
|
587
582
|
__isFragment?: never;
|
|
588
583
|
__isTeleport?: never;
|
|
589
584
|
__isSuspense?: never;
|
|
590
585
|
} & ComponentOptionsBase<Readonly< ExtractPropTypes<{
|
|
591
|
-
|
|
592
|
-
type: PropType<
|
|
593
|
-
|
|
594
|
-
title: {
|
|
595
|
-
type: PropType<string>;
|
|
586
|
+
helpMessage: {
|
|
587
|
+
type: PropType< VNode | string | undefined>;
|
|
588
|
+
default: undefined;
|
|
596
589
|
};
|
|
597
590
|
placement: {
|
|
598
591
|
type: PropType<TooltipPlacement>;
|
|
599
592
|
default: string;
|
|
600
593
|
};
|
|
601
|
-
|
|
594
|
+
iconColor: {
|
|
602
595
|
type: PropType<string>;
|
|
603
|
-
};
|
|
604
|
-
iconType: {
|
|
605
|
-
type: PropType<"ellipsis" | "success" | "warning" | "question">;
|
|
606
596
|
default: string;
|
|
607
597
|
};
|
|
608
|
-
|
|
609
|
-
type: PropType<
|
|
598
|
+
iconType: {
|
|
599
|
+
type: PropType<"question" | "warning" | "ellipsis" | "success">;
|
|
610
600
|
default: string;
|
|
611
601
|
};
|
|
612
|
-
color: {
|
|
613
|
-
type: PropType<LiteralUnion<"blue" | "purple" | "cyan" | "green" | "magenta" | "pink" | "red" | "orange" | "yellow" | "volcano" | "geekblue" | "lime" | "gold">>;
|
|
614
|
-
};
|
|
615
602
|
iconSize: {
|
|
616
603
|
type: PropType<number>;
|
|
617
604
|
default: number;
|
|
618
605
|
};
|
|
619
|
-
status: {
|
|
620
|
-
type: PropType<"error" | "default" | "success" | "warning" | "processing">;
|
|
621
|
-
default: string;
|
|
622
|
-
};
|
|
623
|
-
offset: {
|
|
624
|
-
type: PropType<[string | number, string | number]>;
|
|
625
|
-
};
|
|
626
606
|
show: {
|
|
627
|
-
type:
|
|
607
|
+
type: BooleanConstructor;
|
|
628
608
|
default: boolean;
|
|
629
609
|
};
|
|
630
|
-
|
|
631
|
-
type: PropType<boolean>;
|
|
632
|
-
};
|
|
633
|
-
helpMessage: {
|
|
610
|
+
toolTipBgColor: {
|
|
634
611
|
type: PropType<string>;
|
|
635
612
|
};
|
|
636
|
-
count: {
|
|
637
|
-
|
|
613
|
+
count: VueTypeValidableDef<any> & {
|
|
614
|
+
default: any;
|
|
638
615
|
};
|
|
639
616
|
showZero: {
|
|
640
|
-
type:
|
|
617
|
+
type: BooleanConstructor;
|
|
618
|
+
default: any;
|
|
641
619
|
};
|
|
642
620
|
overflowCount: {
|
|
643
|
-
type:
|
|
621
|
+
type: NumberConstructor;
|
|
622
|
+
default: number;
|
|
644
623
|
};
|
|
645
|
-
|
|
646
|
-
type:
|
|
624
|
+
dot: {
|
|
625
|
+
type: BooleanConstructor;
|
|
626
|
+
default: any;
|
|
647
627
|
};
|
|
648
|
-
|
|
649
|
-
|
|
628
|
+
prefixCls: StringConstructor;
|
|
629
|
+
scrollNumberPrefixCls: StringConstructor;
|
|
630
|
+
status: {
|
|
631
|
+
type: PropType<"error" | "default" | "success" | "processing" | "warning">;
|
|
650
632
|
};
|
|
651
|
-
|
|
652
|
-
type: PropType<
|
|
633
|
+
size: {
|
|
634
|
+
type: PropType<"default" | "small">;
|
|
653
635
|
default: string;
|
|
654
636
|
};
|
|
655
|
-
|
|
637
|
+
color: PropType<LiteralUnion<"blue" | "cyan" | "gold" | "green" | "lime" | "magenta" | "orange" | "pink" | "purple" | "red" | "yellow" | "volcano" | "geekblue">>;
|
|
638
|
+
text: VueTypeValidableDef<any>;
|
|
639
|
+
offset: PropType<[string | number, string | number]>;
|
|
640
|
+
numberStyle: {
|
|
641
|
+
type: PropType<CSSProperties>;
|
|
642
|
+
default: CSSProperties;
|
|
643
|
+
};
|
|
644
|
+
title: StringConstructor;
|
|
645
|
+
}>>, () => import("vue/jsx-runtime").JSX.Element, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
|
|
646
|
+
size: "small" | "default";
|
|
656
647
|
placement: TooltipPlacement;
|
|
657
|
-
iconType: "
|
|
658
|
-
text: any;
|
|
648
|
+
iconType: "ellipsis" | "success" | "warning" | "question";
|
|
659
649
|
iconSize: number;
|
|
660
|
-
status: "error" | "default" | "success" | "warning" | "processing";
|
|
661
650
|
show: boolean;
|
|
651
|
+
dot: boolean;
|
|
652
|
+
helpMessage: string | VNode<RendererNode, RendererElement, {
|
|
653
|
+
[key: string]: any;
|
|
654
|
+
}> | undefined;
|
|
655
|
+
count: any;
|
|
656
|
+
showZero: boolean;
|
|
657
|
+
overflowCount: number;
|
|
658
|
+
numberStyle: CSSProperties;
|
|
662
659
|
iconColor: string;
|
|
663
|
-
}, {}, string, {}> & ( VNodeProps & AllowedComponentProps & (
|
|
664
|
-
$slots: {
|
|
665
|
-
default?(_: {}): any;
|
|
666
|
-
custom?(_: {}): any;
|
|
667
|
-
};
|
|
668
|
-
}) & ( Plugin & (new (...args: any[]) => {
|
|
660
|
+
}, {}, string, {}> & ( VNodeProps & ( AllowedComponentProps & ComponentCustomProps & ( Plugin & (new (...args: any[]) => {
|
|
669
661
|
$props: {
|
|
670
662
|
onClick?: () => void;
|
|
671
663
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { withInstall as o } from "@aplus-frontend/utils";
|
|
2
2
|
import "./title/ApTitle.vue.mjs";
|
|
3
3
|
import "./expandAlert/ApExpandAlert.vue.mjs";
|
|
4
|
-
import "./ap-label/ApLabel.
|
|
5
|
-
import
|
|
4
|
+
import t from "./ap-label/ApLabel.mjs";
|
|
5
|
+
import m from "./ap-label/ApLabelGroup.mjs";
|
|
6
6
|
import "./ap-status/ApStatus.vue.mjs";
|
|
7
7
|
import "./ap-status/ApStatusGroup.vue.mjs";
|
|
8
8
|
import "./ap-select-layout/select-layout.vue.mjs";
|
|
@@ -11,11 +11,10 @@ import "./ap-input-radio/ApInputRadio.vue.mjs";
|
|
|
11
11
|
import "./ap-batch-action/ApBatchAction.vue.mjs";
|
|
12
12
|
import "./ap-batch-action-group/ApBatchActionGroup.vue.mjs";
|
|
13
13
|
import "./ap-image/ApImage.vue.mjs";
|
|
14
|
-
import { ApTransformDataHelper as
|
|
14
|
+
import { ApTransformDataHelper as X } from "../utils/ap-trans-data/index.mjs";
|
|
15
15
|
import "./ap-batch-action-group/interface.mjs";
|
|
16
|
-
import
|
|
16
|
+
import p from "./title/ApTitle.vue2.mjs";
|
|
17
17
|
import r from "./expandAlert/ApExpandAlert.vue2.mjs";
|
|
18
|
-
import p from "./ap-label/ApLabel.vue2.mjs";
|
|
19
18
|
import i from "./ap-status/ApStatus.vue2.mjs";
|
|
20
19
|
import n from "./ap-status/ApStatusGroup.vue2.mjs";
|
|
21
20
|
import c from "./ap-select-layout/select-layout.vue2.mjs";
|
|
@@ -24,19 +23,19 @@ import s from "./ap-input-radio/ApInputRadio.vue2.mjs";
|
|
|
24
23
|
import f from "./ap-batch-action/ApBatchAction.vue2.mjs";
|
|
25
24
|
import _ from "./ap-batch-action-group/ApBatchActionGroup.vue2.mjs";
|
|
26
25
|
import A from "./ap-image/ApImage.vue2.mjs";
|
|
27
|
-
const
|
|
26
|
+
const v = o(p), z = r, C = o(t), F = o(i), J = o(n), K = o(c), M = o(a), N = s, O = f, P = m, Q = _, U = A;
|
|
28
27
|
export {
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
28
|
+
O as ApBatchAction,
|
|
29
|
+
Q as ApBatchActionGroup,
|
|
30
|
+
z as ApExpandAlert,
|
|
31
|
+
M as ApExportGroup,
|
|
32
|
+
U as ApImage,
|
|
33
|
+
N as ApInputRadio,
|
|
34
|
+
C as ApLabel,
|
|
35
|
+
P as ApLabelGroup,
|
|
36
|
+
K as ApSelectLayout,
|
|
37
|
+
F as ApStatus,
|
|
38
|
+
J as ApStatusGroup,
|
|
39
|
+
v as ApTitle,
|
|
40
|
+
X as ApTransformDataHelper
|
|
42
41
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Ref, ComputedRef, ExtractPropTypes, PropType, HTMLAttributes } from 'vue';
|
|
2
2
|
import { ProFormProps, FormSchemaInner as FormSchema } from '../types/form';
|
|
3
|
-
import { ColSize } from 'ant-design-vue/lib/grid';
|
|
3
|
+
import { ColSize } from 'ant-design-vue/lib/grid/Col';
|
|
4
4
|
export declare function useItemLabelWidth(schemaItemRef: Ref<FormSchema>, propsRef: Ref<ProFormProps>): ComputedRef<{
|
|
5
5
|
labelCol: Partial< ExtractPropTypes<{
|
|
6
6
|
span: (StringConstructor | NumberConstructor)[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../config-provider/index.js");const
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../config-provider/index.js");const _=require("./hooks/index.js");require("./style/ap-download.css");const b=require("./utils/getFileInfo.js"),y=require("./hooks/useStyle.js"),F=require("../config-provider/hooks/use-locale.js"),o=require("../config-provider/hooks/use-global-config.js"),S={class:"icon"},q={class:"text"},z=e.defineComponent({name:"ApDownload",__name:"ap-download",props:{text:{},color:{default:"#0070FF"},size:{default:"middle"},disabled:{type:Boolean,default:!1},fileName:{},needName:{type:[Boolean,Object]},getOssAccess:{}},setup(n){const{lang:l}=F.useLocale(),a=e.computed(()=>l.value==="zh-cn"?"zh_CN":"en_US"),c=o.useGlobalConfig("uiMode"),s=n,r=o.useGlobalConfig("apUpload"),i=e.computed(()=>s.disabled),u=e.computed(()=>c.value==="aplus"?"#0070FF":"#1890FF"),d=e.computed(()=>s.size),{wrapperStyle:p,getWrapperClass:m,getInnerWrapperClass:f}=y.useStyle(u,d,i),g=e.computed(()=>{var t;return s.getOssAccess||((t=r.value)==null?void 0:t.getOssAccess)}),C=async()=>{s.disabled||await(await _.useOssInit(g.value,e.unref(a))).downloadFile(b.getFileInfo(s.needName,s.fileName))};return(t,N)=>(e.openBlock(),e.createElementBlock("span",{style:e.normalizeStyle(e.unref(p)),class:e.normalizeClass(e.unref(m)),onClick:C},[e.createElementVNode("span",{class:e.normalizeClass(e.unref(f))},[e.createElementVNode("span",S,[e.renderSlot(t.$slots,"icon")]),e.createElementVNode("span",q,e.toDisplayString(t.text),1)],2)],6))}});exports.default=z;
|