File tree Expand file tree Collapse file tree 11 files changed +27
-10
lines changed Expand file tree Collapse file tree 11 files changed +27
-10
lines changed Original file line number Diff line number Diff line change
1
+ /* #ifndef APP-NVUE */
2
+ view ,
3
+ text {
4
+ box-sizing : border-box ;
5
+ }
6
+ /* #endif */
1
7
2
8
/* start--演示页面使用的统一样式--start */
3
9
.u-demo {
Original file line number Diff line number Diff line change 628
628
flex : 0 0 33.33333333% ;
629
629
justify-content : center ;
630
630
overflow : hidden ;
631
- padding : 0 6 rpx;
632
631
}
633
632
634
633
.u-icon-name {
Original file line number Diff line number Diff line change 3
3
<view class =" u-demo-wrap" >
4
4
<view class =" u-demo-title" >演示效果</view >
5
5
<view class =" u-demo-area" >
6
- <u-button @click =" btnClick" :loading =" loading" :plain =" plain" :shape =" shape" :size =" size" :ripple =" ripple" :hairLine =" hairLine" :type =" type" >山川异域,风月同天</u-button >
6
+ <u-button @click =" btnClick" data-name = " 3333 " :loading =" loading" :plain =" plain" :shape =" shape" :size =" size" :ripple =" ripple" :hairLine =" hairLine" :type =" type" >山川异域,风月同天</u-button >
7
7
</view >
8
8
</view >
9
9
<view class =" u-config-wrap" >
Original file line number Diff line number Diff line change
1
+ <template >
2
+ <view class =" " >
3
+
4
+ </view >
5
+ </template >
Original file line number Diff line number Diff line change 33
33
@tap.stop =" click($event)"
34
34
:hover-class =" getHoverClass"
35
35
:loading =" loading"
36
- data-name =" dataName"
37
36
>
38
37
<slot ></slot >
39
38
<view
Original file line number Diff line number Diff line change 6
6
flex: labelPosition == 'left' ? `0 0 ${labelWidth}rpx` : '1'
7
7
}" >
8
8
<view class =" u-icon-wrap" v-if =" icon" >
9
- <u-icon size =" 32" :name =" icon" :color =" iconColor" class =" u-icon" ></u-icon >
9
+ <u-icon size =" 32" :custom-style = " iconStyle " : name =" icon" :color =" iconColor" class =" u-icon" ></u-icon >
10
10
</view >
11
11
<slot name =" icon" ></slot >
12
12
<text class =" u-label-text" :class =" [this.$slots.icon || icon ? 'u-label-left-gap' : '']" >{{ label }}</text >
@@ -162,6 +162,13 @@ export default {
162
162
clearSize: {
163
163
type: [Number , String ],
164
164
default: 30
165
+ },
166
+ // lable左边的图标样式,对象形式
167
+ iconStyle: {
168
+ type: Object ,
169
+ default () {
170
+ return {}
171
+ }
165
172
}
166
173
},
167
174
inject: [' uCellGroup' ],
Original file line number Diff line number Diff line change 23
23
* @property {String} label 图标右侧的label文字(默认28)
24
24
* @property {String} label -pos label文字相对于图标的位置,只能right或bottom(默认right)
25
25
* @property {String} label -color label字体颜色(默认#606266)
26
+ * @property {Object} custom -style icon的样式,对象形式
26
27
* @property {String | Number} margin -left label在右侧时与图标的距离,单位rpx(默认6)
27
28
* @property {String | Number} margin -top label在下方时与图标的距离,单位rpx(默认6)
28
29
* @property {String} label -pos label相对于图标的位置,只能right或bottom(默认right)
Original file line number Diff line number Diff line change 8
8
}
9
9
/* #endif */
10
10
11
- /* 支付宝,百度,头条小程序目前读取大的本地字体文件, 导致无法显示图标,故用在线加载的方式-2020-05-12 */
12
- /* #ifdef MP-ALIPAY || MP-BAIDU || MP-TOUTIAO || H5 */
11
+ /* 支付宝,百度,头条,QQ小程序,以及H5在部分浏览器目前读取大的本地字体文件, 导致无法显示图标,故用在线加载的方式-2020-06-24 */
12
+ /* #ifdef MP-ALIPAY || MP-BAIDU || MP-TOUTIAO || H5 || MP-QQ */
13
13
@font-face {
14
14
font-family : "uicon-iconfont" ;
15
15
src : url ('//at.alicdn.com/t/font_1529455_k9eg3z8m98' );
Original file line number Diff line number Diff line change 1
- // 此版本发布于2020-06-19
2
- let version = '1.3.61 ' ;
1
+ // 此版本发布于2020-06-25
2
+ let version = '1.3.9 ' ;
3
3
4
4
export default {
5
5
v : version ,
Original file line number Diff line number Diff line change 6
6
will-change : transform ;
7
7
}
8
8
9
+ // 在weex,也即nvue中,所有元素默认为border-box
9
10
view ,
10
11
text {
11
12
box-sizing : border-box ;
12
- flex-direction : row ;
13
13
}
14
14
/* #endif */
You can’t perform that action at this time.
0 commit comments