hy-app 0.3.13 → 0.3.15
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-card/hy-card.vue +4 -4
- package/components/hy-checkbox/hy-checkbox.vue +1 -5
- package/components/hy-checkbox/index.scss +1 -1
- package/components/hy-checkbox-group/hy-checkbox-group.vue +118 -0
- package/components/hy-checkbox-group/index.scss +16 -0
- package/components/hy-checkbox-group/typing.d.ts +71 -0
- package/components/hy-checkbox-item/hy-checkbox-item.vue +225 -0
- package/components/hy-checkbox-item/index.scss +89 -0
- package/components/hy-checkbox-item/typing.d.ts +5 -0
- package/components/hy-modal/hy-modal.vue +27 -13
- package/components/hy-modal/index.scss +2 -2
- package/components/hy-modal/typing.d.ts +24 -23
- package/components/hy-radio/hy-radio.vue +1 -1
- package/components/hy-radio/index.scss +1 -1
- package/components/hy-search/hy-search.vue +2 -2
- package/components/hy-search/index.scss +1 -0
- package/global.d.ts +86 -84
- package/package.json +2 -2
- package/web-types.json +1 -1
|
@@ -1,87 +1,88 @@
|
|
|
1
|
-
import { RowCenterType } from
|
|
1
|
+
import { RowCenterType } from "hy-app/typing/modules/common";
|
|
2
2
|
|
|
3
3
|
export default interface HyModalProps {
|
|
4
4
|
/**
|
|
5
5
|
* @description 是否显示模态框,请赋值给show (默认 false )
|
|
6
6
|
* */
|
|
7
|
-
modelValue: boolean
|
|
7
|
+
modelValue: boolean;
|
|
8
8
|
/**
|
|
9
9
|
* @description 标题内容
|
|
10
10
|
* */
|
|
11
|
-
title?: string
|
|
11
|
+
title?: string;
|
|
12
12
|
/**
|
|
13
13
|
* @description 模态框内容,如传入slot内容,则此参数无效
|
|
14
14
|
* */
|
|
15
|
-
content?: string
|
|
15
|
+
content?: string;
|
|
16
16
|
/**
|
|
17
17
|
* @description 确认按钮的文字 (默认 '确认' )
|
|
18
18
|
* */
|
|
19
|
-
confirmText?: string
|
|
19
|
+
confirmText?: string;
|
|
20
20
|
/**
|
|
21
21
|
* @description 取消按钮的文字 (默认 '取消' )
|
|
22
22
|
* */
|
|
23
|
-
cancelText?: string
|
|
23
|
+
cancelText?: string;
|
|
24
24
|
/**
|
|
25
25
|
* @description 是否显示确认按钮 (默认 true )
|
|
26
26
|
* */
|
|
27
|
-
showConfirmButton?: boolean
|
|
27
|
+
showConfirmButton?: boolean;
|
|
28
28
|
/**
|
|
29
29
|
* @description 是否显示取消按钮 (默认 false )
|
|
30
30
|
* */
|
|
31
|
-
showCancelButton?: boolean
|
|
31
|
+
showCancelButton?: boolean;
|
|
32
32
|
/**
|
|
33
33
|
* @description 确认按钮的颜色 (默认 '#2979ff' )
|
|
34
34
|
* */
|
|
35
|
-
confirmColor?: string
|
|
35
|
+
confirmColor?: string;
|
|
36
36
|
/**
|
|
37
37
|
* @description 取消按钮的颜色 (默认 '#606266' )
|
|
38
38
|
* */
|
|
39
|
-
cancelColor?: string
|
|
39
|
+
cancelColor?: string;
|
|
40
40
|
/**
|
|
41
41
|
* @description 对调确认和取消的位置 (默认 false )
|
|
42
42
|
* */
|
|
43
|
-
buttonReverse?: boolean
|
|
43
|
+
buttonReverse?: boolean;
|
|
44
44
|
/**
|
|
45
45
|
* @description 是否开启缩放模式 (默认 true )
|
|
46
46
|
* */
|
|
47
|
-
zoom?: boolean
|
|
47
|
+
zoom?: boolean;
|
|
48
48
|
/**
|
|
49
49
|
* @description 弹窗的圆角 (默认 16 )
|
|
50
50
|
* */
|
|
51
|
-
round?: string | number
|
|
51
|
+
round?: string | number;
|
|
52
52
|
/**
|
|
53
53
|
* @description 是否异步关闭,只对确定按钮有效,见上方说明 (默认 false )
|
|
54
54
|
* */
|
|
55
|
-
asyncClose?: boolean
|
|
55
|
+
asyncClose?: boolean;
|
|
56
56
|
/**
|
|
57
57
|
* @description 是否允许点击遮罩关闭Modal (默认 false )
|
|
58
58
|
* */
|
|
59
|
-
closeOnClickOverlay?: boolean
|
|
59
|
+
closeOnClickOverlay?: boolean;
|
|
60
60
|
/**
|
|
61
61
|
* @description 往上偏移的值,给一个负的margin-top,往上偏移,避免和键盘重合的情况,单位任意,数值则默认为px单位 (默认 0 )
|
|
62
62
|
* */
|
|
63
|
-
negativeTop?: number
|
|
63
|
+
negativeTop?: number;
|
|
64
64
|
/**
|
|
65
65
|
* @description modal宽度,不支持百分比,可以数值,px,rpx单位 (默认 '650rpx' )
|
|
66
66
|
* */
|
|
67
|
-
width?: string | number
|
|
67
|
+
width?: string | number;
|
|
68
68
|
/**
|
|
69
69
|
* @description 确认按钮的样式,如设置,将不会显示取消按钮
|
|
70
70
|
* */
|
|
71
|
-
confirmButtonShape?: HyApp.ShapeType |
|
|
71
|
+
confirmButtonShape?: HyApp.ShapeType | "";
|
|
72
72
|
/**
|
|
73
73
|
* @description 文案对齐方式
|
|
74
74
|
* */
|
|
75
|
-
contentTextAlign?: HyApp.RowCenterType
|
|
75
|
+
contentTextAlign?: HyApp.RowCenterType;
|
|
76
76
|
}
|
|
77
77
|
|
|
78
78
|
export interface IModalEmits {
|
|
79
79
|
/** 点击确认按钮时触发 */
|
|
80
|
-
(e:
|
|
80
|
+
(e: "confirm"): void;
|
|
81
81
|
/** 点击取消按钮时触发 */
|
|
82
|
-
(e:
|
|
82
|
+
(e: "cancel"): void;
|
|
83
83
|
/** 点击遮罩关闭时触发 */
|
|
84
|
-
(e:
|
|
84
|
+
(e: "close"): void;
|
|
85
85
|
/** 更新值触发 */
|
|
86
|
-
(e:
|
|
86
|
+
(e: "update:modelValue", show: boolean): void;
|
|
87
|
+
(e: "update:loading", show: boolean): void;
|
|
87
88
|
}
|
|
@@ -313,8 +313,8 @@ const setRadioCheckedStatus = (temp: CheckboxColumnsVo) => {
|
|
|
313
313
|
temp[props.fieldNames.value] === item[props.fieldNames.value];
|
|
314
314
|
return item;
|
|
315
315
|
});
|
|
316
|
-
emit("change", temp);
|
|
317
316
|
emit("update:modelValue", temp[props.fieldNames.value]);
|
|
317
|
+
emit("change", temp);
|
|
318
318
|
};
|
|
319
319
|
</script>
|
|
320
320
|
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
<text class="hy-search__content__label">{{ label }}</text>
|
|
23
23
|
</slot>
|
|
24
24
|
</template>
|
|
25
|
-
<view class="hy-search__content__icon">
|
|
25
|
+
<view class="hy-search__content__icon" v-if="searchIcon">
|
|
26
26
|
<HyIcon
|
|
27
27
|
:name="searchIcon?.name || IconConfig.SEARCH"
|
|
28
28
|
:size="searchIcon?.size"
|
|
@@ -213,7 +213,7 @@ const props = defineProps({
|
|
|
213
213
|
default: "#909399",
|
|
214
214
|
},
|
|
215
215
|
/** 输入框左边的图标属性集合,可以为图标名称或图片路径 */
|
|
216
|
-
searchIcon: Object as PropType<HyIconProps>,
|
|
216
|
+
searchIcon: [Boolean, Object] as PropType<HyIconProps | boolean>,
|
|
217
217
|
/** 组件与其他上下左右之间的距离,带单位的字符串形式,如"30px" */
|
|
218
218
|
margin: {
|
|
219
219
|
type: [String, Number],
|
package/global.d.ts
CHANGED
|
@@ -1,84 +1,86 @@
|
|
|
1
|
-
declare module
|
|
2
|
-
// Helper for Volar
|
|
3
|
-
export interface GlobalComponents {
|
|
4
|
-
HyActionSheet: (typeof import(
|
|
5
|
-
HyAddressPicker: (typeof import(
|
|
6
|
-
HyAvatar: (typeof import(
|
|
7
|
-
HyBackTop: (typeof import(
|
|
8
|
-
HyBadge: (typeof import(
|
|
9
|
-
HyButton: (typeof import(
|
|
10
|
-
HyCalendar: (typeof import(
|
|
11
|
-
HyCard: (typeof import(
|
|
12
|
-
HyCell: (typeof import(
|
|
13
|
-
HyCheckButton: (typeof import(
|
|
14
|
-
HyCheckbox: (typeof import(
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
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
|
+
HyDatetimePicker: (typeof import("./components/hy-datetime-picker/hy-datetime-picker.vue"))["default"];
|
|
22
|
+
HyDatetimePickerView: (typeof import("./components/hy-datetime-picker-view/hy-datetime-picker-view.vue"))["default"];
|
|
23
|
+
HyDivider: (typeof import("./components/hy-divider/hy-divider.vue"))["default"];
|
|
24
|
+
HyDropdown: (typeof import("./components/hy-dropdown/hy-dropdown.vue"))["default"];
|
|
25
|
+
HyDropdownItem: (typeof import("./components/hy-dropdown-item/hy-dropdown-item.vue"))["default"];
|
|
26
|
+
HyEmpty: (typeof import("./components/hy-empty/hy-empty.vue"))["default"];
|
|
27
|
+
HyFlex: (typeof import("./components/hy-flex/hy-flex.vue"))["default"];
|
|
28
|
+
HyFloatButton: (typeof import("./components/hy-float-button/hy-float-button.vue"))["default"];
|
|
29
|
+
HyFloatingPanel: (typeof import("./components/hy-floating-panel/hy-floating-panel.vue"))["default"];
|
|
30
|
+
HyForm: (typeof import("@/package/components/hy-form-group/hy-form.vue"))["default"];
|
|
31
|
+
HyFormItem: (typeof import("./components/hy-form-item/hy-form-item.vue"))["default"];
|
|
32
|
+
HyFormGroup: (typeof import("./components/hy-form-group/hy-form-group.vue"))["default"];
|
|
33
|
+
HyGrid: (typeof import("./components/hy-grid/hy-grid.vue"))["default"];
|
|
34
|
+
HyIcon: (typeof import("./components/hy-icon/hy-icon.vue"))["default"];
|
|
35
|
+
HyImage: (typeof import("./components/hy-image/hy-image.vue"))["default"];
|
|
36
|
+
HyInput: (typeof import("./components/hy-input/hy-input.vue"))["default"];
|
|
37
|
+
HyLine: (typeof import("./components/hy-line/hy-line.vue"))["default"];
|
|
38
|
+
HyLineProgress: (typeof import("./components/hy-line-progress/hy-line-progress.vue"))["default"];
|
|
39
|
+
HyList: (typeof import("./components/hy-list/hy-list.vue"))["default"];
|
|
40
|
+
HyLoading: (typeof import("./components/hy-loading/hy-loading.vue"))["default"];
|
|
41
|
+
HyLogin: (typeof import("./components/hy-login/hy-login.vue"))["default"];
|
|
42
|
+
HyMenu: (typeof import("./components/hy-menu/hy-menu.vue"))["default"];
|
|
43
|
+
HyModal: (typeof import("./components/hy-modal/hy-modal.vue"))["default"];
|
|
44
|
+
HyNavbar: (typeof import("./components/hy-navbar/hy-navbar.vue"))["default"];
|
|
45
|
+
HyNoticeBar: (typeof import("./components/hy-notice-bar/hy-notice-bar.vue"))["default"];
|
|
46
|
+
HyNotify: (typeof import("./components/hy-notify/hy-notify.vue"))["default"];
|
|
47
|
+
HyNumberStep: (typeof import("./components/hy-number-step/hy-number-step.vue"))["default"];
|
|
48
|
+
HyOverlay: (typeof import("./components/hy-overlay/hy-overlay.vue"))["default"];
|
|
49
|
+
HyPagination: (typeof import("./components/hy-pagination/hy-pagination.vue"))["default"];
|
|
50
|
+
HyParse: (typeof import("./components/hy-parse/hy-parse.vue"))["default"];
|
|
51
|
+
HyPicker: (typeof import("./components/hy-picker/hy-picker.vue"))["default"];
|
|
52
|
+
HyPopover: (typeof import("./components/hy-popover/hy-popover.vue"))["default"];
|
|
53
|
+
HyPopup: (typeof import("./components/hy-popup/hy-popup.vue"))["default"];
|
|
54
|
+
HyPrice: (typeof import("./components/hy-price/hy-price.vue"))["default"];
|
|
55
|
+
HyQrcode: (typeof import("./components/hy-qrcode/hy-qrcode.vue"))["default"];
|
|
56
|
+
HyRadio: (typeof import("./components/hy-radio/hy-radio.vue"))["default"];
|
|
57
|
+
HyRate: (typeof import("./components/hy-rate/hy-rate.vue"))["default"];
|
|
58
|
+
HyReadMore: (typeof import("./components/hy-read-more/hy-read-more.vue"))["default"];
|
|
59
|
+
HyScrollList: (typeof import("./components/hy-scroll-list/hy-scroll-list.vue"))["default"];
|
|
60
|
+
HySearch: (typeof import("./components/hy-search/hy-search.vue"))["default"];
|
|
61
|
+
HySignature: (typeof import("./components/hy-signature/hy-signature.vue"))["default"];
|
|
62
|
+
HySlider: (typeof import("./components/hy-slider/hy-slider.vue"))["default"];
|
|
63
|
+
HyStatusBar: (typeof import("./components/hy-status-bar/hy-status-bar.vue"))["default"];
|
|
64
|
+
HySteps: (typeof import("./components/hy-steps/hy-steps.vue"))["default"];
|
|
65
|
+
HySticky: (typeof import("./components/hy-sticky/hy-sticky.vue"))["default"];
|
|
66
|
+
HySubmitBar: (typeof import("./components/hy-submit-bar/hy-submit-bar.vue"))["default"];
|
|
67
|
+
HySubsection: (typeof import("./components/hy-subsection/hy-subsection.vue"))["default"];
|
|
68
|
+
HySwipeAction: (typeof import("./components/hy-swipe-action/hy-swipe-action.vue"))["default"];
|
|
69
|
+
HySwiper: (typeof import("./components/hy-swiper/hy-swiper.vue"))["default"];
|
|
70
|
+
HySwitch: (typeof import("./components/hy-switch/hy-switch.vue"))["default"];
|
|
71
|
+
HyTabBar: (typeof import("./components/hy-tabBar/hy-tabBar.vue"))["default"];
|
|
72
|
+
HyTabs: (typeof import("./components/hy-tabs/hy-tabs.vue"))["default"];
|
|
73
|
+
HyTag: (typeof import("./components/hy-tag/hy-tag.vue"))["default"];
|
|
74
|
+
HyTextarea: (typeof import("./components/hy-textarea/hy-textarea.vue"))["default"];
|
|
75
|
+
HyText: (typeof import("./components/hy-text/hy-text.vue"))["default"];
|
|
76
|
+
HyToast: (typeof import("./components/hy-toast/hy-toast.vue"))["default"];
|
|
77
|
+
HyTooltip: (typeof import("./components/hy-tooltip/hy-tooltip.vue"))["default"];
|
|
78
|
+
HyTransition: (typeof import("./components/hy-transition/hy-transition.vue"))["default"];
|
|
79
|
+
HyUpload: (typeof import("./components/hy-upload/hy-upload.vue"))["default"];
|
|
80
|
+
HyWarn: (typeof import("./components/hy-warn/hy-warn.vue"))["default"];
|
|
81
|
+
HyWaterfall: (typeof import("./components/hy-waterfall/hy-waterfall.vue"))["default"];
|
|
82
|
+
HyWatermark: (typeof import("./components/hy-watermark/hy-watermark.vue"))["default"];
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
export {};
|