update #50

Sapludināts
g7hoo sapludināja 1 revīzijas no projects/line-lb uz projects/line-test 2023-10-19 17:07:11 +08:00
4 mainīti faili ar 17 papildinājumiem un 5 dzēšanām

Parādīt failu

@ -190,6 +190,10 @@ export default {
type: Boolean,
default: false,
},
hasFile: {
type: Boolean,
default: false,
},
labelPosition: {
type: String,
default: 'right',
@ -232,7 +236,9 @@ export default {
dataForm: {
handler(val) {
this.form = JSON.parse(JSON.stringify(val));
this.form.files = this.form.files ?? [];
if (this.hasFile) {
this.form.files = this.form.files ?? [];
}
},
deep: true,
immediate: true,

Parādīt failu

@ -38,7 +38,7 @@
@close="cancel"
@cancel="cancel"
@confirm="submitForm">
<DialogForm v-if="open" ref="form" :dataForm="form" :rows="rows" />
<DialogForm v-if="open" ref="form" v-model="form" :rows="rows"/>
</base-dialog>
<!-- 抽屉 详情 -->

Parādīt failu

@ -44,8 +44,9 @@
ref="form"
label-position="top"
size="small"
:dataForm="form"
:rows="computedRows" />
v-model="form"
:rows="computedRows"
:has-file="true" />
</base-dialog>
<!-- 设备 详情 - 编辑 -->

Parādīt failu

@ -37,7 +37,12 @@
@close="cancel"
@cancel="cancel"
@confirm="submitForm">
<DialogForm v-if="open" ref="form" v-model="form" :rows="rows" />
<DialogForm
v-if="open"
ref="form"
v-model="form"
:rows="rows"
:has-file="true" />
</base-dialog>
</div>
</template>