hy-app 0.5.2 → 0.5.4

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 (74) hide show
  1. package/components/hy-action-sheet/index.scss +0 -5
  2. package/components/hy-avatar/hy-avatar.vue +4 -3
  3. package/components/hy-back-top/hy-back-top.vue +10 -9
  4. package/components/hy-back-top/props.ts +5 -3
  5. package/components/hy-badge/hy-badge.vue +5 -4
  6. package/components/hy-badge/index.scss +0 -1
  7. package/components/hy-badge/props.ts +11 -4
  8. package/components/hy-button/hy-button.vue +5 -5
  9. package/components/hy-button/index.scss +9 -0
  10. package/components/hy-button/props.ts +11 -6
  11. package/components/hy-coupon/hy-coupon.vue +159 -167
  12. package/components/hy-coupon/index.scss +135 -516
  13. package/components/hy-coupon/props.ts +101 -127
  14. package/components/hy-coupon/typing.d.ts +147 -146
  15. package/components/hy-datetime-picker/props.ts +1 -3
  16. package/components/hy-folding-panel/props.ts +1 -1
  17. package/components/hy-folding-panel/typing.d.ts +0 -38
  18. package/components/hy-folding-panel-item/hy-folding-panel-item.vue +2 -5
  19. package/components/hy-folding-panel-item/index.scss +0 -8
  20. package/components/hy-folding-panel-item/typing.d.ts +14 -0
  21. package/components/hy-form-group/hy-form-group.vue +308 -511
  22. package/components/hy-form-group/index.scss +0 -33
  23. package/components/hy-form-group/props.ts +103 -13
  24. package/components/hy-form-group/typing.d.ts +0 -77
  25. package/components/hy-form-item/hy-form-item.vue +3 -3
  26. package/components/hy-icon/hy-icon.vue +3 -8
  27. package/components/hy-input/hy-input.vue +16 -10
  28. package/components/hy-input/index.scss +4 -0
  29. package/components/hy-input/props.ts +2 -2
  30. package/components/hy-list/props.ts +1 -1
  31. package/components/hy-notice-bar/hy-column-notice.vue +63 -70
  32. package/components/hy-notice-bar/hy-row-notice.vue +92 -110
  33. package/components/hy-notice-bar/index.scss +2 -4
  34. package/components/hy-notice-bar/props.ts +4 -1
  35. package/components/hy-notice-bar/typing.d.ts +2 -0
  36. package/components/hy-popup/hy-popup.vue +0 -1
  37. package/components/hy-qrcode/hy-qrcode.vue +69 -3
  38. package/components/hy-qrcode/index.scss +3 -3
  39. package/components/hy-qrcode/qrcode.js +1344 -1400
  40. package/components/hy-rate/hy-rate.vue +0 -1
  41. package/components/hy-read-more/hy-read-more.vue +1 -1
  42. package/components/hy-signature/hy-signature.vue +25 -22
  43. package/components/hy-signature/index.scss +0 -4
  44. package/components/hy-tabbar/hy-tabbar.vue +137 -0
  45. package/components/{hy-tabBar → hy-tabbar}/index.scss +30 -30
  46. package/components/hy-tabbar/props.ts +59 -0
  47. package/components/hy-tabbar/typing.d.ts +61 -0
  48. package/components/hy-tabbar-group/README.md +326 -0
  49. package/components/hy-tabbar-group/hy-tabbar-group.vue +87 -0
  50. package/components/hy-tabbar-group/index.scss +57 -0
  51. package/components/hy-tabbar-group/props.ts +78 -0
  52. package/components/hy-tabbar-group/typing.ts +16 -0
  53. package/components/hy-tabbar-item/hy-tabbar-item.vue +103 -0
  54. package/components/hy-tabbar-item/index.scss +43 -0
  55. package/components/hy-tabbar-item/props.ts +24 -0
  56. package/components/hy-tabbar-item/typing.ts +22 -0
  57. package/components/hy-tag/props.ts +8 -2
  58. package/components/hy-text/props.ts +8 -2
  59. package/components/hy-textarea/hy-textarea.vue +1 -1
  60. package/components/hy-textarea/index.scss +8 -7
  61. package/components/hy-textarea/props.ts +4 -1
  62. package/components/hy-toast/index.scss +2 -7
  63. package/components/hy-tooltip/props.ts +1 -3
  64. package/components/hy-upload/props.ts +1 -1
  65. package/components/index.ts +177 -177
  66. package/global.d.ts +87 -85
  67. package/libs/css/common.scss +0 -5
  68. package/libs/typing/modules/form.ts +159 -163
  69. package/package.json +2 -2
  70. package/web-types.json +1 -1
  71. package/components/hy-coupon/README.md +0 -133
  72. package/components/hy-tabBar/hy-tabBar.vue +0 -109
  73. package/components/hy-tabBar/props.ts +0 -13
  74. package/components/hy-tabBar/typing.d.ts +0 -54
package/global.d.ts CHANGED
@@ -1,87 +1,89 @@
1
- declare module "vue" {
2
- // Helper for Volar
3
- export interface GlobalComponents {
4
- HyActionSheet: (typeof import("./components/hy-action-sheet/hy-action-sheet.vue"))["default"];
5
- HyAddressPicker: (typeof import("./components/hy-address-picker/hy-address-picker.vue"))["default"];
6
- HyAvatar: (typeof import("./components/hy-avatar/hy-avatar.vue"))["default"];
7
- HyBackTop: (typeof import("./components/hy-back-top/hy-back-top.vue"))["default"];
8
- HyBadge: (typeof import("./components/hy-badge/hy-badge.vue"))["default"];
9
- HyButton: (typeof import("./components/hy-button/hy-button.vue"))["default"];
10
- HyCalendar: (typeof import("./components/hy-calendar/hy-calendar.vue"))["default"];
11
- HyCard: (typeof import("./components/hy-card/hy-card.vue"))["default"];
12
- HyCell: (typeof import("./components/hy-cell/hy-cell.vue"))["default"];
13
- HyCheckButton: (typeof import("./components/hy-check-button/hy-check-button.vue"))["default"];
14
- HyCheckbox: (typeof import("./components/hy-checkbox/hy-checkbox.vue"))["default"];
15
- HyCheckboxGroup: (typeof import("./components/hy-checkbox-group/hy-checkbox-group.vue"))["default"];
16
- HyCheckboxItem: (typeof import("./components/hy-checkbox-item/hy-checkbox-item.vue"))["default"];
17
- HyCodeInput: (typeof import("./components/hy-code-input/hy-code-input.vue"))["default"];
18
- HyConfigProvider: (typeof import("./components/hy-config-provider/hy-config-provider.vue"))["default"];
19
- HyCountDown: (typeof import("./components/hy-count-down/hy-count-down.vue"))["default"];
20
- HyCountTo: (typeof import("./components/hy-count-to/hy-count-to.vue"))["default"];
21
- HyCoupon: (typeof import("./components/hy-coupon/hy-coupon.vue"))["default"];
22
- HyDatetimePicker: (typeof import("./components/hy-datetime-picker/hy-datetime-picker.vue"))["default"];
23
- HyDatetimePickerView: (typeof import("./components/hy-datetime-picker-view/hy-datetime-picker-view.vue"))["default"];
24
- HyDivider: (typeof import("./components/hy-divider/hy-divider.vue"))["default"];
25
- HyDropdown: (typeof import("./components/hy-dropdown/hy-dropdown.vue"))["default"];
26
- HyDropdownItem: (typeof import("./components/hy-dropdown-item/hy-dropdown-item.vue"))["default"];
27
- HyEmpty: (typeof import("./components/hy-empty/hy-empty.vue"))["default"];
28
- HyFlex: (typeof import("./components/hy-flex/hy-flex.vue"))["default"];
29
- HyFloatButton: (typeof import("./components/hy-float-button/hy-float-button.vue"))["default"];
30
- HyFloatingPanel: (typeof import("./components/hy-floating-panel/hy-floating-panel.vue"))["default"];
31
- HyFloatingPanelItem: (typeof import("./components/hy-floating-panel-item/hy-floating-panel-item.vue"))["default"];
32
- HyForm: (typeof import("@/package/components/hy-form-group/hy-form.vue"))["default"];
33
- HyFormItem: (typeof import("./components/hy-form-item/hy-form-item.vue"))["default"];
34
- HyFormGroup: (typeof import("./components/hy-form-group/hy-form-group.vue"))["default"];
35
- HyGrid: (typeof import("./components/hy-grid/hy-grid.vue"))["default"];
36
- HyIcon: (typeof import("./components/hy-icon/hy-icon.vue"))["default"];
37
- HyImage: (typeof import("./components/hy-image/hy-image.vue"))["default"];
38
- HyInput: (typeof import("./components/hy-input/hy-input.vue"))["default"];
39
- HyLine: (typeof import("./components/hy-line/hy-line.vue"))["default"];
40
- HyLineProgress: (typeof import("./components/hy-line-progress/hy-line-progress.vue"))["default"];
41
- HyList: (typeof import("./components/hy-list/hy-list.vue"))["default"];
42
- HyLoading: (typeof import("./components/hy-loading/hy-loading.vue"))["default"];
43
- HyMenu: (typeof import("./components/hy-menu/hy-menu.vue"))["default"];
44
- HyModal: (typeof import("./components/hy-modal/hy-modal.vue"))["default"];
45
- HyNavbar: (typeof import("./components/hy-navbar/hy-navbar.vue"))["default"];
46
- HyNoticeBar: (typeof import("./components/hy-notice-bar/hy-notice-bar.vue"))["default"];
47
- HyNotify: (typeof import("./components/hy-notify/hy-notify.vue"))["default"];
48
- HyNumberStep: (typeof import("./components/hy-number-step/hy-number-step.vue"))["default"];
49
- HyOverlay: (typeof import("./components/hy-overlay/hy-overlay.vue"))["default"];
50
- HyPagination: (typeof import("./components/hy-pagination/hy-pagination.vue"))["default"];
51
- HyParse: (typeof import("./components/hy-parse/hy-parse.vue"))["default"];
52
- HyPicker: (typeof import("./components/hy-picker/hy-picker.vue"))["default"];
53
- HyPopover: (typeof import("./components/hy-popover/hy-popover.vue"))["default"];
54
- HyPopup: (typeof import("./components/hy-popup/hy-popup.vue"))["default"];
55
- HyPrice: (typeof import("./components/hy-price/hy-price.vue"))["default"];
56
- HyQrcode: (typeof import("./components/hy-qrcode/hy-qrcode.vue"))["default"];
57
- HyRadio: (typeof import("./components/hy-radio/hy-radio.vue"))["default"];
58
- HyRate: (typeof import("./components/hy-rate/hy-rate.vue"))["default"];
59
- HyReadMore: (typeof import("./components/hy-read-more/hy-read-more.vue"))["default"];
60
- HyScrollList: (typeof import("./components/hy-scroll-list/hy-scroll-list.vue"))["default"];
61
- HySearch: (typeof import("./components/hy-search/hy-search.vue"))["default"];
62
- HySignature: (typeof import("./components/hy-signature/hy-signature.vue"))["default"];
63
- HySlider: (typeof import("./components/hy-slider/hy-slider.vue"))["default"];
64
- HyStatusBar: (typeof import("./components/hy-status-bar/hy-status-bar.vue"))["default"];
65
- HySteps: (typeof import("./components/hy-steps/hy-steps.vue"))["default"];
66
- HySticky: (typeof import("./components/hy-sticky/hy-sticky.vue"))["default"];
67
- HySubmitBar: (typeof import("./components/hy-submit-bar/hy-submit-bar.vue"))["default"];
68
- HySubsection: (typeof import("./components/hy-subsection/hy-subsection.vue"))["default"];
69
- HySwipeAction: (typeof import("./components/hy-swipe-action/hy-swipe-action.vue"))["default"];
70
- HySwiper: (typeof import("./components/hy-swiper/hy-swiper.vue"))["default"];
71
- HySwitch: (typeof import("./components/hy-switch/hy-switch.vue"))["default"];
72
- HyTabBar: (typeof import("./components/hy-tabBar/hy-tabBar.vue"))["default"];
73
- HyTabs: (typeof import("./components/hy-tabs/hy-tabs.vue"))["default"];
74
- HyTag: (typeof import("./components/hy-tag/hy-tag.vue"))["default"];
75
- HyTextarea: (typeof import("./components/hy-textarea/hy-textarea.vue"))["default"];
76
- HyText: (typeof import("./components/hy-text/hy-text.vue"))["default"];
77
- HyToast: (typeof import("./components/hy-toast/hy-toast.vue"))["default"];
78
- HyTooltip: (typeof import("./components/hy-tooltip/hy-tooltip.vue"))["default"];
79
- HyTransition: (typeof import("./components/hy-transition/hy-transition.vue"))["default"];
80
- HyUpload: (typeof import("./components/hy-upload/hy-upload.vue"))["default"];
81
- HyWarn: (typeof import("./components/hy-warn/hy-warn.vue"))["default"];
82
- HyWaterfall: (typeof import("./components/hy-waterfall/hy-waterfall.vue"))["default"];
83
- HyWatermark: (typeof import("./components/hy-watermark/hy-watermark.vue"))["default"];
84
- }
1
+ declare module 'vue' {
2
+ // Helper for Volar
3
+ export interface GlobalComponents {
4
+ HyActionSheet: (typeof import('./components/hy-action-sheet/hy-action-sheet.vue'))['default']
5
+ HyAddressPicker: (typeof import('./components/hy-address-picker/hy-address-picker.vue'))['default']
6
+ HyAvatar: (typeof import('./components/hy-avatar/hy-avatar.vue'))['default']
7
+ HyBackTop: (typeof import('./components/hy-back-top/hy-back-top.vue'))['default']
8
+ HyBadge: (typeof import('./components/hy-badge/hy-badge.vue'))['default']
9
+ HyButton: (typeof import('./components/hy-button/hy-button.vue'))['default']
10
+ HyCalendar: (typeof import('./components/hy-calendar/hy-calendar.vue'))['default']
11
+ HyCard: (typeof import('./components/hy-card/hy-card.vue'))['default']
12
+ HyCell: (typeof import('./components/hy-cell/hy-cell.vue'))['default']
13
+ HyCheckButton: (typeof import('./components/hy-check-button/hy-check-button.vue'))['default']
14
+ HyCheckbox: (typeof import('./components/hy-checkbox/hy-checkbox.vue'))['default']
15
+ HyCheckboxGroup: (typeof import('./components/hy-checkbox-group/hy-checkbox-group.vue'))['default']
16
+ HyCheckboxItem: (typeof import('./components/hy-checkbox-item/hy-checkbox-item.vue'))['default']
17
+ HyCodeInput: (typeof import('./components/hy-code-input/hy-code-input.vue'))['default']
18
+ HyConfigProvider: (typeof import('./components/hy-config-provider/hy-config-provider.vue'))['default']
19
+ HyCountDown: (typeof import('./components/hy-count-down/hy-count-down.vue'))['default']
20
+ HyCountTo: (typeof import('./components/hy-count-to/hy-count-to.vue'))['default']
21
+ HyCoupon: (typeof import('./components/hy-coupon/hy-coupon.vue'))['default']
22
+ HyDatetimePicker: (typeof import('./components/hy-datetime-picker/hy-datetime-picker.vue'))['default']
23
+ HyDatetimePickerView: (typeof import('./components/hy-datetime-picker-view/hy-datetime-picker-view.vue'))['default']
24
+ HyDivider: (typeof import('./components/hy-divider/hy-divider.vue'))['default']
25
+ HyDropdown: (typeof import('./components/hy-dropdown/hy-dropdown.vue'))['default']
26
+ HyDropdownItem: (typeof import('./components/hy-dropdown-item/hy-dropdown-item.vue'))['default']
27
+ HyEmpty: (typeof import('./components/hy-empty/hy-empty.vue'))['default']
28
+ HyFlex: (typeof import('./components/hy-flex/hy-flex.vue'))['default']
29
+ HyFloatButton: (typeof import('./components/hy-float-button/hy-float-button.vue'))['default']
30
+ HyFloatingPanel: (typeof import('./components/hy-floating-panel/hy-floating-panel.vue'))['default']
31
+ HyFloatingPanelItem: (typeof import('./components/hy-floating-panel-item/hy-floating-panel-item.vue'))['default']
32
+ HyForm: (typeof import('@/package/components/hy-form-group/hy-form.vue'))['default']
33
+ HyFormItem: (typeof import('./components/hy-form-item/hy-form-item.vue'))['default']
34
+ HyFormGroup: (typeof import('./components/hy-form-group/hy-form-group.vue'))['default']
35
+ HyGrid: (typeof import('./components/hy-grid/hy-grid.vue'))['default']
36
+ HyIcon: (typeof import('./components/hy-icon/hy-icon.vue'))['default']
37
+ HyImage: (typeof import('./components/hy-image/hy-image.vue'))['default']
38
+ HyInput: (typeof import('./components/hy-input/hy-input.vue'))['default']
39
+ HyLine: (typeof import('./components/hy-line/hy-line.vue'))['default']
40
+ HyLineProgress: (typeof import('./components/hy-line-progress/hy-line-progress.vue'))['default']
41
+ HyList: (typeof import('./components/hy-list/hy-list.vue'))['default']
42
+ HyLoading: (typeof import('./components/hy-loading/hy-loading.vue'))['default']
43
+ HyMenu: (typeof import('./components/hy-menu/hy-menu.vue'))['default']
44
+ HyModal: (typeof import('./components/hy-modal/hy-modal.vue'))['default']
45
+ HyNavbar: (typeof import('./components/hy-navbar/hy-navbar.vue'))['default']
46
+ HyNoticeBar: (typeof import('./components/hy-notice-bar/hy-notice-bar.vue'))['default']
47
+ HyNotify: (typeof import('./components/hy-notify/hy-notify.vue'))['default']
48
+ HyNumberStep: (typeof import('./components/hy-number-step/hy-number-step.vue'))['default']
49
+ HyOverlay: (typeof import('./components/hy-overlay/hy-overlay.vue'))['default']
50
+ HyPagination: (typeof import('./components/hy-pagination/hy-pagination.vue'))['default']
51
+ HyParse: (typeof import('./components/hy-parse/hy-parse.vue'))['default']
52
+ HyPicker: (typeof import('./components/hy-picker/hy-picker.vue'))['default']
53
+ HyPopover: (typeof import('./components/hy-popover/hy-popover.vue'))['default']
54
+ HyPopup: (typeof import('./components/hy-popup/hy-popup.vue'))['default']
55
+ HyPrice: (typeof import('./components/hy-price/hy-price.vue'))['default']
56
+ HyQrcode: (typeof import('./components/hy-qrcode/hy-qrcode.vue'))['default']
57
+ HyRadio: (typeof import('./components/hy-radio/hy-radio.vue'))['default']
58
+ HyRate: (typeof import('./components/hy-rate/hy-rate.vue'))['default']
59
+ HyReadMore: (typeof import('./components/hy-read-more/hy-read-more.vue'))['default']
60
+ HyScrollList: (typeof import('./components/hy-scroll-list/hy-scroll-list.vue'))['default']
61
+ HySearch: (typeof import('./components/hy-search/hy-search.vue'))['default']
62
+ HySignature: (typeof import('./components/hy-signature/hy-signature.vue'))['default']
63
+ HySlider: (typeof import('./components/hy-slider/hy-slider.vue'))['default']
64
+ HyStatusBar: (typeof import('./components/hy-status-bar/hy-status-bar.vue'))['default']
65
+ HySteps: (typeof import('./components/hy-steps/hy-steps.vue'))['default']
66
+ HySticky: (typeof import('./components/hy-sticky/hy-sticky.vue'))['default']
67
+ HySubmitBar: (typeof import('./components/hy-submit-bar/hy-submit-bar.vue'))['default']
68
+ HySubsection: (typeof import('./components/hy-subsection/hy-subsection.vue'))['default']
69
+ HySwipeAction: (typeof import('./components/hy-swipe-action/hy-swipe-action.vue'))['default']
70
+ HySwiper: (typeof import('./components/hy-swiper/hy-swiper.vue'))['default']
71
+ HySwitch: (typeof import('./components/hy-switch/hy-switch.vue'))['default']
72
+ HyTabbar: (typeof import('@/package/components/hy-tabbar/hy-tabbar.vue'))['default']
73
+ HyTabbarGroup: (typeof import('./components/hy-tabbar-group/hy-tabbar-group.vue'))['default']
74
+ HyTabbarItem: (typeof import('./components/hy-tabbar-item/hy-tabbar-item.vue'))['default']
75
+ HyTabs: (typeof import('./components/hy-tabs/hy-tabs.vue'))['default']
76
+ HyTag: (typeof import('./components/hy-tag/hy-tag.vue'))['default']
77
+ HyTextarea: (typeof import('./components/hy-textarea/hy-textarea.vue'))['default']
78
+ HyText: (typeof import('./components/hy-text/hy-text.vue'))['default']
79
+ HyToast: (typeof import('./components/hy-toast/hy-toast.vue'))['default']
80
+ HyTooltip: (typeof import('./components/hy-tooltip/hy-tooltip.vue'))['default']
81
+ HyTransition: (typeof import('./components/hy-transition/hy-transition.vue'))['default']
82
+ HyUpload: (typeof import('./components/hy-upload/hy-upload.vue'))['default']
83
+ HyWarn: (typeof import('./components/hy-warn/hy-warn.vue'))['default']
84
+ HyWaterfall: (typeof import('./components/hy-waterfall/hy-waterfall.vue'))['default']
85
+ HyWatermark: (typeof import('./components/hy-watermark/hy-watermark.vue'))['default']
86
+ }
85
87
  }
86
88
 
87
- export {};
89
+ export {}
@@ -49,8 +49,3 @@
49
49
  color: transparent;
50
50
  display:none;
51
51
  }
52
-
53
- /* 去除原生按钮边框 */
54
- button:after {
55
- border: none;
56
- }
@@ -1,176 +1,172 @@
1
- import type { DateModeEnum } from "./enum";
2
- import type { CheckboxColumnsVo } from "../../../components/hy-check-button/typing";
3
- import type HyInputProps from "../../../components/hy-input/typing";
4
- import type HyTextareaProps from "../../../components/hy-textarea/typing";
5
- import type HySwitchProps from "../../../components/hy-switch/typing";
6
- import type HyPickerProps from "../../../components/hy-picker/typing";
7
- import type HyRadioProps from "../../../components/hy-radio/typing";
8
- import type HyCheckButtonProps from "../../../components/hy-check-button/typing";
1
+ import type { DateModeEnum } from './enum'
2
+ import type { CheckboxColumnsVo } from '../../../components/hy-check-button/typing'
3
+ import type HyInputProps from '../../../components/hy-input/typing'
4
+ import type HyTextareaProps from '../../../components/hy-textarea/typing'
5
+ import type HySwitchProps from '../../../components/hy-switch/typing'
6
+ import type HyPickerProps from '../../../components/hy-picker/typing'
7
+ import type HyRadioProps from '../../../components/hy-radio/typing'
8
+ import type HyCheckButtonProps from '../../../components/hy-check-button/typing'
9
9
 
10
10
  /**
11
11
  * 类型
12
12
  * */
13
13
  export enum FormTypeEnum {
14
- /**
15
- * 上传文件
16
- * */
17
- UPLOAD = "upload",
18
- /**
19
- * 普通输入框
20
- * */
21
- TEXT = "text",
22
- /**
23
- * 数字输入框
24
- * */
25
- NUMBER = "number",
26
- /**
27
- * 密码输入框
28
- * */
29
- PASSWORD = "password",
30
- /**
31
- * 身份证id输入框
32
- * */
33
- ID_CARD = "idcard",
34
- /**
35
- * 单选
36
- * */
37
- RADIO = "radio",
38
- /**
39
- * 选择按钮(单选/多选)
40
- * */
41
- CHECK_BUTTON = "checkButton",
42
- /**
43
- * 时间选择器
44
- * */
45
- DATE = "date",
46
- /**
47
- * 选择器
48
- * */
49
- SELECT = "select",
50
- /**
51
- * 地址选择器
52
- * */
53
- ADDRESS = "address",
54
- /**
55
- * 开关
56
- * */
57
- SWITCH = "switch",
58
- /**
59
- * 详情
60
- * */
61
- DETAIL = "detail",
62
- /**
63
- * 文本域
64
- * */
65
- TEXTAREA = "textarea",
66
- /**
67
- * 自定义
68
- * */
69
- CUSTOM = "custom",
14
+ /**
15
+ * 上传文件
16
+ * */
17
+ UPLOAD = 'upload',
18
+ /**
19
+ * 普通输入框
20
+ * */
21
+ TEXT = 'text',
22
+ /**
23
+ * 数字输入框
24
+ * */
25
+ NUMBER = 'number',
26
+ /**
27
+ * 密码输入框
28
+ * */
29
+ PASSWORD = 'password',
30
+ /**
31
+ * 身份证id输入框
32
+ * */
33
+ ID_CARD = 'idcard',
34
+ /**
35
+ * 单选
36
+ * */
37
+ RADIO = 'radio',
38
+ /**
39
+ * 选择按钮(单选/多选)
40
+ * */
41
+ CHECK_BUTTON = 'checkButton',
42
+ /**
43
+ * 时间选择器
44
+ * */
45
+ DATE = 'date',
46
+ /**
47
+ * 选择器
48
+ * */
49
+ SELECT = 'select',
50
+ /**
51
+ * 地址选择器
52
+ * */
53
+ ADDRESS = 'address',
54
+ /**
55
+ * 开关
56
+ * */
57
+ SWITCH = 'switch',
58
+ /**
59
+ * 详情
60
+ * */
61
+ DETAIL = 'detail',
62
+ /**
63
+ * 文本域
64
+ * */
65
+ TEXTAREA = 'textarea',
66
+ /**
67
+ * 自定义
68
+ * */
69
+ CUSTOM = 'custom'
70
70
  }
71
71
 
72
72
  export interface FormColumnsType {
73
- /**
74
- * 标题
75
- * */
76
- label: string;
77
- /**
78
- * 字段
79
- * */
80
- field: string;
81
- /**
82
- * 是否需要校验
83
- * */
84
- required?: boolean;
85
- /**
86
- * 右固定
87
- * */
88
- right?: boolean;
89
- /**
90
- * @description 表单类型
91
- * */
92
- type: FormTypeEnum;
93
- /**
94
- * @description 文件最大上传数据
95
- * */
96
- maxCount?: number;
97
- /**
98
- * @description 是否禁用
99
- * */
100
- disabled?: boolean;
73
+ /**
74
+ * 标题
75
+ * */
76
+ label: string
77
+ /**
78
+ * 字段
79
+ * */
80
+ field: string
81
+ /**
82
+ * 右固定
83
+ * */
84
+ right?: boolean
85
+ /**
86
+ * @description 表单类型
87
+ * */
88
+ type: FormTypeEnum
89
+ /**
90
+ * @description 文件最大上传数据
91
+ * */
92
+ maxCount?: number
93
+ /**
94
+ * @description 是否禁用
95
+ * */
96
+ disabled?: boolean
101
97
 
102
- /**
103
- * @description type = select时候必填
104
- * */
105
- select?: string[][] | { text: string; id: string }[][];
106
- /**
107
- * @description type = radio时候必填
108
- * */
109
- actions?: CheckboxColumnsVo[];
110
- /**
111
- * @description 输入框属性api集合
112
- * */
113
- input?: Partial<HyInputProps>;
114
- /**
115
- * @description 文本域属性api集合
116
- * */
117
- textarea?: Partial<HyTextareaProps>;
118
- /**
119
- * @description 开关属性api集合
120
- * */
121
- switchItem?: Partial<HySwitchProps>;
122
- /**
123
- * @description 选择器属性api集合
124
- * */
125
- picker?: Partial<HyPickerProps>;
126
- /**
127
- * @description 单选属性api集合
128
- * */
129
- radio?: Partial<HyRadioProps>;
130
- /**
131
- * @description 选择按钮属性api集合
132
- * */
133
- checkButton?: Partial<HyCheckButtonProps>;
134
- /**
135
- * @description 输入框边框
136
- * */
137
- mode?: DateModeEnum;
138
- /**
139
- * @description 规则校验
140
- * */
141
- rules?: RulesVo | RulesVo[];
98
+ /**
99
+ * @description type = select时候必填
100
+ * */
101
+ select?: string[][] | { text: string; id: string }[][]
102
+ /**
103
+ * @description type = radio时候必填
104
+ * */
105
+ actions?: CheckboxColumnsVo[]
106
+ /**
107
+ * @description 输入框属性api集合
108
+ * */
109
+ input?: Partial<HyInputProps>
110
+ /**
111
+ * @description 文本域属性api集合
112
+ * */
113
+ textarea?: Partial<HyTextareaProps>
114
+ /**
115
+ * @description 开关属性api集合
116
+ * */
117
+ switchItem?: Partial<HySwitchProps>
118
+ /**
119
+ * @description 选择器属性api集合
120
+ * */
121
+ picker?: Partial<HyPickerProps>
122
+ /**
123
+ * @description 单选属性api集合
124
+ * */
125
+ radio?: Partial<HyRadioProps>
126
+ /**
127
+ * @description 选择按钮属性api集合
128
+ * */
129
+ checkButton?: Partial<HyCheckButtonProps>
130
+ /**
131
+ * @description 日期展示的格式
132
+ * */
133
+ mode?: DateModeEnum
134
+ /**
135
+ * @description 规则校验
136
+ * */
137
+ rules?: RulesVo | RulesVo[]
142
138
  }
143
139
 
144
140
  export interface RulesVo {
145
- /**
146
- * @description 是否必填
147
- * */
148
- required?: boolean;
149
- /**
150
- * @description 校验不通过时的提示信息
151
- * */
152
- message?: string;
153
- /**
154
- * @description 表单事件校验
155
- * */
156
- trigger?: ("blur" | "change")[];
157
- /**
158
- * @description 最小值
159
- * */
160
- min?: number;
161
- /**
162
- * @description 最大值
163
- * */
164
- max?: number;
165
- /**
166
- * @description 基础正则校验
167
- * phone - 手机号校验
168
- * email - 邮箱校验
169
- * password - 复杂密码校验
170
- * */
171
- type?: "phone" | "email" | "password";
172
- /**
173
- * @description 自定义校验规则
174
- * */
175
- validator?: (rule: any, value: string, callback?: Function) => boolean;
141
+ /**
142
+ * @description 是否必填
143
+ * */
144
+ required?: boolean
145
+ /**
146
+ * @description 校验不通过时的提示信息
147
+ * */
148
+ message?: string
149
+ /**
150
+ * @description 表单事件校验
151
+ * */
152
+ trigger?: ('blur' | 'change')[]
153
+ /**
154
+ * @description 最小值
155
+ * */
156
+ min?: number
157
+ /**
158
+ * @description 最大值
159
+ * */
160
+ max?: number
161
+ /**
162
+ * @description 基础正则校验
163
+ * phone - 手机号校验
164
+ * email - 邮箱校验
165
+ * password - 复杂密码校验
166
+ * */
167
+ type?: 'phone' | 'email' | 'password'
168
+ /**
169
+ * @description 自定义校验规则
170
+ * */
171
+ validator?: (rule: any, value: string, callback?: Function) => boolean
176
172
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "hy-app",
3
- "version": "0.5.2",
4
- "description": "fix: 加事件和插槽",
3
+ "version": "0.5.4",
4
+ "description": "fix: tabbar优化",
5
5
  "main": "./index.ts",
6
6
  "private": false,
7
7
  "scripts": {},