fix: 修复checkbox初始化错误

This commit is contained in:
zxc 2024-09-13 23:27:51 +08:00
parent 2e4a3df988
commit b7b11d0dc9
2 changed files with 1 additions and 2 deletions

View File

@ -8,7 +8,7 @@
@change="$event => handleChange($event)" @change="$event => handleChange($event)"
> >
<span class="checkbox-input"></span> <span class="checkbox-input"></span>
<input class="checkbox-original" type="checkbox"> <input class="checkbox-original" type="checkbox" :checked="value">
<span class="checkbox-label"> <span class="checkbox-label">
<slot></slot> <slot></slot>
</span> </span>

View File

@ -192,7 +192,6 @@ const updateFill = (value: string) => {
// //
const updateOptions = (optionProps: ChartOptions) => { const updateOptions = (optionProps: ChartOptions) => {
console.log(optionProps)
const _handleElement = handleElement.value as PPTChartElement const _handleElement = handleElement.value as PPTChartElement
const newOptions = { ..._handleElement.options, ...optionProps } const newOptions = { ..._handleElement.options, ...optionProps }