hy-app 0.6.4 → 0.6.6

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 (106) hide show
  1. package/attributes.json +1 -1
  2. package/components/hy-address-picker/hy-address-picker.vue +249 -249
  3. package/components/hy-address-picker/props.ts +103 -103
  4. package/components/hy-button/hy-button.vue +320 -289
  5. package/components/hy-button/props.ts +143 -143
  6. package/components/hy-button/typing.d.ts +43 -35
  7. package/components/hy-calendar/header.vue +58 -58
  8. package/components/hy-calendar/hy-calendar.vue +8 -6
  9. package/components/hy-calendar/month.vue +402 -402
  10. package/components/hy-calendar/props.ts +169 -169
  11. package/components/hy-calendar/typing.d.ts +47 -45
  12. package/components/hy-cell-item/hy-cell-item.vue +161 -161
  13. package/components/hy-cell-item/props.ts +59 -59
  14. package/components/hy-check-button/hy-check-button.vue +135 -135
  15. package/components/hy-code-input/hy-code-input.vue +231 -231
  16. package/components/hy-code-input/props.ts +90 -90
  17. package/components/hy-config-provider/hy-config-provider.vue +53 -53
  18. package/components/hy-config-provider/props.ts +30 -30
  19. package/components/hy-coupon/hy-coupon.vue +183 -183
  20. package/components/hy-coupon/props.ts +108 -108
  21. package/components/hy-datetime-picker/hy-datetime-picker.vue +41 -55
  22. package/components/hy-datetime-picker/props.ts +144 -144
  23. package/components/hy-datetime-picker/typing.d.ts +2 -0
  24. package/components/hy-divider/props.ts +83 -83
  25. package/components/hy-empty/icon.ts +72 -72
  26. package/components/hy-folding-panel/hy-folding-panel-group.vue +162 -162
  27. package/components/hy-form/hy-form.vue +220 -220
  28. package/components/hy-icon/hy-icon.vue +112 -112
  29. package/components/hy-index-bar/hy-index-bar.vue +185 -185
  30. package/components/hy-index-bar/index.scss +64 -64
  31. package/components/hy-index-bar/props.ts +94 -94
  32. package/components/hy-index-bar/typing.d.ts +36 -36
  33. package/components/hy-input/hy-input.vue +333 -333
  34. package/components/hy-input/props.ts +186 -186
  35. package/components/hy-modal/hy-modal.vue +211 -211
  36. package/components/hy-modal/props.ts +94 -94
  37. package/components/hy-modal/typing.d.ts +16 -16
  38. package/components/hy-notice-bar/hy-row-notice.vue +121 -121
  39. package/components/hy-notify/hy-notify.vue +174 -174
  40. package/components/hy-number-step/hy-number-step.vue +367 -367
  41. package/components/hy-overlay/hy-overlay.vue +61 -61
  42. package/components/hy-overlay/props.ts +38 -38
  43. package/components/hy-pagination/hy-pagination.vue +136 -136
  44. package/components/hy-pagination/props.ts +58 -58
  45. package/components/hy-parse/hy-parse.vue +550 -550
  46. package/components/hy-parse/node/node.vue +781 -781
  47. package/components/hy-parse/parser.js +1455 -1455
  48. package/components/hy-parse/props.ts +19 -19
  49. package/components/hy-parse/typing.d.ts +68 -68
  50. package/components/hy-picker/hy-picker.vue +435 -435
  51. package/components/hy-picker/props.ts +122 -122
  52. package/components/hy-picker/typing.d.ts +38 -38
  53. package/components/hy-qrcode/props.ts +72 -72
  54. package/components/hy-qrcode/qrcode.js.bak +1433 -1433
  55. package/components/hy-radio/props.ts +97 -97
  56. package/components/hy-read-more/props.ts +48 -48
  57. package/components/hy-search/props.ts +133 -133
  58. package/components/hy-signature/canvasHelper.ts +51 -51
  59. package/components/hy-signature/props.ts +121 -121
  60. package/components/hy-skeleton/hy-skeleton.vue +142 -142
  61. package/components/hy-skeleton/props.ts +46 -46
  62. package/components/hy-skeleton/typing.d.ts +31 -31
  63. package/components/hy-steps/hy-steps.vue +275 -275
  64. package/components/hy-steps/typing.d.ts +25 -25
  65. package/components/hy-swiper/hy-swiper.vue +3 -3
  66. package/components/hy-swiper/index.scss +5 -5
  67. package/components/hy-swiper/props.ts +0 -1
  68. package/components/hy-table/hy-table.vue +630 -630
  69. package/components/hy-table/props.ts +62 -62
  70. package/components/hy-table/typing.d.ts +29 -29
  71. package/components/hy-tabs/hy-tabs.vue +336 -335
  72. package/components/hy-tabs/props.ts +84 -77
  73. package/components/hy-tag/hy-tag.vue +173 -173
  74. package/components/hy-tag/props.ts +89 -89
  75. package/components/hy-text/hy-text.vue +237 -237
  76. package/components/hy-text/props.ts +115 -115
  77. package/components/hy-textarea/hy-textarea.vue +198 -198
  78. package/components/hy-toast/hy-toast.vue +200 -200
  79. package/components/hy-toast/props.ts +3 -3
  80. package/components/hy-transition/hy-transition.vue +157 -157
  81. package/components/hy-transition/props.ts +32 -32
  82. package/components/hy-upload/hy-upload.vue +384 -384
  83. package/components/hy-watermark/hy-watermark.vue +1058 -1058
  84. package/components/hy-watermark/props.ts +109 -109
  85. package/global.d.ts +94 -94
  86. package/libs/api/http.ts +119 -119
  87. package/libs/composables/index.ts +8 -8
  88. package/libs/composables/useMessage.ts +149 -149
  89. package/libs/composables/useToast.ts +45 -45
  90. package/libs/composables/useTranslate.ts +10 -10
  91. package/libs/css/_config.scss +5 -5
  92. package/libs/index.ts +8 -8
  93. package/libs/locale/index.ts +32 -32
  94. package/libs/locale/lang/en-US.ts +84 -84
  95. package/libs/locale/lang/zh-CN.ts +87 -87
  96. package/libs/typing/index.ts +2 -2
  97. package/libs/typing/modules/common.d.ts +139 -139
  98. package/libs/typing/modules/form.ts +176 -176
  99. package/libs/typing/modules/http.d.ts +19 -19
  100. package/libs/typing/modules/index.d.ts +12 -12
  101. package/libs/utils/inside.ts +340 -340
  102. package/libs/utils/inspect.ts +140 -140
  103. package/libs/utils/utils.ts +525 -525
  104. package/package.json +81 -81
  105. package/tags.json +1 -1
  106. package/web-types.json +1 -1
@@ -1,122 +1,122 @@
1
- import type { PickerColumnVo } from './typing'
2
- import type { PropType } from 'vue'
3
- import type { HyInputProps } from '../hy-input/typing'
4
- import { useTranslate } from '../../libs'
5
-
6
- const { t } = useTranslate('picker')
7
-
8
- const pickerProps = {
9
- /** 显示到输入框值 */
10
- modelValue: {
11
- type: [String, Array],
12
- default: ''
13
- },
14
- /** 是否显示弹窗 */
15
- show: {
16
- type: Boolean,
17
- default: false
18
- },
19
- /** 弹窗弹出模式 */
20
- popupMode: {
21
- type: String,
22
- default: 'bottom'
23
- },
24
- /** 分割数组条件 */
25
- separator: {
26
- type: String,
27
- default: '/'
28
- },
29
- /** 是否显示顶部的操作栏 */
30
- showToolbar: {
31
- type: Boolean,
32
- default: true
33
- },
34
- /** 顶部标题 */
35
- title: String,
36
- /** 二维数组,设置每一列的数据 */
37
- columns: {
38
- type: Array as unknown as PropType<
39
- (string | PickerColumnVo)[][] | (string | PickerColumnVo)[]
40
- >,
41
- default: []
42
- },
43
- /** 是否显示加载中状态 */
44
- loading: {
45
- type: Boolean,
46
- default: false
47
- },
48
- /** 各列中,单个选项的高度 */
49
- itemHeight: {
50
- type: Number,
51
- default: 44
52
- },
53
- /** 取消按钮的文字 */
54
- cancelText: {
55
- type: String,
56
- default: () => t('cancel')
57
- },
58
- /** 确认按钮的文字 */
59
- confirmText: {
60
- type: String,
61
- default: () => t('confirm')
62
- },
63
- /** 取消按钮的颜色 */
64
- cancelColor: {
65
- type: String,
66
- default: '#909193'
67
- },
68
- /** 确认按钮的颜色 */
69
- confirmColor: String,
70
- /** 每列中可见选项的数量 */
71
- visibleItemCount: {
72
- type: Number,
73
- default: 5
74
- },
75
- /** 显示到选项对象中,需要展示的属性键名 */
76
- labelKey: {
77
- type: String,
78
- default: 'label'
79
- },
80
- /** 显示到选项对象中,需要展示的属性键名 */
81
- valueKey: {
82
- type: String,
83
- default: 'value'
84
- },
85
- /** 是否允许点击遮罩关闭选择器 */
86
- closeOnClickOverlay: {
87
- type: Boolean,
88
- default: false
89
- },
90
- /** 各列的默认索引 */
91
- defaultIndex: {
92
- type: Array as PropType<number[]>,
93
- default: []
94
- },
95
- /** 是否在手指松开时立即触发change事件 */
96
- immediateChange: {
97
- type: Boolean,
98
- default: true
99
- },
100
- /** 最高层级 */
101
- zIndex: {
102
- type: Number,
103
- default: 10076
104
- },
105
- /** 是否显示输入框 */
106
- hasInput: {
107
- type: Boolean,
108
- default: false
109
- },
110
- /** 输入框集合属性 */
111
- input: {
112
- type: Object as PropType<HyInputProps>,
113
- default: () => {}
114
- },
115
- /** 是否自定义选择器nav左边内容 */
116
- toolbarRightSlot: {
117
- type: Boolean,
118
- default: false
119
- }
120
- }
121
-
122
- export default pickerProps
1
+ import type { PickerColumnVo } from './typing'
2
+ import type { PropType } from 'vue'
3
+ import type { HyInputProps } from '../hy-input/typing'
4
+ import { useTranslate } from '../../libs'
5
+
6
+ const { t } = useTranslate('picker')
7
+
8
+ const pickerProps = {
9
+ /** 显示到输入框值 */
10
+ modelValue: {
11
+ type: [String, Array],
12
+ default: ''
13
+ },
14
+ /** 是否显示弹窗 */
15
+ show: {
16
+ type: Boolean,
17
+ default: false
18
+ },
19
+ /** 弹窗弹出模式 */
20
+ popupMode: {
21
+ type: String,
22
+ default: 'bottom'
23
+ },
24
+ /** 分割数组条件 */
25
+ separator: {
26
+ type: String,
27
+ default: '/'
28
+ },
29
+ /** 是否显示顶部的操作栏 */
30
+ showToolbar: {
31
+ type: Boolean,
32
+ default: true
33
+ },
34
+ /** 顶部标题 */
35
+ title: String,
36
+ /** 二维数组,设置每一列的数据 */
37
+ columns: {
38
+ type: Array as unknown as PropType<
39
+ (string | PickerColumnVo)[][] | (string | PickerColumnVo)[]
40
+ >,
41
+ default: []
42
+ },
43
+ /** 是否显示加载中状态 */
44
+ loading: {
45
+ type: Boolean,
46
+ default: false
47
+ },
48
+ /** 各列中,单个选项的高度 */
49
+ itemHeight: {
50
+ type: Number,
51
+ default: 44
52
+ },
53
+ /** 取消按钮的文字 */
54
+ cancelText: {
55
+ type: String,
56
+ default: () => t('cancel')
57
+ },
58
+ /** 确认按钮的文字 */
59
+ confirmText: {
60
+ type: String,
61
+ default: () => t('confirm')
62
+ },
63
+ /** 取消按钮的颜色 */
64
+ cancelColor: {
65
+ type: String,
66
+ default: '#909193'
67
+ },
68
+ /** 确认按钮的颜色 */
69
+ confirmColor: String,
70
+ /** 每列中可见选项的数量 */
71
+ visibleItemCount: {
72
+ type: Number,
73
+ default: 5
74
+ },
75
+ /** 显示到选项对象中,需要展示的属性键名 */
76
+ labelKey: {
77
+ type: String,
78
+ default: 'label'
79
+ },
80
+ /** 显示到选项对象中,需要展示的属性键名 */
81
+ valueKey: {
82
+ type: String,
83
+ default: 'value'
84
+ },
85
+ /** 是否允许点击遮罩关闭选择器 */
86
+ closeOnClickOverlay: {
87
+ type: Boolean,
88
+ default: false
89
+ },
90
+ /** 各列的默认索引 */
91
+ defaultIndex: {
92
+ type: Array as PropType<number[]>,
93
+ default: []
94
+ },
95
+ /** 是否在手指松开时立即触发change事件 */
96
+ immediateChange: {
97
+ type: Boolean,
98
+ default: true
99
+ },
100
+ /** 最高层级 */
101
+ zIndex: {
102
+ type: Number,
103
+ default: 10076
104
+ },
105
+ /** 是否显示输入框 */
106
+ hasInput: {
107
+ type: Boolean,
108
+ default: false
109
+ },
110
+ /** 输入框集合属性 */
111
+ input: {
112
+ type: Object as PropType<HyInputProps>,
113
+ default: () => {}
114
+ },
115
+ /** 是否自定义选择器nav左边内容 */
116
+ toolbarRightSlot: {
117
+ type: Boolean,
118
+ default: false
119
+ }
120
+ }
121
+
122
+ export default pickerProps
@@ -1,38 +1,38 @@
1
- export interface PickerColumnVo {
2
- /**
3
- * value必填,回填根据这个值判断
4
- * */
5
- value: string | number
6
- /**
7
- * 显示文本
8
- * */
9
- label?: string
10
- /**
11
- * 任意数据
12
- * */
13
- [key: string]: any
14
- }
15
-
16
- export type SelectValueVo = {
17
- value: string[]
18
- index?: number
19
- indexs?: number[]
20
- // values为当前变化列的数组内容
21
- values?: Array<any>
22
- columnIndex?: number
23
- }
24
-
25
- export interface IPickerEmits {
26
- /** 关闭选择器时触发 */
27
- (e: 'close'): void
28
- /** 点击取消按钮 */
29
- (e: 'cancel'): void
30
- /** 点击确定按钮,返回当前选择的值 */
31
- (e: 'confirm', params: SelectValueVo): void
32
- /** 当选择值变化时触发 */
33
- (e: 'change', params: SelectValueVo): void
34
- /** 显示隐藏触发 */
35
- (e: 'update:show', show: boolean): void
36
- /** 选中值触发 */
37
- (e: 'update:modelValue', value: any): void
38
- }
1
+ export interface PickerColumnVo {
2
+ /**
3
+ * value必填,回填根据这个值判断
4
+ * */
5
+ value: string | number
6
+ /**
7
+ * 显示文本
8
+ * */
9
+ label?: string
10
+ /**
11
+ * 任意数据
12
+ * */
13
+ [key: string]: any
14
+ }
15
+
16
+ export type SelectValueVo = {
17
+ value: string[]
18
+ index?: number
19
+ indexs?: number[]
20
+ // values为当前变化列的数组内容
21
+ values?: Array<any>
22
+ columnIndex?: number
23
+ }
24
+
25
+ export interface IPickerEmits {
26
+ /** 关闭选择器时触发 */
27
+ (e: 'close'): void
28
+ /** 点击取消按钮 */
29
+ (e: 'cancel'): void
30
+ /** 点击确定按钮,返回当前选择的值 */
31
+ (e: 'confirm', params: SelectValueVo): void
32
+ /** 当选择值变化时触发 */
33
+ (e: 'change', params: SelectValueVo): void
34
+ /** 显示隐藏触发 */
35
+ (e: 'update:show', show: boolean): void
36
+ /** 选中值触发 */
37
+ (e: 'update:modelValue', value: any): void
38
+ }
@@ -1,72 +1,72 @@
1
- import { random, useTranslate } from '../../libs'
2
-
3
- const { t } = useTranslate('qrCode')
4
-
5
- const qrCodeProps = {
6
- /** 实例ID字符串(如果有多个二维码组件必须设置不一样的cid) */
7
- cid: {
8
- type: String,
9
- default: 'hy-qrcode-canvas_' + random(1, 1000)
10
- },
11
- /** 二维码大小 */
12
- size: {
13
- type: Number,
14
- default: 200
15
- },
16
- /** 二维码内容 */
17
- text: String,
18
- /** 是否显示二维码 */
19
- show: {
20
- type: Boolean,
21
- default: true
22
- },
23
- /** 二维码背景色 */
24
- background: {
25
- type: String,
26
- default: '#ffffff'
27
- },
28
- /** 二维码颜色 */
29
- foreground: {
30
- type: String,
31
- default: '#000000'
32
- },
33
- /** 定位角点颜色 */
34
- pdGround: {
35
- type: String,
36
- default: '#000000'
37
- },
38
- /** 是否是自定义组件 */
39
- usingComponents: {
40
- type: Boolean,
41
- default: true
42
- },
43
- /** 容错级别 */
44
- lv: {
45
- type: Number,
46
- default: 3
47
- },
48
- /** 二维码中间图标 */
49
- icon: String,
50
- /** 二维码中间图标大小 */
51
- iconSize: {
52
- type: Number,
53
- default: 40
54
- },
55
- /** 显示加载状态 */
56
- showLoading: {
57
- type: Boolean,
58
- default: true
59
- },
60
- /** 加载中提示语 */
61
- loadingText: {
62
- type: String,
63
- default: () => t('loading')
64
- },
65
- /** 是否预览 */
66
- allowPreview: {
67
- type: Boolean,
68
- default: false
69
- }
70
- }
71
-
72
- export default qrCodeProps
1
+ import { random, useTranslate } from '../../libs'
2
+
3
+ const { t } = useTranslate('qrCode')
4
+
5
+ const qrCodeProps = {
6
+ /** 实例ID字符串(如果有多个二维码组件必须设置不一样的cid) */
7
+ cid: {
8
+ type: String,
9
+ default: 'hy-qrcode-canvas_' + random(1, 1000)
10
+ },
11
+ /** 二维码大小 */
12
+ size: {
13
+ type: Number,
14
+ default: 200
15
+ },
16
+ /** 二维码内容 */
17
+ text: String,
18
+ /** 是否显示二维码 */
19
+ show: {
20
+ type: Boolean,
21
+ default: true
22
+ },
23
+ /** 二维码背景色 */
24
+ background: {
25
+ type: String,
26
+ default: '#ffffff'
27
+ },
28
+ /** 二维码颜色 */
29
+ foreground: {
30
+ type: String,
31
+ default: '#000000'
32
+ },
33
+ /** 定位角点颜色 */
34
+ pdGround: {
35
+ type: String,
36
+ default: '#000000'
37
+ },
38
+ /** 是否是自定义组件 */
39
+ usingComponents: {
40
+ type: Boolean,
41
+ default: true
42
+ },
43
+ /** 容错级别 */
44
+ lv: {
45
+ type: Number,
46
+ default: 3
47
+ },
48
+ /** 二维码中间图标 */
49
+ icon: String,
50
+ /** 二维码中间图标大小 */
51
+ iconSize: {
52
+ type: Number,
53
+ default: 40
54
+ },
55
+ /** 显示加载状态 */
56
+ showLoading: {
57
+ type: Boolean,
58
+ default: true
59
+ },
60
+ /** 加载中提示语 */
61
+ loadingText: {
62
+ type: String,
63
+ default: () => t('loading')
64
+ },
65
+ /** 是否预览 */
66
+ allowPreview: {
67
+ type: Boolean,
68
+ default: false
69
+ }
70
+ }
71
+
72
+ export default qrCodeProps