@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
|
@@ -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,34 @@
|
|
|
1
|
+
import { defineComponent as i, openBlock as c, createBlock as m, mergeProps as d, unref as f } from "vue";
|
|
2
|
+
import { Modal as p } from "ant-design-vue";
|
|
3
|
+
import s from "../item/index.vue.mjs";
|
|
4
|
+
import { omit as u } from "lodash-unified";
|
|
5
|
+
const B = /* @__PURE__ */ i({
|
|
6
|
+
name: "ApActionItemModal",
|
|
7
|
+
__name: "index",
|
|
8
|
+
props: {
|
|
9
|
+
text: {},
|
|
10
|
+
color: { default: "primary" },
|
|
11
|
+
disabled: { type: Boolean, default: !1 },
|
|
12
|
+
visible: { type: Boolean, default: !0 },
|
|
13
|
+
onAction: {},
|
|
14
|
+
onClick: {},
|
|
15
|
+
loading: { type: Boolean, default: !1 },
|
|
16
|
+
modalProps: { default: () => ({}) }
|
|
17
|
+
},
|
|
18
|
+
setup(l) {
|
|
19
|
+
const o = l;
|
|
20
|
+
async function r(e) {
|
|
21
|
+
p.confirm({
|
|
22
|
+
...o.modalProps,
|
|
23
|
+
onOk: async () => {
|
|
24
|
+
var n, t, a;
|
|
25
|
+
(t = (n = o.modalProps).onOk) == null || t.call(n), await ((a = o.onAction) == null ? void 0 : a.call(o, e));
|
|
26
|
+
}
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
return (e, n) => (c(), m(s, d(f(u)(o, ["modalProps", "onAction"]), { onAction: r }), null, 16));
|
|
30
|
+
}
|
|
31
|
+
});
|
|
32
|
+
export {
|
|
33
|
+
B as default
|
|
34
|
+
};
|
|
@@ -0,0 +1,343 @@
|
|
|
1
|
+
import { ApActionItemPopconfirmProps, ActionColor } from '../interface';
|
|
2
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType, HTMLAttributes, CSSProperties } from 'vue';
|
|
3
|
+
import { LegacyButtonType, ButtonHTMLType } from 'ant-design-vue/es/button/buttonTypes';
|
|
4
|
+
import { ButtonType, ButtonShape, ButtonSize } from 'ant-design-vue/es/button';
|
|
5
|
+
import { VueTypeValidableDef } from '../../../node_modules/vue-types';
|
|
6
|
+
import { MouseEventHandler } from 'ant-design-vue/es/_util/EventInterface';
|
|
7
|
+
import { TriggerType } from 'ant-design-vue/es/tooltip/abstractTooltipProps';
|
|
8
|
+
import { TooltipPlacement, AdjustOverflow } from 'ant-design-vue/es/tooltip';
|
|
9
|
+
import { LiteralUnion } from 'ant-design-vue/es/_util/type';
|
|
10
|
+
import { PresetColorType } from 'ant-design-vue/es/_util/colors';
|
|
11
|
+
import { AlignType, BuildInPlacements } from 'ant-design-vue/es/vc-trigger/interface';
|
|
12
|
+
|
|
13
|
+
declare const _default: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ApActionItemPopconfirmProps>, {
|
|
14
|
+
color: string;
|
|
15
|
+
disabled: boolean;
|
|
16
|
+
visible: boolean;
|
|
17
|
+
loading: boolean;
|
|
18
|
+
popconfirmProps: () => {};
|
|
19
|
+
}>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ApActionItemPopconfirmProps>, {
|
|
20
|
+
color: string;
|
|
21
|
+
disabled: boolean;
|
|
22
|
+
visible: boolean;
|
|
23
|
+
loading: boolean;
|
|
24
|
+
popconfirmProps: () => {};
|
|
25
|
+
}>>>, {
|
|
26
|
+
color: ActionColor;
|
|
27
|
+
disabled: boolean;
|
|
28
|
+
visible: boolean;
|
|
29
|
+
loading: boolean;
|
|
30
|
+
popconfirmProps: Partial< ExtractPropTypes<{
|
|
31
|
+
prefixCls: StringConstructor;
|
|
32
|
+
content: {
|
|
33
|
+
default: any;
|
|
34
|
+
type: PropType<any>;
|
|
35
|
+
};
|
|
36
|
+
title: {
|
|
37
|
+
default: string | number;
|
|
38
|
+
type: PropType<string | number>;
|
|
39
|
+
};
|
|
40
|
+
description: {
|
|
41
|
+
default: string | number;
|
|
42
|
+
type: PropType<string | number>;
|
|
43
|
+
};
|
|
44
|
+
okType: {
|
|
45
|
+
type: PropType<LegacyButtonType>;
|
|
46
|
+
default: LegacyButtonType;
|
|
47
|
+
};
|
|
48
|
+
disabled: {
|
|
49
|
+
type: BooleanConstructor;
|
|
50
|
+
default: boolean;
|
|
51
|
+
};
|
|
52
|
+
okText: {
|
|
53
|
+
default: any;
|
|
54
|
+
type: PropType<any>;
|
|
55
|
+
};
|
|
56
|
+
cancelText: {
|
|
57
|
+
default: any;
|
|
58
|
+
type: PropType<any>;
|
|
59
|
+
};
|
|
60
|
+
icon: {
|
|
61
|
+
default: any;
|
|
62
|
+
type: PropType<any>;
|
|
63
|
+
};
|
|
64
|
+
okButtonProps: {
|
|
65
|
+
type: PropType<Partial< ExtractPropTypes<{
|
|
66
|
+
prefixCls: StringConstructor;
|
|
67
|
+
type: PropType<ButtonType>;
|
|
68
|
+
htmlType: {
|
|
69
|
+
type: PropType<ButtonHTMLType>;
|
|
70
|
+
default: string;
|
|
71
|
+
};
|
|
72
|
+
shape: {
|
|
73
|
+
type: PropType<ButtonShape>;
|
|
74
|
+
};
|
|
75
|
+
size: {
|
|
76
|
+
type: PropType<ButtonSize>;
|
|
77
|
+
};
|
|
78
|
+
loading: {
|
|
79
|
+
type: PropType<boolean | {
|
|
80
|
+
delay?: number | undefined;
|
|
81
|
+
}>;
|
|
82
|
+
default: () => boolean | {
|
|
83
|
+
delay?: number | undefined;
|
|
84
|
+
};
|
|
85
|
+
};
|
|
86
|
+
disabled: {
|
|
87
|
+
type: BooleanConstructor;
|
|
88
|
+
default: any;
|
|
89
|
+
};
|
|
90
|
+
ghost: {
|
|
91
|
+
type: BooleanConstructor;
|
|
92
|
+
default: any;
|
|
93
|
+
};
|
|
94
|
+
block: {
|
|
95
|
+
type: BooleanConstructor;
|
|
96
|
+
default: any;
|
|
97
|
+
};
|
|
98
|
+
danger: {
|
|
99
|
+
type: BooleanConstructor;
|
|
100
|
+
default: any;
|
|
101
|
+
};
|
|
102
|
+
icon: VueTypeValidableDef<any>;
|
|
103
|
+
href: StringConstructor;
|
|
104
|
+
target: StringConstructor;
|
|
105
|
+
title: StringConstructor;
|
|
106
|
+
onClick: {
|
|
107
|
+
type: PropType< MouseEventHandler | MouseEventHandler[]>;
|
|
108
|
+
};
|
|
109
|
+
onMousedown: {
|
|
110
|
+
type: PropType< MouseEventHandler | MouseEventHandler[]>;
|
|
111
|
+
};
|
|
112
|
+
}>> & HTMLAttributes>;
|
|
113
|
+
default: Partial< ExtractPropTypes<{
|
|
114
|
+
prefixCls: StringConstructor;
|
|
115
|
+
type: PropType<ButtonType>;
|
|
116
|
+
htmlType: {
|
|
117
|
+
type: PropType<ButtonHTMLType>;
|
|
118
|
+
default: string;
|
|
119
|
+
};
|
|
120
|
+
shape: {
|
|
121
|
+
type: PropType<ButtonShape>;
|
|
122
|
+
};
|
|
123
|
+
size: {
|
|
124
|
+
type: PropType<ButtonSize>;
|
|
125
|
+
};
|
|
126
|
+
loading: {
|
|
127
|
+
type: PropType<boolean | {
|
|
128
|
+
delay?: number | undefined;
|
|
129
|
+
}>;
|
|
130
|
+
default: () => boolean | {
|
|
131
|
+
delay?: number | undefined;
|
|
132
|
+
};
|
|
133
|
+
};
|
|
134
|
+
disabled: {
|
|
135
|
+
type: BooleanConstructor;
|
|
136
|
+
default: any;
|
|
137
|
+
};
|
|
138
|
+
ghost: {
|
|
139
|
+
type: BooleanConstructor;
|
|
140
|
+
default: any;
|
|
141
|
+
};
|
|
142
|
+
block: {
|
|
143
|
+
type: BooleanConstructor;
|
|
144
|
+
default: any;
|
|
145
|
+
};
|
|
146
|
+
danger: {
|
|
147
|
+
type: BooleanConstructor;
|
|
148
|
+
default: any;
|
|
149
|
+
};
|
|
150
|
+
icon: VueTypeValidableDef<any>;
|
|
151
|
+
href: StringConstructor;
|
|
152
|
+
target: StringConstructor;
|
|
153
|
+
title: StringConstructor;
|
|
154
|
+
onClick: {
|
|
155
|
+
type: PropType< MouseEventHandler | MouseEventHandler[]>;
|
|
156
|
+
};
|
|
157
|
+
onMousedown: {
|
|
158
|
+
type: PropType< MouseEventHandler | MouseEventHandler[]>;
|
|
159
|
+
};
|
|
160
|
+
}>> & HTMLAttributes;
|
|
161
|
+
};
|
|
162
|
+
cancelButtonProps: {
|
|
163
|
+
type: PropType<Partial< ExtractPropTypes<{
|
|
164
|
+
prefixCls: StringConstructor;
|
|
165
|
+
type: PropType<ButtonType>;
|
|
166
|
+
htmlType: {
|
|
167
|
+
type: PropType<ButtonHTMLType>;
|
|
168
|
+
default: string;
|
|
169
|
+
};
|
|
170
|
+
shape: {
|
|
171
|
+
type: PropType<ButtonShape>;
|
|
172
|
+
};
|
|
173
|
+
size: {
|
|
174
|
+
type: PropType<ButtonSize>;
|
|
175
|
+
};
|
|
176
|
+
loading: {
|
|
177
|
+
type: PropType<boolean | {
|
|
178
|
+
delay?: number | undefined;
|
|
179
|
+
}>;
|
|
180
|
+
default: () => boolean | {
|
|
181
|
+
delay?: number | undefined;
|
|
182
|
+
};
|
|
183
|
+
};
|
|
184
|
+
disabled: {
|
|
185
|
+
type: BooleanConstructor;
|
|
186
|
+
default: any;
|
|
187
|
+
};
|
|
188
|
+
ghost: {
|
|
189
|
+
type: BooleanConstructor;
|
|
190
|
+
default: any;
|
|
191
|
+
};
|
|
192
|
+
block: {
|
|
193
|
+
type: BooleanConstructor;
|
|
194
|
+
default: any;
|
|
195
|
+
};
|
|
196
|
+
danger: {
|
|
197
|
+
type: BooleanConstructor;
|
|
198
|
+
default: any;
|
|
199
|
+
};
|
|
200
|
+
icon: VueTypeValidableDef<any>;
|
|
201
|
+
href: StringConstructor;
|
|
202
|
+
target: StringConstructor;
|
|
203
|
+
title: StringConstructor;
|
|
204
|
+
onClick: {
|
|
205
|
+
type: PropType< MouseEventHandler | MouseEventHandler[]>;
|
|
206
|
+
};
|
|
207
|
+
onMousedown: {
|
|
208
|
+
type: PropType< MouseEventHandler | MouseEventHandler[]>;
|
|
209
|
+
};
|
|
210
|
+
}>> & HTMLAttributes>;
|
|
211
|
+
default: Partial< ExtractPropTypes<{
|
|
212
|
+
prefixCls: StringConstructor;
|
|
213
|
+
type: PropType<ButtonType>;
|
|
214
|
+
htmlType: {
|
|
215
|
+
type: PropType<ButtonHTMLType>;
|
|
216
|
+
default: string;
|
|
217
|
+
};
|
|
218
|
+
shape: {
|
|
219
|
+
type: PropType<ButtonShape>;
|
|
220
|
+
};
|
|
221
|
+
size: {
|
|
222
|
+
type: PropType<ButtonSize>;
|
|
223
|
+
};
|
|
224
|
+
loading: {
|
|
225
|
+
type: PropType<boolean | {
|
|
226
|
+
delay?: number | undefined;
|
|
227
|
+
}>;
|
|
228
|
+
default: () => boolean | {
|
|
229
|
+
delay?: number | undefined;
|
|
230
|
+
};
|
|
231
|
+
};
|
|
232
|
+
disabled: {
|
|
233
|
+
type: BooleanConstructor;
|
|
234
|
+
default: any;
|
|
235
|
+
};
|
|
236
|
+
ghost: {
|
|
237
|
+
type: BooleanConstructor;
|
|
238
|
+
default: any;
|
|
239
|
+
};
|
|
240
|
+
block: {
|
|
241
|
+
type: BooleanConstructor;
|
|
242
|
+
default: any;
|
|
243
|
+
};
|
|
244
|
+
danger: {
|
|
245
|
+
type: BooleanConstructor;
|
|
246
|
+
default: any;
|
|
247
|
+
};
|
|
248
|
+
icon: VueTypeValidableDef<any>;
|
|
249
|
+
href: StringConstructor;
|
|
250
|
+
target: StringConstructor;
|
|
251
|
+
title: StringConstructor;
|
|
252
|
+
onClick: {
|
|
253
|
+
type: PropType< MouseEventHandler | MouseEventHandler[]>;
|
|
254
|
+
};
|
|
255
|
+
onMousedown: {
|
|
256
|
+
type: PropType< MouseEventHandler | MouseEventHandler[]>;
|
|
257
|
+
};
|
|
258
|
+
}>> & HTMLAttributes;
|
|
259
|
+
};
|
|
260
|
+
showCancel: {
|
|
261
|
+
type: BooleanConstructor;
|
|
262
|
+
default: boolean;
|
|
263
|
+
};
|
|
264
|
+
onConfirm: PropType<(e: MouseEvent) => void>;
|
|
265
|
+
onCancel: PropType<(e: MouseEvent) => void>;
|
|
266
|
+
trigger: PropType< TriggerType | TriggerType[]>;
|
|
267
|
+
open: {
|
|
268
|
+
type: BooleanConstructor;
|
|
269
|
+
default: any;
|
|
270
|
+
};
|
|
271
|
+
visible: {
|
|
272
|
+
type: BooleanConstructor;
|
|
273
|
+
default: any;
|
|
274
|
+
};
|
|
275
|
+
placement: PropType<TooltipPlacement>;
|
|
276
|
+
color: PropType<LiteralUnion<PresetColorType>>;
|
|
277
|
+
transitionName: StringConstructor;
|
|
278
|
+
overlayStyle: {
|
|
279
|
+
type: PropType<CSSProperties>;
|
|
280
|
+
default: CSSProperties;
|
|
281
|
+
};
|
|
282
|
+
overlayInnerStyle: {
|
|
283
|
+
type: PropType<CSSProperties>;
|
|
284
|
+
default: CSSProperties;
|
|
285
|
+
};
|
|
286
|
+
overlayClassName: StringConstructor;
|
|
287
|
+
openClassName: StringConstructor;
|
|
288
|
+
mouseEnterDelay: NumberConstructor;
|
|
289
|
+
mouseLeaveDelay: NumberConstructor;
|
|
290
|
+
getPopupContainer: PropType<(triggerNode: HTMLElement) => HTMLElement>;
|
|
291
|
+
arrowPointAtCenter: {
|
|
292
|
+
type: BooleanConstructor;
|
|
293
|
+
default: any;
|
|
294
|
+
};
|
|
295
|
+
arrow: {
|
|
296
|
+
type: PropType<boolean | {
|
|
297
|
+
pointAtCenter?: boolean | undefined;
|
|
298
|
+
}>;
|
|
299
|
+
default: boolean | {
|
|
300
|
+
pointAtCenter?: boolean | undefined;
|
|
301
|
+
};
|
|
302
|
+
};
|
|
303
|
+
autoAdjustOverflow: {
|
|
304
|
+
type: PropType<boolean | AdjustOverflow>;
|
|
305
|
+
default: boolean | AdjustOverflow;
|
|
306
|
+
};
|
|
307
|
+
destroyTooltipOnHide: {
|
|
308
|
+
type: BooleanConstructor;
|
|
309
|
+
default: any;
|
|
310
|
+
};
|
|
311
|
+
align: {
|
|
312
|
+
type: PropType<AlignType>;
|
|
313
|
+
default: AlignType;
|
|
314
|
+
};
|
|
315
|
+
builtinPlacements: {
|
|
316
|
+
type: PropType<BuildInPlacements>;
|
|
317
|
+
default: BuildInPlacements;
|
|
318
|
+
};
|
|
319
|
+
children: ArrayConstructor;
|
|
320
|
+
onVisibleChange: PropType<(vis: boolean) => void>;
|
|
321
|
+
'onUpdate:visible': PropType<(vis: boolean) => void>;
|
|
322
|
+
onOpenChange: PropType<(vis: boolean) => void>;
|
|
323
|
+
'onUpdate:open': PropType<(vis: boolean) => void>;
|
|
324
|
+
}>>;
|
|
325
|
+
}, {}>;
|
|
326
|
+
export default _default;
|
|
327
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
328
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
329
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
330
|
+
type: PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
331
|
+
} : {
|
|
332
|
+
type: PropType<T[K]>;
|
|
333
|
+
required: true;
|
|
334
|
+
};
|
|
335
|
+
};
|
|
336
|
+
type __VLS_WithDefaults<P, D> = {
|
|
337
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
338
|
+
default: D[K];
|
|
339
|
+
}> : P[K];
|
|
340
|
+
};
|
|
341
|
+
type __VLS_Prettify<T> = {
|
|
342
|
+
[K in keyof T]: T[K];
|
|
343
|
+
} & {};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { defineComponent as f, openBlock as m, createBlock as c, unref as i, mergeProps as l, withCtx as s, createVNode as d, normalizeProps as u, guardReactiveProps as P } from "vue";
|
|
2
|
+
import { Popconfirm as _ } from "ant-design-vue";
|
|
3
|
+
import C from "../item/index.vue.mjs";
|
|
4
|
+
import { omit as x } from "lodash-unified";
|
|
5
|
+
const g = /* @__PURE__ */ f({
|
|
6
|
+
name: "ApActionItemPopconfirm",
|
|
7
|
+
__name: "index",
|
|
8
|
+
props: {
|
|
9
|
+
text: {},
|
|
10
|
+
color: { default: "primary" },
|
|
11
|
+
disabled: { type: Boolean, default: !1 },
|
|
12
|
+
visible: { type: Boolean, default: !0 },
|
|
13
|
+
onAction: {},
|
|
14
|
+
onClick: {},
|
|
15
|
+
loading: { type: Boolean, default: !1 },
|
|
16
|
+
popconfirmProps: { default: () => ({}) }
|
|
17
|
+
},
|
|
18
|
+
setup(p) {
|
|
19
|
+
const o = p;
|
|
20
|
+
async function a(e) {
|
|
21
|
+
var n, r, t;
|
|
22
|
+
(r = (n = o.popconfirmProps).onConfirm) == null || r.call(n, e), await ((t = o.onAction) == null ? void 0 : t.call(o, e));
|
|
23
|
+
}
|
|
24
|
+
return (e, n) => (m(), c(i(_), l(o.popconfirmProps, {
|
|
25
|
+
onConfirm: a,
|
|
26
|
+
disabled: !o.popconfirmProps
|
|
27
|
+
}), {
|
|
28
|
+
default: s(() => [
|
|
29
|
+
d(C, u(P(i(x)(o, ["popconfirmProps", "onAction"]))), null, 16)
|
|
30
|
+
]),
|
|
31
|
+
_: 1
|
|
32
|
+
}, 16, ["disabled"]));
|
|
33
|
+
}
|
|
34
|
+
});
|
|
35
|
+
export {
|
|
36
|
+
g as default
|
|
37
|
+
};
|
|
@@ -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
|
+
}
|
|
@@ -30,7 +30,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
30
30
|
}, {
|
|
31
31
|
mode: FieldMode;
|
|
32
32
|
format: string;
|
|
33
|
-
fieldProps: Omit< DatePickerProps, "
|
|
33
|
+
fieldProps: Omit< DatePickerProps, "mode" | "onOk" | "onChange" | "value" | "defaultValue" | "format">;
|
|
34
34
|
}, {}>, Readonly<ApFieldDataSlots> & ApFieldDataSlots>;
|
|
35
35
|
export default _default;
|
|
36
36
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
@@ -32,7 +32,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
32
32
|
mode: FieldMode;
|
|
33
33
|
format: string;
|
|
34
34
|
emptyText: string;
|
|
35
|
-
fieldProps: Omit< RangePickerProps, "
|
|
35
|
+
fieldProps: Omit< RangePickerProps, "onOk" | "onChange" | "value" | "defaultValue" | "renderExtraFooter" | "onPanelChange">;
|
|
36
36
|
}, {}>, Readonly<ApFieldDateRangeSlots> & ApFieldDateRangeSlots>;
|
|
37
37
|
export default _default;
|
|
38
38
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { InputProps, CheckboxGroupProps, DatePickerProps, InputNumberProps, RadioGroupProps, SwitchProps, TextAreaProps, SelectProps } from 'ant-design-vue';
|
|
1
|
+
import { InputProps, CheckboxGroupProps, DatePickerProps, InputNumberProps, RadioGroupProps, SwitchProps, TextAreaProps, SelectProps, PopconfirmProps } from 'ant-design-vue';
|
|
2
2
|
import { InputFocusOptions } from 'ant-design-vue/es/vc-input/utils/commonUtils';
|
|
3
3
|
import { ApFormatPresetType } from './date/interface';
|
|
4
4
|
import { RangeValue } from 'ant-design-vue/es/vc-picker/interface';
|
|
@@ -59,7 +59,8 @@ export type ApiFieldRadioExpose = {
|
|
|
59
59
|
};
|
|
60
60
|
export type ApFieldSwitchProps = BasicApFieldProps<Omit<SwitchProps, 'onClick'>> & {
|
|
61
61
|
emptyText?: string;
|
|
62
|
-
onAction?: (checked: string | boolean | number, e
|
|
62
|
+
onAction?: (checked: string | boolean | number, e?: Event) => boolean | Promise<boolean>;
|
|
63
|
+
confirm?: Pick<PopconfirmProps, 'title' | 'okText' | 'cancelText' | 'description' | 'showCancel' | 'icon' | 'okType' | 'onCancel'>;
|
|
63
64
|
};
|
|
64
65
|
export type ApFieldTextAreaProps = BasicApFieldProps<TextAreaProps> & {
|
|
65
66
|
emptyText?: string;
|
|
@@ -38,12 +38,12 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
38
38
|
}>>> & {
|
|
39
39
|
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
40
40
|
}, {
|
|
41
|
+
keyboard: boolean;
|
|
41
42
|
bordered: boolean;
|
|
42
43
|
min: ValueType;
|
|
43
44
|
max: ValueType;
|
|
44
45
|
step: ValueType;
|
|
45
46
|
controls: boolean;
|
|
46
|
-
keyboard: boolean;
|
|
47
47
|
emptyText: string;
|
|
48
48
|
thousands: boolean;
|
|
49
49
|
}, {}>, Readonly<ApFieldNumberSlots> & ApFieldNumberSlots>;
|
|
@@ -208,7 +208,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
208
208
|
type: BooleanConstructor;
|
|
209
209
|
default: any;
|
|
210
210
|
};
|
|
211
|
-
}>>, "
|
|
211
|
+
}>>, "mode" | "value" | "onUpdate:value" | "onSearch">;
|
|
212
212
|
}, {}>, Readonly<ApFieldSelectSlots> & ApFieldSelectSlots>;
|
|
213
213
|
export default _default;
|
|
214
214
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
@@ -23,8 +23,8 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
23
23
|
}>>> & {
|
|
24
24
|
"onUpdate:checked"?: ((...args: any[]) => any) | undefined;
|
|
25
25
|
}, {
|
|
26
|
-
size: "small" | "default";
|
|
27
26
|
loading: boolean;
|
|
27
|
+
size: "default" | "small";
|
|
28
28
|
checkedValue: string | number | boolean;
|
|
29
29
|
unCheckedValue: string | number | boolean;
|
|
30
30
|
emptyText: string;
|