Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
I
ibizlab-generator
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
ibiz4jteam
ibizlab-generator
提交
85348837
提交
85348837
编写于
3月 18, 2022
作者:
邱定凯
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
update:更新编辑器发布逻辑
上级
366b75a1
变更
13
显示空白字符变更
内嵌
并排
正在显示
13 个修改的文件
包含
91 行增加
和
67 行删除
+91
-67
checkbox.hbs
.../resources/templ/r7/@macro/front-end/editors/checkbox.hbs
+1
-1
input.hbs
...ain/resources/templ/r7/@macro/front-end/editors/input.hbs
+13
-9
rating.hbs
...in/resources/templ/r7/@macro/front-end/editors/rating.hbs
+10
-6
slider.hbs
...in/resources/templ/r7/@macro/front-end/editors/slider.hbs
+13
-9
span.hbs
...main/resources/templ/r7/@macro/front-end/editors/span.hbs
+11
-9
stepper.hbs
...n/resources/templ/r7/@macro/front-end/editors/stepper.hbs
+1
-1
switch.hbs
...in/resources/templ/r7/@macro/front-end/editors/switch.hbs
+8
-4
upload.hbs
...in/resources/templ/r7/@macro/front-end/editors/upload.hbs
+19
-13
app-checkbox.vue
...l/r7/app_{{apps}}/src/components/editors/app-checkbox.vue
+3
-3
app-rating.vue
...mpl/r7/app_{{apps}}/src/components/editors/app-rating.vue
+3
-3
app-slider.vue
...mpl/r7/app_{{apps}}/src/components/editors/app-slider.vue
+3
-3
app-stepper.vue
...pl/r7/app_{{apps}}/src/components/editors/app-stepper.vue
+3
-3
app-switch.vue
...mpl/r7/app_{{apps}}/src/components/editors/app-switch.vue
+3
-3
未找到文件。
modules/ibizlab-generator-core/src/main/resources/templ/r7/@macro/front-end/editors/checkbox.hbs
浏览文件 @
85348837
...
@@ -22,7 +22,7 @@
...
@@ -22,7 +22,7 @@
:disabled=
"state.detailsModel.
{{
item
.
name
}}
.disabled"
:disabled=
"state.detailsModel.
{{
item
.
name
}}
.disabled"
{{/if}}
{{/if}}
{{#if
item
.
psEditor
.
readOnly
}}
{{#if
item
.
psEditor
.
readOnly
}}
:read
o
nly=
"
{{
item
.
psEditor
.
readOnly
}}
"
:read
O
nly=
"
{{
item
.
psEditor
.
readOnly
}}
"
{{/if}}
{{/if}}
{{#if
(
or
(
eq
ctrlType
'form'
)
(
eq
ctrlType
'panel'
))
}}
{{#if
(
or
(
eq
ctrlType
'form'
)
(
eq
ctrlType
'panel'
))
}}
:value=
"state.data.
{{
item
.
psEditor
.
name
}}
"
:value=
"state.data.
{{
item
.
psEditor
.
name
}}
"
...
...
modules/ibizlab-generator-core/src/main/resources/templ/r7/@macro/front-end/editors/input.hbs
浏览文件 @
85348837
...
@@ -25,16 +25,20 @@
...
@@ -25,16 +25,20 @@
placeholder=
"
{{
item
.
psEditor
.
placeHolder
}}
"
placeholder=
"
{{
item
.
psEditor
.
placeHolder
}}
"
{{/if}}
{{/if}}
{{#if
item
.
psEditor
.
readOnly
}}
{{#if
item
.
psEditor
.
readOnly
}}
:read
o
nly=
"
{{
item
.
psEditor
.
readOnly
}}
"
:read
O
nly=
"
{{
item
.
psEditor
.
readOnly
}}
"
{{/if}}
{{/if}}
{{#if
item
.
psEditor
.
maxValue
}}
{{#if
item
.
psEditor
.
editorParams
}}
:max=
"
{{
item
.
psEditor
.
maxValue
}}
"
{{#
jsonParse
item
.
psEditor
.
editorParams
}}
{{/if}}
{{#if
max
}}
{{#if
item
.
psEditor
.
minValue
}}
:max=
"
{{
max
}}
"
:min=
"
{{
item
.
psEditor
.
minValue
}}
"
{{/if}}
{{/if}}
{{#if
min
}}
{{#if
item
.
psEditor
.
precision
}}
:min=
"
{{
min
}}
"
:precision=
"
{{
item
.
psEditor
.
precision
}}
"
{{/if}}
{{#if
precision
}}
:precision=
"
{{
precision
}}
"
{{/if}}
{{/
jsonParse
}}
{{/if}}
{{/if}}
{{#if
item
.
psEditor
.
maxLength
}}
{{#if
item
.
psEditor
.
maxLength
}}
:maxLength=
"
{{
item
.
psEditor
.
maxLength
}}
"
:maxLength=
"
{{
item
.
psEditor
.
maxLength
}}
"
...
...
modules/ibizlab-generator-core/src/main/resources/templ/r7/@macro/front-end/editors/rating.hbs
浏览文件 @
85348837
...
@@ -22,13 +22,17 @@
...
@@ -22,13 +22,17 @@
:disabled=
"state.detailsModel.
{{
item
.
name
}}
.disabled"
:disabled=
"state.detailsModel.
{{
item
.
name
}}
.disabled"
{{/if}}
{{/if}}
{{#if
item
.
psEditor
.
readOnly
}}
{{#if
item
.
psEditor
.
readOnly
}}
:read
o
nly=
"
{{
item
.
psEditor
.
readOnly
}}
"
:read
O
nly=
"
{{
item
.
psEditor
.
readOnly
}}
"
{{/if}}
{{/if}}
{{#if
item
.
psEditor
.
editorParams
.
maxValue
}}
{{#if
item
.
psEditor
.
editorParams
}}
:max=
"
{{
item
.
psEditor
.
editorParams
.
maxValue
}}
"
{{#
jsonParse
item
.
psEditor
.
editorParams
}}
{{/if}}
{{#if
max
}}
{{#if
item
.
psEditor
.
editorParams
.
allowHalf
}}
:max=
"
{{
max
}}
"
:allowHalf=
"
{{
item
.
psEditor
.
editorParams
.
allowHalf
}}
"
{{/if}}
{{#if
allowHalf
}}
:allowHalf=
"
{{
allowHalf
}}
"
{{/if}}
{{/
jsonParse
}}
{{/if}}
{{/if}}
{{#if
(
or
(
eq
ctrlType
'form'
)
(
eq
ctrlType
'panel'
))
}}
{{#if
(
or
(
eq
ctrlType
'form'
)
(
eq
ctrlType
'panel'
))
}}
:value=
"state.data.
{{
item
.
psEditor
.
name
}}
"
:value=
"state.data.
{{
item
.
psEditor
.
name
}}
"
...
...
modules/ibizlab-generator-core/src/main/resources/templ/r7/@macro/front-end/editors/slider.hbs
浏览文件 @
85348837
...
@@ -23,16 +23,20 @@
...
@@ -23,16 +23,20 @@
:disabled=
"state.detailsModel.
{{
item
.
name
}}
.disabled"
:disabled=
"state.detailsModel.
{{
item
.
name
}}
.disabled"
{{/if}}
{{/if}}
{{#if
item
.
psEditor
.
readOnly
}}
{{#if
item
.
psEditor
.
readOnly
}}
:read
o
nly=
"
{{
item
.
psEditor
.
readOnly
}}
"
:read
O
nly=
"
{{
item
.
psEditor
.
readOnly
}}
"
{{/if}}
{{/if}}
{{#if
item
.
psEditor
.
editorParams
.
stepValue
}}
{{#if
item
.
psEditor
.
editorParams
}}
:step=
"
{{
item
.
psEditor
.
editorParams
.
stepValue
}}
"
{{#
jsonParse
item
.
psEditor
.
editorParams
}}
{{/if}}
{{#if
step
}}
{{#if
item
.
psEditor
.
editorParams
.
minValue
}}
:step=
"
{{
step
}}
"
:min=
"
{{
item
.
psEditor
.
editorParams
.
minValue
}}
"
{{/if}}
{{/if}}
{{#if
min
}}
{{#if
item
.
psEditor
.
editorParams
.
maxValue
}}
:min=
"
{{
min
}}
"
:max=
"
{{
item
.
psEditor
.
editorParams
.
maxValue
}}
"
{{/if}}
{{#if
max
}}
:max=
"
{{
max
}}
"
{{/if}}
{{/
jsonParse
}}
{{/if}}
{{/if}}
{{#if
(
or
(
eq
ctrlType
'form'
)
(
eq
ctrlType
'panel'
))
}}
{{#if
(
or
(
eq
ctrlType
'form'
)
(
eq
ctrlType
'panel'
))
}}
:value=
"state.data.
{{
item
.
psEditor
.
name
}}
"
:value=
"state.data.
{{
item
.
psEditor
.
name
}}
"
...
...
modules/ibizlab-generator-core/src/main/resources/templ/r7/@macro/front-end/editors/span.hbs
浏览文件 @
85348837
...
@@ -28,19 +28,21 @@
...
@@ -28,19 +28,21 @@
{{#if
item
.
dataType
}}
{{#if
item
.
dataType
}}
:dataType=
"
{{
item
.
dataType
}}
"
:dataType=
"
{{
item
.
dataType
}}
"
{{/if}}
{{/if}}
{{#if
item
.
psEditor
.
editorParams
.
unitName
}}
{{#if
item
.
psEditor
.
editorParams
}}
unitName=
"
{{
item
.
psEditor
.
editorParams
.
unitName
}}
"
{{#
jsonParse
item
.
psEditor
.
editorParams
}}
{{/if}}
{{#if
unitName
}}
{{#if
item
.
psEditor
.
editorParams
.
valueFormat
}}
unitName=
"
{{
unitName
}}
"
valueFormat=
"
{{
item
.
psEditor
.
editorParams
.
valueFormat
}}
"
{{/if}}
{{else
if
item
.
valueFormat
}}
{{#if
precision
}}
:precision=
"
{{
precision
}}
"
{{/if}}
{{/
jsonParse
}}
{{/if}}
{{#if
item
.
valueFormat
}}
valueFormat=
"
{{
item
.
valueFormat
}}
"
valueFormat=
"
{{
item
.
valueFormat
}}
"
{{else
if
item
.
psAppDEField
.
valueFormat
}}
{{else
if
item
.
psAppDEField
.
valueFormat
}}
valueFormat=
"
{{
item
.
psAppDEField
.
valueFormat
}}
"
valueFormat=
"
{{
item
.
psAppDEField
.
valueFormat
}}
"
{{/if}}
{{/if}}
{{#if
item
.
psEditor
.
editorParams
.
precision
}}
:precision=
"
{{
item
.
psEditor
.
editorParams
.
precision
}}
"
{{/if}}
{{#if
item
.
psEditor
.
psNavigateContexts
}}
{{#if
item
.
psEditor
.
psNavigateContexts
}}
:localContext=
"
{{>
@macro
/
front-end
/
common
/
navparam
.
hbs
appNavParams
=
item
.
psEditor
.
psNavigateContexts
}}
"
:localContext=
"
{{>
@macro
/
front-end
/
common
/
navparam
.
hbs
appNavParams
=
item
.
psEditor
.
psNavigateContexts
}}
"
{{/if}}
{{/if}}
...
...
modules/ibizlab-generator-core/src/main/resources/templ/r7/@macro/front-end/editors/stepper.hbs
浏览文件 @
85348837
...
@@ -22,7 +22,7 @@
...
@@ -22,7 +22,7 @@
:disabled=
"state.detailsModel.
{{
item
.
name
}}
.disabled"
:disabled=
"state.detailsModel.
{{
item
.
name
}}
.disabled"
{{/if}}
{{/if}}
{{#if
item
.
psEditor
.
readOnly
}}
{{#if
item
.
psEditor
.
readOnly
}}
:read
o
nly=
"
{{
item
.
psEditor
.
readOnly
}}
"
:read
O
nly=
"
{{
item
.
psEditor
.
readOnly
}}
"
{{/if}}
{{/if}}
{{#if
item
.
psEditor
.
editorParams
}}
{{#if
item
.
psEditor
.
editorParams
}}
{{#
jsonParse
item
.
psEditor
.
editorParams
}}
{{#
jsonParse
item
.
psEditor
.
editorParams
}}
...
...
modules/ibizlab-generator-core/src/main/resources/templ/r7/@macro/front-end/editors/switch.hbs
浏览文件 @
85348837
...
@@ -21,11 +21,15 @@
...
@@ -21,11 +21,15 @@
{{else
if
(
eq
ctrlType
'panel'
)
}}
{{else
if
(
eq
ctrlType
'panel'
)
}}
:disabled=
"state.detailsModel.
{{
item
.
name
}}
.disabled"
:disabled=
"state.detailsModel.
{{
item
.
name
}}
.disabled"
{{/if}}
{{/if}}
{{#if
item
.
psEditor
.
readOnly
}}
{{#if}}
:readonly=
"
{{
item
.
psEditor
.
readOnly
}}
"
{{#
jsonParse
item
.
psEditor
.
editorParams
}}
{{#if
size
}}
:size=
"
{{
size
}}
"
{{/if}}
{{/
jsonParse
}}
{{/if}}
{{/if}}
{{#if
(
and
item
.
psEditor
.
editorParams
item
.
psEditor
.
editorParams
.
size
)
}}
{{#if
item
.
psEditor
.
readOnly
}}
size=
"
{{
item
.
psEditor
.
editorParams
.
size
}}
"
:readOnly=
"
{{
item
.
psEditor
.
readOnly
}}
"
{{/if}}
{{/if}}
{{#if
(
or
(
eq
ctrlType
'form'
)
(
eq
ctrlType
'panel'
))
}}
{{#if
(
or
(
eq
ctrlType
'form'
)
(
eq
ctrlType
'panel'
))
}}
:value=
"state.data.
{{
item
.
psEditor
.
name
}}
"
:value=
"state.data.
{{
item
.
psEditor
.
name
}}
"
...
...
modules/ibizlab-generator-core/src/main/resources/templ/r7/@macro/front-end/editors/upload.hbs
浏览文件 @
85348837
...
@@ -8,17 +8,18 @@
...
@@ -8,17 +8,18 @@
{{#
eq
ctrlType
'form'
}}
{{#
eq
ctrlType
'form'
}}
name=
"
{{
item
.
codeName
}}
"
name=
"
{{
item
.
codeName
}}
"
{{/
eq
}}
{{/
eq
}}
{{#if
item
.
psEditor
.
editorParams
.
method
}}
{{#if
item
.
psEditor
.
editorParams
}}
method=
"
{{
item
.
psEditor
.
editorParams
.
method
}}
"
{{#
jsonParse
item
.
psEditor
.
editorParams
}}
{{/if}}
{{#if
method
}}
{{#if
item
.
psEditor
.
editorParams
.
multiple
}}
method=
"
{{
method
}}
"
multiple=
"
{{
item
.
psEditor
.
editorParams
.
multiple
}}
"
{{/if}}
{{/if}}
{{#if
multiple
}}
{{#if
item
.
psEditor
.
editorParams
.
showUploadList
}}
multiple=
"
{{
multiple
}}
"
:showUploadList=
"
{{
item
.
psEditor
.
editorParams
.
showUploadList
}}
"
{{/if}}
{{/if}}
{{#if
showUploadList
}}
{{#if
item
.
psEditor
.
editorParams
.
tooltip
}}
:showUploadList=
"
{{
showUploadList
}}
"
tooltip=
"
{{
item
.
psEditor
.
editorParams
.
tooltip
}}
"
{{/if}}
{{/
jsonParse
}}
{{/if}}
{{/if}}
{{#if
(
eq
ctrlType
'form'
)
}}
{{#if
(
eq
ctrlType
'form'
)
}}
:disabled=
"state.detailsModel.
{{
item
.
codeName
}}
.disabled"
:disabled=
"state.detailsModel.
{{
item
.
codeName
}}
.disabled"
...
@@ -36,8 +37,13 @@
...
@@ -36,8 +37,13 @@
{{#if
item
.
psEditor
.
readOnly
}}
{{#if
item
.
psEditor
.
readOnly
}}
:readonly=
"
{{
item
.
psEditor
.
readOnly
}}
"
:readonly=
"
{{
item
.
psEditor
.
readOnly
}}
"
{{/if}}
{{/if}}
{{#if
item
.
psEditor
.
maxFileCount
}}
{{!-- TODO maxFileContent识别 --}}
:limit=
"
{{
item
.
psEditor
.
maxFileCount
}}
"
{{#if
item
.
psEditor
.
editorParams
}}
{{#
jsonParse
item
.
psEditor
.
editorParams
}}
{{#if
limit
}}
:limit=
"
{{
limit
}}
"
{{/if}}
{{/
jsonParse
}}
{{/if}}
{{/if}}
{{#
eq
item
.
psEditor
.
editorType
"PICTURE"
}}
{{#
eq
item
.
psEditor
.
editorType
"PICTURE"
}}
accept=
'image/*'
accept=
'image/*'
...
...
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/components/editors/app-checkbox.vue
浏览文件 @
85348837
...
@@ -26,7 +26,7 @@ interface CheckboxProps {
...
@@ -26,7 +26,7 @@ interface CheckboxProps {
*
*
* @type {boolean}
* @type {boolean}
*/
*/
read
o
nly
?:
boolean
;
read
O
nly
?:
boolean
;
}
}
interface
EditorEmit
{
interface
EditorEmit
{
...
@@ -35,7 +35,7 @@ interface EditorEmit {
...
@@ -35,7 +35,7 @@ interface EditorEmit {
const
props
=
withDefaults
(
defineProps
<
CheckboxProps
>
(),
{
const
props
=
withDefaults
(
defineProps
<
CheckboxProps
>
(),
{
disabled
:
false
,
disabled
:
false
,
read
o
nly
:
false
,
read
O
nly
:
false
,
});
});
const
emit
=
defineEmits
<
EditorEmit
>
();
const
emit
=
defineEmits
<
EditorEmit
>
();
const
curValue
:
Ref
<
boolean
>
=
computed
(()
=>
{
const
curValue
:
Ref
<
boolean
>
=
computed
(()
=>
{
...
@@ -61,7 +61,7 @@ const onChange = ($event: any) => {
...
@@ -61,7 +61,7 @@ const onChange = ($event: any) => {
<a-checkbox
<a-checkbox
@
change=
"onChange"
@
change=
"onChange"
:checked=
"curValue"
:checked=
"curValue"
:disabled=
"disabled || read
o
nly"
:disabled=
"disabled || read
O
nly"
></a-checkbox>
></a-checkbox>
</div>
</div>
</
template
>
</
template
>
...
...
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/components/editors/app-rating.vue
浏览文件 @
85348837
...
@@ -27,7 +27,7 @@ interface RatingProps {
...
@@ -27,7 +27,7 @@ interface RatingProps {
*
*
* @type {boolean}
* @type {boolean}
*/
*/
read
o
nly
?:
boolean
;
read
O
nly
?:
boolean
;
/**
/**
* 下发数据
* 下发数据
...
@@ -59,7 +59,7 @@ const props = withDefaults(defineProps<RatingProps>(), {
...
@@ -59,7 +59,7 @@ const props = withDefaults(defineProps<RatingProps>(), {
max
:
5
,
max
:
5
,
allowHalf
:
false
,
allowHalf
:
false
,
disabled
:
false
,
disabled
:
false
,
read
o
nly
:
false
,
read
O
nly
:
false
,
});
});
const
emit
=
defineEmits
<
EditorEmit
>
();
const
emit
=
defineEmits
<
EditorEmit
>
();
...
@@ -78,7 +78,7 @@ const onChange = (value: number) => {
...
@@ -78,7 +78,7 @@ const onChange = (value: number) => {
:value=
"value"
:value=
"value"
:allowHalf=
"allowHalf"
:allowHalf=
"allowHalf"
:count=
"max"
:count=
"max"
:disabled=
"disabled || read
o
nly"
:disabled=
"disabled || read
O
nly"
@
change=
"onChange"
@
change=
"onChange"
/>
/>
</div>
</div>
...
...
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/components/editors/app-slider.vue
浏览文件 @
85348837
...
@@ -42,7 +42,7 @@ interface sliderProps {
...
@@ -42,7 +42,7 @@ interface sliderProps {
*
*
* @type {boolean}
* @type {boolean}
*/
*/
read
o
nly
?:
boolean
;
read
O
nly
?:
boolean
;
/**
/**
* 是否禁用
* 是否禁用
...
@@ -61,7 +61,7 @@ const props = withDefaults(defineProps<sliderProps>(), {
...
@@ -61,7 +61,7 @@ const props = withDefaults(defineProps<sliderProps>(), {
max
:
100
,
max
:
100
,
step
:
1
,
step
:
1
,
disabled
:
false
,
disabled
:
false
,
read
o
nly
:
false
,
read
O
nly
:
false
,
});
});
const
emit
=
defineEmits
<
EditorEmit
>
();
const
emit
=
defineEmits
<
EditorEmit
>
();
...
@@ -81,7 +81,7 @@ const onChange = (value: number) => {
...
@@ -81,7 +81,7 @@ const onChange = (value: number) => {
:min=
"min"
:min=
"min"
:max=
"max"
:max=
"max"
:step=
"step"
:step=
"step"
:disabled=
"disabled || read
o
nly"
:disabled=
"disabled || read
O
nly"
@
afterChange=
"onChange"
@
afterChange=
"onChange"
/>
/>
</div>
</div>
...
...
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/components/editors/app-stepper.vue
浏览文件 @
85348837
<
template
>
<
template
>
<div
class=
"app-stepper"
>
<div
class=
"app-stepper"
>
<a-input-number
v-model:value=
"result"
:min=
"min"
:max=
"max"
:step=
"step"
:precision=
"precision"
:disabled=
"disabled || read
o
nly"
:controls=
"false"
>
<a-input-number
v-model:value=
"result"
:min=
"min"
:max=
"max"
:step=
"step"
:precision=
"precision"
:disabled=
"disabled || read
O
nly"
:controls=
"false"
>
<template
#
addonBefore
>
<template
#
addonBefore
>
<a-button
type=
"text"
:disabled=
"disabled || read
o
nly || result
<
=
min
"
@
click=
"btnReduce"
>
-
</a-button>
<a-button
type=
"text"
:disabled=
"disabled || read
O
nly || result
<
=
min
"
@
click=
"btnReduce"
>
-
</a-button>
</
template
>
</
template
>
<
template
#
addonAfter
>
<
template
#
addonAfter
>
<a-button
type=
"text"
:disabled=
"disabled || read
o
nly || result >= max"
@
click=
"btnIcrease"
>
+
</a-button>
<a-button
type=
"text"
:disabled=
"disabled || read
O
nly || result >= max"
@
click=
"btnIcrease"
>
+
</a-button>
</
template
>
</
template
>
</a-input-number>
</a-input-number>
</div>
</div>
...
...
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/components/editors/app-switch.vue
浏览文件 @
85348837
...
@@ -31,7 +31,7 @@ interface SwitchProps {
...
@@ -31,7 +31,7 @@ interface SwitchProps {
*
*
* @type {boolean}
* @type {boolean}
*/
*/
read
o
nly
?:
boolean
;
read
O
nly
?:
boolean
;
/**
/**
* 大小
* 大小
...
@@ -47,7 +47,7 @@ interface EditorEmit {
...
@@ -47,7 +47,7 @@ interface EditorEmit {
const
props
=
withDefaults
(
defineProps
<
SwitchProps
>
(),
{
const
props
=
withDefaults
(
defineProps
<
SwitchProps
>
(),
{
disabled
:
false
,
disabled
:
false
,
read
o
nly
:
false
,
read
O
nly
:
false
,
size
:
'default'
,
size
:
'default'
,
});
});
const
emit
=
defineEmits
<
EditorEmit
>
();
const
emit
=
defineEmits
<
EditorEmit
>
();
...
@@ -72,7 +72,7 @@ const onChange = (value: number) => {
...
@@ -72,7 +72,7 @@ const onChange = (value: number) => {
<a-switch
<a-switch
:checked=
"curValue"
:checked=
"curValue"
:size=
"size"
:size=
"size"
:disabled=
"disabled || read
o
nly"
:disabled=
"disabled || read
O
nly"
@
change=
"onChange"
@
change=
"onChange"
/>
/>
</div>
</div>
...
...
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录