centui 0.0.0-stage → 3.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 (301) hide show
  1. package/LICENSE +433 -0
  2. package/README.md +54 -2
  3. package/dist/Agree-DT46e5q5.cjs +1 -0
  4. package/dist/Agree-yTGTi4e6.js +44 -0
  5. package/dist/Amount-De-oObat.cjs +1 -0
  6. package/dist/Amount-wOtRYOdx.js +62 -0
  7. package/dist/Button-BIi6CrwM.js +61 -0
  8. package/dist/Button-Blpwwbnw.cjs +1 -0
  9. package/dist/CellItem-T78DHako.cjs +1 -0
  10. package/dist/CellItem-YZD-BxKt.js +72 -0
  11. package/dist/CheckBoxBase-BDsytL_r.cjs +1 -0
  12. package/dist/CheckBoxBase-BjyVzGqj.js +40 -0
  13. package/dist/CheckList-Bfy3B-eN.js +239 -0
  14. package/dist/CheckList-DEmLmccw.cjs +1 -0
  15. package/dist/Codebox-Cgj7wyzd.cjs +1 -0
  16. package/dist/Codebox-D0UtCj11.js +189 -0
  17. package/dist/DatePicker-B1AVbKhK.cjs +1 -0
  18. package/dist/DatePicker-TAHuve5t.js +177 -0
  19. package/dist/Field-CseJzTZz.js +51 -0
  20. package/dist/Field-DDmHa4zB.cjs +1 -0
  21. package/dist/FieldItem-Cc7bw5vU.js +88 -0
  22. package/dist/FieldItem-Dkpx5Kxk.cjs +1 -0
  23. package/dist/Icon-dWGSK6Ou.js +119 -0
  24. package/dist/Icon-jaEPn7d7.cjs +31 -0
  25. package/dist/InputItem-EJ4Y3tpU.cjs +1 -0
  26. package/dist/InputItem-bhFtp97z.js +322 -0
  27. package/dist/NoticeBar-DSf_EjTL.cjs +1 -0
  28. package/dist/NoticeBar-PEYcjXwD.js +84 -0
  29. package/dist/NumberKeyboard-BX0c0l2r.cjs +1 -0
  30. package/dist/NumberKeyboard-C7TRF5iC.js +320 -0
  31. package/dist/Picker-D-TPtSxf.cjs +1 -0
  32. package/dist/Picker-Dam0LEcc.js +476 -0
  33. package/dist/Popup-Cm4BuaOo.cjs +1 -0
  34. package/dist/Popup-DPYBBL95.js +116 -0
  35. package/dist/PopupTitleBar-B4vwxKC7.cjs +1 -0
  36. package/dist/PopupTitleBar-nVurLaOe.js +85 -0
  37. package/dist/Progress-CwIC6scr.js +67 -0
  38. package/dist/Progress-DukssNvl.cjs +1 -0
  39. package/dist/Radio-ZHivLdvi.cjs +1 -0
  40. package/dist/Radio-fsc7_N5K.js +65 -0
  41. package/dist/RadioGroup-BR_jSDR4.cjs +1 -0
  42. package/dist/RadioGroup-CMPmk8X_.js +82 -0
  43. package/dist/RadioList-CkerkQEY.js +127 -0
  44. package/dist/RadioList-upQgua8Z.cjs +1 -0
  45. package/dist/Roller-DALhjhfg.cjs +1 -0
  46. package/dist/Roller-DFJ7jMV0.js +92 -0
  47. package/dist/RollerSuccess--JecJ7bz.cjs +1 -0
  48. package/dist/RollerSuccess-CVEmS9gU.js +224 -0
  49. package/dist/ScrollViewMore-BWph-i1-.cjs +1 -0
  50. package/dist/ScrollViewMore-BgYJx-TP.js +278 -0
  51. package/dist/Skeleton--SCiydNl.cjs +1 -0
  52. package/dist/Skeleton-BG_j23KI.js +55 -0
  53. package/dist/Slider-D3wrE8hn.cjs +1 -0
  54. package/dist/Slider-DteN8p-L.js +95 -0
  55. package/dist/Stepper-1EOk4pCY.js +127 -0
  56. package/dist/Stepper-BJr4I6_8.cjs +1 -0
  57. package/dist/SwiperItem-B6TgjCsM.cjs +1 -0
  58. package/dist/SwiperItem-CKd-XKT7.js +337 -0
  59. package/dist/Switch-B6DvVj2p.js +30 -0
  60. package/dist/Switch-BVPjF8CM.cjs +1 -0
  61. package/dist/Tag-CPv77lC8.cjs +1 -0
  62. package/dist/Tag-bs5j40pF.js +66 -0
  63. package/dist/Tip-BFZSiRc1.js +166 -0
  64. package/dist/Tip-C3brAF9N.cjs +1 -0
  65. package/dist/action-sheet-DKpi2GLQ.js +118 -0
  66. package/dist/action-sheet-LJilF3EQ.cjs +1 -0
  67. package/dist/action-sheet.cjs +1 -0
  68. package/dist/action-sheet.d.ts +2 -0
  69. package/dist/action-sheet.js +2 -0
  70. package/dist/activity-indicator.cjs +1 -0
  71. package/dist/activity-indicator.d.ts +1 -0
  72. package/dist/activity-indicator.js +3 -0
  73. package/dist/agree.cjs +1 -0
  74. package/dist/agree.d.ts +1 -0
  75. package/dist/agree.js +2 -0
  76. package/dist/amount.cjs +1 -0
  77. package/dist/amount.d.ts +1 -0
  78. package/dist/amount.js +2 -0
  79. package/dist/button.cjs +1 -0
  80. package/dist/button.d.ts +1 -0
  81. package/dist/button.js +2 -0
  82. package/dist/cell-item.cjs +1 -0
  83. package/dist/cell-item.d.ts +1 -0
  84. package/dist/cell-item.js +2 -0
  85. package/dist/check-base.cjs +1 -0
  86. package/dist/check-base.d.ts +1 -0
  87. package/dist/check-base.js +2 -0
  88. package/dist/check.cjs +1 -0
  89. package/dist/check.d.ts +1 -0
  90. package/dist/check.js +2 -0
  91. package/dist/codebox.cjs +1 -0
  92. package/dist/codebox.d.ts +1 -0
  93. package/dist/codebox.js +2 -0
  94. package/dist/components/action-bar/ActionBar.vue.d.ts +34 -0
  95. package/dist/components/action-bar/index.d.ts +2 -0
  96. package/dist/components/action-sheet/ActionSheet.vue.d.ts +44 -0
  97. package/dist/components/action-sheet/index.d.ts +25 -0
  98. package/dist/components/activity-indicator/ActivityIndicator.vue.d.ts +31 -0
  99. package/dist/components/activity-indicator/Carousel.vue.d.ts +10 -0
  100. package/dist/components/activity-indicator/CarouselCircle.vue.d.ts +12 -0
  101. package/dist/components/activity-indicator/Roller.vue.d.ts +37 -0
  102. package/dist/components/activity-indicator/RollerSuccess.vue.d.ts +14 -0
  103. package/dist/components/activity-indicator/Spinning.vue.d.ts +10 -0
  104. package/dist/components/activity-indicator/index.d.ts +5 -0
  105. package/dist/components/agree/Agree.vue.d.ts +35 -0
  106. package/dist/components/agree/index.d.ts +1 -0
  107. package/dist/components/amount/Amount.vue.d.ts +25 -0
  108. package/dist/components/amount/index.d.ts +1 -0
  109. package/dist/components/bill/Bill.vue.d.ts +33 -0
  110. package/dist/components/bill/index.d.ts +1 -0
  111. package/dist/components/button/Button.vue.d.ts +38 -0
  112. package/dist/components/button/index.d.ts +1 -0
  113. package/dist/components/captcha/Captcha.vue.d.ts +76 -0
  114. package/dist/components/captcha/index.d.ts +1 -0
  115. package/dist/components/cashier/Cashier.vue.d.ts +101 -0
  116. package/dist/components/cashier/CashierChannel.vue.d.ts +54 -0
  117. package/dist/components/cashier/CashierChannelButton.vue.d.ts +14 -0
  118. package/dist/components/cashier/CashierChannelItem.vue.d.ts +30 -0
  119. package/dist/components/cashier/index.d.ts +4 -0
  120. package/dist/components/cell-item/CellItem.vue.d.ts +38 -0
  121. package/dist/components/cell-item/index.d.ts +1 -0
  122. package/dist/components/chart/Chart.vue.d.ts +30 -0
  123. package/dist/components/chart/index.d.ts +2 -0
  124. package/dist/components/check/Check.vue.d.ts +38 -0
  125. package/dist/components/check/CheckBox.vue.d.ts +31 -0
  126. package/dist/components/check/CheckGroup.vue.d.ts +27 -0
  127. package/dist/components/check/CheckList.vue.d.ts +58 -0
  128. package/dist/components/check/index.d.ts +6 -0
  129. package/dist/components/check/shared.d.ts +52 -0
  130. package/dist/components/check-base/CheckBoxBase.vue.d.ts +25 -0
  131. package/dist/components/check-base/index.d.ts +1 -0
  132. package/dist/components/codebox/Codebox.vue.d.ts +58 -0
  133. package/dist/components/codebox/index.d.ts +1 -0
  134. package/dist/components/date-picker/DatePicker.vue.d.ts +70 -0
  135. package/dist/components/date-picker/index.d.ts +1 -0
  136. package/dist/components/detail-item/DetailItem.vue.d.ts +22 -0
  137. package/dist/components/detail-item/index.d.ts +1 -0
  138. package/dist/components/dialog/Dialog.vue.d.ts +78 -0
  139. package/dist/components/dialog/index.d.ts +40 -0
  140. package/dist/components/drop-menu/DropMenu.vue.d.ts +55 -0
  141. package/dist/components/drop-menu/index.d.ts +1 -0
  142. package/dist/components/field/Field.vue.d.ts +30 -0
  143. package/dist/components/field/index.d.ts +1 -0
  144. package/dist/components/field-item/FieldItem.vue.d.ts +42 -0
  145. package/dist/components/field-item/index.d.ts +1 -0
  146. package/dist/components/icon/Icon.vue.d.ts +20 -0
  147. package/dist/components/icon/default-svg-list.d.ts +2 -0
  148. package/dist/components/icon/index.d.ts +1 -0
  149. package/dist/components/icon/load-sprite.d.ts +6 -0
  150. package/dist/components/image-reader/ImageReader.vue.d.ts +46 -0
  151. package/dist/components/image-reader/index.d.ts +1 -0
  152. package/dist/components/image-viewer/ImageViewer.vue.d.ts +25 -0
  153. package/dist/components/image-viewer/index.d.ts +1 -0
  154. package/dist/components/index.d.ts +3 -0
  155. package/dist/components/input-item/InputItem.vue.d.ts +97 -0
  156. package/dist/components/input-item/cursor.d.ts +7 -0
  157. package/dist/components/input-item/index.d.ts +1 -0
  158. package/dist/components/landscape/Landscape.vue.d.ts +38 -0
  159. package/dist/components/landscape/index.d.ts +1 -0
  160. package/dist/components/license-plate/LicensePlate.vue.d.ts +32 -0
  161. package/dist/components/license-plate/LicensePlateInput.vue.d.ts +14 -0
  162. package/dist/components/license-plate/LicensePlateKeyboard.vue.d.ts +30 -0
  163. package/dist/components/license-plate/index.d.ts +3 -0
  164. package/dist/components/notice-bar/NoticeBar.vue.d.ts +44 -0
  165. package/dist/components/notice-bar/index.d.ts +1 -0
  166. package/dist/components/number-keyboard/KeyboardBoard.vue.d.ts +33 -0
  167. package/dist/components/number-keyboard/KeyboardKey.vue.d.ts +16 -0
  168. package/dist/components/number-keyboard/NumberKeyboard.vue.d.ts +59 -0
  169. package/dist/components/number-keyboard/index.d.ts +3 -0
  170. package/dist/components/picker/Picker.vue.d.ts +64 -0
  171. package/dist/components/picker/PickerColumn.vue.d.ts +64 -0
  172. package/dist/components/picker/index.d.ts +3 -0
  173. package/dist/components/popup/Popup.vue.d.ts +50 -0
  174. package/dist/components/popup/PopupTitleBar.vue.d.ts +41 -0
  175. package/dist/components/popup/index.d.ts +2 -0
  176. package/dist/components/progress/Progress.vue.d.ts +39 -0
  177. package/dist/components/progress/index.d.ts +1 -0
  178. package/dist/components/radio/Radio.vue.d.ts +39 -0
  179. package/dist/components/radio/RadioBox.vue.d.ts +31 -0
  180. package/dist/components/radio/RadioGroup.vue.d.ts +24 -0
  181. package/dist/components/radio/index.d.ts +3 -0
  182. package/dist/components/radio-list/RadioList.vue.d.ts +72 -0
  183. package/dist/components/radio-list/index.d.ts +2 -0
  184. package/dist/components/result-page/ResultPage.vue.d.ts +28 -0
  185. package/dist/components/result-page/index.d.ts +1 -0
  186. package/dist/components/ruler/Ruler.vue.d.ts +34 -0
  187. package/dist/components/ruler/index.d.ts +1 -0
  188. package/dist/components/scroll-view/ScrollView.vue.d.ts +84 -0
  189. package/dist/components/scroll-view/ScrollViewMore.vue.d.ts +12 -0
  190. package/dist/components/scroll-view/ScrollViewRefresh.vue.d.ts +20 -0
  191. package/dist/components/scroll-view/index.d.ts +3 -0
  192. package/dist/components/selector/Selector.vue.d.ts +88 -0
  193. package/dist/components/selector/index.d.ts +2 -0
  194. package/dist/components/skeleton/Skeleton.vue.d.ts +30 -0
  195. package/dist/components/skeleton/index.d.ts +1 -0
  196. package/dist/components/slider/Slider.vue.d.ts +24 -0
  197. package/dist/components/slider/index.d.ts +1 -0
  198. package/dist/components/stepper/Stepper.vue.d.ts +32 -0
  199. package/dist/components/stepper/index.d.ts +1 -0
  200. package/dist/components/steps/Steps.vue.d.ts +56 -0
  201. package/dist/components/steps/index.d.ts +2 -0
  202. package/dist/components/swiper/Swiper.vue.d.ts +57 -0
  203. package/dist/components/swiper/SwiperItem.vue.d.ts +26 -0
  204. package/dist/components/swiper/index.d.ts +2 -0
  205. package/dist/components/switch/Switch.vue.d.ts +16 -0
  206. package/dist/components/switch/index.d.ts +1 -0
  207. package/dist/components/tab-picker/TabPicker.vue.d.ts +78 -0
  208. package/dist/components/tab-picker/index.d.ts +1 -0
  209. package/dist/components/tabs/TabBar.vue.d.ts +50 -0
  210. package/dist/components/tabs/TabPane.vue.d.ts +31 -0
  211. package/dist/components/tabs/Tabs.vue.d.ts +34 -0
  212. package/dist/components/tabs/index.d.ts +3 -0
  213. package/dist/components/tag/Tag.vue.d.ts +39 -0
  214. package/dist/components/tag/index.d.ts +1 -0
  215. package/dist/components/textarea-item/TextareaItem.vue.d.ts +80 -0
  216. package/dist/components/textarea-item/index.d.ts +1 -0
  217. package/dist/components/tip/Tip.vue.d.ts +98 -0
  218. package/dist/components/tip/TipContent.vue.d.ts +33 -0
  219. package/dist/components/tip/index.d.ts +2 -0
  220. package/dist/components/toast/Toast.vue.d.ts +45 -0
  221. package/dist/components/toast/index.d.ts +129 -0
  222. package/dist/components/transition/Transition.vue.d.ts +13 -0
  223. package/dist/components/transition/index.d.ts +1 -0
  224. package/dist/components/water-mark/WaterMark.vue.d.ts +35 -0
  225. package/dist/components/water-mark/index.d.ts +1 -0
  226. package/dist/date-picker.cjs +1 -0
  227. package/dist/date-picker.d.ts +1 -0
  228. package/dist/date-picker.js +2 -0
  229. package/dist/dialog-0-E4Vyc-.cjs +1 -0
  230. package/dist/dialog-DHIZ2SMK.js +227 -0
  231. package/dist/dialog.cjs +1 -0
  232. package/dist/dialog.d.ts +2 -0
  233. package/dist/dialog.js +2 -0
  234. package/dist/field-item.cjs +1 -0
  235. package/dist/field-item.d.ts +1 -0
  236. package/dist/field-item.js +2 -0
  237. package/dist/field.cjs +1 -0
  238. package/dist/field.d.ts +1 -0
  239. package/dist/field.js +2 -0
  240. package/dist/icon.cjs +1 -0
  241. package/dist/icon.d.ts +1 -0
  242. package/dist/icon.js +2 -0
  243. package/dist/index.cjs +1 -0
  244. package/dist/index.d.ts +63 -0
  245. package/dist/index.js +2669 -0
  246. package/dist/input-item.cjs +1 -0
  247. package/dist/input-item.d.ts +1 -0
  248. package/dist/input-item.js +2 -0
  249. package/dist/notice-bar.cjs +1 -0
  250. package/dist/notice-bar.d.ts +1 -0
  251. package/dist/notice-bar.js +2 -0
  252. package/dist/number-keyboard.cjs +1 -0
  253. package/dist/number-keyboard.d.ts +1 -0
  254. package/dist/number-keyboard.js +2 -0
  255. package/dist/picker.cjs +1 -0
  256. package/dist/picker.d.ts +1 -0
  257. package/dist/picker.js +2 -0
  258. package/dist/popup.cjs +1 -0
  259. package/dist/popup.d.ts +1 -0
  260. package/dist/popup.js +3 -0
  261. package/dist/progress.cjs +1 -0
  262. package/dist/progress.d.ts +1 -0
  263. package/dist/progress.js +2 -0
  264. package/dist/radio-list.cjs +1 -0
  265. package/dist/radio-list.d.ts +1 -0
  266. package/dist/radio-list.js +2 -0
  267. package/dist/radio.cjs +1 -0
  268. package/dist/radio.d.ts +1 -0
  269. package/dist/radio.js +3 -0
  270. package/dist/scroll-view.cjs +1 -0
  271. package/dist/scroll-view.d.ts +1 -0
  272. package/dist/scroll-view.js +2 -0
  273. package/dist/shared-BtSkmaWC.js +37 -0
  274. package/dist/shared-k9cbQbvK.cjs +1 -0
  275. package/dist/skeleton.cjs +1 -0
  276. package/dist/skeleton.d.ts +1 -0
  277. package/dist/skeleton.js +2 -0
  278. package/dist/slider.cjs +1 -0
  279. package/dist/slider.d.ts +1 -0
  280. package/dist/slider.js +2 -0
  281. package/dist/stepper.cjs +1 -0
  282. package/dist/stepper.d.ts +1 -0
  283. package/dist/stepper.js +2 -0
  284. package/dist/swiper.cjs +1 -0
  285. package/dist/swiper.d.ts +1 -0
  286. package/dist/swiper.js +2 -0
  287. package/dist/switch.cjs +1 -0
  288. package/dist/switch.d.ts +1 -0
  289. package/dist/switch.js +2 -0
  290. package/dist/tag.cjs +1 -0
  291. package/dist/tag.d.ts +1 -0
  292. package/dist/tag.js +2 -0
  293. package/dist/tip.cjs +1 -0
  294. package/dist/tip.d.ts +1 -0
  295. package/dist/tip.js +2 -0
  296. package/dist/toast-CAeyMc5r.cjs +1 -0
  297. package/dist/toast-DX-RoB7Q.js +146 -0
  298. package/dist/toast.cjs +1 -0
  299. package/dist/toast.d.ts +2 -0
  300. package/dist/toast.js +2 -0
  301. package/package.json +195 -3
@@ -0,0 +1,6 @@
1
+ export { default as CuCheck } from './Check.vue';
2
+ export { default as CuCheckBox } from './CheckBox.vue';
3
+ export { default as CuCheckGroup } from './CheckGroup.vue';
4
+ export { default as CuCheckList } from './CheckList.vue';
5
+ export type { CheckListOption } from './CheckList.vue';
6
+ export type { CheckRootGroup, RadioRootGroup } from './shared';
@@ -0,0 +1,52 @@
1
+ /** Check 家族(Check/CheckBox)与 Group 的注入协议 */
2
+ export interface CheckRootGroup {
3
+ value: Array<string | number | boolean>;
4
+ register: (child: {
5
+ name: string | number | boolean;
6
+ disabled?: boolean;
7
+ }) => void;
8
+ unregister: (child: {
9
+ name: string | number | boolean;
10
+ disabled?: boolean;
11
+ }) => void;
12
+ check: (name: string | number | boolean) => void;
13
+ uncheck: (name: string | number | boolean) => void;
14
+ toggle?: (name: string | number | boolean) => void;
15
+ toggleAll?: (checked?: boolean) => void;
16
+ }
17
+ export interface RadioRootGroup {
18
+ value: string | number | boolean;
19
+ check: (name: string | number | boolean) => void;
20
+ }
21
+ /**
22
+ * Check 家族共享逻辑(自 v2 check/index.vue 与 check/box.vue 的重复实现提取):
23
+ * 选中态判定 + 点击分支(布尔名取反 / 已选反选 / 选中上报组)。
24
+ */
25
+ export declare function useCheckDelegate(props: {
26
+ name: string | number | boolean;
27
+ modelValue: string | number | boolean;
28
+ disabled: boolean;
29
+ }, emit: (e: 'update:modelValue', value: string | number | boolean) => void): {
30
+ rootGroup: CheckRootGroup | null;
31
+ isChecked: import('vue').ComputedRef<boolean>;
32
+ onClick: () => void;
33
+ };
34
+ /** Radio 家族共享逻辑(Radio/RadioBox) */
35
+ export declare function useRadioDelegate(props: {
36
+ name: string | number | boolean;
37
+ modelValue: string | number | boolean;
38
+ disabled: boolean;
39
+ }, emit: (e: 'update:modelValue', value: string | number | boolean) => void): {
40
+ isChecked: import('vue').ComputedRef<boolean>;
41
+ onClick: () => void;
42
+ };
43
+ /** 共享的 icon 修饰 props(v2 check/radio mixin) */
44
+ export declare const iconPropsDefaults: {
45
+ icon: string;
46
+ iconInverse: string;
47
+ iconDisabled: string;
48
+ iconSvg: boolean;
49
+ iconSize: string;
50
+ iconPosition: string;
51
+ };
52
+ export type IconProps = typeof iconPropsDefaults;
@@ -0,0 +1,25 @@
1
+ type __VLS_Props = {
2
+ label?: string;
3
+ disabled?: boolean;
4
+ isChecked?: boolean;
5
+ /** lt | rt */
6
+ iconPosition?: string;
7
+ };
8
+ declare var __VLS_1: {};
9
+ type __VLS_Slots = {} & {
10
+ default?: (props: typeof __VLS_1) => any;
11
+ };
12
+ declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
13
+ label: string;
14
+ disabled: boolean;
15
+ isChecked: boolean;
16
+ iconPosition: string;
17
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
18
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
19
+ declare const _default: typeof __VLS_export;
20
+ export default _default;
21
+ type __VLS_WithSlots<T, S> = T & {
22
+ new (): {
23
+ $slots: S;
24
+ };
25
+ };
@@ -0,0 +1 @@
1
+ export { default as CuCheckBaseBox } from './CheckBoxBase.vue';
@@ -0,0 +1,58 @@
1
+ type __VLS_Props = {
2
+ modelValue?: string;
3
+ maxlength?: number | string;
4
+ autofocus?: boolean;
5
+ disabled?: boolean;
6
+ justify?: boolean;
7
+ mask?: boolean;
8
+ closable?: boolean;
9
+ /** 使用系统键盘 */
10
+ system?: boolean;
11
+ okText?: string;
12
+ disorder?: boolean;
13
+ isView?: boolean;
14
+ inputType?: string;
15
+ isErrorStyle?: boolean;
16
+ };
17
+ declare function blur(): void;
18
+ declare function focus(): void;
19
+ declare var __VLS_1: {};
20
+ type __VLS_Slots = {} & {
21
+ default?: (props: typeof __VLS_1) => any;
22
+ };
23
+ declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {
24
+ focus: typeof focus;
25
+ blur: typeof blur;
26
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
27
+ submit: (code: string) => any;
28
+ "update:modelValue": (value: string) => any;
29
+ blur: () => any;
30
+ focus: () => any;
31
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
32
+ onSubmit?: ((code: string) => any) | undefined;
33
+ "onUpdate:modelValue"?: ((value: string) => any) | undefined;
34
+ onBlur?: (() => any) | undefined;
35
+ onFocus?: (() => any) | undefined;
36
+ }>, {
37
+ mask: boolean;
38
+ disabled: boolean;
39
+ closable: boolean;
40
+ modelValue: string;
41
+ okText: string;
42
+ disorder: boolean;
43
+ isView: boolean;
44
+ maxlength: number | string;
45
+ inputType: string;
46
+ autofocus: boolean;
47
+ justify: boolean;
48
+ system: boolean;
49
+ isErrorStyle: boolean;
50
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
51
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
52
+ declare const _default: typeof __VLS_export;
53
+ export default _default;
54
+ type __VLS_WithSlots<T, S> = T & {
55
+ new (): {
56
+ $slots: S;
57
+ };
58
+ };
@@ -0,0 +1 @@
1
+ export { default as CuCodebox } from './Codebox.vue';
@@ -0,0 +1,70 @@
1
+ import { DateColumnItem, DatePickerColumnOptions } from '@centui/core';
2
+ import { PickerColumnItem } from '../picker/PickerColumn.vue';
3
+ type __VLS_Props = {
4
+ modelValue?: boolean;
5
+ /** date | time | datetime | custom */
6
+ type?: DatePickerColumnOptions['type'];
7
+ /** type=custom 时的列类型序列 */
8
+ customTypes?: NonNullable<DatePickerColumnOptions['customTypes']>;
9
+ minDate?: Date;
10
+ maxDate?: Date;
11
+ defaultDate?: Date;
12
+ minuteStep?: number;
13
+ unitText?: string[];
14
+ todayText?: string;
15
+ textRender?: DatePickerColumnOptions['textRender'];
16
+ isView?: boolean;
17
+ title?: string;
18
+ describe?: string;
19
+ okText?: string;
20
+ cancelText?: string;
21
+ maskClosable?: boolean;
22
+ lineHeight?: number;
23
+ keepIndex?: boolean;
24
+ largeRadius?: boolean;
25
+ };
26
+ /**
27
+ * 将列选中值格式化为日期字符串(默认 yyyy-MM-dd hh:mm)
28
+ */
29
+ declare function getFormatDate(format?: string): string;
30
+ declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {
31
+ getFormatDate: typeof getFormatDate;
32
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
33
+ "update:modelValue": (value: boolean) => any;
34
+ change: (columnIndex: number, itemIndex: number, value: PickerColumnItem) => any;
35
+ show: () => any;
36
+ hide: () => any;
37
+ cancel: () => any;
38
+ confirm: (columnsValue: DateColumnItem[]) => any;
39
+ initialed: () => any;
40
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
41
+ "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
42
+ onChange?: ((columnIndex: number, itemIndex: number, value: PickerColumnItem) => any) | undefined;
43
+ onShow?: (() => any) | undefined;
44
+ onHide?: (() => any) | undefined;
45
+ onCancel?: (() => any) | undefined;
46
+ onConfirm?: ((columnsValue: DateColumnItem[]) => any) | undefined;
47
+ onInitialed?: (() => any) | undefined;
48
+ }>, {
49
+ title: string;
50
+ type: "time" | "date" | "datetime" | "custom";
51
+ modelValue: boolean;
52
+ maskClosable: boolean;
53
+ largeRadius: boolean;
54
+ describe: string;
55
+ okText: string;
56
+ cancelText: string;
57
+ isView: boolean;
58
+ textRender: (typeFormat: string, ...values: Array<string | number>) => string;
59
+ lineHeight: number;
60
+ keepIndex: boolean;
61
+ customTypes: NonNullable<DatePickerColumnOptions["customTypes"]>;
62
+ minDate: Date;
63
+ maxDate: Date;
64
+ defaultDate: Date;
65
+ minuteStep: number;
66
+ unitText: string[];
67
+ todayText: string;
68
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
69
+ declare const _default: typeof __VLS_export;
70
+ export default _default;
@@ -0,0 +1 @@
1
+ export { default as CuDatePicker } from './DatePicker.vue';
@@ -0,0 +1,22 @@
1
+ type __VLS_Props = {
2
+ title?: string;
3
+ content?: string | number;
4
+ bold?: boolean;
5
+ };
6
+ declare var __VLS_1: {};
7
+ type __VLS_Slots = {} & {
8
+ default?: (props: typeof __VLS_1) => any;
9
+ };
10
+ declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
11
+ bold: boolean;
12
+ title: string;
13
+ content: string | number;
14
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
15
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
16
+ declare const _default: typeof __VLS_export;
17
+ export default _default;
18
+ type __VLS_WithSlots<T, S> = T & {
19
+ new (): {
20
+ $slots: S;
21
+ };
22
+ };
@@ -0,0 +1 @@
1
+ export { default as CuDetailItem } from './DetailItem.vue';
@@ -0,0 +1,78 @@
1
+ export interface DialogBtn {
2
+ text?: string;
3
+ icon?: string;
4
+ iconSvg?: boolean;
5
+ disabled?: boolean;
6
+ warning?: boolean;
7
+ loading?: boolean;
8
+ handler?: (btn: DialogBtn) => void;
9
+ }
10
+ declare const _default: typeof __VLS_export;
11
+ export default _default;
12
+ declare const __VLS_export: __VLS_WithSlots<import('vue').DefineComponent<{
13
+ modelValue?: boolean;
14
+ title?: string;
15
+ icon?: string;
16
+ iconSvg?: boolean;
17
+ closable?: boolean;
18
+ content?: string;
19
+ btns?: DialogBtn[];
20
+ /** row | column */
21
+ layout?: string;
22
+ appendTo?: HTMLElement | null | false;
23
+ hasMask?: boolean;
24
+ maskClosable?: boolean;
25
+ transition?: string;
26
+ preventScroll?: boolean;
27
+ preventScrollExclude?: string;
28
+ }, {
29
+ close: () => void;
30
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
31
+ "update:modelValue": (value: boolean) => any;
32
+ show: () => any;
33
+ hide: () => any;
34
+ }, string, import('vue').PublicProps, Readonly<{
35
+ modelValue?: boolean;
36
+ title?: string;
37
+ icon?: string;
38
+ iconSvg?: boolean;
39
+ closable?: boolean;
40
+ content?: string;
41
+ btns?: DialogBtn[];
42
+ /** row | column */
43
+ layout?: string;
44
+ appendTo?: HTMLElement | null | false;
45
+ hasMask?: boolean;
46
+ maskClosable?: boolean;
47
+ transition?: string;
48
+ preventScroll?: boolean;
49
+ preventScrollExclude?: string;
50
+ }> & Readonly<{
51
+ "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
52
+ onShow?: (() => any) | undefined;
53
+ onHide?: (() => any) | undefined;
54
+ }>, {
55
+ title: string;
56
+ content: string;
57
+ icon: string;
58
+ iconSvg: boolean;
59
+ transition: string;
60
+ closable: boolean;
61
+ modelValue: boolean;
62
+ hasMask: boolean;
63
+ maskClosable: boolean;
64
+ preventScroll: boolean;
65
+ preventScrollExclude: string;
66
+ btns: DialogBtn[];
67
+ layout: string;
68
+ appendTo: HTMLElement | null | false;
69
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>, {
70
+ header?: (props: {}) => any;
71
+ } & {
72
+ default?: (props: {}) => any;
73
+ }>;
74
+ type __VLS_WithSlots<T, S> = T & {
75
+ new (): {
76
+ $slots: S;
77
+ };
78
+ };
@@ -0,0 +1,40 @@
1
+ import { default as CuDialogComponent, DialogBtn } from './Dialog.vue';
2
+ export type { DialogBtn };
3
+ interface DialogInstance {
4
+ close: () => void;
5
+ }
6
+ interface GenerateOptions {
7
+ title?: string;
8
+ icon?: string;
9
+ iconSvg?: boolean;
10
+ content?: string;
11
+ closable?: boolean;
12
+ transition?: string;
13
+ btns?: DialogBtn[];
14
+ onShow?: () => void;
15
+ onHide?: () => void;
16
+ }
17
+ interface ConfirmOptions extends Omit<GenerateOptions, 'btns'> {
18
+ cancelText?: string;
19
+ cancelWarning?: boolean;
20
+ confirmText?: string;
21
+ confirmWarning?: boolean;
22
+ onConfirm?: () => boolean | void;
23
+ onCancel?: () => boolean | void;
24
+ }
25
+ interface AlertOptions extends Omit<GenerateOptions, 'btns'> {
26
+ confirmText?: string;
27
+ warning?: boolean;
28
+ onConfirm?: () => boolean | void;
29
+ }
30
+ type DialogStatic = typeof CuDialogComponent & {
31
+ confirm: (options: ConfirmOptions) => DialogInstance;
32
+ alert: (options: AlertOptions) => DialogInstance;
33
+ succeed: (options: ConfirmOptions) => DialogInstance;
34
+ failed: (options: ConfirmOptions) => DialogInstance;
35
+ closeAll: () => void;
36
+ };
37
+ export type { ConfirmOptions as DialogConfirmOptions, AlertOptions as DialogAlertOptions };
38
+ declare const Dialog: DialogStatic;
39
+ export { CuDialogComponent as CuDialog };
40
+ export default Dialog;
@@ -0,0 +1,55 @@
1
+ import { RadioListOption } from '../radio-list/RadioList.vue';
2
+ export interface DropMenuItem {
3
+ text?: string;
4
+ disabled?: boolean;
5
+ options?: Array<{
6
+ value?: string | number;
7
+ text?: string;
8
+ label?: string;
9
+ }>;
10
+ }
11
+ type __VLS_Props = {
12
+ data?: DropMenuItem[];
13
+ defaultValue?: Array<string | number>;
14
+ };
15
+ declare var __VLS_20: {
16
+ option: RadioListOption;
17
+ };
18
+ type __VLS_Slots = {} & {
19
+ default?: (props: typeof __VLS_20) => any;
20
+ };
21
+ declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {
22
+ getSelectedValues: () => ({
23
+ value: string | number | boolean;
24
+ text?: string | undefined;
25
+ label?: string | undefined;
26
+ brief?: string | undefined;
27
+ disabled?: boolean | undefined;
28
+ } | undefined)[];
29
+ getSelectedValue: (index: number) => {
30
+ value: string | number | boolean;
31
+ text?: string | undefined;
32
+ label?: string | undefined;
33
+ brief?: string | undefined;
34
+ disabled?: boolean | undefined;
35
+ } | undefined;
36
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
37
+ change: (barItem: DropMenuItem, listItem: unknown) => any;
38
+ show: () => any;
39
+ hide: () => any;
40
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
41
+ onChange?: ((barItem: DropMenuItem, listItem: unknown) => any) | undefined;
42
+ onShow?: (() => any) | undefined;
43
+ onHide?: (() => any) | undefined;
44
+ }>, {
45
+ data: DropMenuItem[];
46
+ defaultValue: Array<string | number>;
47
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
48
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
49
+ declare const _default: typeof __VLS_export;
50
+ export default _default;
51
+ type __VLS_WithSlots<T, S> = T & {
52
+ new (): {
53
+ $slots: S;
54
+ };
55
+ };
@@ -0,0 +1 @@
1
+ export { default as CuDropMenu, type DropMenuItem } from './DropMenu.vue';
@@ -0,0 +1,30 @@
1
+ type __VLS_Props = {
2
+ title?: string;
3
+ brief?: string;
4
+ disabled?: boolean;
5
+ plain?: boolean;
6
+ };
7
+ declare var __VLS_1: {}, __VLS_3: {}, __VLS_5: {}, __VLS_7: {};
8
+ type __VLS_Slots = {} & {
9
+ header?: (props: typeof __VLS_1) => any;
10
+ } & {
11
+ action?: (props: typeof __VLS_3) => any;
12
+ } & {
13
+ default?: (props: typeof __VLS_5) => any;
14
+ } & {
15
+ footer?: (props: typeof __VLS_7) => any;
16
+ };
17
+ declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
18
+ title: string;
19
+ plain: boolean;
20
+ disabled: boolean;
21
+ brief: string;
22
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
23
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
24
+ declare const _default: typeof __VLS_export;
25
+ export default _default;
26
+ type __VLS_WithSlots<T, S> = T & {
27
+ new (): {
28
+ $slots: S;
29
+ };
30
+ };
@@ -0,0 +1 @@
1
+ export { default as CuField } from './Field.vue';
@@ -0,0 +1,42 @@
1
+ type __VLS_Props = {
2
+ title?: string;
3
+ placeholder?: string;
4
+ content?: string;
5
+ addon?: string;
6
+ arrow?: boolean | string;
7
+ solid?: boolean;
8
+ alignRight?: boolean;
9
+ disabled?: boolean;
10
+ };
11
+ declare var __VLS_1: {}, __VLS_3: {}, __VLS_5: {}, __VLS_12: {};
12
+ type __VLS_Slots = {} & {
13
+ left?: (props: typeof __VLS_1) => any;
14
+ } & {
15
+ default?: (props: typeof __VLS_3) => any;
16
+ } & {
17
+ right?: (props: typeof __VLS_5) => any;
18
+ } & {
19
+ children?: (props: typeof __VLS_12) => any;
20
+ };
21
+ declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
22
+ click: (event: MouseEvent) => any;
23
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
24
+ onClick?: ((event: MouseEvent) => any) | undefined;
25
+ }>, {
26
+ arrow: boolean | string;
27
+ title: string;
28
+ content: string;
29
+ disabled: boolean;
30
+ addon: string;
31
+ placeholder: string;
32
+ solid: boolean;
33
+ alignRight: boolean;
34
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
35
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
36
+ declare const _default: typeof __VLS_export;
37
+ export default _default;
38
+ type __VLS_WithSlots<T, S> = T & {
39
+ new (): {
40
+ $slots: S;
41
+ };
42
+ };
@@ -0,0 +1 @@
1
+ export { default as CuFieldItem } from './FieldItem.vue';
@@ -0,0 +1,20 @@
1
+ type __VLS_Props = {
2
+ /** 图标名(svg sprite id 或字体图标类名) */
3
+ name: string;
4
+ /** xss | xs | sm | md | lg */
5
+ size?: string;
6
+ color?: string;
7
+ /** true 渲染 svg sprite,false 渲染 icon font */
8
+ svg?: boolean;
9
+ };
10
+ declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
11
+ click: (event: MouseEvent) => any;
12
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
13
+ onClick?: ((event: MouseEvent) => any) | undefined;
14
+ }>, {
15
+ svg: boolean;
16
+ size: string;
17
+ color: string;
18
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
19
+ declare const _default: typeof __VLS_export;
20
+ export default _default;
@@ -0,0 +1,2 @@
1
+ declare const defaultSvgList: Record<string, string>;
2
+ export default defaultSvgList;
@@ -0,0 +1 @@
1
+ export { default as CuIcon } from './Icon.vue';
@@ -0,0 +1,6 @@
1
+ declare const SPRITE_NODE_ID = "__MAND_MOBILE_SVG_SPRITE_NODE__";
2
+ /**
3
+ * 首次使用 svg 图标时向 body 注入 sprite(幂等)
4
+ */
5
+ export declare function loadSprite(): void;
6
+ export { SPRITE_NODE_ID };
@@ -0,0 +1,46 @@
1
+ type __VLS_Props = {
2
+ name?: string;
3
+ /** 单张图片体积限制(KB),0 为不限制 */
4
+ size?: string | number;
5
+ mime?: string[];
6
+ isCameraOnly?: boolean;
7
+ isMultiple?: boolean;
8
+ /** 每次选择张数上限,0 为不限制 */
9
+ amount?: number;
10
+ };
11
+ declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
12
+ select: (name: string, data: {
13
+ files: File[];
14
+ }) => any;
15
+ error: (name: string, data: {
16
+ code: string;
17
+ msg: string;
18
+ }) => any;
19
+ complete: (name: string, data: {
20
+ blob: Blob;
21
+ dataUrl: string;
22
+ file: File;
23
+ }) => any;
24
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
25
+ onSelect?: ((name: string, data: {
26
+ files: File[];
27
+ }) => any) | undefined;
28
+ onError?: ((name: string, data: {
29
+ code: string;
30
+ msg: string;
31
+ }) => any) | undefined;
32
+ onComplete?: ((name: string, data: {
33
+ blob: Blob;
34
+ dataUrl: string;
35
+ file: File;
36
+ }) => any) | undefined;
37
+ }>, {
38
+ name: string;
39
+ size: string | number;
40
+ amount: number;
41
+ mime: string[];
42
+ isCameraOnly: boolean;
43
+ isMultiple: boolean;
44
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
45
+ declare const _default: typeof __VLS_export;
46
+ export default _default;
@@ -0,0 +1 @@
1
+ export { default as CuImageReader } from './ImageReader.vue';
@@ -0,0 +1,25 @@
1
+ export interface ImageViewerItem {
2
+ url?: string;
3
+ alt?: string;
4
+ cls?: string;
5
+ }
6
+ type __VLS_Props = {
7
+ modelValue?: boolean;
8
+ list?: Array<string | ImageViewerItem>;
9
+ initialIndex?: number;
10
+ hasDots?: boolean;
11
+ };
12
+ declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
13
+ "update:modelValue": (value: boolean) => any;
14
+ change: (fromIndex: number, toIndex: number) => any;
15
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
16
+ "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
17
+ onChange?: ((fromIndex: number, toIndex: number) => any) | undefined;
18
+ }>, {
19
+ modelValue: boolean;
20
+ hasDots: boolean;
21
+ list: Array<string | ImageViewerItem>;
22
+ initialIndex: number;
23
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
24
+ declare const _default: typeof __VLS_export;
25
+ export default _default;
@@ -0,0 +1 @@
1
+ export { default as CuImageViewer, type ImageViewerItem } from './ImageViewer.vue';
@@ -0,0 +1,3 @@
1
+ /** 首批组件名(kebab-case),与按需入口文件、样式产物一一对应 */
2
+ export declare const componentNames: readonly ["action-sheet", "activity-indicator", "agree", "amount", "button", "cell-item", "check", "check-base", "codebox", "date-picker", "scroll-view", "swiper", "slider", "dialog", "field", "field-item", "icon", "input-item", "notice-bar", "number-keyboard", "picker", "popup", "progress", "radio", "radio-list", "skeleton", "stepper", "switch", "tag", "tip", "toast"];
3
+ export type ComponentName = (typeof componentNames)[number];