mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2025-03-01 13:36:55 +08:00
fix code bug
This commit is contained in:
parent
f20ea32c37
commit
915614fde7
@ -22,7 +22,7 @@ target
|
||||
|height|`number \| string`|`251`|Works when placement is `top` and `bottom`.|
|
||||
|mask-closable|`boolean`|`true`|Whether to emit `hide` event when click mask.|
|
||||
|drawer-style|`object`|`null`||
|
||||
|target|`() => HTMLElement`|`undefined`|The area where the drawer appears|
|
||||
|target|`() => HTMLElement`|`undefined`|The area where the drawer appears.|
|
||||
|drawer-class|`string`|`null`||
|
||||
|
||||
## Slots
|
||||
|
@ -7,7 +7,7 @@
|
||||
<n-button @click="activate('left')">Left</n-button>
|
||||
</n-button-group>
|
||||
<div
|
||||
ref="test"
|
||||
ref="target"
|
||||
style="position:relative;
|
||||
width:500px;
|
||||
height:500px;
|
||||
@ -34,7 +34,7 @@ export default {
|
||||
this.placement = placement
|
||||
},
|
||||
target () {
|
||||
return this.$refs.test
|
||||
return this.$refs.target
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -7,7 +7,7 @@
|
||||
<n-button @click="activate('left')">左</n-button>
|
||||
</n-button-group>
|
||||
<div
|
||||
ref="test"
|
||||
ref="target"
|
||||
style="position:relative;
|
||||
width:500px;
|
||||
height:500px;
|
||||
@ -35,7 +35,7 @@ export default {
|
||||
this.placement = placement
|
||||
},
|
||||
target () {
|
||||
return this.$refs.test
|
||||
return this.$refs.target
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1,4 +1,4 @@
|
||||
# Custom content
|
||||
# Custom Input Content
|
||||
```html
|
||||
<n-dynamic-input
|
||||
v-model="customValue"
|
||||
|
@ -18,7 +18,6 @@ depth
|
||||
icons
|
||||
```
|
||||
|
||||
|
||||
## Props
|
||||
|Name|Type|Default|Description|
|
||||
|-|-|-|-|
|
||||
|
@ -11,6 +11,7 @@ theme
|
||||
custom-icon
|
||||
depth
|
||||
```
|
||||
|
||||
```component
|
||||
icons
|
||||
```
|
||||
|
@ -45,7 +45,7 @@ export default {
|
||||
},
|
||||
computed: {
|
||||
mode () {
|
||||
return state.mode
|
||||
return this.state.mode
|
||||
},
|
||||
env () {
|
||||
return process.env.NODE_ENV
|
||||
|
@ -140,7 +140,7 @@ export default {
|
||||
},
|
||||
computed: {
|
||||
mode () {
|
||||
return state.mode
|
||||
return this.state.mode
|
||||
},
|
||||
zIndex () {
|
||||
const path = this.$route.path
|
||||
|
@ -70,6 +70,7 @@ export default {
|
||||
methods: {
|
||||
handleEditOnGithubClick () {
|
||||
window.open(this.gheUrl, '_blank')
|
||||
return false
|
||||
},
|
||||
}
|
||||
}
|
||||
|
@ -81,6 +81,7 @@ export default {
|
||||
methods: {
|
||||
handleEditOnGithubClick () {
|
||||
window.open(this.gheUrl, '_blank')
|
||||
return false
|
||||
},
|
||||
}
|
||||
}
|
||||
|
@ -136,6 +136,7 @@ export default {
|
||||
methods: {
|
||||
handleEditOnGithubClick () {
|
||||
window.open(this.url, '_blank')
|
||||
return false
|
||||
},
|
||||
toggleCodeDisplay () {
|
||||
this.showCode = !this.showCode
|
||||
|
Loading…
Reference in New Issue
Block a user