u-picker.vue 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617
  1. <template>
  2. <u-popup :maskCloseAble="maskCloseAble" mode="bottom" :popup="false" v-model="value" length="auto"
  3. :safeAreaInsetBottom="safeAreaInsetBottom" @close="close" :z-index="uZIndex">
  4. <view class="u-datetime-picker" @tap.stop>
  5. <view class="u-picker-header" @touchmove.stop.prevent="stop" catchtouchmove="stop">
  6. <view class="u-btn-picker u-btn-picker--tips" :style="{ color: cancelColor }" hover-class="u-opacity" :hover-stay-time="150"
  7. @tap="getResult('cancel')">取消</view>
  8. <view class="u-btn-picker u-btn-picker--primary" :style="{ color: confirmColor }" hover-class="u-opacity" :hover-stay-time="150"
  9. @touchmove.stop="" @tap.stop="getResult('confirm')">确定</view>
  10. </view>
  11. <view class="u-picker-body">
  12. <picker-view v-if="mode == 'region'" :value="valueArr" @change="change" class="u-picker-view">
  13. <picker-view-column v-if="params.province">
  14. <view class="u-column-item" v-for="(item,index) in provinces" :key="index">
  15. <view class="u-line-1">
  16. {{item.label}}
  17. </view>
  18. </view>
  19. </picker-view-column>
  20. <picker-view-column v-if="params.city">
  21. <view class="u-column-item" v-for="(item,index) in citys" :key="index">
  22. <view class="u-line-1">
  23. {{item.label}}
  24. </view>
  25. </view>
  26. </picker-view-column>
  27. <picker-view-column v-if="params.area">
  28. <view class="u-column-item" v-for="(item,index) in areas" :key="index">
  29. <view class="u-line-1">
  30. {{item.label}}
  31. </view>
  32. </view>
  33. </picker-view-column>
  34. </picker-view>
  35. <picker-view v-else-if="mode == 'time'" :value="valueArr" @change="change" class="u-picker-view">
  36. <picker-view-column v-if="!reset && params.year">
  37. <view class="u-column-item" v-for="(item,index) in years" :key="index">
  38. {{ item }}<text class="u-text" v-if="showTimeTag">年</text>
  39. </view>
  40. </picker-view-column>
  41. <picker-view-column v-if="!reset && params.month">
  42. <view class="u-column-item" v-for="(item,index) in months" :key="index">
  43. {{ formatNumber(item)}}<text class="u-text" v-if="showTimeTag">月</text>
  44. </view>
  45. </picker-view-column>
  46. <picker-view-column v-if="!reset && params.day">
  47. <view class="u-column-item" v-for="(item,index) in days" :key="index">
  48. {{ formatNumber(item) }}<text class="u-text" v-if="showTimeTag">日</text>
  49. </view>
  50. </picker-view-column>
  51. <picker-view-column v-if="!reset && params.hour">
  52. <view class="u-column-item" v-for="(item,index) in hours" :key="index">
  53. {{ formatNumber(item) }}<text class="u-text" v-if="showTimeTag">时</text>
  54. </view>
  55. </picker-view-column>
  56. <picker-view-column v-if="!reset && params.minute">
  57. <view class="u-column-item" v-for="(item,index) in minutes" :key="index">
  58. {{ formatNumber(item) }}<text class="u-text" v-if="showTimeTag">分</text>
  59. </view>
  60. </picker-view-column>
  61. <picker-view-column v-if="!reset && params.second">
  62. <view class="u-column-item" v-for="(item,index) in seconds" :key="index">
  63. {{ formatNumber(item) }}<text class="u-text" v-if="showTimeTag">秒</text>
  64. </view>
  65. </picker-view-column>
  66. </picker-view>
  67. <picker-view v-else-if="mode == 'selector'" :value="defaultSelector" @change="change" class="u-picker-view">
  68. <picker-view-column>
  69. <view class="u-column-item" v-for="(item,index) in range" :key="index">
  70. <view class="u-line-1">
  71. {{getItemValue(item, 'selector')}}
  72. </view>
  73. </view>
  74. </picker-view-column>
  75. </picker-view>
  76. <picker-view v-else-if="mode == 'multiSelector'" :value="defaultSelector" @change="change" class="u-picker-view">
  77. <picker-view-column v-for="(item,index) in range" :key="index">
  78. <view class="u-column-item" v-for="(item1,index1) in item" :key="index1">
  79. <view class="u-line-1">
  80. {{getItemValue(item1, 'multiSelector')}}
  81. </view>
  82. </view>
  83. </picker-view-column>
  84. </picker-view>
  85. </view>
  86. </view>
  87. </u-popup>
  88. </template>
  89. <script>
  90. import provinces from '../../libs/util/province.js';
  91. import citys from '../../libs/util/city.js';
  92. import areas from '../../libs/util/area.js';
  93. /**
  94. * picker picker弹出选择器
  95. * @description 此选择器有两种弹出模式:一是时间模式,可以配置年,日,月,时,分,秒参数 二是地区模式,可以配置省,市,区参数
  96. * @tutorial https://www.uviewui.com/components/picker.html
  97. * @property {Object} params 需要显示的参数,见官网说明
  98. * @property {String} mode 模式选择,region-地区类型,time-时间类型(默认time)
  99. * @property {String Number} start-year 可选的开始年份,mode=time时有效(默认1950)
  100. * @property {String Number} end-year 可选的结束年份,mode=time时有效(默认2050)
  101. * @property {Boolean} safe-area-inset-bottom 是否开启底部安全区适配(默认false)
  102. * @property {Boolean} show-time-tag 时间模式时,是否显示后面的年月日中文提示
  103. * @property {String} cancel-color 取消按钮的颜色(默认#606266)
  104. * @property {String} confirm-color 确认按钮的颜色(默认#2979ff)
  105. * @property {String} default-time 默认选中的时间,mode=time时有效
  106. * @property {String} default-region 默认选中的地区,中文形式,mode=region时有效
  107. * @property {String} default-code 默认选中的地区,编号形式,mode=region时有效
  108. * @property {Boolean} mask-close-able 是否允许通过点击遮罩关闭Picker(默认true)
  109. * @property {String Number} z-index 弹出时的z-index值(默认1075)
  110. * @property {Array} default-selector 数组形式,其中每一项表示选择了range对应项中的第几个
  111. * @property {Array} range 自定义选择的数据,mode=selector或mode=multiSelector时有效
  112. * @property {String} range-key 当range参数的元素为对象时,指定Object中的哪个key的值作为选择器显示内容
  113. * @event {Function} confirm 点击确定按钮,返回当前选择的值
  114. * @event {Function} cancel 点击取消按钮,返回当前选择的值
  115. * @example <u-picker v-model="show" mode="time"></u-picker>
  116. */
  117. export default {
  118. name: "u-picker",
  119. props: {
  120. // picker中需要显示的参数
  121. params: {
  122. type: Object,
  123. default () {
  124. return {
  125. year: true,
  126. month: true,
  127. day: true,
  128. hour: false,
  129. minute: false,
  130. second: false,
  131. province: true,
  132. city: true,
  133. area: true
  134. }
  135. }
  136. },
  137. // 当mode=selector或者mode=multiSelector时,提供的数组
  138. range: {
  139. type: Array,
  140. default() {
  141. return []
  142. }
  143. },
  144. // 当mode=selector或者mode=multiSelector时,提供的默认选中的下标
  145. defaultSelector: {
  146. type: Array,
  147. default() {
  148. return [0]
  149. }
  150. },
  151. // 当 range 是一个 Array<Object> 时,通过 range-key 来指定 Object 中 key 的值作为选择器显示内容
  152. rangeKey: {
  153. type: String,
  154. default: ''
  155. },
  156. // 模式选择,region-地区类型,time-时间类型,selector-单列模式,multiSelector-多列模式
  157. mode: {
  158. type: String,
  159. default: 'time'
  160. },
  161. // 年份开始时间
  162. startYear: {
  163. type: [String, Number],
  164. default: 1950
  165. },
  166. // 年份结束时间
  167. endYear: {
  168. type: [String, Number],
  169. default: 2050
  170. },
  171. // "取消"按钮的颜色
  172. cancelColor: {
  173. type: String,
  174. default: '#606266'
  175. },
  176. // "确定"按钮的颜色
  177. confirmColor: {
  178. type: String,
  179. default: '#2979ff'
  180. },
  181. // 默认显示的时间,2025-07-02 || 2025-07-02 13:01:00 || 2025/07/02
  182. defaultTime: {
  183. type: String,
  184. default: ''
  185. },
  186. // 默认显示的地区,可传类似["河北省", "秦皇岛市", "北戴河区"]
  187. defaultRegion: {
  188. type: Array,
  189. default () {
  190. return [];
  191. }
  192. },
  193. // 时间模式时,是否显示后面的年月日中文提示
  194. showTimeTag: {
  195. type: Boolean,
  196. default: true
  197. },
  198. // 默认显示地区的编码,defaultRegion和areaCode同时存在,areaCode优先,可传类似["13", "1303", "130304"]
  199. areaCode: {
  200. type: Array,
  201. default () {
  202. return [];
  203. }
  204. },
  205. safeAreaInsetBottom: {
  206. type: Boolean,
  207. default: false
  208. },
  209. // 是否允许通过点击遮罩关闭Picker
  210. maskCloseAble: {
  211. type: Boolean,
  212. default: true
  213. },
  214. // 通过双向绑定控制组件的弹出与收起
  215. value: {
  216. type: Boolean,
  217. default: false
  218. },
  219. // 弹出的z-index值
  220. zIndex: {
  221. type: [String, Number],
  222. default: 0
  223. }
  224. },
  225. data() {
  226. return {
  227. years: [],
  228. months: [],
  229. days: [],
  230. hours: [],
  231. minutes: [],
  232. seconds: [],
  233. year: 0,
  234. month: 0,
  235. day: 0,
  236. hour: 0,
  237. minute: 0,
  238. second: 0,
  239. startDate: "",
  240. endDate: "",
  241. valueArr: [],
  242. reset: false,
  243. provinces: provinces,
  244. citys: citys[0],
  245. areas: areas[0][0],
  246. province: 0,
  247. city: 0,
  248. area: 0,
  249. }
  250. },
  251. mounted() {
  252. this.init();
  253. },
  254. computed: {
  255. propsChange() {
  256. // 引用这几个变量,是为了监听其变化
  257. return `${this.mode}-${this.defaultTime}-${this.startYear}-${this.endYear}-${this.defaultRegion}-${this.areaCode}`;
  258. },
  259. regionChange() {
  260. // 引用这几个变量,是为了监听其变化
  261. return `${this.province}-${this.city}`;
  262. },
  263. yearAndMonth() {
  264. return `${this.year}-${this.month}`;
  265. },
  266. uZIndex() {
  267. // 如果用户有传递z-index值,优先使用
  268. return this.zIndex ? this.zIndex : this.$u.zIndex.popup;
  269. }
  270. },
  271. watch: {
  272. propsChange() {
  273. this.reset = true;
  274. setTimeout(() => this.init(), 10);
  275. },
  276. // 如果地区发生变化,为了让picker联动起来,必须重置this.citys和this.areas
  277. regionChange(val) {
  278. this.citys = citys[this.province];
  279. this.areas = areas[this.province][this.city];
  280. },
  281. // watch监听月份的变化,实时变更日的天数,因为不同月份,天数不一样
  282. // 一个月可能有30,31天,甚至闰年2月的29天,平年2月28天
  283. yearAndMonth(val) {
  284. if (this.params.year) this.setDays();
  285. },
  286. // 微信和QQ小程序由于一些奇怪的原因(故同时对所有平台均初始化一遍),需要重新初始化才能显示正确的值
  287. value(n) {
  288. if (n) {
  289. this.reset = true;
  290. setTimeout(() => this.init(), 10);
  291. }
  292. }
  293. },
  294. methods: {
  295. // 对单列和多列形式的判断是否有传入变量的情况
  296. getItemValue(item, mode) {
  297. // 目前(2020-05-25)uni-app对微信小程序编译有错误,导致v-if为false中的内容也执行,错误导致
  298. // 单列模式或者多列模式中的getItemValue同时被执行,故在这里再加一层判断
  299. if(this.mode == mode) {
  300. return typeof item == 'object' ? item[this.rangeKey] : item
  301. }
  302. },
  303. // 小于10前面补0,用于月份,日期,时分秒等
  304. formatNumber(num) {
  305. return +num < 10 ? '0' + num : String(num);
  306. },
  307. // 生成递进的数组
  308. generateArray: function(start, end) {
  309. end = end > start ? end : start;
  310. // 生成数组,获取其中的索引,并剪出来
  311. return [...Array(end + 1).keys()].slice(start);
  312. },
  313. getIndex: function(arr, val) {
  314. let index = arr.indexOf(val);
  315. // 如果index为-1(即找不到index值),~(-1)=-(-1)-1=0,导致条件不成立
  316. return ~index ? index : 0;
  317. },
  318. //日期时间处理
  319. initTimeValue() {
  320. // 格式化时间,在IE浏览器(uni不存在此情况),无法识别日期间的"-"间隔符号
  321. let fdate = this.defaultTime.replace(/\-/g, '/');
  322. fdate = fdate && fdate.indexOf("/") == -1 ? `2020/01/01 ${fdate}` : fdate
  323. let time = null;
  324. if (fdate)
  325. time = new Date(fdate);
  326. else
  327. time = new Date();
  328. // 获取年日月时分秒
  329. this.year = time.getFullYear()
  330. this.month = Number(time.getMonth()) + 1;
  331. this.day = time.getDate();
  332. this.hour = time.getHours();
  333. this.minute = time.getMinutes();
  334. this.second = time.getSeconds();
  335. },
  336. init() {
  337. this.valueArr = [];
  338. this.reset = false;
  339. if (this.mode == 'time') {
  340. this.initTimeValue();
  341. if (this.params.year) {
  342. this.valueArr.push(0);
  343. this.setYears();
  344. }
  345. if (this.params.month) {
  346. this.valueArr.push(0);
  347. this.setMonths();
  348. }
  349. if (this.params.day) {
  350. this.valueArr.push(0);
  351. this.setDays();
  352. }
  353. if (this.params.hour) {
  354. this.valueArr.push(0);
  355. this.setHours();
  356. }
  357. if (this.params.minute) {
  358. this.valueArr.push(0);
  359. this.setMinutes();
  360. }
  361. if (this.params.second) {
  362. this.valueArr.push(0);
  363. this.setSeconds();
  364. }
  365. } else if(this.mode == 'region') {
  366. if (this.params.province) {
  367. this.valueArr.push(0);
  368. this.setProvinces();
  369. }
  370. if (this.params.city) {
  371. this.valueArr.push(0);
  372. this.setCitys();
  373. }
  374. if (this.params.area) {
  375. this.valueArr.push(0);
  376. this.setAreas();
  377. }
  378. } else if(this.mode == 'selector') {
  379. this.valueArr = this.defaultSelector;
  380. } else if(this.mode == 'multiSelector') {
  381. this.valueArr = this.defaultSelector;
  382. this.multiSelectorValue = this.defaultSelector;
  383. }
  384. this.$forceUpdate();
  385. },
  386. // 设置picker的某一列值
  387. setYears() {
  388. // 获取年份集合
  389. this.years = this.generateArray(this.startYear, this.endYear);
  390. // 设置this.valueArr某一项的值,是为了让picker预选中某一个值
  391. this.valueArr.splice(this.valueArr.length - 1, 1, this.getIndex(this.years, this.year));
  392. },
  393. setMonths() {
  394. this.months = this.generateArray(1, 12);
  395. this.valueArr.splice(this.valueArr.length - 1, 1, this.getIndex(this.months, this.month));
  396. },
  397. setDays() {
  398. let totalDays = new Date(this.year, this.month, 0).getDate();
  399. this.days = this.generateArray(1, totalDays);
  400. let index = 0;
  401. // 这里不能使用类似setMonths()中的this.valueArr.splice(this.valueArr.length - 1, xxx)做法
  402. // 因为this.month和this.year变化时,会触发watch中的this.setDays(),导致this.valueArr.length计算有误
  403. if (this.params.year && this.params.month) index = 2;
  404. else if (this.params.month) index = 1;
  405. else if (this.params.year) index = 1;
  406. else index = 0;
  407. this.valueArr.splice(index, 1, this.getIndex(this.days, this.day));
  408. },
  409. setHours() {
  410. this.hours = this.generateArray(0, 23);
  411. this.valueArr.splice(this.valueArr.length - 1, 1, this.getIndex(this.hours, this.hour));
  412. },
  413. setMinutes() {
  414. this.minutes = this.generateArray(0, 59);
  415. this.valueArr.splice(this.valueArr.length - 1, 1, this.getIndex(this.minutes, this.minute));
  416. },
  417. setSeconds() {
  418. this.seconds = this.generateArray(0, 59);
  419. this.valueArr.splice(this.valueArr.length - 1, 1, this.getIndex(this.seconds, this.second));
  420. },
  421. setProvinces() {
  422. // 判断是否需要province参数
  423. if (!this.params.province) return;
  424. let tmp = '';
  425. let useCode = false;
  426. // 如果同时配置了defaultRegion和areaCode,优先使用areaCode参数
  427. if (this.areaCode.length) {
  428. tmp = this.areaCode[0];
  429. useCode = true;
  430. } else if (this.defaultRegion.length) tmp = this.defaultRegion[0];
  431. else tmp = 0;
  432. // 历遍省份数组匹配
  433. provinces.map((v, k) => {
  434. if (useCode ? v.value == tmp : v.label == tmp) {
  435. tmp = k;
  436. }
  437. })
  438. this.province = tmp;
  439. this.provinces = provinces;
  440. // 设置默认省份的值
  441. this.valueArr.splice(0, 1, this.province);
  442. },
  443. setCitys() {
  444. if (!this.params.city) return;
  445. let tmp = '';
  446. let useCode = false;
  447. if (this.areaCode.length) {
  448. tmp = this.areaCode[1];
  449. useCode = true;
  450. } else if (this.defaultRegion.length) tmp = this.defaultRegion[1];
  451. else tmp = 0;
  452. citys[this.province].map((v, k) => {
  453. if (useCode ? v.value == tmp : v.label == tmp) {
  454. tmp = k;
  455. }
  456. })
  457. this.city = tmp;
  458. this.citys = citys[this.province];
  459. this.valueArr.splice(1, 1, this.city);
  460. },
  461. setAreas() {
  462. if (!this.params.area) return;
  463. let tmp = '';
  464. let useCode = false;
  465. if (this.areaCode.length) {
  466. tmp = this.areaCode[2];
  467. useCode = true;
  468. } else if (this.defaultRegion.length) tmp = this.defaultRegion[2];
  469. else tmp = 0;
  470. areas[this.province][this.city].map((v, k) => {
  471. if (useCode ? v.value == tmp : v.label == tmp) {
  472. tmp = k;
  473. }
  474. })
  475. this.area = tmp;
  476. this.areas = areas[this.province][this.city];
  477. this.valueArr.splice(2, 1, this.area);
  478. },
  479. close() {
  480. this.$emit('input', false);
  481. },
  482. // 用户更改picker的列选项
  483. change(e) {
  484. this.valueArr = e.detail.value;
  485. let i = 0;
  486. if (this.mode == 'time') {
  487. // 这里使用i++,是因为this.valueArr数组的长度是不确定长度的,它根据this.params的值来配置长度
  488. // 进入if规则,i会加1,保证了能获取准确的值
  489. if (this.params.year) this.year = this.years[this.valueArr[i++]];
  490. if (this.params.month) this.month = this.months[this.valueArr[i++]];
  491. if (this.params.day) this.day = this.days[this.valueArr[i++]];
  492. if (this.params.hour) this.hour = this.hours[this.valueArr[i++]];
  493. if (this.params.minute) this.minute = this.minutes[this.valueArr[i++]];
  494. if (this.params.second) this.second = this.seconds[this.valueArr[i++]];
  495. } else if(this.mode == 'region') {
  496. if (this.params.province) this.province = this.valueArr[i++];
  497. if (this.params.city) this.city = this.valueArr[i++];
  498. if (this.params.area) this.area = this.valueArr[i++];
  499. } else if(this.mode == 'multiSelector') {
  500. let index = null;
  501. // 对比前后两个数组,寻找变更的是哪一列,如果某一个元素不同,即可判定该列发生了变化
  502. this.defaultSelector.map((val, idx) => {
  503. if(val != e.detail.value[idx]) index = idx;
  504. })
  505. // 为了让用户对多列变化时,对动态设置其他列的变更
  506. if(index != null) {
  507. this.$emit('columnchange', {
  508. column: index,
  509. index: e.detail.value[index]
  510. })
  511. }
  512. }
  513. },
  514. // 用户点击确定按钮
  515. getResult(event = null) {
  516. let result = {};
  517. // 只返回用户在this.params中配置了为true的字段
  518. if (this.mode == 'time') {
  519. if (this.params.year) result.year = this.formatNumber(this.year || 0);
  520. if (this.params.month) result.month = this.formatNumber(this.month || 0);
  521. if (this.params.day) result.day = this.formatNumber(this.day || 0);
  522. if (this.params.hour) result.hour = this.formatNumber(this.hour || 0);
  523. if (this.params.minute) result.minute = this.formatNumber(this.minute || 0);
  524. if (this.params.second) result.second = this.formatNumber(this.second || 0);
  525. } else if (this.mode == 'region') {
  526. if (this.params.province) result.province = provinces[this.province];
  527. if (this.params.city) result.city = citys[this.province][this.city];
  528. if (this.params.area) result.area = areas[this.province][this.city][this.area];
  529. } else if (this.mode == 'selector') {
  530. result = this.valueArr;
  531. } else if (this.mode == 'multiSelector') {
  532. result = this.valueArr;
  533. }
  534. if (event) this.$emit(event, result);
  535. this.close();
  536. }
  537. }
  538. }
  539. </script>
  540. <style lang="scss" scoped>
  541. .u-datetime-picker {
  542. position: relative;
  543. z-index: 999;
  544. }
  545. .u-picker-view {
  546. height: 100%;
  547. box-sizing: border-box;
  548. }
  549. .u-picker-header {
  550. width: 100%;
  551. height: 90rpx;
  552. padding: 0 40rpx;
  553. display: flex;
  554. justify-content: space-between;
  555. align-items: center;
  556. box-sizing: border-box;
  557. font-size: 32rpx;
  558. background: #fff;
  559. position: relative;
  560. }
  561. .u-picker-header::after {
  562. content: '';
  563. position: absolute;
  564. border-bottom: 1rpx solid #eaeef1;
  565. -webkit-transform: scaleY(0.5);
  566. transform: scaleY(0.5);
  567. bottom: 0;
  568. right: 0;
  569. left: 0;
  570. }
  571. .u-picker-body {
  572. width: 100%;
  573. height: 500rpx;
  574. overflow: hidden;
  575. background-color: #fff;
  576. }
  577. .u-column-item {
  578. display: flex;
  579. align-items: center;
  580. justify-content: center;
  581. font-size: 32rpx;
  582. color: $u-main-color;
  583. padding: 0 8rpx;
  584. }
  585. .u-text {
  586. font-size: 24rpx;
  587. padding-left: 8rpx;
  588. }
  589. .u-btn-picker {
  590. padding: 16rpx;
  591. box-sizing: border-box;
  592. text-align: center;
  593. text-decoration: none;
  594. }
  595. .u-opacity {
  596. opacity: 0.5;
  597. }
  598. .u-btn-picker--primary {
  599. color: $u-type-primary;
  600. }
  601. .u-btn-picker--tips {
  602. color: $u-tips-color;
  603. }
  604. </style>