@aplus-frontend/ui 0.1.1 → 0.1.3

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 (41) hide show
  1. package/es/index.mjs +42 -41
  2. package/es/src/ap-action/item/index.vue2.mjs +13 -13
  3. package/es/src/business/ap-input-radio/ApInputRadio.vue.d.ts +37 -0
  4. package/es/src/business/ap-input-radio/ApInputRadio.vue.mjs +4 -0
  5. package/es/src/business/ap-input-radio/ApInputRadio.vue2.mjs +59 -0
  6. package/es/src/business/ap-input-radio/index.d.ts +3 -0
  7. package/es/src/business/ap-input-radio/interface.d.ts +14 -0
  8. package/es/src/business/ap-input-radio/style.css +7 -0
  9. package/es/src/business/ap-select-layout/index.css +1 -0
  10. package/es/src/business/index.d.ts +152 -1
  11. package/es/src/business/index.mjs +15 -12
  12. package/es/src/editable-table/hooks/use-get-columns.mjs +46 -64
  13. package/es/src/editable-table/interface.d.ts +2 -3
  14. package/es/src/editable-table/utils.d.ts +1 -0
  15. package/es/src/editable-table/utils.mjs +75 -35
  16. package/es/src/index.mjs +188 -187
  17. package/es/src/locale/lang/en.mjs +22 -22
  18. package/es/src/locale/lang/zh-cn.mjs +22 -22
  19. package/es/src/theme/ap-input-radio/ap-input-radio.css +7 -0
  20. package/es/src/theme/ap-select-layout/ap-select-layout.css +1 -0
  21. package/lib/index.js +1 -1
  22. package/lib/src/ap-action/item/index.vue2.js +1 -1
  23. package/lib/src/business/ap-input-radio/ApInputRadio.vue.d.ts +37 -0
  24. package/lib/src/business/ap-input-radio/ApInputRadio.vue.js +1 -0
  25. package/lib/src/business/ap-input-radio/ApInputRadio.vue2.js +1 -0
  26. package/lib/src/business/ap-input-radio/index.d.ts +3 -0
  27. package/lib/src/business/ap-input-radio/interface.d.ts +14 -0
  28. package/lib/src/business/ap-input-radio/style.css +7 -0
  29. package/lib/src/business/ap-select-layout/index.css +1 -0
  30. package/lib/src/business/index.d.ts +152 -1
  31. package/lib/src/business/index.js +1 -1
  32. package/lib/src/editable-table/hooks/use-get-columns.js +1 -1
  33. package/lib/src/editable-table/interface.d.ts +2 -3
  34. package/lib/src/editable-table/utils.d.ts +1 -0
  35. package/lib/src/editable-table/utils.js +1 -1
  36. package/lib/src/index.js +1 -1
  37. package/lib/src/locale/lang/en.js +1 -1
  38. package/lib/src/locale/lang/zh-cn.js +1 -1
  39. package/lib/src/theme/ap-input-radio/ap-input-radio.css +7 -0
  40. package/lib/src/theme/ap-select-layout/ap-select-layout.css +1 -0
  41. package/package.json +2 -2
package/es/index.mjs CHANGED
@@ -4,8 +4,8 @@ import { Icon as l, SvgIcon as s } from "./src/icon/index.mjs";
4
4
  import { configProviderProps as x } from "./src/config-provider/config-provider-props.mjs";
5
5
  import { configProviderContextKey as u, tableDefaultConfig as n } from "./src/config-provider/constants.mjs";
6
6
  import { keysOf as c, provideGlobalConfig as F, useGlobalConfig as T } from "./src/config-provider/hooks/use-global-config.mjs";
7
- import { buildLocaleContext as S, buildTranslator as b, localeContextKey as I, translate as g, useLocale as P } from "./src/config-provider/hooks/use-locale.mjs";
8
- import { defaultNamespace as h, namespaceContextKey as R, useGetDerivedNamespace as v, useNamespace as M } from "./src/config-provider/hooks/use-namespace.mjs";
7
+ import { buildLocaleContext as S, buildTranslator as I, localeContextKey as b, translate as g, useLocale as P } from "./src/config-provider/hooks/use-locale.mjs";
8
+ import { defaultNamespace as R, namespaceContextKey as h, useGetDerivedNamespace as v, useNamespace as M } from "./src/config-provider/hooks/use-namespace.mjs";
9
9
  import { ConfigProvider as k, globalConfigCached as w } from "./src/config-provider/config-provider.mjs";
10
10
  import { APConfigProvider as L } from "./src/config-provider/index.mjs";
11
11
  import { Scrollbar as E } from "./src/scroll-bar/index.mjs";
@@ -20,9 +20,9 @@ import { useDescription as no } from "./src/description/use-description.mjs";
20
20
  import { Description as co } from "./src/description/index.mjs";
21
21
  import { useComponentRegister as To } from "./src/pro-form/hooks/use-component-register.mjs";
22
22
  import { useForm as So } from "./src/pro-form/hooks/use-form.mjs";
23
- import { isComponentFormSchema as Io, isSlotFormSchema as go } from "./src/pro-form/types/form.mjs";
23
+ import { isComponentFormSchema as bo, isSlotFormSchema as go } from "./src/pro-form/types/form.mjs";
24
24
  import { Field as Do } from "./src/pro-form/index.mjs";
25
- import { default as Ro } from "./src/pro-form/components/api-cascader.vue.mjs";
25
+ import { default as ho } from "./src/pro-form/components/api-cascader.vue.mjs";
26
26
  import { default as Mo } from "./src/pro-form/components/api-radio-group.vue.mjs";
27
27
  import { default as ko } from "./src/pro-form/components/api-select.vue.mjs";
28
28
  import { default as Bo } from "./src/pro-form/components/api-transfer.vue.mjs";
@@ -45,9 +45,9 @@ import { createPrompt as ne } from "./src/prompt/index.mjs";
45
45
  import { Dropdown as ce } from "./src/dropdown/index.mjs";
46
46
  import { default as Te } from "./src/pro-table/pro-table.vue.mjs";
47
47
  import { default as Se } from "./src/pro-table/components/table-action.vue.mjs";
48
- import { default as Ie } from "./src/pro-table/components/edit-table-header-icon.vue.mjs";
48
+ import { default as be } from "./src/pro-table/components/edit-table-header-icon.vue.mjs";
49
49
  import { default as Pe } from "./src/pro-table/components/table-image.vue.mjs";
50
- import { useTable as he } from "./src/pro-table/hooks/use-table.mjs";
50
+ import { useTable as Re } from "./src/pro-table/hooks/use-table.mjs";
51
51
  import { ApFormItemText as ve } from "./src/ap-form/items/text/index.mjs";
52
52
  import { default as Ge } from "./src/ap-form/items/text-area/index.vue.mjs";
53
53
  import { default as we } from "./src/ap-form/items/number/index.vue.mjs";
@@ -72,9 +72,9 @@ import { default as nr } from "./src/ap-field/number/index.vue.mjs";
72
72
  import { default as cr } from "./src/ap-field/radio/index.vue.mjs";
73
73
  import { default as Tr } from "./src/ap-field/switch/index.vue.mjs";
74
74
  import { default as Sr } from "./src/ap-field/text-area/index.vue.mjs";
75
- import { default as Ir } from "./src/ap-field/date-range/index.vue.mjs";
75
+ import { default as br } from "./src/ap-field/date-range/index.vue.mjs";
76
76
  import { default as Pr } from "./src/ap-field/select/index.vue.mjs";
77
- import { default as hr } from "./src/ap-field/text/password.vue.mjs";
77
+ import { default as Rr } from "./src/ap-field/text/password.vue.mjs";
78
78
  import { default as vr } from "./src/ap-field/slider/index.vue.mjs";
79
79
  import { default as Gr } from "./src/ap-field/segmented/index.vue.mjs";
80
80
  import { default as wr } from "./src/ap-field/rate/index.vue.mjs";
@@ -98,17 +98,17 @@ import { NeedNameKeyDefault as ut } from "./src/ap-upload/apUploadTypes.mjs";
98
98
  import { default as At } from "./src/ap-upload/apUpload.vue.mjs";
99
99
  import { default as Ft } from "./src/ap-download/ap-download.vue.mjs";
100
100
  import { CheckCard as Ct } from "./src/check-card/index.mjs";
101
- import { default as bt } from "./src/check-card/group.vue.mjs";
101
+ import { default as It } from "./src/check-card/group.vue.mjs";
102
102
  import { ApModal as gt } from "./src/ap-modal/index.mjs";
103
103
  import { default as Dt } from "./src/ap-list/index.vue.mjs";
104
- import { ApExpandAlert as Rt, ApExportGroup as vt, ApLabel as Mt, ApSelectLayout as Gt, ApStatus as kt, ApStatusGroup as wt, ApTitle as Bt } from "./src/business/index.mjs";
105
- import { useTablePaging as yt } from "./src/ap-table/hooks/use-table-paging.mjs";
106
- import { default as Nt } from "./src/ap-table/ap-table.vue.mjs";
107
- import { default as Kt } from "./src/editable-table/index.vue.mjs";
108
- import { default as Ot } from "./src/editable-table/form-item.vue.mjs";
109
- import { default as Wt } from "./src/ap-descriptions/ap-descriptions.vue.mjs";
110
- import { useMessage as Ut } from "./src/hooks/useMessage.mjs";
111
- import { useControllableValue as $t } from "./src/hooks/useControllableValue.mjs";
104
+ import { ApExpandAlert as ht, ApExportGroup as vt, ApInputRadio as Mt, ApLabel as Gt, ApSelectLayout as kt, ApStatus as wt, ApStatusGroup as Bt, ApTitle as Lt } from "./src/business/index.mjs";
105
+ import { useTablePaging as Et } from "./src/ap-table/hooks/use-table-paging.mjs";
106
+ import { default as Xt } from "./src/ap-table/ap-table.vue.mjs";
107
+ import { default as Yt } from "./src/editable-table/index.vue.mjs";
108
+ import { default as Ht } from "./src/editable-table/form-item.vue.mjs";
109
+ import { default as zt } from "./src/ap-descriptions/ap-descriptions.vue.mjs";
110
+ import { useMessage as Vt } from "./src/hooks/useMessage.mjs";
111
+ import { useControllableValue as jt } from "./src/hooks/useControllableValue.mjs";
112
112
  const p = {
113
113
  install: (r) => {
114
114
  for (const t in e) {
@@ -126,16 +126,16 @@ export {
126
126
  Or as ApActionItemPopconfirm,
127
127
  Qr as ApCustomColumn,
128
128
  _r as ApCustomSelect,
129
- Wt as ApDescriptions,
129
+ zt as ApDescriptions,
130
130
  Ft as ApDownload,
131
- Rt as ApExpandAlert,
131
+ ht as ApExpandAlert,
132
132
  vt as ApExportGroup,
133
133
  fr as ApField,
134
134
  dr as ApFieldCheckbox,
135
135
  ir as ApFieldDate,
136
- Ir as ApFieldDateRange,
136
+ br as ApFieldDateRange,
137
137
  nr as ApFieldNumber,
138
- hr as ApFieldPassword,
138
+ Rr as ApFieldPassword,
139
139
  cr as ApFieldRadio,
140
140
  wr as ApFieldRate,
141
141
  Gr as ApFieldSegmented,
@@ -161,18 +161,19 @@ export {
161
161
  ar as ApFormModalForm,
162
162
  rr as ApFormSearchForm,
163
163
  xt as ApInfoLayout,
164
- Mt as ApLabel,
164
+ Mt as ApInputRadio,
165
+ Gt as ApLabel,
165
166
  Dt as ApList,
166
167
  gt as ApModal,
167
- Gt as ApSelectLayout,
168
- kt as ApStatus,
169
- wt as ApStatusGroup,
170
- Nt as ApTable,
168
+ kt as ApSelectLayout,
169
+ wt as ApStatus,
170
+ Bt as ApStatusGroup,
171
+ Xt as ApTable,
171
172
  mt as ApTag,
172
173
  st as ApTagGroup,
173
- Bt as ApTitle,
174
+ Lt as ApTitle,
174
175
  At as ApUpload,
175
- Ro as ApiCascader,
176
+ ho as ApiCascader,
176
177
  Mo as ApiRadioGroup,
177
178
  ko as ApiSelect,
178
179
  Bo as ApiTransfer,
@@ -184,7 +185,7 @@ export {
184
185
  j as BasicHelp,
185
186
  q as BasicTitle,
186
187
  Ct as CheckCard,
187
- bt as CheckCardGroup,
188
+ It as CheckCardGroup,
188
189
  X as CollapseContainer,
189
190
  Q as CollapseTransition,
190
191
  k as ConfigProvider,
@@ -195,9 +196,9 @@ export {
195
196
  co as Description,
196
197
  et as DictCode,
197
198
  ce as Dropdown,
198
- Ie as EditTableHeaderIcon,
199
- Kt as EditableTable,
200
- Ot as EditableTableFormItem,
199
+ be as EditTableHeaderIcon,
200
+ Yt as EditableTable,
201
+ Ht as EditableTableFormItem,
201
202
  _ as ExpandTransition,
202
203
  oo as ExpandXTransition,
203
204
  eo as FadeTransition,
@@ -232,38 +233,38 @@ export {
232
233
  Lr as adminToken,
233
234
  yr as aplusToken,
234
235
  S as buildLocaleContext,
235
- b as buildTranslator,
236
+ I as buildTranslator,
236
237
  u as configProviderContextKey,
237
238
  x as configProviderProps,
238
239
  ne as createPrompt,
239
240
  tt as createWorkOrderModal,
240
241
  p as default,
241
- h as defaultNamespace,
242
+ R as defaultNamespace,
242
243
  U as en,
243
244
  $r as generateTableList,
244
245
  w as globalConfigCached,
245
- Io as isComponentFormSchema,
246
+ bo as isComponentFormSchema,
246
247
  go as isSlotFormSchema,
247
248
  c as keysOf,
248
- I as localeContextKey,
249
- R as namespaceContextKey,
249
+ b as localeContextKey,
250
+ h as namespaceContextKey,
250
251
  F as provideGlobalConfig,
251
252
  n as tableDefaultConfig,
252
253
  g as translate,
253
254
  qr as useCacheColumnSetting,
254
255
  To as useComponentRegister,
255
- $t as useControllableValue,
256
+ jt as useControllableValue,
256
257
  no as useDescription,
257
258
  So as useForm,
258
259
  v as useGetDerivedNamespace,
259
260
  T as useGlobalConfig,
260
261
  P as useLocale,
261
- Ut as useMessage,
262
+ Vt as useMessage,
262
263
  te as useModal,
263
264
  ee as useModalContext,
264
265
  ae as useModalInner,
265
266
  M as useNamespace,
266
- he as useTable,
267
- yt as useTablePaging,
267
+ Re as useTable,
268
+ Et as useTablePaging,
268
269
  W as zhCn
269
270
  };
@@ -1,9 +1,9 @@
1
- import { defineComponent as y, ref as b, unref as r, computed as d, renderSlot as c, openBlock as n, createElementBlock as u, mergeProps as C, toHandlers as v, createBlock as f, createCommentVNode as m, isVNode as B, resolveDynamicComponent as A, toDisplayString as h } from "vue";
1
+ import { defineComponent as y, ref as b, unref as r, computed as d, renderSlot as c, openBlock as t, createElementBlock as u, mergeProps as C, createBlock as f, createCommentVNode as m, isVNode as v, resolveDynamicComponent as B, toDisplayString as A } from "vue";
2
2
  import "../../config-provider/index.mjs";
3
- import I from "ant-design-vue/es/button/LoadingIcon";
3
+ import h from "ant-design-vue/es/button/LoadingIcon";
4
4
  import "../style/item.css";
5
- import { useNamespace as L } from "../../config-provider/hooks/use-namespace.mjs";
6
- const N = { key: 1 }, E = /* @__PURE__ */ y({
5
+ import { useNamespace as I } from "../../config-provider/hooks/use-namespace.mjs";
6
+ const L = { key: 1 }, x = /* @__PURE__ */ y({
7
7
  name: "ApActionItem",
8
8
  __name: "index",
9
9
  props: {
@@ -16,39 +16,39 @@ const N = { key: 1 }, E = /* @__PURE__ */ y({
16
16
  loading: { type: Boolean, default: !1 }
17
17
  },
18
18
  setup(p) {
19
- const o = p, { b: g, m: l } = L("action-item"), a = b(!1);
19
+ const o = p, { b: g, m: l } = I("action-item"), a = b(!1);
20
20
  function s(e) {
21
21
  var i;
22
- r(t) || o.disabled || ((i = o.onClick) == null || i.call(o, e), o.onAction && (a.value = !0, o.onAction(e).finally(() => a.value = !1)));
22
+ r(n) || o.disabled || ((i = o.onClick) == null || i.call(o, e), o.onAction && (a.value = !0, o.onAction(e).finally(() => a.value = !1)));
23
23
  }
24
- const t = d(() => o.loading || r(a)), k = d(() => [
24
+ const n = d(() => o.loading || r(a)), k = d(() => [
25
25
  g(),
26
26
  l(o.color),
27
27
  o.disabled ? l("disabled") : null,
28
- t.value ? l("loading") : null
28
+ n.value ? l("loading") : null
29
29
  ].filter(Boolean));
30
30
  return (e, i) => c(e.$slots, "trigger", {
31
- loading: t.value,
31
+ loading: n.value,
32
32
  disabled: e.disabled,
33
33
  onClick: s
34
34
  }, () => [
35
- e.visible ? (n(), u("span", C({ key: 0 }, v(e.$attrs, !0), {
35
+ e.visible ? (t(), u("span", C({ key: 0 }, e.$attrs, {
36
36
  onClick: s,
37
37
  class: k.value
38
38
  }), [
39
- t.value ? (n(), f(r(I), {
39
+ n.value ? (t(), f(r(h), {
40
40
  key: 0,
41
41
  prefixCls: "btn",
42
42
  existIcon: !1,
43
43
  loading: ""
44
44
  })) : m("", !0),
45
45
  c(e.$slots, "default", {}, () => [
46
- B(e.text) ? (n(), f(A(e.text), { key: 0 })) : (n(), u("span", N, h(e.text || ""), 1))
46
+ v(e.text) ? (t(), f(B(e.text), { key: 0 })) : (t(), u("span", L, A(e.text || ""), 1))
47
47
  ])
48
48
  ], 16)) : m("", !0)
49
49
  ]);
50
50
  }
51
51
  });
52
52
  export {
53
- E as default
53
+ x as default
54
54
  };
@@ -0,0 +1,37 @@
1
+ import { ApInputRadioProps } from './interface';
2
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
3
+ declare const _default: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<ApInputRadioProps>, {
4
+ bordered: boolean;
5
+ controls: boolean;
6
+ stringMode: boolean;
7
+ }>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
8
+ "update:value": (...args: any[]) => void;
9
+ }, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<ApInputRadioProps>, {
10
+ bordered: boolean;
11
+ controls: boolean;
12
+ stringMode: boolean;
13
+ }>>> & {
14
+ "onUpdate:value"?: ((...args: any[]) => any) | undefined;
15
+ }, {
16
+ bordered: boolean;
17
+ stringMode: boolean;
18
+ controls: boolean;
19
+ }, {}>;
20
+ export default _default;
21
+ type __VLS_WithDefaults<P, D> = {
22
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
23
+ default: D[K];
24
+ }> : P[K];
25
+ };
26
+ type __VLS_Prettify<T> = {
27
+ [K in keyof T]: T[K];
28
+ } & {};
29
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
30
+ type __VLS_TypePropsToOption<T> = {
31
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
32
+ type: PropType<__VLS_NonUndefinedable<T[K]>>;
33
+ } : {
34
+ type: PropType<T[K]>;
35
+ required: true;
36
+ };
37
+ };
@@ -0,0 +1,4 @@
1
+ import f from "./ApInputRadio.vue2.mjs";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1,59 @@
1
+ import { defineComponent as d, openBlock as f, createElementBlock as v, normalizeClass as g, unref as t, createVNode as a, mergeProps as C } from "vue";
2
+ import "../../config-provider/index.mjs";
3
+ import { Form as h, InputNumber as B, RadioGroup as I } from "ant-design-vue";
4
+ import { omit as b } from "lodash-unified";
5
+ import "./style.css";
6
+ import { useNamespace as _ } from "../../config-provider/hooks/use-namespace.mjs";
7
+ const A = /* @__PURE__ */ d({
8
+ name: "ApInputRadio",
9
+ __name: "ApInputRadio",
10
+ props: {
11
+ disabled: { type: Boolean },
12
+ stringMode: { type: Boolean, default: !0 },
13
+ precision: {},
14
+ max: {},
15
+ min: {},
16
+ step: {},
17
+ bordered: { type: Boolean, default: !0 },
18
+ autofocus: { type: Boolean },
19
+ decimalSeparator: {},
20
+ controls: { type: Boolean, default: !0 },
21
+ formatter: {},
22
+ onInput: {},
23
+ onChange: {},
24
+ onPressEnter: {},
25
+ onStep: {},
26
+ onBlur: {},
27
+ onFocus: {},
28
+ value: {},
29
+ options: {}
30
+ },
31
+ emits: ["update:value"],
32
+ setup(r, { emit: u }) {
33
+ const p = h.useInjectFormItemContext(), o = r, { b: l, e: s } = _("ap-input-radio"), i = u, n = (e) => {
34
+ i("update:value", { ...o.value, ...e }), p.onFieldChange();
35
+ }, m = (e) => {
36
+ n({ inputval: e });
37
+ }, c = (e) => {
38
+ n({ radioVal: e.target.value });
39
+ };
40
+ return (e, x) => (f(), v("div", {
41
+ class: g([t(l)()])
42
+ }, [
43
+ a(t(B), C({
44
+ class: t(s)("input-number")
45
+ }, t(b)(o, ["value", "options"]), {
46
+ value: o.value.inputval,
47
+ onChange: m
48
+ }), null, 16, ["class", "value"]),
49
+ a(t(I), {
50
+ value: o.value.radioVal,
51
+ options: o.options,
52
+ onChange: c
53
+ }, null, 8, ["value", "options"])
54
+ ], 2));
55
+ }
56
+ });
57
+ export {
58
+ A as default
59
+ };
@@ -0,0 +1,3 @@
1
+ import { default as ApInputRadio } from './ApInputRadio.vue';
2
+ export * from './interface';
3
+ export { ApInputRadio };
@@ -0,0 +1,14 @@
1
+ import { InputNumberProps } from 'ant-design-vue/es/input-number';
2
+ type ApInputProps = Pick<InputNumberProps, 'disabled' | 'stringMode' | 'precision' | 'max' | 'min' | 'step' | 'bordered' | 'autofocus' | 'decimalSeparator' | 'controls' | 'formatter' | 'onInput' | 'onChange' | 'onPressEnter' | 'onStep' | 'onBlur' | 'onFocus'>;
3
+ type ApInputValyeName = 'inputval' | 'radioVal';
4
+ export type ApInputValType = {
5
+ value: Record<ApInputValyeName, string | number>;
6
+ };
7
+ export type ApInputRadioOptions = Array<{
8
+ value: string | number;
9
+ label: string;
10
+ }>;
11
+ export type ApInputRadioProps = ApInputProps & ApInputValType & {
12
+ options: ApInputRadioOptions;
13
+ };
14
+ export {};
@@ -0,0 +1,7 @@
1
+ .aplus-ap-input-radio {
2
+ display: flex;
3
+ align-items: center;
4
+ }
5
+ .aplus-ap-input-radio__input-number {
6
+ margin-right: 16px;
7
+ }
@@ -113,6 +113,7 @@
113
113
  font-size: 24px;
114
114
  display: flex;
115
115
  height: 24px;
116
+ color: #999;
116
117
  }
117
118
  .aplus-ap-select-layout-content__header--imgWrap:hover {
118
119
  background: #f5f5f5;
@@ -1,13 +1,17 @@
1
- import { CreateComponentPublicInstance, ExtractPropTypes, PropType, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ComponentOptionsBase, Plugin, CSSProperties, PublicProps, ShallowUnwrapRef, VNode, RendererNode, RendererElement } from 'vue';
1
+ import { CreateComponentPublicInstance, ExtractPropTypes, PropType, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ComponentOptionsBase, Plugin, CSSProperties, PublicProps, ShallowUnwrapRef, VNode, RendererNode, RendererElement, DefineComponent } from 'vue';
2
2
  import { TooltipPlacement } from 'ant-design-vue/es/tooltip';
3
3
  import { LiteralUnion } from 'ant-design-vue/es/_util/type';
4
4
  import { ApStatusProps, ApStatusGroupItemProps } from './ap-status/interface';
5
5
  import { ApSelectItem } from './ap-select-layout/interface';
6
+ import { ValueType } from 'ant-design-vue/es/input-number/src/utils/MiniDecimal';
7
+ import { ApInputRadioOptions } from './ap-input-radio/interface';
8
+ import { KeyboardEventHandler } from 'ant-design-vue/es/_util/EventInterface';
6
9
  export type { ApTitleProps } from './title/interface';
7
10
  export type { ApExpandAlertProps } from './expandAlert/interface';
8
11
  export type { ApLabelProps } from './ap-label/interface';
9
12
  export type { ApStatusProps, ApStatusGroupProps, ApStatusGroupItemProps } from './ap-status/interface';
10
13
  export type { ApSelectItem, ApSelectLayoutProps } from './ap-select-layout/interface';
14
+ export type { ApInputRadioProps } from './ap-input-radio/interface';
11
15
  export declare const ApTitle: {
12
16
  new (...args: any[]): CreateComponentPublicInstance<Readonly< ExtractPropTypes<{
13
17
  title: {
@@ -1028,3 +1032,150 @@ export declare const ApExportGroup: {
1028
1032
  onClick?: () => void;
1029
1033
  };
1030
1034
  }))));
1035
+ export declare const ApInputRadio: DefineComponent<{
1036
+ onBlur: {
1037
+ type: PropType<(e: FocusEvent) => void>;
1038
+ };
1039
+ onChange: {
1040
+ type: PropType<(value: ValueType) => void>;
1041
+ };
1042
+ onFocus: {
1043
+ type: PropType<(e: FocusEvent) => void>;
1044
+ };
1045
+ onInput: {
1046
+ type: PropType<(text: string) => void>;
1047
+ };
1048
+ value: {
1049
+ type: PropType<Record<"inputval" | "radioVal", string | number>>;
1050
+ required: true;
1051
+ };
1052
+ options: {
1053
+ type: PropType<ApInputRadioOptions>;
1054
+ required: true;
1055
+ };
1056
+ disabled: {
1057
+ type: PropType<boolean>;
1058
+ };
1059
+ bordered: {
1060
+ type: PropType<boolean>;
1061
+ default: boolean;
1062
+ };
1063
+ autofocus: {
1064
+ type: PropType<boolean>;
1065
+ };
1066
+ onPressEnter: {
1067
+ type: PropType<KeyboardEventHandler>;
1068
+ };
1069
+ stringMode: {
1070
+ type: PropType<boolean>;
1071
+ default: boolean;
1072
+ };
1073
+ min: {
1074
+ type: PropType<ValueType>;
1075
+ };
1076
+ max: {
1077
+ type: PropType<ValueType>;
1078
+ };
1079
+ step: {
1080
+ type: PropType<ValueType>;
1081
+ };
1082
+ controls: {
1083
+ type: PropType<boolean>;
1084
+ default: boolean;
1085
+ };
1086
+ formatter: {
1087
+ type: PropType<(value: ValueType, info: {
1088
+ userTyping: boolean;
1089
+ input: string;
1090
+ }) => string>;
1091
+ };
1092
+ precision: {
1093
+ type: PropType<number>;
1094
+ };
1095
+ decimalSeparator: {
1096
+ type: PropType<string>;
1097
+ };
1098
+ onStep: {
1099
+ type: PropType<(value: ValueType, info: {
1100
+ offset: ValueType;
1101
+ type: "up" | "down";
1102
+ }) => void>;
1103
+ };
1104
+ }, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
1105
+ "update:value": (...args: any[]) => void;
1106
+ }, string, PublicProps, Readonly< ExtractPropTypes<{
1107
+ onBlur: {
1108
+ type: PropType<(e: FocusEvent) => void>;
1109
+ };
1110
+ onChange: {
1111
+ type: PropType<(value: ValueType) => void>;
1112
+ };
1113
+ onFocus: {
1114
+ type: PropType<(e: FocusEvent) => void>;
1115
+ };
1116
+ onInput: {
1117
+ type: PropType<(text: string) => void>;
1118
+ };
1119
+ value: {
1120
+ type: PropType<Record<"inputval" | "radioVal", string | number>>;
1121
+ required: true;
1122
+ };
1123
+ options: {
1124
+ type: PropType<ApInputRadioOptions>;
1125
+ required: true;
1126
+ };
1127
+ disabled: {
1128
+ type: PropType<boolean>;
1129
+ };
1130
+ bordered: {
1131
+ type: PropType<boolean>;
1132
+ default: boolean;
1133
+ };
1134
+ autofocus: {
1135
+ type: PropType<boolean>;
1136
+ };
1137
+ onPressEnter: {
1138
+ type: PropType<KeyboardEventHandler>;
1139
+ };
1140
+ stringMode: {
1141
+ type: PropType<boolean>;
1142
+ default: boolean;
1143
+ };
1144
+ min: {
1145
+ type: PropType<ValueType>;
1146
+ };
1147
+ max: {
1148
+ type: PropType<ValueType>;
1149
+ };
1150
+ step: {
1151
+ type: PropType<ValueType>;
1152
+ };
1153
+ controls: {
1154
+ type: PropType<boolean>;
1155
+ default: boolean;
1156
+ };
1157
+ formatter: {
1158
+ type: PropType<(value: ValueType, info: {
1159
+ userTyping: boolean;
1160
+ input: string;
1161
+ }) => string>;
1162
+ };
1163
+ precision: {
1164
+ type: PropType<number>;
1165
+ };
1166
+ decimalSeparator: {
1167
+ type: PropType<string>;
1168
+ };
1169
+ onStep: {
1170
+ type: PropType<(value: ValueType, info: {
1171
+ offset: ValueType;
1172
+ type: "up" | "down";
1173
+ }) => void>;
1174
+ };
1175
+ }>> & {
1176
+ "onUpdate:value"?: ((...args: any[]) => any) | undefined;
1177
+ }, {
1178
+ bordered: boolean;
1179
+ stringMode: boolean;
1180
+ controls: boolean;
1181
+ }, {}>;
@@ -6,20 +6,23 @@ import "./ap-status/ApStatus.vue.mjs";
6
6
  import "./ap-status/ApStatusGroup.vue.mjs";
7
7
  import "./ap-select-layout/select-layout.vue.mjs";
8
8
  import "./ap-export-group/ApExportGroup.vue.mjs";
9
+ import "./ap-input-radio/ApInputRadio.vue.mjs";
9
10
  import t from "./title/ApTitle.vue2.mjs";
10
11
  import m from "./expandAlert/ApExpandAlert.vue2.mjs";
11
- import r from "./ap-label/ApLabel.vue2.mjs";
12
- import p from "./ap-status/ApStatus.vue2.mjs";
12
+ import p from "./ap-label/ApLabel.vue2.mjs";
13
+ import r from "./ap-status/ApStatus.vue2.mjs";
13
14
  import i from "./ap-status/ApStatusGroup.vue2.mjs";
14
- import s from "./ap-select-layout/select-layout.vue2.mjs";
15
- import n from "./ap-export-group/ApExportGroup.vue2.mjs";
16
- const d = o(t), h = m, w = o(r), y = o(p), I = o(i), T = o(s), g = o(n);
15
+ import n from "./ap-select-layout/select-layout.vue2.mjs";
16
+ import s from "./ap-export-group/ApExportGroup.vue2.mjs";
17
+ import c from "./ap-input-radio/ApInputRadio.vue2.mjs";
18
+ const w = o(t), y = m, R = o(p), T = o(r), g = o(i), j = o(n), k = o(s), q = c;
17
19
  export {
18
- h as ApExpandAlert,
19
- g as ApExportGroup,
20
- w as ApLabel,
21
- T as ApSelectLayout,
22
- y as ApStatus,
23
- I as ApStatusGroup,
24
- d as ApTitle
20
+ y as ApExpandAlert,
21
+ k as ApExportGroup,
22
+ q as ApInputRadio,
23
+ R as ApLabel,
24
+ j as ApSelectLayout,
25
+ T as ApStatus,
26
+ g as ApStatusGroup,
27
+ w as ApTitle
25
28
  };