@aplus-frontend/ui 7.0.0 → 7.0.1

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.
Files changed (68) hide show
  1. package/es/index.mjs +108 -106
  2. package/es/src/ag-grid/style/custom-header.mjs +1 -1
  3. package/es/src/ag-grid/style/index.mjs +0 -1
  4. package/es/src/ap-action/item-dropdown/index.vue.mjs +12 -12
  5. package/es/src/ap-form/style/item.mjs +5 -4
  6. package/es/src/ap-form/style/modal-form.mjs +11 -11
  7. package/es/src/ap-form/style/search-form-sorter.mjs +16 -12
  8. package/es/src/ap-form/style/token.d.ts +4 -0
  9. package/es/src/ap-upload/apUpload.vue.mjs +32 -31
  10. package/es/src/business/ag-grid-modal/interface.d.ts +1 -1
  11. package/es/src/business/ag-grid-modal/wrapper/index.vue.d.ts +6 -2
  12. package/es/src/business/ag-grid-modal/wrapper/index.vue2.mjs +29 -12
  13. package/es/src/business/ap-ladder/style/index.mjs +2 -5
  14. package/es/src/business/ap-size-input/ApSizeInput.d.ts +20 -4
  15. package/es/src/business/ap-size-input/ApSizeInput.mjs +37 -40
  16. package/es/src/business/ap-size-input/constans.d.ts +10 -2
  17. package/es/src/business/ap-size-input/constans.mjs +9 -1
  18. package/es/src/business/ap-size-input/form-item.vue.d.ts +13 -0
  19. package/es/src/business/ap-size-input/form-item.vue.mjs +65 -0
  20. package/es/src/business/ap-size-input/form-item.vue2.mjs +4 -0
  21. package/es/src/business/ap-size-input/index.d.ts +33 -8
  22. package/es/src/business/ap-size-input/index.mjs +3 -2
  23. package/es/src/business/ap-size-input/interface.d.ts +7 -0
  24. package/es/src/business/ap-size-input/style/index.mjs +2 -1
  25. package/es/src/business/ap-view/components/menu-list-content.vue2.mjs +61 -64
  26. package/es/src/business/ap-view/style/index.mjs +1 -1
  27. package/es/src/check-card/style/index.mjs +46 -51
  28. package/es/src/config-provider/hooks/use-token.d.ts +2 -2
  29. package/es/src/design-token/interface.d.ts +24 -1
  30. package/es/src/index.mjs +95 -93
  31. package/es/src/utils/cssinjs/index.d.ts +1 -1
  32. package/es/src/utils/cssinjs/index.mjs +48 -48
  33. package/es/src/version.d.ts +1 -1
  34. package/es/src/version.mjs +1 -1
  35. package/lib/index.js +1 -1
  36. package/lib/src/ag-grid/style/custom-header.js +1 -1
  37. package/lib/src/ap-action/item-dropdown/index.vue.js +1 -1
  38. package/lib/src/ap-form/style/item.js +1 -1
  39. package/lib/src/ap-form/style/modal-form.js +1 -1
  40. package/lib/src/ap-form/style/search-form-sorter.js +1 -1
  41. package/lib/src/ap-form/style/token.d.ts +4 -0
  42. package/lib/src/ap-upload/apUpload.vue.js +1 -1
  43. package/lib/src/business/ag-grid-modal/interface.d.ts +1 -1
  44. package/lib/src/business/ag-grid-modal/wrapper/index.vue.d.ts +6 -2
  45. package/lib/src/business/ag-grid-modal/wrapper/index.vue2.js +1 -1
  46. package/lib/src/business/ap-ladder/style/index.js +1 -1
  47. package/lib/src/business/ap-size-input/ApSizeInput.d.ts +20 -4
  48. package/lib/src/business/ap-size-input/ApSizeInput.js +1 -1
  49. package/lib/src/business/ap-size-input/constans.d.ts +10 -2
  50. package/lib/src/business/ap-size-input/constans.js +1 -1
  51. package/lib/src/business/ap-size-input/form-item.vue.d.ts +13 -0
  52. package/lib/src/business/ap-size-input/form-item.vue.js +1 -0
  53. package/lib/src/business/ap-size-input/form-item.vue2.js +1 -0
  54. package/lib/src/business/ap-size-input/index.d.ts +33 -8
  55. package/lib/src/business/ap-size-input/index.js +1 -1
  56. package/lib/src/business/ap-size-input/interface.d.ts +7 -0
  57. package/lib/src/business/ap-size-input/style/index.js +1 -1
  58. package/lib/src/business/ap-view/components/menu-list-content.vue2.js +1 -1
  59. package/lib/src/business/ap-view/style/index.js +1 -1
  60. package/lib/src/check-card/style/index.js +1 -1
  61. package/lib/src/config-provider/hooks/use-token.d.ts +2 -2
  62. package/lib/src/design-token/interface.d.ts +24 -1
  63. package/lib/src/index.js +1 -1
  64. package/lib/src/utils/cssinjs/index.d.ts +1 -1
  65. package/lib/src/utils/cssinjs/index.js +1 -1
  66. package/lib/src/version.d.ts +1 -1
  67. package/lib/src/version.js +1 -1
  68. package/package.json +1 -1
@@ -1,4 +1,4 @@
1
- import { defineComponent as U, ref as u, computed as p, provide as t, createElementBlock as O, openBlock as m, normalizeClass as R, unref as c, createBlock as z, resolveDynamicComponent as j, mergeProps as A, createSlots as $, renderList as k, withCtx as B, renderSlot as T, normalizeProps as w, guardReactiveProps as I } from "vue";
1
+ import { defineComponent as U, ref as m, computed as c, provide as t, createElementBlock as O, openBlock as d, normalizeClass as R, unref as a, createBlock as z, resolveDynamicComponent as j, mergeProps as A, createSlots as $, renderList as k, withCtx as B, renderSlot as T, normalizeProps as w, guardReactiveProps as I } from "vue";
2
2
  import "../config-provider/index.mjs";
3
3
  import "./components/SingleFile.vue.mjs";
4
4
  import "./components/MultipleFile.vue.mjs";
@@ -12,8 +12,8 @@ import { useNamespace as G } from "../config-provider/hooks/use-namespace.mjs";
12
12
  import H from "./components/Picture.vue2.mjs";
13
13
  import J from "./components/MultipleFile.vue2.mjs";
14
14
  import K from "./components/SingleFile.vue2.mjs";
15
- import { useGlobalConfig as d } from "../config-provider/hooks/use-global-config.mjs";
16
- const me = /* @__PURE__ */ U({
15
+ import { useGlobalConfig as f } from "../config-provider/hooks/use-global-config.mjs";
16
+ const Q = ["id"], ce = /* @__PURE__ */ U({
17
17
  name: "AplusFileUpload",
18
18
  __name: "apUpload",
19
19
  props: {
@@ -91,57 +91,58 @@ const me = /* @__PURE__ */ U({
91
91
  }
92
92
  },
93
93
  emits: ["update:value"],
94
- setup(f, { expose: g, emit: v }) {
95
- const { t: a, lang: y } = D();
96
- L(a), q(a, y);
97
- const { b: C } = G("ap-upload"), S = V("ap-upload"), n = u(null), e = f, x = v, b = {
94
+ setup(g, { expose: v, emit: y }) {
95
+ const { t: n, lang: C } = D();
96
+ L(n), q(n, C);
97
+ const { b: S } = G("ap-upload"), x = V("ap-upload"), s = m(null), e = g, b = y, M = {
98
98
  singleFile: K,
99
99
  multipleFile: J,
100
100
  picture: H
101
- }, M = P.useInjectFormItemContext(), E = p({
101
+ }, i = P.useInjectFormItemContext(), h = c({
102
102
  get() {
103
103
  return e.value;
104
104
  },
105
105
  set(o) {
106
- x("update:value", o), M?.onFieldChange(), e.onChange?.(o);
106
+ b("update:value", o), i?.onFieldChange(), e.onChange?.(o);
107
107
  }
108
- }), F = d("uiMode"), r = d("apUpload");
109
- t("theme", F.value), t("value", E), t("dirName", e.dirName ?? r.value?.dirName), t(
108
+ }), E = f("uiMode"), r = f("apUpload");
109
+ t("theme", E.value), t("value", h), t("dirName", e.dirName ?? r.value?.dirName), t(
110
110
  "needName",
111
111
  e.needName ?? r.value?.needName ?? !1
112
112
  ), t("accept", e.accept ?? r.value?.accept ?? ""), t("maxSize", e.maxSize), t("title", e.title), t("subTitle", e.subTitle), t("maxCount", e.maxCount), t("beforeUpload", e.beforeUpload), t("customRequest", e.customRequest), t(
113
113
  "getOssAccess",
114
114
  e.getOssAccess ?? r.value?.getOssAccess
115
115
  ), t("maxSizeErrorMsg", e.maxSizeErrorMsg), t("maxCountErrorMsg", e.maxCountErrorMsg), t("acceptErrorMsg", e.acceptErrorMsg), t("onRemove", e.onRemove), t("showUploadErrorMsg", e.showUploadErrorMsg);
116
- const h = p(() => s.value === 0), s = u(0);
117
- t("uploadingCount", s);
118
- function N() {
119
- i(void 0);
116
+ const F = c(() => l.value === 0), l = m(0);
117
+ t("uploadingCount", l);
118
+ function _() {
119
+ u(void 0);
120
120
  }
121
- function i(o) {
122
- n?.value?.setValue?.(o);
121
+ function u(o) {
122
+ s?.value?.setValue?.(o);
123
123
  }
124
- return g({
125
- done: h,
126
- clear: N,
127
- setValue: i
128
- }), (o, Q) => (m(), O("div", {
129
- class: R([c(C)(), c(S)])
124
+ return v({
125
+ done: F,
126
+ clear: _,
127
+ setValue: u
128
+ }), (o, W) => (d(), O("div", {
129
+ id: a(i)?.id.value,
130
+ class: R([a(S)(), a(x)])
130
131
  }, [
131
- (m(), z(j(b[e.type]), A(o.$attrs, {
132
+ (d(), z(j(M[e.type]), A(o.$attrs, {
132
133
  ref_key: "uploadRef",
133
- ref: n
134
+ ref: s
134
135
  }), $({ _: 2 }, [
135
- k(Object.keys(o.$slots), (l) => ({
136
- name: l,
137
- fn: B((_) => [
138
- T(o.$slots, l, w(I(_ || {})))
136
+ k(Object.keys(o.$slots), (p) => ({
137
+ name: p,
138
+ fn: B((N) => [
139
+ T(o.$slots, p, w(I(N || {})))
139
140
  ])
140
141
  }))
141
142
  ]), 1040))
142
- ], 2));
143
+ ], 10, Q));
143
144
  }
144
145
  });
145
146
  export {
146
- me as default
147
+ ce as default
147
148
  };
@@ -77,7 +77,7 @@ export interface AgGridSelectModalProps<RowType = any> extends AgGridModalBasicP
77
77
  /** 设置是否是复杂布局 */
78
78
  modalLayout?: ModalLayoutConfig<RowType>;
79
79
  /** ag-grid 额外配置 */
80
- gridProps?: Omit<AgGridProps<RowType>, 'rowHeight' | 'rowSelection' | 'rowKey'>;
80
+ gridProps?: Omit<AgGridProps<RowType>, 'rowSelection' | 'rowKey'>;
81
81
  }
82
82
  export interface SelectModalReturnType<T = any> {
83
83
  /** 打开弹框 */
@@ -7,13 +7,17 @@ declare function __VLS_template(): {
7
7
  slots: {
8
8
  default?(_: {}): any;
9
9
  };
10
- refs: {};
10
+ refs: {
11
+ wrapperContainer: HTMLDivElement;
12
+ };
11
13
  rootEl: HTMLDivElement;
12
14
  };
13
15
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
14
16
  declare const __VLS_component: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
15
17
  rowHeight: number;
16
- }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
18
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {
19
+ wrapperContainer: HTMLDivElement;
20
+ }, HTMLDivElement>;
17
21
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
18
22
  export default _default;
19
23
  type __VLS_WithTemplateSlots<T, S> = T & {
@@ -1,25 +1,42 @@
1
- import { defineComponent as c, computed as t, createElementBlock as u, openBlock as s, normalizeStyle as d, unref as m, renderSlot as p } from "vue";
2
- import { LARGER_HEIGHT as f, SMALL_HEIGHT as o } from "../constants.mjs";
3
- import { useAgGridModalInject as h } from "../hooks/use-ag-grid-instance.mjs";
4
- const v = /* @__PURE__ */ c({
1
+ import { defineComponent as p, useTemplateRef as f, computed as g, ref as h, watch as d, onMounted as m, createElementBlock as H, openBlock as v, normalizeStyle as _, unref as y, renderSlot as w } from "vue";
2
+ import { SMALL_HEIGHT as l, LARGER_HEIGHT as S } from "../constants.mjs";
3
+ import { useAgGridModalInject as L } from "../hooks/use-ag-grid-instance.mjs";
4
+ const G = /* @__PURE__ */ p({
5
5
  __name: "index",
6
6
  props: {
7
- rowHeight: { default: 40 }
7
+ rowHeight: { default: 32 }
8
8
  },
9
- setup(r) {
10
- const n = r, i = h(), l = t(() => i?.dataSourceLength?.value || 0), a = t(() => l.value * n.rowHeight > 400 ? f : o);
11
- return (e, g) => (s(), u("div", {
12
- style: d({
13
- minHeight: m(o),
9
+ setup(c) {
10
+ const s = c, t = f("wrapperContainer"), u = L(), r = g(
11
+ () => u?.dataSourceLength?.value || 0
12
+ ), a = h(l), i = () => {
13
+ const e = t.value?.clientHeight, o = t.value?.querySelector(
14
+ ".ag-body.ag-layout-normal"
15
+ )?.clientHeight;
16
+ let n = 0;
17
+ !e || !o ? n = 0 : n = e - o, r.value * s.rowHeight > 480 - n && (a.value = S);
18
+ };
19
+ return d(
20
+ () => r.value,
21
+ () => {
22
+ i();
23
+ }
24
+ ), m(() => {
25
+ i();
26
+ }), (e, o) => (v(), H("div", {
27
+ ref_key: "wrapperContainer",
28
+ ref: t,
29
+ style: _({
30
+ minHeight: y(l),
14
31
  height: a.value,
15
32
  display: "flex",
16
33
  flexDirection: "column"
17
34
  })
18
35
  }, [
19
- p(e.$slots, "default")
36
+ w(e.$slots, "default")
20
37
  ], 4));
21
38
  }
22
39
  });
23
40
  export {
24
- v as default
41
+ G as default
25
42
  };
@@ -37,7 +37,7 @@ const i = (l) => {
37
37
  },
38
38
  [`${e}__value-group-link`]: {
39
39
  cursor: "pointer",
40
- color: l.colorPrimary,
40
+ color: l.colorLink,
41
41
  textDecoration: "none"
42
42
  },
43
43
  [`${e}__value-group-label-left`]: {
@@ -126,7 +126,7 @@ const i = (l) => {
126
126
  },
127
127
  [`${e}__link, ${e}__link a`]: {
128
128
  cursor: "pointer",
129
- color: l.colorPrimary,
129
+ color: l.colorLink,
130
130
  textDecoration: "none"
131
131
  },
132
132
  "&--admin": {
@@ -151,9 +151,6 @@ const i = (l) => {
151
151
  },
152
152
  "&__unit": {
153
153
  color: "#333"
154
- },
155
- "&__link": {
156
- color: "#34b77c"
157
154
  }
158
155
  }
159
156
  }
@@ -1,4 +1,4 @@
1
- import { DefineComponent, ExtractPropTypes, PropType, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
1
+ import { DefineComponent, ExtractPropTypes, PropType, StyleValue, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
2
2
  declare const _default: DefineComponent<ExtractPropTypes<{
3
3
  value: {
4
4
  type: PropType<Array<string | number>>;
@@ -25,7 +25,7 @@ declare const _default: DefineComponent<ExtractPropTypes<{
25
25
  };
26
26
  min: {
27
27
  type: NumberConstructor;
28
- default: number;
28
+ required: boolean;
29
29
  };
30
30
  max: {
31
31
  type: NumberConstructor;
@@ -35,6 +35,14 @@ declare const _default: DefineComponent<ExtractPropTypes<{
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
  }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{
39
47
  value: {
40
48
  type: PropType<Array<string | number>>;
@@ -61,7 +69,7 @@ declare const _default: DefineComponent<ExtractPropTypes<{
61
69
  };
62
70
  min: {
63
71
  type: NumberConstructor;
64
- default: number;
72
+ required: boolean;
65
73
  };
66
74
  max: {
67
75
  type: NumberConstructor;
@@ -71,11 +79,19 @@ declare const _default: DefineComponent<ExtractPropTypes<{
71
79
  type: NumberConstructor;
72
80
  default: number;
73
81
  };
82
+ disabled: {
83
+ type: BooleanConstructor;
84
+ required: boolean;
85
+ };
86
+ style: {
87
+ type: PropType<StyleValue>;
88
+ required: boolean;
89
+ };
74
90
  }>> & Readonly<{}>, {
75
91
  step: number;
76
92
  value: (string | number)[];
93
+ disabled: boolean;
77
94
  placeholder: string[];
78
- min: number;
79
95
  max: number;
80
96
  precision: number;
81
97
  editable: boolean;
@@ -1,60 +1,57 @@
1
- import { defineComponent as f, toRaw as x, createVNode as t } from "vue";
2
- import { ApSizeInputProps as r } from "./constans.mjs";
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, Space as I } from "@aplus-frontend/antdv";
4
+ import { Form as g } from "@aplus-frontend/antdv";
5
5
  import "../../config-provider/index.mjs";
6
- import v from "./style/index.mjs";
7
- import { useNamespace as z } from "../../config-provider/hooks/use-namespace.mjs";
8
- import { useLocale as C } from "../../config-provider/hooks/use-locale.mjs";
9
- import m from "../../ap-field/number/index.vue.mjs";
10
- const y = /* @__PURE__ */ f({
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: r(),
12
+ props: s(),
13
13
  setup(e, {
14
14
  emit: c
15
15
  }) {
16
16
  const {
17
- b: u
18
- } = z("ap-size-input"), d = v("ap-size-input"), {
17
+ b: d
18
+ } = v("ap-size-input"), h = I("ap-size-input"), {
19
19
  t: n
20
- } = C(), h = g.useInjectFormItemContext(), i = (a, o) => {
21
- const l = e.value;
22
- l[a] = o, c("update:value", l), c("SizeInputChange", x(l)), h.onFieldChange();
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 () => t(I, {
25
- class: [u(), d.value]
26
- }, {
27
- default: () => [t(m, {
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
- precision: e.precision ? e.precision : 2,
32
- min: e.min ? e.min : 1,
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
- precision: e.precision ? e.precision : 2,
41
- min: e.min ? e.min : 1,
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
- precision: e.precision ? e.precision : 2,
50
- min: e.min ? e.min : 1,
51
- max: e.max ? e.max : 999.99,
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
- y as default
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
- default: number;
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
- default: 0
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
+ };
@@ -0,0 +1,4 @@
1
+ import f from "./form-item.vue.mjs";
2
+ export {
3
+ f as default
4
+ };
@@ -1,4 +1,5 @@
1
- import { CreateComponentPublicInstanceWithMixins, ExtractPropTypes, PropType, ComponentOptionsMixin, PublicProps, GlobalComponents, GlobalDirectives, ComponentProvideOptions, ComponentOptionsBase, VNodeProps, AllowedComponentProps, ComponentCustomProps, Plugin } from 'vue';
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
- default: number;
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
- default: number;
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
- default: number;
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,7 +1,8 @@
1
1
  import t from "./ApSizeInput.mjs";
2
2
  import { withInstall as p } from "@aplus-frontend/utils";
3
+ import "./form-item.vue2.mjs";
3
4
  import "./interface.mjs";
4
- const m = p(t);
5
+ const n = p(t);
5
6
  export {
6
- m as ApSizeInput
7
+ n as ApSizeInput
7
8
  };
@@ -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
+ }
@@ -2,7 +2,8 @@ import { genComponentStyleHook as t } from "../../../utils/cssinjs/index.mjs";
2
2
  const n = (e) => ({
3
3
  [e.componentCls]: {
4
4
  display: "flex",
5
- alignItems: "center"
5
+ alignItems: "center",
6
+ gap: "8px"
6
7
  }
7
8
  }), p = t("ApSizeInput", (e) => [
8
9
  n(e)