Skip to content

Commit 8d23fbc

Browse files
committed
* editTableCell支持多选
1 parent 546869e commit 8d23fbc

File tree

2 files changed

+18
-2
lines changed

2 files changed

+18
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "diboot-element-admin",
3-
"version": "2.6.0",
3+
"version": "2.7.0",
44
"description": "Diboot PC端前端框架(element-ui)",
55
"author": "www.diboot.com",
66
"license": "MIT",

src/components/diboot/components/editTableCell/index.vue

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,22 @@
3939
/>
4040
</el-select>
4141
</template>
42+
<template v-else-if="formType === 'M_SELECT'">
43+
<el-select
44+
multiple
45+
v-model="tempValue"
46+
:placeholder="placeholder"
47+
filterable
48+
@change="changeValue"
49+
>
50+
<el-option
51+
v-for="(item, index) in options || []"
52+
:key="index"
53+
:value="item.value"
54+
:label="item.label"
55+
/>
56+
</el-select>
57+
</template>
4258
<template v-else-if="formType === 'SWITCH'">
4359
<el-switch v-model="tempValue" @change="changeValue" />
4460
</template>
@@ -105,7 +121,7 @@ export default {
105121
},
106122
value: {
107123
// eslint-disable-next-line vue/require-prop-type-constructor
108-
type: String | Boolean | Number,
124+
type: String | Boolean | Number | Array,
109125
required: true
110126
},
111127
label: {

0 commit comments

Comments
 (0)