-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(input): input-props override the props (#1576)
* fix(#1553):`input-props` override the props * fix:remove char
- Loading branch information
Showing
7 changed files
with
74 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# InputProps | ||
|
||
the original input props | ||
|
||
```html | ||
<n-space vertical> | ||
<n-input | ||
:input-props="{type:'url'}" | ||
v-model:value="value" | ||
placeholder="URL" | ||
/> | ||
<n-input | ||
:input-props="{type:'tel'}" | ||
v-model:value="value" | ||
placeholder="Tel" | ||
/> | ||
</n-space> | ||
``` | ||
|
||
```js | ||
import { defineComponent, ref } from 'vue' | ||
|
||
export default defineComponent({ | ||
setup () { | ||
return { | ||
value: ref(null) | ||
} | ||
} | ||
}) | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# 原生属性 | ||
|
||
想来它本应如此,这是它最初的样子 | ||
|
||
```html | ||
<n-space vertical> | ||
<n-input | ||
:input-props="{type:'url'}" | ||
v-model:value="value" | ||
placeholder="URL" | ||
/> | ||
<n-input | ||
:input-props="{type:'tel'}" | ||
v-model:value="value" | ||
placeholder="Tel" | ||
/> | ||
</n-space> | ||
``` | ||
|
||
```js | ||
import { defineComponent, ref } from 'vue' | ||
|
||
export default defineComponent({ | ||
setup () { | ||
return { | ||
value: ref(null) | ||
} | ||
} | ||
}) | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters