|
@@ -4,7 +4,7 @@ import { ElInput } from 'element-plus'
|
|
|
|
|
|
const formData = reactive<any>({})
|
|
|
const formConfig = reactive<BasicForm>({
|
|
|
- span: 24,
|
|
|
+ span: 12,
|
|
|
props: {
|
|
|
labelPosition: 'right'
|
|
|
},
|
|
@@ -36,7 +36,7 @@ const formConfig = reactive<BasicForm>({
|
|
|
type: 'area',
|
|
|
props: {
|
|
|
props: {
|
|
|
- value: 'id'
|
|
|
+ multiple: true
|
|
|
}
|
|
|
}
|
|
|
},
|
|
@@ -324,54 +324,52 @@ const handleInputConfirm = () => {
|
|
|
</script>
|
|
|
|
|
|
<template>
|
|
|
- <div class="h-full bg-white p-16px pt-50px flex justify-center overflow-auto">
|
|
|
- <div class="w-500px">
|
|
|
- <pro-form :formConfig="formConfig" :formData="formData" :create="create" :update="update" ref="proFormRef">
|
|
|
- <template #prepend1> test1 </template>
|
|
|
- <template #append1> test1 </template>
|
|
|
- <template #cDefault="{ node, data }">
|
|
|
- <span>{{ data.label }}</span>
|
|
|
- <span v-if="!node.isLeaf"> ({{ data.children.length }}) </span>
|
|
|
- </template>
|
|
|
- <template #file>
|
|
|
- <el-button type="primary">上传文件</el-button>
|
|
|
- </template>
|
|
|
- <template #tip>
|
|
|
- <div><el-text>请上传750*450px 的图片</el-text></div>
|
|
|
- </template>
|
|
|
+ <div class="h-full bg-white p-16px pt-20px overflow-auto">
|
|
|
+ <pro-form :formConfig="formConfig" :formData="formData" :create="create" :update="update" ref="proFormRef">
|
|
|
+ <template #prepend1> test1 </template>
|
|
|
+ <template #append1> test1 </template>
|
|
|
+ <template #cDefault="{ node, data }">
|
|
|
+ <span>{{ data.label }}</span>
|
|
|
+ <span v-if="!node.isLeaf"> ({{ data.children.length }}) </span>
|
|
|
+ </template>
|
|
|
+ <template #file>
|
|
|
+ <el-button type="primary">上传文件</el-button>
|
|
|
+ </template>
|
|
|
+ <template #tip>
|
|
|
+ <div><el-text>请上传750*450px 的图片</el-text></div>
|
|
|
+ </template>
|
|
|
|
|
|
- <template #password>
|
|
|
- <el-input type="password" name="password" v-model="formData.password" placeholder="请输入密码"></el-input>
|
|
|
- <el-text type="info">密码需包含大写字母、小写字母、数字</el-text>
|
|
|
- </template>
|
|
|
- <template #customDefault>
|
|
|
- <el-space wrap>
|
|
|
- <el-tag
|
|
|
- v-for="tag in dynamicTags"
|
|
|
- :key="tag"
|
|
|
- size="small"
|
|
|
- closable
|
|
|
- :disable-transitions="false"
|
|
|
- @close="handleClose(tag)"
|
|
|
- >
|
|
|
- {{ tag }}
|
|
|
- </el-tag>
|
|
|
- <el-input
|
|
|
- v-if="inputVisible"
|
|
|
- ref="InputRef"
|
|
|
- v-model="inputValue"
|
|
|
- class="ml-1 w-20"
|
|
|
- size="small"
|
|
|
- @keyup.enter="handleInputConfirm"
|
|
|
- @blur="handleInputConfirm"
|
|
|
- />
|
|
|
- <el-button v-else class="button-new-tag ml-1" size="small" @click="showInput"> + New Tag </el-button>
|
|
|
- </el-space>
|
|
|
- </template>
|
|
|
- </pro-form>
|
|
|
- <div class="text-center">
|
|
|
- <el-button type="primary" @click="handleSave">保存</el-button>
|
|
|
- </div>
|
|
|
+ <template #password>
|
|
|
+ <el-input type="password" name="password" v-model="formData.password" placeholder="请输入密码"></el-input>
|
|
|
+ <el-text type="info">密码需包含大写字母、小写字母、数字</el-text>
|
|
|
+ </template>
|
|
|
+ <template #customDefault>
|
|
|
+ <el-space wrap>
|
|
|
+ <el-tag
|
|
|
+ v-for="tag in dynamicTags"
|
|
|
+ :key="tag"
|
|
|
+ size="small"
|
|
|
+ closable
|
|
|
+ :disable-transitions="false"
|
|
|
+ @close="handleClose(tag)"
|
|
|
+ >
|
|
|
+ {{ tag }}
|
|
|
+ </el-tag>
|
|
|
+ <el-input
|
|
|
+ v-if="inputVisible"
|
|
|
+ ref="InputRef"
|
|
|
+ v-model="inputValue"
|
|
|
+ class="ml-1 w-20"
|
|
|
+ size="small"
|
|
|
+ @keyup.enter="handleInputConfirm"
|
|
|
+ @blur="handleInputConfirm"
|
|
|
+ />
|
|
|
+ <el-button v-else class="button-new-tag ml-1" size="small" @click="showInput"> + New Tag </el-button>
|
|
|
+ </el-space>
|
|
|
+ </template>
|
|
|
+ </pro-form>
|
|
|
+ <div class="text-center">
|
|
|
+ <el-button type="primary" @click="handleSave">保存</el-button>
|
|
|
</div>
|
|
|
</div>
|
|
|
</template>
|