Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
T
TrainSys
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
苏州培训方案
TrainSys
提交
1d709bd1
提交
1d709bd1
编写于
3月 07, 2025
作者:
jlj05024111@163.com
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
feat: 更新模板数据选择-下拉编辑器显示下拉图标
上级
6f477d6d
变更
5
展开全部
隐藏空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
500 行增加
和
608 行删除
+500
-608
ibiz-template-plugin.es.js
...e-plugin/sy-dsf-web@0.0.2/dist/ibiz-template-plugin.es.js
+460
-604
index.legacy.js
...biz-template-plugin/sy-dsf-web@0.0.2/dist/index.legacy.js
+1
-1
polyfills.legacy.js
...template-plugin/sy-dsf-web@0.0.2/dist/polyfills.legacy.js
+1
-1
style.css
...ins/@ibiz-template-plugin/sy-dsf-web@0.0.2/dist/style.css
+1
-1
ibiz-picker-dropdown.tsx
...data-picker/ibiz-picker-dropdown/ibiz-picker-dropdown.tsx
+37
-1
未找到文件。
app_Web/public/plugins/@ibiz-template-plugin/sy-dsf-web@0.0.2/dist/ibiz-template-plugin.es.js
浏览文件 @
1d709bd1
此差异已折叠。
点击以展开。
app_Web/public/plugins/@ibiz-template-plugin/sy-dsf-web@0.0.2/dist/index.legacy.js
浏览文件 @
1d709bd1
此差异已折叠。
点击以展开。
app_Web/public/plugins/@ibiz-template-plugin/sy-dsf-web@0.0.2/dist/polyfills.legacy.js
浏览文件 @
1d709bd1
因为 它太大了无法显示 源差异 。您可以改为
查看blob
。
app_Web/public/plugins/@ibiz-template-plugin/sy-dsf-web@0.0.2/dist/style.css
浏览文件 @
1d709bd1
此差异已折叠。
点击以展开。
app_Web/src/components/editor/data-picker/ibiz-picker-dropdown/ibiz-picker-dropdown.tsx
浏览文件 @
1d709bd1
...
...
@@ -25,6 +25,12 @@ export const IBizPickerDropDown = defineComponent({
// 是否是第一次搜索
const
isFirstSearch
=
ref
(
false
);
// 鼠标是否进入
const
isEnter
=
ref
(
false
);
// 下拉框是否在展开
const
vsisible
=
ref
(
false
);
// 第一次搜索的时候需要保存值,否则回显有问题
const
firstRefValue
:
Ref
<
string
>
=
ref
(
''
);
...
...
@@ -146,6 +152,7 @@ export const IBizPickerDropDown = defineComponent({
// 下拉关闭的时候,如果没有选择过,要把回显值重新赋回select
refValue
.
value
=
firstRefValue
.
value
;
}
vsisible
.
value
=
isOpen
;
};
// 搜索词改变时触发
...
...
@@ -169,6 +176,27 @@ export const IBizPickerDropDown = defineComponent({
}
emit
(
'change'
,
null
);
};
const
renderIcon
=
()
=>
{
if
(
props
.
value
&&
isEnter
.
value
)
{
return
(
<
i
class=
'ivu-icon ivu-icon-ios-close-circle ivu-select-arrow'
onClick=
{
onClear
}
></
i
>
);
}
return
<
i
class=
'ivu-icon ivu-icon-ios-arrow-down ivu-select-arrow'
></
i
>;
};
const
onMouseEnter
=
()
=>
{
isEnter
.
value
=
true
;
};
const
onMouseLevel
=
()
=>
{
isEnter
.
value
=
false
;
};
return
{
ns
,
c
,
...
...
@@ -180,6 +208,9 @@ export const IBizPickerDropDown = defineComponent({
onClear
,
onSelect
,
onSearch
,
renderIcon
,
onMouseEnter
,
onMouseLevel
,
};
},
render
(
h
)
{
...
...
@@ -189,7 +220,11 @@ export const IBizPickerDropDown = defineComponent({
);
}
return
(
<
div
class=
{
[
this
.
ns
.
b
(),
this
.
disabled
?
this
.
ns
.
m
(
'disabled'
)
:
''
]
}
>
<
div
class=
{
[
this
.
ns
.
b
(),
this
.
disabled
?
this
.
ns
.
m
(
'disabled'
)
:
''
]
}
onMouseenter=
{
this
.
onMouseEnter
}
onMouseleave=
{
this
.
onMouseLevel
}
>
{
[
this
.
readonly
&&
this
.
value
,
!
this
.
readonly
&&
...
...
@@ -226,6 +261,7 @@ export const IBizPickerDropDown = defineComponent({
}),
],
),
this
.
renderIcon
(),
]
}
</
div
>
);
...
...
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录