Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
T
TrainSys
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
苏州培训方案
TrainSys
提交
779e7312
提交
779e7312
编写于
6月 13, 2025
作者:
jlj05024111@163.com
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
feat: 更新md-view-base支持搜索表单插件,修复下拉编辑器props报错,修复文本框类型报错
上级
7282d3d1
变更
4
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
39 行增加
和
20 行删除
+39
-20
ibiz-dropdown.tsx
...ents/editor/dropdown-list/ibiz-dropdown/ibiz-dropdown.tsx
+18
-14
ibiz-input.tsx
.../src/components/editor/text-box/ibiz-input/ibiz-input.tsx
+1
-1
md-view-base.tsx
app_Web/src/components/layout/md-view-base/md-view-base.tsx
+17
-5
tree-control.tsx
app_Web/src/components/widgets/tree-control/tree-control.tsx
+3
-0
未找到文件。
app_Web/src/components/editor/dropdown-list/ibiz-dropdown/ibiz-dropdown.tsx
浏览文件 @
779e7312
...
...
@@ -32,21 +32,25 @@ export const IBizDropdown = defineComponent({
});
// 当前值
const
curValue
:
Ref
<
Array
<
string
>
|
string
|
undefined
>
=
computed
({
get
()
{
if
(
props
.
value
)
{
return
c
!
.
multiple
?
props
.
value
?.
split
(
','
)
:
props
.
value
;
}
return
props
.
value
;
},
set
(
select
:
string
|
Array
<
string
>
|
undefined
)
{
if
(
Array
.
isArray
(
select
))
{
emit
(
'change'
,
select
.
length
===
0
?
null
:
select
.
join
(
','
));
}
else
{
emit
(
'change'
,
select
);
}
const
curValue
:
Ref
<
Array
<
string
>
|
string
|
Number
|
undefined
>
=
computed
(
{
get
()
{
if
(
props
.
value
)
{
return
c
!
.
multiple
?
(
props
.
value
as
String
)?.
split
(
','
)
:
props
.
value
;
}
return
props
.
value
;
},
set
(
select
:
string
|
Number
|
Array
<
string
>
|
undefined
)
{
if
(
Array
.
isArray
(
select
))
{
emit
(
'change'
,
select
.
length
===
0
?
null
:
select
.
join
(
','
));
}
else
{
emit
(
'change'
,
select
);
}
},
},
}
);
);
const
valueText
=
computed
(()
=>
{
const
valueArr
=
Array
.
isArray
(
curValue
.
value
)
...
...
app_Web/src/components/editor/text-box/ibiz-input/ibiz-input.tsx
浏览文件 @
779e7312
...
...
@@ -73,7 +73,7 @@ export const IBizInput = defineComponent({
}
}
}
const
currentVal
=
ref
<
string
>
(
''
);
const
currentVal
=
ref
<
string
|
number
>
(
''
);
const
getInputValue
=
(
value
:
string
|
number
)
=>
{
if
(
type
.
value
===
'number'
||
!
ibiz
.
config
.
enableXSS
)
{
...
...
app_Web/src/components/layout/md-view-base/md-view-base.tsx
浏览文件 @
779e7312
...
...
@@ -11,7 +11,7 @@ export const MDViewBase = defineComponent({
setup
()
{
return
{};
},
render
()
{
render
(
h
)
{
const
c
=
this
.
controller
;
// 外面的插槽同样传给view-layout
...
...
@@ -38,8 +38,22 @@ export const MDViewBase = defineComponent({
},
};
if
(
c
.
showSearchForm
)
{
const
{
searchForm
}
=
this
.
controller
.
model
;
slots
.
searchForm
=
()
=>
{
if
(
c
.
complete
&&
c
.
model
.
searchForm
)
{
if
(
c
.
complete
&&
searchForm
)
{
if
(
c
.
providers
[
searchForm
.
name
])
{
return
h
(
c
.
providers
[
searchForm
.
name
].
component
,
{
props
:
{
controller
:
c
,
context
:
c
.
context
,
params
:
c
.
params
,
modelData
:
searchForm
,
},
on
:
{
neuronInit
:
c
.
nerve
.
onNeuronInit
(
searchForm
.
source
.
name
),
},
});
}
return
(
<
search
-
form
-
control
v
-
show=
{
c
.
showSearchForm
}
...
...
@@ -47,9 +61,7 @@ export const MDViewBase = defineComponent({
context=
{
c
.
context
}
params=
{
c
.
params
}
controller=
{
c
}
on
-
neuronInit=
{
c
.
nerve
.
onNeuronInit
(
c
.
model
.
searchForm
.
source
.
name
,
)
}
on
-
neuronInit=
{
c
.
nerve
.
onNeuronInit
(
searchForm
.
source
.
name
)
}
></
search
-
form
-
control
>
);
}
...
...
app_Web/src/components/widgets/tree-control/tree-control.tsx
浏览文件 @
779e7312
...
...
@@ -59,6 +59,9 @@ export const TreeControl = defineComponent({
*/
const
onCurrentChange
=
(
nodeData
:
ITreeNodeData
)
=>
{
c
.
onTreeNodeClick
(
nodeData
);
if
(
props
.
singleSelect
)
{
c
.
setSelectData
([
nodeData
]);
}
};
// 默认展开回显
...
...
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录