@aplus-frontend/ui 0.0.6 → 0.0.8

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 (103) hide show
  1. package/es/index.mjs +129 -119
  2. package/es/src/ap-field/checkbox/index.vue.mjs +8 -8
  3. package/es/src/ap-field/date/index.vue.d.ts +2 -2
  4. package/es/src/ap-field/date/index.vue.mjs +1 -1
  5. package/es/src/ap-field/date-range/index.vue.d.ts +6 -2
  6. package/es/src/ap-field/date-range/index.vue.mjs +46 -44
  7. package/es/src/ap-field/index.d.ts +8 -2
  8. package/es/src/ap-field/index.mjs +27 -16
  9. package/es/src/ap-field/interface.d.ts +29 -1
  10. package/es/src/ap-field/rate/index.vue.d.ts +64 -0
  11. package/es/src/ap-field/rate/index.vue.mjs +64 -0
  12. package/es/src/ap-field/rate/index.vue2.mjs +4 -0
  13. package/es/src/ap-field/segmented/index.vue.d.ts +54 -0
  14. package/es/src/ap-field/segmented/index.vue.mjs +81 -0
  15. package/es/src/ap-field/segmented/index.vue2.mjs +4 -0
  16. package/es/src/ap-field/select/index.vue.d.ts +2 -2
  17. package/es/src/ap-field/select/index.vue.mjs +4 -4
  18. package/es/src/ap-field/slider/index.vue.d.ts +64 -0
  19. package/es/src/ap-field/slider/index.vue.mjs +90 -0
  20. package/es/src/ap-field/slider/index.vue2.mjs +4 -0
  21. package/es/src/ap-field/switch/index.vue.mjs +7 -7
  22. package/es/src/ap-field/text/index.d.ts +8 -0
  23. package/es/src/ap-field/text/index.mjs +10 -0
  24. package/es/src/ap-field/text/index.vue.d.ts +2 -2
  25. package/es/src/ap-field/text/index.vue.mjs +2 -131
  26. package/es/src/ap-field/text/index.vue2.mjs +131 -2
  27. package/es/src/ap-field/text/input-password-props.d.ts +13 -0
  28. package/es/src/ap-field/text/password.vue.d.ts +74 -0
  29. package/es/src/ap-field/text/password.vue.mjs +152 -0
  30. package/es/src/ap-field/text/password.vue2.mjs +4 -0
  31. package/es/src/ap-field/text-area/index.vue.d.ts +3 -0
  32. package/es/src/ap-field/text-area/index.vue.mjs +1 -1
  33. package/es/src/ap-form/items/index.d.ts +2 -2
  34. package/es/src/ap-form/items/index.mjs +4 -1
  35. package/es/src/ap-form/items/interface.d.ts +6 -1
  36. package/es/src/ap-form/items/text/index.d.ts +8 -0
  37. package/es/src/ap-form/items/text/index.mjs +10 -0
  38. package/es/src/ap-form/items/text/index.vue.mjs +2 -93
  39. package/es/src/ap-form/items/text/index.vue2.mjs +93 -2
  40. package/es/src/ap-form/items/text/password.vue.d.ts +63 -0
  41. package/es/src/ap-form/items/text/password.vue.mjs +83 -0
  42. package/es/src/ap-form/items/text/password.vue2.mjs +4 -0
  43. package/es/src/ap-form/search-form/index.vue.mjs +53 -53
  44. package/es/src/ap-table/ap-table.vue.d.ts +2 -1
  45. package/es/src/ap-table/ap-table.vue.mjs +71 -70
  46. package/es/src/ap-table/constants.d.ts +4644 -1597
  47. package/es/src/ap-table/constants.mjs +40 -37
  48. package/es/src/ap-table/hooks/use-table-paging.mjs +14 -14
  49. package/es/src/ap-table/interface.d.ts +11 -3
  50. package/es/src/ap-table/utils.d.ts +1 -1
  51. package/es/src/index.mjs +112 -102
  52. package/lib/index.js +1 -1
  53. package/lib/src/ap-field/checkbox/index.vue.js +1 -1
  54. package/lib/src/ap-field/date/index.vue.d.ts +2 -2
  55. package/lib/src/ap-field/date/index.vue.js +1 -1
  56. package/lib/src/ap-field/date-range/index.vue.d.ts +6 -2
  57. package/lib/src/ap-field/date-range/index.vue.js +1 -1
  58. package/lib/src/ap-field/index.d.ts +8 -2
  59. package/lib/src/ap-field/index.js +1 -1
  60. package/lib/src/ap-field/interface.d.ts +29 -1
  61. package/lib/src/ap-field/rate/index.vue.d.ts +64 -0
  62. package/lib/src/ap-field/rate/index.vue.js +1 -0
  63. package/lib/src/ap-field/rate/index.vue2.js +1 -0
  64. package/lib/src/ap-field/segmented/index.vue.d.ts +54 -0
  65. package/lib/src/ap-field/segmented/index.vue.js +1 -0
  66. package/lib/src/ap-field/segmented/index.vue2.js +1 -0
  67. package/lib/src/ap-field/select/index.vue.d.ts +2 -2
  68. package/lib/src/ap-field/select/index.vue.js +1 -1
  69. package/lib/src/ap-field/slider/index.vue.d.ts +64 -0
  70. package/lib/src/ap-field/slider/index.vue.js +1 -0
  71. package/lib/src/ap-field/slider/index.vue2.js +1 -0
  72. package/lib/src/ap-field/switch/index.vue.js +1 -1
  73. package/lib/src/ap-field/text/index.d.ts +8 -0
  74. package/lib/src/ap-field/text/index.js +1 -0
  75. package/lib/src/ap-field/text/index.vue.d.ts +2 -2
  76. package/lib/src/ap-field/text/index.vue.js +1 -1
  77. package/lib/src/ap-field/text/index.vue2.js +1 -1
  78. package/lib/src/ap-field/text/input-password-props.d.ts +13 -0
  79. package/lib/src/ap-field/text/password.vue.d.ts +74 -0
  80. package/lib/src/ap-field/text/password.vue.js +1 -0
  81. package/lib/src/ap-field/text/password.vue2.js +1 -0
  82. package/lib/src/ap-field/text-area/index.vue.d.ts +3 -0
  83. package/lib/src/ap-field/text-area/index.vue.js +1 -1
  84. package/lib/src/ap-form/items/index.d.ts +2 -2
  85. package/lib/src/ap-form/items/index.js +1 -1
  86. package/lib/src/ap-form/items/interface.d.ts +6 -1
  87. package/lib/src/ap-form/items/text/index.d.ts +8 -0
  88. package/lib/src/ap-form/items/text/index.js +1 -0
  89. package/lib/src/ap-form/items/text/index.vue.js +1 -1
  90. package/lib/src/ap-form/items/text/index.vue2.js +1 -1
  91. package/lib/src/ap-form/items/text/password.vue.d.ts +63 -0
  92. package/lib/src/ap-form/items/text/password.vue.js +1 -0
  93. package/lib/src/ap-form/items/text/password.vue2.js +1 -0
  94. package/lib/src/ap-form/search-form/index.vue.js +1 -1
  95. package/lib/src/ap-table/ap-table.vue.d.ts +2 -1
  96. package/lib/src/ap-table/ap-table.vue.js +1 -1
  97. package/lib/src/ap-table/constants.d.ts +4644 -1597
  98. package/lib/src/ap-table/constants.js +1 -1
  99. package/lib/src/ap-table/hooks/use-table-paging.js +1 -1
  100. package/lib/src/ap-table/interface.d.ts +11 -3
  101. package/lib/src/ap-table/utils.d.ts +1 -1
  102. package/lib/src/index.js +1 -1
  103. package/package.json +3 -3
@@ -15,7 +15,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
15
15
  bordered: boolean;
16
16
  type: string;
17
17
  lazy: boolean;
18
- allowClear: undefined;
18
+ allowClear: boolean;
19
19
  }>, {
20
20
  focus: (options?: InputFocusOptions | undefined) => void;
21
21
  blur: () => void;
@@ -30,7 +30,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
30
30
  bordered: boolean;
31
31
  type: string;
32
32
  lazy: boolean;
33
- allowClear: undefined;
33
+ allowClear: boolean;
34
34
  }>>> & {
35
35
  "onUpdate:value"?: ((...args: any[]) => any) | undefined;
36
36
  }, {
@@ -1,133 +1,4 @@
1
- import { isVNode as x, defineComponent as v, ref as B, useSlots as g, computed as b, createVNode as p, mergeProps as C, unref as i, Fragment as h, openBlock as S, createBlock as _, resolveDynamicComponent as R } from "vue";
2
- import { Input as V } from "ant-design-vue";
3
- import "../../hooks/index.mjs";
4
- import { omit as j } from "lodash-unified";
5
- import { useControllableValue as F } from "../../hooks/useControllableValue.mjs";
6
- function T(u) {
7
- return typeof u == "function" || Object.prototype.toString.call(u) === "[object Object]" && !x(u);
8
- }
9
- const K = /* @__PURE__ */ v({
10
- name: "ApFieldText",
11
- __name: "index",
12
- props: {
13
- mode: {
14
- default: "edit"
15
- },
16
- id: {},
17
- placeholder: {},
18
- autocomplete: {},
19
- type: {
20
- default: "text"
21
- },
22
- name: {},
23
- size: {},
24
- autofocus: {
25
- type: Boolean
26
- },
27
- lazy: {
28
- type: Boolean,
29
- default: !0
30
- },
31
- maxlength: {},
32
- loading: {
33
- type: Boolean
34
- },
35
- bordered: {
36
- type: Boolean,
37
- default: !0
38
- },
39
- showCount: {
40
- type: [Boolean, Object]
41
- },
42
- htmlSize: {},
43
- onPressEnter: {},
44
- onKeydown: {},
45
- onKeyup: {},
46
- onFocus: {},
47
- onBlur: {},
48
- onChange: {},
49
- onInput: {},
50
- "onUpdate:value": {},
51
- onCompositionstart: {},
52
- onCompositionend: {},
53
- valueModifiers: {},
54
- hidden: {
55
- type: Boolean
56
- },
57
- status: {},
58
- value: {},
59
- defaultValue: {},
60
- inputElement: {},
61
- prefixCls: {},
62
- disabled: {
63
- type: Boolean
64
- },
65
- focused: {
66
- type: Boolean
67
- },
68
- triggerFocus: {},
69
- readonly: {
70
- type: Boolean
71
- },
72
- handleReset: {},
73
- addonBefore: {},
74
- addonAfter: {},
75
- prefix: {},
76
- suffix: {},
77
- clearIcon: {},
78
- allowClear: {
79
- type: Boolean,
80
- default: void 0
81
- },
82
- emptyText: {
83
- default: "-"
84
- }
85
- },
86
- emits: ["update:value"],
87
- setup(u, {
88
- expose: d,
89
- emit: c
90
- }) {
91
- const n = B(), t = g();
92
- d({
93
- focus: (e) => {
94
- var o;
95
- (o = n.value) == null || o.focus(e);
96
- },
97
- blur: () => {
98
- var e;
99
- (e = n.value) == null || e.blur();
100
- },
101
- setSelectionRange: (e, o, y) => {
102
- var r;
103
- (r = n.value) == null || r.setSelectionRange(e, o, y);
104
- },
105
- select: () => {
106
- var e;
107
- (e = n.value) == null || e.select();
108
- },
109
- input: b(() => {
110
- var e;
111
- return (e = n.value) == null ? void 0 : e.input;
112
- })
113
- });
114
- const f = c, a = u, {
115
- value: l,
116
- updateValue: s
117
- } = F(a, f);
118
- function m() {
119
- var e, o;
120
- return a.mode === "edit" ? p(V, C(j(a, ["mode", "emptyText", "value", "onUpdate:value"]), {
121
- value: i(l),
122
- "onUpdate:value": s,
123
- ref: n
124
- }), T(t) ? t : {
125
- default: () => [t]
126
- }) : p(h, null, [a.prefix || ((e = t == null ? void 0 : t.prefix) == null ? void 0 : e.call(t)), i(l) || a.emptyText, a.suffix || ((o = t == null ? void 0 : t.suffix) == null ? void 0 : o.call(t))]);
127
- }
128
- return (e, o) => (S(), _(R(m())));
129
- }
130
- });
1
+ import f from "./index.vue2.mjs";
131
2
  export {
132
- K as default
3
+ f as default
133
4
  };
@@ -1,4 +1,133 @@
1
- import f from "./index.vue.mjs";
1
+ import { isVNode as x, defineComponent as v, ref as B, useSlots as g, computed as b, createVNode as p, mergeProps as C, unref as i, Fragment as h, openBlock as S, createBlock as _, resolveDynamicComponent as R } from "vue";
2
+ import { Input as V } from "ant-design-vue";
3
+ import "../../hooks/index.mjs";
4
+ import { omit as j } from "lodash-unified";
5
+ import { useControllableValue as F } from "../../hooks/useControllableValue.mjs";
6
+ function T(u) {
7
+ return typeof u == "function" || Object.prototype.toString.call(u) === "[object Object]" && !x(u);
8
+ }
9
+ const K = /* @__PURE__ */ v({
10
+ name: "ApFieldText",
11
+ __name: "index",
12
+ props: {
13
+ mode: {
14
+ default: "edit"
15
+ },
16
+ id: {},
17
+ placeholder: {},
18
+ autocomplete: {},
19
+ type: {
20
+ default: "text"
21
+ },
22
+ name: {},
23
+ size: {},
24
+ autofocus: {
25
+ type: Boolean
26
+ },
27
+ lazy: {
28
+ type: Boolean,
29
+ default: !0
30
+ },
31
+ maxlength: {},
32
+ loading: {
33
+ type: Boolean
34
+ },
35
+ bordered: {
36
+ type: Boolean,
37
+ default: !0
38
+ },
39
+ showCount: {
40
+ type: [Boolean, Object]
41
+ },
42
+ htmlSize: {},
43
+ onPressEnter: {},
44
+ onKeydown: {},
45
+ onKeyup: {},
46
+ onFocus: {},
47
+ onBlur: {},
48
+ onChange: {},
49
+ onInput: {},
50
+ "onUpdate:value": {},
51
+ onCompositionstart: {},
52
+ onCompositionend: {},
53
+ valueModifiers: {},
54
+ hidden: {
55
+ type: Boolean
56
+ },
57
+ status: {},
58
+ value: {},
59
+ defaultValue: {},
60
+ inputElement: {},
61
+ prefixCls: {},
62
+ disabled: {
63
+ type: Boolean
64
+ },
65
+ focused: {
66
+ type: Boolean
67
+ },
68
+ triggerFocus: {},
69
+ readonly: {
70
+ type: Boolean
71
+ },
72
+ handleReset: {},
73
+ addonBefore: {},
74
+ addonAfter: {},
75
+ prefix: {},
76
+ suffix: {},
77
+ clearIcon: {},
78
+ allowClear: {
79
+ type: Boolean,
80
+ default: !0
81
+ },
82
+ emptyText: {
83
+ default: "-"
84
+ }
85
+ },
86
+ emits: ["update:value"],
87
+ setup(u, {
88
+ expose: d,
89
+ emit: c
90
+ }) {
91
+ const n = B(), t = g();
92
+ d({
93
+ focus: (e) => {
94
+ var o;
95
+ (o = n.value) == null || o.focus(e);
96
+ },
97
+ blur: () => {
98
+ var e;
99
+ (e = n.value) == null || e.blur();
100
+ },
101
+ setSelectionRange: (e, o, y) => {
102
+ var r;
103
+ (r = n.value) == null || r.setSelectionRange(e, o, y);
104
+ },
105
+ select: () => {
106
+ var e;
107
+ (e = n.value) == null || e.select();
108
+ },
109
+ input: b(() => {
110
+ var e;
111
+ return (e = n.value) == null ? void 0 : e.input;
112
+ })
113
+ });
114
+ const f = c, a = u, {
115
+ value: l,
116
+ updateValue: s
117
+ } = F(a, f);
118
+ function m() {
119
+ var e, o;
120
+ return a.mode === "edit" ? p(V, C(j(a, ["mode", "emptyText", "value", "onUpdate:value"]), {
121
+ value: i(l),
122
+ "onUpdate:value": s,
123
+ ref: n
124
+ }), T(t) ? t : {
125
+ default: () => [t]
126
+ }) : p(h, null, [a.prefix || ((e = t == null ? void 0 : t.prefix) == null ? void 0 : e.call(t)), i(l) || a.emptyText, a.suffix || ((o = t == null ? void 0 : t.suffix) == null ? void 0 : o.call(t))]);
127
+ }
128
+ return (e, o) => (S(), _(R(m())));
129
+ }
130
+ });
2
131
  export {
3
- f as default
132
+ K as default
4
133
  };
@@ -0,0 +1,13 @@
1
+ import { InputProps } from 'ant-design-vue';
2
+
3
+ /**
4
+ * 根据antdv类型定义创建的Input.Password Props类型定义
5
+ */
6
+ export type InputPasswordProps = InputProps & {
7
+ prefixCls?: string;
8
+ inputPrefixCls?: string;
9
+ action?: string;
10
+ visibilityToggle?: boolean;
11
+ visible?: boolean;
12
+ 'onUpdate:visible'?: (visible: boolean) => void;
13
+ };
@@ -0,0 +1,74 @@
1
+ import { ApFieldTextPasswordProps, FieldMode } from '../interface';
2
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
3
+
4
+ type ApFieldTextPasswordSlots = {
5
+ addonAfter: any;
6
+ addonBefore: any;
7
+ prefix: any;
8
+ suffix: any;
9
+ clearIcon: any;
10
+ iconRender: any;
11
+ };
12
+ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ApFieldTextPasswordProps>, {
13
+ emptyText: string;
14
+ mode: string;
15
+ bordered: boolean;
16
+ type: string;
17
+ lazy: boolean;
18
+ allowClear: boolean;
19
+ visibilityToggle: boolean;
20
+ action: string;
21
+ visible: undefined;
22
+ }>, {
23
+ focus: () => void;
24
+ blur: () => void;
25
+ }, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
26
+ "update:value": (...args: any[]) => void;
27
+ "update:visible": (...args: any[]) => void;
28
+ }, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ApFieldTextPasswordProps>, {
29
+ emptyText: string;
30
+ mode: string;
31
+ bordered: boolean;
32
+ type: string;
33
+ lazy: boolean;
34
+ allowClear: boolean;
35
+ visibilityToggle: boolean;
36
+ action: string;
37
+ visible: undefined;
38
+ }>>> & {
39
+ "onUpdate:visible"?: ((...args: any[]) => any) | undefined;
40
+ "onUpdate:value"?: ((...args: any[]) => any) | undefined;
41
+ }, {
42
+ visible: boolean;
43
+ type: "number" | "text" | "color" | "button" | "time" | "image" | "search" | "submit" | "reset" | "hidden" | "tel" | "url" | "email" | "checkbox" | "radio" | "range" | "date" | "week" | "month" | "datetime-local" | "file" | "password";
44
+ mode: FieldMode;
45
+ bordered: boolean;
46
+ allowClear: boolean;
47
+ lazy: boolean;
48
+ action: string;
49
+ visibilityToggle: boolean;
50
+ emptyText: string;
51
+ }, {}>, Readonly<ApFieldTextPasswordSlots> & ApFieldTextPasswordSlots>;
52
+ export default _default;
53
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
54
+ type __VLS_TypePropsToRuntimeProps<T> = {
55
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
56
+ type: PropType<__VLS_NonUndefinedable<T[K]>>;
57
+ } : {
58
+ type: PropType<T[K]>;
59
+ required: true;
60
+ };
61
+ };
62
+ type __VLS_WithDefaults<P, D> = {
63
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
64
+ default: D[K];
65
+ }> : P[K];
66
+ };
67
+ type __VLS_Prettify<T> = {
68
+ [K in keyof T]: T[K];
69
+ } & {};
70
+ type __VLS_WithTemplateSlots<T, S> = T & {
71
+ new (): {
72
+ $slots: S;
73
+ };
74
+ };
@@ -0,0 +1,152 @@
1
+ import { isVNode as B, defineComponent as x, ref as C, useSlots as g, unref as p, createVNode as o, mergeProps as h, Fragment as V, openBlock as _, createBlock as w, resolveDynamicComponent as P } from "vue";
2
+ import { Input as S, Space as U } from "ant-design-vue";
3
+ import "../../hooks/index.mjs";
4
+ import { omit as O } from "lodash-unified";
5
+ import { EyeOutlined as T, EyeInvisibleOutlined as j } from "@ant-design/icons-vue";
6
+ import { useControllableValue as d } from "../../hooks/useControllableValue.mjs";
7
+ function k(t) {
8
+ return typeof t == "function" || Object.prototype.toString.call(t) === "[object Object]" && !B(t);
9
+ }
10
+ const D = /* @__PURE__ */ x({
11
+ name: "ApFieldTextPassword",
12
+ __name: "password",
13
+ props: {
14
+ mode: {
15
+ default: "edit"
16
+ },
17
+ id: {},
18
+ placeholder: {},
19
+ autocomplete: {},
20
+ type: {
21
+ default: "text"
22
+ },
23
+ name: {},
24
+ size: {},
25
+ autofocus: {
26
+ type: Boolean
27
+ },
28
+ lazy: {
29
+ type: Boolean,
30
+ default: !0
31
+ },
32
+ maxlength: {},
33
+ loading: {
34
+ type: Boolean
35
+ },
36
+ bordered: {
37
+ type: Boolean,
38
+ default: !0
39
+ },
40
+ showCount: {
41
+ type: [Boolean, Object]
42
+ },
43
+ htmlSize: {},
44
+ onPressEnter: {},
45
+ onKeydown: {},
46
+ onKeyup: {},
47
+ onFocus: {},
48
+ onBlur: {},
49
+ onChange: {},
50
+ onInput: {},
51
+ "onUpdate:value": {},
52
+ onCompositionstart: {},
53
+ onCompositionend: {},
54
+ valueModifiers: {},
55
+ hidden: {
56
+ type: Boolean
57
+ },
58
+ status: {},
59
+ value: {},
60
+ defaultValue: {},
61
+ inputElement: {},
62
+ prefixCls: {},
63
+ disabled: {
64
+ type: Boolean
65
+ },
66
+ focused: {
67
+ type: Boolean
68
+ },
69
+ triggerFocus: {},
70
+ readonly: {
71
+ type: Boolean
72
+ },
73
+ handleReset: {},
74
+ addonBefore: {},
75
+ addonAfter: {},
76
+ prefix: {},
77
+ suffix: {},
78
+ clearIcon: {},
79
+ allowClear: {
80
+ type: Boolean,
81
+ default: !0
82
+ },
83
+ inputPrefixCls: {},
84
+ action: {
85
+ default: "click"
86
+ },
87
+ visibilityToggle: {
88
+ type: Boolean,
89
+ default: !0
90
+ },
91
+ visible: {
92
+ type: Boolean,
93
+ default: void 0
94
+ },
95
+ "onUpdate:visible": {},
96
+ emptyText: {
97
+ default: "-"
98
+ }
99
+ },
100
+ emits: ["update:value", "update:visible"],
101
+ setup(t, {
102
+ expose: c,
103
+ emit: f
104
+ }) {
105
+ const a = C(), u = g();
106
+ c({
107
+ focus: () => {
108
+ var e;
109
+ (e = a.value) == null || e.focus();
110
+ },
111
+ blur: () => {
112
+ var e;
113
+ (e = a.value) == null || e.blur();
114
+ }
115
+ });
116
+ const i = f, l = t, {
117
+ value: m,
118
+ updateValue: v
119
+ } = d(l, i), {
120
+ value: y,
121
+ updateValue: s
122
+ } = d(l, i, {
123
+ valuePropName: "visible"
124
+ });
125
+ function b() {
126
+ const e = p(m), n = p(y);
127
+ if (l.mode === "edit")
128
+ return o(S.Password, h(O(l, ["mode", "emptyText", "value", "onUpdate:value", "visible", "onUpdate:visible"]), {
129
+ value: e,
130
+ "onUpdate:value": v,
131
+ visible: n,
132
+ "onUpdate:visible": s,
133
+ ref: a
134
+ }), k(u) ? u : {
135
+ default: () => [u]
136
+ });
137
+ let r = o(V, null, [l.emptyText]);
138
+ return e && (r = o(U, null, {
139
+ default: () => [o("span", null, [n ? e : "********"]), o("span", {
140
+ style: {
141
+ cursor: "pointer"
142
+ },
143
+ onClick: () => s(!n)
144
+ }, [n ? o(T, null, null) : o(j, null, null)])]
145
+ })), r;
146
+ }
147
+ return (e, n) => (_(), w(P(b())));
148
+ }
149
+ });
150
+ export {
151
+ D as default
152
+ };
@@ -0,0 +1,4 @@
1
+ import f from "./password.vue.mjs";
2
+ export {
3
+ f as default
4
+ };
@@ -8,6 +8,7 @@ declare const _default: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRunt
8
8
  mode: string;
9
9
  type: string;
10
10
  lazy: boolean;
11
+ allowClear: boolean;
11
12
  }>, {
12
13
  focus: (options?: InputFocusOptions | undefined) => void;
13
14
  blur: () => void;
@@ -20,12 +21,14 @@ declare const _default: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRunt
20
21
  mode: string;
21
22
  type: string;
22
23
  lazy: boolean;
24
+ allowClear: boolean;
23
25
  }>>> & {
24
26
  "onUpdate:value"?: ((...args: any[]) => any) | undefined;
25
27
  }, {
26
28
  type: "number" | "text" | "color" | "button" | "time" | "image" | "search" | "submit" | "reset" | "hidden" | "tel" | "url" | "email" | "checkbox" | "radio" | "range" | "date" | "week" | "month" | "datetime-local" | "file" | "password";
27
29
  mode: FieldMode;
28
30
  bordered: boolean;
31
+ allowClear: boolean;
29
32
  lazy: boolean;
30
33
  emptyText: string;
31
34
  }, {}>;
@@ -51,7 +51,7 @@ const I = /* @__PURE__ */ c({
51
51
  triggerFocus: {},
52
52
  handleReset: {},
53
53
  clearIcon: {},
54
- allowClear: { type: Boolean },
54
+ allowClear: { type: Boolean, default: !0 },
55
55
  emptyText: { default: "-" }
56
56
  },
57
57
  emits: ["update:value"],
@@ -1,4 +1,4 @@
1
- import { default as ApFormItemText } from './text/index.vue';
1
+ import { ApFormItemText, ApFormItemTextPassword } from './text';
2
2
  import { default as ApFormItemTextArea } from './text-area/index.vue';
3
3
  import { default as ApFormItemNumber } from './number/index.vue';
4
4
  import { default as ApFormItemDate } from './date/index.vue';
@@ -8,4 +8,4 @@ import { default as ApFormItemSelect } from './select/index.vue';
8
8
  import { default as ApFormItemSwitch } from './switch/index.vue';
9
9
  import { default as ApFormItemCheckbox } from './checkbox/index.vue';
10
10
 
11
- export { ApFormItemText, ApFormItemTextArea, ApFormItemNumber, ApFormItemDate, ApFormItemDateRange, ApFormItemRadio, ApFormItemSelect, ApFormItemSwitch, ApFormItemCheckbox };
11
+ export { ApFormItemText, ApFormItemTextArea, ApFormItemNumber, ApFormItemDate, ApFormItemDateRange, ApFormItemRadio, ApFormItemSelect, ApFormItemSwitch, ApFormItemCheckbox, ApFormItemTextPassword };
@@ -1,4 +1,4 @@
1
- import "./text/index.vue2.mjs";
1
+ import { ApFormItemText as F } from "./text/index.mjs";
2
2
  import "./text-area/index.vue2.mjs";
3
3
  import "./number/index.vue2.mjs";
4
4
  import "./date/index.vue2.mjs";
@@ -7,3 +7,6 @@ import "./radio/index.vue2.mjs";
7
7
  import "./select/index.vue2.mjs";
8
8
  import "./switch/index.vue2.mjs";
9
9
  import "./checkbox/index.vue2.mjs";
10
+ export {
11
+ F as ApFormItemText
12
+ };
@@ -1,4 +1,4 @@
1
- import { ApFieldCheckboxProps, ApFieldDateProps, ApFieldDateRangeProps, ApFieldNumberProps, ApFieldRadioProps, ApFieldSelectProps, ApFieldSwitchProps, ApFieldTextAreaProps, ApFieldTextProps } from '../../ap-field';
1
+ import { ApFieldCheckboxProps, ApFieldDateProps, ApFieldDateRangeProps, ApFieldNumberProps, ApFieldRadioProps, ApFieldSelectProps, ApFieldSwitchProps, ApFieldTextAreaProps, ApFieldTextPasswordProps, ApFieldTextProps } from '../../ap-field';
2
2
  import { ApFormItemProps } from '../interface';
3
3
 
4
4
  export type ApFormItemTextProps = ApFormItemProps & {
@@ -6,6 +6,11 @@ export type ApFormItemTextProps = ApFormItemProps & {
6
6
  placeholder?: string;
7
7
  disabled?: boolean;
8
8
  };
9
+ export type ApFormItemTextPasswordProps = ApFormItemProps & {
10
+ field?: Omit<ApFieldTextPasswordProps, 'value' | 'onUpdate:value'>;
11
+ placeholder?: string;
12
+ disabled?: boolean;
13
+ };
9
14
  export type ApFormItemTextAreaProps = Omit<ApFormItemProps, 'bordered'> & {
10
15
  field?: Omit<ApFieldTextAreaProps, 'value' | 'onUpdate:value'>;
11
16
  placeholder?: string;
@@ -0,0 +1,8 @@
1
+ import { default as _ApFormItemText } from './index.vue';
2
+ import { default as ApFormItemTextPassword } from './password.vue';
3
+
4
+ type ApFormItemTextType = typeof _ApFormItemText & {
5
+ Password: typeof ApFormItemTextPassword;
6
+ };
7
+ declare const ApFormItemText: ApFormItemTextType;
8
+ export { ApFormItemText, ApFormItemTextPassword };
@@ -0,0 +1,10 @@
1
+ import "./index.vue.mjs";
2
+ import "./password.vue2.mjs";
3
+ import m from "./index.vue2.mjs";
4
+ import o from "./password.vue.mjs";
5
+ const r = m;
6
+ r.Password = o;
7
+ export {
8
+ r as ApFormItemText,
9
+ o as ApFormItemTextPassword
10
+ };