Skip to content

Commit

Permalink
* editTableCell支持多选
Browse files Browse the repository at this point in the history
  • Loading branch information
Air-Cooled committed Oct 9, 2022
1 parent 546869e commit 8d23fbc
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "diboot-element-admin",
"version": "2.6.0",
"version": "2.7.0",
"description": "Diboot PC端前端框架(element-ui)",
"author": "www.diboot.com",
"license": "MIT",
Expand Down
18 changes: 17 additions & 1 deletion src/components/diboot/components/editTableCell/index.vue
Expand Up @@ -39,6 +39,22 @@
/>
</el-select>
</template>
<template v-else-if="formType === 'M_SELECT'">
<el-select
multiple
v-model="tempValue"
:placeholder="placeholder"
filterable
@change="changeValue"
>
<el-option
v-for="(item, index) in options || []"
:key="index"
:value="item.value"
:label="item.label"
/>
</el-select>
</template>
<template v-else-if="formType === 'SWITCH'">
<el-switch v-model="tempValue" @change="changeValue" />
</template>
Expand Down Expand Up @@ -105,7 +121,7 @@ export default {
},
value: {
// eslint-disable-next-line vue/require-prop-type-constructor
type: String | Boolean | Number,
type: String | Boolean | Number | Array,
required: true
},
label: {
Expand Down

0 comments on commit 8d23fbc

Please sign in to comment.