Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
易企天创
zentaoatf
提交
b93920df
Z
zentaoatf
项目概览
易企天创
/
zentaoatf
10 个月 前同步成功
通知
11
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
3
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
Z
zentaoatf
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
3
Issue
3
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
b93920df
编写于
5月 12, 2022
作者:
aaronchen2k2k
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
switch sites and products
上级
3afd767f
变更
7
隐藏空白更改
内联
并排
Showing
7 changed file
with
145 addition
and
0 deletion
+145
-0
ui/src/layouts/MainLayout/Main.vue
ui/src/layouts/MainLayout/Main.vue
+2
-0
ui/src/layouts/MainLayout/components/Column.vue
ui/src/layouts/MainLayout/components/Column.vue
+54
-0
ui/src/layouts/MainLayout/components/Form.vue
ui/src/layouts/MainLayout/components/Form.vue
+13
-0
ui/src/layouts/MainLayout/components/FormItem.vue
ui/src/layouts/MainLayout/components/FormItem.vue
+13
-0
ui/src/layouts/MainLayout/components/Row.vue
ui/src/layouts/MainLayout/components/Row.vue
+21
-0
ui/src/layouts/MainLayout/components/WorkDir.vue
ui/src/layouts/MainLayout/components/WorkDir.vue
+8
-0
ui/src/layouts/MainLayout/style/grid.less
ui/src/layouts/MainLayout/style/grid.less
+34
-0
未找到文件。
ui/src/layouts/MainLayout/Main.vue
浏览文件 @
b93920df
...
...
@@ -26,7 +26,9 @@
import
'
./style/var.css
'
;
import
'
./style/helpers.css
'
;
import
'
./style/main.css
'
;
import
'
./style/grid.less
'
import
'
splitpanes/dist/splitpanes.css
'
import
{
Splitpanes
,
Pane
}
from
'
splitpanes
'
;
import
Navbar
from
'
./components/Navbar.vue
'
;
import
WorkDirPanel
from
'
./components/WorkDirPanel.vue
'
;
...
...
ui/src/layouts/MainLayout/components/Column.vue
0 → 100644
浏览文件 @
b93920df
<
template
>
<div
:style=
"colStyle"
:class=
"colClass"
class=
"z-col"
>
<slot></slot>
</div>
</
template
>
<
script
setup
lang=
"ts"
>
import
{
computed
,
defineProps
}
from
"
vue
"
;
import
{
ButtonProps
}
from
"
@/layouts/MainLayout/components/Button.vue
"
;
export
interface
ColumnProps
{
width
?:
number
,
span
?:
number
,
offset
?:
number
,
}
const
props
=
defineProps
<
ColumnProps
>
();
const
colClass
=
computed
(()
=>
{
const
classes
:
string
[]
=
[];
const
span
=
typeof
(
props
.
span
)
===
"
undefined
"
?
-
1
:
props
.
span
if
(
span
>
0
)
{
classes
.
push
(
`z-col-
${
span
}
`
);
}
if
(
props
.
offset
>
0
)
{
classes
.
push
(
`z-col-offset-
${
props
.
offset
}
`
);
}
return
classes
;
})
const
colStyle
=
computed
(()
=>
{
const
style
:
Record
<
string
,
any
>
=
{};
const
width
=
typeof
(
props
.
width
)
===
"
undefined
"
?
-
1
:
props
.
width
const
span
=
typeof
(
props
.
span
)
===
"
undefined
"
?
-
1
:
props
.
span
if
(
width
>
0
)
{
style
.
width
=
`
${
width
}
px`
;
}
else
if
(
span
===
0
)
{
style
.
display
=
'
none
'
;
}
return
style
})
</
script
>
<
style
lang=
"less"
scoped
>
</
style
>
ui/src/layouts/MainLayout/components/Form.vue
0 → 100644
浏览文件 @
b93920df
<
template
>
<form
class=
"z-form"
>
<slot></slot>
</form>
</
template
>
<
script
setup
lang=
"ts"
>
</
script
>
<
style
lang=
"less"
scoped
>
</
style
>
ui/src/layouts/MainLayout/components/FormItem.vue
0 → 100644
浏览文件 @
b93920df
<
template
>
<form
class=
"z-form-item"
>
<slot></slot>
</form>
</
template
>
<
script
setup
lang=
"ts"
>
</
script
>
<
style
lang=
"less"
scoped
>
</
style
>
ui/src/layouts/MainLayout/components/Row.vue
0 → 100644
浏览文件 @
b93920df
<
template
>
<div
class=
"z-row"
>
<slot></slot>
</div>
</
template
>
<
script
setup
lang=
"ts"
>
import
{
computed
,
defineProps
}
from
"
vue
"
;
import
{
ColumnProps
}
from
"
@/layouts/MainLayout/components/Column.vue
"
;
export
interface
RowProps
{
type
?:
string
,
}
const
props
=
defineProps
<
RowProps
>
();
</
script
>
<
style
lang=
"less"
scoped
>
</
style
>
ui/src/layouts/MainLayout/components/WorkDir.vue
浏览文件 @
b93920df
<
template
>
<div
class=
"workdir padding muted"
>
<Row
type=
"flex"
>
<Column
:width=
"30"
>
1
</Column>
<Column
:span=
"12"
:offset=
"4"
>
wwwwwww
</Column>
</Row>
<ScriptTreePage></ScriptTreePage>
</div>
</
template
>
...
...
@@ -13,6 +18,9 @@ import {computed, onMounted} from "vue";
import
{
ScriptData
}
from
"
@/views/script/store
"
;
import
{
resizeWidth
}
from
"
@/utils/dom
"
;
import
Row
from
"
./Row.vue
"
;
import
Column
from
"
./Column.vue
"
;
const
{
t
}
=
useI18n
();
const
zentaoStore
=
useStore
<
{
Zentao
:
ZentaoData
}
>
();
...
...
ui/src/layouts/MainLayout/style/grid.less
0 → 100644
浏览文件 @
b93920df
@z-prefix: z;
@grid-columns: 24;
.@{z-prefix}-row {
display: flex;
flex-flow: row wrap;
}
.loop-grid-columns(@index, @class) when (@index > 0) {
.@{z-prefix}-col@{class}-@{index} {
display: block;
flex: 0 0 percentage((@index / @grid-columns));
max-width: percentage((@index / @grid-columns));
}
.@{z-prefix}-col@{class}-offset-@{index} {
margin-left: percentage((@index / @grid-columns));
}
.loop-grid-columns((@index - 1), @class);
}
.loop-grid-columns(@index, @class) when (@index = 0) {
.@{z-prefix}-col@{class}-@{index} {
display: none;
}
.@{z-prefix}-col@{class}-offset-@{index} {
margin-left: 0;
}
}
.make-grid(@class: ~'') {
.loop-grid-columns(@grid-columns, @class);
}
.make-grid();
\ No newline at end of file
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录