@aplus-frontend/ui 0.0.1-beta.26 → 0.0.1-beta.27
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-action/style/item.css +2 -1
- package/es/src/ap-form/interface.d.ts +1 -0
- package/es/src/ap-form/modal-form/index.vue.d.ts +11 -2
- package/es/src/ap-form/modal-form/index.vue.mjs +119 -76
- package/es/src/base-button/index.d.ts +1 -1
- package/es/src/basic/index.d.ts +1 -1
- package/es/src/button/index.d.ts +1 -1
- package/es/src/config-provider/index.d.ts +1 -1
- package/es/src/container/index.d.ts +1 -1
- package/es/src/count-down/index.d.ts +1 -1
- package/es/src/cropper/index.d.ts +369 -0
- package/es/src/description/index.d.ts +1 -1
- package/es/src/dropdown/index.d.ts +1 -1
- package/es/src/icon/index.d.ts +1 -1
- package/es/src/icon-picker/index.d.ts +1 -1
- package/es/src/modal/index.d.ts +963 -0
- package/es/src/scroll-bar/index.d.ts +1 -2
- package/es/src/strength-meter/index.d.ts +1 -1
- package/es/src/theme/antd-global-overwrite/admin/button.css +12 -6
- package/es/src/theme/antd-global-overwrite/admin/index.css +25 -6
- package/es/src/theme/antd-global-overwrite/admin/modal.css +13 -0
- package/es/src/theme/antd-global-overwrite/aplus/button.css +12 -6
- package/es/src/theme/antd-global-overwrite/aplus/index.css +25 -6
- package/es/src/theme/antd-global-overwrite/aplus/modal.css +13 -0
- package/es/src/theme/ap-action/item.css +2 -1
- package/es/src/transition/index.d.ts +1 -1
- package/es/src/utils/config-provider-preset.mjs +11 -11
- package/lib/src/ap-action/style/item.css +2 -1
- package/lib/src/ap-form/interface.d.ts +1 -0
- package/lib/src/ap-form/modal-form/index.vue.d.ts +11 -2
- package/lib/src/ap-form/modal-form/index.vue.js +1 -1
- package/lib/src/base-button/index.d.ts +1 -1
- package/lib/src/basic/index.d.ts +1 -1
- package/lib/src/button/index.d.ts +1 -1
- package/lib/src/config-provider/index.d.ts +1 -1
- package/lib/src/container/index.d.ts +1 -1
- package/lib/src/count-down/index.d.ts +1 -1
- package/lib/src/cropper/index.d.ts +369 -0
- package/lib/src/description/index.d.ts +1 -1
- package/lib/src/dropdown/index.d.ts +1 -1
- package/lib/src/icon/index.d.ts +1 -1
- package/lib/src/icon-picker/index.d.ts +1 -1
- package/lib/src/modal/index.d.ts +963 -0
- package/lib/src/scroll-bar/index.d.ts +1 -2
- package/lib/src/strength-meter/index.d.ts +1 -1
- package/lib/src/theme/antd-global-overwrite/admin/button.css +12 -6
- package/lib/src/theme/antd-global-overwrite/admin/index.css +25 -6
- package/lib/src/theme/antd-global-overwrite/admin/modal.css +13 -0
- package/lib/src/theme/antd-global-overwrite/aplus/button.css +12 -6
- package/lib/src/theme/antd-global-overwrite/aplus/index.css +25 -6
- package/lib/src/theme/antd-global-overwrite/aplus/modal.css +13 -0
- package/lib/src/theme/ap-action/item.css +2 -1
- package/lib/src/transition/index.d.ts +1 -1
- package/lib/src/utils/config-provider-preset.js +1 -1
- package/package.json +1 -1
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { CreateComponentPublicInstance, ExtractPropTypes, PropType, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ComponentOptionsBase, Plugin } from '
|
|
1
|
+
import { CreateComponentPublicInstance, ExtractPropTypes, PropType, Ref, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ComponentOptionsBase, Plugin } from 'vue';
|
|
2
2
|
import { StyleValue } from '../type';
|
|
3
|
-
import { Ref } from '@vue/reactivity';
|
|
4
3
|
export * from './interface';
|
|
5
4
|
export declare const Scrollbar: {
|
|
6
5
|
new (...args: any[]): CreateComponentPublicInstance<Readonly< ExtractPropTypes<{
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CreateComponentPublicInstance, ExtractPropTypes, PropType, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ComponentOptionsBase, Plugin } from '
|
|
1
|
+
import { CreateComponentPublicInstance, ExtractPropTypes, PropType, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ComponentOptionsBase, Plugin } from 'vue';
|
|
2
2
|
export * from './interface';
|
|
3
3
|
export declare const StrengthMeter: {
|
|
4
4
|
new (...args: any[]): CreateComponentPublicInstance<Readonly< ExtractPropTypes<{
|
|
@@ -2,18 +2,24 @@
|
|
|
2
2
|
min-width: 88px;
|
|
3
3
|
box-shadow: none;
|
|
4
4
|
}
|
|
5
|
-
.ant-btn-default[disabled],
|
|
6
|
-
.ant-btn-default[disabled]:hover {
|
|
7
|
-
color: #bfbfbf !important;
|
|
8
|
-
background: #fafafa !important;
|
|
9
|
-
border-color: #d9d9d9 !important;
|
|
10
|
-
}
|
|
11
5
|
.ant-btn-primary[disabled],
|
|
12
6
|
.ant-btn-primary[disabled]:hover {
|
|
13
7
|
color: #ffffff !important;
|
|
14
8
|
background: #d6f1e5 !important;
|
|
15
9
|
border-color: #d6f1e5 !important;
|
|
16
10
|
}
|
|
11
|
+
.ant-btn-dangerous[disabled],
|
|
12
|
+
.ant-btn-dangerous[disabled]:hover {
|
|
13
|
+
color: #ffffff !important;
|
|
14
|
+
background: #ffdbdc !important;
|
|
15
|
+
border-color: #ffdbdc !important;
|
|
16
|
+
}
|
|
17
|
+
.ant-btn-default[disabled],
|
|
18
|
+
.ant-btn-default[disabled]:hover {
|
|
19
|
+
color: #bfbfbf !important;
|
|
20
|
+
background: #fafafa !important;
|
|
21
|
+
border-color: #d9d9d9 !important;
|
|
22
|
+
}
|
|
17
23
|
.ant-btn-link[disabled],
|
|
18
24
|
.ant-btn-link[disabled]:hover,
|
|
19
25
|
.ant-btn-text[disabled],
|
|
@@ -23,18 +23,24 @@
|
|
|
23
23
|
min-width: 88px;
|
|
24
24
|
box-shadow: none;
|
|
25
25
|
}
|
|
26
|
-
.ant-btn-default[disabled],
|
|
27
|
-
.ant-btn-default[disabled]:hover {
|
|
28
|
-
color: #bfbfbf !important;
|
|
29
|
-
background: #fafafa !important;
|
|
30
|
-
border-color: #d9d9d9 !important;
|
|
31
|
-
}
|
|
32
26
|
.ant-btn-primary[disabled],
|
|
33
27
|
.ant-btn-primary[disabled]:hover {
|
|
34
28
|
color: #ffffff !important;
|
|
35
29
|
background: #d6f1e5 !important;
|
|
36
30
|
border-color: #d6f1e5 !important;
|
|
37
31
|
}
|
|
32
|
+
.ant-btn-dangerous[disabled],
|
|
33
|
+
.ant-btn-dangerous[disabled]:hover {
|
|
34
|
+
color: #ffffff !important;
|
|
35
|
+
background: #ffdbdc !important;
|
|
36
|
+
border-color: #ffdbdc !important;
|
|
37
|
+
}
|
|
38
|
+
.ant-btn-default[disabled],
|
|
39
|
+
.ant-btn-default[disabled]:hover {
|
|
40
|
+
color: #bfbfbf !important;
|
|
41
|
+
background: #fafafa !important;
|
|
42
|
+
border-color: #d9d9d9 !important;
|
|
43
|
+
}
|
|
38
44
|
.ant-btn-link[disabled],
|
|
39
45
|
.ant-btn-link[disabled]:hover,
|
|
40
46
|
.ant-btn-text[disabled],
|
|
@@ -215,6 +221,19 @@
|
|
|
215
221
|
.ant-modal-root .ant-modal-confirm .ant-modal-body .ant-modal-confirm-btns button {
|
|
216
222
|
min-width: 88px;
|
|
217
223
|
}
|
|
224
|
+
.ant-modal-confirm-success .ant-modal-confirm-body > .anticon {
|
|
225
|
+
color: #06c687;
|
|
226
|
+
}
|
|
227
|
+
.ant-modal-confirm-info .ant-modal-confirm-body > .anticon {
|
|
228
|
+
color: #1890ff;
|
|
229
|
+
}
|
|
230
|
+
.ant-modal-confirm-warning .ant-modal-confirm-body > .anticon,
|
|
231
|
+
.ant-modal-confirm-confirm .ant-modal-confirm-body > .anticon {
|
|
232
|
+
color: #faad14;
|
|
233
|
+
}
|
|
234
|
+
.ant-modal-confirm-error .ant-modal-confirm-body > .anticon {
|
|
235
|
+
color: #ff4d4f;
|
|
236
|
+
}
|
|
218
237
|
.ant-table-wrapper .ant-spin-container .ant-pagination.ant-table-pagination.ant-table-pagination-right {
|
|
219
238
|
margin: 16px 0 0;
|
|
220
239
|
}
|
|
@@ -105,3 +105,16 @@
|
|
|
105
105
|
.ant-modal-root .ant-modal-confirm .ant-modal-body .ant-modal-confirm-btns button {
|
|
106
106
|
min-width: 88px;
|
|
107
107
|
}
|
|
108
|
+
.ant-modal-confirm-success .ant-modal-confirm-body > .anticon {
|
|
109
|
+
color: #06c687;
|
|
110
|
+
}
|
|
111
|
+
.ant-modal-confirm-info .ant-modal-confirm-body > .anticon {
|
|
112
|
+
color: #1890ff;
|
|
113
|
+
}
|
|
114
|
+
.ant-modal-confirm-warning .ant-modal-confirm-body > .anticon,
|
|
115
|
+
.ant-modal-confirm-confirm .ant-modal-confirm-body > .anticon {
|
|
116
|
+
color: #faad14;
|
|
117
|
+
}
|
|
118
|
+
.ant-modal-confirm-error .ant-modal-confirm-body > .anticon {
|
|
119
|
+
color: #ff4d4f;
|
|
120
|
+
}
|
|
@@ -2,18 +2,24 @@
|
|
|
2
2
|
min-width: 88px;
|
|
3
3
|
box-shadow: none;
|
|
4
4
|
}
|
|
5
|
-
.ant-btn-default[disabled],
|
|
6
|
-
.ant-btn-default[disabled]:hover {
|
|
7
|
-
color: #abb7cc !important;
|
|
8
|
-
background: #f9f9fa !important;
|
|
9
|
-
border-color: #dee4ed !important;
|
|
10
|
-
}
|
|
11
5
|
.ant-btn-primary[disabled],
|
|
12
6
|
.ant-btn-primary[disabled]:hover {
|
|
13
7
|
color: #ffffff !important;
|
|
14
8
|
background: #cce2ff !important;
|
|
15
9
|
border-color: #cce2ff !important;
|
|
16
10
|
}
|
|
11
|
+
.ant-btn-dangerous[disabled],
|
|
12
|
+
.ant-btn-dangerous[disabled]:hover {
|
|
13
|
+
color: #ffffff !important;
|
|
14
|
+
background: #ffdbdc !important;
|
|
15
|
+
border-color: #ffdbdc !important;
|
|
16
|
+
}
|
|
17
|
+
.ant-btn-default[disabled],
|
|
18
|
+
.ant-btn-default[disabled]:hover {
|
|
19
|
+
color: #abb7cc !important;
|
|
20
|
+
background: #f9f9fa !important;
|
|
21
|
+
border-color: #dee4ed !important;
|
|
22
|
+
}
|
|
17
23
|
.ant-btn-link[disabled],
|
|
18
24
|
.ant-btn-link[disabled]:hover,
|
|
19
25
|
.ant-btn-text[disabled],
|
|
@@ -23,18 +23,24 @@
|
|
|
23
23
|
min-width: 88px;
|
|
24
24
|
box-shadow: none;
|
|
25
25
|
}
|
|
26
|
-
.ant-btn-default[disabled],
|
|
27
|
-
.ant-btn-default[disabled]:hover {
|
|
28
|
-
color: #abb7cc !important;
|
|
29
|
-
background: #f9f9fa !important;
|
|
30
|
-
border-color: #dee4ed !important;
|
|
31
|
-
}
|
|
32
26
|
.ant-btn-primary[disabled],
|
|
33
27
|
.ant-btn-primary[disabled]:hover {
|
|
34
28
|
color: #ffffff !important;
|
|
35
29
|
background: #cce2ff !important;
|
|
36
30
|
border-color: #cce2ff !important;
|
|
37
31
|
}
|
|
32
|
+
.ant-btn-dangerous[disabled],
|
|
33
|
+
.ant-btn-dangerous[disabled]:hover {
|
|
34
|
+
color: #ffffff !important;
|
|
35
|
+
background: #ffdbdc !important;
|
|
36
|
+
border-color: #ffdbdc !important;
|
|
37
|
+
}
|
|
38
|
+
.ant-btn-default[disabled],
|
|
39
|
+
.ant-btn-default[disabled]:hover {
|
|
40
|
+
color: #abb7cc !important;
|
|
41
|
+
background: #f9f9fa !important;
|
|
42
|
+
border-color: #dee4ed !important;
|
|
43
|
+
}
|
|
38
44
|
.ant-btn-link[disabled],
|
|
39
45
|
.ant-btn-link[disabled]:hover,
|
|
40
46
|
.ant-btn-text[disabled],
|
|
@@ -209,6 +215,19 @@
|
|
|
209
215
|
.ant-modal-root .ant-modal-confirm .ant-modal-body .ant-modal-confirm-btns button {
|
|
210
216
|
min-width: 88px;
|
|
211
217
|
}
|
|
218
|
+
.ant-modal-confirm-success .ant-modal-confirm-body > .anticon {
|
|
219
|
+
color: #06c687;
|
|
220
|
+
}
|
|
221
|
+
.ant-modal-confirm-info .ant-modal-confirm-body > .anticon {
|
|
222
|
+
color: #0070ff;
|
|
223
|
+
}
|
|
224
|
+
.ant-modal-confirm-warning .ant-modal-confirm-body > .anticon,
|
|
225
|
+
.ant-modal-confirm-confirm .ant-modal-confirm-body > .anticon {
|
|
226
|
+
color: #ffa940;
|
|
227
|
+
}
|
|
228
|
+
.ant-modal-confirm-error .ant-modal-confirm-body > .anticon {
|
|
229
|
+
color: #ff4d4f;
|
|
230
|
+
}
|
|
212
231
|
.ant-table-wrapper .ant-spin-container .ant-pagination.ant-table-pagination.ant-table-pagination-right {
|
|
213
232
|
margin: 10px 0 0;
|
|
214
233
|
}
|
|
@@ -99,3 +99,16 @@
|
|
|
99
99
|
.ant-modal-root .ant-modal-confirm .ant-modal-body .ant-modal-confirm-btns button {
|
|
100
100
|
min-width: 88px;
|
|
101
101
|
}
|
|
102
|
+
.ant-modal-confirm-success .ant-modal-confirm-body > .anticon {
|
|
103
|
+
color: #06c687;
|
|
104
|
+
}
|
|
105
|
+
.ant-modal-confirm-info .ant-modal-confirm-body > .anticon {
|
|
106
|
+
color: #0070ff;
|
|
107
|
+
}
|
|
108
|
+
.ant-modal-confirm-warning .ant-modal-confirm-body > .anticon,
|
|
109
|
+
.ant-modal-confirm-confirm .ant-modal-confirm-body > .anticon {
|
|
110
|
+
color: #ffa940;
|
|
111
|
+
}
|
|
112
|
+
.ant-modal-confirm-error .ant-modal-confirm-body > .anticon {
|
|
113
|
+
color: #ff4d4f;
|
|
114
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DefineComponent, PropType, ComponentOptionsMixin, PublicProps, ExtractPropTypes } from '
|
|
1
|
+
import { DefineComponent, PropType, ComponentOptionsMixin, PublicProps, ExtractPropTypes } from 'vue';
|
|
2
2
|
export { default as CollapseTransition } from './collapse-transition.vue';
|
|
3
3
|
export declare const FadeTransition: DefineComponent<{
|
|
4
4
|
group: {
|
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
import { isUndefined as a } from "lodash-unified";
|
|
2
|
-
function s(
|
|
2
|
+
function s(e, n) {
|
|
3
3
|
var t, r;
|
|
4
|
-
return
|
|
4
|
+
return e != null && e.parentElement ? e.parentElement.classList.contains(n) ? (t = e.parentElement) != null && t.parentElement ? (r = e.parentElement.parentElement.className) == null ? void 0 : r.includes("basic-table") : !1 : s(e.parentElement, n) : !1;
|
|
5
5
|
}
|
|
6
|
-
const u = (
|
|
7
|
-
const
|
|
8
|
-
return Array.isArray(
|
|
6
|
+
const u = (e) => s(e, "ant-form") && (e == null ? void 0 : e.parentNode) || (document == null ? void 0 : document.body), f = ({ text: e }) => {
|
|
7
|
+
const n = (t) => t == null || t === "";
|
|
8
|
+
return Array.isArray(e) ? n(e[0]) ? "--" : e[0] : n(e) ? "--" : e;
|
|
9
9
|
}, m = !1, o = {
|
|
10
10
|
getPopupContainer: u,
|
|
11
11
|
transformCellText: f,
|
|
12
12
|
autoInsertSpaceInButton: m
|
|
13
13
|
};
|
|
14
|
-
function
|
|
15
|
-
const
|
|
16
|
-
...
|
|
14
|
+
function p(e) {
|
|
15
|
+
const n = {
|
|
16
|
+
...e
|
|
17
17
|
}, t = Object.keys(
|
|
18
18
|
o
|
|
19
19
|
);
|
|
20
20
|
for (const r of t)
|
|
21
|
-
a(
|
|
22
|
-
return
|
|
21
|
+
a(n[r]) && (n[r] = o[r]);
|
|
22
|
+
return n;
|
|
23
23
|
}
|
|
24
24
|
export {
|
|
25
25
|
o as antdConfigProviderPresets,
|
|
26
26
|
m as autoInsertSpaceInButton,
|
|
27
27
|
u as getPopupContainer,
|
|
28
|
-
|
|
28
|
+
p as mergeAntdProvideConfig,
|
|
29
29
|
f as transformCellText
|
|
30
30
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ApFormModalFormProps, ApFormSubmitterConfig } from '../interface';
|
|
2
2
|
import { VNode, DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType, CSSProperties } from 'vue';
|
|
3
|
-
import { FormLabelAlign } from 'ant-design-vue/es/form/interface';
|
|
3
|
+
import { NamePath, ValidateOptions, FormLabelAlign } from 'ant-design-vue/es/form/interface';
|
|
4
4
|
import { VueTypeValidableDef } from '../../../node_modules/vue-types';
|
|
5
5
|
import { LegacyButtonType, ButtonHTMLType } from 'ant-design-vue/es/button/buttonTypes';
|
|
6
6
|
import { ButtonType, ButtonShape, ButtonSize } from 'ant-design-vue/es/button';
|
|
@@ -27,7 +27,16 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
27
27
|
};
|
|
28
28
|
open: undefined;
|
|
29
29
|
showCancel: boolean;
|
|
30
|
-
}>, {
|
|
30
|
+
}>, {
|
|
31
|
+
resetFields: (name?: NamePath | undefined) => void;
|
|
32
|
+
clearValidate: (name?: NamePath | undefined) => void;
|
|
33
|
+
validateFields: (nameList?: string | NamePath[] | undefined, options?: ValidateOptions | undefined) => Promise<Partial<any>> | undefined;
|
|
34
|
+
getFieldsValue: (nameList?: true | (string | number)[] | undefined) => Partial<any> | undefined;
|
|
35
|
+
validate: (nameList?: string | NamePath[] | undefined, options?: ValidateOptions | undefined) => Promise<Partial<any>> | undefined;
|
|
36
|
+
scrollToField: (name: NamePath, options?: {}) => void;
|
|
37
|
+
setFieldValue: (key: string, newValue: any) => void;
|
|
38
|
+
setFieldsValue: (values: Record<string, any>) => void;
|
|
39
|
+
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
31
40
|
"update:open": (...args: any[]) => void;
|
|
32
41
|
}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ApFormModalFormProps>, {
|
|
33
42
|
layout: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),i=require("ant-design-vue");require("../ap-form.vue.js");require("../../hooks/index.js");const T=require("../../utils/slot.js");require("../../config-provider/index.js");const j=require("lodash-unified");require("../style/modal-form.css");const M=require("../../hooks/useControllableValue.js"),O=require("../../config-provider/hooks/use-locale.js"),R=require("../../config-provider/hooks/use-namespace.js"),D=require("../ap-form.vue2.js");function g(d){return typeof d=="function"||Object.prototype.toString.call(d)==="[object Object]"&&!e.isVNode(d)}const U=e.defineComponent({__name:"index",props:{initialValues:{},layout:{default:"horizontal"},labelCol:{},wrapperCol:{},colon:{type:Boolean,default:!0},labelAlign:{default:"right"},labelWrap:{type:Boolean},prefixCls:{},requiredMark:{},hideRequiredMark:{type:Boolean,default:!1},rules:{},validateMessages:{},validateOnRuleChange:{type:Boolean,default:!0},scrollToFirstError:{},onSubmit:{},name:{},validateTrigger:{default:"change"},size:{},disabled:{type:Boolean},onValuesChange:{},onFieldsChange:{},onFinishFailed:{},onValidate:{},open:{type:Boolean,default:void 0},"onUpdate:open":{},modalProps:{default:()=>({})},title:{},width:{default:800},onFinish:{},submitter:{type:[Boolean,Object],default:()=>({resetButtonProps:!1})},showCancel:{type:Boolean,default:!0}},emits:["update:open"],setup(d,{expose:C,emit:B}){const o=d,m=e.useSlots(),N=B,s=e.ref(),c=e.ref(),r=e.ref(!1),{value:k,updateValue:f}=M.useControllableValue(o,N,{valuePropName:"open",defaultValue:!1}),{t:v}=O.useLocale(),{b:_,e:h}=R.useNamespace("ap-form-modal-form");e.watch(()=>s.value,l=>{var t;l&&c.value&&((t=l.setFieldsValue)==null||t.call(l,c.value),c.value=void 0)});const V=T.getSingleVNode(m.trigger),q=V?e.cloneVNode(V,{onClick:()=>{f(!0)}}):null,w=e.computed(()=>{var n,p,b,y;let l;const t=[];if(o.submitter===!1)return null;if(o.showCancel){let u;t.push(e.createVNode(i.Button,{onClick:F,disabled:r.value},g(u=v("ap.common.cancelText"))?u:{default:()=>[u]}))}return((n=o.submitter)==null?void 0:n.resetButtonProps)!==!1&&t.push(e.createVNode(i.Button,e.mergeProps(((p=o.submitter)==null?void 0:p.resetButtonProps)||{},{key:"submit",disabled:r.value,onClick:P}),{default:()=>{var u;return[((u=o.submitter)==null?void 0:u.resetText)||v("ap.common.resetText")]}})),((b=o.submitter)==null?void 0:b.submitButtonProps)!==!1&&t.push(e.createVNode(i.Button,e.mergeProps({type:"primary",key:"submit"},((y=o.submitter)==null?void 0:y.submitButtonProps)||{},{loading:r.value,onClick:x}),{default:()=>{var u;return[((u=o.submitter)==null?void 0:u.submitText)||v("ap.common.okText")]}})),m.submitter?e.createVNode(i.Flex,{justify:"flex-end",class:h("footer")},g(l=m.submitter(t))?l:{default:()=>[l]}):e.createVNode(i.Flex,{justify:"flex-end",class:h("footer")},{default:()=>[e.createVNode(i.Space,null,g(t)?t:{default:()=>[t]})]})});function P(){var l,t,a;o.submitter!==!1&&((l=s.value)==null||l.resetFields(),(a=(t=o.submitter)==null?void 0:t.onReset)==null||a.call(t))}async function x(){var l,t,a,n;if(o.submitter!==!1)try{const p=await((l=s.value)==null?void 0:l.validateFields());(a=(t=o.submitter)==null?void 0:t.onSubmit)==null||a.call(t),r.value=!0,await((n=o.onFinish)==null?void 0:n.call(o,p))&&f(!1)}finally{r.value=!1}}function F(){e.unref(r)||f(!1)}function S(l){!l&&e.unref(r)||f(l)}return C({resetFields:l=>{var t;(t=s.value)==null||t.resetFields(l)},clearValidate:l=>{var t;(t=s.value)==null||t.clearValidate(l)},validateFields:(l,t)=>{var a;return(a=s.value)==null?void 0:a.validateFields(l,t)},getFieldsValue:l=>{var t;return(t=s.value)==null?void 0:t.getFieldsValue(l)},validate:(l,t)=>{var a;return(a=s.value)==null?void 0:a.validate(l,t)},scrollToField:(l,t={})=>{var a;(a=s.value)==null||a.scrollToField(l,t)},setFieldValue:(l,t)=>{var a,n;(n=(a=s.value)==null?void 0:a.setFieldValue)==null||n.call(a,l,t)},setFieldsValue:l=>{var t,a;if(!s.value){c.value=l;return}(a=(t=s.value)==null?void 0:t.setFieldsValue)==null||a.call(t,l)}}),(l,t)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(e.unref(i.Modal),e.mergeProps(l.modalProps,{open:e.unref(k),"onUpdate:open":S,onCancel:F,footer:null,width:l.width,class:e.unref(_)()}),{title:e.withCtx(()=>[e.renderSlot(l.$slots,"title",{},()=>[e.createTextVNode(e.toDisplayString(o.title),1)])]),default:e.withCtx(()=>[e.createVNode(D.default,e.mergeProps({ref_key:"formRef",ref:s},e.unref(j.omit)(o,["modalProps","open","onUpdate:open","title","width","onFinish","submitter"])),{default:e.withCtx(()=>[e.renderSlot(l.$slots,"default")]),_:3},16),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(w.value)))]),_:3},16,["open","width","class"]),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(q))))],64))}});exports.default=U;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { default as ModalButton } from './modal-button.vue';
|
|
2
2
|
import { default as PopConfirmButton } from './pop-confirm-button.vue';
|
|
3
|
-
import { CreateComponentPublicInstance, ExtractPropTypes, PropType, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ComponentOptionsBase, Plugin } from '
|
|
3
|
+
import { CreateComponentPublicInstance, ExtractPropTypes, PropType, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ComponentOptionsBase, Plugin } from 'vue';
|
|
4
4
|
export * from './interface';
|
|
5
5
|
export { ModalButton, PopConfirmButton };
|
|
6
6
|
export declare const BaseButton: {
|
package/lib/src/basic/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CreateComponentPublicInstance, ExtractPropTypes, PropType, VNode, RendererNode, RendererElement, VNodeChild, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ComponentOptionsBase, Plugin } from '
|
|
1
|
+
import { CreateComponentPublicInstance, ExtractPropTypes, PropType, VNode, RendererNode, RendererElement, VNodeChild, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ComponentOptionsBase, Plugin } from 'vue';
|
|
2
2
|
import { TooltipPlacement } from 'ant-design-vue/es/tooltip';
|
|
3
3
|
export * from './interface';
|
|
4
4
|
export declare const BasicHelp: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CreateComponentPublicInstance, ExtractPropTypes, PropType, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ComponentOptionsBase, Plugin } from '
|
|
1
|
+
import { CreateComponentPublicInstance, ExtractPropTypes, PropType, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ComponentOptionsBase, Plugin } from 'vue';
|
|
2
2
|
export declare const Button: {
|
|
3
3
|
new (...args: any[]): CreateComponentPublicInstance<Readonly< ExtractPropTypes<{
|
|
4
4
|
type: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CreateComponentPublicInstance, ExtractPropTypes, PropType, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ComponentOptionsBase, Plugin } from '
|
|
1
|
+
import { CreateComponentPublicInstance, ExtractPropTypes, PropType, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ComponentOptionsBase, Plugin } from 'vue';
|
|
2
2
|
import { default as __DTS_DEFAULT_0__ } from 'ant-design-vue/es/config-provider/renderEmpty';
|
|
3
3
|
import { TransformCellTextProps } from 'ant-design-vue/es/table/interface';
|
|
4
4
|
import { CSPConfig } from 'ant-design-vue/es/config-provider';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CreateComponentPublicInstance, ExtractPropTypes, PropType, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ComponentOptionsBase, Plugin } from '
|
|
1
|
+
import { CreateComponentPublicInstance, ExtractPropTypes, PropType, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ComponentOptionsBase, Plugin } from 'vue';
|
|
2
2
|
export * from './interface';
|
|
3
3
|
export declare const ScrollContainer: {
|
|
4
4
|
new (...args: any[]): CreateComponentPublicInstance<Readonly< ExtractPropTypes<{
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CreateComponentPublicInstance, ExtractPropTypes, PropType, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ComponentOptionsBase, Plugin } from '
|
|
1
|
+
import { CreateComponentPublicInstance, ExtractPropTypes, PropType, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ComponentOptionsBase, Plugin } from 'vue';
|
|
2
2
|
export * from './interface';
|
|
3
3
|
export declare const CountdownButton: {
|
|
4
4
|
new (...args: any[]): CreateComponentPublicInstance<Readonly< ExtractPropTypes<{
|