Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
T
TrainSys
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
苏州培训方案
TrainSys
提交
3b74de21
提交
3b74de21
编写于
2月 10, 2025
作者:
zhf
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
feat: 更新模板
上级
4fcd45ee
变更
3
显示空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
24 行增加
和
14 行删除
+24
-14
package.json
app_Web/package.json
+2
-2
pnpm-lock.yaml
app_Web/pnpm-lock.yaml
+9
-9
form-button.tsx
...mponents/widgets/form-control/form-button/form-button.tsx
+13
-3
未找到文件。
app_Web/package.json
浏览文件 @
3b74de21
...
...
@@ -13,13 +13,13 @@
"dependencies"
:
{
"@floating-ui/dom"
:
"^1.5.3"
,
"@ibiz-template/command"
:
"0.0.1-beta.50"
,
"@ibiz-template/controller"
:
"0.0.1-beta.14
8
"
,
"@ibiz-template/controller"
:
"0.0.1-beta.14
9
"
,
"@ibiz-template/core"
:
"0.0.1-beta.143"
,
"@ibiz-template/model"
:
"0.0.1-beta.147"
,
"@ibiz-template/runtime"
:
"0.0.1-beta.148"
,
"@ibiz-template/service"
:
"0.0.1-beta.148"
,
"@ibiz-template/theme"
:
"0.0.1-beta.145"
,
"@ibiz-template/vue-util"
:
"0.0.1-beta.14
8
"
,
"@ibiz-template/vue-util"
:
"0.0.1-beta.14
9
"
,
"@ibiz/dynamic-model-api"
:
"^2.1.28"
,
"@riophae/vue-treeselect"
:
"^0.4.0"
,
"dayjs"
:
"^1.11.10"
,
...
...
app_Web/pnpm-lock.yaml
浏览文件 @
3b74de21
...
...
@@ -12,8 +12,8 @@ dependencies:
specifier
:
0.0.1-beta.50
version
:
0.0.1-beta.50
'
@ibiz-template/controller'
:
specifier
:
0.0.1-beta.14
8
version
:
0.0.1-beta.14
8
(@ibiz-template/core@0.0.1-beta.143)(@ibiz-template/model@0.0.1-beta.147)(@ibiz-template/runtime@0.0.1-beta.148)(@ibiz-template/service@0.0.1-beta.148)(lodash-es@4.17.21)(qs@6.11.2)(qx-util@0.4.8)
specifier
:
0.0.1-beta.14
9
version
:
0.0.1-beta.14
9
(@ibiz-template/core@0.0.1-beta.143)(@ibiz-template/model@0.0.1-beta.147)(@ibiz-template/runtime@0.0.1-beta.148)(@ibiz-template/service@0.0.1-beta.148)(lodash-es@4.17.21)(qs@6.11.2)(qx-util@0.4.8)
'
@ibiz-template/core'
:
specifier
:
0.0.1-beta.143
version
:
0.0.1-beta.143(lodash-es@4.17.21)(qx-util@0.4.8)(ramda@0.29.1)
...
...
@@ -30,8 +30,8 @@ dependencies:
specifier
:
0.0.1-beta.145
version
:
0.0.1-beta.145
'
@ibiz-template/vue-util'
:
specifier
:
0.0.1-beta.14
8
version
:
0.0.1-beta.14
8(@ibiz-template/controller@0.0.1-beta.148
)(@ibiz-template/core@0.0.1-beta.143)(@ibiz-template/model@0.0.1-beta.147)(@ibiz-template/service@0.0.1-beta.148)(qs@6.11.2)(qx-util@0.4.8)(ramda@0.29.1)(vue-router@3.6.5)(vue@2.7.15)
specifier
:
0.0.1-beta.14
9
version
:
0.0.1-beta.14
9(@ibiz-template/controller@0.0.1-beta.149
)(@ibiz-template/core@0.0.1-beta.143)(@ibiz-template/model@0.0.1-beta.147)(@ibiz-template/service@0.0.1-beta.148)(qs@6.11.2)(qx-util@0.4.8)(ramda@0.29.1)(vue-router@3.6.5)(vue@2.7.15)
'
@ibiz/dynamic-model-api'
:
specifier
:
^2.1.28
version
:
2.1.28(qx-util@0.4.8)
...
...
@@ -932,8 +932,8 @@ packages:
qx-util
:
0.4.8
dev
:
false
/@ibiz-template/controller@0.0.1-beta.14
8
(@ibiz-template/core@0.0.1-beta.143)(@ibiz-template/model@0.0.1-beta.147)(@ibiz-template/runtime@0.0.1-beta.148)(@ibiz-template/service@0.0.1-beta.148)(lodash-es@4.17.21)(qs@6.11.2)(qx-util@0.4.8)
:
resolution
:
{
integrity
:
sha512-
g/H++f6o/Rl8sn5A7YVUQ1ftA5K9T1Xe+rD3dMqR8S7RC7rIiXTMxafb2bG++H+S8VkjDcy4oYssCbVel5pfxg
==
}
/@ibiz-template/controller@0.0.1-beta.14
9
(@ibiz-template/core@0.0.1-beta.143)(@ibiz-template/model@0.0.1-beta.147)(@ibiz-template/runtime@0.0.1-beta.148)(@ibiz-template/service@0.0.1-beta.148)(lodash-es@4.17.21)(qs@6.11.2)(qx-util@0.4.8)
:
resolution
:
{
integrity
:
sha512-
7EIrJ/RDbJ1pJdXZy7mKHAqSKEZZhX8J9hCCfc2nZIZI9OeqKVDSuzYDXg5zGRV8nS+mCwVGz806UHvrDv+/Rw
==
}
peerDependencies
:
'
@ibiz-template/core'
:
^0.0.1-beta.132
'
@ibiz-template/model'
:
^0.0.1-beta.132
...
...
@@ -1019,8 +1019,8 @@ packages:
resolution
:
{
integrity
:
sha512-Fw43Wqp6Cf9HVdYE8v/OLjYrrkRlXQuF4XKDyIUZM4j+c1ABAqLVxamhEkjNqE0GeKNWnLpJHqsR+1oUueH8NA==
}
dev
:
false
/@ibiz-template/vue-util@0.0.1-beta.14
8(@ibiz-template/controller@0.0.1-beta.148
)(@ibiz-template/core@0.0.1-beta.143)(@ibiz-template/model@0.0.1-beta.147)(@ibiz-template/service@0.0.1-beta.148)(qs@6.11.2)(qx-util@0.4.8)(ramda@0.29.1)(vue-router@3.6.5)(vue@2.7.15)
:
resolution
:
{
integrity
:
sha512-
c6oY4hdzw4m/EqU4GNCmcExVVZLgw29mYwcXMDP2yBQjzWEe/wD9FzXyxIyqSEEOi7GYvL5BEilUbbj4VSqWXA
==
}
/@ibiz-template/vue-util@0.0.1-beta.14
9(@ibiz-template/controller@0.0.1-beta.149
)(@ibiz-template/core@0.0.1-beta.143)(@ibiz-template/model@0.0.1-beta.147)(@ibiz-template/service@0.0.1-beta.148)(qs@6.11.2)(qx-util@0.4.8)(ramda@0.29.1)(vue-router@3.6.5)(vue@2.7.15)
:
resolution
:
{
integrity
:
sha512-
NcKyCMS6X+tYj6gsP0OQtYhbExTc6cib31CiqZK15AYcy/6qaHO8V+3dXexwmwNeMjmIv1Gxx+0nygc7+5g1vg
==
}
peerDependencies
:
'
@ibiz-template/controller'
:
^0.0.1-beta.132
'
@ibiz-template/core'
:
^0.0.1-beta.132
...
...
@@ -1032,7 +1032,7 @@ packages:
vue
:
^2.7.14
vue-router
:
^3.6.5
dependencies
:
'
@ibiz-template/controller'
:
0.0.1-beta.14
8
(@ibiz-template/core@0.0.1-beta.143)(@ibiz-template/model@0.0.1-beta.147)(@ibiz-template/runtime@0.0.1-beta.148)(@ibiz-template/service@0.0.1-beta.148)(lodash-es@4.17.21)(qs@6.11.2)(qx-util@0.4.8)
'
@ibiz-template/controller'
:
0.0.1-beta.14
9
(@ibiz-template/core@0.0.1-beta.143)(@ibiz-template/model@0.0.1-beta.147)(@ibiz-template/runtime@0.0.1-beta.148)(@ibiz-template/service@0.0.1-beta.148)(lodash-es@4.17.21)(qs@6.11.2)(qx-util@0.4.8)
'
@ibiz-template/core'
:
0.0.1-beta.143(lodash-es@4.17.21)(qx-util@0.4.8)(ramda@0.29.1)
'
@ibiz-template/model'
:
0.0.1-beta.147(@ibiz/dynamic-model-api@2.1.28)(lodash-es@4.17.21)(qx-util@0.4.8)
'
@ibiz-template/service'
:
0.0.1-beta.148(@ibiz-template/core@0.0.1-beta.143)(@ibiz-template/model@0.0.1-beta.147)(qx-util@0.4.8)(ramda@0.29.1)
...
...
app_Web/src/components/widgets/form-control/form-button/form-button.tsx
浏览文件 @
3b74de21
import
{
FormButtonController
}
from
'@ibiz-template/controller'
;
import
{
FormButtonModel
}
from
'@ibiz-template/model'
;
import
{
useNamespace
}
from
'@ibiz-template/vue-util'
;
import
{
defineComponent
}
from
'vue'
;
import
{
defineComponent
,
ref
}
from
'vue'
;
import
'@ibiz-template/theme/style/components/widgets/form/form-button.scss'
;
export
const
FormButton
=
defineComponent
({
...
...
@@ -18,7 +18,9 @@ export const FormButton = defineComponent({
},
setup
()
{
const
ns
=
useNamespace
(
'form-button'
);
return
{
ns
};
const
isLoading
=
ref
(
false
);
return
{
ns
,
isLoading
};
},
render
()
{
if
(
!
this
.
controller
.
visible
)
{
...
...
@@ -26,7 +28,15 @@ export const FormButton = defineComponent({
}
return
(
<
i
-
button
onClick=
{
this
.
controller
.
onClick
.
bind
(
this
.
controller
)
}
onClick=
{
async
(
e
:
MouseEvent
)
=>
{
this
.
isLoading
=
true
;
try
{
await
this
.
controller
.
onClick
(
e
);
}
finally
{
this
.
isLoading
=
false
;
}
}
}
loading=
{
this
.
isLoading
}
class=
{
this
.
ns
.
b
()
}
>
{
this
.
modelData
.
source
.
caption
}
...
...
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录