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.
- 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 +1 -1
- 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 +1 -1
- package/components/hy-loading/hy-loading.vue +1 -1
- 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 +1 -2
- 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 +6 -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 +3 -3
- 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 +33 -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 +1 -1
- package/components/index.ts +117 -118
- package/index.ts +1 -7
- package/{api → libs/api}/http.ts +2 -2
- 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/{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 +1 -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
|
@@ -62,7 +62,7 @@ export default {
|
|
|
62
62
|
import { computed, ref, watch } from "vue";
|
|
63
63
|
import type { CSSProperties, PropType } from "vue";
|
|
64
64
|
import type { IMenuEmits, MenusType, ModelValueVo } from "./typing";
|
|
65
|
-
import { addUnit } from "../../
|
|
65
|
+
import { addUnit } from "../../libs";
|
|
66
66
|
import type HyBadgeProps from "../hy-badge/typing";
|
|
67
67
|
import type HyIconProps from "../hy-icon/typing";
|
|
68
68
|
// 组件
|
|
@@ -104,9 +104,9 @@ export default {
|
|
|
104
104
|
</script>
|
|
105
105
|
|
|
106
106
|
<script setup lang="ts">
|
|
107
|
-
import { ref,
|
|
107
|
+
import { ref, watch } from "vue";
|
|
108
108
|
import type { IModalEmits } from "./typing";
|
|
109
|
-
import { addUnit, sleep } from "../../
|
|
109
|
+
import { addUnit, sleep } from "../../libs";
|
|
110
110
|
// 组件
|
|
111
111
|
import HyPopup from "../hy-popup/hy-popup.vue";
|
|
112
112
|
import HyLoading from "../hy-loading/hy-loading.vue";
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import type IProps from
|
|
2
|
-
import { ColorConfig } from
|
|
1
|
+
import type IProps from "./typing";
|
|
2
|
+
import { ColorConfig } from "../../libs";
|
|
3
3
|
|
|
4
4
|
const defaultProps: IProps = {
|
|
5
5
|
modelValue: false,
|
|
6
|
-
title:
|
|
7
|
-
content:
|
|
8
|
-
confirmText:
|
|
9
|
-
cancelText:
|
|
6
|
+
title: "",
|
|
7
|
+
content: "",
|
|
8
|
+
confirmText: "确认",
|
|
9
|
+
cancelText: "取消",
|
|
10
10
|
showConfirmButton: true,
|
|
11
11
|
showCancelButton: false,
|
|
12
|
-
confirmColor:
|
|
13
|
-
cancelColor:
|
|
12
|
+
confirmColor: "",
|
|
13
|
+
cancelColor: "",
|
|
14
14
|
buttonReverse: false,
|
|
15
15
|
zoom: true,
|
|
16
16
|
round: 16,
|
|
17
17
|
asyncClose: false,
|
|
18
18
|
closeOnClickOverlay: false,
|
|
19
19
|
negativeTop: 0,
|
|
20
|
-
width:
|
|
21
|
-
confirmButtonShape:
|
|
22
|
-
contentTextAlign:
|
|
23
|
-
}
|
|
20
|
+
width: "550rpx",
|
|
21
|
+
confirmButtonShape: "",
|
|
22
|
+
contentTextAlign: "left",
|
|
23
|
+
};
|
|
24
24
|
|
|
25
|
-
export default defaultProps
|
|
25
|
+
export default defaultProps;
|
|
@@ -99,8 +99,7 @@ export default {
|
|
|
99
99
|
<script setup lang="ts">
|
|
100
100
|
import type { CSSProperties, PropType } from "vue";
|
|
101
101
|
import type { INavbarEmits } from "./typing";
|
|
102
|
-
import { addUnit, getPx, getWindowInfo } from "../../
|
|
103
|
-
import { IconConfig } from "../../config";
|
|
102
|
+
import { addUnit, getPx, getWindowInfo, IconConfig } from "../../libs";
|
|
104
103
|
// 组件
|
|
105
104
|
import HyIcon from "../hy-icon/hy-icon.vue";
|
|
106
105
|
import HyStatusBar from "../hy-status-bar/hy-status-bar.vue";
|
|
@@ -51,8 +51,7 @@
|
|
|
51
51
|
import { type CSSProperties, toRefs, computed, ref, watch } from "vue";
|
|
52
52
|
import type IProps from "./typing";
|
|
53
53
|
import defaultProps from "./props";
|
|
54
|
-
import { addUnit, error } from "../../
|
|
55
|
-
import { IconConfig } from "../../config";
|
|
54
|
+
import { addUnit, error, IconConfig } from "../../libs";
|
|
56
55
|
|
|
57
56
|
// 组件
|
|
58
57
|
import HyIcon from "../hy-icon/hy-icon.vue";
|
|
@@ -58,7 +58,7 @@ export default {
|
|
|
58
58
|
import { ref } from "vue";
|
|
59
59
|
import type { PropType, CSSProperties } from "vue";
|
|
60
60
|
import type { INoticeBarEmits, NoticeBarModeVo } from "./typing";
|
|
61
|
-
import { IconConfig } from "../../
|
|
61
|
+
import { IconConfig } from "../../libs";
|
|
62
62
|
// 组件
|
|
63
63
|
import HyRowNotice from "./hy-row-notice.vue";
|
|
64
64
|
import HyColumnNotice from "./hy-column-notice.vue";
|
|
@@ -51,8 +51,7 @@ import {
|
|
|
51
51
|
} from "vue";
|
|
52
52
|
import type IProps from "./typing";
|
|
53
53
|
import defaultProps from "./props";
|
|
54
|
-
import { addUnit, getRect, sleep } from "../../
|
|
55
|
-
import { IconConfig } from "../../config";
|
|
54
|
+
import { addUnit, getRect, sleep, IconConfig } from "../../libs";
|
|
56
55
|
// 组件
|
|
57
56
|
import HyIcon from "../hy-icon/hy-icon.vue";
|
|
58
57
|
|
|
@@ -47,8 +47,7 @@ export default {
|
|
|
47
47
|
import type IProps from "./typing";
|
|
48
48
|
import { computed, ref } from "vue";
|
|
49
49
|
import type { CSSProperties, PropType } from "vue";
|
|
50
|
-
import { IconConfig } from "../../
|
|
51
|
-
import { addUnit } from "../../utils";
|
|
50
|
+
import { addUnit, IconConfig } from "../../libs";
|
|
52
51
|
// 组件
|
|
53
52
|
import HyTransition from "../hy-transition/hy-transition.vue";
|
|
54
53
|
import HyStatusBar from "../hy-status-bar/hy-status-bar.vue";
|
|
@@ -139,8 +139,7 @@ export default {
|
|
|
139
139
|
<script setup lang="ts">
|
|
140
140
|
import { computed, ref, watch, onMounted, nextTick } from "vue";
|
|
141
141
|
import type { CSSProperties, PropType } from "vue";
|
|
142
|
-
import { addUnit } from "../../
|
|
143
|
-
import { IconConfig } from "../../config";
|
|
142
|
+
import { addUnit, IconConfig } from "../../libs";
|
|
144
143
|
import type HyIconProps from "../hy-icon/typing";
|
|
145
144
|
import type { INumberStepEmits } from "./typing";
|
|
146
145
|
// 组件
|
|
@@ -22,7 +22,7 @@ export default {
|
|
|
22
22
|
</script>
|
|
23
23
|
|
|
24
24
|
<script setup lang="ts">
|
|
25
|
-
import { computed
|
|
25
|
+
import { computed } from "vue";
|
|
26
26
|
import type { CSSProperties, PropType } from "vue";
|
|
27
27
|
import type { IOverlayEmits } from "./typing";
|
|
28
28
|
import HyTransition from "../hy-transition/hy-transition.vue";
|
|
@@ -73,7 +73,7 @@ export default {
|
|
|
73
73
|
import { ref, watch } from "vue";
|
|
74
74
|
import type { CSSProperties, PropType } from "vue";
|
|
75
75
|
import type { IPaginationEmits } from "./typing";
|
|
76
|
-
import { IconConfig } from "../../
|
|
76
|
+
import { IconConfig } from "../../libs";
|
|
77
77
|
// 组件
|
|
78
78
|
import HyIcon from "../hy-icon/hy-icon.vue";
|
|
79
79
|
import HyButton from "../hy-button/hy-button.vue";
|
|
@@ -125,8 +125,7 @@ export default {
|
|
|
125
125
|
<script setup lang="ts">
|
|
126
126
|
import { computed, ref, watch } from "vue";
|
|
127
127
|
import type { PropType } from "vue";
|
|
128
|
-
import { deepClone, sleep, addUnit, isArray } from "../../
|
|
129
|
-
import { IconConfig } from "../../config";
|
|
128
|
+
import { deepClone, sleep, addUnit, isArray, IconConfig } from "../../libs";
|
|
130
129
|
import type { IPickerEmits, PickerColumnVo } from "./typing";
|
|
131
130
|
import type HyInputProps from "../hy-input/typing";
|
|
132
131
|
// 组件
|
|
@@ -130,9 +130,15 @@ import type {
|
|
|
130
130
|
IPopoverEmits,
|
|
131
131
|
PopoverExpose,
|
|
132
132
|
} from "./typing";
|
|
133
|
-
import {
|
|
134
|
-
|
|
135
|
-
|
|
133
|
+
import {
|
|
134
|
+
type Queue,
|
|
135
|
+
queueKey,
|
|
136
|
+
usePopover,
|
|
137
|
+
closeOther,
|
|
138
|
+
pushToQueue,
|
|
139
|
+
removeFromQueue,
|
|
140
|
+
isArray,
|
|
141
|
+
} from "../../libs";
|
|
136
142
|
// 组件
|
|
137
143
|
import HyIcon from "../hy-icon/hy-icon.vue";
|
|
138
144
|
import HyTransition from "../hy-transition/hy-transition.vue";
|
|
@@ -56,11 +56,10 @@ export default {
|
|
|
56
56
|
</script>
|
|
57
57
|
|
|
58
58
|
<script setup lang="ts">
|
|
59
|
-
import { computed, ref,
|
|
59
|
+
import { computed, ref, watch } from "vue";
|
|
60
60
|
import type { CSSProperties, PropType } from "vue";
|
|
61
61
|
import type { IPopupEmits } from "./typing";
|
|
62
|
-
import { addUnit, getWindowInfo } from "../../
|
|
63
|
-
import { IconConfig } from "../../config";
|
|
62
|
+
import { addUnit, getWindowInfo, IconConfig } from "../../libs";
|
|
64
63
|
|
|
65
64
|
// 组件
|
|
66
65
|
import HyTransition from "../hy-transition/hy-transition.vue";
|
|
@@ -31,7 +31,7 @@ export default {
|
|
|
31
31
|
<script setup lang="ts">
|
|
32
32
|
import { computed } from "vue";
|
|
33
33
|
import type { CSSProperties, PropType } from "vue";
|
|
34
|
-
import { addUnit, getPx, error, addZero } from "../../
|
|
34
|
+
import { addUnit, getPx, error, addZero } from "../../libs";
|
|
35
35
|
|
|
36
36
|
/**
|
|
37
37
|
* 业务组件,突出金额小数点前大,小数点后小
|
|
@@ -106,7 +106,8 @@ const priceStyle = computed<CSSProperties>(() => {
|
|
|
106
106
|
* @description 价格处理
|
|
107
107
|
* */
|
|
108
108
|
const priceOne = computed(() => {
|
|
109
|
-
if (props.text === undefined
|
|
109
|
+
if (props.text === undefined || props.text === null)
|
|
110
|
+
return error("text值不能为空");
|
|
110
111
|
|
|
111
112
|
let value =
|
|
112
113
|
typeof props.text === "string" ? props.text : props.text.toString();
|
|
@@ -35,7 +35,7 @@ export default {
|
|
|
35
35
|
import { getCurrentInstance, ref, onMounted } from "vue";
|
|
36
36
|
import type { IQrcodeEmits } from "./typing";
|
|
37
37
|
import QRCode from "./qrcode.js";
|
|
38
|
-
import { addUnit, error } from "../../
|
|
38
|
+
import { addUnit, error } from "../../libs";
|
|
39
39
|
// 组件
|
|
40
40
|
import HyLoading from "../hy-loading/hy-loading.vue";
|
|
41
41
|
|
|
@@ -73,8 +73,7 @@ import { computed, reactive, ref, watch } from "vue";
|
|
|
73
73
|
import type { CSSProperties, PropType } from "vue";
|
|
74
74
|
import type { IRadioEmits } from "./typing";
|
|
75
75
|
import type { CheckboxColumnsVo, IFieldNames } from "../hy-check-button/typing";
|
|
76
|
-
import { addUnit, bem, error } from "../../
|
|
77
|
-
import { IconConfig } from "../../config";
|
|
76
|
+
import { addUnit, bem, error, IconConfig } from "../../libs";
|
|
78
77
|
// 组件
|
|
79
78
|
import HyIcon from "../hy-icon/hy-icon.vue";
|
|
80
79
|
|
|
@@ -74,11 +74,10 @@ export default {
|
|
|
74
74
|
</script>
|
|
75
75
|
|
|
76
76
|
<script setup lang="ts">
|
|
77
|
-
import { addUnit, getRect, guid, range, sleep } from "../../utils";
|
|
78
77
|
import { ref, watch, onMounted, getCurrentInstance } from "vue";
|
|
79
78
|
import type { CSSProperties, PropType } from "vue";
|
|
80
79
|
import type { IRateEmits } from "./typing";
|
|
81
|
-
import { IconConfig } from "../../
|
|
80
|
+
import { addUnit, getRect, guid, range, sleep, IconConfig } from "../../libs";
|
|
82
81
|
// 组件
|
|
83
82
|
import HyIcon from "../hy-icon/hy-icon.vue";
|
|
84
83
|
|
|
@@ -254,8 +253,11 @@ const clickHandler = (e: TouchEvent) => {
|
|
|
254
253
|
// }
|
|
255
254
|
e.stopPropagation();
|
|
256
255
|
let x = 0;
|
|
257
|
-
// #ifndef APP-NVUE
|
|
258
|
-
x = e.
|
|
256
|
+
// #ifndef APP-NVUE || MP-ALIPAY
|
|
257
|
+
x = e.detail.x;
|
|
258
|
+
// #endif
|
|
259
|
+
// #ifdef MP-ALIPAY
|
|
260
|
+
x = e.detail.pageX;
|
|
259
261
|
// #endif
|
|
260
262
|
getActiveIndex(x, true);
|
|
261
263
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ColorConfig, IconConfig } from
|
|
2
|
-
import type IProps from
|
|
1
|
+
import { ColorConfig, IconConfig } from "../../libs/config";
|
|
2
|
+
import type IProps from "./typing";
|
|
3
3
|
|
|
4
4
|
const defaultProps: IProps = {
|
|
5
5
|
modelValue: 1,
|
|
@@ -7,13 +7,13 @@ const defaultProps: IProps = {
|
|
|
7
7
|
disabled: false,
|
|
8
8
|
readonly: false,
|
|
9
9
|
size: 18,
|
|
10
|
-
inactiveColor:
|
|
11
|
-
activeColor:
|
|
10
|
+
inactiveColor: "#b2b2b2",
|
|
11
|
+
activeColor: "#FFF00D",
|
|
12
12
|
gutter: 4,
|
|
13
13
|
minCount: 1,
|
|
14
14
|
allowHalf: false,
|
|
15
15
|
activeIcon: IconConfig.STAR_FILL,
|
|
16
16
|
inactiveIcon: IconConfig.STAR,
|
|
17
17
|
touchable: true,
|
|
18
|
-
}
|
|
19
|
-
export default defaultProps
|
|
18
|
+
};
|
|
19
|
+
export default defaultProps;
|
|
@@ -65,8 +65,7 @@ export default {
|
|
|
65
65
|
import { computed, ref, onMounted, getCurrentInstance } from "vue";
|
|
66
66
|
import type { CSSProperties, PropType } from "vue";
|
|
67
67
|
import type { IReadMoreEmits } from "./typing";
|
|
68
|
-
import { addUnit, getRect, guid, sleep } from "../../
|
|
69
|
-
import { IconConfig } from "../../config";
|
|
68
|
+
import { addUnit, getRect, guid, sleep, IconConfig } from "../../libs";
|
|
70
69
|
// 组件
|
|
71
70
|
import HyIcon from "../hy-icon/hy-icon.vue";
|
|
72
71
|
|
|
@@ -43,7 +43,7 @@ export default {
|
|
|
43
43
|
import { computed, ref, onMounted, getCurrentInstance } from "vue";
|
|
44
44
|
import type { CSSProperties } from "vue";
|
|
45
45
|
import type { IScrollListEmits } from "./typing";
|
|
46
|
-
import { addUnit, colorGradient, getRect, sleep } from "../../
|
|
46
|
+
import { addUnit, colorGradient, getRect, sleep } from "../../libs";
|
|
47
47
|
|
|
48
48
|
/**
|
|
49
49
|
* 该组件一般用于同时展示多个商品、分类的场景,也可以完成左右滑动的列表。
|
|
@@ -102,9 +102,7 @@ export default {
|
|
|
102
102
|
import { computed, nextTick, ref, watch } from "vue";
|
|
103
103
|
import type { PropType, CSSProperties } from "vue";
|
|
104
104
|
import type { ISearchEmits } from "./typing";
|
|
105
|
-
import { addUnit } from "../../
|
|
106
|
-
import { IconConfig } from "../../config";
|
|
107
|
-
import HyIcon from "../hy-icon/hy-icon.vue";
|
|
105
|
+
import { addUnit, IconConfig } from "../../libs";
|
|
108
106
|
import type HyIconProps from "../hy-icon/typing";
|
|
109
107
|
import type {
|
|
110
108
|
InputOnBlurEvent,
|
|
@@ -113,6 +111,8 @@ import type {
|
|
|
113
111
|
InputOnInputEvent,
|
|
114
112
|
InputConfirmType,
|
|
115
113
|
} from "@uni-helper/uni-types";
|
|
114
|
+
// 组件
|
|
115
|
+
import HyIcon from "../hy-icon/hy-icon.vue";
|
|
116
116
|
|
|
117
117
|
/**
|
|
118
118
|
* 搜索组件,集成了常见搜索框所需功能,用户可以一键引入,开箱即用。
|
|
@@ -104,7 +104,7 @@ import {
|
|
|
104
104
|
watch,
|
|
105
105
|
} from "vue";
|
|
106
106
|
import type { CSSProperties, PropType } from "vue";
|
|
107
|
-
import { addUnit, getRect, guid } from "../../
|
|
107
|
+
import { addUnit, getRect, guid } from "../../libs";
|
|
108
108
|
import type {
|
|
109
109
|
SignatureExpose,
|
|
110
110
|
SignatureResult,
|
|
@@ -156,21 +156,11 @@ export default {
|
|
|
156
156
|
</script>
|
|
157
157
|
|
|
158
158
|
<script setup lang="ts">
|
|
159
|
-
import {
|
|
160
|
-
computed,
|
|
161
|
-
getCurrentInstance,
|
|
162
|
-
onMounted,
|
|
163
|
-
ref,
|
|
164
|
-
toRefs,
|
|
165
|
-
watch,
|
|
166
|
-
} from "vue";
|
|
159
|
+
import { computed, getCurrentInstance, onMounted, ref, watch } from "vue";
|
|
167
160
|
import type { CSSProperties, PropType } from "vue";
|
|
168
|
-
import { addUnit, error, getRect, getPx } from "../../
|
|
161
|
+
import { addUnit, error, getRect, getPx } from "../../libs";
|
|
169
162
|
import type { ISliderEmits } from "./typing";
|
|
170
|
-
import type {
|
|
171
|
-
MovableViewOnChange,
|
|
172
|
-
SliderOnChangingEvent,
|
|
173
|
-
} from "@uni-helper/uni-types";
|
|
163
|
+
import type { SliderOnChangingEvent } from "@uni-helper/uni-types";
|
|
174
164
|
|
|
175
165
|
/**
|
|
176
166
|
* 一般用于表单中,手动选择一个区间范围的场景。
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
import type IProps from "./typing";
|
|
13
13
|
import defaultProps from "./props";
|
|
14
14
|
import { computed, type CSSProperties, ref } from "vue";
|
|
15
|
-
import { addUnit, getWindowInfo } from "../../
|
|
15
|
+
import { addUnit, getWindowInfo } from "../../libs";
|
|
16
16
|
|
|
17
17
|
const props = withDefaults(defineProps<IProps>(), defaultProps);
|
|
18
18
|
|
|
@@ -148,8 +148,7 @@ import { computed, ref, onMounted, getCurrentInstance, watch } from "vue";
|
|
|
148
148
|
import type { CSSProperties, PropType } from "vue";
|
|
149
149
|
import type { IStepsEmits } from "./typing";
|
|
150
150
|
import type { StepListVo } from "./typing";
|
|
151
|
-
import { addUnit, getRect } from "../../
|
|
152
|
-
import { ColorConfig, IconConfig } from "../../config";
|
|
151
|
+
import { addUnit, getRect, ColorConfig, IconConfig } from "../../libs";
|
|
153
152
|
|
|
154
153
|
/**
|
|
155
154
|
* 一般用于完成一个任务要分几个步骤,标识目前处于第几步的场景。
|
|
@@ -35,7 +35,7 @@ export default {
|
|
|
35
35
|
import { computed, ref, onMounted, getCurrentInstance } from "vue";
|
|
36
36
|
import type { CSSProperties, PropType } from "vue";
|
|
37
37
|
import type { ISubsectionEmits, SubSectionVo } from "./typing";
|
|
38
|
-
import { addUnit, getRect, guid } from "../../
|
|
38
|
+
import { addUnit, getRect, guid } from "../../libs";
|
|
39
39
|
|
|
40
40
|
/**
|
|
41
41
|
* 该分段器一般用于用户从几个选项中选择某一个的场景
|
|
@@ -81,9 +81,8 @@ import type {
|
|
|
81
81
|
SwipeActionReason,
|
|
82
82
|
SwipeActionOptionsVo,
|
|
83
83
|
} from "./typing";
|
|
84
|
-
import { useTouch } from "../../
|
|
84
|
+
import { useTouch, getRect, guid } from "../../libs";
|
|
85
85
|
import { closeOther, pushToQueue, removeFromQueue } from "./index";
|
|
86
|
-
import { getRect, guid } from "../../utils";
|
|
87
86
|
|
|
88
87
|
/**
|
|
89
88
|
* 常用于单元格左右滑删除等手势操作。
|
|
@@ -103,10 +103,9 @@ export default {
|
|
|
103
103
|
</script>
|
|
104
104
|
|
|
105
105
|
<script setup lang="ts">
|
|
106
|
-
import { computed,
|
|
106
|
+
import { computed, ref, watch, getCurrentInstance } from "vue";
|
|
107
107
|
import type { CSSProperties, PropType } from "vue";
|
|
108
|
-
import { addUnit, isVideo } from "../../
|
|
109
|
-
import { IconConfig } from "../../config";
|
|
108
|
+
import { addUnit, isVideo, IconConfig } from "../../libs";
|
|
110
109
|
import type { ISwiperEmits, SwiperList, SwiperVo } from "./typing";
|
|
111
110
|
|
|
112
111
|
// 组件
|