File tree Expand file tree Collapse file tree 16 files changed +166
-77
lines changed Expand file tree Collapse file tree 16 files changed +166
-77
lines changed Original file line number Diff line number Diff line change 7
7
8
8
/* start--演示页面使用的统一样式--start */
9
9
.u-demo {
10
- padding : 50 rpx 40 rpx ;
10
+ padding : 25 px 20 px ;
11
11
}
12
12
13
13
.u-demo-wrap {
14
14
border-width : 1px ;
15
15
border-color : #ddd ;
16
16
border-style : dashed ;
17
17
background-color : rgb (250 , 250 , 250 );
18
- padding : 40 rpx 20 rpx ;
19
- border-radius : 6 px ;
18
+ padding : 20 px 10 px ;
19
+ border-radius : 3 px ;
20
20
}
21
21
22
22
.u-demo-area {
@@ -25,19 +25,19 @@ text {
25
25
26
26
.u-no-demo-here {
27
27
color : $u-tips-color ;
28
- font-size : 26 rpx ;
28
+ font-size : 13 px ;
29
29
}
30
30
31
31
.u-demo-result-line {
32
32
border-width : 1px ;
33
33
border-color : #ddd ;
34
34
border-style : dashed ;
35
- padding : 10 rpx 40 rpx ;
36
- margin-top : 30 rpx ;
35
+ padding : 5 px 20 px ;
36
+ margin-top : 30 px ;
37
37
border-radius : 5px ;
38
38
background-color : rgb (240 , 240 , 240 );
39
39
color : $u-content-color ;
40
- font-size : 32 rpx ;
40
+ font-size : 16 px ;
41
41
/* #ifndef APP-NVUE */
42
42
word-break : break-word ;
43
43
display : inline-block ;
@@ -49,26 +49,26 @@ text {
49
49
.u-demo-title ,
50
50
.u-config-title {
51
51
text-align : center ;
52
- font-size : 32 rpx ;
52
+ font-size : 16 px ;
53
53
font-weight : bold ;
54
- margin-bottom : 40 rpx ;
54
+ margin-bottom : 20 px ;
55
55
}
56
56
57
57
.u-config-item {
58
- margin-top : 50 rpx ;
58
+ margin-top : 25 px ;
59
59
}
60
60
61
61
.u-config-title {
62
- margin-top : 40 rpx ;
63
- padding-bottom : 10 rpx ;
62
+ margin-top : 20 px ;
63
+ padding-bottom : 5 px ;
64
64
}
65
65
66
66
.u-item-title {
67
67
position : relative ;
68
- font-size : 28 rpx ;
68
+ font-size : 15 px ;
69
69
padding-left : 8px ;
70
70
line-height : 1 ;
71
- margin-bottom : 22 rpx ;
71
+ margin-bottom : 11 px ;
72
72
}
73
73
74
74
.u-item-title :after {
Original file line number Diff line number Diff line change 47
47
48
48
<style lang="scss" scoped>
49
49
.nav-wrap {
50
- padding : 30 rpx ;
50
+ padding : 15 px ;
51
51
position : relative ;
52
52
}
53
53
54
54
.lang {
55
55
position : absolute ;
56
- top : 30 rpx ;
57
- right : 30 rpx ;
56
+ top : 15 px ;
57
+ right : 15 px ;
58
58
}
59
59
60
60
.nav-title {
66
66
}
67
67
68
68
.nav-info {
69
- margin-left : 30 rpx ;
69
+ margin-left : 15 px ;
70
70
}
71
71
72
72
.nav-title__text {
73
73
/* #ifndef APP-NVUE */
74
74
display : flex ;
75
75
/* #endif */
76
76
color : $u-main-color ;
77
- font-size : 50 rpx ;
77
+ font-size : 25 px ;
78
78
font-weight : bold ;
79
79
}
80
80
81
81
.logo {
82
- width : 140 rpx ;
82
+ width : 70 px ;
83
83
/* #ifndef APP-NVUE */
84
84
height : auto ;
85
85
/* #endif */
86
86
}
87
87
88
88
.nav-slogan {
89
89
color : $u-tips-color ;
90
- font-size : 28 rpx ;
90
+ font-size : 14 px ;
91
91
}
92
92
93
93
.nav-desc {
94
- margin-top : 20 rpx ;
95
- font-size : 28 rpx ;
94
+ margin-top : 10 px ;
95
+ font-size : 14 px ;
96
96
color : $u-content-color ;
97
97
}
98
98
</style >
Original file line number Diff line number Diff line change 2
2
"name" : " uView" ,
3
3
"appid" : " __UNI__60F4B81" ,
4
4
"description" : " 多平台快速开发的UI框架" ,
5
- "versionName" : " 1.7.3 " ,
5
+ "versionName" : " 1.7.4 " ,
6
6
"versionCode" : " 100" ,
7
7
"transformPx" : false ,
8
8
"app-plus" : {
Original file line number Diff line number Diff line change @@ -178,6 +178,7 @@ page {
178
178
font-size : 30 rpx;
179
179
margin-top : 5px ;
180
180
color : $u-main-color ;
181
+ word-break : break-all ;
181
182
}
182
183
183
184
.demo-tag {
Original file line number Diff line number Diff line change 4
4
<view class =" u-demo-title" >演示效果</view >
5
5
<view class =" u-demo-area" >
6
6
<u-number-box v-model =" value" :bg-color =" bgColor" :color =" color" :min =" 0"
7
- :step =" step" :disabled =" disabled" @change =" change" ></u-number-box >
7
+ :step =" step" :disabled =" disabled" @change =" change" @focus = " focus " ></u-number-box >
8
8
</view >
9
9
</view >
10
10
<view class =" u-config-wrap" >
@@ -64,6 +64,9 @@ export default {
64
64
},
65
65
change (e ) {
66
66
// console.log(e.value);
67
+ },
68
+ focus () {
69
+ console .log (' focus' );
67
70
}
68
71
}
69
72
};
Original file line number Diff line number Diff line change 11
11
color: value == item.value ? activeColor : inactiveColor
12
12
}" >
13
13
<u-icon v-if =" value == item.value" name =" checkbox-mark" :color =" activeColor" size =" 32" ></u-icon >
14
- </u-cell-item >;
14
+ </u-cell-item >
15
15
</u-cell-group >
16
16
</view >
17
17
</scroll-view >
62
62
height: {
63
63
type: [Number , String ],
64
64
default: ' auto'
65
- }
65
+ },
66
66
},
67
67
data () {
68
68
return {
Original file line number Diff line number Diff line change 14
14
<view class =" u-dropdown__menu__item__arrow" :class =" {
15
15
'u-dropdown__menu__item__arrow--rotate': index === current
16
16
}" >
17
- <u-icon :custom-style =" {display: 'flex'}" name =" arrow-down " size =" 26 " :color =" index === current || highlightIndex == index ? activeColor : '#c0c4cc'" ></u-icon >
17
+ <u-icon :custom-style =" {display: 'flex'}" : name =" menuIcon " : size =" $u.addUnit(menuIconSize) " :color =" index === current || highlightIndex == index ? activeColor : '#c0c4cc'" ></u-icon >
18
18
</view >
19
19
</view >
20
20
</view >
98
98
borderRadius: {
99
99
type: [Number , String ],
100
100
default: 0
101
+ },
102
+ // 菜单右侧的icon图标
103
+ menuIcon: {
104
+ type: String ,
105
+ default: ' arrow-down'
106
+ },
107
+ // 菜单右侧图标的大小
108
+ menuIconSize: {
109
+ type: [Number , String ],
110
+ default: 26
101
111
}
102
112
},
103
113
data () {
Original file line number Diff line number Diff line change 9
9
<u-icon name =" minus" :size =" size" ></u-icon >
10
10
</view >
11
11
<input :disabled =" disabledInput || disabled" :cursor-spacing =" getCursorSpacing" :class =" { 'u-input-disabled': disabled }"
12
- v-model =" inputVal" class =" u-number-input" @blur =" onBlur"
12
+ v-model =" inputVal" class =" u-number-input" @blur =" onBlur" @focus = " onFocus "
13
13
type =" number" :style =" {
14
14
color: color,
15
15
fontSize: size + 'rpx',
288
288
})
289
289
this .handleChange (val, ' blur' );
290
290
},
291
+ // 输入框获得焦点事件
292
+ onFocus () {
293
+ this .$emit (' focus' );
294
+ },
291
295
handleChange (value , type ) {
292
296
if (this .disabled ) return ;
293
297
// 清除定时器,避免造成混乱
Original file line number Diff line number Diff line change @@ -57,7 +57,10 @@ parser.prototype.Comment = function() {
57
57
}
58
58
parser . prototype . Ignore = function ( c ) {
59
59
if ( c == '{' ) this . floor ++ ;
60
- else if ( c == '}' && ! -- this . floor ) this . state = this . Space ;
60
+ else if ( c == '}' && ! -- this . floor ) {
61
+ this . list = [ ] ;
62
+ this . state = this . Space ;
63
+ }
61
64
}
62
65
parser . prototype . Name = function ( c ) {
63
66
if ( cfg . blankChar [ c ] ) {
You can’t perform that action at this time.
0 commit comments