| | |
| | | * @Author: sakuya |
| | | * @Date: 2021年9月22日09:26:25 |
| | | * @LastEditors: Sneed |
| | | * @LastEditTime: 2024-06-02 18:59:54 |
| | | * @LastEditTime: 2024-06-16 15:18:05 |
| | | --> |
| | | |
| | | <template> |
| | |
| | | <!-- input --> |
| | | <template v-if="item.component == 'input'"> |
| | | <el-input v-model="form[item.name]" :placeholder="item.options.placeholder" clearable |
| | | :maxlength="item.options.maxlength" show-word-limit></el-input> |
| | | :maxlength="item.options.maxlength" show-word-limit :disabled="item.disabled" |
| | | :type="item.type"></el-input> |
| | | </template> |
| | | <!-- checkbox --> |
| | | <template v-else-if="item.component == 'checkbox'"> |
| | |
| | | </template> |
| | | <template v-else-if="item.component == 'el-tree-select'"> |
| | | <el-tree-select v-model="form[item.name]" :data="item.options.data" |
| | | :multiple="item.options.multiple" show-checkbox default-expand-all style="width: 240px" |
| | | :check-strictly="item.options.checkStrictly" :multiple="item.options.multiple" |
| | | :show-checkbox="!item.options.hidecheckbox" default-expand-all style="width: 100%" |
| | | :props="{ |
| | | label: 'title', |
| | | id: 'id', |