Merge pull request #5805 from jahnli/fix-split-example

feat:(n-split): add min max value for the example
This commit is contained in:
jahnli 2024-03-22 09:57:21 +08:00 committed by GitHub
commit 046ee39941
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 14 additions and 2 deletions

View File

@ -4,7 +4,13 @@
<template>
<n-flex vertical>
<n-input-number v-model:value="split" :step="0.1" clearable />
<n-input-number
v-model:value="split"
:step="0.1"
clearable
:max="1"
:min="0"
/>
<NSplit v-model:size="split" style="height: 200px">
<template #1>
<div style="width: 100%; background-color: black" />

View File

@ -4,7 +4,13 @@
<template>
<n-flex vertical>
<n-input-number v-model:value="split" :step="0.1" clearable />
<n-input-number
v-model:value="split"
:step="0.1"
clearable
:max="1"
:min="0"
/>
<NSplit v-model:size="split" style="height: 200px">
<template #1>
<div style="width: 100%; background-color: black" />