-
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.
feat(input-number): add
justify-icon
prop (#2723)
* 🐛 fix(input-number): add `justify-icon` props justify-icon props can make input-number control(-+) icon stay around input ex: [- {number} +] * Update src/input-number/src/InputNumber.tsx * Update src/input-number/src/InputNumber.tsx Co-authored-by: 07akioni <[email protected]>
- Loading branch information
Showing
5 changed files
with
41 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<markdown> | ||
# Justify Icon | ||
</markdown> | ||
<template> | ||
<n-space vertical> | ||
<n-input-number v-model:value="value" justify-icon /> | ||
<n-input-number v-model:value="value" justify-icon> | ||
<template #prefix> | ||
$ | ||
</template> | ||
</n-input-number> | ||
<n-input-number v-model:value="value" justify-icon> | ||
<template #suffix> | ||
฿ | ||
</template> | ||
</n-input-number> | ||
</n-space> | ||
</template> | ||
<script lang="ts"> | ||
import { defineComponent, ref } from 'vue' | ||
export default defineComponent({ | ||
setup () { | ||
return { | ||
value: ref(0) | ||
} | ||
} | ||
}) | ||
</script> |
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