Skip to content

Commit 23ffdb7

Browse files
committed
docs: update
1 parent 824ea5d commit 23ffdb7

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

active-rfcs/0000-infer-attrs.md

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,7 @@ const attrs = useAttrs<{bar: number}>()
3535
</script>
3636
```
3737

38-
<details>
39-
<summary>Compiled Output</summary>
38+
Compiled Output:
4039

4140
```js
4241
export default /*#__PURE__*/_defineComponent({
@@ -51,8 +50,6 @@ return { attrs, useAttrs, ref }
5150
}, { attrs: {} as { foo: number }})"
5251
```
5352
54-
</details>
55-
5653
5754
## Using `defineCustomElement`
5855
```tsx
@@ -85,7 +82,7 @@ const Comp = defineComponent<Props, Attrs>({})
8582
8683
There still has two ways to be chosen.
8784
88-
1. Defining the first param that already existing, just like [vuejs/rfcs#192](https://github.com/vuejs/rfcs/pull/192) did.
85+
### 1. Defining the first param that already existing, just like [vuejs/rfcs#192](https://github.com/vuejs/rfcs/pull/192) did.
8986
```tsx
9087
const Comp = defineComponent({
9188
attrs: {} as { bar: number },
@@ -100,7 +97,7 @@ const Comp = defineComponent({
10097
10198
const comp = <Comp foo={'str'} bar={1} />
10299
```
103-
2. Defining the second param as proposed.
100+
### 2. Defining the second param as proposed.
104101
```tsx
105102
const Comp = defineComponent({
106103
props: {

0 commit comments

Comments
 (0)