wui-components-v2 1.2.92 → 1.2.94
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/components/fold-card/fold-card.vue +7 -10
- package/components/fold-card2/fold-card2.vue +18 -15
- package/components/form-control/form-control.vue +14 -4
- package/components/login-form/login-form.vue +2 -2
- package/components/login-form-box/login-form-box.vue +1 -1
- package/components/phone-login-form/phone-login-form.vue +2 -2
- package/components/search/search.vue +28 -5
- package/components/wui-edit-page/wui-edit-page.vue +1 -1
- package/components/wui-login/wui-login.vue +6 -3
- package/components/wui-menus1/components/quick-panel.vue +1 -1
- package/components/wui-select-popup/wui-select-popup.vue +16 -6
- package/package.json +1 -1
|
@@ -174,16 +174,13 @@ function toggleCollapse(contentId: string) {
|
|
|
174
174
|
<!-- 订单底部 -->
|
|
175
175
|
<view class="flex items-center justify-between border-t border-gray-100">
|
|
176
176
|
<!-- 折叠按钮 -->
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
class="mr-auto flex items-center px-3 py-2 text-sm text-[#6b7280] !py-1"
|
|
185
|
-
@click.stop="toggleCollapse(data.code)"
|
|
186
|
-
/>
|
|
177
|
+
<!-- ★ @click.stop 必须写在原生 view 上(编译成 catchtap 才有效),wd-icon 组件上写 .stop 小程序端会失效 -->
|
|
178
|
+
<view
|
|
179
|
+
v-if="showCollapse"
|
|
180
|
+
class="mr-auto flex items-center px-3 py-2 text-sm text-[#6b7280] !py-1"
|
|
181
|
+
@click.stop="toggleCollapse(data.code)"
|
|
182
|
+
>
|
|
183
|
+
<wd-icon id="toggle-btn-2" name="down" size="24px" :icon="collapseIcon" />
|
|
187
184
|
</view>
|
|
188
185
|
|
|
189
186
|
<view class="flex items-center gap-1">
|
|
@@ -60,15 +60,21 @@ const props = withDefaults(
|
|
|
60
60
|
}
|
|
61
61
|
)
|
|
62
62
|
const { currentThemeColor } = useManualTheme()
|
|
63
|
+
// ★ 统一基于「过滤后的可见列」计算展示/展开内容与折叠按钮:
|
|
64
|
+
// 若用原始 columns 判断按钮显隐,超出的列可能全是 hidden 字段,
|
|
65
|
+
// 会出现按钮可见但展开后没有数据的情况
|
|
66
|
+
const visibleColumns = computed(() => {
|
|
67
|
+
// 配置层 hidden:true 的字段不在卡片中展示(与表单区显隐语义保持一致)
|
|
68
|
+
return props.columns.filter((item: any) => item.title !== '操作' && item.hidden !== true)
|
|
69
|
+
})
|
|
70
|
+
|
|
63
71
|
// 展示内容
|
|
64
72
|
const exhibitData = computed(() => {
|
|
65
73
|
const { collapseNum } = props
|
|
66
74
|
// collapseNum 为 0 时,只显示标题,不展示任何字段数据
|
|
67
75
|
if (collapseNum === 0) return []
|
|
68
76
|
const num = collapseNum || 5
|
|
69
|
-
|
|
70
|
-
// 配置层 hidden:true 的字段不在卡片中展示(与表单区显隐语义保持一致)
|
|
71
|
-
return columns.filter((item: any) => item.title !== '操作' && item.hidden !== true)
|
|
77
|
+
return visibleColumns.value.slice(0, num)
|
|
72
78
|
})
|
|
73
79
|
|
|
74
80
|
// 是否展示折叠按钮
|
|
@@ -77,7 +83,7 @@ const showCollapse = computed(() => {
|
|
|
77
83
|
// collapseNum 为 0 时,默认收起全部字段,仍可点击展开
|
|
78
84
|
if (collapseNum === 0) return true
|
|
79
85
|
const num = collapseNum || 5
|
|
80
|
-
return
|
|
86
|
+
return visibleColumns.value.length > num
|
|
81
87
|
})
|
|
82
88
|
|
|
83
89
|
// 折叠内容
|
|
@@ -114,15 +120,12 @@ const collapseIcon = ref('left')
|
|
|
114
120
|
// 计算需要折叠展示的字段
|
|
115
121
|
function getCollapseColumns(): Columns[] {
|
|
116
122
|
const { collapseNum } = props
|
|
117
|
-
let columns: Columns[]
|
|
118
123
|
if (collapseNum === 0) {
|
|
119
124
|
// 默认不展示任何字段,展开时显示全部
|
|
120
|
-
|
|
121
|
-
} else {
|
|
122
|
-
const num = collapseNum || 5
|
|
123
|
-
columns = props.columns.length >= num ? props.columns.slice(num) : []
|
|
125
|
+
return visibleColumns.value
|
|
124
126
|
}
|
|
125
|
-
|
|
127
|
+
const num = collapseNum || 5
|
|
128
|
+
return visibleColumns.value.slice(num)
|
|
126
129
|
}
|
|
127
130
|
|
|
128
131
|
// 切换折叠内容
|
|
@@ -176,14 +179,14 @@ function toggleCollapse(contentId: string) {
|
|
|
176
179
|
}}
|
|
177
180
|
</view>
|
|
178
181
|
<!-- 折叠按钮 -->
|
|
179
|
-
|
|
182
|
+
<!-- ★ @click.stop 必须写在原生 view 上(编译成 catchtap 才有效),wd-icon 组件上写 .stop 小程序端会失效 -->
|
|
183
|
+
<view
|
|
180
184
|
v-if="showCollapse"
|
|
181
|
-
id="toggle-btn-2"
|
|
182
|
-
:name="collapseIcon"
|
|
183
|
-
size="24px"
|
|
184
185
|
class="ml-1 flex items-center text-sm text-[#6b7280]"
|
|
185
186
|
@click.stop="toggleCollapse(data.code)"
|
|
186
|
-
|
|
187
|
+
>
|
|
188
|
+
<wd-icon id="toggle-btn-2" :name="collapseIcon" size="24px" />
|
|
189
|
+
</view>
|
|
187
190
|
<!-- <slot name="addressInfo" />s -->
|
|
188
191
|
</view>
|
|
189
192
|
<!-- <slot name="detailAddress" /> -->
|
|
@@ -27,6 +27,8 @@ const props = defineProps<{
|
|
|
27
27
|
smartPaste?: boolean
|
|
28
28
|
/** 严格模式(筛选场景):entity 中存在 key 即视为用户显式设置的值,空值也生效,不再回落到字段默认值 */
|
|
29
29
|
strictEntity?: boolean
|
|
30
|
+
/** 弹窗选择类字段的 max 未配置时默认按单选处理(筛选场景使用,不影响配置了 max 的字段) */
|
|
31
|
+
selectDefaultSingle?: boolean
|
|
30
32
|
}>()
|
|
31
33
|
const fileTypes = [
|
|
32
34
|
{
|
|
@@ -55,6 +57,14 @@ const { filteredFields: fields } = useCompanyFieldFilter(
|
|
|
55
57
|
props.companyFilter, // 是否自适应显示快递公司填充框
|
|
56
58
|
props.companyFieldSourceId // 快递公司对应字段
|
|
57
59
|
)
|
|
60
|
+
// 弹窗选择类字段(WuiSelectPopup / WuiTreeCascaderPopup)是否单选:
|
|
61
|
+
// max 配置为 1 时单选;max 未配置时由 selectDefaultSingle 决定(筛选场景默认单选),配置了其他值则多选
|
|
62
|
+
function isSingleSelect(item: Fields) {
|
|
63
|
+
if (item.max === undefined || item.max === null || item.max === '') {
|
|
64
|
+
return props.selectDefaultSingle === true
|
|
65
|
+
}
|
|
66
|
+
return Number(item.max) === 1
|
|
67
|
+
}
|
|
58
68
|
const giveDefaultValue = (value: any) => {
|
|
59
69
|
const { extInfo = {} } = uni.getStorageSync('userInfo') || {}
|
|
60
70
|
const rawDefaultValue = extInfo.fieldMap || {}
|
|
@@ -992,7 +1002,7 @@ console.log('clearValueMap', clearValueMap)
|
|
|
992
1002
|
v-model="model[item.sourceId]"
|
|
993
1003
|
:source-id="item.sourceId"
|
|
994
1004
|
:title="item.title"
|
|
995
|
-
:ext-control-type="
|
|
1005
|
+
:ext-control-type="isSingleSelect(item) ? 'relselect' : 'ss'"
|
|
996
1006
|
:readonly="item.disabled || item.rowEditType === 'readonly'"
|
|
997
1007
|
:clearable="!item.disabled"
|
|
998
1008
|
:default-select-first="!!item.defaultSelectFirst"
|
|
@@ -1034,7 +1044,7 @@ console.log('clearValueMap', clearValueMap)
|
|
|
1034
1044
|
v-model="model[item.sourceId]"
|
|
1035
1045
|
:source-id="item.sourceId"
|
|
1036
1046
|
:title="item.title"
|
|
1037
|
-
:ext-control-type="
|
|
1047
|
+
:ext-control-type="isSingleSelect(item) ? 'relselect' : 'ss'"
|
|
1038
1048
|
:readonly="item.disabled || item.rowEditType === 'readonly'"
|
|
1039
1049
|
:clearable="!item.disabled"
|
|
1040
1050
|
:default-select-first="!!item.defaultSelectFirst"
|
|
@@ -1142,8 +1152,8 @@ console.log('clearValueMap', clearValueMap)
|
|
|
1142
1152
|
v-model="model[item.sourceId]"
|
|
1143
1153
|
:source-id="item.sourceId"
|
|
1144
1154
|
:title="item.title"
|
|
1145
|
-
:select-mode="
|
|
1146
|
-
:ext-control-type="
|
|
1155
|
+
:select-mode="isSingleSelect(item) ? 'single' : 'multiple'"
|
|
1156
|
+
:ext-control-type="isSingleSelect(item) ? 'relselect' : 'ss'"
|
|
1147
1157
|
:readonly="item.disabled || item.rowEditType === 'readonly'"
|
|
1148
1158
|
:clearable="!item.disabled"
|
|
1149
1159
|
:default-select-first="!!item.defaultSelectFirst"
|
|
@@ -143,7 +143,7 @@ function handleSubmit() {
|
|
|
143
143
|
</script>
|
|
144
144
|
|
|
145
145
|
<template>
|
|
146
|
-
<view class="bg-white pa-3 dark:bg-[var(--wot-dark-
|
|
146
|
+
<view class="bg-white pa-3 dark:bg-[var(--wot-dark-background)]">
|
|
147
147
|
<!-- //账号登录 -->
|
|
148
148
|
<wd-form ref="form" :model="model">
|
|
149
149
|
<view class="rounded-2 overflow-hidden">
|
|
@@ -200,7 +200,7 @@ function handleSubmit() {
|
|
|
200
200
|
</view>
|
|
201
201
|
</view>
|
|
202
202
|
<view class="p-4">
|
|
203
|
-
<wd-button block :loading="subloading" :round="false" @click="handleSubmit">登录</wd-button>
|
|
203
|
+
<wd-button block custom-class="wui-login-submit" :loading="subloading" :round="false" @click="handleSubmit">登录</wd-button>
|
|
204
204
|
</view>
|
|
205
205
|
</wd-form>
|
|
206
206
|
</view>
|
|
@@ -45,7 +45,7 @@ function changeLoginMode(mode: string) {
|
|
|
45
45
|
</script>
|
|
46
46
|
|
|
47
47
|
<template>
|
|
48
|
-
<view class="bg-white dark:bg-[var(--wot-dark-
|
|
48
|
+
<view class="bg-white dark:bg-[var(--wot-dark-background)]">
|
|
49
49
|
<!-- //手机登录 -->
|
|
50
50
|
<phoneLoginForm
|
|
51
51
|
v-if="loginMode === 'phone'"
|
|
@@ -180,7 +180,7 @@ function handleSubmit() {
|
|
|
180
180
|
</script>
|
|
181
181
|
|
|
182
182
|
<template>
|
|
183
|
-
<view class="bg-white pa-3 dark:bg-[var(--wot-dark-
|
|
183
|
+
<view class="bg-white pa-3 dark:bg-[var(--wot-dark-background)]">
|
|
184
184
|
<!-- //账号登录 -->
|
|
185
185
|
<wd-form ref="form" :model="model">
|
|
186
186
|
<wd-cell-group border>
|
|
@@ -203,7 +203,7 @@ function handleSubmit() {
|
|
|
203
203
|
</wd-input>
|
|
204
204
|
</wd-cell-group>
|
|
205
205
|
<view class="p-4">
|
|
206
|
-
<wd-button block :loading="subloading" :round="false" @click="handleSubmit">
|
|
206
|
+
<wd-button block custom-class="wui-login-submit" :loading="subloading" :round="false" @click="handleSubmit">
|
|
207
207
|
登录
|
|
208
208
|
</wd-button>
|
|
209
209
|
</view>
|
|
@@ -141,11 +141,25 @@ function emitSubmit(fdata: { [key: string]: any }) {
|
|
|
141
141
|
emits('submit', buildQueryData(fdata))
|
|
142
142
|
handleClose()
|
|
143
143
|
}
|
|
144
|
-
function handleSubmit() {
|
|
144
|
+
async function handleSubmit() {
|
|
145
145
|
if (!formControlRef.value) {
|
|
146
|
-
|
|
147
|
-
//
|
|
148
|
-
//
|
|
146
|
+
// 弹窗未挂载(从未打开或已关闭)时,外置 preferred 字段选中的值还只存在于
|
|
147
|
+
// 外置 form-control 的内部 model 中(form-control 不回写 entity),
|
|
148
|
+
// 先 submit 同步进 entity,否则没打开过弹窗直接搜索会丢掉上面选中的筛选条件
|
|
149
|
+
if (preferredFormControlRef.value?.submit) {
|
|
150
|
+
try {
|
|
151
|
+
const pdata = await preferredFormControlRef.value.submit()
|
|
152
|
+
Object.assign(entity.value, normalizeForEntity(pdata))
|
|
153
|
+
} catch {
|
|
154
|
+
// 校验失败时仍用原 entity 提交,不阻塞搜索
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
if (!showSearch.value || !searchCriterion.value?.sourceId) {
|
|
158
|
+
emitSubmit({ ...entity.value })
|
|
159
|
+
return
|
|
160
|
+
}
|
|
161
|
+
// entity 中仍保留着已选中的筛选条件,不能只提交搜索框关键字,
|
|
162
|
+
// 需把搜索框值与 entity 中的筛选值合并后一并提交
|
|
149
163
|
const merged = normalizeForEntity({ ...entity.value })
|
|
150
164
|
merged[searchCriterion.value.sourceId] = search.value
|
|
151
165
|
emitSubmit(merged)
|
|
@@ -187,6 +201,7 @@ function handleSubmit() {
|
|
|
187
201
|
:entity="entity"
|
|
188
202
|
:enum-column="enumColumn"
|
|
189
203
|
strict-entity
|
|
204
|
+
select-default-single
|
|
190
205
|
/>
|
|
191
206
|
</view>
|
|
192
207
|
<view v-if="showSearch" class="w-full">
|
|
@@ -216,7 +231,7 @@ function handleSubmit() {
|
|
|
216
231
|
</wd-button>
|
|
217
232
|
</view>
|
|
218
233
|
<wd-popup v-model="show" position="bottom" custom-class="h-80vh" closable @close="handleClose">
|
|
219
|
-
<view class="relative box-border h-full p-1 bg-white dark:bg-[var(--wot-dark-background)]">
|
|
234
|
+
<view class="search-filter-panel relative box-border h-full p-1 bg-white dark:bg-[var(--wot-dark-background)]">
|
|
220
235
|
<view class="h-34px flex items-center justify-center text-black dark:text-[var(--wot-dark-color)]">筛选</view>
|
|
221
236
|
<!-- v-if="show" 保证每次打开弹窗都重新挂载,读取最新 entity(含外置 preferred 值),实现双向绑定 -->
|
|
222
237
|
<formControl
|
|
@@ -237,6 +252,7 @@ function handleSubmit() {
|
|
|
237
252
|
:entity="entity"
|
|
238
253
|
:enum-column="enumColumn"
|
|
239
254
|
strict-entity
|
|
255
|
+
select-default-single
|
|
240
256
|
/>
|
|
241
257
|
<view class="h-12" />
|
|
242
258
|
<view
|
|
@@ -250,6 +266,13 @@ function handleSubmit() {
|
|
|
250
266
|
</template>
|
|
251
267
|
|
|
252
268
|
<style scoped>
|
|
269
|
+
/* 暗黑模式下筛选弹窗内的输入/选择单元格背景置透明:
|
|
270
|
+
组件库暗色回退是纯黑,叠加在弹窗底色 #1B1B1E 上会出现明显色带 */
|
|
271
|
+
.wot-theme-dark .search-filter-panel {
|
|
272
|
+
--wot-cell-bg: transparent;
|
|
273
|
+
--wot-input-bg: transparent;
|
|
274
|
+
--wot-select-picker-bg: transparent;
|
|
275
|
+
}
|
|
253
276
|
.search-type {
|
|
254
277
|
position: relative;
|
|
255
278
|
height: 30px;
|
|
@@ -908,7 +908,7 @@ console.log(pageConfig, 'props111')
|
|
|
908
908
|
<template #title>
|
|
909
909
|
<view class="flex items-center justify-between">
|
|
910
910
|
<view class="flex-1 flex items-center justify-between pr-2">
|
|
911
|
-
<view class="text-[#000]">{{ group.title }}</view>
|
|
911
|
+
<view class="text-[#000] dark:text-white">{{ group.title }}</view>
|
|
912
912
|
<view v-if="group.type === 'relation'">
|
|
913
913
|
<view v-if="selectData[group.id]?.loading" class="flex justify-center p-3">
|
|
914
914
|
<wd-loading />
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
<!-- 纯色风格登录页面 -->
|
|
2
2
|
<script setup lang="ts">
|
|
3
|
+
import { computed } from 'vue'
|
|
3
4
|
import loginFormBox from '../login-form-box/login-form-box.vue'
|
|
4
5
|
import { useManualTheme } from '../../composables/useManualTheme'
|
|
5
6
|
import type { TabbarItem } from '../../composables/useTabbar'
|
|
@@ -38,11 +39,13 @@ const props = withDefaults(defineProps<Props>(), {
|
|
|
38
39
|
showLoginImg: false,
|
|
39
40
|
customLoginImg: companyLogo,
|
|
40
41
|
})
|
|
41
|
-
const { currentThemeColor } = useManualTheme()
|
|
42
|
+
const { currentThemeColor, isDark } = useManualTheme()
|
|
43
|
+
// 亮色保持原有主题色大底;暗黑模式下品牌色不做大面积底色,插片区改为深藏青蓝
|
|
44
|
+
const heroBg = computed(() => (isDark.value ? '#1B2233' : currentThemeColor.value.primary))
|
|
42
45
|
</script>
|
|
43
46
|
|
|
44
47
|
<template>
|
|
45
|
-
<view class="wui-custom-login flex flex-col" :style="{ backgroundColor:
|
|
48
|
+
<view class="wui-custom-login wui-login flex flex-col" :style="{ backgroundColor: heroBg }">
|
|
46
49
|
<!-- <view class="flex flex-col items-center justify-center pa-3 pb-5">
|
|
47
50
|
<wd-img :width="100" :height="100" round :src="loginlog" />
|
|
48
51
|
<view class="text-center">
|
|
@@ -54,7 +57,7 @@ const { currentThemeColor } = useManualTheme()
|
|
|
54
57
|
<view class="flex items-center justify-center">
|
|
55
58
|
<image :class="showLoginImg ? 'h-200px w-200px' : 'h-250px w-250px'" src="./footerImg.png" />
|
|
56
59
|
</view>
|
|
57
|
-
<view class="flex-1 border-rd-t-2 p-y-2 bg-white dark:bg-[var(--wot-dark-
|
|
60
|
+
<view class="flex-1 border-rd-t-2 p-y-2 bg-white dark:bg-[var(--wot-dark-background)]">
|
|
58
61
|
<view class="flex items-center justify-center" v-if="showLoginImg">
|
|
59
62
|
<image class="h-100px w-100px" :src="customLoginImg" />
|
|
60
63
|
</view>
|
|
@@ -50,7 +50,7 @@ function numColor(item: { themeColor?: string }) {
|
|
|
50
50
|
</script>
|
|
51
51
|
|
|
52
52
|
<template>
|
|
53
|
-
<view v-if="quickPanel.length > 0 || capsuleMenu.length > 0" class="mb-3">
|
|
53
|
+
<view v-if="quickPanel.length > 0 || capsuleMenu.length > 0" class="mt-3 mb-3">
|
|
54
54
|
<view class="rounded-2xl bg-white p-3 shadow-[0_4px_16px_rgba(0,0,0,0.04)] dark:bg-black">
|
|
55
55
|
<view class="mb-3 flex items-center gap-2 text-size-4 font-bold text-gray-800 dark:text-white">
|
|
56
56
|
{{ languageStore.t('数据统计') }}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
2
|
import { computed, nextTick, onMounted, onUnmounted, ref, watch } from 'vue'
|
|
3
3
|
import { enums, listData, pageConfig, pageKey } from '../../api/page'
|
|
4
|
-
import foldCard from '../fold-
|
|
4
|
+
import foldCard from '../fold-card2/fold-card2.vue'
|
|
5
5
|
import Search from '../search/search.vue'
|
|
6
6
|
import type { Config, Entities, Enums, FoldCardModel } from '../../type'
|
|
7
7
|
import { useGlobalToast } from '../../composables/useGlobalToast'
|
|
@@ -21,6 +21,7 @@ const props = withDefaults(
|
|
|
21
21
|
extControlType?: string // 选择模式:relselect(单选)、relselect-extdis等
|
|
22
22
|
placeholder?: string // 占位文本
|
|
23
23
|
foldCardModel?: FoldCardModel // 折叠卡片模式
|
|
24
|
+
collapseNum?: number // 卡片收起时显示的字段条数,展开显示其余字段
|
|
24
25
|
readonly?: boolean // 只读模式,禁止打开弹窗
|
|
25
26
|
clearable?: boolean // 是否显示清空按钮
|
|
26
27
|
defaultSelectFirst?: boolean // 是否默认选择第一项
|
|
@@ -32,6 +33,7 @@ const props = withDefaults(
|
|
|
32
33
|
extControlType: 'relselect',
|
|
33
34
|
placeholder: '请选择',
|
|
34
35
|
foldCardModel: 'simple',
|
|
36
|
+
collapseNum: 3,
|
|
35
37
|
readonly: false,
|
|
36
38
|
clearable: true,
|
|
37
39
|
defaultSelectFirst: false,
|
|
@@ -100,14 +102,18 @@ const selectData = ref<string[]>([])
|
|
|
100
102
|
// ★ 关键修改:使用独立的 ref 管理显示状态(参考 action-popup)
|
|
101
103
|
const show = ref(false)
|
|
102
104
|
|
|
103
|
-
//
|
|
105
|
+
// 格式化显示的选中值:取最后一段,兼容旧数据存成 code@R@code@R@name 的情况
|
|
104
106
|
const displayValue = computed(() => {
|
|
105
107
|
if (!selectData.value.length) return ''
|
|
108
|
+
const label = (v: string) => {
|
|
109
|
+
const parts = v.split('@R@')
|
|
110
|
+
return parts[parts.length - 1] || ''
|
|
111
|
+
}
|
|
106
112
|
|
|
107
113
|
if (props.extControlType === 'relselect' || props.extControlType === 'relselect-extdis') {
|
|
108
|
-
return selectData.value[0]
|
|
114
|
+
return label(selectData.value[0] || '')
|
|
109
115
|
}
|
|
110
|
-
return selectData.value.map(
|
|
116
|
+
return selectData.value.map(label).join(', ')
|
|
111
117
|
})
|
|
112
118
|
|
|
113
119
|
// 格式化选中的数据用于checkbox显示
|
|
@@ -462,7 +468,9 @@ console.log(props, 'props')
|
|
|
462
468
|
</script>
|
|
463
469
|
|
|
464
470
|
<template>
|
|
465
|
-
<view class="wui-select-popup-wrapper
|
|
471
|
+
<view class="wui-select-popup-wrapper">
|
|
472
|
+
<!-- 暗色下不再自带灰底:触发区透明继承所在表面,避免在黑色表单上出现灰色色带 -->
|
|
473
|
+
|
|
466
474
|
<!-- ★ 触发区域 - 原生表单样式(左标签 + 中内容 + 右箭头) -->
|
|
467
475
|
<view v-if="!show" class="trigger-cell" @click="openPopup">
|
|
468
476
|
<!-- 左侧标签 -->
|
|
@@ -534,13 +542,15 @@ console.log(props, 'props')
|
|
|
534
542
|
:key="item.code"
|
|
535
543
|
:index="index"
|
|
536
544
|
:data="item"
|
|
545
|
+
:collapse-num="collapseNum"
|
|
537
546
|
:columns="config.columns"
|
|
538
547
|
:primary-column="config.primaryColumn"
|
|
539
548
|
:second-column="config.secondColumn"
|
|
540
549
|
:model="foldCardModel"
|
|
541
550
|
:groups="config"
|
|
542
551
|
:source-id="sourceId"
|
|
543
|
-
|
|
552
|
+
select-mode
|
|
553
|
+
@select="handleChange(item)"
|
|
544
554
|
>
|
|
545
555
|
<template #select>
|
|
546
556
|
<wd-checkbox
|