File tree Expand file tree Collapse file tree 4 files changed +14
-5
lines changed
Expand file tree Collapse file tree 4 files changed +14
-5
lines changed Original file line number Diff line number Diff line change @@ -182,6 +182,11 @@ exports[`DateTimePicker DateTimePicker year-month-date demo works fine 1`] = `
182182 filter = " {{[Function]}}"
183183 format = " YYYY-MM-DD"
184184 mode = " date"
185+ popupProps = " {{
186+ Object {
187+ " usingCustomNavbar": true,
188+ }
189+ }}"
185190 start = " 2000-01-01 00:00:00"
186191 title = " 选择日期"
187192 visible = " {{false}}"
Original file line number Diff line number Diff line change 1414 }
1515 return options ;
1616 } ,
17+ popupProps : {
18+ usingCustomNavbar : true ,
19+ } ,
1720 } ,
1821 showPicker ( e ) {
1922 const { mode } = e . currentTarget . dataset ;
Original file line number Diff line number Diff line change 1616 mode="date"
1717 defaultValue="{{date}}"
1818 format="YYYY-MM-DD"
19- bindchange="onConfirm"
20- bindpick="onColumnChange"
21- bindcancel="hidePicker"
2219 start="{{start}}"
2320 end="{{end}}"
2421 filter="{{filter}}"
22+ popup-props="{{popupProps}}"
23+ bindchange="onConfirm"
24+ bindpick="onColumnChange"
25+ bindcancel="hidePicker"
2526/>
Original file line number Diff line number Diff line change 55 class="class"
66 visible="{{visible}}"
77 placement="bottom"
8- usingCustomNavbar="{{usingCustomNavbar}}"
9- bind:visible-change="onPopupChange"
8+ using-custom-navbar="{{usingCustomNavbar || popupProps.usingCustomNavbar}}"
109 z-index="{{ popupProps.zIndex || defaultPopUpzIndex }}"
1110 overlay-props="{{ popupProps.overlayProps || defaultPopUpProps }}"
11+ bind:visible-change="onPopupChange"
1212>
1313 <include src="./template.wxml" />
1414</t-popup>
You can’t perform that action at this time.
0 commit comments