mirror of
https://github.com/vuejs/babel-plugin-jsx.git
synced 2026-02-13 16:43:08 +08:00
refactor: lint
This commit is contained in:
@@ -106,7 +106,7 @@ const App = {
|
||||
```
|
||||
|
||||
```jsx
|
||||
import { withModifiers, defineComponent } from 'vue'
|
||||
import { defineComponent, withModifiers } from 'vue'
|
||||
|
||||
const App = defineComponent({
|
||||
setup() {
|
||||
@@ -173,13 +173,13 @@ const App = {
|
||||
```
|
||||
|
||||
```jsx
|
||||
<input v-model={[val, ['modifier']]} />
|
||||
<input v-model={[val, ['modifier']]} />;
|
||||
// Or
|
||||
<input v-model_modifier={val} />
|
||||
```
|
||||
|
||||
```jsx
|
||||
<A v-model={[val, 'argument', ['modifier']]} />
|
||||
<A v-model={[val, 'argument', ['modifier']]} />;
|
||||
// Or
|
||||
<input v-model:argument_modifier={val} />
|
||||
```
|
||||
@@ -231,7 +231,7 @@ h(A, {
|
||||
modifier: true,
|
||||
},
|
||||
'onUpdate:modelValue': ($event) => (foo = $event),
|
||||
bar: bar,
|
||||
bar,
|
||||
barModifiers: {
|
||||
modifier: true,
|
||||
},
|
||||
@@ -288,7 +288,7 @@ const App = {
|
||||
|
||||
// or
|
||||
|
||||
const App = {
|
||||
const App2 = {
|
||||
setup() {
|
||||
const slots = {
|
||||
default: () => <div>A</div>,
|
||||
@@ -299,7 +299,7 @@ const App = {
|
||||
}
|
||||
|
||||
// or you can use object slots when `enableObjectSlots` is not false.
|
||||
const App = {
|
||||
const App3 = {
|
||||
setup() {
|
||||
return () => (
|
||||
<>
|
||||
|
||||
Reference in New Issue
Block a user