ui 优化

This commit is contained in:
zenglh committed 2023-09-06 17:23:30 +08:00
1 parent c0270b7f6a
commit e7ea27cf6b
8 files changed
+118 -130

No files matched your search

+3 -1
View File
@@ -30,6 +30,7 @@
v-model="formItem.answer"
:items="formItem.optionList"
dense single-line filled
class="jh-v-input"
:rules="validationRules.requireRules"
:readonly="typeof readonly == 'boolean'? readonly: readonly.indexOf(formItem.id) > -1"
></v-select>
@@ -41,6 +42,7 @@
:items="formItem.optionList"
multiple
dense single-line filled
class="jh-v-input"
:rules="validationRules.requireRules"
:readonly="typeof readonly == 'boolean'? readonly: readonly.indexOf(formItem.id) > -1"
></v-select>
@@ -59,7 +61,7 @@
<v-menu v-if="formItem.type === 'date'" class="jh-v-input" :close-on-content-click="false" v-model="isDataPickerShown"
transition="scale-transition" offset-y min-width="auto">
<template v-slot:activator="{on, attrs}">
<v-text-field class="jh-v-input" dense single-line filled readonly v-on="on" v-bind="attr" label="出生日期" v-model="formItem.answer"
<v-text-field class="jh-v-input" dense single-line filled readonly v-on="on" v-bind="attrs" label="出生日期" v-model="formItem.answer"
:rules="validationRules.requireRules" :readonly="readonly"></v-text-field>
</template>
<v-date-picker color="green lighten-1" elevation="20" @input="isDataPickerShown = false" v-model="formItem.answer"></v-date-picker>