@aplus-frontend/ui 0.0.1-beta.6 → 0.0.1-beta.7
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 +59 -49
- package/es/src/ap-action/constant.d.ts +0 -0
- package/es/src/ap-action/group/index.vue.d.ts +38 -0
- package/es/src/ap-action/group/index.vue.mjs +64 -0
- package/es/src/ap-action/group/index.vue2.mjs +4 -0
- package/es/src/ap-action/index.d.ts +14 -0
- package/es/src/ap-action/index.mjs +17 -0
- package/es/src/ap-action/interface.d.ts +81 -0
- package/es/src/ap-action/item/index.vue.d.ts +44 -0
- package/es/src/ap-action/item/index.vue.mjs +49 -0
- package/es/src/ap-action/item/index.vue2.mjs +4 -0
- package/es/src/ap-action/item-dropdown/index.vue.d.ts +57 -0
- package/es/src/ap-action/item-dropdown/index.vue.mjs +92 -0
- package/es/src/ap-action/item-dropdown/index.vue2.mjs +4 -0
- package/es/src/ap-action/item-modal/index.vue.d.ts +41 -0
- package/es/src/ap-action/item-modal/index.vue.mjs +34 -0
- package/es/src/ap-action/item-modal/index.vue2.mjs +4 -0
- package/es/src/ap-action/item-popconfirm/index.vue.d.ts +343 -0
- package/es/src/ap-action/item-popconfirm/index.vue.mjs +37 -0
- package/es/src/ap-action/item-popconfirm/index.vue2.mjs +4 -0
- package/es/src/ap-action/style/item-dropdown.css +11 -0
- package/es/src/ap-action/style/item.css +28 -0
- package/es/src/ap-field/date/index.vue.d.ts +1 -1
- package/es/src/ap-field/date-range/index.vue.d.ts +1 -1
- package/es/src/ap-field/interface.d.ts +3 -2
- package/es/src/ap-field/number/index.vue.d.ts +1 -1
- package/es/src/ap-field/select/index.vue.d.ts +1 -1
- package/es/src/ap-field/switch/index.vue.d.ts +1 -1
- package/es/src/ap-field/switch/index.vue.mjs +68 -39
- package/es/src/ap-field/text/index.vue.d.ts +3 -3
- package/es/src/ap-field/text-area/index.vue.d.ts +2 -2
- package/es/src/ap-form/index.d.ts +76 -76
- package/es/src/base-button/index.d.ts +28 -28
- package/es/src/config-provider/config-provider.d.ts +4 -4
- package/es/src/config-provider/index.d.ts +12 -12
- package/es/src/count-down/index.d.ts +12 -12
- package/es/src/cropper/cropper-avatar.vue.d.ts +1 -1
- package/es/src/cropper/cropper-image.vue.d.ts +1 -1
- package/es/src/cropper/index.d.ts +42 -42
- package/es/src/description/description.vue.d.ts +1 -1
- package/es/src/description/index.d.ts +3 -3
- package/es/src/dropdown/dropdown.vue.d.ts +1 -1
- package/es/src/dropdown/index.d.ts +7 -7
- package/es/src/icon/index.d.ts +41 -41
- package/es/src/icon-picker/icon-picker.vue.d.ts +3 -3
- package/es/src/icon-picker/index.d.ts +45 -45
- package/es/src/index.d.ts +1 -0
- package/es/src/index.mjs +98 -88
- package/es/src/modal/basic.vue.d.ts +4 -3
- package/es/src/modal/basic.vue.mjs +53 -49
- package/es/src/modal/components/modal-footer.vue.d.ts +2 -2
- package/es/src/modal/components/modal.d.ts +2 -2
- package/es/src/modal/index.d.ts +10 -11
- package/es/src/modal/index.mjs +2 -3
- package/es/src/modal/props.mjs +1 -1
- package/es/src/modal/style/index.css +29 -30
- package/es/src/pro-form/components/api-radio-group.vue.d.ts +1 -1
- package/es/src/pro-form/components/api-select.vue.d.ts +2 -2
- package/es/src/pro-form/components/api-transfer.vue.d.ts +1 -1
- package/es/src/pro-form/components/api-tree.vue.d.ts +1 -1
- package/es/src/pro-form/hooks/use-label-width.d.ts +8 -8
- package/es/src/pro-form/pro-form.vue.d.ts +1 -1
- package/es/src/strength-meter/index.d.ts +12 -12
- package/es/src/theme/ap-action/item-dropdown.css +11 -0
- package/es/src/theme/ap-action/item.css +28 -0
- package/es/src/theme/modal/index.css +29 -30
- package/lib/index.js +1 -1
- package/lib/src/ap-action/constant.d.ts +0 -0
- package/lib/src/ap-action/group/index.vue.d.ts +38 -0
- package/lib/src/ap-action/group/index.vue.js +1 -0
- package/lib/src/ap-action/group/index.vue2.js +1 -0
- package/lib/src/ap-action/index.d.ts +14 -0
- package/lib/src/ap-action/index.js +1 -0
- package/lib/src/ap-action/interface.d.ts +81 -0
- package/lib/src/ap-action/item/index.vue.d.ts +44 -0
- package/lib/src/ap-action/item/index.vue.js +1 -0
- package/lib/src/ap-action/item/index.vue2.js +1 -0
- package/lib/src/ap-action/item-dropdown/index.vue.d.ts +57 -0
- package/lib/src/ap-action/item-dropdown/index.vue.js +1 -0
- package/lib/src/ap-action/item-dropdown/index.vue2.js +1 -0
- package/lib/src/ap-action/item-modal/index.vue.d.ts +41 -0
- package/lib/src/ap-action/item-modal/index.vue.js +1 -0
- package/lib/src/ap-action/item-modal/index.vue2.js +1 -0
- package/lib/src/ap-action/item-popconfirm/index.vue.d.ts +343 -0
- package/lib/src/ap-action/item-popconfirm/index.vue.js +1 -0
- package/lib/src/ap-action/item-popconfirm/index.vue2.js +1 -0
- package/lib/src/ap-action/style/item-dropdown.css +11 -0
- package/lib/src/ap-action/style/item.css +28 -0
- package/lib/src/ap-field/date/index.vue.d.ts +1 -1
- package/lib/src/ap-field/date-range/index.vue.d.ts +1 -1
- package/lib/src/ap-field/interface.d.ts +3 -2
- package/lib/src/ap-field/number/index.vue.d.ts +1 -1
- package/lib/src/ap-field/select/index.vue.d.ts +1 -1
- package/lib/src/ap-field/switch/index.vue.d.ts +1 -1
- package/lib/src/ap-field/switch/index.vue.js +1 -1
- package/lib/src/ap-field/text/index.vue.d.ts +3 -3
- package/lib/src/ap-field/text-area/index.vue.d.ts +2 -2
- package/lib/src/ap-form/index.d.ts +76 -76
- package/lib/src/base-button/index.d.ts +28 -28
- package/lib/src/config-provider/config-provider.d.ts +4 -4
- package/lib/src/config-provider/index.d.ts +12 -12
- package/lib/src/count-down/index.d.ts +12 -12
- package/lib/src/cropper/cropper-avatar.vue.d.ts +1 -1
- package/lib/src/cropper/cropper-image.vue.d.ts +1 -1
- package/lib/src/cropper/index.d.ts +42 -42
- package/lib/src/description/description.vue.d.ts +1 -1
- package/lib/src/description/index.d.ts +3 -3
- package/lib/src/dropdown/dropdown.vue.d.ts +1 -1
- package/lib/src/dropdown/index.d.ts +7 -7
- package/lib/src/icon/index.d.ts +41 -41
- package/lib/src/icon-picker/icon-picker.vue.d.ts +3 -3
- package/lib/src/icon-picker/index.d.ts +45 -45
- package/lib/src/index.d.ts +1 -0
- package/lib/src/index.js +1 -1
- package/lib/src/modal/basic.vue.d.ts +4 -3
- package/lib/src/modal/basic.vue.js +1 -1
- package/lib/src/modal/components/modal-footer.vue.d.ts +2 -2
- package/lib/src/modal/components/modal.d.ts +2 -2
- package/lib/src/modal/index.d.ts +10 -11
- package/lib/src/modal/index.js +1 -1
- package/lib/src/modal/props.js +1 -1
- package/lib/src/modal/style/index.css +29 -30
- package/lib/src/pro-form/components/api-radio-group.vue.d.ts +1 -1
- package/lib/src/pro-form/components/api-select.vue.d.ts +2 -2
- package/lib/src/pro-form/components/api-transfer.vue.d.ts +1 -1
- package/lib/src/pro-form/components/api-tree.vue.d.ts +1 -1
- package/lib/src/pro-form/hooks/use-label-width.d.ts +8 -8
- package/lib/src/pro-form/pro-form.vue.d.ts +1 -1
- package/lib/src/strength-meter/index.d.ts +12 -12
- package/lib/src/theme/ap-action/item-dropdown.css +11 -0
- package/lib/src/theme/ap-action/item.css +28 -0
- package/lib/src/theme/modal/index.css +29 -30
- package/package.json +3 -3
|
@@ -2,12 +2,12 @@ import { CreateComponentPublicInstance, ExtractPropTypes, PropType, ComponentOpt
|
|
|
2
2
|
export * from './interface';
|
|
3
3
|
export declare const StrengthMeter: {
|
|
4
4
|
new (...args: any[]): CreateComponentPublicInstance<Readonly< ExtractPropTypes<{
|
|
5
|
-
value: {
|
|
6
|
-
type: PropType<string>;
|
|
7
|
-
};
|
|
8
5
|
disabled: {
|
|
9
6
|
type: PropType<boolean>;
|
|
10
7
|
};
|
|
8
|
+
value: {
|
|
9
|
+
type: PropType<string>;
|
|
10
|
+
};
|
|
11
11
|
showInput: {
|
|
12
12
|
type: PropType<boolean>;
|
|
13
13
|
default: boolean;
|
|
@@ -19,12 +19,12 @@ export declare const StrengthMeter: {
|
|
|
19
19
|
change: (...args: any[]) => void;
|
|
20
20
|
"score-change": (...args: any[]) => void;
|
|
21
21
|
}, VNodeProps & AllowedComponentProps & ComponentCustomProps & Readonly< ExtractPropTypes<{
|
|
22
|
-
value: {
|
|
23
|
-
type: PropType<string>;
|
|
24
|
-
};
|
|
25
22
|
disabled: {
|
|
26
23
|
type: PropType<boolean>;
|
|
27
24
|
};
|
|
25
|
+
value: {
|
|
26
|
+
type: PropType<string>;
|
|
27
|
+
};
|
|
28
28
|
showInput: {
|
|
29
29
|
type: PropType<boolean>;
|
|
30
30
|
default: boolean;
|
|
@@ -42,12 +42,12 @@ export declare const StrengthMeter: {
|
|
|
42
42
|
M: {};
|
|
43
43
|
Defaults: {};
|
|
44
44
|
}, Readonly< ExtractPropTypes<{
|
|
45
|
-
value: {
|
|
46
|
-
type: PropType<string>;
|
|
47
|
-
};
|
|
48
45
|
disabled: {
|
|
49
46
|
type: PropType<boolean>;
|
|
50
47
|
};
|
|
48
|
+
value: {
|
|
49
|
+
type: PropType<string>;
|
|
50
|
+
};
|
|
51
51
|
showInput: {
|
|
52
52
|
type: PropType<boolean>;
|
|
53
53
|
default: boolean;
|
|
@@ -62,12 +62,12 @@ export declare const StrengthMeter: {
|
|
|
62
62
|
__isTeleport?: undefined;
|
|
63
63
|
__isSuspense?: undefined;
|
|
64
64
|
} & ComponentOptionsBase<Readonly< ExtractPropTypes<{
|
|
65
|
-
value: {
|
|
66
|
-
type: PropType<string>;
|
|
67
|
-
};
|
|
68
65
|
disabled: {
|
|
69
66
|
type: PropType<boolean>;
|
|
70
67
|
};
|
|
68
|
+
value: {
|
|
69
|
+
type: PropType<string>;
|
|
70
|
+
};
|
|
71
71
|
showInput: {
|
|
72
72
|
type: PropType<boolean>;
|
|
73
73
|
default: boolean;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
.aplus-action-item {
|
|
2
|
+
display: inline-block;
|
|
3
|
+
font-size: 14px;
|
|
4
|
+
line-height: 22px;
|
|
5
|
+
cursor: pointer;
|
|
6
|
+
}
|
|
7
|
+
.aplus-action-item--primary {
|
|
8
|
+
color: #0070ff;
|
|
9
|
+
}
|
|
10
|
+
.aplus-action-item--success {
|
|
11
|
+
color: #2ed1a3;
|
|
12
|
+
}
|
|
13
|
+
.aplus-action-item--error {
|
|
14
|
+
color: #FF4D4F;
|
|
15
|
+
}
|
|
16
|
+
.aplus-action-item--warn {
|
|
17
|
+
color: #FFA940;
|
|
18
|
+
}
|
|
19
|
+
.aplus-action-item--loading {
|
|
20
|
+
opacity: 0.35;
|
|
21
|
+
transition: opacity 0.2s;
|
|
22
|
+
}
|
|
23
|
+
.aplus-action-item--loading .btn-loading-icon {
|
|
24
|
+
margin-right: 4px;
|
|
25
|
+
}
|
|
26
|
+
.aplus-action-item--disabled {
|
|
27
|
+
color: #ABB7CC;
|
|
28
|
+
}
|
|
@@ -14,48 +14,50 @@
|
|
|
14
14
|
.fullscreen-modal .ant-modal-footer {
|
|
15
15
|
margin-top: 0;
|
|
16
16
|
}
|
|
17
|
-
.
|
|
17
|
+
.aplus-basic-modal {
|
|
18
18
|
width: 520px;
|
|
19
19
|
padding-bottom: 0;
|
|
20
20
|
}
|
|
21
|
-
.
|
|
22
|
-
padding:
|
|
21
|
+
.aplus-basic-modal .ant-modal-body > .aplus-scrollbar {
|
|
22
|
+
padding: 20px;
|
|
23
|
+
padding-bottom: 0;
|
|
23
24
|
}
|
|
24
|
-
.ant-modal-title {
|
|
25
|
+
.aplus-basic-modal .ant-modal-title {
|
|
25
26
|
font-size: 16px;
|
|
26
27
|
font-weight: bold;
|
|
27
28
|
}
|
|
28
|
-
.ant-modal-title .
|
|
29
|
+
.aplus-basic-modal .ant-modal-title .aplus-basic-title {
|
|
29
30
|
cursor: move !important;
|
|
31
|
+
padding-left: 0;
|
|
30
32
|
}
|
|
31
|
-
.
|
|
33
|
+
.aplus-basic-modal .ant-modal-body {
|
|
32
34
|
padding: 0;
|
|
33
35
|
}
|
|
34
|
-
.
|
|
36
|
+
.aplus-basic-modal .ant-modal-body > .aplus-scrollbar > .aplus-scrollbar__bar.is-horizontal {
|
|
35
37
|
display: none;
|
|
36
38
|
}
|
|
37
|
-
.ant-modal-large {
|
|
39
|
+
.aplus-basic-modal .ant-modal-large {
|
|
38
40
|
top: 60px;
|
|
39
41
|
}
|
|
40
|
-
.ant-modal-large--mini {
|
|
42
|
+
.aplus-basic-modal .ant-modal-large .ant-modal--mini {
|
|
41
43
|
top: 16px;
|
|
42
44
|
}
|
|
43
|
-
.ant-modal-header {
|
|
44
|
-
padding:
|
|
45
|
+
.aplus-basic-modal .ant-modal-header {
|
|
46
|
+
padding: 15px 20px;
|
|
47
|
+
margin-bottom: 0;
|
|
45
48
|
border-bottom: 1px solid #eee;
|
|
46
49
|
}
|
|
47
|
-
.ant-modal-content {
|
|
50
|
+
.aplus-basic-modal .ant-modal-content {
|
|
48
51
|
padding: 0 !important;
|
|
49
|
-
box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 #000000;
|
|
50
52
|
}
|
|
51
|
-
.ant-modal-footer {
|
|
52
|
-
padding:
|
|
53
|
-
|
|
53
|
+
.aplus-basic-modal .ant-modal-footer {
|
|
54
|
+
padding: 20px;
|
|
55
|
+
margin-top: 0;
|
|
54
56
|
}
|
|
55
|
-
.ant-modal-footer button + button {
|
|
57
|
+
.aplus-basic-modal .ant-modal-footer button + button {
|
|
56
58
|
margin-left: 10px;
|
|
57
59
|
}
|
|
58
|
-
.ant-modal-close {
|
|
60
|
+
.aplus-basic-modal .ant-modal-close {
|
|
59
61
|
top: 0 !important;
|
|
60
62
|
right: 0 !important;
|
|
61
63
|
width: auto !important;
|
|
@@ -63,41 +65,38 @@
|
|
|
63
65
|
background: transparent !important;
|
|
64
66
|
font-weight: normal;
|
|
65
67
|
}
|
|
66
|
-
.ant-modal-close-x {
|
|
68
|
+
.aplus-basic-modal .ant-modal-close-x {
|
|
67
69
|
display: inline-block;
|
|
68
70
|
width: 96px;
|
|
69
71
|
height: 56px;
|
|
70
72
|
line-height: 56px !important;
|
|
71
73
|
}
|
|
72
|
-
.ant-modal-confirm-body .ant-modal-confirm-content > * {
|
|
74
|
+
.aplus-basic-modal .ant-modal-confirm-body .ant-modal-confirm-content > * {
|
|
73
75
|
color: #909399;
|
|
74
76
|
}
|
|
75
|
-
.ant-modal-confirm-confirm.error .ant-modal-confirm-body > .anticon {
|
|
77
|
+
.aplus-basic-modal .ant-modal-confirm-confirm.error .ant-modal-confirm-body > .anticon {
|
|
76
78
|
color: #ed6f6f;
|
|
77
79
|
}
|
|
78
|
-
.ant-modal-confirm-btns .ant-btn:last-child {
|
|
80
|
+
.aplus-basic-modal .ant-modal-confirm-btns .ant-btn:last-child {
|
|
79
81
|
margin-right: 0;
|
|
80
82
|
}
|
|
81
|
-
.ant-modal-confirm-info .ant-modal-confirm-body > .anticon {
|
|
83
|
+
.aplus-basic-modal .ant-modal-confirm-info .ant-modal-confirm-body > .anticon {
|
|
82
84
|
color: #efbd47;
|
|
83
85
|
}
|
|
84
|
-
.ant-modal-confirm-confirm.success .ant-modal-confirm-body > .anticon {
|
|
86
|
+
.aplus-basic-modal .ant-modal-confirm-confirm.success .ant-modal-confirm-body > .anticon {
|
|
85
87
|
color: #34b77c;
|
|
86
88
|
}
|
|
87
|
-
|
|
88
|
-
padding: 24px !important;
|
|
89
|
-
}
|
|
90
|
-
@media screen and (max-height: 600px) {
|
|
89
|
+
@media screen and (height <= 600px) {
|
|
91
90
|
.ant-modal {
|
|
92
91
|
top: 60px;
|
|
93
92
|
}
|
|
94
93
|
}
|
|
95
|
-
@media screen and (
|
|
94
|
+
@media screen and (height <= 540px) {
|
|
96
95
|
.ant-modal {
|
|
97
96
|
top: 30px;
|
|
98
97
|
}
|
|
99
98
|
}
|
|
100
|
-
@media screen and (
|
|
99
|
+
@media screen and (height <= 480px) {
|
|
101
100
|
.ant-modal {
|
|
102
101
|
top: 10px;
|
|
103
102
|
}
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const s=require("./src/index.js"),
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const s=require("./src/index.js"),m=require("./src/hooks/useMessage.js"),T=require("./src/hooks/useControllableValue.js"),a=require("./src/icon/index.js"),x=require("./src/config-provider/config-provider-props.js"),l=require("./src/config-provider/constants.js"),n=require("./src/config-provider/hooks/use-global-config.js"),t=require("./src/config-provider/hooks/use-locale.js"),r=require("./src/config-provider/hooks/use-namespace.js"),C=require("./src/config-provider/config-provider.js"),A=require("./src/config-provider/index.js"),S=require("./src/scroll-bar/index.js"),_=require("./src/container/index.js"),y=require("./src/icon-picker/index.js"),b=require("./src/locale/lang/zh-cn.js"),$=require("./src/locale/lang/en.js"),i=require("./src/basic/index.js"),F=require("./src/transition/collapse-transition.vue.js"),e=require("./src/transition/index.js"),I=require("./src/description/use-description.js"),P=require("./src/description/index.js"),B=require("./src/pro-form/hooks/use-form.js"),c=require("./src/pro-form/types/form.js"),M=require("./src/pro-form/index.js"),R=require("./src/pro-form/components/api-cascader.vue.js"),D=require("./src/pro-form/components/api-radio-group.vue.js"),G=require("./src/pro-form/components/api-select.vue.js"),h=require("./src/pro-form/components/api-transfer.vue.js"),k=require("./src/pro-form/components/api-tree.vue.js"),w=require("./src/pro-form/components/radio-button-group.vue.js"),X=require("./src/pro-form/pro-form.vue.js"),N=require("./src/pro-form/components/api-tree-select.vue.js"),Y=require("./src/base-button/modal-button.vue.js"),K=require("./src/base-button/pop-confirm-button.vue.js"),E=require("./src/base-button/index.js"),L=require("./src/strength-meter/index.js"),H=require("./src/modal/hooks/use-modal-context.js"),p=require("./src/modal/hooks/use-modal.js"),O=require("./src/modal/index.js"),d=require("./src/cropper/index.js"),v=require("./src/count-down/index.js"),V=require("./src/prompt/index.js"),j=require("./src/dropdown/index.js"),z=require("./src/pro-table/pro-table.vue.js"),J=require("./src/pro-table/components/table-action.vue.js"),Q=require("./src/pro-table/components/edit-table-header-icon.vue.js"),U=require("./src/pro-table/components/table-image.vue.js"),W=require("./src/pro-table/hooks/use-table.js"),o=require("./src/ap-form/index.js"),Z=require("./src/ap-field/text/index.vue.js"),ee=require("./src/ap-field/checkbox/index.vue.js"),te=require("./src/ap-field/date/index.vue.js"),re=require("./src/ap-field/number/index.vue.js"),ne=require("./src/ap-field/radio/index.vue.js"),ie=require("./src/ap-field/switch/index.vue.js"),oe=require("./src/ap-field/text-area/index.vue.js"),ue=require("./src/ap-field/date-range/index.vue.js"),se=require("./src/ap-field/select/index.vue.js"),f=require("./src/design-token/index.js"),ae=require("./src/ap-action/index.js"),le=require("./src/ap-action/item-modal/index.vue.js"),_e=require("./src/ap-action/item-popconfirm/index.vue.js"),ce=require("./src/ap-action/item-dropdown/index.vue.js"),pe=require("./src/ap-action/group/index.vue.js"),de={install:q=>{for(const g in s){const u=s[g];u.install&&q.use(u)}}};exports.useMessage=m.useMessage;exports.useControllableValue=T.useControllableValue;exports.Icon=a.Icon;exports.SvgIcon=a.SvgIcon;exports.configProviderProps=x.configProviderProps;exports.configProviderContextKey=l.configProviderContextKey;exports.tableDefaultConfig=l.tableDefaultConfig;exports.keysOf=n.keysOf;exports.provideGlobalConfig=n.provideGlobalConfig;exports.useGlobalConfig=n.useGlobalConfig;exports.buildLocaleContext=t.buildLocaleContext;exports.buildTranslator=t.buildTranslator;exports.localeContextKey=t.localeContextKey;exports.translate=t.translate;exports.useLocale=t.useLocale;exports.defaultNamespace=r.defaultNamespace;exports.namespaceContextKey=r.namespaceContextKey;exports.useGetDerivedNamespace=r.useGetDerivedNamespace;exports.useNamespace=r.useNamespace;exports.ConfigProvider=C.ConfigProvider;exports.APConfigProvider=A.APConfigProvider;exports.Scrollbar=S.Scrollbar;exports.CollapseContainer=_.CollapseContainer;exports.ScrollContainer=_.ScrollContainer;exports.IconPicker=y.IconPicker;exports.zhCn=b.default;exports.en=$.default;exports.BasicArrow=i.BasicArrow;exports.BasicHelp=i.BasicHelp;exports.BasicTitle=i.BasicTitle;exports.CollapseTransition=F.default;exports.ExpandTransition=e.ExpandTransition;exports.ExpandXTransition=e.ExpandXTransition;exports.FadeTransition=e.FadeTransition;exports.ScaleRotateTransition=e.ScaleRotateTransition;exports.ScaleTransition=e.ScaleTransition;exports.ScrollXReverseTransition=e.ScrollXReverseTransition;exports.ScrollXTransition=e.ScrollXTransition;exports.ScrollYReverseTransition=e.ScrollYReverseTransition;exports.ScrollYTransition=e.ScrollYTransition;exports.SlideXReverseTransition=e.SlideXReverseTransition;exports.SlideXTransition=e.SlideXTransition;exports.SlideYReverseTransition=e.SlideYReverseTransition;exports.SlideYTransition=e.SlideYTransition;exports.useDescription=I.useDescription;exports.Description=P.Description;exports.useForm=B.useForm;exports.isComponentFormSchema=c.isComponentFormSchema;exports.isSlotFormSchema=c.isSlotFormSchema;exports.Field=M.Field;exports.ApiCascader=R.default;exports.ApiRadioGroup=D.default;exports.ApiSelect=G.default;exports.ApiTransfer=h.default;exports.ApiTree=k.default;exports.RadioButtonGroup=w.default;exports.ProForm=X.default;exports.ApiTreeSelect=N.default;exports.ModalButton=Y.default;exports.PopConfirmButton=K.default;exports.BaseButton=E.BaseButton;exports.StrengthMeter=L.StrengthMeter;exports.useModalContext=H.useModalContext;exports.useModal=p.useModal;exports.useModalInner=p.useModalInner;exports.BaseModal=O.BaseModal;exports.CropperAvatar=d.CropperAvatar;exports.CropperImage=d.CropperImage;exports.CountdownButton=v.CountdownButton;exports.CountdownInput=v.CountdownInput;exports.createPrompt=V.createPrompt;exports.Dropdown=j.Dropdown;exports.ProTable=z.default;exports.TableAction=J.default;exports.EditTableHeaderIcon=Q.default;exports.TableImg=U.default;exports.useTable=W.useTable;exports.ApForm=o.ApForm;exports.ApFormItem=o.ApFormItem;exports.ApFormItemGroup=o.ApFormItemGroup;exports.ApFieldText=Z.default;exports.ApFieldCheckbox=ee.default;exports.ApFieldDate=te.default;exports.ApFieldNumber=re.default;exports.ApFieldRadio=ne.default;exports.ApFieldSwitch=ie.default;exports.ApFieldTextArea=oe.default;exports.ApFieldDateRange=ue.default;exports.ApFieldSelect=se.default;exports.adminToken=f.adminToken;exports.aplusToken=f.aplusToken;exports.ApActionItem=ae.ApActionItem;exports.ApActionItemModal=le.default;exports.ApActionItemPopconfirm=_e.default;exports.ApActionItemDropdown=ce.default;exports.ApActionGroup=pe.default;exports.default=de;
|
|
File without changes
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { ApActionGroupProps, GroupActionTypes } from '../interface';
|
|
2
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
|
|
3
|
+
import { Trigger } from 'ant-design-vue/es/dropdown/props';
|
|
4
|
+
|
|
5
|
+
declare const _default: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ApActionGroupProps>, {
|
|
6
|
+
count: number;
|
|
7
|
+
trigger: () => string[];
|
|
8
|
+
placement: string;
|
|
9
|
+
actions: () => never[];
|
|
10
|
+
}>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ApActionGroupProps>, {
|
|
11
|
+
count: number;
|
|
12
|
+
trigger: () => string[];
|
|
13
|
+
placement: string;
|
|
14
|
+
actions: () => never[];
|
|
15
|
+
}>>>, {
|
|
16
|
+
trigger: Trigger | Trigger[];
|
|
17
|
+
placement: "top" | "bottom" | "bottomLeft" | "bottomRight" | "topLeft" | "topRight" | "topCenter" | "bottomCenter";
|
|
18
|
+
actions: GroupActionTypes[];
|
|
19
|
+
count: number;
|
|
20
|
+
}, {}>;
|
|
21
|
+
export default _default;
|
|
22
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
23
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
24
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
25
|
+
type: PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
26
|
+
} : {
|
|
27
|
+
type: PropType<T[K]>;
|
|
28
|
+
required: true;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
type __VLS_WithDefaults<P, D> = {
|
|
32
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
33
|
+
default: D[K];
|
|
34
|
+
}> : P[K];
|
|
35
|
+
};
|
|
36
|
+
type __VLS_Prettify<T> = {
|
|
37
|
+
[K in keyof T]: T[K];
|
|
38
|
+
} & {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),a=require("ant-design-vue"),i=require("@ant-design/icons-vue"),p=require("../item/index.vue.js"),_=require("../item-modal/index.vue.js"),d=require("../item-popconfirm/index.vue.js"),c=require("../item-dropdown/index.vue.js"),f=e.defineComponent({name:"ApActionGroup",__name:"index",props:{count:{default:3},trigger:{default:()=>["hover"]},placement:{default:"bottomRight"},actions:{default:()=>[]}},setup(u){const t=u,l=e.computed(()=>t.actions.length>t.count),r=e.computed(()=>t.actions.length<=t.count?{showActions:t.actions,menuActions:[]}:{showActions:t.actions.slice(0,t.count-1),menuActions:t.actions.slice(t.count-1)});return(n,g)=>(e.openBlock(),e.createBlock(e.unref(a.Space),{size:16,align:"center"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.value.showActions,(o,s)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:s},[o.actions?(e.openBlock(),e.createBlock(c.default,e.mergeProps({key:0,ref_for:!0},o),null,16)):o.modalProps?(e.openBlock(),e.createBlock(_.default,e.mergeProps({key:1,ref_for:!0},o),null,16)):o.popconfirmProps?(e.openBlock(),e.createBlock(d.default,e.mergeProps({key:2,ref_for:!0},o),null,16)):(e.openBlock(),e.createBlock(p.default,e.mergeProps({key:3,ref_for:!0},o),null,16))],64))),128)),l.value?(e.openBlock(),e.createBlock(c.default,{key:0,actions:r.value.menuActions,"show-icon":!1,placement:n.placement,trigger:n.trigger},{default:e.withCtx(()=>[e.createVNode(e.unref(i.MoreOutlined),{rotate:90})]),_:1},8,["actions","placement","trigger"])):e.createCommentVNode("",!0)]),_:1}))}});exports.default=f;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./index.vue.js");exports.default=e.default;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { default as _ApActionItem } from './item/index.vue';
|
|
2
|
+
import { default as ApActionItemDropdown } from './item-dropdown/index.vue';
|
|
3
|
+
import { default as ApActionItemModal } from './item-modal/index.vue';
|
|
4
|
+
import { default as ApActionItemPopconfirm } from './item-popconfirm/index.vue';
|
|
5
|
+
import { default as ApActionGroup } from './group/index.vue';
|
|
6
|
+
|
|
7
|
+
type ApActionItemTypes = typeof _ApActionItem & {
|
|
8
|
+
Dropdown: typeof ApActionItemDropdown;
|
|
9
|
+
Modal: typeof ApActionItemModal;
|
|
10
|
+
Popconfirm: typeof ApActionItemPopconfirm;
|
|
11
|
+
};
|
|
12
|
+
declare const ApActionItem: ApActionItemTypes;
|
|
13
|
+
export * from './interface';
|
|
14
|
+
export { ApActionItem, ApActionItemModal, ApActionItemPopconfirm, ApActionItemDropdown, ApActionGroup };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const _=require("./item/index.vue.js"),t=require("./item-dropdown/index.vue.js"),u=require("./item-modal/index.vue.js"),r=require("./item-popconfirm/index.vue.js");require("vue");require("ant-design-vue");require("@ant-design/icons-vue");const e=_.default;e.Dropdown=t.default;e.Modal=u.default;e.Popconfirm=r.default;exports.ApActionItemDropdown=t.default;exports.ApActionItemModal=u.default;exports.ApActionItemPopconfirm=r.default;exports.ApActionItem=e;
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import { DropdownProps, ModalFuncProps, PopconfirmProps } from 'ant-design-vue';
|
|
2
|
+
|
|
3
|
+
export type ActionColor = 'primary' | 'success' | 'error' | 'warn';
|
|
4
|
+
export type ApActionItemProps = {
|
|
5
|
+
/**
|
|
6
|
+
* 文本
|
|
7
|
+
*/
|
|
8
|
+
text?: string;
|
|
9
|
+
/**
|
|
10
|
+
* 预定义文本颜色
|
|
11
|
+
*/
|
|
12
|
+
color?: ActionColor;
|
|
13
|
+
/**
|
|
14
|
+
* 是否禁用
|
|
15
|
+
*/
|
|
16
|
+
disabled?: boolean;
|
|
17
|
+
/**
|
|
18
|
+
* 是否可见
|
|
19
|
+
*/
|
|
20
|
+
visible?: boolean;
|
|
21
|
+
/**
|
|
22
|
+
* 点击时的动作,支持异步
|
|
23
|
+
* @param e
|
|
24
|
+
* @returns
|
|
25
|
+
*/
|
|
26
|
+
onAction?: (e: MouseEvent) => Promise<any>;
|
|
27
|
+
/**
|
|
28
|
+
* 基础点击事件
|
|
29
|
+
* @param e
|
|
30
|
+
* @returns
|
|
31
|
+
*/
|
|
32
|
+
onClick?: (e: MouseEvent) => void;
|
|
33
|
+
/**
|
|
34
|
+
* 是否显示loading效果
|
|
35
|
+
*/
|
|
36
|
+
loading?: boolean;
|
|
37
|
+
};
|
|
38
|
+
export type MixedActionTypes = ApActionItemProps | ApActionItemModalProps | ApActionItemPopconfirmProps;
|
|
39
|
+
export type GroupActionTypes = MixedActionTypes | ApActionItemDropdownProps;
|
|
40
|
+
export type ApActionItemDropdownProps = {
|
|
41
|
+
/**
|
|
42
|
+
* 触发下拉的行为
|
|
43
|
+
*/
|
|
44
|
+
trigger?: DropdownProps['trigger'];
|
|
45
|
+
/**
|
|
46
|
+
* 菜单弹出的位置
|
|
47
|
+
*/
|
|
48
|
+
placement?: DropdownProps['placement'];
|
|
49
|
+
/**
|
|
50
|
+
* 下拉菜单中的行为项配置
|
|
51
|
+
*/
|
|
52
|
+
actions?: MixedActionTypes[];
|
|
53
|
+
/**
|
|
54
|
+
* 是否显示向下的箭头
|
|
55
|
+
*/
|
|
56
|
+
showIcon?: boolean;
|
|
57
|
+
} & Omit<ApActionItemProps, 'onAction'>;
|
|
58
|
+
export type ApActionGroupProps = {
|
|
59
|
+
count?: number;
|
|
60
|
+
/**
|
|
61
|
+
* 触发下拉的行为
|
|
62
|
+
*/
|
|
63
|
+
trigger?: DropdownProps['trigger'];
|
|
64
|
+
/**
|
|
65
|
+
* 菜单弹出的位置
|
|
66
|
+
*/
|
|
67
|
+
placement?: DropdownProps['placement'];
|
|
68
|
+
/**
|
|
69
|
+
* 菜单项配置
|
|
70
|
+
*/
|
|
71
|
+
actions?: GroupActionTypes[];
|
|
72
|
+
};
|
|
73
|
+
export type ApActionItemModalProps = ApActionItemProps & {
|
|
74
|
+
/**
|
|
75
|
+
* 对话框的具体配置
|
|
76
|
+
*/
|
|
77
|
+
modalProps?: Omit<ModalFuncProps, 'type'>;
|
|
78
|
+
};
|
|
79
|
+
export type ApActionItemPopconfirmProps = ApActionItemProps & {
|
|
80
|
+
popconfirmProps?: PopconfirmProps;
|
|
81
|
+
};
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { ApActionItemProps, ActionColor } from '../interface';
|
|
2
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
|
|
3
|
+
|
|
4
|
+
declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ApActionItemProps>, {
|
|
5
|
+
color: string;
|
|
6
|
+
disabled: boolean;
|
|
7
|
+
visible: boolean;
|
|
8
|
+
loading: boolean;
|
|
9
|
+
}>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ApActionItemProps>, {
|
|
10
|
+
color: string;
|
|
11
|
+
disabled: boolean;
|
|
12
|
+
visible: boolean;
|
|
13
|
+
loading: boolean;
|
|
14
|
+
}>>>, {
|
|
15
|
+
color: ActionColor;
|
|
16
|
+
disabled: boolean;
|
|
17
|
+
visible: boolean;
|
|
18
|
+
loading: boolean;
|
|
19
|
+
}, {}>, {
|
|
20
|
+
default?(_: {}): any;
|
|
21
|
+
}>;
|
|
22
|
+
export default _default;
|
|
23
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
24
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
25
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
26
|
+
type: PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
27
|
+
} : {
|
|
28
|
+
type: PropType<T[K]>;
|
|
29
|
+
required: true;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
type __VLS_WithDefaults<P, D> = {
|
|
33
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
34
|
+
default: D[K];
|
|
35
|
+
}> : P[K];
|
|
36
|
+
};
|
|
37
|
+
type __VLS_Prettify<T> = {
|
|
38
|
+
[K in keyof T]: T[K];
|
|
39
|
+
} & {};
|
|
40
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
41
|
+
new (): {
|
|
42
|
+
$slots: S;
|
|
43
|
+
};
|
|
44
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../config-provider/index.js");const d=require("ant-design-vue/es/button/LoadingIcon");require("../style/item.css");const f=require("../../config-provider/hooks/use-namespace.js"),m=e.defineComponent({name:"ApActionItem",__name:"index",props:{text:{},color:{default:"primary"},disabled:{type:Boolean,default:!1},visible:{type:Boolean,default:!0},onAction:{},onClick:{},loading:{type:Boolean,default:!1}},setup(r){const n=r,{b:u,m:t}=f.useNamespace("action-item"),l=e.ref(!1);function c(o){var i;e.unref(a)||((i=n.onClick)==null||i.call(n,o),n.onAction&&(l.value=!0,n.onAction(o).finally(()=>l.value=!1)))}const a=e.computed(()=>n.loading||e.unref(l)),s=e.computed(()=>[u(),t(n.color),n.disabled?t("disabled"):null,a.value?t("loading"):null].filter(Boolean));return(o,i)=>o.visible?(e.openBlock(),e.createElementBlock("span",{key:0,onClick:c,class:e.normalizeClass(s.value)},[a.value?(e.openBlock(),e.createBlock(e.unref(d),{key:0,prefixCls:"btn",existIcon:!1,loading:""})):e.createCommentVNode("",!0),e.renderSlot(o.$slots,"default",{},()=>[e.createTextVNode(e.toDisplayString(o.text||""),1)])],2)):e.createCommentVNode("",!0)}});exports.default=m;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./index.vue.js");exports.default=e.default;
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { ApActionItemDropdownProps, ActionColor, MixedActionTypes } from '../interface';
|
|
2
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
|
|
3
|
+
import { Trigger } from 'ant-design-vue/es/dropdown/props';
|
|
4
|
+
|
|
5
|
+
declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ApActionItemDropdownProps>, {
|
|
6
|
+
color: string;
|
|
7
|
+
disabled: boolean;
|
|
8
|
+
visible: boolean;
|
|
9
|
+
loading: boolean;
|
|
10
|
+
trigger: () => string[];
|
|
11
|
+
placement: string;
|
|
12
|
+
actions: () => never[];
|
|
13
|
+
showIcon: boolean;
|
|
14
|
+
}>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ApActionItemDropdownProps>, {
|
|
15
|
+
color: string;
|
|
16
|
+
disabled: boolean;
|
|
17
|
+
visible: boolean;
|
|
18
|
+
loading: boolean;
|
|
19
|
+
trigger: () => string[];
|
|
20
|
+
placement: string;
|
|
21
|
+
actions: () => never[];
|
|
22
|
+
showIcon: boolean;
|
|
23
|
+
}>>>, {
|
|
24
|
+
color: ActionColor;
|
|
25
|
+
disabled: boolean;
|
|
26
|
+
visible: boolean;
|
|
27
|
+
loading: boolean;
|
|
28
|
+
trigger: Trigger | Trigger[];
|
|
29
|
+
placement: "top" | "bottom" | "bottomLeft" | "bottomRight" | "topLeft" | "topRight" | "topCenter" | "bottomCenter";
|
|
30
|
+
showIcon: boolean;
|
|
31
|
+
actions: MixedActionTypes[];
|
|
32
|
+
}, {}>, {
|
|
33
|
+
default?(_: {}): any;
|
|
34
|
+
}>;
|
|
35
|
+
export default _default;
|
|
36
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
37
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
38
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
39
|
+
type: PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
40
|
+
} : {
|
|
41
|
+
type: PropType<T[K]>;
|
|
42
|
+
required: true;
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
type __VLS_WithDefaults<P, D> = {
|
|
46
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
47
|
+
default: D[K];
|
|
48
|
+
}> : P[K];
|
|
49
|
+
};
|
|
50
|
+
type __VLS_Prettify<T> = {
|
|
51
|
+
[K in keyof T]: T[K];
|
|
52
|
+
} & {};
|
|
53
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
54
|
+
new (): {
|
|
55
|
+
$slots: S;
|
|
56
|
+
};
|
|
57
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),u=require("ant-design-vue"),f=require("@ant-design/icons-vue"),s=require("../item/index.vue.js"),d=require("../item-modal/index.vue.js"),m=require("../item-popconfirm/index.vue.js");require("../../config-provider/index.js");const _=require("lodash-unified");require("../style/item-dropdown.css");const g=require("../../config-provider/hooks/use-namespace.js"),k=e.defineComponent({name:"ApActionItemDropDown",__name:"index",props:{trigger:{default:()=>["hover"]},placement:{default:"bottomLeft"},actions:{default:()=>[]},showIcon:{type:Boolean,default:!0},text:{},color:{default:"primary"},disabled:{type:Boolean,default:!1},visible:{type:Boolean,default:!0},onClick:{},loading:{type:Boolean,default:!1}},setup(c){const a=c,n=e.ref(!1),{e:l}=g.useNamespace("action-item-dropdown"),p=e.computed(()=>a.actions.map(r=>({...r,onAction:async o=>{var t;try{await((t=r.onAction)==null?void 0:t.call(r,o))}finally{n.value=!1}}})));return(r,o)=>(e.openBlock(),e.createBlock(e.unref(u.Dropdown),{open:n.value,"onUpdate:open":o[0]||(o[0]=t=>n.value=t),trigger:r.trigger,placement:r.placement},{overlay:e.withCtx(()=>[e.createVNode(e.unref(u.Menu),null,{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(p.value,(t,i)=>(e.openBlock(),e.createBlock(e.unref(u.MenuItem),{key:i,class:e.normalizeClass(e.unref(l)("item"))},{default:e.withCtx(()=>[t.modalProps?(e.openBlock(),e.createBlock(d.default,e.mergeProps({key:0,ref_for:!0},t),null,16)):t.popconfirmProps?(e.openBlock(),e.createBlock(m.default,e.mergeProps({key:1,ref_for:!0},t),null,16)):(e.openBlock(),e.createBlock(s.default,e.mergeProps({key:2,ref_for:!0},t),null,16))]),_:2},1032,["class"]))),128))]),_:1})]),default:e.withCtx(()=>[e.createElementVNode("span",{class:e.normalizeClass(e.unref(l)("wrapper"))},[e.createVNode(s.default,e.normalizeProps(e.guardReactiveProps(e.unref(_.omit)(a,["actions","trigger","placement"]))),{default:e.withCtx(()=>[e.renderSlot(r.$slots,"default")]),_:3},16),r.showIcon?(e.openBlock(),e.createBlock(e.unref(f.DownOutlined),{key:0,class:e.normalizeClass(e.unref(l)("icon")),style:{color:"#0070ff"}},null,8,["class"])):e.createCommentVNode("",!0)],2)]),_:3},8,["open","trigger","placement"]))}});exports.default=k;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./index.vue.js");exports.default=e.default;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { ApActionItemModalProps, ActionColor } from '../interface';
|
|
2
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
|
|
3
|
+
import { ModalFuncProps } from 'ant-design-vue';
|
|
4
|
+
|
|
5
|
+
declare const _default: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ApActionItemModalProps>, {
|
|
6
|
+
color: string;
|
|
7
|
+
disabled: boolean;
|
|
8
|
+
visible: boolean;
|
|
9
|
+
loading: boolean;
|
|
10
|
+
modalProps: () => {};
|
|
11
|
+
}>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ApActionItemModalProps>, {
|
|
12
|
+
color: string;
|
|
13
|
+
disabled: boolean;
|
|
14
|
+
visible: boolean;
|
|
15
|
+
loading: boolean;
|
|
16
|
+
modalProps: () => {};
|
|
17
|
+
}>>>, {
|
|
18
|
+
color: ActionColor;
|
|
19
|
+
disabled: boolean;
|
|
20
|
+
visible: boolean;
|
|
21
|
+
loading: boolean;
|
|
22
|
+
modalProps: Omit< ModalFuncProps, "type">;
|
|
23
|
+
}, {}>;
|
|
24
|
+
export default _default;
|
|
25
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
26
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
27
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
28
|
+
type: PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
29
|
+
} : {
|
|
30
|
+
type: PropType<T[K]>;
|
|
31
|
+
required: true;
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
type __VLS_WithDefaults<P, D> = {
|
|
35
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
36
|
+
default: D[K];
|
|
37
|
+
}> : P[K];
|
|
38
|
+
};
|
|
39
|
+
type __VLS_Prettify<T> = {
|
|
40
|
+
[K in keyof T]: T[K];
|
|
41
|
+
} & {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("vue"),u=require("ant-design-vue"),c=require("../item/index.vue.js"),s=require("lodash-unified"),d=o.defineComponent({name:"ApActionItemModal",__name:"index",props:{text:{},color:{default:"primary"},disabled:{type:Boolean,default:!1},visible:{type:Boolean,default:!0},onAction:{},onClick:{},loading:{type:Boolean,default:!1},modalProps:{default:()=>({})}},setup(i){const e=i;async function r(t){u.Modal.confirm({...e.modalProps,onOk:async()=>{var n,a,l;(a=(n=e.modalProps).onOk)==null||a.call(n),await((l=e.onAction)==null?void 0:l.call(e,t))}})}return(t,n)=>(o.openBlock(),o.createBlock(c.default,o.mergeProps(o.unref(s.omit)(e,["modalProps","onAction"]),{onAction:r}),null,16))}});exports.default=d;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./index.vue.js");exports.default=e.default;
|