|
@@ -1,17 +1,7 @@
|
|
|
<template>
|
|
|
- <el-dialog
|
|
|
- :model-value="visible"
|
|
|
- @update:model-value="(val) => emit('update:visible', val)"
|
|
|
- :title="title"
|
|
|
- width="500"
|
|
|
- >
|
|
|
- <el-input
|
|
|
- v-model.trim="ivalue"
|
|
|
- :maxlength="100"
|
|
|
- show-word-limit
|
|
|
- type="textarea"
|
|
|
- placeholder="请输入"
|
|
|
- />
|
|
|
+ <el-dialog :model-value="visible" @update:model-value="(val) => emit('update:visible', val)" :title="title"
|
|
|
+ width="500">
|
|
|
+ <el-input v-model.trim="ivalue" :maxlength="100" show-word-limit type="textarea" :placeholder="placeholder" />
|
|
|
<template #footer>
|
|
|
<div class="dialog-footer">
|
|
|
<el-button @click="emit('update:visible', false)">取消</el-button>
|
|
@@ -25,12 +15,17 @@
|
|
|
import { ElMessage } from "element-plus";
|
|
|
import { ref, watchEffect } from "vue";
|
|
|
|
|
|
-const props = defineProps<{
|
|
|
+
|
|
|
+
|
|
|
+const props = withDefaults(defineProps<{
|
|
|
visible: boolean;
|
|
|
value: string;
|
|
|
title: string;
|
|
|
+ placeholder: string;
|
|
|
updateValue: (value: string) => void;
|
|
|
-}>();
|
|
|
+}>(), {
|
|
|
+ placeholder: '请输入',
|
|
|
+})
|
|
|
const emit = defineEmits<{
|
|
|
(e: "update:visible", visible: boolean): void;
|
|
|
}>();
|