1
lzhe
2024-09-26 7d59e8e2c727dd49d9552a8febc2af47c5b95a69
src/components/scForm/index.vue
@@ -4,7 +4,7 @@
 * @Author: sakuya
 * @Date: 2021年9月22日09:26:25
 * @LastEditors: Sneed
 * @LastEditTime: 2024-06-11 19:41:06
 * @LastEditTime: 2024-06-16 15:18:05
-->
<template>
@@ -26,8 +26,8 @@
                  <!-- 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
                        :disabled="item.disabled"></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'">
@@ -112,7 +112,8 @@
                  </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: 100%"
                        :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',