uview-plus 3.3.70 → 3.3.72
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/changelog.md +10 -0
- package/components/u-collapse-item/collapseItem.js +6 -1
- package/components/u-collapse-item/props.js +31 -0
- package/components/u-collapse-item/u-collapse-item.vue +2 -0
- package/components/u-select/u-select.vue +4 -2
- package/components/u-tabs/props.js +6 -1
- package/components/u-tabs/tabs.js +2 -1
- package/components/u-tabs/u-tabs.vue +9 -0
- package/package.json +1 -1
package/changelog.md
CHANGED
|
@@ -1,3 +1,13 @@
|
|
|
1
|
+
## 3.3.72(2025-02-28)
|
|
2
|
+
feat: tabs组件支持icon图标及插槽
|
|
3
|
+
|
|
4
|
+
## 3.3.71(2025-02-27)
|
|
5
|
+
feat: 折叠面板collapse增加titileStyle/iconStyle/rightIconStyle属性
|
|
6
|
+
|
|
7
|
+
feat: 折叠面板组件新增cellCustomStyle/cellCustomClass属性
|
|
8
|
+
|
|
9
|
+
fix: select组件盒模型
|
|
10
|
+
|
|
1
11
|
## 3.3.70(2025-02-24)
|
|
2
12
|
fix: 修改u-checkbox-group组件changes事件发生位置
|
|
3
13
|
|
|
@@ -7,6 +7,13 @@ export const props = defineMixin({
|
|
|
7
7
|
type: String,
|
|
8
8
|
default: () => defProps.collapseItem.title
|
|
9
9
|
},
|
|
10
|
+
// 标题的样式
|
|
11
|
+
titleStyle: {
|
|
12
|
+
type: [Object, String],
|
|
13
|
+
default: () => {
|
|
14
|
+
return defProps.collapseItem.titleStyle
|
|
15
|
+
}
|
|
16
|
+
},
|
|
10
17
|
// 标题右侧内容
|
|
11
18
|
value: {
|
|
12
19
|
type: String,
|
|
@@ -62,5 +69,29 @@ export const props = defineMixin({
|
|
|
62
69
|
type: Boolean,
|
|
63
70
|
default: () => defProps.collapseItem.showRight
|
|
64
71
|
},
|
|
72
|
+
// 左侧图标样式
|
|
73
|
+
iconStyle: {
|
|
74
|
+
type: [Object, String],
|
|
75
|
+
default: () => {
|
|
76
|
+
return defProps.collapseItem.iconStyle
|
|
77
|
+
}
|
|
78
|
+
},
|
|
79
|
+
// 右侧箭头图标的样式
|
|
80
|
+
rightIconStyle: {
|
|
81
|
+
type: [Object, String],
|
|
82
|
+
default: () => {
|
|
83
|
+
return defProps.collapseItem.rightIconStyle
|
|
84
|
+
}
|
|
85
|
+
},
|
|
86
|
+
cellCustomStyle: {
|
|
87
|
+
type: [Object, String],
|
|
88
|
+
default: () => {
|
|
89
|
+
return defProps.collapseItem.cellCustomStyle
|
|
90
|
+
}
|
|
91
|
+
},
|
|
92
|
+
cellCustomClass: {
|
|
93
|
+
type: String,
|
|
94
|
+
default: () => defProps.collapseItem.cellCustomClass
|
|
95
|
+
}
|
|
65
96
|
}
|
|
66
97
|
})
|
|
@@ -105,7 +105,8 @@
|
|
|
105
105
|
margin-right: 2px;
|
|
106
106
|
}
|
|
107
107
|
.u-select__options {
|
|
108
|
-
min-width: 100px;
|
|
108
|
+
min-width: 100px;
|
|
109
|
+
box-sizing: border-box;
|
|
109
110
|
border-radius: 4px;
|
|
110
111
|
border: 1px solid #f1f1f1;
|
|
111
112
|
background-color: #fff;
|
|
@@ -113,7 +114,8 @@
|
|
|
113
114
|
top: 20px;
|
|
114
115
|
left: 0;
|
|
115
116
|
.u-select__options_item {
|
|
116
|
-
padding: 10px 12px;
|
|
117
|
+
padding: 10px 12px;
|
|
118
|
+
box-sizing: border-box;
|
|
117
119
|
width: 100%;
|
|
118
120
|
height: 100%;
|
|
119
121
|
&:hover {
|
|
@@ -27,6 +27,15 @@
|
|
|
27
27
|
item.disabled && 'u-tabs__wrapper__nav__item--disabled',
|
|
28
28
|
innerCurrent == index ? 'u-tabs__wrapper__nav__item-active' : '']"
|
|
29
29
|
>
|
|
30
|
+
<slot v-if="$slots.icon" name="icon" :item="item" :keyName="keyName" :index="index" />
|
|
31
|
+
<template v-else>
|
|
32
|
+
<view class="u-tabs__wrapper__nav__item__prefix-icon" v-if="item.icon">
|
|
33
|
+
<up-icon
|
|
34
|
+
:name="item.icon"
|
|
35
|
+
:customStyle="addStyle(iconStyle)"
|
|
36
|
+
></up-icon>
|
|
37
|
+
</view>
|
|
38
|
+
</template>
|
|
30
39
|
<slot v-if="$slots.content" name="content" :item="item" :keyName="keyName" :index="index" />
|
|
31
40
|
<slot v-else-if="!$slots.content && ($slots.default || $slots.$default)"
|
|
32
41
|
:item="item" :keyName="keyName" :index="index" />
|
package/package.json
CHANGED