File tree Expand file tree Collapse file tree 4 files changed +5
-3
lines changed Expand file tree Collapse file tree 4 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 8
8
],
9
9
"scripts" : {
10
10
"submodule" : " git submodule init && git submodule update --init" ,
11
- "init" : " npm run submodule && npm i && cd src/weui-wxss && npm i && gulp build:style && cd ../../ && npm run dev" ,
11
+ "init" : " npm run submodule && npm i && npm run dev" ,
12
12
"dev" : " gulp dev --develop" ,
13
13
"demo" : " gulp demo --develop" ,
14
14
"watch" : " gulp watch --develop --watch" ,
Original file line number Diff line number Diff line change @@ -121,6 +121,7 @@ export default {
121
121
bytelength ( r , value , param ) {
122
122
param = r . param
123
123
// eslint-disable-next-line no-control-regex
124
+ value = value || ''
124
125
const len = value . replace ( / [ ^ \x00 - \xff ] / g, '**' ) . length
125
126
if ( len > param ) {
126
127
return sprintf ( r . message || defaultMessage . bytelength , param )
Original file line number Diff line number Diff line change 19
19
</view>
20
20
</view>
21
21
<view class="weui-half-screen-dialog__bd">
22
- <block wx:if="{{title }}">
22
+ <block wx:if="{{desc }}">
23
23
<view class="weui-half-screen-dialog__desc">{{desc}}</view>
24
24
<view class="weui-half-screen-dialog__tips">{{tips}}</view>
25
25
</block>
Original file line number Diff line number Diff line change @@ -91,6 +91,7 @@ Component({
91
91
this . setData ( {
92
92
searchState : false
93
93
} )
94
+ this . triggerEvent ( 'cancel' )
94
95
} ,
95
96
// @ts -ignore
96
97
inputChange ( e ) {
@@ -107,7 +108,7 @@ Component({
107
108
this . lastSearch = Date . now ( )
108
109
this . timerId = setTimeout ( ( ) => {
109
110
this . data
110
- . search ( e . detail . value )
111
+ . search ( this . data . value )
111
112
. then ( ( json ) => {
112
113
this . setData ( {
113
114
result : json
You can’t perform that action at this time.
0 commit comments