fix rules แสดงความคิดเห็น ==> popup แสดงความคิดเห็น
This commit is contained in:
parent
b8d74d6302
commit
fa4ff7eb1e
2 changed files with 11 additions and 2 deletions
|
|
@ -28,6 +28,10 @@ const props = defineProps({
|
|||
textReport: {
|
||||
type: String,
|
||||
},
|
||||
isRules: {
|
||||
type: Boolean,
|
||||
default: true,
|
||||
},
|
||||
});
|
||||
watch(props, () => {
|
||||
if (modal.value === true && props.textReport == "") {
|
||||
|
|
@ -68,7 +72,7 @@ function closeModal() {
|
|||
outlined
|
||||
dense
|
||||
lazy-rules
|
||||
:rules="[(val:string) => !!val || `กรุณากรอก${label}`]"
|
||||
:rules="isRules ? [(val:string) => !!val || `กรุณากรอก${label}`] : []"
|
||||
v-model="reason"
|
||||
:label="`${label}`"
|
||||
/>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue