fix: lint

This commit is contained in:
07akioni 2020-11-03 15:15:45 +08:00
parent 25608dc5f5
commit f3aa35e5ff
4 changed files with 8 additions and 11 deletions

View File

@ -1,5 +1,5 @@
<template>
<n-modal v-model="value">
<n-modal :show="value">
<template #header>
<n-input v-model="time" /> {{ time }}
<n-button>Look at it</n-button>

View File

@ -1,5 +1,5 @@
<template>
<modal v-model="value" />
<modal :show="value" />
</template>
<script>

View File

@ -90,11 +90,6 @@ export default {
}
}
},
computed: {
theme () {
return this.NConfigProvider.$parent.theme
}
},
methods: {
handleStartClick () {
this.$router.push(

View File

@ -9,15 +9,17 @@
<slot v-if="$slots.default" :value="value[index]" :index="index" />
<n-dynamic-input-input-preset
v-else-if="preset === 'input'"
v-model:value="value[index]"
:value="value[index]"
:parent-path="NFormItem && NFormItem.path"
:path="NFormItem && NFormItem.path + '[' + index + ']'"
@update:value="handleValueChange(index, $event)"
/>
<n-dynamic-input-pair-preset
v-else-if="preset === 'pair'"
v-model:value="value[index]"
:value="value[index]"
:parent-path="NFormItem && NFormItem.path"
:path="NFormItem && NFormItem.path + '[' + index + ']'"
@update:value="handleValueChange(index, $event)"
/>
<div class="n-dynamic-input-item__action">
<n-button-group>
@ -163,8 +165,8 @@ export default {
if (onInput) call(onInput, value)
if (onUpdateValue) call(onUpdateValue, value)
},
handleValueChange (value) {
this.value = value
handleValueChange (index, value) {
this.value[index] = value
},
createItem (e, index) {
const { onCreate } = this