@kengic/uni 0.3.2-beta.10
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/README.md +1 -0
- package/dist/index.css +1 -0
- package/dist/kengic-uni.js +5 -0
- package/dist/src/consts/i18n/en.d.ts +45 -0
- package/dist/src/consts/i18n/index.d.ts +90 -0
- package/dist/src/consts/i18n/zh_CN.d.ts +45 -0
- package/dist/src/consts/index.d.ts +1 -0
- package/dist/src/index.d.ts +2 -0
- package/dist/src/utils/index.d.ts +1 -0
- package/dist/src/utils/kg.util.d.ts +5 -0
- package/dist/uni-ui/index.ts +11 -0
- package/dist/uni-ui/uni-badge/uni-badge.vue +253 -0
- package/dist/uni-ui/uni-breadcrumb/uni-breadcrumb.vue +41 -0
- package/dist/uni-ui/uni-breadcrumb-item/uni-breadcrumb-item.vue +121 -0
- package/dist/uni-ui/uni-calendar/calendar.js +546 -0
- package/dist/uni-ui/uni-calendar/i18n/en.json +12 -0
- package/dist/uni-ui/uni-calendar/i18n/index.js +8 -0
- package/dist/uni-ui/uni-calendar/i18n/zh-Hans.json +12 -0
- package/dist/uni-ui/uni-calendar/i18n/zh-Hant.json +12 -0
- package/dist/uni-ui/uni-calendar/uni-calendar-item.vue +187 -0
- package/dist/uni-ui/uni-calendar/uni-calendar.vue +566 -0
- package/dist/uni-ui/uni-calendar/util.js +360 -0
- package/dist/uni-ui/uni-card/uni-card.vue +281 -0
- package/dist/uni-ui/uni-col/uni-col.vue +317 -0
- package/dist/uni-ui/uni-collapse/uni-collapse.vue +147 -0
- package/dist/uni-ui/uni-collapse-item/uni-collapse-item.vue +402 -0
- package/dist/uni-ui/uni-combox/uni-combox.vue +294 -0
- package/dist/uni-ui/uni-countdown/i18n/en.json +6 -0
- package/dist/uni-ui/uni-countdown/i18n/index.js +8 -0
- package/dist/uni-ui/uni-countdown/i18n/zh-Hans.json +6 -0
- package/dist/uni-ui/uni-countdown/i18n/zh-Hant.json +6 -0
- package/dist/uni-ui/uni-countdown/uni-countdown.vue +267 -0
- package/dist/uni-ui/uni-data-checkbox/uni-data-checkbox.vue +821 -0
- package/dist/uni-ui/uni-data-picker/keypress.js +45 -0
- package/dist/uni-ui/uni-data-picker/uni-data-picker.vue +551 -0
- package/dist/uni-ui/uni-data-pickerview/uni-data-picker.js +622 -0
- package/dist/uni-ui/uni-data-pickerview/uni-data-pickerview.vue +323 -0
- package/dist/uni-ui/uni-data-select/uni-data-select.vue +517 -0
- package/dist/uni-ui/uni-dateformat/date-format.js +200 -0
- package/dist/uni-ui/uni-dateformat/uni-dateformat.vue +88 -0
- package/dist/uni-ui/uni-datetime-picker/calendar-item.vue +177 -0
- package/dist/uni-ui/uni-datetime-picker/calendar.vue +928 -0
- package/dist/uni-ui/uni-datetime-picker/i18n/en.json +22 -0
- package/dist/uni-ui/uni-datetime-picker/i18n/index.js +8 -0
- package/dist/uni-ui/uni-datetime-picker/i18n/zh-Hans.json +22 -0
- package/dist/uni-ui/uni-datetime-picker/i18n/zh-Hant.json +22 -0
- package/dist/uni-ui/uni-datetime-picker/time-picker.vue +934 -0
- package/dist/uni-ui/uni-datetime-picker/uni-datetime-picker.vue +1026 -0
- package/dist/uni-ui/uni-datetime-picker/util.js +403 -0
- package/dist/uni-ui/uni-drawer/keypress.js +45 -0
- package/dist/uni-ui/uni-drawer/uni-drawer.vue +181 -0
- package/dist/uni-ui/uni-easyinput/common.js +56 -0
- package/dist/uni-ui/uni-easyinput/uni-easyinput.vue +660 -0
- package/dist/uni-ui/uni-fab/uni-fab.vue +491 -0
- package/dist/uni-ui/uni-fav/i18n/en.json +4 -0
- package/dist/uni-ui/uni-fav/i18n/index.js +8 -0
- package/dist/uni-ui/uni-fav/i18n/zh-Hans.json +4 -0
- package/dist/uni-ui/uni-fav/i18n/zh-Hant.json +4 -0
- package/dist/uni-ui/uni-fav/uni-fav.vue +161 -0
- package/dist/uni-ui/uni-file-picker/choose-and-upload-file.js +224 -0
- package/dist/uni-ui/uni-file-picker/uni-file-picker.vue +667 -0
- package/dist/uni-ui/uni-file-picker/upload-file.vue +325 -0
- package/dist/uni-ui/uni-file-picker/upload-image.vue +292 -0
- package/dist/uni-ui/uni-file-picker/utils.js +109 -0
- package/dist/uni-ui/uni-forms/uni-forms.vue +398 -0
- package/dist/uni-ui/uni-forms/utils.js +293 -0
- package/dist/uni-ui/uni-forms/validate.js +486 -0
- package/dist/uni-ui/uni-forms-item/uni-forms-item.vue +601 -0
- package/dist/uni-ui/uni-goods-nav/i18n/en.json +6 -0
- package/dist/uni-ui/uni-goods-nav/i18n/index.js +8 -0
- package/dist/uni-ui/uni-goods-nav/i18n/zh-Hans.json +6 -0
- package/dist/uni-ui/uni-goods-nav/i18n/zh-Hant.json +6 -0
- package/dist/uni-ui/uni-goods-nav/uni-goods-nav.vue +229 -0
- package/dist/uni-ui/uni-grid/uni-grid.vue +143 -0
- package/dist/uni-ui/uni-grid-item/uni-grid-item.vue +129 -0
- package/dist/uni-ui/uni-group/uni-group.vue +134 -0
- package/dist/uni-ui/uni-icons/icons.js +1169 -0
- package/dist/uni-ui/uni-icons/uni-icons.vue +96 -0
- package/dist/uni-ui/uni-icons/uniicons.css +663 -0
- package/dist/uni-ui/uni-icons/uniicons.ttf +0 -0
- package/dist/uni-ui/uni-indexed-list/uni-indexed-list-item.vue +144 -0
- package/dist/uni-ui/uni-indexed-list/uni-indexed-list.vue +367 -0
- package/dist/uni-ui/uni-link/uni-link.vue +128 -0
- package/dist/uni-ui/uni-list/uni-list.vue +123 -0
- package/dist/uni-ui/uni-list/uni-refresh.vue +65 -0
- package/dist/uni-ui/uni-list/uni-refresh.wxs +87 -0
- package/dist/uni-ui/uni-list-ad/uni-list-ad.vue +107 -0
- package/dist/uni-ui/uni-list-chat/uni-list-chat.scss +58 -0
- package/dist/uni-ui/uni-list-chat/uni-list-chat.vue +593 -0
- package/dist/uni-ui/uni-list-item/uni-list-item.vue +534 -0
- package/dist/uni-ui/uni-load-more/i18n/en.json +5 -0
- package/dist/uni-ui/uni-load-more/i18n/index.js +8 -0
- package/dist/uni-ui/uni-load-more/i18n/zh-Hans.json +5 -0
- package/dist/uni-ui/uni-load-more/i18n/zh-Hant.json +5 -0
- package/dist/uni-ui/uni-load-more/uni-load-more.vue +399 -0
- package/dist/uni-ui/uni-nav-bar/uni-nav-bar.vue +357 -0
- package/dist/uni-ui/uni-nav-bar/uni-status-bar.vue +24 -0
- package/dist/uni-ui/uni-notice-bar/uni-notice-bar.vue +426 -0
- package/dist/uni-ui/uni-number-box/uni-number-box.vue +221 -0
- package/dist/uni-ui/uni-pagination/i18n/en.json +5 -0
- package/dist/uni-ui/uni-pagination/i18n/es.json +5 -0
- package/dist/uni-ui/uni-pagination/i18n/fr.json +5 -0
- package/dist/uni-ui/uni-pagination/i18n/index.js +12 -0
- package/dist/uni-ui/uni-pagination/i18n/zh-Hans.json +5 -0
- package/dist/uni-ui/uni-pagination/i18n/zh-Hant.json +5 -0
- package/dist/uni-ui/uni-pagination/uni-pagination.vue +465 -0
- package/dist/uni-ui/uni-popup/i18n/en.json +7 -0
- package/dist/uni-ui/uni-popup/i18n/index.js +9 -0
- package/dist/uni-ui/uni-popup/i18n/zh-Hans.json +7 -0
- package/dist/uni-ui/uni-popup/i18n/zh-Hant.json +7 -0
- package/dist/uni-ui/uni-popup/keypress.js +45 -0
- package/dist/uni-ui/uni-popup/popup.js +23 -0
- package/dist/uni-ui/uni-popup/uni-popup.vue +464 -0
- package/dist/uni-ui/uni-popup-dialog/keypress.js +45 -0
- package/dist/uni-ui/uni-popup-dialog/uni-popup-dialog.vue +275 -0
- package/dist/uni-ui/uni-popup-message/uni-popup-message.vue +143 -0
- package/dist/uni-ui/uni-popup-share/uni-popup-share.vue +187 -0
- package/dist/uni-ui/uni-rate/uni-rate.vue +365 -0
- package/dist/uni-ui/uni-row/uni-row.vue +190 -0
- package/dist/uni-ui/uni-scss/changelog.md +8 -0
- package/dist/uni-ui/uni-scss/index.scss +1 -0
- package/dist/uni-ui/uni-scss/package.json +82 -0
- package/dist/uni-ui/uni-scss/readme.md +4 -0
- package/dist/uni-ui/uni-scss/styles/index.scss +7 -0
- package/dist/uni-ui/uni-scss/styles/setting/_border.scss +3 -0
- package/dist/uni-ui/uni-scss/styles/setting/_color.scss +66 -0
- package/dist/uni-ui/uni-scss/styles/setting/_radius.scss +55 -0
- package/dist/uni-ui/uni-scss/styles/setting/_space.scss +56 -0
- package/dist/uni-ui/uni-scss/styles/setting/_styles.scss +167 -0
- package/dist/uni-ui/uni-scss/styles/setting/_text.scss +24 -0
- package/dist/uni-ui/uni-scss/styles/setting/_variables.scss +146 -0
- package/dist/uni-ui/uni-scss/styles/tools/functions.scss +19 -0
- package/dist/uni-ui/uni-scss/theme.scss +31 -0
- package/dist/uni-ui/uni-scss/variables.scss +62 -0
- package/dist/uni-ui/uni-search-bar/i18n/en.json +4 -0
- package/dist/uni-ui/uni-search-bar/i18n/index.js +8 -0
- package/dist/uni-ui/uni-search-bar/i18n/zh-Hans.json +4 -0
- package/dist/uni-ui/uni-search-bar/i18n/zh-Hant.json +4 -0
- package/dist/uni-ui/uni-search-bar/uni-search-bar.vue +298 -0
- package/dist/uni-ui/uni-section/uni-section.vue +167 -0
- package/dist/uni-ui/uni-segmented-control/uni-segmented-control.vue +145 -0
- package/dist/uni-ui/uni-steps/uni-steps.vue +269 -0
- package/dist/uni-ui/uni-swipe-action/uni-swipe-action.vue +60 -0
- package/dist/uni-ui/uni-swipe-action-item/bindingx.js +302 -0
- package/dist/uni-ui/uni-swipe-action-item/isPC.js +12 -0
- package/dist/uni-ui/uni-swipe-action-item/mpalipay.js +195 -0
- package/dist/uni-ui/uni-swipe-action-item/mpother.js +260 -0
- package/dist/uni-ui/uni-swipe-action-item/mpwxs.js +84 -0
- package/dist/uni-ui/uni-swipe-action-item/render.js +270 -0
- package/dist/uni-ui/uni-swipe-action-item/uni-swipe-action-item.vue +347 -0
- package/dist/uni-ui/uni-swipe-action-item/wx.wxs +341 -0
- package/dist/uni-ui/uni-swiper-dot/uni-swiper-dot.vue +218 -0
- package/dist/uni-ui/uni-table/uni-table.vue +455 -0
- package/dist/uni-ui/uni-tag/uni-tag.vue +252 -0
- package/dist/uni-ui/uni-tbody/uni-tbody.vue +29 -0
- package/dist/uni-ui/uni-td/uni-td.vue +90 -0
- package/dist/uni-ui/uni-th/filter-dropdown.vue +511 -0
- package/dist/uni-ui/uni-th/uni-th.vue +285 -0
- package/dist/uni-ui/uni-thead/uni-thead.vue +129 -0
- package/dist/uni-ui/uni-title/uni-title.vue +171 -0
- package/dist/uni-ui/uni-tooltip/uni-tooltip.vue +68 -0
- package/dist/uni-ui/uni-tr/table-checkbox.vue +179 -0
- package/dist/uni-ui/uni-tr/uni-tr.vue +171 -0
- package/dist/uni-ui/uni-transition/createAnimation.js +131 -0
- package/dist/uni-ui/uni-transition/uni-transition.vue +281 -0
- package/package.json +90 -0
|
@@ -0,0 +1,323 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<view class="uni-data-pickerview">
|
|
3
|
+
<scroll-view v-if="!isCloudDataList" class="selected-area" scroll-x="true">
|
|
4
|
+
<view class="selected-list">
|
|
5
|
+
<view
|
|
6
|
+
class="selected-item"
|
|
7
|
+
v-for="(item,index) in selected"
|
|
8
|
+
:key="index"
|
|
9
|
+
:class="{
|
|
10
|
+
'selected-item-active':index == selectedIndex
|
|
11
|
+
}"
|
|
12
|
+
@click="handleSelect(index)"
|
|
13
|
+
>
|
|
14
|
+
<text>{{item.text || ''}}</text>
|
|
15
|
+
</view>
|
|
16
|
+
</view>
|
|
17
|
+
</scroll-view>
|
|
18
|
+
<view class="tab-c">
|
|
19
|
+
<scroll-view class="list" :scroll-y="true">
|
|
20
|
+
<view class="item" :class="{'is-disabled': !!item.disable}" v-for="(item, j) in dataList[selectedIndex]" :key="j"
|
|
21
|
+
@click="handleNodeClick(item, selectedIndex, j)">
|
|
22
|
+
<text class="item-text">{{item[map.text]}}</text>
|
|
23
|
+
<view class="check" v-if="selected.length > selectedIndex && item[map.value] == selected[selectedIndex].value"></view>
|
|
24
|
+
</view>
|
|
25
|
+
</scroll-view>
|
|
26
|
+
|
|
27
|
+
<view class="loading-cover" v-if="loading">
|
|
28
|
+
<uni-load-more class="load-more" :contentText="loadMore" status="loading"></uni-load-more>
|
|
29
|
+
</view>
|
|
30
|
+
<view class="error-message" v-if="errorMessage">
|
|
31
|
+
<text class="error-text">{{errorMessage}}</text>
|
|
32
|
+
</view>
|
|
33
|
+
</view>
|
|
34
|
+
</view>
|
|
35
|
+
</template>
|
|
36
|
+
|
|
37
|
+
<script>
|
|
38
|
+
import dataPicker from "./uni-data-picker.js"
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* DataPickerview
|
|
42
|
+
* @description uni-data-pickerview
|
|
43
|
+
* @tutorial https://ext.dcloud.net.cn/plugin?id=3796
|
|
44
|
+
* @property {Array} localdata 本地数据,参考
|
|
45
|
+
* @property {Boolean} step-searh = [true|false] 是否分布查询
|
|
46
|
+
* @value true 启用分布查询,仅查询当前选中节点
|
|
47
|
+
* @value false 关闭分布查询,一次查询出所有数据
|
|
48
|
+
* @property {String|DBFieldString} self-field 分布查询当前字段名称
|
|
49
|
+
* @property {String|DBFieldString} parent-field 分布查询父字段名称
|
|
50
|
+
* @property {String|DBCollectionString} collection 表名
|
|
51
|
+
* @property {String|DBFieldString} field 查询字段,多个字段用 `,` 分割
|
|
52
|
+
* @property {String} orderby 排序字段及正序倒叙设置
|
|
53
|
+
* @property {String|JQLString} where 查询条件
|
|
54
|
+
*/
|
|
55
|
+
export default {
|
|
56
|
+
name: 'UniDataPickerView',
|
|
57
|
+
emits: ['nodeclick', 'change', 'datachange', 'update:modelValue'],
|
|
58
|
+
mixins: [dataPicker],
|
|
59
|
+
props: {
|
|
60
|
+
managedMode: {
|
|
61
|
+
type: Boolean,
|
|
62
|
+
default: false
|
|
63
|
+
},
|
|
64
|
+
ellipsis: {
|
|
65
|
+
type: Boolean,
|
|
66
|
+
default: true
|
|
67
|
+
}
|
|
68
|
+
},
|
|
69
|
+
created() {
|
|
70
|
+
if (!this.managedMode) {
|
|
71
|
+
this.$nextTick(() => {
|
|
72
|
+
this.loadData();
|
|
73
|
+
})
|
|
74
|
+
}
|
|
75
|
+
},
|
|
76
|
+
methods: {
|
|
77
|
+
onPropsChange() {
|
|
78
|
+
this._treeData = [];
|
|
79
|
+
this.selectedIndex = 0;
|
|
80
|
+
this.$nextTick(() => {
|
|
81
|
+
this.loadData();
|
|
82
|
+
})
|
|
83
|
+
},
|
|
84
|
+
handleSelect(index) {
|
|
85
|
+
this.selectedIndex = index;
|
|
86
|
+
},
|
|
87
|
+
handleNodeClick(item, i, j) {
|
|
88
|
+
if (item.disable) {
|
|
89
|
+
return;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
const node = this.dataList[i][j];
|
|
93
|
+
const text = node[this.map.text];
|
|
94
|
+
const value = node[this.map.value];
|
|
95
|
+
|
|
96
|
+
if (i < this.selected.length - 1) {
|
|
97
|
+
this.selected.splice(i, this.selected.length - i)
|
|
98
|
+
this.selected.push({
|
|
99
|
+
text,
|
|
100
|
+
value
|
|
101
|
+
})
|
|
102
|
+
} else if (i === this.selected.length - 1) {
|
|
103
|
+
this.selected.splice(i, 1, {
|
|
104
|
+
text,
|
|
105
|
+
value
|
|
106
|
+
})
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
if (node.isleaf) {
|
|
110
|
+
this.onSelectedChange(node, node.isleaf)
|
|
111
|
+
return
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
const {
|
|
115
|
+
isleaf,
|
|
116
|
+
hasNodes
|
|
117
|
+
} = this._updateBindData()
|
|
118
|
+
|
|
119
|
+
// 本地数据
|
|
120
|
+
if (this.isLocalData) {
|
|
121
|
+
this.onSelectedChange(node, (!hasNodes || isleaf))
|
|
122
|
+
} else if (this.isCloudDataList) { // Cloud 数据 (单列)
|
|
123
|
+
this.onSelectedChange(node, true)
|
|
124
|
+
} else if (this.isCloudDataTree) { // Cloud 数据 (树形)
|
|
125
|
+
if (isleaf) {
|
|
126
|
+
this.onSelectedChange(node, node.isleaf)
|
|
127
|
+
} else if (!hasNodes) { // 请求一次服务器以确定是否为叶子节点
|
|
128
|
+
this.loadCloudDataNode((data) => {
|
|
129
|
+
if (!data.length) {
|
|
130
|
+
node.isleaf = true
|
|
131
|
+
} else {
|
|
132
|
+
this._treeData.push(...data)
|
|
133
|
+
this._updateBindData(node)
|
|
134
|
+
}
|
|
135
|
+
this.onSelectedChange(node, node.isleaf)
|
|
136
|
+
})
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
},
|
|
140
|
+
updateData(data) {
|
|
141
|
+
this._treeData = data.treeData
|
|
142
|
+
this.selected = data.selected
|
|
143
|
+
if (!this._treeData.length) {
|
|
144
|
+
this.loadData()
|
|
145
|
+
} else {
|
|
146
|
+
//this.selected = data.selected
|
|
147
|
+
this._updateBindData()
|
|
148
|
+
}
|
|
149
|
+
},
|
|
150
|
+
onDataChange() {
|
|
151
|
+
this.$emit('datachange');
|
|
152
|
+
},
|
|
153
|
+
onSelectedChange(node, isleaf) {
|
|
154
|
+
if (isleaf) {
|
|
155
|
+
this._dispatchEvent()
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
if (node) {
|
|
159
|
+
this.$emit('nodeclick', node)
|
|
160
|
+
}
|
|
161
|
+
},
|
|
162
|
+
_dispatchEvent() {
|
|
163
|
+
this.$emit('change', this.selected.slice(0))
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
</script>
|
|
168
|
+
|
|
169
|
+
<style lang="scss">
|
|
170
|
+
$uni-primary: #007aff !default;
|
|
171
|
+
|
|
172
|
+
.uni-data-pickerview {
|
|
173
|
+
flex: 1;
|
|
174
|
+
/* #ifndef APP-NVUE */
|
|
175
|
+
display: flex;
|
|
176
|
+
/* #endif */
|
|
177
|
+
flex-direction: column;
|
|
178
|
+
overflow: hidden;
|
|
179
|
+
height: 100%;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
.error-text {
|
|
183
|
+
color: #DD524D;
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
.loading-cover {
|
|
187
|
+
position: absolute;
|
|
188
|
+
left: 0;
|
|
189
|
+
top: 0;
|
|
190
|
+
right: 0;
|
|
191
|
+
bottom: 0;
|
|
192
|
+
background-color: rgba(255, 255, 255, .5);
|
|
193
|
+
/* #ifndef APP-NVUE */
|
|
194
|
+
display: flex;
|
|
195
|
+
/* #endif */
|
|
196
|
+
flex-direction: column;
|
|
197
|
+
align-items: center;
|
|
198
|
+
z-index: 1001;
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
.load-more {
|
|
202
|
+
/* #ifndef APP-NVUE */
|
|
203
|
+
margin: auto;
|
|
204
|
+
/* #endif */
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
.error-message {
|
|
208
|
+
background-color: #fff;
|
|
209
|
+
position: absolute;
|
|
210
|
+
left: 0;
|
|
211
|
+
top: 0;
|
|
212
|
+
right: 0;
|
|
213
|
+
bottom: 0;
|
|
214
|
+
padding: 15px;
|
|
215
|
+
opacity: .9;
|
|
216
|
+
z-index: 102;
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
/* #ifdef APP-NVUE */
|
|
220
|
+
.selected-area {
|
|
221
|
+
width: 750rpx;
|
|
222
|
+
}
|
|
223
|
+
/* #endif */
|
|
224
|
+
|
|
225
|
+
.selected-list {
|
|
226
|
+
/* #ifndef APP-NVUE */
|
|
227
|
+
display: flex;
|
|
228
|
+
flex-wrap: nowrap;
|
|
229
|
+
/* #endif */
|
|
230
|
+
flex-direction: row;
|
|
231
|
+
padding: 0 5px;
|
|
232
|
+
border-bottom: 1px solid #f8f8f8;
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
.selected-item {
|
|
236
|
+
margin-left: 10px;
|
|
237
|
+
margin-right: 10px;
|
|
238
|
+
padding: 12px 0;
|
|
239
|
+
text-align: center;
|
|
240
|
+
/* #ifndef APP-NVUE */
|
|
241
|
+
white-space: nowrap;
|
|
242
|
+
/* #endif */
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
.selected-item-text-overflow {
|
|
246
|
+
width: 168px;
|
|
247
|
+
/* fix nvue */
|
|
248
|
+
overflow: hidden;
|
|
249
|
+
/* #ifndef APP-NVUE */
|
|
250
|
+
width: 6em;
|
|
251
|
+
white-space: nowrap;
|
|
252
|
+
text-overflow: ellipsis;
|
|
253
|
+
-o-text-overflow: ellipsis;
|
|
254
|
+
/* #endif */
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
.selected-item-active {
|
|
258
|
+
border-bottom: 2px solid $uni-primary;
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
.selected-item-text {
|
|
262
|
+
color: $uni-primary;
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
.tab-c {
|
|
266
|
+
position: relative;
|
|
267
|
+
flex: 1;
|
|
268
|
+
/* #ifndef APP-NVUE */
|
|
269
|
+
display: flex;
|
|
270
|
+
/* #endif */
|
|
271
|
+
flex-direction: row;
|
|
272
|
+
overflow: hidden;
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
.list {
|
|
276
|
+
flex: 1;
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
.item {
|
|
280
|
+
padding: 12px 15px;
|
|
281
|
+
/* border-bottom: 1px solid #f0f0f0; */
|
|
282
|
+
/* #ifndef APP-NVUE */
|
|
283
|
+
display: flex;
|
|
284
|
+
/* #endif */
|
|
285
|
+
flex-direction: row;
|
|
286
|
+
justify-content: space-between;
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
.is-disabled {
|
|
290
|
+
opacity: .5;
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
.item-text {
|
|
294
|
+
/* flex: 1; */
|
|
295
|
+
color: #333333;
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
.item-text-overflow {
|
|
299
|
+
width: 280px;
|
|
300
|
+
/* fix nvue */
|
|
301
|
+
overflow: hidden;
|
|
302
|
+
/* #ifndef APP-NVUE */
|
|
303
|
+
width: 20em;
|
|
304
|
+
white-space: nowrap;
|
|
305
|
+
text-overflow: ellipsis;
|
|
306
|
+
-o-text-overflow: ellipsis;
|
|
307
|
+
/* #endif */
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
.check {
|
|
311
|
+
margin-right: 5px;
|
|
312
|
+
border: 2px solid $uni-primary;
|
|
313
|
+
border-left: 0;
|
|
314
|
+
border-top: 0;
|
|
315
|
+
height: 12px;
|
|
316
|
+
width: 6px;
|
|
317
|
+
transform-origin: center;
|
|
318
|
+
/* #ifndef APP-NVUE */
|
|
319
|
+
transition: all 0.3s;
|
|
320
|
+
/* #endif */
|
|
321
|
+
transform: rotate(45deg);
|
|
322
|
+
}
|
|
323
|
+
</style>
|