Skip to content

Commit

Permalink
chore: change eslint config
Browse files Browse the repository at this point in the history
  • Loading branch information
zhouxinyong committed Jun 28, 2022
1 parent 3018a59 commit fbeee0e
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 5 deletions.
5 changes: 4 additions & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,10 @@
"@typescript-eslint/ban-ts-comment": "off",
"no-console": "error",
"vue/multi-word-component-names": "off",
"vue/one-component-per-file": "off"
"vue/one-component-per-file": "off",
"vue/require-default-prop": "off",
"vue/require-prop-types": "off",
"vue/v-on-event-hyphenation": "off"
},
"overrides": [
{
Expand Down
6 changes: 3 additions & 3 deletions docs/demos/index.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<FormProvider :form="form">
<FormProvider :form="formInstance">
<Space>
<Field
name="price"
Expand Down Expand Up @@ -48,13 +48,13 @@ import { createForm } from '@formily/core'
import { InputNumber, FormItem, Space } from '@formily/antdv-x3'
import { FormProvider, FormConsumer, Field } from '@formily/vue'
const form = createForm()
const formInstance = createForm()
export default {
components: { FormProvider, FormConsumer, Field, FormItem, Space },
data() {
return {
form,
formInstance,
InputNumber,
FormItem,
}
Expand Down
6 changes: 5 additions & 1 deletion packages/components/src/array-base/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,11 @@ const ArrayBaseAddition = defineComponent({

const ArrayBaseRemove = defineComponent({
name: 'ArrayBaseRemove',
props: ['title', 'index'],
// props: ['title', 'index'],
props: {
title: String,
index: Number,
},
setup(props, { attrs }) {
const indexRef = useIndex(props.index)
const base = useArray()
Expand Down

0 comments on commit fbeee0e

Please sign in to comment.