@10yun/cv-mobile-ui 0.5.62 → 0.5.64
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/other/uCharts-uniapp/index.js +2 -0
- package/other/uCharts-uniapp/package.json +42 -0
- package/other/{qiun-data-charts/js_sdk → uCharts-uniapp}/u-charts/config-echarts.js +421 -421
- package/other/{qiun-data-charts → uCharts-uniapp/u-charts}/license.md +201 -201
- package/other/uCharts-uniapp/u-charts/package.json +19 -0
- package/other/{qiun-data-charts/readme.md → uCharts-uniapp/u-charts/readme-npm.md} +57 -63
- package/other/{qiun-data-charts/js_sdk → uCharts-uniapp}/u-charts/readme.md +4 -4
- package/other/{qiun-data-charts/js_sdk → uCharts-uniapp}/u-charts/u-charts.js +7661 -7661
- package/other/{qiun-data-charts/js_sdk → uCharts-uniapp}/u-charts/u-charts.min.js +1 -1
- package/package.json +1 -1
- package/plugins/uni-extend.js +10 -10
- package/ui-cv/components/cv-filter-hm/cv-filter-hm.vue +134 -167
- package/ui-fireui/components/u-action-sheet/u-action-sheet.vue +46 -16
- package/ui-fireui/components/u-alert/u-alert.vue +11 -5
- package/ui-fireui/components/u-badge/u-badge.vue +52 -69
- package/ui-fireui/components/u-bottom-navigation/u-bottom-navigation.vue +28 -20
- package/ui-fireui/components/u-bottom-popup/u-bottom-popup.vue +40 -11
- package/ui-fireui/components/u-bubble-popup/u-bubble-popup.vue +3 -6
- package/ui-fireui/components/u-button/u-button.vue +262 -259
- package/ui-fireui/components/u-calendar/u-calendar.vue +227 -44
- package/ui-fireui/components/u-calendar/u-calendar2.js +562 -0
- package/ui-fireui/components/u-card/u-card.vue +50 -32
- package/ui-fireui/components/u-cascade-selection/u-cascade-selection.vue +197 -74
- package/ui-fireui/components/u-circular-progress/u-circular-progress.vue +324 -0
- package/ui-fireui/components/u-clipboard2/tui-clipboard.js +53 -0
- package/ui-fireui/components/u-collapse/u-collapse.vue +8 -8
- package/ui-fireui/components/u-config/index.js +129 -0
- package/ui-fireui/components/u-count-down/u-count-down.vue +124 -19
- package/ui-fireui/components/u-datetime/u-datetime.vue +416 -176
- package/ui-fireui/components/u-divider/u-divider.vue +3 -3
- package/ui-fireui/components/u-drawer/u-drawer.vue +55 -12
- package/ui-fireui/components/u-dropdown-list/u-dropdown-list.vue +103 -0
- package/ui-fireui/components/u-fab/u-fab.vue +344 -0
- package/ui-fireui/components/u-footer/u-footer.vue +148 -0
- package/ui-fireui/components/u-grid/u-grid.vue +2 -8
- package/ui-fireui/components/u-grid-item/u-grid-item.vue +22 -5
- package/ui-fireui/components/u-icon/u-icon-new.js +190 -0
- package/ui-fireui/components/u-icon/u-icon-new.vue +100 -0
- package/ui-fireui/components/u-image-cropper/u-image-cropper.vue +1144 -0
- package/ui-fireui/components/u-image-group/u-image-group.vue +164 -0
- package/ui-fireui/components/u-keyboard/u-keyboard.vue +3 -2
- package/ui-fireui/components/u-keyboard-input/u-keyboard-input.vue +1 -1
- package/ui-fireui/components/u-list-cell/u-list-cell.vue +82 -72
- package/ui-fireui/components/u-list-view/u-list-view.vue +33 -8
- package/ui-fireui/components/u-loading/u-loading.vue +107 -27
- package/ui-fireui/components/u-loadmore/u-loadmore.vue +21 -3
- package/ui-fireui/components/u-modal/u-modal.vue +140 -176
- package/ui-fireui/components/u-navigation-bar/u-navigation-bar.vue +121 -28
- package/ui-fireui/components/u-no-data/u-no-data.vue +58 -20
- package/ui-fireui/components/u-nomore/u-nomore.vue +5 -4
- package/ui-fireui/components/u-numberbox/u-numberbox.vue +88 -45
- package/ui-fireui/components/u-picture-cropper/u-picture-cropper.vue +94 -36
- package/ui-fireui/components/u-picture-cropper/u-picture-cropper.wxs +27 -17
- package/ui-fireui/components/u-rate/u-rate.vue +197 -0
- package/ui-fireui/components/u-round-progress/u-round-progress.vue +62 -42
- package/ui-fireui/components/u-scroll-top/u-scroll-top.vue +4 -3
- package/ui-fireui/components/u-section/u-section.vue +149 -0
- package/ui-fireui/components/u-skeleton/u-skeleton.vue +37 -6
- package/ui-fireui/components/u-steps/u-steps.vue +110 -27
- package/ui-fireui/components/u-sticky/u-sticky.vue +35 -21
- package/ui-fireui/components/u-sticky-wxs/u-sticky-wxs.vue +7 -4
- package/ui-fireui/components/u-sticky-wxs/u-sticky.wxs +39 -36
- package/ui-fireui/components/u-swipe-action/u-swipe-action.vue +76 -19
- package/ui-fireui/components/u-tabbar/u-tabbar.vue +71 -38
- package/ui-fireui/components/u-tabs/u-tabs.vue +133 -51
- package/ui-fireui/components/u-tag/u-tag.vue +109 -226
- package/ui-fireui/components/u-time-axis/u-time-axis.vue +1 -1
- package/ui-fireui/components/u-timeaxis-item/u-timeaxis-item.vue +1 -1
- package/ui-fireui/components/u-tips/u-tips.vue +35 -15
- package/ui-fireui/components/u-toast/u-toast.vue +9 -5
- package/ui-fireui/components/u-top-dropdown/u-top-dropdown.vue +8 -6
- package/ui-fireui/components/u-upload/u-upload-old.vue +462 -0
- package/ui-fireui/components/u-upload/u-upload.vue +648 -446
- package/ui-fireui/components/u-white-space/u-white-space.vue +68 -0
- package/ui-fireui/components/u-wing-blank/u-wing-blank.vue +100 -0
- package/uview-plus/libs/ctocode/index.js +1 -0
- package/uview-plus/libs/ctocode/richText.js +0 -1
- package/other/qiun-data-charts/changelog.md +0 -320
- package/other/qiun-data-charts/components/qiun-data-charts/qiun-data-charts.vue +0 -1618
- package/other/qiun-data-charts/components/qiun-error/qiun-error.vue +0 -46
- package/other/qiun-data-charts/components/qiun-loading/loading1.vue +0 -162
- package/other/qiun-data-charts/components/qiun-loading/loading2.vue +0 -170
- package/other/qiun-data-charts/components/qiun-loading/loading3.vue +0 -173
- package/other/qiun-data-charts/components/qiun-loading/loading4.vue +0 -222
- package/other/qiun-data-charts/components/qiun-loading/loading5.vue +0 -229
- package/other/qiun-data-charts/components/qiun-loading/qiun-loading.vue +0 -36
- package/other/qiun-data-charts/js_sdk2/app-echarts.min.js +0 -23
- package/other/qiun-data-charts/js_sdk2/h5-echarts.min.js +0 -23
- package/other/qiun-data-charts/package.json +0 -81
- package/other/qiun-data-charts/static/app-plus/echarts.min.js +0 -23
- package/other/qiun-data-charts/static/h5/echarts.min.js +0 -23
- package/other/qiun-data-charts_2.5.0-20230101_example/App.vue +0 -20
- package/other/qiun-data-charts_2.5.0-20230101_example/common/uni-icons.css +0 -542
- package/other/qiun-data-charts_2.5.0-20230101_example/common/uni.css +0 -246
- package/other/qiun-data-charts_2.5.0-20230101_example/components/qiun-title-bar/qiun-title-bar.vue +0 -51
- package/other/qiun-data-charts_2.5.0-20230101_example/components/test-charts/test-charts.vue +0 -48
- package/other/qiun-data-charts_2.5.0-20230101_example/main.js +0 -13
- package/other/qiun-data-charts_2.5.0-20230101_example/manifest.json +0 -75
- package/other/qiun-data-charts_2.5.0-20230101_example/mockdata/demodata.json +0 -448
- package/other/qiun-data-charts_2.5.0-20230101_example/mockdata/mapdata.json +0 -1
- package/other/qiun-data-charts_2.5.0-20230101_example/pages/canvas/canvas.vue +0 -142
- package/other/qiun-data-charts_2.5.0-20230101_example/pages/echarts/echarts.vue +0 -228
- package/other/qiun-data-charts_2.5.0-20230101_example/pages/format-e/format-e.vue +0 -113
- package/other/qiun-data-charts_2.5.0-20230101_example/pages/format-u/format-u.vue +0 -110
- package/other/qiun-data-charts_2.5.0-20230101_example/pages/index/index.vue +0 -58
- package/other/qiun-data-charts_2.5.0-20230101_example/pages/layout/layout.vue +0 -174
- package/other/qiun-data-charts_2.5.0-20230101_example/pages/other/other.vue +0 -233
- package/other/qiun-data-charts_2.5.0-20230101_example/pages/tab/tab.vue +0 -115
- package/other/qiun-data-charts_2.5.0-20230101_example/pages/ucharts/ucharts.vue +0 -339
- package/other/qiun-data-charts_2.5.0-20230101_example/pages/unicloud/unicloud.vue +0 -117
- package/other/qiun-data-charts_2.5.0-20230101_example/pages/updata/updata.vue +0 -212
- package/other/qiun-data-charts_2.5.0-20230101_example/pages.json +0 -79
- package/other/qiun-data-charts_2.5.0-20230101_example/static/logo.png +0 -0
- package/other/qiun-data-charts_2.5.0-20230101_example/uni.scss +0 -76
- package/other/qiun-data-charts_2.5.0-20230101_example/uniCloud-aliyun/database/db_init.json +0 -455
- package/other/qiun-data-charts_2.5.0-20230101_example/uniCloud-aliyun/database/qiun-charts-demo.schema.json +0 -76
- package/other/u-charts/config.js +0 -503
- package/other/u-charts/data.json +0 -1143
- package/other/u-charts/demodata.json +0 -267
- package/other/u-charts/mapdata.json +0 -41
- package/other/u-charts/u-charts.js +0 -5687
- package/other/u-charts/u-charts.min.js +0 -1
- package/other/u-charts/u-charts.vue +0 -466
- /package/other/{qiun-data-charts/js_sdk → uCharts-uniapp}/u-charts/config-ucharts.js +0 -0
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<view class="cv-filter-hm" :class="{ setDropdownBottom: maskVisibility }" @touchmove.stop.prevent="discard" @tap.stop="discard">
|
|
3
|
-
<view class="nav
|
|
3
|
+
<view class="filter-nav-box">
|
|
4
4
|
<template v-for="(item, index) in menu" :key="index">
|
|
5
|
-
<view class="first-
|
|
5
|
+
<view class="first-nav-item" :class="{ on: showPage == index }" @tap="togglePage(index)">
|
|
6
6
|
<text class="name" :style="{ color: color }">{{ item.name }}</text>
|
|
7
7
|
<!-- <cv-icons type="arrowUp" size="12" class="arrows" v-if="statusList[index].isActive" />
|
|
8
8
|
<cv-icons type="arrowDown" size="12" class="arrows" v-if="!statusList[index].isActive" /> -->
|
|
@@ -10,9 +10,9 @@
|
|
|
10
10
|
</view>
|
|
11
11
|
</template>
|
|
12
12
|
</view>
|
|
13
|
-
<view class="mask" :class="{ show: isShowMask, hide: maskVisibility != true }" @tap="togglePage(showPage)"></view>
|
|
13
|
+
<view class="filter-mask-box" :class="{ show: isShowMask, hide: maskVisibility != true }" @tap="togglePage(showPage)"></view>
|
|
14
14
|
<template v-for="(page, page_index) in subData" :key="page_index">
|
|
15
|
-
<view class="
|
|
15
|
+
<view class="filter-main-box" :class="{ show: showPage == page_index, hide: pageState[page_index] != true }">
|
|
16
16
|
<template v-if="page.type == 'hierarchy' && page.submenu.length > 0">
|
|
17
17
|
<scroll-view
|
|
18
18
|
class="sub-menu-list"
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
>
|
|
31
31
|
<view class="menu-name">
|
|
32
32
|
<text>{{ sub.name }}</text>
|
|
33
|
-
<
|
|
33
|
+
<cv-icons type="actionCheck" size="12" />
|
|
34
34
|
</view>
|
|
35
35
|
</view>
|
|
36
36
|
</template>
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
@tap="selectHierarchyMenu(page_index, activeMenuArr[page_index][0], second_index, null)"
|
|
54
54
|
>
|
|
55
55
|
<text>{{ sub_second.name }}</text>
|
|
56
|
-
<
|
|
56
|
+
<cv-icons type="actionCheck" size="12" />
|
|
57
57
|
</view>
|
|
58
58
|
<view
|
|
59
59
|
class="more-sub-menu"
|
|
@@ -75,47 +75,35 @@
|
|
|
75
75
|
</scroll-view>
|
|
76
76
|
</template>
|
|
77
77
|
</template>
|
|
78
|
-
<template v-if="page.type == '
|
|
78
|
+
<template v-if="page.type == 'options'">
|
|
79
79
|
<view class="filter">
|
|
80
|
-
<scroll-view class="
|
|
81
|
-
<view class="box" v-for="(
|
|
82
|
-
<view class="title">{{
|
|
83
|
-
<view class="labels">
|
|
80
|
+
<scroll-view class="filter-group-wrap" :scroll-y="true">
|
|
81
|
+
<view class="filter-group-box" v-for="(gitem, gindex) in page.submenu" :key="gindex">
|
|
82
|
+
<view class="filter-group-title">{{ gitem.name }}</view>
|
|
83
|
+
<view class="filter-group-labels" v-if="gitem.type == 'filter'">
|
|
84
84
|
<view
|
|
85
|
-
v-for="(
|
|
86
|
-
:key="
|
|
87
|
-
@tap="selectFilterLabel(page_index,
|
|
88
|
-
:class="{ on:
|
|
85
|
+
v-for="(labelItem, labelIdx) in gitem.options"
|
|
86
|
+
:key="labelIdx"
|
|
87
|
+
@tap="selectFilterLabel(page_index, gindex, labelIdx)"
|
|
88
|
+
:class="{ on: labelItem.selected }"
|
|
89
89
|
>
|
|
90
|
-
{{
|
|
90
|
+
{{ labelItem.name }}
|
|
91
91
|
</view>
|
|
92
92
|
</view>
|
|
93
|
-
|
|
94
|
-
</scroll-view>
|
|
95
|
-
<view class="btn-box">
|
|
96
|
-
<view class="pub-btn_reset reset" @tap="resetFilterData(page_index)">重置</view>
|
|
97
|
-
<view class="pub-btn_submit submit" @tap="setFilterData(page_index)">确定</view>
|
|
98
|
-
</view>
|
|
99
|
-
</view>
|
|
100
|
-
</template>
|
|
101
|
-
<template v-if="page.type == 'radio'">
|
|
102
|
-
<view class="filter">
|
|
103
|
-
<scroll-view class="menu-box" :scroll-y="true">
|
|
104
|
-
<view class="box" v-for="(box, box_index) in page.submenu" :key="box_index">
|
|
105
|
-
<view class="title">{{ box.name }}</view>
|
|
106
|
-
<view class="labels">
|
|
93
|
+
<view class="filter-group-labels" v-if="gitem.type == 'radio'">
|
|
107
94
|
<view
|
|
108
|
-
v-for="(
|
|
109
|
-
:key="
|
|
110
|
-
@tap="selectRadioLabel(page_index,
|
|
111
|
-
:class="{ on:
|
|
95
|
+
v-for="(labelItem, labelIdx) in gitem.options"
|
|
96
|
+
:key="labelIdx"
|
|
97
|
+
@tap="selectRadioLabel(page_index, gindex, labelIdx)"
|
|
98
|
+
:class="{ on: labelItem.selected }"
|
|
112
99
|
>
|
|
113
|
-
{{
|
|
100
|
+
{{ labelItem.name }}
|
|
114
101
|
</view>
|
|
115
102
|
</view>
|
|
116
103
|
</view>
|
|
104
|
+
<view style="height: 60px"></view>
|
|
117
105
|
</scroll-view>
|
|
118
|
-
<view class="
|
|
106
|
+
<view class="filter-btns-box">
|
|
119
107
|
<view class="reset" @tap="resetFilterData(page_index)">重置</view>
|
|
120
108
|
<view class="submit" @tap="setFilterData(page_index)">确定</view>
|
|
121
109
|
</view>
|
|
@@ -300,6 +288,11 @@ export default {
|
|
|
300
288
|
this.activeMenuArr[page_index] = JSON.parse(JSON.stringify(tmpArr));
|
|
301
289
|
this.$forceUpdate();
|
|
302
290
|
},
|
|
291
|
+
// selectGroupLabel(type,page_index, box_index, label_index){
|
|
292
|
+
// if(type=='filter'){
|
|
293
|
+
|
|
294
|
+
// }
|
|
295
|
+
// },
|
|
303
296
|
//选中筛选类label-UI状态
|
|
304
297
|
selectFilterLabel(page_index, box_index, label_index) {
|
|
305
298
|
let find_index = this.activeMenuArr[page_index][box_index].indexOf(label_index);
|
|
@@ -556,77 +549,71 @@ export default {
|
|
|
556
549
|
</script>
|
|
557
550
|
<style>
|
|
558
551
|
.cv-filter-hm {
|
|
559
|
-
flex-shrink: 0;
|
|
560
552
|
width: 100%;
|
|
561
|
-
position: inherit;
|
|
562
|
-
z-index: 997;
|
|
563
553
|
flex-wrap: nowrap;
|
|
564
554
|
display: flex;
|
|
565
555
|
flex-direction: row;
|
|
566
|
-
|
|
567
|
-
left: 0;
|
|
556
|
+
flex-direction: column;
|
|
568
557
|
overflow-y: hidden;
|
|
569
558
|
}
|
|
570
|
-
|
|
559
|
+
|
|
560
|
+
.filter-mask-box {
|
|
561
|
+
z-index: 998;
|
|
562
|
+
position: fixed;
|
|
563
|
+
top: 0;
|
|
564
|
+
left: 0;
|
|
565
|
+
right: 0;
|
|
571
566
|
bottom: 0;
|
|
567
|
+
background-color: rgba(0, 0, 0, 0);
|
|
568
|
+
transition: background-color 0.15s linear;
|
|
572
569
|
}
|
|
573
|
-
.
|
|
574
|
-
|
|
575
|
-
|
|
570
|
+
.filter-mask-box.show {
|
|
571
|
+
background-color: rgba(0, 0, 0, 0.5);
|
|
572
|
+
}
|
|
573
|
+
.filter-mask-box.hide {
|
|
574
|
+
display: none;
|
|
575
|
+
}
|
|
576
|
+
|
|
577
|
+
.cv-filter-hm.setDropdownBottom {
|
|
578
|
+
bottom: 0;
|
|
576
579
|
}
|
|
577
580
|
.region {
|
|
578
581
|
flex: 1;
|
|
579
582
|
height: 44px;
|
|
580
583
|
}
|
|
581
584
|
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
font-size: 30rpx;
|
|
585
|
+
/**
|
|
586
|
+
* 导航
|
|
587
|
+
*/
|
|
588
|
+
.filter-nav-box {
|
|
587
589
|
display: flex;
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
color: #fff;
|
|
591
|
-
background-image: linear-gradient(to right, #ffab00, #ff6400);
|
|
592
|
-
}
|
|
593
|
-
.pub-btn_reset {
|
|
594
|
-
width: 320rpx;
|
|
595
|
-
height: 80rpx;
|
|
596
|
-
border-radius: 14rpx;
|
|
597
|
-
font-size: 30rpx;
|
|
598
|
-
display: flex;
|
|
599
|
-
justify-content: center;
|
|
600
|
-
align-items: center;
|
|
601
|
-
border: solid 2rpx #ff6400;
|
|
602
|
-
color: #ff6400;
|
|
603
|
-
background: #fff;
|
|
604
|
-
}
|
|
605
|
-
|
|
606
|
-
.nav {
|
|
590
|
+
flex-direction: row;
|
|
591
|
+
flex-wrap: nowrap;
|
|
607
592
|
width: 100%;
|
|
608
593
|
height: 44px;
|
|
609
594
|
border-bottom: solid 1rpx #eee;
|
|
610
|
-
z-index:
|
|
595
|
+
z-index: 999;
|
|
611
596
|
background-color: #ffffff;
|
|
612
|
-
flex-direction: row;
|
|
613
597
|
}
|
|
614
|
-
.
|
|
615
|
-
|
|
616
|
-
font-size: 13px;
|
|
617
|
-
color: #757575;
|
|
598
|
+
.first-nav-item {
|
|
599
|
+
display: flex;
|
|
618
600
|
flex-direction: row;
|
|
601
|
+
flex-wrap: nowrap;
|
|
619
602
|
align-items: center;
|
|
620
603
|
justify-content: center;
|
|
604
|
+
width: 100%;
|
|
605
|
+
font-size: 13px;
|
|
606
|
+
color: #757575;
|
|
607
|
+
|
|
621
608
|
transition: color 0.2s linear;
|
|
622
609
|
}
|
|
623
|
-
.
|
|
610
|
+
.first-nav-item.on {
|
|
624
611
|
color: #409eff;
|
|
625
612
|
}
|
|
626
|
-
.
|
|
613
|
+
.first-nav-item.on .cv-icon {
|
|
627
614
|
color: #409eff;
|
|
628
615
|
}
|
|
629
|
-
.
|
|
616
|
+
.first-nav-item .name {
|
|
630
617
|
height: 100%;
|
|
631
618
|
font-size: 12px;
|
|
632
619
|
height: 20px;
|
|
@@ -636,54 +623,63 @@ export default {
|
|
|
636
623
|
overflow: hidden;
|
|
637
624
|
margin-right: 5px;
|
|
638
625
|
}
|
|
639
|
-
.nav .
|
|
640
|
-
|
|
641
|
-
height: 13px;
|
|
626
|
+
.first-nav-item .cv-icon {
|
|
627
|
+
display: flex;
|
|
642
628
|
align-items: center;
|
|
643
629
|
justify-content: center;
|
|
630
|
+
width: 13px;
|
|
631
|
+
height: 13px;
|
|
644
632
|
transition:
|
|
645
633
|
transform 0.2s linear,
|
|
646
634
|
color 0.2s linear;
|
|
647
635
|
}
|
|
648
|
-
|
|
636
|
+
/**
|
|
637
|
+
* 主要
|
|
638
|
+
*/
|
|
639
|
+
.filter-main-box {
|
|
640
|
+
display: flex;
|
|
641
|
+
flex-wrap: nowrap;
|
|
649
642
|
width: 100%;
|
|
650
643
|
position: absolute;
|
|
651
644
|
left: 0;
|
|
652
645
|
transform: translate3d(0, -100%, 0);
|
|
653
646
|
max-height: 345px;
|
|
654
647
|
background-color: #ffffff;
|
|
655
|
-
z-index:
|
|
648
|
+
z-index: 999;
|
|
656
649
|
box-shadow: 0 5px 5px rgba(0, 0, 0, 0.1);
|
|
657
650
|
overflow: hidden;
|
|
658
651
|
flex-direction: row;
|
|
659
652
|
transition: transform 0.15s linear;
|
|
660
653
|
}
|
|
661
|
-
.
|
|
654
|
+
.filter-main-box.hide {
|
|
662
655
|
display: none;
|
|
663
656
|
}
|
|
664
657
|
|
|
665
|
-
.
|
|
658
|
+
.filter-main-box.show {
|
|
666
659
|
transform: translate3d(0, calc(44px + 1rpx), 0);
|
|
667
660
|
}
|
|
668
661
|
.sub-menu-list {
|
|
662
|
+
display: flex;
|
|
663
|
+
flex-direction: column;
|
|
669
664
|
width: 100%;
|
|
670
665
|
height: 345px;
|
|
671
|
-
flex-direction: column;
|
|
672
666
|
}
|
|
673
667
|
.sub-menu-list .sub-menu {
|
|
668
|
+
display: flex;
|
|
669
|
+
flex-direction: column;
|
|
674
670
|
min-height: 44px;
|
|
675
671
|
font-size: 13px;
|
|
676
|
-
flex-direction: column;
|
|
677
672
|
padding-right: 15px;
|
|
678
673
|
}
|
|
679
674
|
.sub-menu-list .sub-menu > .menu-name {
|
|
680
|
-
|
|
681
|
-
height: 44px;
|
|
675
|
+
display: flex;
|
|
682
676
|
flex-direction: row;
|
|
683
677
|
align-items: center;
|
|
684
678
|
justify-content: space-between;
|
|
679
|
+
font-size: 12px;
|
|
680
|
+
height: 44px;
|
|
685
681
|
}
|
|
686
|
-
.sub-menu-list .sub-menu > .menu-name > .
|
|
682
|
+
.sub-menu-list .sub-menu > .menu-name > .cv-icons {
|
|
687
683
|
display: none;
|
|
688
684
|
font-size: 18px;
|
|
689
685
|
color: #409eff;
|
|
@@ -714,7 +710,7 @@ export default {
|
|
|
714
710
|
}
|
|
715
711
|
.sub-menu-list.alone .sub-menu.on > .menu-name {
|
|
716
712
|
}
|
|
717
|
-
.sub-menu-list.alone .sub-menu.on > .menu-name > .
|
|
713
|
+
.sub-menu-list.alone .sub-menu.on > .menu-name > .cv-icons {
|
|
718
714
|
display: block;
|
|
719
715
|
}
|
|
720
716
|
.sub-menu-list.not-first {
|
|
@@ -728,7 +724,7 @@ export default {
|
|
|
728
724
|
.sub-menu-list.not-first .sub-menu > .menu-name {
|
|
729
725
|
height: calc(44px - 1rpx);
|
|
730
726
|
}
|
|
731
|
-
.sub-menu-list.not-first .sub-menu > .menu-name > .
|
|
727
|
+
.sub-menu-list.not-first .sub-menu > .menu-name > .cv-icons {
|
|
732
728
|
display: none;
|
|
733
729
|
font-size: 18px;
|
|
734
730
|
color: #409eff;
|
|
@@ -738,10 +734,11 @@ export default {
|
|
|
738
734
|
}
|
|
739
735
|
.sub-menu-list.not-first .sub-menu.on > .menu-name {
|
|
740
736
|
}
|
|
741
|
-
.sub-menu-list.not-first .sub-menu.on > .menu-name > .
|
|
737
|
+
.sub-menu-list.not-first .sub-menu.on > .menu-name > .cv-icons {
|
|
742
738
|
display: block;
|
|
743
739
|
}
|
|
744
740
|
.sub-menu-list.not-first .sub-menu .more-sub-menu {
|
|
741
|
+
display: flex;
|
|
745
742
|
flex-direction: row;
|
|
746
743
|
flex-wrap: wrap;
|
|
747
744
|
padding-bottom: 9px;
|
|
@@ -767,45 +764,54 @@ export default {
|
|
|
767
764
|
border-color: #f6c8ac;
|
|
768
765
|
color: #409eff;
|
|
769
766
|
}
|
|
770
|
-
.sub-menu-list.not-first .sub-menu .more-sub-menu > text .
|
|
767
|
+
.sub-menu-list.not-first .sub-menu .more-sub-menu > text .cv-icons {
|
|
771
768
|
color: #9b9b9b;
|
|
772
769
|
}
|
|
773
770
|
|
|
774
771
|
.filter {
|
|
775
|
-
width: 100%;
|
|
776
|
-
height: 100%;
|
|
777
|
-
max-height: 345px;
|
|
778
772
|
display: flex;
|
|
773
|
+
flex-wrap: nowrap;
|
|
779
774
|
flex-direction: column;
|
|
780
775
|
justify-content: space-between;
|
|
781
776
|
align-items: center;
|
|
782
|
-
|
|
783
|
-
.filter .menu-box {
|
|
784
|
-
width: 349px;
|
|
777
|
+
width: 100%;
|
|
785
778
|
height: 100%;
|
|
786
|
-
max-height:
|
|
779
|
+
max-height: 80%;
|
|
780
|
+
}
|
|
781
|
+
.filter-group-wrap {
|
|
782
|
+
/* max-height: calc(345px - 75px);
|
|
787
783
|
flex-shrink: 1;
|
|
784
|
+
height: calc(100% - 75px); */
|
|
785
|
+
height: 100%;
|
|
786
|
+
padding: 0 15px;
|
|
788
787
|
}
|
|
789
|
-
.filter
|
|
788
|
+
.filter-group-box {
|
|
789
|
+
display: flex;
|
|
790
|
+
flex-wrap: nowrap;
|
|
791
|
+
flex-direction: column;
|
|
790
792
|
width: 100%;
|
|
791
793
|
margin-top: 16px;
|
|
792
|
-
flex-direction: column;
|
|
793
794
|
}
|
|
794
|
-
.filter
|
|
795
|
+
.filter-group-title {
|
|
795
796
|
width: 100%;
|
|
796
797
|
font-size: 12px;
|
|
797
798
|
color: #888;
|
|
798
799
|
}
|
|
799
|
-
.filter
|
|
800
|
-
|
|
800
|
+
.filter-group-labels {
|
|
801
|
+
display: flex;
|
|
801
802
|
flex-wrap: wrap;
|
|
803
|
+
flex-direction: row;
|
|
802
804
|
}
|
|
803
|
-
.filter
|
|
805
|
+
.filter-group-labels .on {
|
|
804
806
|
border-color: #409eff;
|
|
805
807
|
background-color: #409eff;
|
|
806
808
|
color: #fff;
|
|
807
809
|
}
|
|
808
|
-
.filter
|
|
810
|
+
.filter-group-labels > view {
|
|
811
|
+
display: flex;
|
|
812
|
+
flex-direction: row;
|
|
813
|
+
justify-content: center;
|
|
814
|
+
align-items: center;
|
|
809
815
|
width: 148rpx;
|
|
810
816
|
height: 30px;
|
|
811
817
|
border: solid 1rpx #adadad;
|
|
@@ -814,82 +820,43 @@ export default {
|
|
|
814
820
|
margin-right: 12px;
|
|
815
821
|
margin-top: 8px;
|
|
816
822
|
font-size: 12px;
|
|
817
|
-
flex-direction: row;
|
|
818
|
-
justify-content: center;
|
|
819
|
-
align-items: center;
|
|
820
823
|
}
|
|
821
|
-
.filter
|
|
824
|
+
.filter-group-labels > view:nth-child(4n) {
|
|
822
825
|
margin-right: 0;
|
|
823
826
|
}
|
|
824
|
-
|
|
827
|
+
/** 按钮 */
|
|
828
|
+
.filter-btns-box {
|
|
829
|
+
display: flex;
|
|
830
|
+
flex-direction: row;
|
|
831
|
+
flex-wrap: nowrap;
|
|
825
832
|
flex-shrink: 0;
|
|
826
|
-
width: 349px;
|
|
827
|
-
height: 75px;
|
|
828
|
-
flex-direction: row !important;
|
|
829
833
|
align-items: center;
|
|
830
834
|
justify-content: space-between;
|
|
835
|
+
height: 60px;
|
|
836
|
+
width: 100%;
|
|
837
|
+
padding: 0 15px;
|
|
838
|
+
border-top: 1px solid #dedede;
|
|
831
839
|
}
|
|
832
|
-
.filter
|
|
840
|
+
.filter-btns-box > view {
|
|
841
|
+
display: flex;
|
|
842
|
+
flex-wrap: nowrap;
|
|
843
|
+
align-items: center;
|
|
844
|
+
justify-content: center;
|
|
845
|
+
flex: 1;
|
|
833
846
|
font-size: 12px;
|
|
834
847
|
padding: 5px 10px;
|
|
835
848
|
margin: 0px 5px;
|
|
836
|
-
border-radius: 3px;
|
|
837
|
-
width: 320rpx;
|
|
838
849
|
height: 40px;
|
|
839
850
|
border-radius: 40px;
|
|
840
|
-
border: solid 1rpx #409eff;
|
|
841
|
-
align-items: center;
|
|
842
|
-
justify-content: center;
|
|
843
851
|
}
|
|
844
|
-
.filter
|
|
845
|
-
border: solid 2rpx #
|
|
852
|
+
.filter-btns-box .reset {
|
|
853
|
+
border: solid 2rpx #ff6400;
|
|
846
854
|
color: #ff6400;
|
|
847
|
-
|
|
855
|
+
background: #fff;
|
|
848
856
|
}
|
|
849
|
-
.filter
|
|
857
|
+
.filter-btns-box .submit {
|
|
850
858
|
color: #fff;
|
|
851
859
|
background-color: #409eff;
|
|
852
860
|
background-image: linear-gradient(to right, #ffab00, #ff6400);
|
|
853
861
|
}
|
|
854
|
-
|
|
855
|
-
.mask {
|
|
856
|
-
z-index: 10;
|
|
857
|
-
position: fixed;
|
|
858
|
-
top: 0;
|
|
859
|
-
left: 0;
|
|
860
|
-
right: 0;
|
|
861
|
-
bottom: 0;
|
|
862
|
-
background-color: rgba(0, 0, 0, 0);
|
|
863
|
-
transition: background-color 0.15s linear;
|
|
864
|
-
}
|
|
865
|
-
.mask.show {
|
|
866
|
-
background-color: rgba(0, 0, 0, 0.5);
|
|
867
|
-
}
|
|
868
|
-
.nav.z-index {
|
|
869
|
-
z-index: 0;
|
|
870
|
-
}
|
|
871
|
-
.mask.hide {
|
|
872
|
-
display: none;
|
|
873
|
-
}
|
|
874
|
-
/* 字体图标
|
|
875
|
-
@font-face {
|
|
876
|
-
font-family: "HM-FD-font";
|
|
877
|
-
src: url('data:application/x-font-woff2;charset=utf-8;base64,d09GMgABAAAAAALAAAsAAAAABpQAAAJzAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHEIGVgCDBgp4gQIBNgIkAwwLCAAEIAWEbQc5G8sFERWMIbIfCbbzqA4hp7InSBibVsYGb4J42o82b3e/nJlHMw/NHbGOlwKJRCRpwzPtpAECCOZubdqxjYpQLMlVg+70/08edrgQOtx2ukpVyApZn+dyehPoQObHo3O85rYx9vOjXoBxQIHugW2yIkqIW2QXcScu4jwE8CSWbKSmrqUHFwOaJoCsLM5P4haSGIxRcRHshrUGucLCVcfqI3AZfV/+USguKCwNmtsxVztDxU/n55C+3W0Z4QQpEOTNFqCBbMCAjDUWB9CIwWk87aa70cYgqLkyd3dEmm+18R8eKATEBrV7A5CulBT8dKiWOYZk412XNcDdKSEKSGODnyKIDl+dmVt9/Dx4pu/xyeutkMlHISGPTsPCnoTNP9nOT6wTtDdlO6dPr47efvj942lkYuQzrhMKEjq9N6y98P3340gmlJ/RStUD6F31CAEEPtUW94/7rf+7XgaAz57X0ZHXAGsFFwVgw38yALuMb0IBbVyNamFYEw4oKMDTj3AHRQP5Pt4dci9VwSVkRNQh5r7CLskZadhsWHhRDBsXczk8ZYk3ewnCxmQeQKa3BOHvA8XXO2j+vqRhf7CE+sPmn4anvoL29JLa4qqaUQkmoK+QG2osCckq7txi2leK86aIPyJ3eQZ8xytXYmyQ51jQndJAxIJlqiGSLsOqImiZCjTiZCJt6Lq26U2OoXqwUo0hRaAE0K5AziANy/uLVeXzWyjVqyjcoeupjxDr5MMDn8MDkLG9Aenu5ZrOSSoghAUsRmogkkahSoWAtnlUARnCkY3It0Iu7mWhdmd9Z/19BwBP6GidEi0G56opckXTGZVSPxgAAAA=');
|
|
878
|
-
}
|
|
879
|
-
.iconfont {
|
|
880
|
-
font-family: "HM-FD-font" !important;
|
|
881
|
-
font-size: 13px;
|
|
882
|
-
font-style: normal;
|
|
883
|
-
color: #757575;
|
|
884
|
-
&.triangle {
|
|
885
|
-
&:before {
|
|
886
|
-
content: "\e65a";
|
|
887
|
-
}
|
|
888
|
-
}
|
|
889
|
-
&.selected {
|
|
890
|
-
&:before {
|
|
891
|
-
content: "\e607";
|
|
892
|
-
}
|
|
893
|
-
}
|
|
894
|
-
}*/
|
|
895
862
|
</style>
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<view @touchmove.stop.prevent>
|
|
3
|
-
<view
|
|
3
|
+
<view
|
|
4
|
+
class="up-actionsheet"
|
|
5
|
+
:class="{ 'up-actionsheet-show': show, 'up-actionsheet-radius': radius }"
|
|
6
|
+
:style="{ zIndex: getZIndex }"
|
|
7
|
+
>
|
|
4
8
|
<view class="up-actionsheet-tips" :style="{ fontSize: size + 'rpx', color: color }" v-if="tips">
|
|
5
9
|
{{ tips }}
|
|
6
10
|
</view>
|
|
@@ -12,10 +16,10 @@
|
|
|
12
16
|
hover-class="up-actionsheet-hover"
|
|
13
17
|
:hover-stay-time="150"
|
|
14
18
|
:data-index="index"
|
|
15
|
-
:style="{ color: item.color ||
|
|
19
|
+
:style="{ color: item.color || textColor }"
|
|
16
20
|
@tap="handleClickItem"
|
|
17
21
|
>
|
|
18
|
-
{{ item
|
|
22
|
+
{{ item[textField] }}
|
|
19
23
|
</view>
|
|
20
24
|
</block>
|
|
21
25
|
</view>
|
|
@@ -29,19 +33,20 @@
|
|
|
29
33
|
取消
|
|
30
34
|
</view>
|
|
31
35
|
</view>
|
|
32
|
-
<view
|
|
36
|
+
<view
|
|
37
|
+
class="up-actionsheet-mask"
|
|
38
|
+
:class="{ 'up-mask-show': show }"
|
|
39
|
+
:style="{ background: maskColor, zIndex: zIndex }"
|
|
40
|
+
@tap="handleClickMask"
|
|
41
|
+
></view>
|
|
33
42
|
</view>
|
|
34
43
|
</template>
|
|
35
44
|
|
|
36
45
|
<script>
|
|
37
46
|
export default {
|
|
38
|
-
name: '
|
|
47
|
+
name: 'tuiActionsheet',
|
|
48
|
+
emits: ['click', 'cancel'],
|
|
39
49
|
props: {
|
|
40
|
-
//点击遮罩 是否可关闭
|
|
41
|
-
maskClosable: {
|
|
42
|
-
type: Boolean,
|
|
43
|
-
default: true
|
|
44
|
-
},
|
|
45
50
|
//显示操作菜单
|
|
46
51
|
show: {
|
|
47
52
|
type: Boolean,
|
|
@@ -50,7 +55,7 @@ export default {
|
|
|
50
55
|
//菜单按钮数组,自定义文本颜色,红色参考色:#e53a37
|
|
51
56
|
itemList: {
|
|
52
57
|
type: Array,
|
|
53
|
-
default: ()
|
|
58
|
+
default: function () {
|
|
54
59
|
return [
|
|
55
60
|
{
|
|
56
61
|
text: '确定',
|
|
@@ -59,6 +64,24 @@ export default {
|
|
|
59
64
|
];
|
|
60
65
|
}
|
|
61
66
|
},
|
|
67
|
+
textField: {
|
|
68
|
+
type: String,
|
|
69
|
+
default: 'text'
|
|
70
|
+
},
|
|
71
|
+
textColor: {
|
|
72
|
+
type: String,
|
|
73
|
+
default: '#2B2B2B'
|
|
74
|
+
},
|
|
75
|
+
//点击遮罩 是否可关闭
|
|
76
|
+
maskClosable: {
|
|
77
|
+
type: Boolean,
|
|
78
|
+
default: true
|
|
79
|
+
},
|
|
80
|
+
//v2.1.0
|
|
81
|
+
maskColor: {
|
|
82
|
+
type: String,
|
|
83
|
+
default: 'rgba(0, 0, 0, 0.6)'
|
|
84
|
+
},
|
|
62
85
|
//提示文字
|
|
63
86
|
tips: {
|
|
64
87
|
type: String,
|
|
@@ -83,6 +106,15 @@ export default {
|
|
|
83
106
|
isCancel: {
|
|
84
107
|
type: Boolean,
|
|
85
108
|
default: true
|
|
109
|
+
},
|
|
110
|
+
zIndex: {
|
|
111
|
+
type: [Number, String],
|
|
112
|
+
default: 998
|
|
113
|
+
}
|
|
114
|
+
},
|
|
115
|
+
computed: {
|
|
116
|
+
getZIndex() {
|
|
117
|
+
return Number(this.zIndex) + 2;
|
|
86
118
|
}
|
|
87
119
|
},
|
|
88
120
|
methods: {
|
|
@@ -92,9 +124,10 @@ export default {
|
|
|
92
124
|
},
|
|
93
125
|
handleClickItem(e) {
|
|
94
126
|
if (!this.show) return;
|
|
95
|
-
const
|
|
127
|
+
const index = Number(e.currentTarget.dataset.index);
|
|
96
128
|
this.$emit('click', {
|
|
97
|
-
index:
|
|
129
|
+
index: index,
|
|
130
|
+
...this.itemList[index]
|
|
98
131
|
});
|
|
99
132
|
},
|
|
100
133
|
handleClickCancel() {
|
|
@@ -111,7 +144,6 @@ export default {
|
|
|
111
144
|
left: 0;
|
|
112
145
|
right: 0;
|
|
113
146
|
bottom: 0;
|
|
114
|
-
z-index: 9999;
|
|
115
147
|
visibility: hidden;
|
|
116
148
|
transform: translate3d(0, 100%, 0);
|
|
117
149
|
transform-origin: center;
|
|
@@ -188,8 +220,6 @@ export default {
|
|
|
188
220
|
left: 0;
|
|
189
221
|
right: 0;
|
|
190
222
|
bottom: 0;
|
|
191
|
-
background-color: rgba(0, 0, 0, 0.6);
|
|
192
|
-
z-index: 9996;
|
|
193
223
|
transition: all 0.3s ease-in-out;
|
|
194
224
|
opacity: 0;
|
|
195
225
|
visibility: hidden;
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
</view>
|
|
7
7
|
<view
|
|
8
8
|
class="up-alert-btn"
|
|
9
|
-
:style="{ color:
|
|
9
|
+
:style="{ color: getColor }"
|
|
10
10
|
hover-class="up-alert-btn-hover"
|
|
11
11
|
:hover-stay-time="150"
|
|
12
12
|
@tap.stop="handleClick"
|
|
@@ -20,7 +20,8 @@
|
|
|
20
20
|
|
|
21
21
|
<script>
|
|
22
22
|
export default {
|
|
23
|
-
name: '
|
|
23
|
+
name: 'tuiAlert',
|
|
24
|
+
emits: ['click', 'cancel'],
|
|
24
25
|
props: {
|
|
25
26
|
//控制显示
|
|
26
27
|
show: {
|
|
@@ -40,7 +41,7 @@ export default {
|
|
|
40
41
|
//按钮字体颜色
|
|
41
42
|
btnColor: {
|
|
42
43
|
type: String,
|
|
43
|
-
default: '
|
|
44
|
+
default: ''
|
|
44
45
|
},
|
|
45
46
|
btnText: {
|
|
46
47
|
type: String,
|
|
@@ -52,6 +53,11 @@ export default {
|
|
|
52
53
|
default: false
|
|
53
54
|
}
|
|
54
55
|
},
|
|
56
|
+
computed: {
|
|
57
|
+
getColor() {
|
|
58
|
+
return this.btnColor || (uni && uni.$tui && uni.$tui.color.danger) || '#EB0909';
|
|
59
|
+
}
|
|
60
|
+
},
|
|
55
61
|
methods: {
|
|
56
62
|
handleClick(e) {
|
|
57
63
|
if (!this.show) return;
|
|
@@ -77,7 +83,7 @@ export default {
|
|
|
77
83
|
opacity: 0;
|
|
78
84
|
border-radius: 6rpx;
|
|
79
85
|
overflow: hidden;
|
|
80
|
-
z-index:
|
|
86
|
+
z-index: 1001;
|
|
81
87
|
}
|
|
82
88
|
|
|
83
89
|
.up-alert-show {
|
|
@@ -92,7 +98,7 @@ export default {
|
|
|
92
98
|
right: 0;
|
|
93
99
|
bottom: 0;
|
|
94
100
|
background-color: rgba(0, 0, 0, 0.5);
|
|
95
|
-
z-index:
|
|
101
|
+
z-index: 999;
|
|
96
102
|
transition: all 0.3s ease-in-out;
|
|
97
103
|
opacity: 0;
|
|
98
104
|
visibility: hidden;
|