hy-app 0.1.4 → 0.1.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-address-picker/hy-address-picker.vue +20 -10
- package/components/hy-address-picker/props.ts +1 -3
- package/components/hy-address-picker/typing.d.ts +4 -11
- package/components/hy-avatar/typing.d.ts +1 -1
- package/components/hy-back-top/hy-back-top.vue +15 -1
- package/components/hy-back-top/props.ts +1 -6
- package/components/hy-back-top/typing.d.ts +4 -7
- package/components/hy-badge/typing.d.ts +1 -1
- package/components/hy-button/hy-button.vue +29 -12
- package/components/hy-button/props.ts +1 -2
- package/components/hy-button/typing.d.ts +4 -7
- package/components/hy-calendar/typing.d.ts +1 -1
- package/components/hy-card/typing.d.ts +1 -1
- package/components/hy-cell/hy-cell.vue +35 -6
- package/components/hy-cell/props.ts +2 -2
- package/components/hy-cell/typing.d.ts +8 -11
- package/components/hy-check-button/typing.d.ts +1 -1
- package/components/hy-checkbox/hy-checkbox.vue +3 -2
- package/components/hy-checkbox/props.ts +1 -1
- package/components/hy-checkbox/typing.d.ts +2 -2
- package/components/hy-count-down/typing.d.ts +1 -1
- package/components/hy-count-to/typing.d.ts +1 -3
- package/components/hy-datetime-picker/hy-datetime-picker.vue +18 -14
- package/components/hy-datetime-picker/props.ts +1 -3
- package/components/hy-datetime-picker/typing.d.ts +6 -13
- package/components/hy-divider/typing.d.ts +1 -1
- package/components/hy-dropdown/typing.d.ts +1 -1
- package/components/hy-dropdown-item/typing.d.ts +1 -3
- package/components/hy-empty/typing.d.ts +1 -1
- package/components/hy-float-button/typing.d.ts +1 -1
- package/components/hy-folding-panel/typing.d.ts +1 -1
- package/components/hy-form/hy-form.vue +189 -27
- package/components/hy-form/index.scss +1 -1
- package/components/hy-form/props.ts +0 -2
- package/components/hy-form/typing.d.ts +25 -7
- package/components/hy-grid/hy-grid.vue +16 -5
- package/components/hy-grid/props.ts +1 -3
- package/components/hy-grid/typing.d.ts +13 -16
- package/components/hy-icon/hy-icon.vue +6 -10
- package/components/hy-icon/typing.d.ts +1 -1
- package/components/hy-image/typing.d.ts +1 -1
- package/components/hy-input/hy-input.vue +27 -16
- package/components/hy-input/props.ts +2 -4
- package/components/hy-input/typing.d.ts +5 -12
- package/components/hy-line/typing.d.ts +1 -1
- package/components/hy-line-progress/typing.d.ts +1 -1
- package/components/hy-list/typing.d.ts +1 -1
- package/components/hy-loading/typing.d.ts +1 -2
- package/components/hy-login/hy-login.vue +267 -265
- package/components/hy-login/typing.d.ts +1 -1
- package/components/hy-modal/typing.d.ts +1 -1
- package/components/hy-navbar/typing.d.ts +1 -2
- package/components/hy-notice-bar/typing.d.ts +1 -1
- package/components/hy-number-step/hy-number-step.vue +25 -10
- package/components/hy-number-step/typing.d.ts +8 -3
- package/components/hy-overlay/typing.d.ts +1 -1
- package/components/hy-parse/typing.d.ts +1 -1
- package/components/hy-picker/hy-picker.vue +18 -8
- package/components/hy-picker/props.ts +1 -4
- package/components/hy-picker/typing.d.ts +4 -15
- package/components/hy-popup/typing.d.ts +1 -1
- package/components/hy-price/typing.d.ts +1 -1
- package/components/hy-qrcode/typing.d.ts +1 -1
- package/components/hy-radio/hy-radio.vue +6 -2
- package/components/hy-radio/props.ts +1 -1
- package/components/hy-radio/typing.d.ts +2 -2
- package/components/hy-rate/typing.d.ts +1 -1
- package/components/hy-read-more/typing.d.ts +1 -1
- package/components/hy-scroll-list/typing.d.ts +1 -1
- package/components/hy-search/hy-search.vue +12 -3
- package/components/hy-search/props.ts +1 -3
- package/components/hy-search/typing.d.ts +6 -13
- package/components/hy-slider/typing.d.ts +1 -1
- package/components/hy-status-bar/typing.d.ts +1 -1
- package/components/hy-steps/typing.d.ts +1 -1
- package/components/hy-submitBar/typing.d.ts +1 -1
- package/components/hy-subsection/typing.d.ts +1 -1
- package/components/hy-swipe-action/typing.d.ts +1 -1
- package/components/hy-swiper/typing.d.ts +2 -5
- package/components/hy-switch/hy-switch.vue +11 -2
- package/components/hy-switch/props.ts +0 -1
- package/components/hy-switch/typing.d.ts +3 -2
- package/components/hy-tabs/typing.d.ts +1 -1
- package/components/hy-tag/hy-tag.vue +25 -15
- package/components/hy-tag/props.ts +1 -2
- package/components/hy-tag/typing.d.ts +3 -10
- package/components/hy-text/typing.d.ts +1 -1
- package/components/hy-textarea/hy-textarea.vue +1 -1
- package/components/hy-textarea/typing.d.ts +2 -2
- package/components/hy-toast/hy-toast.vue +1 -1
- package/components/hy-toast/typing.d.ts +1 -1
- package/components/hy-tooltip/typing.d.ts +1 -1
- package/components/hy-transition/typing.d.ts +1 -1
- package/components/hy-upload/typing.d.ts +1 -1
- package/components/hy-warn/typing.d.ts +1 -1
- package/components/hy-waterfall/typing.d.ts +1 -3
- package/components/index.ts +2 -2
- package/package.json +3 -3
- package/store/userInfo.ts +25 -25
- package/theme.scss +1 -1
- package/typing/modules/common.d.ts +1 -1
- package/typing/modules/form.ts +29 -14
|
@@ -3,18 +3,27 @@
|
|
|
3
3
|
<view
|
|
4
4
|
v-if="hasInput"
|
|
5
5
|
class="u-datetime-picker__has-input"
|
|
6
|
-
@
|
|
6
|
+
@tap="onShowByClickInput"
|
|
7
7
|
>
|
|
8
8
|
<slot name="trigger" :value="inputValue">
|
|
9
9
|
<HyInput
|
|
10
|
-
:placeholder="placeholder"
|
|
11
|
-
:readonly="true"
|
|
12
10
|
v-model="inputValue"
|
|
13
|
-
:
|
|
14
|
-
:
|
|
15
|
-
:
|
|
16
|
-
:
|
|
17
|
-
:
|
|
11
|
+
:readonly="true"
|
|
12
|
+
:disabled="input?.disabled"
|
|
13
|
+
:disabledColor="input?.disabledColor"
|
|
14
|
+
:shape="input?.shape"
|
|
15
|
+
:border="input?.border"
|
|
16
|
+
:prefixIcon="input?.prefixIcon"
|
|
17
|
+
:suffixIcon="input?.suffixIcon"
|
|
18
|
+
:color="input?.color"
|
|
19
|
+
:fontSize="input?.fontSize"
|
|
20
|
+
:inputAlign="input?.inputAlign"
|
|
21
|
+
:placeholder="input?.placeholder || '请选择地址'"
|
|
22
|
+
:placeholderStyle="input?.placeholderStyle"
|
|
23
|
+
:placeholderClass="input?.placeholderClass"
|
|
24
|
+
:customStyle="
|
|
25
|
+
Object.assign({ 'pointer-events': 'none' }, input?.customStyle)
|
|
26
|
+
"
|
|
18
27
|
></HyInput>
|
|
19
28
|
<view class="input-cover"></view>
|
|
20
29
|
</slot>
|
|
@@ -64,7 +73,7 @@ import HyInput from "../hy-input/hy-input.vue";
|
|
|
64
73
|
import HyPicker from "../hy-picker/hy-picker.vue";
|
|
65
74
|
|
|
66
75
|
const props = withDefaults(defineProps<IProps>(), defaultProps);
|
|
67
|
-
const { show, modelValue, hasInput,
|
|
76
|
+
const { show, modelValue, hasInput, input, separator, closeOnClickOverlay } =
|
|
68
77
|
toRefs(props);
|
|
69
78
|
const emit = defineEmits([
|
|
70
79
|
"close",
|
|
@@ -223,7 +232,8 @@ const change = (e: any) => {
|
|
|
223
232
|
};
|
|
224
233
|
|
|
225
234
|
const onShowByClickInput = () => {
|
|
226
|
-
|
|
235
|
+
console.log(input.value?.disabled);
|
|
236
|
+
if (!input.value?.disabled) {
|
|
227
237
|
showByClickInput.value = !showByClickInput.value;
|
|
228
238
|
}
|
|
229
239
|
};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { CSSProperties } from "vue";
|
|
2
|
+
import type HyInputProps from "../hy-input/typing";
|
|
2
3
|
|
|
3
|
-
export default interface
|
|
4
|
+
export default interface HyAddressPickerProps {
|
|
4
5
|
/**
|
|
5
6
|
* @description 用于控制选择器的弹出和收起 ( 默认 false )
|
|
6
7
|
* */
|
|
@@ -62,22 +63,14 @@ export default interface IProps {
|
|
|
62
63
|
* @note 类型有问题,需要调整
|
|
63
64
|
* */
|
|
64
65
|
defaultIndex?: Array<any>;
|
|
65
|
-
/**
|
|
66
|
-
* @description 是否禁用输入框 ( 默认 false )
|
|
67
|
-
* */
|
|
68
|
-
disabled?: boolean;
|
|
69
66
|
/**
|
|
70
67
|
* @description 输入框是否显示边框 ( 默认 false )
|
|
71
68
|
* */
|
|
72
69
|
hasInput?: boolean;
|
|
73
70
|
/**
|
|
74
|
-
* @description
|
|
75
|
-
* */
|
|
76
|
-
placeholder?: string;
|
|
77
|
-
/**
|
|
78
|
-
* @description 禁用时候输入框颜色
|
|
71
|
+
* @description 输入框集合属性
|
|
79
72
|
* */
|
|
80
|
-
|
|
73
|
+
input?: Partial<HyInputProps>;
|
|
81
74
|
/**
|
|
82
75
|
* @description 右边插槽
|
|
83
76
|
* */
|
|
@@ -2,7 +2,20 @@
|
|
|
2
2
|
<HyTransition mode="fade" :customStyle="backTopStyle" :show="show">
|
|
3
3
|
<slot>
|
|
4
4
|
<view class="hy-back-top" :style="contentStyle" @click="backToTop">
|
|
5
|
-
<HyIcon
|
|
5
|
+
<HyIcon
|
|
6
|
+
:name="icon?.name || IconConfig.DOWNLOAD"
|
|
7
|
+
:color="icon?.color"
|
|
8
|
+
:size="icon?.size"
|
|
9
|
+
:bold="icon?.bold"
|
|
10
|
+
:customPrefix="icon?.customPrefix"
|
|
11
|
+
:imgMode="icon?.imgMode"
|
|
12
|
+
:width="icon?.width"
|
|
13
|
+
:height="icon?.height"
|
|
14
|
+
:top="icon?.top"
|
|
15
|
+
:stop="icon?.stop"
|
|
16
|
+
:round="icon?.round"
|
|
17
|
+
:customStyle="icon?.customStyle"
|
|
18
|
+
></HyIcon>
|
|
6
19
|
<text v-if="text" class="hy-back-top__text">{{ text }}</text>
|
|
7
20
|
</view>
|
|
8
21
|
</slot>
|
|
@@ -17,6 +30,7 @@ import type IProps from "./typing";
|
|
|
17
30
|
import HyTransition from "../hy-transition/hy-transition.vue";
|
|
18
31
|
import HyIcon from "../hy-icon/hy-icon.vue";
|
|
19
32
|
import { addUnit, getPx } from "../../utils";
|
|
33
|
+
import { IconConfig } from "@/package";
|
|
20
34
|
|
|
21
35
|
const props = withDefaults(defineProps<IProps>(), defaultProps);
|
|
22
36
|
const { customStyle, duration, mode, bottom, right, top, scrollTop } =
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import type IProps from "./typing";
|
|
2
|
-
import { IconConfig } from "../../config";
|
|
3
2
|
|
|
4
3
|
const defaultProps: IProps = {
|
|
5
4
|
mode: "circle",
|
|
6
|
-
icon:
|
|
5
|
+
icon: {},
|
|
7
6
|
text: "",
|
|
8
7
|
duration: 500,
|
|
9
8
|
scrollTop: 0,
|
|
@@ -11,10 +10,6 @@ const defaultProps: IProps = {
|
|
|
11
10
|
bottom: 100,
|
|
12
11
|
right: 20,
|
|
13
12
|
zIndex: 888,
|
|
14
|
-
iconStyle: {
|
|
15
|
-
color: "#909399",
|
|
16
|
-
fontSize: "19px",
|
|
17
|
-
},
|
|
18
13
|
customStyle: {
|
|
19
14
|
transform: "rotate(180deg)",
|
|
20
15
|
},
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
import type { CSSProperties } from "vue";
|
|
2
|
+
import type HyIconProps from "../hy-icon/typing";
|
|
2
3
|
|
|
3
|
-
export default interface
|
|
4
|
+
export default interface HyBackTopProps {
|
|
4
5
|
/**
|
|
5
6
|
* @description 返回顶部的形状,circle-圆形,square-方形 (默认 'circle' )
|
|
6
7
|
* */
|
|
7
8
|
mode?: HyApp.ShapeType;
|
|
8
9
|
/**
|
|
9
|
-
* @description
|
|
10
|
+
* @description 自定义图标属性集合
|
|
10
11
|
* */
|
|
11
|
-
icon?:
|
|
12
|
+
icon?: Partial<HyIconProps>;
|
|
12
13
|
/**
|
|
13
14
|
* @description 提示文字
|
|
14
15
|
* */
|
|
@@ -37,10 +38,6 @@ export default interface IProps {
|
|
|
37
38
|
* @description 层级 (默认 888 )
|
|
38
39
|
* */
|
|
39
40
|
zIndex?: number;
|
|
40
|
-
/**
|
|
41
|
-
* @description 图标的样式,对象形式 (默认 {color: '#909399',fontSize: '19px'})
|
|
42
|
-
* */
|
|
43
|
-
iconStyle?: CSSProperties;
|
|
44
41
|
/**
|
|
45
42
|
* @description 定义需要用到的外部样式(默认{transform: "rotate(180deg)"})
|
|
46
43
|
* */
|
|
@@ -40,11 +40,19 @@
|
|
|
40
40
|
</template>
|
|
41
41
|
<template v-else>
|
|
42
42
|
<HyIcon
|
|
43
|
-
v-if="icon"
|
|
44
|
-
:name="icon"
|
|
43
|
+
v-if="icon?.name"
|
|
44
|
+
:name="icon?.name"
|
|
45
45
|
:color="iconColorCom"
|
|
46
|
-
:size="textSize * 1.35"
|
|
47
|
-
:
|
|
46
|
+
:size="icon?.size || textSize * 1.35"
|
|
47
|
+
:bold="icon?.bold"
|
|
48
|
+
:customPrefix="icon?.customPrefix"
|
|
49
|
+
:imgMode="icon?.imgMode"
|
|
50
|
+
:width="icon?.width"
|
|
51
|
+
:height="icon?.height"
|
|
52
|
+
:top="icon?.top"
|
|
53
|
+
:stop="icon?.stop"
|
|
54
|
+
:round="icon?.round"
|
|
55
|
+
:customStyle="icon?.customStyle || { marginRight: '2px' }"
|
|
48
56
|
></HyIcon>
|
|
49
57
|
<slot>
|
|
50
58
|
<text
|
|
@@ -74,11 +82,11 @@
|
|
|
74
82
|
:style="[baseColor, customStyle]"
|
|
75
83
|
>
|
|
76
84
|
<template v-if="loading">
|
|
77
|
-
<
|
|
85
|
+
<HyLoading
|
|
78
86
|
:mode="loadingMode"
|
|
79
|
-
:size="loadingSize
|
|
87
|
+
:size="loadingSize"
|
|
80
88
|
:color="loadingColor"
|
|
81
|
-
></
|
|
89
|
+
></HyLoading>
|
|
82
90
|
<text
|
|
83
91
|
class="hy-button__loading-text"
|
|
84
92
|
:style="[nvueTextStyle]"
|
|
@@ -88,10 +96,19 @@
|
|
|
88
96
|
</template>
|
|
89
97
|
<template v-else>
|
|
90
98
|
<HyIcon
|
|
91
|
-
v-if="icon"
|
|
92
|
-
:name="icon"
|
|
99
|
+
v-if="icon?.name"
|
|
100
|
+
:name="icon?.name"
|
|
93
101
|
:color="iconColorCom"
|
|
94
|
-
:size="textSize * 1.35"
|
|
102
|
+
:size="icon?.size || textSize * 1.35"
|
|
103
|
+
:bold="icon?.bold"
|
|
104
|
+
:customPrefix="icon?.customPrefix"
|
|
105
|
+
:imgMode="icon?.imgMode"
|
|
106
|
+
:width="icon?.width"
|
|
107
|
+
:height="icon?.height"
|
|
108
|
+
:top="icon?.top"
|
|
109
|
+
:stop="icon?.stop"
|
|
110
|
+
:round="icon?.round"
|
|
111
|
+
:customStyle="icon?.customStyle || { marginRight: '2px' }"
|
|
95
112
|
></HyIcon>
|
|
96
113
|
<text
|
|
97
114
|
class="hy-button__text"
|
|
@@ -130,7 +147,7 @@ const {
|
|
|
130
147
|
type,
|
|
131
148
|
plain,
|
|
132
149
|
color,
|
|
133
|
-
|
|
150
|
+
icon,
|
|
134
151
|
} = toRefs(props);
|
|
135
152
|
const emit = defineEmits([
|
|
136
153
|
"click",
|
|
@@ -181,7 +198,7 @@ const loadingColor = computed(() => {
|
|
|
181
198
|
const iconColorCom = computed((): string => {
|
|
182
199
|
// 如果是镂空状态,设置了color就用color值,否则使用主题颜色,
|
|
183
200
|
// u-icon的color能接受一个主题颜色的值
|
|
184
|
-
if (
|
|
201
|
+
if (icon.value?.color) return icon.value?.color;
|
|
185
202
|
if (plain.value) {
|
|
186
203
|
return color.value ? color.value : textColor;
|
|
187
204
|
} else {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { CSSProperties } from "vue";
|
|
2
|
+
import type HyIconProps from "../hy-icon/typing";
|
|
2
3
|
|
|
3
|
-
export default interface
|
|
4
|
+
export default interface HyButtonProps {
|
|
4
5
|
/**
|
|
5
6
|
* @description 是否显示按钮的细边框 (默认 true )
|
|
6
7
|
* */
|
|
@@ -102,13 +103,9 @@ export default interface IProps {
|
|
|
102
103
|
* */
|
|
103
104
|
text?: string;
|
|
104
105
|
/**
|
|
105
|
-
* @description 按钮图标
|
|
106
|
+
* @description 按钮图标api集合
|
|
106
107
|
* */
|
|
107
|
-
icon?:
|
|
108
|
-
/**
|
|
109
|
-
* @description 按钮图标颜色
|
|
110
|
-
* */
|
|
111
|
-
iconColor?: string;
|
|
108
|
+
icon?: Partial<HyIconProps>;
|
|
112
109
|
/**
|
|
113
110
|
* @description 按钮颜色,支持传入linear-gradient渐变色
|
|
114
111
|
* */
|
|
@@ -31,8 +31,19 @@
|
|
|
31
31
|
<slot name="icon" :icon="item?.icon">
|
|
32
32
|
<HyIcon
|
|
33
33
|
:size="iconSize"
|
|
34
|
-
:name="item?.icon"
|
|
35
|
-
:color="
|
|
34
|
+
:name="item?.icon?.name"
|
|
35
|
+
:color="
|
|
36
|
+
disabled || item?.disabled ? '#c0c0c0' : item?.icon?.color
|
|
37
|
+
"
|
|
38
|
+
:bold="item?.icon?.bold"
|
|
39
|
+
:customPrefix="item?.icon?.customPrefix"
|
|
40
|
+
:imgMode="item?.icon?.imgMode"
|
|
41
|
+
:width="item?.icon?.width"
|
|
42
|
+
:height="item?.icon?.height"
|
|
43
|
+
:top="item?.icon?.top"
|
|
44
|
+
:stop="item?.icon?.stop"
|
|
45
|
+
:round="item?.icon?.round"
|
|
46
|
+
:customStyle="item?.icon?.customStyle"
|
|
36
47
|
></HyIcon>
|
|
37
48
|
</slot>
|
|
38
49
|
</view>
|
|
@@ -86,10 +97,27 @@
|
|
|
86
97
|
>
|
|
87
98
|
<slot name="right-icon" :icon="item?.rightIcon || rightIcon">
|
|
88
99
|
<HyIcon
|
|
89
|
-
:name="
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
:
|
|
100
|
+
:name="
|
|
101
|
+
item?.rightIcon?.name || rightIcon?.name || IconConfig.RIGHT
|
|
102
|
+
"
|
|
103
|
+
:color="
|
|
104
|
+
disabled || item?.disabled
|
|
105
|
+
? '#c0c0c0'
|
|
106
|
+
: item?.rightIcon?.color || rightIcon?.color
|
|
107
|
+
"
|
|
108
|
+
:bold="item?.rightIcon?.bold || rightIcon?.bold"
|
|
109
|
+
:customPrefix="
|
|
110
|
+
item?.rightIcon?.customPrefix || rightIcon?.customPrefix
|
|
111
|
+
"
|
|
112
|
+
:imgMode="item?.rightIcon?.imgMode || rightIcon?.imgMode"
|
|
113
|
+
:width="item?.rightIcon?.width || rightIcon?.width"
|
|
114
|
+
:height="item?.rightIcon?.height || rightIcon?.height"
|
|
115
|
+
:top="item?.rightIcon?.top || rightIcon?.name"
|
|
116
|
+
:stop="item?.rightIcon?.stop || rightIcon?.stop"
|
|
117
|
+
:round="item?.rightIcon?.round || rightIcon?.round"
|
|
118
|
+
:customStyle="
|
|
119
|
+
item?.rightIcon?.customStyle || rightIcon?.customStyle
|
|
120
|
+
"
|
|
93
121
|
></HyIcon>
|
|
94
122
|
</slot>
|
|
95
123
|
</view>
|
|
@@ -106,6 +134,7 @@
|
|
|
106
134
|
import defaultProps from "./props";
|
|
107
135
|
import type IProps from "./typing";
|
|
108
136
|
import type { CellContentVo } from "./typing";
|
|
137
|
+
import { IconConfig } from "../../config";
|
|
109
138
|
|
|
110
139
|
import HyIcon from "../hy-icon/hy-icon.vue";
|
|
111
140
|
import { computed, toRefs } from "vue";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type IProps from "./typing";
|
|
2
|
-
import { ColorConfig
|
|
2
|
+
import { ColorConfig } from "../../config";
|
|
3
3
|
|
|
4
4
|
const defaultProps: IProps = {
|
|
5
5
|
list: [],
|
|
@@ -13,7 +13,7 @@ const defaultProps: IProps = {
|
|
|
13
13
|
size: "medium",
|
|
14
14
|
value: "",
|
|
15
15
|
arrange: "right",
|
|
16
|
-
rightIcon:
|
|
16
|
+
rightIcon: {},
|
|
17
17
|
arrowDirection: "right",
|
|
18
18
|
};
|
|
19
19
|
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import type { CSSProperties } from "vue";
|
|
2
2
|
import { HyApp } from "@/package/typing/modules/common";
|
|
3
|
+
import type HyIconProps from "../hy-icon/typing";
|
|
3
4
|
|
|
4
5
|
export interface CellContentVo extends AnyObject {
|
|
5
6
|
/**
|
|
6
7
|
* @description 单元格左图标
|
|
7
8
|
* */
|
|
8
|
-
icon?:
|
|
9
|
+
icon?: Partial<HyIconProps>;
|
|
9
10
|
/**
|
|
10
11
|
* @description 单元格标题
|
|
11
12
|
* */
|
|
@@ -19,9 +20,9 @@ export interface CellContentVo extends AnyObject {
|
|
|
19
20
|
* */
|
|
20
21
|
disabled?: boolean;
|
|
21
22
|
/**
|
|
22
|
-
* @description
|
|
23
|
+
* @description 单元格右图标集合
|
|
23
24
|
* */
|
|
24
|
-
rightIcon?:
|
|
25
|
+
rightIcon?: Partial<HyIconProps>;
|
|
25
26
|
/**
|
|
26
27
|
* @description 单元格值
|
|
27
28
|
* */
|
|
@@ -31,11 +32,11 @@ export interface CellContentVo extends AnyObject {
|
|
|
31
32
|
* */
|
|
32
33
|
url?: string;
|
|
33
34
|
/**
|
|
34
|
-
* @description 单元格右侧箭头的方向,可选值为:left,up,down
|
|
35
|
+
* @description 单元格右侧箭头的方向,可选值为:left,up,down,right
|
|
35
36
|
* */
|
|
36
37
|
arrowDirection?: HyApp.RotateType;
|
|
37
38
|
}
|
|
38
|
-
export default interface
|
|
39
|
+
export default interface HyCellProps {
|
|
39
40
|
/**
|
|
40
41
|
* @description cell列表数据
|
|
41
42
|
* */
|
|
@@ -81,17 +82,13 @@ export default interface IProps {
|
|
|
81
82
|
* */
|
|
82
83
|
arrange?: HyApp.LeftRightType | "center";
|
|
83
84
|
/**
|
|
84
|
-
* @description 右侧的图标箭头
|
|
85
|
+
* @description 右侧的图标箭头icon集合
|
|
85
86
|
* */
|
|
86
|
-
rightIcon?:
|
|
87
|
+
rightIcon?: Partial<HyIconProps>;
|
|
87
88
|
/**
|
|
88
89
|
* @description 右侧箭头的方向,可选值为:left,up,down
|
|
89
90
|
* */
|
|
90
91
|
arrowDirection?: "left" | "up" | "down" | "right";
|
|
91
|
-
/**
|
|
92
|
-
* @description 自定义右侧icon样式
|
|
93
|
-
* */
|
|
94
|
-
rightIconStyle?: CSSProperties;
|
|
95
92
|
/**
|
|
96
93
|
* @description 定义需要用到的外部样式
|
|
97
94
|
* */
|
|
@@ -35,7 +35,7 @@ export type FieldNamesType = {
|
|
|
35
35
|
[key in keyof IFieldNames as IFieldNames[key]]?: string | number | boolean;
|
|
36
36
|
};
|
|
37
37
|
|
|
38
|
-
export default interface
|
|
38
|
+
export default interface HyCheckButtonProps {
|
|
39
39
|
/**
|
|
40
40
|
* @description 选中得值,radio是字符串,checkbox是数组
|
|
41
41
|
* */
|
|
@@ -72,6 +72,7 @@ const {
|
|
|
72
72
|
customStyle,
|
|
73
73
|
borderBottom,
|
|
74
74
|
placement,
|
|
75
|
+
labelDisabled,
|
|
75
76
|
} = toRefs(props);
|
|
76
77
|
const emit = defineEmits(["change", "update:modelValue"]);
|
|
77
78
|
|
|
@@ -172,7 +173,7 @@ const iconClickHandler = (e: Event, temp: CheckboxColumnsVo) => {
|
|
|
172
173
|
* */
|
|
173
174
|
const wrapperClickHandler = (e: Event, temp: CheckboxColumnsVo) => {
|
|
174
175
|
e.stopPropagation();
|
|
175
|
-
if (!isDisabled(temp?.disabled)) {
|
|
176
|
+
if (!isDisabled(temp?.disabled) || !labelDisabled.value) {
|
|
176
177
|
setRadioCheckedStatus(temp);
|
|
177
178
|
}
|
|
178
179
|
};
|
|
@@ -181,7 +182,7 @@ const wrapperClickHandler = (e: Event, temp: CheckboxColumnsVo) => {
|
|
|
181
182
|
* */
|
|
182
183
|
const labelClickHandler = (e: Event, temp: CheckboxColumnsVo) => {
|
|
183
184
|
e.stopPropagation();
|
|
184
|
-
if (!isDisabled(temp?.disabled)) {
|
|
185
|
+
if (!isDisabled(temp?.disabled) || !labelDisabled.value) {
|
|
185
186
|
setRadioCheckedStatus(temp);
|
|
186
187
|
}
|
|
187
188
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { CSSProperties } from "vue";
|
|
2
2
|
import type { CheckboxColumnsVo, IFieldNames } from "../hy-check-button/typing";
|
|
3
3
|
|
|
4
|
-
export default interface
|
|
4
|
+
export default interface HyCheckboxProps {
|
|
5
5
|
/**
|
|
6
6
|
* @description 双向绑定值,数组类型
|
|
7
7
|
* */
|
|
@@ -61,7 +61,7 @@ export default interface IProps {
|
|
|
61
61
|
/**
|
|
62
62
|
* @description 是否禁止点击提示语选中复选框
|
|
63
63
|
* */
|
|
64
|
-
labelDisabled?:
|
|
64
|
+
labelDisabled?: boolean;
|
|
65
65
|
/**
|
|
66
66
|
* @description 定义需要用到的外部样式
|
|
67
67
|
* */
|
|
@@ -7,14 +7,23 @@
|
|
|
7
7
|
>
|
|
8
8
|
<slot name="trigger" :value="inputValue">
|
|
9
9
|
<HyInput
|
|
10
|
-
:placeholder="placeholder"
|
|
11
|
-
:readonly="true"
|
|
12
10
|
v-model="inputValue"
|
|
13
|
-
:
|
|
14
|
-
:
|
|
15
|
-
:
|
|
16
|
-
:
|
|
17
|
-
:
|
|
11
|
+
:readonly="true"
|
|
12
|
+
:disabled="input?.disabled"
|
|
13
|
+
:disabledColor="input?.disabledColor"
|
|
14
|
+
:shape="input?.shape"
|
|
15
|
+
:border="input?.border"
|
|
16
|
+
:prefixIcon="input?.prefixIcon"
|
|
17
|
+
:suffixIcon="input?.suffixIcon"
|
|
18
|
+
:color="input?.color"
|
|
19
|
+
:fontSize="input?.fontSize"
|
|
20
|
+
:inputAlign="input?.inputAlign"
|
|
21
|
+
:placeholder="input?.placeholder || '请选择时间'"
|
|
22
|
+
:placeholderStyle="input?.placeholderStyle"
|
|
23
|
+
:placeholderClass="input?.placeholderClass"
|
|
24
|
+
:customStyle="
|
|
25
|
+
Object.assign({ 'pointer-events': 'none' }, input?.customStyle)
|
|
26
|
+
"
|
|
18
27
|
></HyInput>
|
|
19
28
|
<view class="input-cover"></view>
|
|
20
29
|
</slot>
|
|
@@ -68,7 +77,7 @@ const {
|
|
|
68
77
|
show,
|
|
69
78
|
modelValue,
|
|
70
79
|
hasInput,
|
|
71
|
-
|
|
80
|
+
input,
|
|
72
81
|
formatter,
|
|
73
82
|
filter,
|
|
74
83
|
format,
|
|
@@ -416,11 +425,6 @@ const getOriginColumns = () => {
|
|
|
416
425
|
if (filter.value) {
|
|
417
426
|
values = filter.value(type, values);
|
|
418
427
|
if (!values || (values && values.length == 0)) {
|
|
419
|
-
// uni.showToast({
|
|
420
|
-
// title: '日期filter结果不能为空',
|
|
421
|
-
// icon: 'error',
|
|
422
|
-
// mask: true
|
|
423
|
-
// })
|
|
424
428
|
error("日期filter结果不能为空");
|
|
425
429
|
}
|
|
426
430
|
}
|
|
@@ -547,7 +551,7 @@ const getBoundary = (type: string, innerVal: string | number) => {
|
|
|
547
551
|
};
|
|
548
552
|
};
|
|
549
553
|
const onShowByClickInput = () => {
|
|
550
|
-
if (!
|
|
554
|
+
if (!input.value.disabled) {
|
|
551
555
|
showByClickInput.value = !showByClickInput.value;
|
|
552
556
|
}
|
|
553
557
|
};
|
|
@@ -25,11 +25,9 @@ const defaultProps: IProps = {
|
|
|
25
25
|
visibleItemCount: 5,
|
|
26
26
|
closeOnClickOverlay: false,
|
|
27
27
|
defaultIndex: [],
|
|
28
|
-
disabled: false,
|
|
29
28
|
hasInput: false,
|
|
29
|
+
input: {},
|
|
30
30
|
format: "",
|
|
31
|
-
placeholder: "请选择日期",
|
|
32
|
-
disabledColor: "#F5F5F5",
|
|
33
31
|
toolbarRightSlot: false,
|
|
34
32
|
};
|
|
35
33
|
|