提交 828bacb6 编写于 作者: jlj05024111@163.com's avatar jlj05024111@163.com

feat: 更新编辑器

上级 85f39432
...@@ -46,6 +46,8 @@ export const IBizRadio = defineComponent({ ...@@ -46,6 +46,8 @@ export const IBizRadio = defineComponent({
<div <div
class={[ class={[
this.ns.b(), this.ns.b(),
this.ns.is('button', this.c.editorParams.TYPE === 'BUTTON'),
this.ns.is('showicon', this.c.editorParams.SHOWICON === 'TRUE'),
this.disabled ? this.ns.m('disabled') : '', this.disabled ? this.ns.m('disabled') : '',
this.readonly ? this.ns.m('readonly') : '', this.readonly ? this.ns.m('readonly') : '',
]} ]}
......
...@@ -22,8 +22,8 @@ export const IBizInputNumber = defineComponent({ ...@@ -22,8 +22,8 @@ export const IBizInputNumber = defineComponent({
() => props.value, () => props.value,
(newVal, oldVal) => { (newVal, oldVal) => {
if (newVal !== oldVal) { if (newVal !== oldVal) {
const number = isNilOrEmpty(newVal) ? '' : Number(newVal); const number = isNilOrEmpty(newVal) ? null : Number(newVal);
currentVal.value = Number.isNaN(number) ? '' : number; currentVal.value = Number.isNaN(number) ? null : number;
} }
}, },
{ immediate: true }, { immediate: true },
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册