mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2025-04-12 14:40:47 +08:00
fix: lint
This commit is contained in:
parent
25608dc5f5
commit
f3aa35e5ff
@ -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>
|
||||
|
@ -1,5 +1,5 @@
|
||||
<template>
|
||||
<modal v-model="value" />
|
||||
<modal :show="value" />
|
||||
</template>
|
||||
|
||||
<script>
|
||||
|
@ -90,11 +90,6 @@ export default {
|
||||
}
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
theme () {
|
||||
return this.NConfigProvider.$parent.theme
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
handleStartClick () {
|
||||
this.$router.push(
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user