feat(chart): support configurable plot margins
All checks were successful
Package component / package (push) Successful in 7m2s
All checks were successful
Package component / package (push) Successful in 7m2s
This commit is contained in:
@@ -8,6 +8,35 @@ const model = defineModel<DemoControlPanelModel>('model', { required: true })
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<section class="control-section">
|
||||
<h2>绘图区边距</h2>
|
||||
<div class="plot-margin-controls">
|
||||
<label class="frame-style-control">
|
||||
<span>上边距</span>
|
||||
<InputNumber
|
||||
v-model:value="model.plotMarginTop"
|
||||
:min="0"
|
||||
:max="300"
|
||||
:step="1"
|
||||
addon-after="px"
|
||||
size="small"
|
||||
aria-label="绘图区上边距"
|
||||
/>
|
||||
</label>
|
||||
<label class="frame-style-control">
|
||||
<span>下边距</span>
|
||||
<InputNumber
|
||||
v-model:value="model.plotMarginBottom"
|
||||
:min="0"
|
||||
:max="300"
|
||||
:step="1"
|
||||
addon-after="px"
|
||||
size="small"
|
||||
aria-label="绘图区下边距"
|
||||
/>
|
||||
</label>
|
||||
</div>
|
||||
</section>
|
||||
<section class="control-section">
|
||||
<div class="control-section__header">
|
||||
<h2>零值参考线</h2>
|
||||
|
||||
Reference in New Issue
Block a user