@mcistudio/unoui-vue 1.0.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.
Files changed (187) hide show
  1. package/README.md +95 -0
  2. package/dist/alert/Alert.vue.d.ts +67 -0
  3. package/dist/alert/index.d.ts +40 -0
  4. package/dist/alert/index.js +2 -0
  5. package/dist/attrs.d.ts +11 -0
  6. package/dist/attrs.js +16 -0
  7. package/dist/attrs.js.map +1 -0
  8. package/dist/badge/Badge.vue.d.ts +57 -0
  9. package/dist/badge/BadgeRibbon.vue.d.ts +34 -0
  10. package/dist/badge/index.d.ts +42 -0
  11. package/dist/badge/index.js +2 -0
  12. package/dist/build.d.ts +2 -0
  13. package/dist/button/Button.vue.d.ts +46 -0
  14. package/dist/button/ButtonGroup.vue.d.ts +13 -0
  15. package/dist/button/index.d.ts +13 -0
  16. package/dist/button/index.js +2 -0
  17. package/dist/checkbox/Checkbox.vue.d.ts +47 -0
  18. package/dist/checkbox/CheckboxGroup.vue.d.ts +38 -0
  19. package/dist/checkbox/index.d.ts +30 -0
  20. package/dist/checkbox/index.js +2 -0
  21. package/dist/chunks/Progress-BL4KZ3HE.js +271 -0
  22. package/dist/chunks/Progress-BL4KZ3HE.js.map +1 -0
  23. package/dist/chunks/Skeleton-ohStUD4M.js +153 -0
  24. package/dist/chunks/Skeleton-ohStUD4M.js.map +1 -0
  25. package/dist/chunks/Table-DhXmuKQd.js +330 -0
  26. package/dist/chunks/Table-DhXmuKQd.js.map +1 -0
  27. package/dist/chunks/_plugin-vue_export-helper-B3ysoDQm.js +8 -0
  28. package/dist/chunks/alert-CczW_DKs.js +190 -0
  29. package/dist/chunks/alert-CczW_DKs.js.map +1 -0
  30. package/dist/chunks/badge-BHOZeImh.js +287 -0
  31. package/dist/chunks/badge-BHOZeImh.js.map +1 -0
  32. package/dist/chunks/button-pDObrN_X.js +168 -0
  33. package/dist/chunks/button-pDObrN_X.js.map +1 -0
  34. package/dist/chunks/checkbox-9_0oR4kg.js +260 -0
  35. package/dist/chunks/checkbox-9_0oR4kg.js.map +1 -0
  36. package/dist/chunks/colorpicker-CcizUCQv.js +594 -0
  37. package/dist/chunks/colorpicker-CcizUCQv.js.map +1 -0
  38. package/dist/chunks/datepicker-Cy808x7X.js +1414 -0
  39. package/dist/chunks/datepicker-Cy808x7X.js.map +1 -0
  40. package/dist/chunks/drawer-C3JZ28Xo.js +193 -0
  41. package/dist/chunks/drawer-C3JZ28Xo.js.map +1 -0
  42. package/dist/chunks/dropdown-0l967g7D.js +329 -0
  43. package/dist/chunks/dropdown-0l967g7D.js.map +1 -0
  44. package/dist/chunks/form-Qeqkd-HH.js +642 -0
  45. package/dist/chunks/form-Qeqkd-HH.js.map +1 -0
  46. package/dist/chunks/input-BDOXVCrK.js +1281 -0
  47. package/dist/chunks/input-BDOXVCrK.js.map +1 -0
  48. package/dist/chunks/inputOtp-Dyxj9lNj.js +261 -0
  49. package/dist/chunks/inputOtp-Dyxj9lNj.js.map +1 -0
  50. package/dist/chunks/message-xPfuG0EX.js +107 -0
  51. package/dist/chunks/message-xPfuG0EX.js.map +1 -0
  52. package/dist/chunks/millercolumns-Dp3fBrq6.js +426 -0
  53. package/dist/chunks/millercolumns-Dp3fBrq6.js.map +1 -0
  54. package/dist/chunks/modal-D6l1iIvE.js +81 -0
  55. package/dist/chunks/modal-D6l1iIvE.js.map +1 -0
  56. package/dist/chunks/pagination-Bc583AQX.js +265 -0
  57. package/dist/chunks/pagination-Bc583AQX.js.map +1 -0
  58. package/dist/chunks/popconfirm-D6lUfSxG.js +343 -0
  59. package/dist/chunks/popconfirm-D6lUfSxG.js.map +1 -0
  60. package/dist/chunks/qrcode-B0t_pZna.js +1099 -0
  61. package/dist/chunks/qrcode-B0t_pZna.js.map +1 -0
  62. package/dist/chunks/radio-DnYm59xH.js +477 -0
  63. package/dist/chunks/radio-DnYm59xH.js.map +1 -0
  64. package/dist/chunks/rate-0sme__Kb.js +309 -0
  65. package/dist/chunks/rate-0sme__Kb.js.map +1 -0
  66. package/dist/chunks/select-ChTfQM5u.js +417 -0
  67. package/dist/chunks/select-ChTfQM5u.js.map +1 -0
  68. package/dist/chunks/slider-C-W5GzTP.js +724 -0
  69. package/dist/chunks/slider-C-W5GzTP.js.map +1 -0
  70. package/dist/chunks/splitter-CgfiXY65.js +524 -0
  71. package/dist/chunks/splitter-CgfiXY65.js.map +1 -0
  72. package/dist/chunks/switch-BULGbODP.js +327 -0
  73. package/dist/chunks/switch-BULGbODP.js.map +1 -0
  74. package/dist/chunks/tab-Dxfg1_To.js +663 -0
  75. package/dist/chunks/tab-Dxfg1_To.js.map +1 -0
  76. package/dist/chunks/tag-BYmNsrZC.js +167 -0
  77. package/dist/chunks/tag-BYmNsrZC.js.map +1 -0
  78. package/dist/chunks/timepicker-DsGIdcf8.js +1059 -0
  79. package/dist/chunks/timepicker-DsGIdcf8.js.map +1 -0
  80. package/dist/chunks/tooltip-DMhiAqto.js +242 -0
  81. package/dist/chunks/tooltip-DMhiAqto.js.map +1 -0
  82. package/dist/colorpicker/ColorPicker.vue.d.ts +30 -0
  83. package/dist/colorpicker/color.d.ts +56 -0
  84. package/dist/colorpicker/color.js +99 -0
  85. package/dist/colorpicker/color.js.map +1 -0
  86. package/dist/colorpicker/index.d.ts +12 -0
  87. package/dist/colorpicker/index.js +2 -0
  88. package/dist/config.d.ts +55 -0
  89. package/dist/config.js +260 -0
  90. package/dist/config.js.map +1 -0
  91. package/dist/datepicker/DatePicker.vue.d.ts +82 -0
  92. package/dist/datepicker/RangePicker.vue.d.ts +87 -0
  93. package/dist/datepicker/index.d.ts +59 -0
  94. package/dist/datepicker/index.js +2 -0
  95. package/dist/drawer/Drawer.vue.d.ts +86 -0
  96. package/dist/drawer/index.d.ts +23 -0
  97. package/dist/drawer/index.js +2 -0
  98. package/dist/dropdown/Dropdown.vue.d.ts +118 -0
  99. package/dist/dropdown/index.d.ts +2 -0
  100. package/dist/dropdown/index.js +2 -0
  101. package/dist/form/Form.vue.d.ts +170 -0
  102. package/dist/form/FormItem.vue.d.ts +83 -0
  103. package/dist/form/index.d.ts +176 -0
  104. package/dist/form/index.js +2 -0
  105. package/dist/index.d.ts +31 -0
  106. package/dist/index.js +32 -0
  107. package/dist/input/Autocomplete.vue.d.ts +121 -0
  108. package/dist/input/Input.vue.d.ts +142 -0
  109. package/dist/input/InputI18n.vue.d.ts +80 -0
  110. package/dist/input/InputTag.vue.d.ts +114 -0
  111. package/dist/input/index.d.ts +41 -0
  112. package/dist/input/index.js +2 -0
  113. package/dist/inputOtp/InputOtp.vue.d.ts +60 -0
  114. package/dist/inputOtp/index.d.ts +21 -0
  115. package/dist/inputOtp/index.js +2 -0
  116. package/dist/message/MessageContainer.vue.d.ts +11 -0
  117. package/dist/message/index.d.ts +20 -0
  118. package/dist/message/index.js +2 -0
  119. package/dist/message/types.d.ts +25 -0
  120. package/dist/millercolumns/MillerColumns.vue.d.ts +88 -0
  121. package/dist/millercolumns/index.d.ts +39 -0
  122. package/dist/millercolumns/index.js +2 -0
  123. package/dist/modal/Modal.vue.d.ts +54 -0
  124. package/dist/modal/index.d.ts +2 -0
  125. package/dist/modal/index.js +2 -0
  126. package/dist/pagination/Pagination.vue.d.ts +70 -0
  127. package/dist/pagination/index.d.ts +12 -0
  128. package/dist/pagination/index.js +2 -0
  129. package/dist/popconfirm/Popconfirm.vue.d.ts +104 -0
  130. package/dist/popconfirm/index.d.ts +36 -0
  131. package/dist/popconfirm/index.js +2 -0
  132. package/dist/progress/Progress.vue.d.ts +64 -0
  133. package/dist/progress/index.d.ts +26 -0
  134. package/dist/progress/index.js +2 -0
  135. package/dist/qrcode/QRCode.vue.d.ts +87 -0
  136. package/dist/qrcode/index.d.ts +43 -0
  137. package/dist/qrcode/index.js +2 -0
  138. package/dist/qrcode/qr.d.ts +51 -0
  139. package/dist/qrcode/qrcodegen.d.ts +94 -0
  140. package/dist/radio/Radio.vue.d.ts +52 -0
  141. package/dist/radio/RadioGroup.vue.d.ts +44 -0
  142. package/dist/radio/index.d.ts +55 -0
  143. package/dist/radio/index.js +2 -0
  144. package/dist/rate/Rate.vue.d.ts +100 -0
  145. package/dist/rate/index.d.ts +38 -0
  146. package/dist/rate/index.js +2 -0
  147. package/dist/select/Select.vue.d.ts +129 -0
  148. package/dist/select/index.d.ts +33 -0
  149. package/dist/select/index.js +2 -0
  150. package/dist/skeleton/Skeleton.vue.d.ts +31 -0
  151. package/dist/skeleton/index.d.ts +2 -0
  152. package/dist/skeleton/index.js +2 -0
  153. package/dist/slider/Slider.vue.d.ts +81 -0
  154. package/dist/slider/index.d.ts +61 -0
  155. package/dist/slider/index.js +2 -0
  156. package/dist/splitter/Splitter.vue.d.ts +63 -0
  157. package/dist/splitter/SplitterPanel.vue.d.ts +53 -0
  158. package/dist/splitter/index.d.ts +39 -0
  159. package/dist/splitter/index.js +2 -0
  160. package/dist/style.css +2 -0
  161. package/dist/switch/Switch.vue.d.ts +97 -0
  162. package/dist/switch/index.d.ts +31 -0
  163. package/dist/switch/index.js +2 -0
  164. package/dist/tab/TabPane.vue.d.ts +32 -0
  165. package/dist/tab/Tabs.vue.d.ts +87 -0
  166. package/dist/tab/index.d.ts +78 -0
  167. package/dist/tab/index.js +2 -0
  168. package/dist/table/Table.vue.d.ts +96 -0
  169. package/dist/table/index.d.ts +3 -0
  170. package/dist/table/index.js +2 -0
  171. package/dist/table/types.d.ts +35 -0
  172. package/dist/table/types.js +0 -0
  173. package/dist/tag/Tag.vue.d.ts +46 -0
  174. package/dist/tag/index.d.ts +11 -0
  175. package/dist/tag/index.js +2 -0
  176. package/dist/timepicker/TimePicker.vue.d.ts +92 -0
  177. package/dist/timepicker/TimeRangePicker.vue.d.ts +90 -0
  178. package/dist/timepicker/index.d.ts +39 -0
  179. package/dist/timepicker/index.js +2 -0
  180. package/dist/tooltip/Tooltip.vue.d.ts +79 -0
  181. package/dist/tooltip/index.d.ts +14 -0
  182. package/dist/tooltip/index.js +2 -0
  183. package/dist/uno.d.ts +32 -0
  184. package/dist/uno.js +83 -0
  185. package/dist/uno.js.map +1 -0
  186. package/dist/utils/DnD.d.ts +38 -0
  187. package/package.json +115 -0
@@ -0,0 +1,80 @@
1
+ import type { InputProps } from '.';
2
+ type I18nInputValue = Record<string, string>;
3
+ type __VLS_Props = {
4
+ /** modelValue 是多语言文本对象,key 为语言码。 */
5
+ modelValue?: I18nInputValue;
6
+ /** languages 是当前项目启用的语言;未传时使用后台内置语言列表。 */
7
+ languages?: string[];
8
+ /** size 是输入框尺寸,可选,默认 md。 */
9
+ size?: InputProps['size'];
10
+ /** disabled 表示是否禁用输入和编辑器入口。 */
11
+ disabled?: boolean;
12
+ /** readonly 表示是否只读;只读时禁止直接输入,但仍允许打开编辑器查看。 */
13
+ readonly?: boolean;
14
+ /** placeholder 是主输入占位文案。 */
15
+ placeholder?: string;
16
+ /** name 是主输入原生 name。 */
17
+ name?: string;
18
+ /** clearable 表示是否允许一键清空当前语言文本。 */
19
+ clearable?: boolean;
20
+ /** prefixIcon 是主输入前缀图标类名。 */
21
+ prefixIcon?: string;
22
+ /** suffixIcon 是主输入后缀图标类名。 */
23
+ suffixIcon?: string;
24
+ /** prefix 是主输入前缀文字。 */
25
+ prefix?: string;
26
+ /** suffix 是主输入后缀文字。 */
27
+ suffix?: string;
28
+ /** autocomplete 是主输入原生 autocomplete。 */
29
+ autocomplete?: string;
30
+ /** modalZIndex 用于在 Drawer 等浮层内提高多语言编辑器层级。 */
31
+ modalZIndex?: number | string;
32
+ };
33
+ declare var __VLS_14: {}, __VLS_17: {}, __VLS_20: {}, __VLS_23: {};
34
+ type __VLS_Slots = {} & {
35
+ prepend?: (props: typeof __VLS_14) => any;
36
+ } & {
37
+ prefix?: (props: typeof __VLS_17) => any;
38
+ } & {
39
+ suffix?: (props: typeof __VLS_20) => any;
40
+ } & {
41
+ append?: (props: typeof __VLS_23) => any;
42
+ };
43
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
44
+ input: (value: I18nInputValue, event?: Event | undefined) => any;
45
+ clear: () => any;
46
+ change: (value: I18nInputValue, event?: Event | undefined) => any;
47
+ focus: (event: FocusEvent) => any;
48
+ blur: (event: FocusEvent) => any;
49
+ "update:modelValue": (value: I18nInputValue) => any;
50
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
51
+ onInput?: ((value: I18nInputValue, event?: Event | undefined) => any) | undefined;
52
+ onClear?: (() => any) | undefined;
53
+ onChange?: ((value: I18nInputValue, event?: Event | undefined) => any) | undefined;
54
+ onFocus?: ((event: FocusEvent) => any) | undefined;
55
+ onBlur?: ((event: FocusEvent) => any) | undefined;
56
+ "onUpdate:modelValue"?: ((value: I18nInputValue) => any) | undefined;
57
+ }>, {
58
+ size: "sm" | "md" | "lg" | null;
59
+ disabled: boolean;
60
+ name: string;
61
+ modelValue: I18nInputValue;
62
+ languages: string[];
63
+ placeholder: string;
64
+ clearable: boolean;
65
+ suffixIcon: string;
66
+ prefixIcon: string;
67
+ prefix: string;
68
+ suffix: string;
69
+ autocomplete: string;
70
+ readonly: boolean;
71
+ modalZIndex: number | string;
72
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
73
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
74
+ declare const _default: typeof __VLS_export;
75
+ export default _default;
76
+ type __VLS_WithSlots<T, S> = T & {
77
+ new (): {
78
+ $slots: S;
79
+ };
80
+ };
@@ -0,0 +1,114 @@
1
+ import { type InputProps } from '.';
2
+ import { type TagProps } from '../tag';
3
+ type TriggerKey = 'Enter' | 'Space' | 'Tab' | ',' | ';' | ' ';
4
+ type __VLS_Props = {
5
+ /** modelValue 是标签数组,可选。 */
6
+ modelValue?: string[];
7
+ /** size 是输入框尺寸,可选,默认 md,并与 Input/Button 高度对齐。 */
8
+ size?: InputProps['size'];
9
+ /** disabled 表示是否禁用输入和交互,可选,默认 false。 */
10
+ disabled?: boolean;
11
+ /** readonly 表示是否只读,可选,默认 false。 */
12
+ readonly?: boolean;
13
+ /** placeholder 是无标签时的占位文案,可选。 */
14
+ placeholder?: string;
15
+ /** inputPlaceholder 是已有标签后的输入占位文案,可选。 */
16
+ inputPlaceholder?: string;
17
+ /** clearable 表示是否显示一键清空按钮,可选,默认 false。 */
18
+ clearable?: boolean;
19
+ /** clearIcon 是清空按钮自定义图标类名,可选,默认 lucide:x。 */
20
+ clearIcon?: string;
21
+ /** closeIcon 是标签关闭按钮自定义图标类名,可选,默认 lucide:x。 */
22
+ closeIcon?: string;
23
+ /** trigger 是创建标签的按键集合,可选,默认 Enter。 */
24
+ trigger?: TriggerKey | TriggerKey[];
25
+ /** delimiters 是粘贴或输入时可拆分标签的分隔符,可选。 */
26
+ delimiters?: string[];
27
+ /** max 是最多可创建的标签数量,可选。 */
28
+ max?: number;
29
+ /** maxlength 是单个标签最大输入字数,可选。 */
30
+ maxlength?: number;
31
+ /** validateTag 用于自定义标签是否允许创建,可选。 */
32
+ validateTag?: (value: string) => boolean;
33
+ /** allowDuplicates 表示是否允许重复标签,可选,默认 false。 */
34
+ allowDuplicates?: boolean;
35
+ /** tagColor 是内部标签语义色,可选,默认 gray。 */
36
+ tagColor?: TagProps['color'];
37
+ /** tagVariant 是内部标签视觉效果,可选,默认 light。 */
38
+ tagVariant?: TagProps['variant'];
39
+ /** tagRadius 是内部标签圆角,可选,默认 md。 */
40
+ tagRadius?: TagProps['radius'];
41
+ /** name 是内部输入的原生 name,可选。 */
42
+ name?: string;
43
+ /** autocomplete 是内部输入的原生 autocomplete,可选。 */
44
+ autocomplete?: string;
45
+ };
46
+ declare var __VLS_1: {}, __VLS_3: {}, __VLS_13: {
47
+ tag: string;
48
+ index: number;
49
+ }, __VLS_15: {}, __VLS_17: {};
50
+ type __VLS_Slots = {} & {
51
+ prepend?: (props: typeof __VLS_1) => any;
52
+ } & {
53
+ prefix?: (props: typeof __VLS_3) => any;
54
+ } & {
55
+ tag?: (props: typeof __VLS_13) => any;
56
+ } & {
57
+ suffix?: (props: typeof __VLS_15) => any;
58
+ } & {
59
+ append?: (props: typeof __VLS_17) => any;
60
+ };
61
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {
62
+ blur: () => void | undefined;
63
+ clear: () => void;
64
+ focus: () => void | undefined;
65
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
66
+ input: (value: string[]) => any;
67
+ clear: () => any;
68
+ change: (value: string[]) => any;
69
+ focus: (event: FocusEvent) => any;
70
+ blur: (event: FocusEvent) => any;
71
+ "update:modelValue": (value: string[]) => any;
72
+ keydown: (event: KeyboardEvent) => any;
73
+ "add-tag": (value: string) => any;
74
+ "remove-tag": (value: string, index: number) => any;
75
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
76
+ onInput?: ((value: string[]) => any) | undefined;
77
+ onClear?: (() => any) | undefined;
78
+ onChange?: ((value: string[]) => any) | undefined;
79
+ onFocus?: ((event: FocusEvent) => any) | undefined;
80
+ onBlur?: ((event: FocusEvent) => any) | undefined;
81
+ "onUpdate:modelValue"?: ((value: string[]) => any) | undefined;
82
+ onKeydown?: ((event: KeyboardEvent) => any) | undefined;
83
+ "onAdd-tag"?: ((value: string) => any) | undefined;
84
+ "onRemove-tag"?: ((value: string, index: number) => any) | undefined;
85
+ }>, {
86
+ size: "sm" | "md" | "lg" | null;
87
+ disabled: boolean;
88
+ name: string;
89
+ modelValue: string[];
90
+ trigger: TriggerKey | TriggerKey[];
91
+ delimiters: string[];
92
+ placeholder: string;
93
+ clearable: boolean;
94
+ clearIcon: string;
95
+ max: number;
96
+ maxlength: number;
97
+ autocomplete: string;
98
+ readonly: boolean;
99
+ closeIcon: string;
100
+ inputPlaceholder: string;
101
+ validateTag: (value: string) => boolean;
102
+ allowDuplicates: boolean;
103
+ tagColor: "blue" | "cyan" | "gray" | "green" | "indigo" | "lime" | "orange" | "pink" | "purple" | "red" | "teal" | "yellow" | "brand" | null;
104
+ tagVariant: "dark" | "light" | "plain" | "soft" | null;
105
+ tagRadius: "none" | "round" | "sm" | "md" | "lg" | null;
106
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
107
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
108
+ declare const _default: typeof __VLS_export;
109
+ export default _default;
110
+ type __VLS_WithSlots<T, S> = T & {
111
+ new (): {
112
+ $slots: S;
113
+ };
114
+ };
@@ -0,0 +1,41 @@
1
+ import type { VariantProps } from 'class-variance-authority';
2
+ export { default as Input } from './Input.vue';
3
+ export { default as Autocomplete } from './Autocomplete.vue';
4
+ export { default as InputI18n } from './InputI18n.vue';
5
+ export { default as InputTag } from './InputTag.vue';
6
+ /** AutocompleteSuggestion 是 Input 自动补全建议项的默认结构。 */
7
+ export interface AutocompleteSuggestion {
8
+ value: string;
9
+ disabled?: boolean;
10
+ [key: string]: unknown;
11
+ }
12
+ /** AutocompleteDataSourceCallback 是异步返回自动补全建议项的回调函数。 */
13
+ export type AutocompleteDataSourceCallback = (suggestions: AutocompleteSuggestion[]) => void;
14
+ /** AutocompleteDataSource 是 Input 自动补全建议源,兼容静态数组和回调式远程查询。 */
15
+ export type AutocompleteDataSource = AutocompleteSuggestion[] | ((query: string, callback: AutocompleteDataSourceCallback) => void);
16
+ /** inputWrapper 定义管理端 Input 组件外层容器的样式变体组合。 */
17
+ export declare const inputWrapper: (props?: ({
18
+ size?: "sm" | "md" | "lg" | null | undefined;
19
+ focused?: boolean | null | undefined;
20
+ disabled?: boolean | null | undefined;
21
+ multiline?: boolean | null | undefined;
22
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
23
+ /** inputControl 定义原生 input/textarea 的尺寸与排版样式。 */
24
+ export declare const inputControl: (props?: ({
25
+ size?: "sm" | "md" | "lg" | null | undefined;
26
+ multiline?: boolean | null | undefined;
27
+ number?: boolean | null | undefined;
28
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
29
+ /** inputGroup 定义 Input 与复合前后置内容的外层排版。 */
30
+ export declare const inputGroup: (props?: ({
31
+ size?: "sm" | "md" | "lg" | null | undefined;
32
+ multiline?: boolean | null | undefined;
33
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
34
+ /** inputAddon 定义 Input 复合前后置内容容器的样式。 */
35
+ export declare const inputAddon: (props?: ({
36
+ position?: "prepend" | "append" | null | undefined;
37
+ size?: "sm" | "md" | "lg" | null | undefined;
38
+ disabled?: boolean | null | undefined;
39
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
40
+ /** InputProps 是 inputWrapper 变体推导出的组件属性类型。 */
41
+ export type InputProps = VariantProps<typeof inputWrapper>;
@@ -0,0 +1,2 @@
1
+ import { a as e, c as t, i as n, n as r, o as i, r as a, s as o, t as s } from "../chunks/input-BDOXVCrK.js";
2
+ export { o as Autocomplete, t as Input, i as InputI18n, e as InputTag, s as inputAddon, r as inputControl, a as inputGroup, n as inputWrapper };
@@ -0,0 +1,60 @@
1
+ import { type InputOtpProps } from '.';
2
+ type InputOtpModelValue = string | number;
3
+ type InputOtpFinishCallback = (success: boolean) => void;
4
+ type __VLS_Props = {
5
+ /** modelValue 是默认 v-model 绑定值。 */
6
+ modelValue?: InputOtpModelValue;
7
+ /** digits 是验证码位数,默认 6 位。 */
8
+ digits?: number;
9
+ /** autofocus 表示挂载后是否自动聚焦首个输入格。 */
10
+ autofocus?: boolean;
11
+ /** disabled 表示是否禁用输入。 */
12
+ disabled?: boolean;
13
+ /** readonly 表示是否只读展示。 */
14
+ readonly?: boolean;
15
+ /** size 是输入格尺寸,可选,默认 md。 */
16
+ size?: InputOtpProps['size'];
17
+ /** gap 是输入格之间的间距,可选,默认 md。 */
18
+ gap?: InputOtpProps['gap'];
19
+ /** name 是表单提交时隐藏字段的名称。 */
20
+ name?: string;
21
+ /** autocomplete 是原生自动填充策略,可选,默认 off。 */
22
+ autocomplete?: string;
23
+ /** ariaLabel 是每个输入格的无障碍标签前缀。 */
24
+ ariaLabel?: string;
25
+ };
26
+ declare function focus(): void;
27
+ declare function blur(): void;
28
+ declare function clear(): void;
29
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {
30
+ blur: typeof blur;
31
+ clear: typeof clear;
32
+ focus: typeof focus;
33
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
34
+ input: (value: string, event: Event) => any;
35
+ change: (value: string, event?: Event | undefined) => any;
36
+ focus: (event: FocusEvent) => any;
37
+ blur: (event: FocusEvent) => any;
38
+ "update:modelValue": (value: string) => any;
39
+ finish: (callback: InputOtpFinishCallback) => any;
40
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
41
+ onInput?: ((value: string, event: Event) => any) | undefined;
42
+ onChange?: ((value: string, event?: Event | undefined) => any) | undefined;
43
+ onFocus?: ((event: FocusEvent) => any) | undefined;
44
+ onBlur?: ((event: FocusEvent) => any) | undefined;
45
+ "onUpdate:modelValue"?: ((value: string) => any) | undefined;
46
+ onFinish?: ((callback: InputOtpFinishCallback) => any) | undefined;
47
+ }>, {
48
+ size: "sm" | "md" | "lg" | null;
49
+ digits: number;
50
+ disabled: boolean;
51
+ name: string;
52
+ modelValue: InputOtpModelValue;
53
+ ariaLabel: string;
54
+ gap: "sm" | "md" | "lg" | null;
55
+ autocomplete: string;
56
+ readonly: boolean;
57
+ autofocus: boolean;
58
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
59
+ declare const _default: typeof __VLS_export;
60
+ export default _default;
@@ -0,0 +1,21 @@
1
+ import type { VariantProps } from 'class-variance-authority';
2
+ export { default as InputOtp } from './InputOtp.vue';
3
+ /** inputOtpRoot 定义验证码输入组件的外层布局。 */
4
+ export declare const inputOtpRoot: (props?: ({
5
+ disabled?: boolean | null | undefined;
6
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
7
+ /** inputOtpGroup 定义验证码输入格之间的间距。 */
8
+ export declare const inputOtpGroup: (props?: ({
9
+ gap?: "sm" | "md" | "lg" | null | undefined;
10
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
11
+ /** inputOtpCell 定义单个验证码输入格的状态与尺寸。 */
12
+ export declare const inputOtpCell: (props?: ({
13
+ size?: "sm" | "md" | "lg" | null | undefined;
14
+ focused?: boolean | null | undefined;
15
+ invalid?: boolean | null | undefined;
16
+ disabled?: boolean | null | undefined;
17
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
18
+ /** InputOtpProps 是 inputOtpCell 变体推导出的组件属性类型。 */
19
+ export type InputOtpProps = VariantProps<typeof inputOtpCell> & {
20
+ gap?: VariantProps<typeof inputOtpGroup>['gap'];
21
+ };
@@ -0,0 +1,2 @@
1
+ import { i as e, n as t, r as n, t as r } from "../chunks/inputOtp-Dyxj9lNj.js";
2
+ export { e as InputOtp, r as inputOtpCell, t as inputOtpGroup, n as inputOtpRoot };
@@ -0,0 +1,11 @@
1
+ import type { MessageHandler, MessageOptions } from './types';
2
+ declare function close(id: string): void;
3
+ declare function add(options: MessageOptions): MessageHandler;
4
+ declare function closeAll(): void;
5
+ declare const __VLS_export: import("vue").DefineComponent<{}, {
6
+ add: typeof add;
7
+ close: typeof close;
8
+ closeAll: typeof closeAll;
9
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
10
+ declare const _default: typeof __VLS_export;
11
+ export default _default;
@@ -0,0 +1,20 @@
1
+ import type { MessageHandler, MessageOptions, MessageParams, MessageType } from './types';
2
+ export type { MessageHandler, MessageOptions, MessageParams, MessageType };
3
+ export { default as MessageContainer } from './MessageContainer.vue';
4
+ declare function openMessage(params: MessageParams): MessageHandler;
5
+ /** message 是管理端轻量消息提示函数,兼容 Element Plus 常用快捷调用。 */
6
+ export declare const message: typeof openMessage & {
7
+ info: (params: MessageParams) => MessageHandler;
8
+ success: (params: MessageParams) => MessageHandler;
9
+ warning: (params: MessageParams) => MessageHandler;
10
+ error: (params: MessageParams) => MessageHandler;
11
+ closeAll: () => void;
12
+ };
13
+ /** Message 保留大写导出,方便在业务侧按组件名风格引入。 */
14
+ export declare const Message: typeof openMessage & {
15
+ info: (params: MessageParams) => MessageHandler;
16
+ success: (params: MessageParams) => MessageHandler;
17
+ warning: (params: MessageParams) => MessageHandler;
18
+ error: (params: MessageParams) => MessageHandler;
19
+ closeAll: () => void;
20
+ };
@@ -0,0 +1,2 @@
1
+ import { n as e, r as t, t as n } from "../chunks/message-xPfuG0EX.js";
2
+ export { n as Message, t as MessageContainer, e as message };
@@ -0,0 +1,25 @@
1
+ /** MessageType 是消息提示的语义类型。 */
2
+ export type MessageType = 'info' | 'success' | 'warning' | 'error';
3
+ /** MessageOptions 是 message 函数支持的配置项。 */
4
+ export interface MessageOptions {
5
+ message?: string;
6
+ type?: MessageType;
7
+ duration?: number;
8
+ showClose?: boolean;
9
+ offset?: number;
10
+ icon?: string;
11
+ id?: string;
12
+ onClose?: () => void;
13
+ }
14
+ /** MessageParams 兼容字符串快捷调用和对象配置。 */
15
+ export type MessageParams = string | MessageOptions;
16
+ /** MessageHandler 是 message 调用返回的关闭句柄。 */
17
+ export interface MessageHandler {
18
+ close: () => void;
19
+ }
20
+ export interface MessageRecord extends Required<Pick<MessageOptions, 'type' | 'duration' | 'showClose' | 'offset'>> {
21
+ id: string;
22
+ message: string;
23
+ icon?: string;
24
+ onClose?: () => void;
25
+ }
@@ -0,0 +1,88 @@
1
+ import '../assets/simplebar.css';
2
+ import { type MillerColumnsDataSource, type MillerColumnsFieldKey, type MillerColumnsId, type MillerColumnsParentId, type MillerColumnsProps, type MillerColumnsSelectEvent } from '.';
3
+ declare const __VLS_export: <T extends Record<string, unknown>>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
4
+ props: import("vue").PublicProps & __VLS_PrettifyLocal<({
5
+ /** dataSource 是扁平层级数据源,支持 Map 或数组。 */
6
+ dataSource: MillerColumnsDataSource<T>;
7
+ /** idKey 是节点主键字段。 */
8
+ idKey?: MillerColumnsFieldKey<T>;
9
+ /** parentIdKey 是父节点主键字段,根节点值应为 null。 */
10
+ parentIdKey?: MillerColumnsFieldKey<T>;
11
+ /** orderKey 是排序字段,开启 sortable 后拖拽排序会回写该字段。 */
12
+ orderKey?: MillerColumnsFieldKey<T>;
13
+ /** minHeight 是根容器和列滚动区最小高度。 */
14
+ minHeight?: string;
15
+ /** height 是每列内容滚动区高度。 */
16
+ height?: string;
17
+ /** width 是根容器宽度。 */
18
+ width?: string;
19
+ /** columnWidth 是单列宽度。 */
20
+ columnWidth?: string;
21
+ /** colWidth 兼容旧 mpMillerColumns 命名,新代码优先使用 columnWidth。 */
22
+ colWidth?: string;
23
+ /** infoPanelWidth 是右侧信息面板宽度。 */
24
+ infoPanelWidth?: string;
25
+ /** showInfoPanel 控制是否渲染右侧信息面板。 */
26
+ showInfoPanel?: boolean;
27
+ /** sortable 控制节点是否可拖拽排序。 */
28
+ sortable?: boolean;
29
+ /** emptyText 是空列文案。 */
30
+ emptyText?: string;
31
+ /** noDataText 是无数据文案。 */
32
+ noDataText?: string;
33
+ /** radius 控制根容器圆角。 */
34
+ radius?: MillerColumnsProps["radius"];
35
+ /** bordered 控制是否展示根容器边框。 */
36
+ bordered?: boolean;
37
+ /** autoHideScrollbar 控制 SimpleBar 滚动条是否自动隐藏。 */
38
+ autoHideScrollbar?: boolean;
39
+ /** ariaLabel 是层级列的无障碍名称。 */
40
+ ariaLabel?: string;
41
+ } & {
42
+ modelValue: MillerColumnsId[];
43
+ }) & {
44
+ onSelect?: ((value: MillerColumnsSelectEvent<T>) => any) | undefined;
45
+ "onUpdate:modelValue"?: ((value: MillerColumnsId[]) => any) | undefined;
46
+ onReorder?: ((ids: MillerColumnsId[]) => any) | undefined;
47
+ }> & (typeof globalThis extends {
48
+ __VLS_PROPS_FALLBACK: infer P;
49
+ } ? P : {});
50
+ expose: (exposed: {}) => void;
51
+ attrs: any;
52
+ slots: {
53
+ 'col-title'?: (props: {
54
+ colIndex: number;
55
+ itemCount: number;
56
+ parentId: MillerColumnsParentId;
57
+ }) => any;
58
+ } & {
59
+ 'item-left'?: (props: {
60
+ item: T;
61
+ active: boolean;
62
+ colIndex: number;
63
+ }) => any;
64
+ } & {
65
+ 'item-right'?: (props: {
66
+ item: T;
67
+ active: boolean;
68
+ colIndex: number;
69
+ }) => any;
70
+ } & {
71
+ 'info-panel'?: (props: {
72
+ item: T | null;
73
+ }) => any;
74
+ };
75
+ emit: {
76
+ (e: "reorder", ids: MillerColumnsId[]): void;
77
+ (e: "select", value: MillerColumnsSelectEvent<T>): void;
78
+ } & ((event: "update:modelValue", value: MillerColumnsId[]) => void);
79
+ }>) => import("vue").VNode & {
80
+ __ctx?: Awaited<typeof __VLS_setup>;
81
+ };
82
+ declare const _default: typeof __VLS_export;
83
+ export default _default;
84
+ type __VLS_PrettifyLocal<T> = (T extends any ? {
85
+ [K in keyof T]: T[K];
86
+ } : {
87
+ [K in keyof T as K]: T[K];
88
+ }) & {};
@@ -0,0 +1,39 @@
1
+ import type { VariantProps } from 'class-variance-authority';
2
+ export { default as MillerColumns } from './MillerColumns.vue';
3
+ /** MillerColumnsId 是层级列节点的主键类型。 */
4
+ export type MillerColumnsId = string | number;
5
+ /** MillerColumnsParentId 是层级列父节点主键,null 表示根层。 */
6
+ export type MillerColumnsParentId = MillerColumnsId | null;
7
+ /** MillerColumnsDataSource 是层级列支持的数据源结构。 */
8
+ export type MillerColumnsDataSource<T extends Record<string, unknown>> = Map<MillerColumnsId, T> | T[] | null | undefined;
9
+ /** MillerColumnsFieldKey 是数据项字段名。 */
10
+ export type MillerColumnsFieldKey<T extends Record<string, unknown>> = Extract<keyof T, string>;
11
+ /** MillerColumnsSelectEvent 是点击节点后的选择事件载荷。 */
12
+ export interface MillerColumnsSelectEvent<T extends Record<string, unknown>> {
13
+ ids: MillerColumnsId[];
14
+ id: MillerColumnsId;
15
+ item: T | null;
16
+ columnIndex: number;
17
+ }
18
+ /** millerColumnsRoot 定义层级列根容器样式。 */
19
+ export declare const millerColumnsRoot: (props?: ({
20
+ radius?: "none" | "sm" | "md" | "lg" | null | undefined;
21
+ bordered?: boolean | null | undefined;
22
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
23
+ /** millerColumnsColumn 定义单个 Miller column 容器样式。 */
24
+ export declare const millerColumnsColumn: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
25
+ /** millerColumnsHeader 定义列标题栏样式。 */
26
+ export declare const millerColumnsHeader: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
27
+ /** millerColumnsRows 定义单列列表样式。 */
28
+ export declare const millerColumnsRows: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
29
+ /** millerColumnsRow 定义节点行样式。 */
30
+ export declare const millerColumnsRow: (props?: ({
31
+ active?: boolean | null | undefined;
32
+ sortable?: boolean | null | undefined;
33
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
34
+ /** millerColumnsEmpty 定义空列或空数据提示样式。 */
35
+ export declare const millerColumnsEmpty: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
36
+ /** millerColumnsInfoPanel 定义右侧信息面板样式。 */
37
+ export declare const millerColumnsInfoPanel: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
38
+ /** MillerColumnsProps 是根容器变体推导出的组件属性类型。 */
39
+ export type MillerColumnsProps = VariantProps<typeof millerColumnsRoot>;
@@ -0,0 +1,2 @@
1
+ import { a as e, c as t, i as n, n as r, o as i, r as a, s as o, t as s } from "../chunks/millercolumns-Dp3fBrq6.js";
2
+ export { t as MillerColumns, s as millerColumnsColumn, r as millerColumnsEmpty, a as millerColumnsHeader, n as millerColumnsInfoPanel, e as millerColumnsRoot, i as millerColumnsRow, o as millerColumnsRows };
@@ -0,0 +1,54 @@
1
+ /**
2
+ * Modal 是轻量弹窗容器。
3
+ */
4
+ type __VLS_Props = {
5
+ /** visible 控制弹窗显示状态,必填。 */
6
+ visible: boolean;
7
+ /** title 是默认标题文本,可选。 */
8
+ title?: string;
9
+ /** width 是弹窗宽度,可选,支持数字像素或 CSS 长度。 */
10
+ width?: string | number;
11
+ /** height 是弹窗高度,可选,支持数字像素或 CSS 长度。 */
12
+ height?: string | number;
13
+ /** closeOnEsc 表示是否允许 Esc 关闭,可选,默认 true。 */
14
+ closeOnEsc?: boolean;
15
+ /** closeOnBackdrop 表示是否允许点击遮罩关闭,可选,默认 true。 */
16
+ closeOnBackdrop?: boolean;
17
+ /** showClose 表示是否展示右上角关闭按钮,可选,默认 true。 */
18
+ showClose?: boolean;
19
+ /** zIndex 控制弹窗层级,嵌套在 Drawer 等浮层内时可显式提高。 */
20
+ zIndex?: number | string;
21
+ /** eventPropagationSelector 允许特定嵌入式组件把鼠标事件继续交给 document/window 级监听器。 */
22
+ eventPropagationSelector?: string;
23
+ };
24
+ declare var __VLS_7: {}, __VLS_9: {}, __VLS_11: {}, __VLS_13: {};
25
+ type __VLS_Slots = {} & {
26
+ header?: (props: typeof __VLS_7) => any;
27
+ } & {
28
+ icon?: (props: typeof __VLS_9) => any;
29
+ } & {
30
+ default?: (props: typeof __VLS_11) => any;
31
+ } & {
32
+ footer?: (props: typeof __VLS_13) => any;
33
+ };
34
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
35
+ "update:visible": (value: boolean) => any;
36
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
37
+ "onUpdate:visible"?: ((value: boolean) => any) | undefined;
38
+ }>, {
39
+ width: string | number;
40
+ height: string | number;
41
+ zIndex: number | string;
42
+ showClose: boolean;
43
+ closeOnEsc: boolean;
44
+ closeOnBackdrop: boolean;
45
+ eventPropagationSelector: string;
46
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
47
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
48
+ declare const _default: typeof __VLS_export;
49
+ export default _default;
50
+ type __VLS_WithSlots<T, S> = T & {
51
+ new (): {
52
+ $slots: S;
53
+ };
54
+ };
@@ -0,0 +1,2 @@
1
+ /** 导出管理端轻量弹窗组件。 */
2
+ export { default as Modal } from './Modal.vue';
@@ -0,0 +1,2 @@
1
+ import { t as e } from "../chunks/modal-D6l1iIvE.js";
2
+ export { e as Modal };
@@ -0,0 +1,70 @@
1
+ import type { PaginationProps } from '.';
2
+ type __VLS_Props = {
3
+ /** total 是数据总数。 */
4
+ total?: number;
5
+ /** pageSize 是受控每页条数。 */
6
+ pageSize?: number;
7
+ /** defaultPageSize 是非受控每页条数初始值。 */
8
+ defaultPageSize?: number;
9
+ /** currentPage 是受控当前页码。 */
10
+ currentPage?: number;
11
+ /** defaultCurrentPage 是非受控当前页码初始值。 */
12
+ defaultCurrentPage?: number;
13
+ /** pageSizes 是每页条数选项。 */
14
+ pageSizes?: number[];
15
+ /** pagerCount 是连续页码按钮数量,应为大于等于 5 的奇数。 */
16
+ pagerCount?: number;
17
+ /** layout 控制子组件顺序,兼容 Element Plus 常用 layout 写法。 */
18
+ layout?: string;
19
+ /** size 控制分页器尺寸。 */
20
+ size?: PaginationProps['size'];
21
+ /** disabled 表示禁用所有分页交互。 */
22
+ disabled?: boolean;
23
+ /** hideOnSinglePage 表示仅一页时隐藏分页器。 */
24
+ hideOnSinglePage?: boolean;
25
+ /** background 表示页码按钮使用更明显的背景。 */
26
+ background?: boolean;
27
+ /** totalText 是总数文案前缀。 */
28
+ totalText?: string;
29
+ /** pageSizeSuffix 是每页条数文案后缀。 */
30
+ pageSizeSuffix?: string;
31
+ /** jumperText 是跳转输入前缀。 */
32
+ jumperText?: string;
33
+ /** prevText 是上一页文字,空值时展示图标。 */
34
+ prevText?: string;
35
+ /** nextText 是下一页文字,空值时展示图标。 */
36
+ nextText?: string;
37
+ };
38
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
39
+ change: (currentPage: number, pageSize: number) => any;
40
+ "update:currentPage": (value: number) => any;
41
+ "update:pageSize": (value: number) => any;
42
+ "current-change": (value: number) => any;
43
+ "size-change": (value: number) => any;
44
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
45
+ onChange?: ((currentPage: number, pageSize: number) => any) | undefined;
46
+ "onUpdate:currentPage"?: ((value: number) => any) | undefined;
47
+ "onUpdate:pageSize"?: ((value: number) => any) | undefined;
48
+ "onCurrent-change"?: ((value: number) => any) | undefined;
49
+ "onSize-change"?: ((value: number) => any) | undefined;
50
+ }>, {
51
+ size: "sm" | "md" | "lg" | null;
52
+ layout: string;
53
+ disabled: boolean;
54
+ background: boolean;
55
+ total: number;
56
+ pageSize: number;
57
+ defaultPageSize: number;
58
+ currentPage: number;
59
+ defaultCurrentPage: number;
60
+ pageSizes: number[];
61
+ pagerCount: number;
62
+ hideOnSinglePage: boolean;
63
+ totalText: string;
64
+ pageSizeSuffix: string;
65
+ jumperText: string;
66
+ prevText: string;
67
+ nextText: string;
68
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
69
+ declare const _default: typeof __VLS_export;
70
+ export default _default;