@aplus-frontend/ui 7.0.0 → 7.1.0
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 +108 -106
- package/es/src/ag-grid/style/custom-header.mjs +1 -1
- package/es/src/ag-grid/style/index.mjs +0 -1
- package/es/src/ap-action/item-dropdown/index.vue.mjs +12 -12
- package/es/src/ap-descriptions/ap-descriptions.vue.mjs +39 -39
- package/es/src/ap-descriptions/style/index.mjs +16 -43
- package/es/src/ap-download/ap-download.vue.mjs +43 -43
- package/es/src/ap-download/hooks/useStyle.d.ts +1 -1
- package/es/src/ap-download/hooks/useStyle.mjs +17 -14
- package/es/src/ap-download/style/index.mjs +6 -13
- package/es/src/ap-form/modal-form/index.vue.mjs +59 -60
- package/es/src/ap-form/style/item.mjs +5 -4
- package/es/src/ap-form/style/modal-form.mjs +11 -12
- package/es/src/ap-form/style/search-form-sorter.mjs +31 -27
- package/es/src/ap-form/style/token.d.ts +8 -0
- package/es/src/ap-grid/style/index.mjs +3 -3
- package/es/src/ap-pro-card/style/statistic.mjs +3 -3
- package/es/src/ap-pro-card/style/token.mjs +1 -1
- package/es/src/ap-table/style/index.mjs +2 -2
- package/es/src/ap-table/style/setting.mjs +2 -2
- package/es/src/ap-tag/ap-tag-group.vue.mjs +61 -61
- package/es/src/ap-tag/ap-tag.vue.mjs +19 -20
- package/es/src/ap-tag/style/group.mjs +2 -8
- package/es/src/ap-tag/style/index.mjs +14 -23
- package/es/src/ap-upload/apUpload.vue.mjs +42 -41
- package/es/src/ap-upload/components/MultipleFile.vue2.mjs +60 -61
- package/es/src/ap-upload/components/Picture.vue2.mjs +90 -91
- package/es/src/ap-upload/components/SingleFile.vue2.mjs +72 -72
- package/es/src/ap-upload/style/multiple-file.mjs +13 -40
- package/es/src/ap-upload/style/picture.mjs +12 -30
- package/es/src/ap-upload/style/single-file.mjs +5 -16
- package/es/src/business/ag-grid-modal/interface.d.ts +1 -1
- package/es/src/business/ag-grid-modal/wrapper/index.vue.d.ts +6 -2
- package/es/src/business/ag-grid-modal/wrapper/index.vue2.mjs +29 -12
- package/es/src/business/ap-appendix/style/index.mjs +1 -1
- package/es/src/business/ap-attachment/ApAttachment.mjs +42 -39
- package/es/src/business/ap-copy/style/index.mjs +1 -1
- package/es/src/business/ap-expand-alert/ApExpandAlert.vue2.mjs +45 -46
- package/es/src/business/ap-ladder/ApLadder.mjs +20 -22
- package/es/src/business/ap-ladder/style/index.mjs +11 -39
- package/es/src/business/ap-product-info/ApProductInfo.mjs +21 -22
- package/es/src/business/ap-product-info/style/index.mjs +8 -24
- package/es/src/business/ap-radio-group/style/index.mjs +1 -1
- package/es/src/business/ap-size-input/ApSizeInput.d.ts +20 -4
- package/es/src/business/ap-size-input/ApSizeInput.mjs +37 -40
- package/es/src/business/ap-size-input/constans.d.ts +10 -2
- package/es/src/business/ap-size-input/constans.mjs +9 -1
- package/es/src/business/ap-size-input/form-item.vue.d.ts +13 -0
- package/es/src/business/ap-size-input/form-item.vue.mjs +65 -0
- package/es/src/business/ap-size-input/form-item.vue2.mjs +4 -0
- package/es/src/business/ap-size-input/index.d.ts +33 -8
- package/es/src/business/ap-size-input/index.mjs +3 -2
- package/es/src/business/ap-size-input/interface.d.ts +7 -0
- package/es/src/business/ap-size-input/style/index.mjs +2 -1
- package/es/src/business/ap-table-modal/hooks/use-table-modal.mjs +18 -19
- package/es/src/business/ap-table-modal/modal-title.vue2.mjs +13 -13
- package/es/src/business/ap-title/style/index.mjs +1 -1
- package/es/src/business/ap-upload-file/ap-upload-single/ap-upload-single.vue.mjs +38 -37
- package/es/src/business/ap-value-select-card/index.vue2.mjs +36 -37
- package/es/src/business/ap-value-select-card/style/index.mjs +7 -29
- package/es/src/business/ap-view/components/menu-list-content.vue2.mjs +61 -64
- package/es/src/business/ap-view/style/index.mjs +1 -1
- package/es/src/business/batch-input-group/style/index.mjs +1 -1
- package/es/src/check-card/style/index.mjs +46 -51
- package/es/src/config-provider/hooks/use-token.d.ts +2 -2
- package/es/src/design-token/constants.mjs +4 -2
- package/es/src/design-token/interface.d.ts +39 -19
- package/es/src/index.mjs +95 -93
- package/es/src/scroll-bar/style/index.mjs +12 -12
- package/es/src/splitter/style/index.mjs +6 -6
- package/es/src/style/index.mjs +1 -1
- package/es/src/text/style/index.mjs +1 -1
- package/es/src/utils/cssinjs/TokenUtil.d.ts +11 -0
- package/es/src/utils/cssinjs/TokenUtil.mjs +26 -0
- package/es/src/utils/cssinjs/index.d.ts +1 -1
- package/es/src/utils/cssinjs/index.mjs +51 -50
- package/es/src/version.d.ts +1 -1
- package/es/src/version.mjs +1 -1
- package/lib/index.js +1 -1
- package/lib/src/ag-grid/style/custom-header.js +1 -1
- package/lib/src/ap-action/item-dropdown/index.vue.js +1 -1
- package/lib/src/ap-descriptions/ap-descriptions.vue.js +1 -1
- package/lib/src/ap-descriptions/style/index.js +1 -1
- package/lib/src/ap-download/ap-download.vue.js +1 -1
- package/lib/src/ap-download/hooks/useStyle.d.ts +1 -1
- package/lib/src/ap-download/hooks/useStyle.js +1 -1
- package/lib/src/ap-download/style/index.js +1 -1
- package/lib/src/ap-form/modal-form/index.vue.js +1 -1
- package/lib/src/ap-form/style/item.js +1 -1
- package/lib/src/ap-form/style/modal-form.js +1 -1
- package/lib/src/ap-form/style/search-form-sorter.js +1 -1
- package/lib/src/ap-form/style/token.d.ts +8 -0
- package/lib/src/ap-grid/style/index.js +1 -1
- package/lib/src/ap-pro-card/style/statistic.js +1 -1
- package/lib/src/ap-pro-card/style/token.js +1 -1
- package/lib/src/ap-table/style/index.js +1 -1
- package/lib/src/ap-table/style/setting.js +1 -1
- package/lib/src/ap-tag/ap-tag-group.vue.js +1 -1
- package/lib/src/ap-tag/ap-tag.vue.js +1 -1
- package/lib/src/ap-tag/style/group.js +1 -1
- package/lib/src/ap-tag/style/index.js +1 -1
- package/lib/src/ap-upload/apUpload.vue.js +1 -1
- package/lib/src/ap-upload/components/MultipleFile.vue2.js +1 -1
- package/lib/src/ap-upload/components/Picture.vue2.js +1 -1
- package/lib/src/ap-upload/components/SingleFile.vue2.js +1 -1
- package/lib/src/ap-upload/style/multiple-file.js +1 -1
- package/lib/src/ap-upload/style/picture.js +1 -1
- package/lib/src/ap-upload/style/single-file.js +1 -1
- package/lib/src/business/ag-grid-modal/interface.d.ts +1 -1
- package/lib/src/business/ag-grid-modal/wrapper/index.vue.d.ts +6 -2
- package/lib/src/business/ag-grid-modal/wrapper/index.vue2.js +1 -1
- package/lib/src/business/ap-appendix/style/index.js +1 -1
- package/lib/src/business/ap-attachment/ApAttachment.js +1 -1
- package/lib/src/business/ap-copy/style/index.js +1 -1
- package/lib/src/business/ap-expand-alert/ApExpandAlert.vue2.js +1 -1
- package/lib/src/business/ap-ladder/ApLadder.js +1 -1
- package/lib/src/business/ap-ladder/style/index.js +1 -1
- package/lib/src/business/ap-product-info/ApProductInfo.js +1 -1
- package/lib/src/business/ap-product-info/style/index.js +1 -1
- package/lib/src/business/ap-radio-group/style/index.js +1 -1
- package/lib/src/business/ap-size-input/ApSizeInput.d.ts +20 -4
- package/lib/src/business/ap-size-input/ApSizeInput.js +1 -1
- package/lib/src/business/ap-size-input/constans.d.ts +10 -2
- package/lib/src/business/ap-size-input/constans.js +1 -1
- package/lib/src/business/ap-size-input/form-item.vue.d.ts +13 -0
- package/lib/src/business/ap-size-input/form-item.vue.js +1 -0
- package/lib/src/business/ap-size-input/form-item.vue2.js +1 -0
- package/lib/src/business/ap-size-input/index.d.ts +33 -8
- package/lib/src/business/ap-size-input/index.js +1 -1
- package/lib/src/business/ap-size-input/interface.d.ts +7 -0
- package/lib/src/business/ap-size-input/style/index.js +1 -1
- package/lib/src/business/ap-table-modal/hooks/use-table-modal.js +1 -1
- package/lib/src/business/ap-table-modal/modal-title.vue2.js +1 -1
- package/lib/src/business/ap-title/style/index.js +1 -1
- package/lib/src/business/ap-upload-file/ap-upload-single/ap-upload-single.vue.js +1 -1
- package/lib/src/business/ap-value-select-card/index.vue2.js +1 -1
- package/lib/src/business/ap-value-select-card/style/index.js +1 -1
- package/lib/src/business/ap-view/components/menu-list-content.vue2.js +1 -1
- package/lib/src/business/ap-view/style/index.js +1 -1
- package/lib/src/business/batch-input-group/style/index.js +1 -1
- package/lib/src/check-card/style/index.js +1 -1
- package/lib/src/config-provider/hooks/use-token.d.ts +2 -2
- package/lib/src/design-token/constants.js +1 -1
- package/lib/src/design-token/interface.d.ts +39 -19
- package/lib/src/index.js +1 -1
- package/lib/src/scroll-bar/style/index.js +1 -1
- package/lib/src/splitter/style/index.js +1 -1
- package/lib/src/style/index.js +1 -1
- package/lib/src/text/style/index.js +1 -1
- package/lib/src/utils/cssinjs/TokenUtil.d.ts +11 -0
- package/lib/src/utils/cssinjs/TokenUtil.js +1 -0
- package/lib/src/utils/cssinjs/index.d.ts +1 -1
- package/lib/src/utils/cssinjs/index.js +1 -1
- package/lib/src/version.d.ts +1 -1
- package/lib/src/version.js +1 -1
- package/package.json +1 -1
|
@@ -1,60 +1,57 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { ApSizeInputProps as
|
|
1
|
+
import { defineComponent as p, toRaw as f, createVNode as a, mergeProps as m } from "vue";
|
|
2
|
+
import { ApSizeInputProps as s } from "./constans.mjs";
|
|
3
3
|
import "../../ap-field/number/index.vue2.mjs";
|
|
4
|
-
import { Form as g
|
|
4
|
+
import { Form as g } from "@aplus-frontend/antdv";
|
|
5
5
|
import "../../config-provider/index.mjs";
|
|
6
|
-
import
|
|
7
|
-
import { useNamespace as
|
|
8
|
-
import { useLocale as
|
|
9
|
-
import
|
|
10
|
-
const
|
|
6
|
+
import I from "./style/index.mjs";
|
|
7
|
+
import { useNamespace as v } from "../../config-provider/hooks/use-namespace.mjs";
|
|
8
|
+
import { useLocale as z } from "../../config-provider/hooks/use-locale.mjs";
|
|
9
|
+
import u from "../../ap-field/number/index.vue.mjs";
|
|
10
|
+
const _ = /* @__PURE__ */ p({
|
|
11
11
|
name: "ApSizeInput",
|
|
12
|
-
props:
|
|
12
|
+
props: s(),
|
|
13
13
|
setup(e, {
|
|
14
14
|
emit: c
|
|
15
15
|
}) {
|
|
16
16
|
const {
|
|
17
|
-
b:
|
|
18
|
-
} =
|
|
17
|
+
b: d
|
|
18
|
+
} = v("ap-size-input"), h = I("ap-size-input"), {
|
|
19
19
|
t: n
|
|
20
|
-
} =
|
|
21
|
-
const
|
|
22
|
-
|
|
20
|
+
} = z(), r = g.useInjectFormItemContext(), o = (t, l) => {
|
|
21
|
+
const i = e.value || [];
|
|
22
|
+
i[t] = l, c("update:value", i), c("SizeInputChange", f(i)), r.onFieldChange();
|
|
23
23
|
};
|
|
24
|
-
return () =>
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
24
|
+
return () => {
|
|
25
|
+
const t = {
|
|
26
|
+
style: {
|
|
27
|
+
flex: 1
|
|
28
|
+
},
|
|
29
|
+
precision: e.precision ?? 2,
|
|
30
|
+
min: e.min ?? 1,
|
|
31
|
+
max: e.max,
|
|
32
|
+
step: e.step ?? 1,
|
|
28
33
|
mode: e.editable ? "edit" : "read",
|
|
34
|
+
disabled: e.disabled
|
|
35
|
+
};
|
|
36
|
+
return a("div", {
|
|
37
|
+
class: [d(), h.value],
|
|
38
|
+
style: e.style
|
|
39
|
+
}, [a(u, m({
|
|
29
40
|
value: e.value?.[0],
|
|
30
41
|
placeholder: e.placeholder && e.placeholder.length >= 3 ? e.placeholder[0] : n("ap.apSizeInput.length"),
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
max: e.max ? e.max : 999.99,
|
|
34
|
-
onChange: (a) => i(0, a),
|
|
35
|
-
step: e.step ? e.step : 1
|
|
36
|
-
}, null), e.perfix, t(m, {
|
|
37
|
-
mode: e.editable ? "edit" : "read",
|
|
42
|
+
onChange: (l) => o(0, l)
|
|
43
|
+
}, t), null), e.perfix, a(u, m({
|
|
38
44
|
value: e.value?.[1],
|
|
39
45
|
placeholder: e.placeholder && e.placeholder.length >= 3 ? e.placeholder[1] : n("ap.apSizeInput.width"),
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
max: e.max ? e.max : 999.99,
|
|
43
|
-
onChange: (a) => i(1, a),
|
|
44
|
-
step: e.step ? e.step : 1
|
|
45
|
-
}, null), e.perfix, t(m, {
|
|
46
|
-
mode: e.editable ? "edit" : "read",
|
|
46
|
+
onChange: (l) => o(1, l)
|
|
47
|
+
}, t), null), e.perfix, a(u, m({
|
|
47
48
|
value: e.value?.[2],
|
|
48
49
|
placeholder: e.placeholder && e.placeholder.length >= 3 ? e.placeholder[2] : n("ap.apSizeInput.height"),
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
onChange: (a) => i(2, a),
|
|
53
|
-
step: e.step ? e.step : 1
|
|
54
|
-
}, null)]
|
|
55
|
-
});
|
|
50
|
+
onChange: (l) => o(2, l)
|
|
51
|
+
}, t), null)]);
|
|
52
|
+
};
|
|
56
53
|
}
|
|
57
54
|
});
|
|
58
55
|
export {
|
|
59
|
-
|
|
56
|
+
_ as default
|
|
60
57
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PropType } from 'vue';
|
|
1
|
+
import { PropType, StyleValue } from 'vue';
|
|
2
2
|
export declare const ApSizeInputProps: () => {
|
|
3
3
|
value: {
|
|
4
4
|
type: PropType<Array<string | number>>;
|
|
@@ -25,7 +25,7 @@ export declare const ApSizeInputProps: () => {
|
|
|
25
25
|
};
|
|
26
26
|
min: {
|
|
27
27
|
type: NumberConstructor;
|
|
28
|
-
|
|
28
|
+
required: boolean;
|
|
29
29
|
};
|
|
30
30
|
max: {
|
|
31
31
|
type: NumberConstructor;
|
|
@@ -35,4 +35,12 @@ export declare const ApSizeInputProps: () => {
|
|
|
35
35
|
type: NumberConstructor;
|
|
36
36
|
default: number;
|
|
37
37
|
};
|
|
38
|
+
disabled: {
|
|
39
|
+
type: BooleanConstructor;
|
|
40
|
+
required: boolean;
|
|
41
|
+
};
|
|
42
|
+
style: {
|
|
43
|
+
type: PropType<StyleValue>;
|
|
44
|
+
required: boolean;
|
|
45
|
+
};
|
|
38
46
|
};
|
|
@@ -24,7 +24,7 @@ const e = () => ({
|
|
|
24
24
|
},
|
|
25
25
|
min: {
|
|
26
26
|
type: Number,
|
|
27
|
-
|
|
27
|
+
required: !1
|
|
28
28
|
},
|
|
29
29
|
max: {
|
|
30
30
|
type: Number,
|
|
@@ -33,6 +33,14 @@ const e = () => ({
|
|
|
33
33
|
precision: {
|
|
34
34
|
type: Number,
|
|
35
35
|
default: 2
|
|
36
|
+
},
|
|
37
|
+
disabled: {
|
|
38
|
+
type: Boolean,
|
|
39
|
+
required: !1
|
|
40
|
+
},
|
|
41
|
+
style: {
|
|
42
|
+
type: Object,
|
|
43
|
+
required: !1
|
|
36
44
|
}
|
|
37
45
|
});
|
|
38
46
|
export {
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ApFormItemSizeInputProps } from './interface';
|
|
2
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
|
+
declare const _default: DefineComponent<ApFormItemSizeInputProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ApFormItemSizeInputProps> & Readonly<{}>, {
|
|
4
|
+
hidden: boolean;
|
|
5
|
+
colon: boolean;
|
|
6
|
+
required: boolean;
|
|
7
|
+
hasFeedback: boolean;
|
|
8
|
+
autoLink: boolean;
|
|
9
|
+
validateFirst: boolean;
|
|
10
|
+
noStyle: boolean;
|
|
11
|
+
bordered: boolean;
|
|
12
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
13
|
+
export default _default;
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { defineComponent as r, createBlock as i, openBlock as p, unref as e, normalizeProps as l, guardReactiveProps as t, withCtx as d, createVNode as n } from "vue";
|
|
2
|
+
import m from "./ApSizeInput.mjs";
|
|
3
|
+
import { ApForm as s } from "../../ap-form/index.mjs";
|
|
4
|
+
import { omit as u } from "lodash-unified";
|
|
5
|
+
const _ = /* @__PURE__ */ r({
|
|
6
|
+
name: "ApFormItemSizeInput",
|
|
7
|
+
__name: "form-item",
|
|
8
|
+
props: {
|
|
9
|
+
field: {},
|
|
10
|
+
htmlFor: {},
|
|
11
|
+
prefixCls: {},
|
|
12
|
+
label: {},
|
|
13
|
+
help: {},
|
|
14
|
+
extra: {},
|
|
15
|
+
labelCol: {},
|
|
16
|
+
wrapperCol: {},
|
|
17
|
+
hasFeedback: { type: Boolean, default: void 0 },
|
|
18
|
+
colon: { type: Boolean, default: void 0 },
|
|
19
|
+
labelAlign: {},
|
|
20
|
+
prop: {},
|
|
21
|
+
name: {},
|
|
22
|
+
rules: {},
|
|
23
|
+
autoLink: { type: Boolean, default: void 0 },
|
|
24
|
+
required: { type: Boolean, default: void 0 },
|
|
25
|
+
validateFirst: { type: Boolean, default: void 0 },
|
|
26
|
+
validateStatus: {},
|
|
27
|
+
validateTrigger: {},
|
|
28
|
+
messageVariables: {},
|
|
29
|
+
hidden: { type: Boolean, default: void 0 },
|
|
30
|
+
noStyle: { type: Boolean, default: void 0 },
|
|
31
|
+
tooltip: {},
|
|
32
|
+
span: {},
|
|
33
|
+
order: {},
|
|
34
|
+
offset: {},
|
|
35
|
+
push: {},
|
|
36
|
+
pull: {},
|
|
37
|
+
xs: {},
|
|
38
|
+
sm: {},
|
|
39
|
+
md: {},
|
|
40
|
+
lg: {},
|
|
41
|
+
xl: {},
|
|
42
|
+
xxl: {},
|
|
43
|
+
flex: {},
|
|
44
|
+
bordered: { type: Boolean, default: void 0 },
|
|
45
|
+
valuePropName: {},
|
|
46
|
+
initialValue: {},
|
|
47
|
+
_signal: {},
|
|
48
|
+
transform: {},
|
|
49
|
+
description: {},
|
|
50
|
+
customFilled: {},
|
|
51
|
+
disabled: { type: Boolean }
|
|
52
|
+
},
|
|
53
|
+
setup(a) {
|
|
54
|
+
const o = a;
|
|
55
|
+
return (f, c) => (p(), i(e(s).FormItem, l(t(e(u)(o, ["field"]))), {
|
|
56
|
+
default: d(() => [
|
|
57
|
+
n(e(m), l(t(o.field || {})), null, 16)
|
|
58
|
+
]),
|
|
59
|
+
_: 1
|
|
60
|
+
}, 16));
|
|
61
|
+
}
|
|
62
|
+
});
|
|
63
|
+
export {
|
|
64
|
+
_ as default
|
|
65
|
+
};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { default as ApFormItemSizeInput } from './form-item.vue';
|
|
2
|
+
import { CreateComponentPublicInstanceWithMixins, ExtractPropTypes, PropType, StyleValue, ComponentOptionsMixin, PublicProps, GlobalComponents, GlobalDirectives, ComponentProvideOptions, ComponentOptionsBase, VNodeProps, AllowedComponentProps, ComponentCustomProps, Plugin } from 'vue';
|
|
2
3
|
export * from './interface';
|
|
3
4
|
declare const ApSizeInput: {
|
|
4
5
|
new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly< ExtractPropTypes<{
|
|
@@ -27,7 +28,7 @@ declare const ApSizeInput: {
|
|
|
27
28
|
};
|
|
28
29
|
min: {
|
|
29
30
|
type: NumberConstructor;
|
|
30
|
-
|
|
31
|
+
required: boolean;
|
|
31
32
|
};
|
|
32
33
|
max: {
|
|
33
34
|
type: NumberConstructor;
|
|
@@ -37,11 +38,19 @@ declare const ApSizeInput: {
|
|
|
37
38
|
type: NumberConstructor;
|
|
38
39
|
default: number;
|
|
39
40
|
};
|
|
41
|
+
disabled: {
|
|
42
|
+
type: BooleanConstructor;
|
|
43
|
+
required: boolean;
|
|
44
|
+
};
|
|
45
|
+
style: {
|
|
46
|
+
type: PropType<StyleValue>;
|
|
47
|
+
required: boolean;
|
|
48
|
+
};
|
|
40
49
|
}>> & Readonly<{}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {
|
|
41
50
|
step: number;
|
|
42
51
|
value: (string | number)[];
|
|
52
|
+
disabled: boolean;
|
|
43
53
|
placeholder: string[];
|
|
44
|
-
min: number;
|
|
45
54
|
max: number;
|
|
46
55
|
precision: number;
|
|
47
56
|
editable: boolean;
|
|
@@ -79,7 +88,7 @@ declare const ApSizeInput: {
|
|
|
79
88
|
};
|
|
80
89
|
min: {
|
|
81
90
|
type: NumberConstructor;
|
|
82
|
-
|
|
91
|
+
required: boolean;
|
|
83
92
|
};
|
|
84
93
|
max: {
|
|
85
94
|
type: NumberConstructor;
|
|
@@ -89,11 +98,19 @@ declare const ApSizeInput: {
|
|
|
89
98
|
type: NumberConstructor;
|
|
90
99
|
default: number;
|
|
91
100
|
};
|
|
101
|
+
disabled: {
|
|
102
|
+
type: BooleanConstructor;
|
|
103
|
+
required: boolean;
|
|
104
|
+
};
|
|
105
|
+
style: {
|
|
106
|
+
type: PropType<StyleValue>;
|
|
107
|
+
required: boolean;
|
|
108
|
+
};
|
|
92
109
|
}>> & Readonly<{}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, {
|
|
93
110
|
step: number;
|
|
94
111
|
value: (string | number)[];
|
|
112
|
+
disabled: boolean;
|
|
95
113
|
placeholder: string[];
|
|
96
|
-
min: number;
|
|
97
114
|
max: number;
|
|
98
115
|
precision: number;
|
|
99
116
|
editable: boolean;
|
|
@@ -128,7 +145,7 @@ declare const ApSizeInput: {
|
|
|
128
145
|
};
|
|
129
146
|
min: {
|
|
130
147
|
type: NumberConstructor;
|
|
131
|
-
|
|
148
|
+
required: boolean;
|
|
132
149
|
};
|
|
133
150
|
max: {
|
|
134
151
|
type: NumberConstructor;
|
|
@@ -138,11 +155,19 @@ declare const ApSizeInput: {
|
|
|
138
155
|
type: NumberConstructor;
|
|
139
156
|
default: number;
|
|
140
157
|
};
|
|
158
|
+
disabled: {
|
|
159
|
+
type: BooleanConstructor;
|
|
160
|
+
required: boolean;
|
|
161
|
+
};
|
|
162
|
+
style: {
|
|
163
|
+
type: PropType<StyleValue>;
|
|
164
|
+
required: boolean;
|
|
165
|
+
};
|
|
141
166
|
}>> & Readonly<{}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
|
|
142
167
|
step: number;
|
|
143
168
|
value: (string | number)[];
|
|
169
|
+
disabled: boolean;
|
|
144
170
|
placeholder: string[];
|
|
145
|
-
min: number;
|
|
146
171
|
max: number;
|
|
147
172
|
precision: number;
|
|
148
173
|
editable: boolean;
|
|
@@ -152,4 +177,4 @@ declare const ApSizeInput: {
|
|
|
152
177
|
onClick?: () => void;
|
|
153
178
|
};
|
|
154
179
|
}));
|
|
155
|
-
export { ApSizeInput };
|
|
180
|
+
export { ApSizeInput, ApFormItemSizeInput };
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { StyleValue } from 'vue';
|
|
2
|
+
import { ApFormItemProps } from '../../ap-form';
|
|
1
3
|
export type ApSizeInputProps = {
|
|
2
4
|
value?: Array<string | number>;
|
|
3
5
|
placeholder?: Array<string>;
|
|
@@ -8,4 +10,9 @@ export type ApSizeInputProps = {
|
|
|
8
10
|
min?: number;
|
|
9
11
|
max?: number;
|
|
10
12
|
precision?: number;
|
|
13
|
+
disabled?: boolean;
|
|
14
|
+
style?: StyleValue;
|
|
11
15
|
};
|
|
16
|
+
export interface ApFormItemSizeInputProps extends ApFormItemProps {
|
|
17
|
+
field?: ApSizeInputProps;
|
|
18
|
+
}
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { onUnmounted as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
const t = i(r, {
|
|
1
|
+
import { onUnmounted as f } from "vue";
|
|
2
|
+
import { merge as c } from "lodash-unified";
|
|
3
|
+
import { useCreateTableModal as i } from "./use-create-table-modal.mjs";
|
|
4
|
+
function b(r) {
|
|
5
|
+
const a = c(r, {
|
|
7
6
|
...{
|
|
8
7
|
footer: null
|
|
9
8
|
},
|
|
@@ -12,25 +11,25 @@ function A(r) {
|
|
|
12
11
|
},
|
|
13
12
|
destroyOnUnmounted: !1,
|
|
14
13
|
isRenderModalTitleSuffix: !1
|
|
15
|
-
}), { destroy:
|
|
14
|
+
}), { destroy: e, openModal: s, closeModal: l, ...n } = i(a), d = async (p) => {
|
|
16
15
|
try {
|
|
17
|
-
await
|
|
18
|
-
} catch (
|
|
19
|
-
if (
|
|
20
|
-
throw
|
|
16
|
+
await s([], p);
|
|
17
|
+
} catch (o) {
|
|
18
|
+
if (!(typeof o == "string" && o.startsWith("Ignored Reject:")))
|
|
19
|
+
throw o;
|
|
21
20
|
}
|
|
22
|
-
},
|
|
23
|
-
|
|
21
|
+
}, t = () => {
|
|
22
|
+
l();
|
|
24
23
|
};
|
|
25
|
-
return
|
|
26
|
-
|
|
24
|
+
return f(() => {
|
|
25
|
+
t(), e();
|
|
27
26
|
}), {
|
|
28
|
-
open:
|
|
29
|
-
destroy:
|
|
30
|
-
close:
|
|
27
|
+
open: d,
|
|
28
|
+
destroy: e,
|
|
29
|
+
close: t,
|
|
31
30
|
...n
|
|
32
31
|
};
|
|
33
32
|
}
|
|
34
33
|
export {
|
|
35
|
-
|
|
34
|
+
b as useTableModal
|
|
36
35
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { defineComponent as m, createElementBlock as c, openBlock as f, createTextVNode as
|
|
1
|
+
import { defineComponent as m, createElementBlock as c, openBlock as f, createTextVNode as r, renderSlot as d, toDisplayString as t, createElementVNode as l, normalizeStyle as u, unref as o } from "vue";
|
|
2
2
|
import "../../config-provider/index.mjs";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
const
|
|
3
|
+
import { useToken as p } from "../../config-provider/hooks/use-token.mjs";
|
|
4
|
+
import { useLocale as s } from "../../config-provider/hooks/use-locale.mjs";
|
|
5
|
+
const b = /* @__PURE__ */ m({
|
|
6
6
|
__name: "modal-title",
|
|
7
7
|
props: {
|
|
8
8
|
title: {
|
|
@@ -19,32 +19,32 @@ const T = /* @__PURE__ */ m({
|
|
|
19
19
|
}
|
|
20
20
|
},
|
|
21
21
|
setup(e) {
|
|
22
|
-
const { t: n } =
|
|
22
|
+
const { t: n } = s(), { token: a } = p();
|
|
23
23
|
return (i, x) => (f(), c("div", null, [
|
|
24
|
-
|
|
24
|
+
r(t(e.title) + " ", 1),
|
|
25
25
|
d(i.$slots, "default", {
|
|
26
26
|
maxCount: e.maxCount,
|
|
27
27
|
count: e.count
|
|
28
28
|
}, () => [
|
|
29
|
-
|
|
29
|
+
l("span", {
|
|
30
30
|
style: u({
|
|
31
|
-
color: o(
|
|
31
|
+
color: o(a).textColor3,
|
|
32
32
|
fontSize: "12px",
|
|
33
33
|
fontWeight: "normal",
|
|
34
34
|
marginLeft: "12px"
|
|
35
35
|
}),
|
|
36
36
|
class: "product-number"
|
|
37
37
|
}, [
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
style: u({ color: o(
|
|
38
|
+
r(t(isFinite(e.maxCount) ? o(n)("ap.apTableModal.titleSuffixOne", { maxCount: e.maxCount }) : "") + t(o(n)("ap.apTableModal.titleSuffixTwo")) + " ", 1),
|
|
39
|
+
l("span", {
|
|
40
|
+
style: u({ color: o(a).colorLink })
|
|
41
41
|
}, t(e.count), 5),
|
|
42
|
-
|
|
42
|
+
r(" " + t(o(n)("ap.apTableModal.titleSuffixThree")), 1)
|
|
43
43
|
], 4)
|
|
44
44
|
])
|
|
45
45
|
]));
|
|
46
46
|
}
|
|
47
47
|
});
|
|
48
48
|
export {
|
|
49
|
-
|
|
49
|
+
b as default
|
|
50
50
|
};
|
|
@@ -1,18 +1,19 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { clearSingleFile as
|
|
1
|
+
import { defineComponent as M, computed as y, createBlock as C, openBlock as u, unref as e, mergeProps as G, withCtx as i, renderSlot as H, normalizeProps as J, guardReactiveProps as K, createElementVNode as s, normalizeClass as l, createElementBlock as v, createVNode as n, createTextVNode as m, toDisplayString as p, resolveDynamicComponent as F, h as N, Fragment as L } from "vue";
|
|
2
|
+
import { clearSingleFile as Q, clearAllFile as b } from "../utils/fileList.mjs";
|
|
3
3
|
import g from "../icon/file-icon.vue.mjs";
|
|
4
4
|
import k from "../icon/delete-icon.vue.mjs";
|
|
5
|
-
import { Form as
|
|
6
|
-
import { FormItemInputContext as
|
|
7
|
-
import { useSingleProps as
|
|
8
|
-
import { useInjectContext as
|
|
9
|
-
import { omit as
|
|
5
|
+
import { Form as W, UploadDragger as X, TypographyParagraph as x, Progress as Y, Tooltip as P } from "@aplus-frontend/antdv";
|
|
6
|
+
import { FormItemInputContext as Z } from "@aplus-frontend/antdv/es/form/FormItemContext";
|
|
7
|
+
import { useSingleProps as ee } from "../hook/useProps.mjs";
|
|
8
|
+
import { useInjectContext as te } from "../hook/useInjectContext.mjs";
|
|
9
|
+
import { omit as oe } from "lodash-unified";
|
|
10
10
|
import "../../../config-provider/index.mjs";
|
|
11
|
-
import
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
|
|
11
|
+
import le from "./style/index.mjs";
|
|
12
|
+
import { useToken as se } from "../../../config-provider/hooks/use-token.mjs";
|
|
13
|
+
import { useGlobalConfig as ne } from "../../../config-provider/hooks/use-global-config.mjs";
|
|
14
|
+
import { useLocale as ae } from "../../../config-provider/hooks/use-locale.mjs";
|
|
15
|
+
import { useNamespace as ie } from "../../../config-provider/hooks/use-namespace.mjs";
|
|
16
|
+
const Se = /* @__PURE__ */ M({
|
|
16
17
|
__name: "ap-upload-single",
|
|
17
18
|
props: {
|
|
18
19
|
dirName: {},
|
|
@@ -29,28 +30,28 @@ const xe = /* @__PURE__ */ G({
|
|
|
29
30
|
subTitle: { type: [Object, String, Number, Boolean, null, Array] }
|
|
30
31
|
},
|
|
31
32
|
emits: ["update:fileList"],
|
|
32
|
-
setup(
|
|
33
|
-
const
|
|
33
|
+
setup(w, { emit: A }) {
|
|
34
|
+
const T = Z.useInject(), $ = y(() => T.status), d = w, q = A, B = W.useInjectFormItemContext(), r = y({
|
|
34
35
|
get() {
|
|
35
36
|
return d.fileList || [];
|
|
36
37
|
},
|
|
37
38
|
set(c) {
|
|
38
39
|
q("update:fileList", c), B?.onFieldChange();
|
|
39
40
|
}
|
|
40
|
-
}), o =
|
|
41
|
-
title:
|
|
42
|
-
subTitle:
|
|
43
|
-
beforeUpload:
|
|
44
|
-
customRequest:
|
|
45
|
-
} =
|
|
46
|
-
|
|
47
|
-
T,
|
|
41
|
+
}), o = y(() => r.value?.[0]), O = ne("apUpload"), { t: U, lang: j } = ae(), {
|
|
42
|
+
title: z,
|
|
43
|
+
subTitle: R,
|
|
44
|
+
beforeUpload: E,
|
|
45
|
+
customRequest: h
|
|
46
|
+
} = ee(d), D = h;
|
|
47
|
+
te(
|
|
48
48
|
U,
|
|
49
|
+
j,
|
|
49
50
|
d?.getOssAccess ?? O.value?.getOssAccess
|
|
50
51
|
);
|
|
51
|
-
const { b: I, e: t } =
|
|
52
|
+
const { b: I, e: t } = ie("ap-upload-single"), V = le("ap-upload-single"), { token: S } = se();
|
|
52
53
|
function _(c) {
|
|
53
|
-
return
|
|
54
|
+
return oe(c, [
|
|
54
55
|
"dirName",
|
|
55
56
|
"needName",
|
|
56
57
|
"getOssAccess",
|
|
@@ -59,7 +60,7 @@ const xe = /* @__PURE__ */ G({
|
|
|
59
60
|
"subTitle"
|
|
60
61
|
]);
|
|
61
62
|
}
|
|
62
|
-
return (c, a) => (u(),
|
|
63
|
+
return (c, a) => (u(), C(e(X), G({
|
|
63
64
|
...c.$attrs,
|
|
64
65
|
..._(d)
|
|
65
66
|
}, {
|
|
@@ -69,13 +70,13 @@ const xe = /* @__PURE__ */ G({
|
|
|
69
70
|
"show-upload-list": !1,
|
|
70
71
|
disabled: !!o.value && [void 0, "uploading", "error", "success", "done"].includes(o.value.status),
|
|
71
72
|
class: [e(I)(), `${e(I)()}-affix-wrapper-status-${$.value}`, e(V)],
|
|
72
|
-
"before-upload": e(
|
|
73
|
-
"custom-request": e(
|
|
73
|
+
"before-upload": e(E),
|
|
74
|
+
"custom-request": e(D)
|
|
74
75
|
}), {
|
|
75
76
|
default: i(() => [
|
|
76
|
-
|
|
77
|
+
H(c.$slots, "default", J(K({
|
|
77
78
|
file: o.value,
|
|
78
|
-
clear: () => o.value && e(
|
|
79
|
+
clear: () => o.value && e(Q)(o.value, r.value, { maxCount: 1 })
|
|
79
80
|
})), () => [
|
|
80
81
|
s("div", {
|
|
81
82
|
class: l([e(t)("content")])
|
|
@@ -101,12 +102,12 @@ const xe = /* @__PURE__ */ G({
|
|
|
101
102
|
]),
|
|
102
103
|
_: 1
|
|
103
104
|
}, 8, ["tooltip"]),
|
|
104
|
-
n(e(
|
|
105
|
+
n(e(Y), {
|
|
105
106
|
percent: o.value.percent || 0,
|
|
106
107
|
size: 4,
|
|
107
108
|
"show-info": !1,
|
|
108
|
-
"trail-color": e(
|
|
109
|
-
"stroke-color": e(
|
|
109
|
+
"trail-color": e(S).borderColorBase,
|
|
110
|
+
"stroke-color": e(S).colorPrimary
|
|
110
111
|
}, null, 8, ["percent", "trail-color", "stroke-color"])
|
|
111
112
|
], 2),
|
|
112
113
|
s("div", {
|
|
@@ -127,7 +128,7 @@ const xe = /* @__PURE__ */ G({
|
|
|
127
128
|
s("div", {
|
|
128
129
|
class: l([e(t)("content-file-name"), e(t)("content-error-name")])
|
|
129
130
|
}, [
|
|
130
|
-
n(e(
|
|
131
|
+
n(e(P), null, {
|
|
131
132
|
title: i(() => [
|
|
132
133
|
m(p(o.value?.error || "--"), 1)
|
|
133
134
|
]),
|
|
@@ -163,7 +164,7 @@ const xe = /* @__PURE__ */ G({
|
|
|
163
164
|
s("div", {
|
|
164
165
|
class: l([e(t)("content-file-name"), e(t)("content-done-name")])
|
|
165
166
|
}, [
|
|
166
|
-
n(e(
|
|
167
|
+
n(e(P), null, {
|
|
167
168
|
title: i(() => [
|
|
168
169
|
m(p(o.value?.name || "--"), 1)
|
|
169
170
|
]),
|
|
@@ -199,12 +200,12 @@ const xe = /* @__PURE__ */ G({
|
|
|
199
200
|
s("div", {
|
|
200
201
|
class: l([e(t)("content-empty-title")])
|
|
201
202
|
}, [
|
|
202
|
-
(u(),
|
|
203
|
+
(u(), C(F(N(L, [e(z)]))))
|
|
203
204
|
], 2),
|
|
204
205
|
s("div", {
|
|
205
206
|
class: l([e(t)("content-empty-sub-title")])
|
|
206
207
|
}, [
|
|
207
|
-
(u(),
|
|
208
|
+
(u(), C(F(N(L, [e(R)]))))
|
|
208
209
|
], 2)
|
|
209
210
|
], 2))
|
|
210
211
|
], 2)
|
|
@@ -215,5 +216,5 @@ const xe = /* @__PURE__ */ G({
|
|
|
215
216
|
}
|
|
216
217
|
});
|
|
217
218
|
export {
|
|
218
|
-
|
|
219
|
+
Se as default
|
|
219
220
|
};
|