af-mobile-client-vue3 1.3.47 → 1.3.48
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/package.json
CHANGED
|
@@ -110,7 +110,7 @@ const resultLabel = computed(() => {
|
|
|
110
110
|
</script>
|
|
111
111
|
|
|
112
112
|
<template>
|
|
113
|
-
<div class="
|
|
113
|
+
<div class="x-multi-select">
|
|
114
114
|
<VanField
|
|
115
115
|
v-model="resultLabel"
|
|
116
116
|
v-bind="$attrs"
|
|
@@ -131,7 +131,7 @@ const resultLabel = computed(() => {
|
|
|
131
131
|
确认
|
|
132
132
|
</button>
|
|
133
133
|
</div>
|
|
134
|
-
<div
|
|
134
|
+
<div class="x-multi-select-content">
|
|
135
135
|
<VanSearch
|
|
136
136
|
v-if="props.isSearch"
|
|
137
137
|
v-model="searchVal"
|
|
@@ -139,44 +139,53 @@ const resultLabel = computed(() => {
|
|
|
139
139
|
@update:model-value="search"
|
|
140
140
|
@cancel="search"
|
|
141
141
|
/>
|
|
142
|
-
<
|
|
143
|
-
<
|
|
144
|
-
<
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
<
|
|
149
|
-
<
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
<
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
142
|
+
<div class="x-multi-select-checkbox-group">
|
|
143
|
+
<VanCell title="全选">
|
|
144
|
+
<template #right-icon>
|
|
145
|
+
<VanCheckbox v-model="checkedAll" name="all" @click="toggleAll" />
|
|
146
|
+
</template>
|
|
147
|
+
</VanCell>
|
|
148
|
+
<VanCheckboxGroup ref="checkboxGroup" v-model="checkboxValue" @change="change">
|
|
149
|
+
<VanCellGroup>
|
|
150
|
+
<VanCell
|
|
151
|
+
v-for="(item, index) in columnsData"
|
|
152
|
+
:key="item[props.option.value]"
|
|
153
|
+
:title="item[props.option.text]"
|
|
154
|
+
clickable
|
|
155
|
+
@click="toggle(item, index)"
|
|
156
|
+
>
|
|
157
|
+
<template #right-icon>
|
|
158
|
+
<VanCheckbox ref="checkboxes" :name="item[props.option.value]" @click.stop />
|
|
159
|
+
</template>
|
|
160
|
+
</VanCell>
|
|
161
|
+
</VanCellGroup>
|
|
162
|
+
</VanCheckboxGroup>
|
|
163
|
+
</div>
|
|
162
164
|
</div>
|
|
163
165
|
</VanPopup>
|
|
164
166
|
</div>
|
|
165
167
|
</template>
|
|
166
168
|
|
|
167
169
|
<style lang="less" scoped>
|
|
168
|
-
.
|
|
170
|
+
.x-multi-select {
|
|
169
171
|
width: 100%;
|
|
170
172
|
padding: 0;
|
|
171
173
|
background: #fff;
|
|
172
174
|
.dh-cell.van-cell {
|
|
173
|
-
padding: 10px
|
|
175
|
+
padding: 10px 16px;
|
|
174
176
|
}
|
|
175
177
|
.dh-cell.van-cell--required::before {
|
|
176
178
|
left: -8px;
|
|
177
179
|
}
|
|
178
|
-
.
|
|
179
|
-
|
|
180
|
+
.x-multi-select-content {
|
|
181
|
+
max-height: 264px;
|
|
182
|
+
overflow-y: auto;
|
|
183
|
+
.x-multi-select-checkbox-group {
|
|
184
|
+
padding: 0 16px;
|
|
185
|
+
}
|
|
180
186
|
}
|
|
187
|
+
//.van-popup {
|
|
188
|
+
// border-radius: 20px 20px 0 0;
|
|
189
|
+
//}
|
|
181
190
|
}
|
|
182
191
|
</style>
|