Skip to content

Commit

Permalink
fix: min value
Browse files Browse the repository at this point in the history
  • Loading branch information
xachary committed Oct 30, 2024
1 parent 84b485c commit 152135f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ watch(() => linkSettingsModel.value, () => {
@clear="pageSettingsModel && (pageSettingsModel.stroke = Render.AssetSettingsDefault.stroke)"></n-color-picker>
</n-form-item>
<n-form-item label="线条粗细" path="strokeWidth">
<n-input-number v-model:value="pageSettingsModel.strokeWidth" placeholder="Input" />
<n-input-number v-model:value="pageSettingsModel.strokeWidth" placeholder="Input" :min="1" />
</n-form-item>
<n-form-item label="填充颜色" path="fill">
<n-color-picker v-model:value="pageSettingsModelFill" @update:show="(v: boolean) => {
Expand All @@ -276,7 +276,7 @@ watch(() => linkSettingsModel.value, () => {
@clear="pageSettingsModel && (pageSettingsModel.linkStroke = Render.LinkSettingsDefault.stroke)"></n-color-picker>
</n-form-item>
<n-form-item label="连接线粗细" path="strokeWidth">
<n-input-number v-model:value="pageSettingsModel.linkStrokeWidth" placeholder="Input" />
<n-input-number v-model:value="pageSettingsModel.linkStrokeWidth" placeholder="Input" :min="1" />
</n-form-item>
</n-form>
</n-tab-pane>
Expand Down

0 comments on commit 152135f

Please sign in to comment.