hy-app 0.4.4 → 0.4.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.
- package/components/hy-action-sheet/hy-action-sheet.vue +1 -1
- package/components/hy-address-picker/hy-address-picker.vue +1 -1
- package/components/hy-avatar/hy-avatar.vue +1 -1
- package/components/hy-back-top/hy-back-top.vue +1 -2
- package/components/hy-badge/hy-badge.vue +1 -1
- package/components/hy-button/hy-button.vue +1 -2
- package/components/hy-calendar/hy-calendar.vue +3 -11
- package/components/hy-calendar/month.vue +3 -3
- package/components/hy-card/hy-card.vue +1 -1
- package/components/hy-cell/hy-cell.vue +1 -2
- package/components/hy-cell/props.ts +1 -1
- package/components/hy-check-button/hy-check-button.vue +2 -2
- package/components/hy-checkbox/hy-checkbox.vue +2 -3
- package/components/hy-checkbox-group/hy-checkbox-group.vue +1 -1
- package/components/hy-checkbox-item/hy-checkbox-item.vue +1 -2
- package/components/hy-code-input/hy-code-input.vue +1 -1
- package/components/hy-config-provider/hy-config-provider.vue +2 -3
- package/components/hy-config-provider/props.ts +1 -1
- package/components/hy-count-down/index.ts +1 -1
- package/components/hy-count-to/hy-count-to.vue +1 -1
- package/components/hy-datetime-picker/hy-datetime-picker.vue +2 -3
- package/components/hy-datetime-picker/props.ts +1 -1
- package/components/hy-divider/hy-divider.vue +1 -2
- package/components/hy-divider/props.ts +1 -1
- package/components/hy-dropdown/hy-dropdown.vue +2 -3
- package/components/hy-dropdown/props.ts +1 -1
- package/components/hy-dropdown-item/hy-dropdown-item.vue +1 -2
- package/components/hy-empty/hy-empty.vue +1 -1
- package/components/hy-flex/hy-flex.vue +1 -1
- package/components/hy-float-button/hy-float-button.vue +1 -2
- package/components/hy-float-button/props.ts +14 -14
- package/components/hy-folding-panel/hy-folding-panel.vue +2 -3
- package/components/hy-folding-panel/props.ts +1 -1
- package/components/hy-form/hy-form.vue +1 -1
- package/components/hy-form-group/hy-form-group.vue +183 -111
- package/components/hy-form-group/typing.d.ts +1 -1
- package/components/hy-form-item/hy-form-item.vue +1 -1
- package/components/hy-grid/hy-grid.vue +1 -1
- package/components/hy-icon/hy-icon.vue +1 -1
- package/components/hy-icon/index.scss +1 -1
- package/components/hy-image/hy-image.vue +1 -2
- package/components/hy-image/props.ts +10 -10
- package/components/hy-input/hy-input.vue +1 -2
- package/components/hy-line/hy-line.vue +1 -1
- package/components/hy-line-progress/hy-line-progress.vue +1 -2
- package/components/hy-list/hy-list.vue +7 -5
- package/components/hy-loading/hy-loading.vue +11 -9
- package/components/hy-loading/index.scss +14 -5
- package/components/hy-menu/hy-menu.vue +1 -1
- package/components/hy-modal/hy-modal.vue +2 -2
- package/components/hy-modal/props.ts +13 -13
- package/components/hy-navbar/hy-navbar.vue +63 -60
- package/components/hy-navbar/props.ts +1 -1
- package/components/hy-notice-bar/hy-column-notice.vue +1 -2
- package/components/hy-notice-bar/hy-notice-bar.vue +1 -1
- package/components/hy-notice-bar/hy-row-notice.vue +1 -2
- package/components/hy-notice-bar/props.ts +1 -1
- package/components/hy-notify/hy-notify.vue +1 -2
- package/components/hy-number-step/hy-number-step.vue +1 -2
- package/components/hy-overlay/hy-overlay.vue +1 -1
- package/components/hy-pagination/hy-pagination.vue +1 -1
- package/components/hy-picker/hy-picker.vue +1 -2
- package/components/hy-popover/hy-popover.vue +9 -3
- package/components/hy-popup/hy-popup.vue +2 -3
- package/components/hy-price/hy-price.vue +3 -2
- package/components/hy-qrcode/hy-qrcode.vue +1 -1
- package/components/hy-radio/hy-radio.vue +1 -2
- package/components/hy-rate/hy-rate.vue +7 -4
- package/components/hy-rate/props.ts +6 -6
- package/components/hy-read-more/hy-read-more.vue +1 -2
- package/components/hy-scroll-list/hy-scroll-list.vue +1 -1
- package/components/hy-scroll-list/props.ts +0 -1
- package/components/hy-search/hy-search.vue +4 -4
- package/components/hy-search/index.scss +1 -0
- package/components/hy-signature/hy-signature.vue +1 -1
- package/components/hy-slider/hy-slider.vue +3 -13
- package/components/hy-slider/props.ts +1 -1
- package/components/hy-status-bar/hy-status-bar.vue +1 -1
- package/components/hy-status-bar/props.ts +1 -1
- package/components/hy-steps/hy-steps.vue +1 -2
- package/components/hy-subsection/hy-subsection.vue +1 -1
- package/components/hy-subsection/props.ts +0 -1
- package/components/hy-subsection/typing.d.ts +0 -1
- package/components/hy-swipe-action/hy-swipe-action.vue +1 -2
- package/components/hy-swiper/hy-swiper-indicator.vue +1 -1
- package/components/hy-swiper/hy-swiper.vue +2 -3
- package/components/hy-swiper/typing.d.ts +35 -36
- package/components/hy-switch/hy-switch.vue +2 -2
- package/components/hy-switch/typing.d.ts +0 -1
- package/components/hy-tabs/hy-tabs.vue +2 -3
- package/components/hy-tag/hy-tag.vue +1 -2
- package/components/hy-text/hy-text.vue +2 -2
- package/components/hy-text/typing.d.ts +26 -26
- package/components/hy-textarea/hy-textarea.vue +2 -2
- package/components/hy-toast/hy-toast.vue +34 -19
- package/components/hy-toast/index.scss +3 -2
- package/components/hy-toast/typing.d.ts +1 -1
- package/components/hy-tooltip/hy-tooltip.vue +8 -2
- package/components/hy-transition/hy-transition.vue +1 -1
- package/components/hy-upload/hy-upload.vue +7 -2
- package/components/hy-upload/props.ts +1 -1
- package/components/hy-warn/hy-warn.vue +1 -2
- package/components/hy-warn/typing.d.ts +12 -13
- package/components/hy-waterfall/hy-waterfall.vue +1 -1
- package/components/hy-watermark/hy-watermark.vue +3 -2
- package/components/index.ts +117 -118
- package/index.ts +1 -7
- package/{api → libs/api}/http.ts +3 -3
- package/libs/common/index.ts +2 -0
- package/libs/common/queue.ts +28 -0
- package/{composables → libs/composables}/index.ts +1 -0
- package/{composables → libs/composables}/usePopover.ts +7 -2
- package/{common/shakeService.ts → libs/composables/useShakeService.ts} +4 -2
- package/{composables → libs/composables}/useShare.ts +3 -0
- package/libs/composables/useToast.ts +45 -0
- package/{composables → libs/composables}/useTouch.ts +3 -0
- package/libs/css/theme.scss +1 -1
- package/libs/css/vars.scss +2 -2
- package/{global → libs/global}/register-properties.ts +1 -1
- package/libs/index.ts +7 -0
- package/{typing → libs/typing}/index.ts +0 -1
- package/{typing → libs/typing}/modules/form.ts +7 -7
- package/{utils → libs/utils}/utils.ts +28 -0
- package/package.json +2 -2
- package/common/index.ts +0 -3
- package/common/queue.ts +0 -34
- package/components/hy-form/README.md +0 -301
- package/components/hy-text/index.ts +0 -0
- package/components/yk-dialog/yk-dialog.vue +0 -129
- package/composables/useToast.ts +0 -51
- package/typing/modules/dialog.ts +0 -17
- /package/{api → libs/api}/index.ts +0 -0
- /package/{common → libs/common}/versionControl.ts +0 -0
- /package/{composables → libs/composables}/useQueue.ts +0 -0
- /package/{config → libs/config}/color.ts +0 -0
- /package/{config → libs/config}/icon.ts +0 -0
- /package/{config → libs/config}/index.ts +0 -0
- /package/{static/font → libs/css}/iconfont.css +0 -0
- /package/{global → libs/global}/index.ts +0 -0
- /package/{typing → libs/typing}/modules/common.d.ts +0 -0
- /package/{typing → libs/typing}/modules/enum.ts +0 -0
- /package/{typing → libs/typing}/modules/http.ts +0 -0
- /package/{typing → libs/typing}/modules/icon.d.ts +0 -0
- /package/{typing → libs/typing}/modules/rect.ts +0 -0
- /package/{utils → libs/utils}/address.json +0 -0
- /package/{utils → libs/utils}/base64.ts +0 -0
- /package/{utils → libs/utils}/calendar.js +0 -0
- /package/{utils → libs/utils}/colorGradient.ts +0 -0
- /package/{utils → libs/utils}/index.ts +0 -0
- /package/{utils → libs/utils}/inside.ts +0 -0
- /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 "../../
|
|
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 "../../
|
|
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 "../../
|
|
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 "../../
|
|
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 "../../
|
|
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 "../../
|
|
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 "../../
|
|
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",
|
|
@@ -384,7 +384,7 @@ export default {
|
|
|
384
384
|
// 获取月份数据区域的宽度,因为nvue不支持百分比,所以无法通过css设置每个日期item的宽度
|
|
385
385
|
getWrapperWidth() {
|
|
386
386
|
// #ifndef APP-NVUE
|
|
387
|
-
getRect(".hy-calendar--month__wrapper").then((size) => {
|
|
387
|
+
getRect(".hy-calendar--month__wrapper", false, this).then((size) => {
|
|
388
388
|
this.width = size.width;
|
|
389
389
|
});
|
|
390
390
|
// #endif
|
|
@@ -413,7 +413,7 @@ export default {
|
|
|
413
413
|
// $uGetRect为uView自带的节点查询简化方法,详见文档介绍:https://ijry.github.io/uview-plus/js/getRect.html
|
|
414
414
|
// 组件内部一般用this.$uGetRect,对外的为uni.$u.getRect,二者功能一致,名称不同
|
|
415
415
|
return new Promise((resolve) => {
|
|
416
|
-
getRect(`.${el}
|
|
416
|
+
getRect(`.${el}`, false, this).then((size) => {
|
|
417
417
|
resolve(size);
|
|
418
418
|
});
|
|
419
419
|
});
|
|
@@ -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 "../../
|
|
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 "../../
|
|
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";
|
|
@@ -27,11 +27,11 @@ export default {
|
|
|
27
27
|
</script>
|
|
28
28
|
|
|
29
29
|
<script setup lang="ts">
|
|
30
|
-
import {
|
|
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 "../../
|
|
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,
|
|
71
|
+
import { computed, watch, ref, reactive } from "vue";
|
|
72
72
|
import type { CSSProperties, PropType } from "vue";
|
|
73
|
-
import { addUnit, bem, error } from "../../
|
|
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 "../../
|
|
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 "../../
|
|
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 "../../
|
|
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
|
|
20
|
+
import { computed } from "vue";
|
|
21
21
|
import type { CSSProperties, PropType } from "vue";
|
|
22
|
-
import { addUnit, colorGradient } from "../../
|
|
23
|
-
import { ColorConfig } from "../../config";
|
|
22
|
+
import { ColorConfig, addUnit, colorGradient } from "../../libs";
|
|
24
23
|
|
|
25
24
|
/**
|
|
26
25
|
* 将 ConfigProvider 组件的 theme 属性设置为 dark,可以开启深色模式。 深色模式会全局生效,使页面上的所有 Wot 组件变为深色风格。
|
|
@@ -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 "../../
|
|
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,
|
|
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 "../../
|
|
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
|
// 组件
|
|
@@ -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 "../../
|
|
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";
|
|
@@ -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 "../../
|
|
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:
|
|
76
|
+
top: "0px",
|
|
78
77
|
// #endif
|
|
79
78
|
}
|
|
80
79
|
: {};
|
|
@@ -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 "../../
|
|
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 "../../
|
|
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 "../../
|
|
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 "../../
|
|
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
|
|
2
|
-
import { IconConfig } from
|
|
1
|
+
import type IProps from "./typing";
|
|
2
|
+
import { IconConfig } from "../../libs";
|
|
3
3
|
|
|
4
4
|
const defaultProps: IProps = {
|
|
5
5
|
menus: [],
|
|
6
|
-
direction:
|
|
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:
|
|
15
|
-
textColor:
|
|
16
|
-
size:
|
|
17
|
-
shape:
|
|
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:
|
|
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 {
|
|
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 "../../
|
|
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";
|
|
@@ -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 "../../
|
|
22
|
+
import { clearVal, isArray } from "../../libs";
|
|
23
23
|
|
|
24
24
|
/**
|
|
25
25
|
* 表单组件父组件,需要搭配hy-form-item
|