fix code bug

This commit is contained in:
songwanli2025@163.com 2020-03-17 18:54:21 +08:00
parent f20ea32c37
commit 915614fde7
11 changed files with 12 additions and 9 deletions

View File

@ -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

View File

@ -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
}
}
}

View File

@ -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
}
}
}

View File

@ -1,4 +1,4 @@
# Custom content
# Custom Input Content
```html
<n-dynamic-input
v-model="customValue"

View File

@ -18,7 +18,6 @@ depth
icons
```
## Props
|Name|Type|Default|Description|
|-|-|-|-|

View File

@ -11,6 +11,7 @@ theme
custom-icon
depth
```
```component
icons
```

View File

@ -45,7 +45,7 @@ export default {
},
computed: {
mode () {
return state.mode
return this.state.mode
},
env () {
return process.env.NODE_ENV

View File

@ -140,7 +140,7 @@ export default {
},
computed: {
mode () {
return state.mode
return this.state.mode
},
zIndex () {
const path = this.$route.path

View File

@ -70,6 +70,7 @@ export default {
methods: {
handleEditOnGithubClick () {
window.open(this.gheUrl, '_blank')
return false
},
}
}

View File

@ -81,6 +81,7 @@ export default {
methods: {
handleEditOnGithubClick () {
window.open(this.gheUrl, '_blank')
return false
},
}
}

View File

@ -136,6 +136,7 @@ export default {
methods: {
handleEditOnGithubClick () {
window.open(this.url, '_blank')
return false
},
toggleCodeDisplay () {
this.showCode = !this.showCode