mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2025-03-07 13:48:31 +08:00
docs(grid): 更改栅格组件文档的用例 (#875)
This commit is contained in:
parent
f07530a7cd
commit
42af26485f
@ -38,9 +38,9 @@ Collapsing works in responsive layout.
|
||||
```
|
||||
|
||||
```js
|
||||
import { ref } from 'vue'
|
||||
import { defineComponent, ref } from 'vue'
|
||||
|
||||
export default {
|
||||
export default defineComponent({
|
||||
setup () {
|
||||
return {
|
||||
gridCollapsed: ref(false),
|
||||
@ -49,7 +49,7 @@ export default {
|
||||
showSuffix: ref(true)
|
||||
}
|
||||
}
|
||||
}
|
||||
})
|
||||
```
|
||||
|
||||
```css
|
||||
|
@ -38,9 +38,9 @@
|
||||
```
|
||||
|
||||
```js
|
||||
import { ref } from 'vue'
|
||||
import { defineComponent, ref } from 'vue'
|
||||
|
||||
export default {
|
||||
export default defineComponent({
|
||||
setup () {
|
||||
return {
|
||||
gridCollapsed: ref(false),
|
||||
@ -49,7 +49,7 @@ export default {
|
||||
showSuffix: ref(true)
|
||||
}
|
||||
}
|
||||
}
|
||||
})
|
||||
```
|
||||
|
||||
```css
|
||||
|
@ -10,7 +10,6 @@ gap
|
||||
offset
|
||||
responsive
|
||||
collapse
|
||||
grid-basic-debug
|
||||
```
|
||||
|
||||
## Props
|
||||
|
Loading…
Reference in New Issue
Block a user