Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
T
TrainSys
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
苏州培训方案
TrainSys
提交
55bb21b2
提交
55bb21b2
编写于
8月 07, 2023
作者:
ibizdev
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
zhujiamin 发布系统代码 [TrainSys,网页端]
上级
3ec071e0
变更
7
隐藏空白字符变更
内嵌
并排
正在显示
7 个修改的文件
包含
168 行增加
和
49 行删除
+168
-49
package.json
app_Web/package.json
+7
-7
pnpm-lock.yaml
app_Web/pnpm-lock.yaml
+42
-42
app-register.ts
app_Web/src/app-register.ts
+2
-0
ibiz-span-link.tsx
.../components/editor/span/ibiz-span-link/ibiz-span-link.tsx
+108
-0
index.ts
app_Web/src/components/editor/span/index.ts
+1
-0
index.ts
app_Web/src/provider/editor/index.ts
+1
-0
span-provider.ts
app_Web/src/provider/editor/span-provider.ts
+7
-0
未找到文件。
app_Web/package.json
浏览文件 @
55bb21b2
...
@@ -13,13 +13,13 @@
...
@@ -13,13 +13,13 @@
"dependencies"
:
{
"dependencies"
:
{
"@floating-ui/dom"
:
"^1.0.11"
,
"@floating-ui/dom"
:
"^1.0.11"
,
"@ibiz-template/command"
:
"^0.0.1-beta.50"
,
"@ibiz-template/command"
:
"^0.0.1-beta.50"
,
"@ibiz-template/controller"
:
"^0.0.1-beta.9
5
"
,
"@ibiz-template/controller"
:
"^0.0.1-beta.9
6
"
,
"@ibiz-template/core"
:
"^0.0.1-beta.9
5
"
,
"@ibiz-template/core"
:
"^0.0.1-beta.9
6
"
,
"@ibiz-template/model"
:
"^0.0.1-beta.9
5
"
,
"@ibiz-template/model"
:
"^0.0.1-beta.9
6
"
,
"@ibiz-template/runtime"
:
"^0.0.1-beta.9
5
"
,
"@ibiz-template/runtime"
:
"^0.0.1-beta.9
6
"
,
"@ibiz-template/service"
:
"^0.0.1-beta.9
5
"
,
"@ibiz-template/service"
:
"^0.0.1-beta.9
6
"
,
"@ibiz-template/theme"
:
"^0.0.1-beta.9
5
"
,
"@ibiz-template/theme"
:
"^0.0.1-beta.9
6
"
,
"@ibiz-template/vue-util"
:
"^0.0.1-beta.9
5
"
,
"@ibiz-template/vue-util"
:
"^0.0.1-beta.9
6
"
,
"@ibiz/dynamic-model-api"
:
"^2.1.24"
,
"@ibiz/dynamic-model-api"
:
"^2.1.24"
,
"@riophae/vue-treeselect"
:
"^0.4.0"
,
"@riophae/vue-treeselect"
:
"^0.4.0"
,
"dayjs"
:
"^1.11.7"
,
"dayjs"
:
"^1.11.7"
,
...
...
app_Web/pnpm-lock.yaml
浏览文件 @
55bb21b2
lockfileVersion
:
'
6.
1
'
lockfileVersion
:
'
6.
0
'
settings
:
settings
:
autoInstallPeers
:
true
autoInstallPeers
:
true
...
@@ -12,26 +12,26 @@ dependencies:
...
@@ -12,26 +12,26 @@ dependencies:
specifier
:
^0.0.1-beta.50
specifier
:
^0.0.1-beta.50
version
:
0.0.1-beta.50
version
:
0.0.1-beta.50
'
@ibiz-template/controller'
:
'
@ibiz-template/controller'
:
specifier
:
^0.0.1-beta.9
5
specifier
:
^0.0.1-beta.9
6
version
:
0.0.1-beta.9
5(@ibiz-template/core@0.0.1-beta.95)(@ibiz-template/model@0.0.1-beta.95)(@ibiz-template/runtime@0.0.1-beta.95)(@ibiz-template/service@0.0.1-beta.95
)(lodash-es@4.17.21)(qs@6.11.1)(qx-util@0.4.8)
version
:
0.0.1-beta.9
6(@ibiz-template/core@0.0.1-beta.96)(@ibiz-template/model@0.0.1-beta.96)(@ibiz-template/runtime@0.0.1-beta.96)(@ibiz-template/service@0.0.1-beta.96
)(lodash-es@4.17.21)(qs@6.11.1)(qx-util@0.4.8)
'
@ibiz-template/core'
:
'
@ibiz-template/core'
:
specifier
:
^0.0.1-beta.9
5
specifier
:
^0.0.1-beta.9
6
version
:
0.0.1-beta.9
5
(lodash-es@4.17.21)(qx-util@0.4.8)(ramda@0.28.0)
version
:
0.0.1-beta.9
6
(lodash-es@4.17.21)(qx-util@0.4.8)(ramda@0.28.0)
'
@ibiz-template/model'
:
'
@ibiz-template/model'
:
specifier
:
^0.0.1-beta.9
5
specifier
:
^0.0.1-beta.9
6
version
:
0.0.1-beta.9
5
(@ibiz/dynamic-model-api@2.1.24)(lodash-es@4.17.21)(qx-util@0.4.8)
version
:
0.0.1-beta.9
6
(@ibiz/dynamic-model-api@2.1.24)(lodash-es@4.17.21)(qx-util@0.4.8)
'
@ibiz-template/runtime'
:
'
@ibiz-template/runtime'
:
specifier
:
^0.0.1-beta.9
5
specifier
:
^0.0.1-beta.9
6
version
:
0.0.1-beta.9
5(@ibiz-template/core@0.0.1-beta.95)(@ibiz-template/model@0.0.1-beta.95)(@ibiz-template/service@0.0.1-beta.95
)(qx-util@0.4.8)
version
:
0.0.1-beta.9
6(@ibiz-template/core@0.0.1-beta.96)(@ibiz-template/model@0.0.1-beta.96)(@ibiz-template/service@0.0.1-beta.96
)(qx-util@0.4.8)
'
@ibiz-template/service'
:
'
@ibiz-template/service'
:
specifier
:
^0.0.1-beta.9
5
specifier
:
^0.0.1-beta.9
6
version
:
0.0.1-beta.9
5(@ibiz-template/core@0.0.1-beta.95)(@ibiz-template/model@0.0.1-beta.95
)(qx-util@0.4.8)(ramda@0.28.0)
version
:
0.0.1-beta.9
6(@ibiz-template/core@0.0.1-beta.96)(@ibiz-template/model@0.0.1-beta.96
)(qx-util@0.4.8)(ramda@0.28.0)
'
@ibiz-template/theme'
:
'
@ibiz-template/theme'
:
specifier
:
^0.0.1-beta.9
5
specifier
:
^0.0.1-beta.9
6
version
:
0.0.1-beta.9
5
version
:
0.0.1-beta.9
6
'
@ibiz-template/vue-util'
:
'
@ibiz-template/vue-util'
:
specifier
:
^0.0.1-beta.9
5
specifier
:
^0.0.1-beta.9
6
version
:
0.0.1-beta.9
5(@ibiz-template/controller@0.0.1-beta.95)(@ibiz-template/core@0.0.1-beta.95)(@ibiz-template/model@0.0.1-beta.95)(@ibiz-template/service@0.0.1-beta.95
)(qs@6.11.1)(qx-util@0.4.8)(ramda@0.28.0)(vue-router@3.6.5)(vue@2.7.14)
version
:
0.0.1-beta.9
6(@ibiz-template/controller@0.0.1-beta.96)(@ibiz-template/core@0.0.1-beta.96)(@ibiz-template/model@0.0.1-beta.96)(@ibiz-template/service@0.0.1-beta.96
)(qs@6.11.1)(qx-util@0.4.8)(ramda@0.28.0)(vue-router@3.6.5)(vue@2.7.14)
'
@ibiz/dynamic-model-api'
:
'
@ibiz/dynamic-model-api'
:
specifier
:
^2.1.24
specifier
:
^2.1.24
version
:
2.1.24(qx-util@0.4.8)
version
:
2.1.24(qx-util@0.4.8)
...
@@ -939,8 +939,8 @@ packages:
...
@@ -939,8 +939,8 @@ packages:
qx-util
:
0.4.8
qx-util
:
0.4.8
dev
:
false
dev
:
false
/@ibiz-template/controller@0.0.1-beta.9
5(@ibiz-template/core@0.0.1-beta.95)(@ibiz-template/model@0.0.1-beta.95)(@ibiz-template/runtime@0.0.1-beta.95)(@ibiz-template/service@0.0.1-beta.95
)(lodash-es@4.17.21)(qs@6.11.1)(qx-util@0.4.8)
:
/@ibiz-template/controller@0.0.1-beta.9
6(@ibiz-template/core@0.0.1-beta.96)(@ibiz-template/model@0.0.1-beta.96)(@ibiz-template/runtime@0.0.1-beta.96)(@ibiz-template/service@0.0.1-beta.96
)(lodash-es@4.17.21)(qs@6.11.1)(qx-util@0.4.8)
:
resolution
:
{
integrity
:
sha512-
ayKN4S9IIQTrciIoSo/yWmWMV8wEh4s0Va3dnC4+C5kenqE7b3Gmy2YVZzyA6ZvO8hR9IhNZUGsEl/5deVYqyg
==
}
resolution
:
{
integrity
:
sha512-
1wxayWzZnT8jYxB5VIGCsITolicNDF28BckKyLCwzACAzLVSDXC4gx5fWtjL6dM9iUhrl8htMnRutFiy6n4YXw
==
}
peerDependencies
:
peerDependencies
:
'
@ibiz-template/core'
:
^0.0.1-beta.30
'
@ibiz-template/core'
:
^0.0.1-beta.30
'
@ibiz-template/model'
:
^0.0.1-beta.30
'
@ibiz-template/model'
:
^0.0.1-beta.30
...
@@ -950,10 +950,10 @@ packages:
...
@@ -950,10 +950,10 @@ packages:
qs
:
^6.11.0
qs
:
^6.11.0
qx-util
:
^0.4.8
qx-util
:
^0.4.8
dependencies
:
dependencies
:
'
@ibiz-template/core'
:
0.0.1-beta.9
5
(lodash-es@4.17.21)(qx-util@0.4.8)(ramda@0.28.0)
'
@ibiz-template/core'
:
0.0.1-beta.9
6
(lodash-es@4.17.21)(qx-util@0.4.8)(ramda@0.28.0)
'
@ibiz-template/model'
:
0.0.1-beta.9
5
(@ibiz/dynamic-model-api@2.1.24)(lodash-es@4.17.21)(qx-util@0.4.8)
'
@ibiz-template/model'
:
0.0.1-beta.9
6
(@ibiz/dynamic-model-api@2.1.24)(lodash-es@4.17.21)(qx-util@0.4.8)
'
@ibiz-template/runtime'
:
0.0.1-beta.9
5(@ibiz-template/core@0.0.1-beta.95)(@ibiz-template/model@0.0.1-beta.95)(@ibiz-template/service@0.0.1-beta.95
)(qx-util@0.4.8)
'
@ibiz-template/runtime'
:
0.0.1-beta.9
6(@ibiz-template/core@0.0.1-beta.96)(@ibiz-template/model@0.0.1-beta.96)(@ibiz-template/service@0.0.1-beta.96
)(qx-util@0.4.8)
'
@ibiz-template/service'
:
0.0.1-beta.9
5(@ibiz-template/core@0.0.1-beta.95)(@ibiz-template/model@0.0.1-beta.95
)(qx-util@0.4.8)(ramda@0.28.0)
'
@ibiz-template/service'
:
0.0.1-beta.9
6(@ibiz-template/core@0.0.1-beta.96)(@ibiz-template/model@0.0.1-beta.96
)(qx-util@0.4.8)(ramda@0.28.0)
async-validator
:
4.2.5
async-validator
:
4.2.5
dayjs
:
1.11.7
dayjs
:
1.11.7
lodash-es
:
4.17.21
lodash-es
:
4.17.21
...
@@ -961,8 +961,8 @@ packages:
...
@@ -961,8 +961,8 @@ packages:
qx-util
:
0.4.8
qx-util
:
0.4.8
dev
:
false
dev
:
false
/@ibiz-template/core@0.0.1-beta.9
5
(lodash-es@4.17.21)(qx-util@0.4.8)(ramda@0.28.0)
:
/@ibiz-template/core@0.0.1-beta.9
6
(lodash-es@4.17.21)(qx-util@0.4.8)(ramda@0.28.0)
:
resolution
:
{
integrity
:
sha512-
/lmB8fRUEyOv7AHTUdqiUMPzl8heHMHEiyLJYNyCyqIiGDMjovQXd30O1IdEq2ebHLifzYoWfOdd/2iI0baZSw
==
}
resolution
:
{
integrity
:
sha512-
WVlAbN3ex+Vpzdz7o6zx+KMsT6gLlSwr2NMmamrmgefTEWDHyjLpmWfw24F/CLJmyvCRuEoNPmD+S1xDF1hxDg
==
}
peerDependencies
:
peerDependencies
:
lodash-es
:
^4.17.21
lodash-es
:
^4.17.21
qx-util
:
^0.4.8
qx-util
:
^0.4.8
...
@@ -979,8 +979,8 @@ packages:
...
@@ -979,8 +979,8 @@ packages:
-
debug
-
debug
dev
:
false
dev
:
false
/@ibiz-template/model@0.0.1-beta.9
5
(@ibiz/dynamic-model-api@2.1.24)(lodash-es@4.17.21)(qx-util@0.4.8)
:
/@ibiz-template/model@0.0.1-beta.9
6
(@ibiz/dynamic-model-api@2.1.24)(lodash-es@4.17.21)(qx-util@0.4.8)
:
resolution
:
{
integrity
:
sha512-
/uiyYekWjXljwsj4C+CEl4iwEd7WLDX3VyVo9GLLW0qgcuYb/soSZxU85hZhcmvIQBVE2eGNYk8sih8v7nWlYA
==
}
resolution
:
{
integrity
:
sha512-
jD/Xi0XHEHoRKv3aNuhfP63PkiVFkus7DsQvgO4iYk8/YsE9JFo1YJPWExQtCCT8aRFs3TXaXHlNlG61l+VyiQ
==
}
peerDependencies
:
peerDependencies
:
'
@ibiz/dynamic-model-api'
:
^2.1.24
'
@ibiz/dynamic-model-api'
:
^2.1.24
lodash-es
:
^4.17.21
lodash-es
:
^4.17.21
...
@@ -992,8 +992,8 @@ packages:
...
@@ -992,8 +992,8 @@ packages:
qx-util
:
0.4.8
qx-util
:
0.4.8
dev
:
false
dev
:
false
/@ibiz-template/runtime@0.0.1-beta.9
5(@ibiz-template/core@0.0.1-beta.95)(@ibiz-template/model@0.0.1-beta.95)(@ibiz-template/service@0.0.1-beta.95
)(qx-util@0.4.8)
:
/@ibiz-template/runtime@0.0.1-beta.9
6(@ibiz-template/core@0.0.1-beta.96)(@ibiz-template/model@0.0.1-beta.96)(@ibiz-template/service@0.0.1-beta.96
)(qx-util@0.4.8)
:
resolution
:
{
integrity
:
sha512-
lr3JjBFi3nH153UMiMYgHjQP+DidhXlHlMxqKb6mz7vjuniGYQV1Rlg6MJDZC3TTUX504qZQ9r9y4HrFy6xKHQ
==
}
resolution
:
{
integrity
:
sha512-
n4WdFx5RKJoHSjA7u5ajbmLSSVhGpyvYB5gdsA7SDWN0iwl+ThbH/3EtOscHTthMsYKwNIEzBsQrJeluOkW4pg
==
}
peerDependencies
:
peerDependencies
:
'
@ibiz-template/core'
:
^0.0.1-beta.30
'
@ibiz-template/core'
:
^0.0.1-beta.30
'
@ibiz-template/model'
:
^0.0.1-beta.30
'
@ibiz-template/model'
:
^0.0.1-beta.30
...
@@ -1001,33 +1001,33 @@ packages:
...
@@ -1001,33 +1001,33 @@ packages:
qx-util
:
^0.4.8
qx-util
:
^0.4.8
dependencies
:
dependencies
:
'
@ibiz-template/command'
:
0.0.1-beta.50
'
@ibiz-template/command'
:
0.0.1-beta.50
'
@ibiz-template/core'
:
0.0.1-beta.9
5
(lodash-es@4.17.21)(qx-util@0.4.8)(ramda@0.28.0)
'
@ibiz-template/core'
:
0.0.1-beta.9
6
(lodash-es@4.17.21)(qx-util@0.4.8)(ramda@0.28.0)
'
@ibiz-template/model'
:
0.0.1-beta.9
5
(@ibiz/dynamic-model-api@2.1.24)(lodash-es@4.17.21)(qx-util@0.4.8)
'
@ibiz-template/model'
:
0.0.1-beta.9
6
(@ibiz/dynamic-model-api@2.1.24)(lodash-es@4.17.21)(qx-util@0.4.8)
'
@ibiz-template/service'
:
0.0.1-beta.9
5(@ibiz-template/core@0.0.1-beta.95)(@ibiz-template/model@0.0.1-beta.95
)(qx-util@0.4.8)(ramda@0.28.0)
'
@ibiz-template/service'
:
0.0.1-beta.9
6(@ibiz-template/core@0.0.1-beta.96)(@ibiz-template/model@0.0.1-beta.96
)(qx-util@0.4.8)(ramda@0.28.0)
qs
:
6.11.1
qs
:
6.11.1
qx-util
:
0.4.8
qx-util
:
0.4.8
dev
:
false
dev
:
false
/@ibiz-template/service@0.0.1-beta.9
5(@ibiz-template/core@0.0.1-beta.95)(@ibiz-template/model@0.0.1-beta.95
)(qx-util@0.4.8)(ramda@0.28.0)
:
/@ibiz-template/service@0.0.1-beta.9
6(@ibiz-template/core@0.0.1-beta.96)(@ibiz-template/model@0.0.1-beta.96
)(qx-util@0.4.8)(ramda@0.28.0)
:
resolution
:
{
integrity
:
sha512-
I5ULWcTZIq9IMRON/kFS8Poj4lgWDCZRZGfsJ00FDvg7bsIQN/LLN4gtxQCxUtJJyiTx6UahaLHFl3cMPGvKsQ
==
}
resolution
:
{
integrity
:
sha512-
lCOufqdtplw/DLhe5VofDsZnTLroli8xjkv1N+opFFcQqSDq2n/nw9mTK7HYEMl/6P3YFF+Iefyeo+JQhIQJ3w
==
}
peerDependencies
:
peerDependencies
:
'
@ibiz-template/core'
:
^0.0.1-beta.30
'
@ibiz-template/core'
:
^0.0.1-beta.30
'
@ibiz-template/model'
:
^0.0.1-beta.30
'
@ibiz-template/model'
:
^0.0.1-beta.30
qx-util
:
^0.4.8
qx-util
:
^0.4.8
ramda
:
^0.28.0
ramda
:
^0.28.0
dependencies
:
dependencies
:
'
@ibiz-template/core'
:
0.0.1-beta.9
5
(lodash-es@4.17.21)(qx-util@0.4.8)(ramda@0.28.0)
'
@ibiz-template/core'
:
0.0.1-beta.9
6
(lodash-es@4.17.21)(qx-util@0.4.8)(ramda@0.28.0)
'
@ibiz-template/model'
:
0.0.1-beta.9
5
(@ibiz/dynamic-model-api@2.1.24)(lodash-es@4.17.21)(qx-util@0.4.8)
'
@ibiz-template/model'
:
0.0.1-beta.9
6
(@ibiz/dynamic-model-api@2.1.24)(lodash-es@4.17.21)(qx-util@0.4.8)
qx-util
:
0.4.8
qx-util
:
0.4.8
ramda
:
0.28.0
ramda
:
0.28.0
dev
:
false
dev
:
false
/@ibiz-template/theme@0.0.1-beta.9
5
:
/@ibiz-template/theme@0.0.1-beta.9
6
:
resolution
:
{
integrity
:
sha512-
4x/NDwqaLYOMlheeAeCS8y40wka9uK+9TNCG3PlrCs6ODFabhMgfxPOayoMLG0Ye9JUEAjSDQtOxKeDOe1Eq4A
==
}
resolution
:
{
integrity
:
sha512-
L9cWxQFXvgOQs4phoR83/RY3WXFXxZJ1+z2Ynaq+nwddesL1nkSeBwFZdIbpmmLfEyhWLcHM+y4BGzP2Ny89Ew
==
}
dev
:
false
dev
:
false
/@ibiz-template/vue-util@0.0.1-beta.9
5(@ibiz-template/controller@0.0.1-beta.95)(@ibiz-template/core@0.0.1-beta.95)(@ibiz-template/model@0.0.1-beta.95)(@ibiz-template/service@0.0.1-beta.95
)(qs@6.11.1)(qx-util@0.4.8)(ramda@0.28.0)(vue-router@3.6.5)(vue@2.7.14)
:
/@ibiz-template/vue-util@0.0.1-beta.9
6(@ibiz-template/controller@0.0.1-beta.96)(@ibiz-template/core@0.0.1-beta.96)(@ibiz-template/model@0.0.1-beta.96)(@ibiz-template/service@0.0.1-beta.96
)(qs@6.11.1)(qx-util@0.4.8)(ramda@0.28.0)(vue-router@3.6.5)(vue@2.7.14)
:
resolution
:
{
integrity
:
sha512-
YAAgu50mtnCAPvqEsasNGNf60HX92CbxoxrTOgXS0qqdnX4ROQZAvD3nPK0VNkU+HtJTnoD0VqirteaPrhDc6
A==
}
resolution
:
{
integrity
:
sha512-
CdaN7E/6/kF8Kd3rohg6821ObH0pz21Wgt7lwurOjgjHH/9i5IVxupslRv3YCbd31KqxHDcn4Y9dPVdsZE5d0
A==
}
peerDependencies
:
peerDependencies
:
'
@ibiz-template/controller'
:
^0.0.1-beta.30
'
@ibiz-template/controller'
:
^0.0.1-beta.30
'
@ibiz-template/core'
:
^0.0.1-beta.30
'
@ibiz-template/core'
:
^0.0.1-beta.30
...
@@ -1039,10 +1039,10 @@ packages:
...
@@ -1039,10 +1039,10 @@ packages:
vue
:
^2.7.14
vue
:
^2.7.14
vue-router
:
^3.6.5
vue-router
:
^3.6.5
dependencies
:
dependencies
:
'
@ibiz-template/controller'
:
0.0.1-beta.9
5(@ibiz-template/core@0.0.1-beta.95)(@ibiz-template/model@0.0.1-beta.95)(@ibiz-template/runtime@0.0.1-beta.95)(@ibiz-template/service@0.0.1-beta.95
)(lodash-es@4.17.21)(qs@6.11.1)(qx-util@0.4.8)
'
@ibiz-template/controller'
:
0.0.1-beta.9
6(@ibiz-template/core@0.0.1-beta.96)(@ibiz-template/model@0.0.1-beta.96)(@ibiz-template/runtime@0.0.1-beta.96)(@ibiz-template/service@0.0.1-beta.96
)(lodash-es@4.17.21)(qs@6.11.1)(qx-util@0.4.8)
'
@ibiz-template/core'
:
0.0.1-beta.9
5
(lodash-es@4.17.21)(qx-util@0.4.8)(ramda@0.28.0)
'
@ibiz-template/core'
:
0.0.1-beta.9
6
(lodash-es@4.17.21)(qx-util@0.4.8)(ramda@0.28.0)
'
@ibiz-template/model'
:
0.0.1-beta.9
5
(@ibiz/dynamic-model-api@2.1.24)(lodash-es@4.17.21)(qx-util@0.4.8)
'
@ibiz-template/model'
:
0.0.1-beta.9
6
(@ibiz/dynamic-model-api@2.1.24)(lodash-es@4.17.21)(qx-util@0.4.8)
'
@ibiz-template/service'
:
0.0.1-beta.9
5(@ibiz-template/core@0.0.1-beta.95)(@ibiz-template/model@0.0.1-beta.95
)(qx-util@0.4.8)(ramda@0.28.0)
'
@ibiz-template/service'
:
0.0.1-beta.9
6(@ibiz-template/core@0.0.1-beta.96)(@ibiz-template/model@0.0.1-beta.96
)(qx-util@0.4.8)(ramda@0.28.0)
qs
:
6.11.1
qs
:
6.11.1
qx-util
:
0.4.8
qx-util
:
0.4.8
ramda
:
0.28.0
ramda
:
0.28.0
...
...
app_Web/src/app-register.ts
浏览文件 @
55bb21b2
...
@@ -104,6 +104,7 @@ import {
...
@@ -104,6 +104,7 @@ import {
IBizPickerDropDown
,
IBizPickerDropDown
,
IBizRadio
,
IBizRadio
,
IBizSpan
,
IBizSpan
,
IBizSpanLink
,
NotSupportedEditor
,
NotSupportedEditor
,
IBizGridInput
,
IBizGridInput
,
IBizGridCheckbox
,
IBizGridCheckbox
,
...
@@ -204,6 +205,7 @@ export const AppRegister = {
...
@@ -204,6 +205,7 @@ export const AppRegister = {
// 注册编辑器组件
// 注册编辑器组件
v
.
component
(
'GridEditor'
,
GridEditor
);
v
.
component
(
'GridEditor'
,
GridEditor
);
v
.
component
(
'IBizSpan'
,
IBizSpan
);
v
.
component
(
'IBizSpan'
,
IBizSpan
);
v
.
component
(
'IBizSpanLink'
,
IBizSpanLink
);
v
.
component
(
'IBizInput'
,
IBizInput
);
v
.
component
(
'IBizInput'
,
IBizInput
);
v
.
component
(
'IBizInputNumber'
,
IBizInputNumber
);
v
.
component
(
'IBizInputNumber'
,
IBizInputNumber
);
v
.
component
(
'IBizCheckbox'
,
IBizCheckbox
);
v
.
component
(
'IBizCheckbox'
,
IBizCheckbox
);
...
...
app_Web/src/components/editor/span/ibiz-span-link/ibiz-span-link.tsx
0 → 100644
浏览文件 @
55bb21b2
import
{
ref
,
defineComponent
,
Ref
,
watch
,
computed
}
from
'vue'
;
import
{
getSpanProps
,
useNamespace
}
from
'@ibiz-template/vue-util'
;
import
dayjs
from
'dayjs'
;
import
'@ibiz-template/theme/style/components/editor/ibiz-span-link/ibiz-span-link.scss'
;
import
{
CodeListItem
}
from
'@ibiz-template/service'
;
export
const
IBizSpanLink
=
defineComponent
({
name
:
'IBizSpanLink'
,
props
:
getSpanProps
(),
setup
(
props
)
{
const
ns
=
useNamespace
(
'span-link'
);
const
c
=
props
.
controller
;
const
text
:
Ref
<
string
>
=
ref
(
''
);
const
codeList
=
c
.
model
.
codeList
;
// 值分隔符
let
valueSeparator
=
','
;
if
(
codeList
&&
codeList
.
valueSeparator
)
{
valueSeparator
=
codeList
.
valueSeparator
;
}
watch
(
()
=>
props
.
value
,
(
newVal
,
oldVal
)
=>
{
if
(
newVal
!==
oldVal
)
{
if
(
newVal
==
null
)
{
text
.
value
=
''
;
return
;
}
if
(
c
.
valueFormat
)
{
text
.
value
=
dayjs
(
newVal
).
format
(
c
.
valueFormat
);
}
else
{
text
.
value
=
`
${
newVal
}
`
;
}
if
(
c
.
unitName
)
{
text
.
value
+=
c
.
unitName
;
}
}
},
{
immediate
:
true
,
},
);
// 代码表数据
const
items
=
ref
<
readonly
CodeListItem
[]
>
([]);
if
(
codeList
)
{
watch
(
()
=>
props
.
data
,
newVal
=>
{
c
.
loadCodeList
(
newVal
).
then
(
_codeList
=>
{
items
.
value
=
_codeList
;
});
},
{
immediate
:
true
,
deep
:
true
,
},
);
}
/** 代码表转换后文本 */
const
codeListText
=
computed
(()
=>
{
if
(
!
codeList
||
!
props
.
value
||
items
.
value
.
length
===
0
)
{
return
undefined
;
}
if
(
codeList
.
codeItemValueNumber
)
{
return
items
.
value
.
find
(
item
=>
item
.
value
===
props
.
value
);
}
const
values
=
(
props
.
value
as
string
).
split
(
valueSeparator
);
const
selects
=
items
.
value
.
filter
(
item
=>
values
.
includes
(
item
.
value
as
string
&
Number
),
);
return
selects
.
map
(
item
=>
item
.
text
).
join
(
valueSeparator
);
});
const
openLinkView
=
async
()
=>
{
await
c
.
openLinkView
(
props
.
data
);
};
return
{
ns
,
text
,
codeListText
,
openLinkView
,
};
},
render
()
{
let
text
=
''
;
if
(
this
.
codeListText
!=
null
)
{
text
=
this
.
codeListText
as
string
;
}
else
if
(
this
.
text
!=
null
)
{
text
=
this
.
text
;
}
return
(
<
span
class=
{
[
this
.
ns
.
b
(),
this
.
disabled
?
this
.
ns
.
m
(
'disabled'
)
:
''
,
this
.
readonly
?
this
.
ns
.
m
(
'readonly'
)
:
''
,
]
}
>
<
a
onClick=
{
this
.
openLinkView
}
>
{
text
}
</
a
>
</
span
>
);
},
});
app_Web/src/components/editor/span/index.ts
浏览文件 @
55bb21b2
export
{
IBizSpan
}
from
'./ibiz-span/ibiz-span'
;
export
{
IBizSpan
}
from
'./ibiz-span/ibiz-span'
;
export
{
IBizGridSpan
}
from
'./ibiz-grid-span/ibiz-grid-span'
;
export
{
IBizGridSpan
}
from
'./ibiz-grid-span/ibiz-grid-span'
;
export
{
IBizSpanLink
}
from
'./ibiz-span-link/ibiz-span-link'
;
app_Web/src/provider/editor/index.ts
浏览文件 @
55bb21b2
...
@@ -21,6 +21,7 @@ export function presetEditorProvider(): void {
...
@@ -21,6 +21,7 @@ export function presetEditorProvider(): void {
}
}
// 标签
// 标签
editorRegister
.
register
(
'SPAN'
,
new
SpanEditorProvider
());
editorRegister
.
register
(
'SPAN'
,
new
SpanEditorProvider
());
editorRegister
.
register
(
'SPAN_LINK'
,
new
SpanEditorProvider
(
'SPAN_LINK'
));
// 输入框
// 输入框
const
textBoxEditorProvider
=
new
TextBoxEditorProvider
();
const
textBoxEditorProvider
=
new
TextBoxEditorProvider
();
...
...
app_Web/src/provider/editor/span-provider.ts
浏览文件 @
55bb21b2
...
@@ -19,6 +19,13 @@ export class SpanEditorProvider implements IEditorProvider {
...
@@ -19,6 +19,13 @@ export class SpanEditorProvider implements IEditorProvider {
gridEditor
:
string
=
'IBizGridSpan'
;
gridEditor
:
string
=
'IBizGridSpan'
;
constructor
(
editorType
?:
string
)
{
if
(
editorType
===
'SPAN_LINK'
)
{
this
.
formEditor
=
'IBizSpanLink'
;
this
.
gridEditor
=
'IBizSpanLink'
;
}
}
async
createController
(
async
createController
(
editorModel
:
SpanEditorModel
,
editorModel
:
SpanEditorModel
,
parentController
:
FormItemController
|
GridEditItemController
,
parentController
:
FormItemController
|
GridEditItemController
,
...
...
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录