File tree Expand file tree Collapse file tree
components/uni-search-bar Expand file tree Collapse file tree Original file line number Diff line number Diff line change 8787 .uni-searchbar-form__box {
8888 display : flex ;
8989 flex : 1 ;
90+ align-items : center ;
9091 width : 100% ;
9192 height : 64 rpx;
92- line-height : 64 rpx;
9393 color : #c8c7cc ;
9494 background : #fff ;
9595 border : solid 1px #c8c7cc ;
9696 border-radius : 10 rpx
9797 }
9898
9999 .uni-searchbar-form__box .icon-search {
100- text-align : right ;
101100 color : #c8c7cc ;
102- line-height : 64 rpx ;
101+ line-height : 24 px ;
103102 padding : 0 rpx 10 rpx 0 rpx 15 rpx
104103 }
105104
113112
114113 .uni-searchbar-form__box .icon-clear {
115114 color : #c8c7cc ;
116- line-height : 64 rpx ;
115+ line-height : 20 px ;
117116 padding : 0 rpx 15 rpx 0 rpx 10 rpx
118117 }
119118
120119 .uni-searchbar-form__text {
121120 display : flex ;
122121 flex : 1 ;
122+ align-items : center ;
123123 width : 100% ;
124124 height : 64 rpx;
125125 line-height : 64 rpx;
146146 .uni-searchbar-form__cancel {
147147 padding-left : 20 rpx;
148148 line-height : 64 rpx;
149- color : #333
149+ color : #333 ;
150+ white-space : nowrap
150151 }
151152
152153 .uni-searchbar-form.hide .uni-searchbar-form__box {
Original file line number Diff line number Diff line change 5353 data: [{
5454 type: false ,
5555 subName: ' 默认开启' ,
56- open: true ,
56+ open: false ,
57+ openPre: true ,
5758 content: ' 折叠内容主体,可自定义内容及样式'
5859 },
5960 {
9899 data: [{
99100 type: false ,
100101 subName: ' 默认开启' ,
101- open: true ,
102+ open: false ,
103+ openPre: true ,
102104 showAnimation: true ,
103105 content: ' 折叠内容主体,可自定义内容及样式'
104106 },
159161 id: 2
160162 }
161163 },
164+ onLoad () {
165+ setTimeout (() => {
166+ this .list .map (function (item ) {
167+ item .data .map (function (collapseItem ) {
168+ if (collapseItem .openPre ) {
169+ collapseItem .open = collapseItem .openPre
170+ }
171+ })
172+ })
173+ }, 350 )
174+ },
162175 methods: {
163176 change (e ) {
164177 // console.log(e)
Original file line number Diff line number Diff line change 5757 },
5858 data () {
5959 return {
60- isOpened: true ,
60+ isOpened: false ,
6161 options1: [{
6262 text: ' 取消置顶'
6363 }],
8787 }]
8888 }
8989 },
90+ onLoad () {
91+ setTimeout (() => {
92+ this .isOpened = true
93+ }, 350 )
94+ },
9095 methods: {
9196 bindClick (e ) {
9297 console .log (e)
You can’t perform that action at this time.
0 commit comments