hy-app 0.4.3 → 0.4.5

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 (147) hide show
  1. package/components/hy-action-sheet/hy-action-sheet.vue +1 -1
  2. package/components/hy-address-picker/hy-address-picker.vue +1 -1
  3. package/components/hy-avatar/hy-avatar.vue +1 -1
  4. package/components/hy-back-top/hy-back-top.vue +1 -2
  5. package/components/hy-badge/hy-badge.vue +1 -1
  6. package/components/hy-button/hy-button.vue +1 -2
  7. package/components/hy-calendar/hy-calendar.vue +3 -11
  8. package/components/hy-calendar/month.vue +1 -1
  9. package/components/hy-card/hy-card.vue +1 -1
  10. package/components/hy-cell/hy-cell.vue +1 -2
  11. package/components/hy-cell/props.ts +1 -1
  12. package/components/hy-check-button/hy-check-button.vue +2 -2
  13. package/components/hy-checkbox/hy-checkbox.vue +2 -3
  14. package/components/hy-checkbox-group/hy-checkbox-group.vue +1 -1
  15. package/components/hy-checkbox-item/hy-checkbox-item.vue +1 -2
  16. package/components/hy-code-input/hy-code-input.vue +1 -1
  17. package/components/hy-config-provider/hy-config-provider.vue +2 -3
  18. package/components/hy-config-provider/props.ts +1 -1
  19. package/components/hy-count-down/index.ts +1 -1
  20. package/components/hy-count-to/hy-count-to.vue +1 -1
  21. package/components/hy-datetime-picker/hy-datetime-picker.vue +2 -3
  22. package/components/hy-datetime-picker/props.ts +1 -1
  23. package/components/hy-divider/hy-divider.vue +1 -2
  24. package/components/hy-divider/props.ts +1 -1
  25. package/components/hy-dropdown/hy-dropdown.vue +2 -3
  26. package/components/hy-dropdown/props.ts +1 -1
  27. package/components/hy-dropdown-item/hy-dropdown-item.vue +1 -2
  28. package/components/hy-empty/hy-empty.vue +1 -1
  29. package/components/hy-flex/hy-flex.vue +1 -1
  30. package/components/hy-float-button/hy-float-button.vue +1 -2
  31. package/components/hy-float-button/props.ts +14 -14
  32. package/components/hy-folding-panel/hy-folding-panel.vue +2 -3
  33. package/components/hy-folding-panel/props.ts +1 -1
  34. package/components/hy-form/hy-form.vue +1 -1
  35. package/components/hy-form-group/hy-form-group.vue +183 -111
  36. package/components/hy-form-group/typing.d.ts +1 -1
  37. package/components/hy-form-item/hy-form-item.vue +1 -1
  38. package/components/hy-grid/hy-grid.vue +1 -1
  39. package/components/hy-icon/hy-icon.vue +1 -1
  40. package/components/hy-icon/index.scss +1 -1
  41. package/components/hy-image/hy-image.vue +1 -2
  42. package/components/hy-image/props.ts +10 -10
  43. package/components/hy-input/hy-input.vue +1 -2
  44. package/components/hy-line/hy-line.vue +1 -1
  45. package/components/hy-line-progress/hy-line-progress.vue +1 -2
  46. package/components/hy-list/hy-list.vue +1 -1
  47. package/components/hy-loading/hy-loading.vue +1 -1
  48. package/components/hy-menu/hy-menu.vue +1 -1
  49. package/components/hy-modal/hy-modal.vue +2 -2
  50. package/components/hy-modal/props.ts +13 -13
  51. package/components/hy-navbar/hy-navbar.vue +1 -2
  52. package/components/hy-navbar/props.ts +1 -1
  53. package/components/hy-notice-bar/hy-column-notice.vue +1 -2
  54. package/components/hy-notice-bar/hy-notice-bar.vue +1 -1
  55. package/components/hy-notice-bar/hy-row-notice.vue +1 -2
  56. package/components/hy-notice-bar/props.ts +1 -1
  57. package/components/hy-notify/hy-notify.vue +1 -2
  58. package/components/hy-number-step/hy-number-step.vue +1 -2
  59. package/components/hy-overlay/hy-overlay.vue +1 -1
  60. package/components/hy-pagination/hy-pagination.vue +1 -1
  61. package/components/hy-picker/hy-picker.vue +1 -2
  62. package/components/hy-popover/hy-popover.vue +9 -3
  63. package/components/hy-popup/hy-popup.vue +2 -3
  64. package/components/hy-price/hy-price.vue +3 -2
  65. package/components/hy-qrcode/hy-qrcode.vue +1 -1
  66. package/components/hy-radio/hy-radio.vue +1 -2
  67. package/components/hy-rate/hy-rate.vue +6 -4
  68. package/components/hy-rate/props.ts +6 -6
  69. package/components/hy-read-more/hy-read-more.vue +1 -2
  70. package/components/hy-scroll-list/hy-scroll-list.vue +1 -1
  71. package/components/hy-scroll-list/props.ts +0 -1
  72. package/components/hy-search/hy-search.vue +3 -3
  73. package/components/hy-signature/hy-signature.vue +1 -1
  74. package/components/hy-slider/hy-slider.vue +3 -13
  75. package/components/hy-slider/props.ts +1 -1
  76. package/components/hy-status-bar/hy-status-bar.vue +1 -1
  77. package/components/hy-status-bar/props.ts +1 -1
  78. package/components/hy-steps/hy-steps.vue +1 -2
  79. package/components/hy-subsection/hy-subsection.vue +1 -1
  80. package/components/hy-subsection/props.ts +0 -1
  81. package/components/hy-subsection/typing.d.ts +0 -1
  82. package/components/hy-swipe-action/hy-swipe-action.vue +1 -2
  83. package/components/hy-swiper/hy-swiper-indicator.vue +1 -1
  84. package/components/hy-swiper/hy-swiper.vue +2 -3
  85. package/components/hy-swiper/typing.d.ts +35 -36
  86. package/components/hy-switch/hy-switch.vue +2 -2
  87. package/components/hy-switch/typing.d.ts +0 -1
  88. package/components/hy-tabs/hy-tabs.vue +2 -3
  89. package/components/hy-tag/hy-tag.vue +1 -2
  90. package/components/hy-text/hy-text.vue +2 -2
  91. package/components/hy-text/typing.d.ts +26 -26
  92. package/components/hy-textarea/hy-textarea.vue +2 -2
  93. package/components/hy-toast/hy-toast.vue +33 -19
  94. package/components/hy-toast/index.scss +3 -2
  95. package/components/hy-toast/typing.d.ts +1 -1
  96. package/components/hy-tooltip/hy-tooltip.vue +8 -2
  97. package/components/hy-transition/hy-transition.vue +1 -1
  98. package/components/hy-upload/hy-upload.vue +7 -2
  99. package/components/hy-upload/props.ts +1 -1
  100. package/components/hy-warn/hy-warn.vue +1 -2
  101. package/components/hy-warn/typing.d.ts +12 -13
  102. package/components/hy-waterfall/hy-waterfall.vue +1 -1
  103. package/components/hy-watermark/hy-watermark.vue +1 -1
  104. package/components/index.ts +117 -118
  105. package/index.ts +1 -7
  106. package/{api → libs/api}/http.ts +2 -2
  107. package/libs/common/index.ts +2 -0
  108. package/libs/common/queue.ts +28 -0
  109. package/{composables → libs/composables}/index.ts +1 -0
  110. package/{composables → libs/composables}/usePopover.ts +7 -2
  111. package/{common/shakeService.ts → libs/composables/useShakeService.ts} +4 -2
  112. package/{composables → libs/composables}/useShare.ts +3 -0
  113. package/libs/composables/useToast.ts +45 -0
  114. package/{composables → libs/composables}/useTouch.ts +3 -0
  115. package/{global → libs/global}/register-properties.ts +1 -1
  116. package/libs/index.ts +7 -0
  117. package/{typing → libs/typing}/index.ts +0 -1
  118. package/{typing → libs/typing}/modules/form.ts +7 -7
  119. package/{utils → libs/utils}/utils.ts +1 -0
  120. package/package.json +2 -2
  121. package/common/index.ts +0 -3
  122. package/common/queue.ts +0 -34
  123. package/components/hy-form/README.md +0 -301
  124. package/components/hy-text/index.ts +0 -0
  125. package/components/yk-dialog/yk-dialog.vue +0 -129
  126. package/composables/useToast.ts +0 -51
  127. package/typing/modules/dialog.ts +0 -17
  128. /package/{api → libs/api}/index.ts +0 -0
  129. /package/{common → libs/common}/versionControl.ts +0 -0
  130. /package/{composables → libs/composables}/useQueue.ts +0 -0
  131. /package/{config → libs/config}/color.ts +0 -0
  132. /package/{config → libs/config}/icon.ts +0 -0
  133. /package/{config → libs/config}/index.ts +0 -0
  134. /package/{static/font → libs/css}/iconfont.css +0 -0
  135. /package/{global → libs/global}/index.ts +0 -0
  136. /package/{typing → libs/typing}/modules/common.d.ts +0 -0
  137. /package/{typing → libs/typing}/modules/enum.ts +0 -0
  138. /package/{typing → libs/typing}/modules/http.ts +0 -0
  139. /package/{typing → libs/typing}/modules/icon.d.ts +0 -0
  140. /package/{typing → libs/typing}/modules/rect.ts +0 -0
  141. /package/{utils → libs/utils}/address.json +0 -0
  142. /package/{utils → libs/utils}/base64.ts +0 -0
  143. /package/{utils → libs/utils}/calendar.js +0 -0
  144. /package/{utils → libs/utils}/colorGradient.ts +0 -0
  145. /package/{utils → libs/utils}/index.ts +0 -0
  146. /package/{utils → libs/utils}/inside.ts +0 -0
  147. /package/{utils → libs/utils}/inspect.ts +0 -0
@@ -118,7 +118,7 @@ export default {
118
118
  <script lang="ts" setup>
119
119
  import { watch, ref } from "vue";
120
120
  import type { PropType, CSSProperties } from "vue";
121
- import { isArray } from "../../utils";
121
+ import { isArray } from "../../libs";
122
122
  import type {
123
123
  IActionSheetPanel,
124
124
  IActionSheetEmits,
@@ -80,7 +80,7 @@ export default {
80
80
  import { onMounted, ref, toRefs } from "vue";
81
81
  import type { PropType, CSSProperties } from "vue";
82
82
  import type { IAddressPickerEmits } from "./typing";
83
- import address from "../../utils/address.json";
83
+ import address from "../../libs/utils/address.json";
84
84
  import type HyInputProps from "../hy-input/typing";
85
85
  // 组件
86
86
  import HyInput from "../hy-input/hy-input.vue";
@@ -65,7 +65,7 @@ export default {
65
65
  import { computed, ref, watch } from "vue";
66
66
  import type { CSSProperties, PropType } from "vue";
67
67
  import type { IAvatarEmit } from "./typing";
68
- import { addUnit, isNumber, random } from "../../utils";
68
+ import { addUnit, isNumber, random } from "../../libs";
69
69
  // 组件
70
70
  import HyIcon from "../hy-icon/hy-icon.vue";
71
71
 
@@ -37,8 +37,7 @@ export default {
37
37
  <script setup lang="ts">
38
38
  import { computed, toRefs } from "vue";
39
39
  import type { CSSProperties, PropType } from "vue";
40
- import { addUnit, getPx } from "../../utils";
41
- import { IconConfig } from "../../config";
40
+ import { IconConfig, addUnit, getPx } from "../../libs";
42
41
  import type { IBackTopEmit } from "./typing";
43
42
  import type HyIconProps from "../hy-icon/typing";
44
43
  // 组件
@@ -30,7 +30,7 @@ export default {
30
30
  import { computed } from "vue";
31
31
  import type { CSSProperties, PropType } from "vue";
32
32
  import type { IBadgeEmit } from "./typing";
33
- import { addUnit } from "../../utils";
33
+ import { addUnit } from "../../libs";
34
34
 
35
35
  /**
36
36
  * 该组件一般用于图标右上角显示未读的消息数量,提示用户点击,有圆点和圆包含文字两种形式。
@@ -143,8 +143,7 @@ export default {
143
143
  <script setup lang="ts">
144
144
  import { computed } from "vue";
145
145
  import type { CSSProperties, PropType } from "vue";
146
- import { bem, throttle } from "../../utils";
147
- import { ColorConfig } from "../../config";
146
+ import { ColorConfig, bem, throttle } from "../../libs";
148
147
  import type { IButtonEmits } from "./typing";
149
148
  import type HyIconProps from "../hy-icon/typing";
150
149
  // 组件
@@ -76,15 +76,7 @@ export default {
76
76
 
77
77
  <script setup lang="ts">
78
78
  import type { ICalendarEmits } from "./typing";
79
- import {
80
- computed,
81
- nextTick,
82
- onMounted,
83
- type PropType,
84
- ref,
85
- toRefs,
86
- watch,
87
- } from "vue";
79
+ import { computed, nextTick, onMounted, type PropType, ref, watch } from "vue";
88
80
  import {
89
81
  addUnit,
90
82
  error,
@@ -92,8 +84,8 @@ import {
92
84
  isNumericString,
93
85
  padZero,
94
86
  range,
95
- } from "../../utils";
96
- import Calendar from "../../utils/calendar.js";
87
+ } from "../../libs";
88
+ import Calendar from "../../libs/utils/calendar.js";
97
89
  import dayjs from "dayjs/esm";
98
90
  // 组件
99
91
  import HyMount from "./month.vue";
@@ -63,7 +63,7 @@
63
63
  </template>
64
64
 
65
65
  <script>
66
- import { addUnit, colorGradient, deepClone, getRect, sleep } from "../../utils";
66
+ import { addUnit, colorGradient, deepClone, getRect, sleep } from "../../libs";
67
67
  import dayjs from "dayjs/esm";
68
68
  export default {
69
69
  name: "hy-calendar-month",
@@ -88,7 +88,7 @@ export default {
88
88
  import { computed } from "vue";
89
89
  import type { CSSProperties, PropType } from "vue";
90
90
  import type { ICardEmits } from "./typing";
91
- import { addUnit, getPx } from "../../utils";
91
+ import { addUnit, getPx } from "../../libs";
92
92
 
93
93
  /**
94
94
  * 卡片组件一般用于多个列表条目,且风格统一的场景。
@@ -162,8 +162,7 @@ import { computed } from "vue";
162
162
  import type { CSSProperties, PropType } from "vue";
163
163
  import type { ICellEmits } from "./typing";
164
164
  import type { CellContentVo } from "./typing";
165
- import { IconConfig } from "../../config";
166
- import { addUnit } from "../../utils";
165
+ import { IconConfig, addUnit } from "../../libs";
167
166
  // 组件
168
167
  import HyIcon from "../hy-icon/hy-icon.vue";
169
168
  import type HyIconProps from "../hy-icon/typing";
@@ -1,5 +1,5 @@
1
1
  import type IProps from "./typing";
2
- import { ColorConfig } from "../../config";
2
+ import { ColorConfig } from "../../libs/config";
3
3
 
4
4
  const defaultProps: IProps = {
5
5
  list: [],
@@ -27,11 +27,11 @@ export default {
27
27
  </script>
28
28
 
29
29
  <script setup lang="ts">
30
- import { toRefs, watch, ref, type PropType } from "vue";
30
+ import { watch, ref, type PropType } from "vue";
31
31
  import type { ICheckButtonEmits, IFieldNames } from "./typing";
32
32
  import type { CheckboxColumnsVo } from "./typing";
33
33
  import HyTag from "../hy-tag/hy-tag.vue";
34
- import { isArray, isNumber } from "../../utils";
34
+ import { isArray, isNumber } from "../../libs";
35
35
  import type { TagParamsVo } from "../hy-tag/typing";
36
36
 
37
37
  /**
@@ -68,10 +68,9 @@ export default {
68
68
  </script>
69
69
 
70
70
  <script setup lang="ts">
71
- import { computed, toRefs, watch, ref, reactive } from "vue";
71
+ import { computed, watch, ref, reactive } from "vue";
72
72
  import type { CSSProperties, PropType } from "vue";
73
- import { addUnit, bem, error } from "../../utils";
74
- import { IconConfig } from "../../config";
73
+ import { IconConfig, addUnit, bem, error } from "../../libs";
75
74
  import type { ICheckBoxEmits } from "./typing";
76
75
  import type { CheckboxColumnsVo, IFieldNames } from "../hy-check-button/typing";
77
76
  // 组件
@@ -7,7 +7,7 @@
7
7
  <script setup lang="ts">
8
8
  import { computed, provide, toRefs } from "vue";
9
9
  import type { CSSProperties, PropType } from "vue";
10
- import { bem } from "../../utils";
10
+ import { bem } from "../../libs";
11
11
  import type { ICheckBoxGroupEmits } from "./typing";
12
12
 
13
13
  /**
@@ -70,8 +70,7 @@ export default {
70
70
  <script setup lang="ts">
71
71
  import { computed, watch, ref, reactive, inject } from "vue";
72
72
  import type { CSSProperties } from "vue";
73
- import { addUnit, error } from "../../utils";
74
- import { IconConfig } from "../../config";
73
+ import { IconConfig, addUnit, error } from "../../libs";
75
74
  import type { ICheckboxGroupContext } from "./typing";
76
75
  // 组件
77
76
  import HyIcon from "../hy-icon/hy-icon.vue";
@@ -56,7 +56,7 @@ export default {
56
56
  import { computed, nextTick, onUnmounted, ref, watch } from "vue";
57
57
  import type { CSSProperties, PropType } from "vue";
58
58
  import type { ICodeInputEmits } from "./typing";
59
- import { addUnit, getPx } from "../../utils";
59
+ import { addUnit, getPx } from "../../libs";
60
60
  import type { InputOnInputEvent } from "@uni-helper/uni-types";
61
61
 
62
62
  /**
@@ -17,10 +17,9 @@ export default {
17
17
  </script>
18
18
 
19
19
  <script setup lang="ts">
20
- import { computed, toRefs, watch } from "vue";
20
+ import { computed } from "vue";
21
21
  import type { CSSProperties, PropType } from "vue";
22
- import { addUnit, colorGradient } from "../../utils";
23
- import { ColorConfig } from "../../config";
22
+ import { ColorConfig, addUnit, colorGradient } from "../../libs";
24
23
 
25
24
  /**
26
25
  * 将 ConfigProvider 组件的 theme 属性设置为 dark,可以开启深色模式。 深色模式会全局生效,使页面上的所有 Wot 组件变为深色风格。
@@ -1,5 +1,5 @@
1
1
  import type IProps from "./typing";
2
- import { ColorConfig } from "../../config";
2
+ import { ColorConfig } from "../../libs/config";
3
3
 
4
4
  const defaultProps: IProps = {
5
5
  theme: "light",
@@ -1,4 +1,4 @@
1
- import { padZero } from "../../utils";
1
+ import { padZero } from "../../libs";
2
2
 
3
3
  const SECOND = 1000;
4
4
  const MINUTE = 60 * SECOND;
@@ -29,7 +29,7 @@ export default {
29
29
  import type { ICountToEmits } from "./typing";
30
30
  import { computed, onMounted, ref, watch } from "vue";
31
31
  import type { CSSProperties, PropType } from "vue";
32
- import { addUnit, isNumber } from "../../utils";
32
+ import { addUnit, isNumber } from "../../libs";
33
33
 
34
34
  /**
35
35
  * 一般用于需要滚动数字到某一个值的场景,目标要求是一个递增的值。
@@ -73,11 +73,10 @@ export default {
73
73
  </script>
74
74
 
75
75
  <script setup lang="ts">
76
- import { computed, onMounted, ref, toRefs, watch } from "vue";
76
+ import { computed, onMounted, ref, watch } from "vue";
77
77
  import type { CSSProperties, PropType } from "vue";
78
78
  import dayjs from "dayjs/esm";
79
- import { error, padZero } from "../../utils";
80
- import { DateModeEnum } from "../../typing";
79
+ import { error, padZero, DateModeEnum } from "../../libs";
81
80
  import type HyInputProps from "../hy-input/typing";
82
81
  import type { IDatetimePickerEmits } from "./typing";
83
82
  // 组件
@@ -1,5 +1,5 @@
1
1
  import type IProps from "./typing";
2
- import { DateModeEnum } from "../../typing";
2
+ import { DateModeEnum } from "../../libs";
3
3
 
4
4
  const defaultProps: IProps = {
5
5
  show: false,
@@ -36,8 +36,7 @@ export default {
36
36
  <script setup lang="ts">
37
37
  import { computed } from "vue";
38
38
  import type { CSSProperties, PropType } from "vue";
39
- import { addUnit } from "../../utils";
40
- import { IconConfig } from "../../config";
39
+ import { addUnit, IconConfig } from "../../libs";
41
40
  // 组件
42
41
  import HyLine from "../hy-line/hy-line.vue";
43
42
  import HyLoading from "../hy-loading/hy-loading.vue";
@@ -1,5 +1,5 @@
1
1
  import type IProps from "./typing";
2
- import { IconConfig } from "../../config";
2
+ import { IconConfig } from "../../libs/config";
3
3
 
4
4
  const defaultProps: IProps = {
5
5
  dashed: false,
@@ -18,8 +18,7 @@ export default {
18
18
  <script setup lang="ts">
19
19
  import { provide, ref, computed } from "vue";
20
20
  import type { CSSProperties, PropType } from "vue";
21
- import { IconConfig } from "../../config";
22
- import { addUnit } from "../../utils";
21
+ import { IconConfig, addUnit } from "../../libs";
23
22
 
24
23
  /**
25
24
  * 主要提供筛选下拉筛选框,内置基础筛选功能,可以根据自己的需求自定义筛选项。
@@ -74,7 +73,7 @@ const dropdownStyle = computed(() => {
74
73
  top: "44px",
75
74
  // #endif
76
75
  // #ifndef H5
77
- top: 0,
76
+ top: "0px",
78
77
  // #endif
79
78
  }
80
79
  : {};
@@ -1,5 +1,5 @@
1
1
  import type IProps from "./typing";
2
- import { IconConfig } from "@/package";
2
+ import { IconConfig } from "../../libs";
3
3
 
4
4
  const defaultProps: IProps = {
5
5
  activeColor: "",
@@ -86,8 +86,7 @@ import {
86
86
  } from "vue";
87
87
  import type { IDropdownItemEmits, DropdownMenuItem } from "./typing";
88
88
  import type FatherIProps from "../hy-dropdown/typing";
89
- import { addUnit, getRect, throttle } from "../../utils";
90
- import { IconConfig } from "../../config";
89
+ import { addUnit, getRect, throttle, IconConfig } from "../../libs";
91
90
  // 组件
92
91
  import HyOverlay from "../hy-overlay/hy-overlay.vue";
93
92
  import HyIcon from "../hy-icon/hy-icon.vue";
@@ -45,7 +45,7 @@ export default {
45
45
  <script setup lang="ts">
46
46
  import { computed } from "vue";
47
47
  import type { CSSProperties, PropType } from "vue";
48
- import { addUnit } from "../../utils";
48
+ import { addUnit } from "../../libs";
49
49
  import emptyIcon from "./icon";
50
50
  import type { HyButtonProps } from "../hy-button/typing";
51
51
  import type { IEmptyEmits } from "./typing";
@@ -19,7 +19,7 @@ export default {
19
19
  import { computed, type CSSProperties } from "vue";
20
20
  import type { PropType } from "vue";
21
21
  import type { FlexAlign, FlexDirection, FlexJustify, FlexWrap } from "./typing";
22
- import { addUnit, isArray } from "../../utils";
22
+ import { addUnit, isArray } from "../../libs";
23
23
 
24
24
  const props = defineProps({
25
25
  /** flex 主轴的方向是否垂直,使用 flex-direction: column */
@@ -85,8 +85,7 @@ import {
85
85
  import type { CSSProperties, PropType } from "vue";
86
86
  import type { IFloatButtonEmits, IGap } from "./typing";
87
87
  import type { MenusType } from "./typing";
88
- import { addUnit, getPx, getRect, guid, isH5 } from "../../utils";
89
- import { IconConfig } from "../../config";
88
+ import { addUnit, getPx, getRect, guid, isH5, IconConfig } from "../../libs";
90
89
  // 组件
91
90
  import HyIcon from "../hy-icon/hy-icon.vue";
92
91
  import HyLine from "../hy-line/hy-line.vue";
@@ -1,27 +1,27 @@
1
- import type IProps from './typing'
2
- import { IconConfig } from '../../config'
1
+ import type IProps from "./typing";
2
+ import { IconConfig } from "../../libs";
3
3
 
4
4
  const defaultProps: IProps = {
5
5
  menus: [],
6
- direction: 'column',
6
+ direction: "column",
7
7
  icon: IconConfig.PLUS,
8
- iconSize: '',
9
- iconColor: '',
8
+ iconSize: "",
9
+ iconColor: "",
10
10
  gap: { left: 16, right: 16, top: 16, bottom: 40 },
11
11
  zIndex: 10086,
12
- bgColor: '',
13
- text: '',
14
- fontSize: '12px',
15
- textColor: '',
16
- size: 'medium',
17
- shape: 'circle',
12
+ bgColor: "",
13
+ text: "",
14
+ fontSize: "12px",
15
+ textColor: "",
16
+ size: "medium",
17
+ shape: "circle",
18
18
  opacity: 1,
19
19
  shadow: true,
20
20
  float: true,
21
21
  fixed: true,
22
22
  draggable: true,
23
- position: 'right-bottom',
23
+ position: "right-bottom",
24
24
  expandable: true,
25
- }
25
+ };
26
26
 
27
- export default defaultProps
27
+ export default defaultProps;
@@ -50,11 +50,10 @@ export default {
50
50
  </script>
51
51
 
52
52
  <script setup lang="ts">
53
- import { toRefs, ref, watch } from "vue";
53
+ import { ref, watch } from "vue";
54
54
  import type { CSSProperties, PropType } from "vue";
55
55
  import type { IFoldingPanel, PanelVo } from "./typing";
56
- import { addUnit } from "../../utils";
57
- import { ColorConfig } from "../../config";
56
+ import { ColorConfig, addUnit } from "../../libs";
58
57
  // 组件
59
58
  import HyCell from "../hy-cell/hy-cell.vue";
60
59
  import HyLine from "../hy-line/hy-line.vue";
@@ -1,5 +1,5 @@
1
1
  import type IProps from "./typing";
2
- import { ColorConfig } from "../../config";
2
+ import { ColorConfig } from "../../libs";
3
3
 
4
4
  const defaultProps: IProps = {
5
5
  list: [],
@@ -19,7 +19,7 @@ export default {
19
19
  import { provide, reactive, ref, toRefs } from "vue";
20
20
  import type { PropType } from "vue";
21
21
  import type { FormItemRule } from "./typing";
22
- import { clearVal, isArray } from "../../utils";
22
+ import { clearVal, isArray } from "../../libs";
23
23
 
24
24
  /**
25
25
  * 表单组件父组件,需要搭配hy-form-item