@neatui/css 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -0
- package/all.scss +22 -0
- package/anim/am-loading.scss +220 -0
- package/anim/am-rotate.scss +17 -0
- package/anim/am-view-aa.scss +91 -0
- package/anim/am-view-ab.scss +107 -0
- package/anim/am-view-ac.scss +114 -0
- package/anim/am-view-ad.scss +109 -0
- package/anim/am-view-ae.scss +109 -0
- package/anim/am-view-af.scss +104 -0
- package/anim/am-view-ag.scss +1789 -0
- package/anim/am-view-ah.scss +122 -0
- package/anim/am-view-ai.scss +116 -0
- package/anim/am-view-aj.scss +112 -0
- package/anim/am-view-ak.scss +102 -0
- package/anim/am-view-al.scss +98 -0
- package/anim/am-view-am.scss +97 -0
- package/anim/am-view-an.scss +109 -0
- package/anim/am-view-ao.scss +123 -0
- package/anim/am-view-ap.scss +108 -0
- package/anim/am-view-aq.scss +115 -0
- package/anim/am-view-ar.scss +113 -0
- package/anim/am-view-as.scss +99 -0
- package/anim/am-view-at.scss +103 -0
- package/anim/mcui@anim.scss +22 -0
- package/anim/package.json +16 -0
- package/badge/badge@theme=aa.scss +36 -0
- package/badge/package.json +22 -0
- package/btns/README.md +79 -0
- package/btns/base.scss +152 -0
- package/btns/btns@a.scss +469 -0
- package/btns/btns@b.scss +187 -0
- package/btns/btns@c.scss +169 -0
- package/btns/mcui@btns.scss +3 -0
- package/btns/package.json +16 -0
- package/card/card@a.scss +238 -0
- package/card/card@b.scss +75 -0
- package/card/mcui@card.scss +2 -0
- package/card/package.json +15 -0
- package/chat/chat@a.scss +139 -0
- package/chat/mcui@chat.scss +1 -0
- package/chat/package.json +11 -0
- package/cite/cite@a.scss +33 -0
- package/cite/package.json +11 -0
- package/core/README.md +142 -0
- package/core/base.scss +544 -0
- package/core/border.scss +307 -0
- package/core/color.scss +245 -0
- package/core/cols.scss +148 -0
- package/core/cover.scss +94 -0
- package/core/flex.scss +616 -0
- package/core/line.scss +4 -0
- package/core/margin.scss +0 -0
- package/core/mcui@core.scss +36 -0
- package/core/mcui@mobile.scss +37 -0
- package/core/media.scss +268 -0
- package/core/package.json +16 -0
- package/core/padding.scss +0 -0
- package/core/pos.scss +252 -0
- package/core/reset.scss +165 -0
- package/core/scale.scss +24 -0
- package/core/scroll.scss +178 -0
- package/core/shadow.scss +81 -0
- package/core/size.mobile.scss +105 -0
- package/core/size.scss +178 -0
- package/core/theme.scss +156 -0
- package/core/trim.mobile.scss +327 -0
- package/core/trim.scss +443 -0
- package/core/ux.scss +334 -0
- package/demo/demo@a.scss +34 -0
- package/demo/mcui@demo.scss +1 -0
- package/form/README.md +142 -0
- package/form/base.scss +425 -0
- package/form/form@a/base.scss +33 -0
- package/form/form@a/checkbox.scss +194 -0
- package/form/form@a/date.scss +86 -0
- package/form/form@a/index.scss +9 -0
- package/form/form@a/input.scss +156 -0
- package/form/form@a/radio.scss +99 -0
- package/form/form@a/select.scss +128 -0
- package/form/form@a/switch.scss +83 -0
- package/form/form@a/textarea.scss +105 -0
- package/form/form@a/upload.scss +162 -0
- package/form/form@b/base.scss +33 -0
- package/form/form@b/checkbox.scss +86 -0
- package/form/form@b/date.scss +107 -0
- package/form/form@b/index.scss +9 -0
- package/form/form@b/input.scss +163 -0
- package/form/form@b/radio.scss +90 -0
- package/form/form@b/select.scss +124 -0
- package/form/form@b/switch.scss +83 -0
- package/form/form@b/textarea.scss +105 -0
- package/form/form@b/upload.scss +160 -0
- package/form/form@c/base.scss +44 -0
- package/form/form@c/checkbox.scss +90 -0
- package/form/form@c/date.scss +125 -0
- package/form/form@c/index.scss +9 -0
- package/form/form@c/input.scss +169 -0
- package/form/form@c/radio.scss +84 -0
- package/form/form@c/select.scss +121 -0
- package/form/form@c/switch.scss +83 -0
- package/form/form@c/textarea.scss +85 -0
- package/form/form@c/upload.scss +159 -0
- package/form/form@d/base.scss +45 -0
- package/form/form@d/checkbox.scss +87 -0
- package/form/form@d/date.scss +125 -0
- package/form/form@d/index.scss +9 -0
- package/form/form@d/input.scss +346 -0
- package/form/form@d/radio.scss +81 -0
- package/form/form@d/select.scss +121 -0
- package/form/form@d/switch.scss +83 -0
- package/form/form@d/textarea.scss +104 -0
- package/form/form@d/upload.scss +160 -0
- package/form/mcui@form.scss +4 -0
- package/form/package.json +22 -0
- package/form/radio@theme=aa.scss +74 -0
- package/grid/grid@a.scss +54 -0
- package/grid/mcui@grid.scss +1 -0
- package/grid/package.json +16 -0
- package/icon/icon@add.scss +9 -0
- package/icon/icon@close.scss +12 -0
- package/icon/icon@down.scss +9 -0
- package/icon/icon@download.scss +26 -0
- package/icon/icon@drag.scss +9 -0
- package/icon/icon@except.scss +9 -0
- package/icon/icon@hook.scss +16 -0
- package/icon/icon@left.scss +9 -0
- package/icon/icon@link.scss +14 -0
- package/icon/icon@menu.scss +10 -0
- package/icon/icon@minus.scss +7 -0
- package/icon/icon@more.scss +8 -0
- package/icon/icon@omit.scss +8 -0
- package/icon/icon@quit.scss +11 -0
- package/icon/icon@refresh.scss +11 -0
- package/icon/icon@right.scss +9 -0
- package/icon/icon@search.scss +9 -0
- package/icon/icon@time.scss +12 -0
- package/icon/icon@top.scss +9 -0
- package/icon/icon@upload.scss +26 -0
- package/icon/icon@view.scss +20 -0
- package/icon/mcui@icon.scss +21 -0
- package/icon/package.json +15 -0
- package/imgs/README.md +78 -0
- package/imgs/base.scss +8 -0
- package/imgs/imgs@a.scss +171 -0
- package/imgs/imgs@b.scss +173 -0
- package/imgs/mcui@imgs.scss +1 -0
- package/imgs/package.json +16 -0
- package/index.js +28 -0
- package/line/line@a.scss +51 -0
- package/line/line@b.scss +63 -0
- package/line/mcui@line.scss +2 -0
- package/line/package.json +16 -0
- package/list/list@a.scss +62 -0
- package/list/list@b.scss +83 -0
- package/list/list@c.scss +89 -0
- package/list/mcui@list.scss +2 -0
- package/list/package.json +16 -0
- package/load/README.md +69 -0
- package/load/load@a.scss +44 -0
- package/load/load@b.scss +56 -0
- package/load/load@c.scss +270 -0
- package/load/load@d.scss +26 -0
- package/load/load@e.scss +24 -0
- package/load/load@f.scss +124 -0
- package/load/load@g.scss +35 -0
- package/load/load@h.scss +51 -0
- package/load/load@i.scss +51 -0
- package/load/mcui@load.scss +8 -0
- package/load/package.json +16 -0
- package/menu/mcui@menu.scss +1 -0
- package/menu/menu@b.scss +302 -0
- package/menu/menu@theme=ab.scss +282 -0
- package/menu/package.json +22 -0
- package/navs/README.md +30 -0
- package/navs/mcui@navs.scss +2 -0
- package/navs/navs@a.scss +113 -0
- package/navs/navs@b.scss +111 -0
- package/navs/package.json +16 -0
- package/note/mcui@note.scss +2 -0
- package/note/note@a.scss +26 -0
- package/note/note@b.scss +33 -0
- package/note/package.json +11 -0
- package/opts/mcui@opts.scss +1 -0
- package/opts/opts@a.scss +52 -0
- package/opts/package.json +11 -0
- package/package.json +26 -0
- package/paging/mc-paging-ui1503.scss +106 -0
- package/paging/mc-paging.scss +432 -0
- package/paging/paging@theme=aa.scss +45 -0
- package/path/README.md +142 -0
- package/path/mcui@path.scss +1 -0
- package/path/package.json +22 -0
- package/path/path@a.scss +38 -0
- package/side/mcui@side.scss +0 -0
- package/side/side.scss +2 -0
- package/steps/mcui@steps.scss +2 -0
- package/steps/package.json +17 -0
- package/steps/steps@a.scss +89 -0
- package/steps/steps@v.scss +122 -0
- package/table/base.scss +140 -0
- package/table/mcui@table.scss +3 -0
- package/table/package.json +22 -0
- package/table/table@a.scss +230 -0
- package/table/table@b.scss +78 -0
- package/table/table@c.scss +18 -0
- package/tabs/README.md +62 -0
- package/tabs/mcui@tabs.scss +1 -0
- package/tabs/package.json +22 -0
- package/tabs/tabs@a.scss +62 -0
- package/tags/README.md +71 -0
- package/tags/mcui@tags.scss +2 -0
- package/tags/package.json +22 -0
- package/tags/tags@a.scss +125 -0
- package/tags/tags@b.scss +131 -0
- package/tips/README.md +62 -0
- package/tips/base.scss +351 -0
- package/tips/mcui@tips.scss +1 -0
- package/tips/package.json +22 -0
- package/tips/tips@a.scss +52 -0
- package/title/mcui@title.scss +2 -0
- package/title/package.json +15 -0
- package/title/title@a.scss +18 -0
- package/title/title@b.scss +7 -0
- package/user/mcui@user.scss +0 -0
- package/user/user@a.scss +7 -0
package/path/README.md
ADDED
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
# @neatui/core
|
|
2
|
+
|
|
3
|
+
MCUI 核心组件,MCUI 全局架构性组件。官网 [https://mcui.fekit.cn/](https://mcui.fekit.cn/)
|
|
4
|
+
|
|
5
|
+
## 安装
|
|
6
|
+
|
|
7
|
+
### 安装核心
|
|
8
|
+
|
|
9
|
+
```
|
|
10
|
+
npm i @neatui/core
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
### 安装组件
|
|
14
|
+
|
|
15
|
+
```
|
|
16
|
+
npm i @neatui/btns
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
## 引用
|
|
20
|
+
|
|
21
|
+
```scss
|
|
22
|
+
// main.scss
|
|
23
|
+
|
|
24
|
+
// 添加主题
|
|
25
|
+
$theme: (
|
|
26
|
+
light: (
|
|
27
|
+
main: #d52932,
|
|
28
|
+
// 主体
|
|
29
|
+
vice: #67337d,
|
|
30
|
+
// 辅助
|
|
31
|
+
text: #000000,
|
|
32
|
+
// 文本
|
|
33
|
+
back: #ffffff,
|
|
34
|
+
// 底色
|
|
35
|
+
link: #0d66d0,
|
|
36
|
+
// 链接
|
|
37
|
+
code: #e23861,
|
|
38
|
+
// 代码
|
|
39
|
+
well: #4bbc73,
|
|
40
|
+
// 提倡
|
|
41
|
+
warn: #fb9a2a,
|
|
42
|
+
// 警告
|
|
43
|
+
risk: #f95850,
|
|
44
|
+
// 风险
|
|
45
|
+
info: #0889e4 // 信息
|
|
46
|
+
),
|
|
47
|
+
dark: (
|
|
48
|
+
main: #91cc48,
|
|
49
|
+
vice: #ffa60f,
|
|
50
|
+
text: rgba(255, 255, 255, 0.9),
|
|
51
|
+
back: #262629,
|
|
52
|
+
link: #00b9ff,
|
|
53
|
+
code: #e23861,
|
|
54
|
+
well: #49ca74,
|
|
55
|
+
warn: #fb9a2a,
|
|
56
|
+
risk: #fd7466,
|
|
57
|
+
info: #949af9
|
|
58
|
+
)
|
|
59
|
+
// 添加更多主题...
|
|
60
|
+
);
|
|
61
|
+
|
|
62
|
+
// 引用框架核心
|
|
63
|
+
@import '~@neatui/core';
|
|
64
|
+
|
|
65
|
+
// 引用业务组件
|
|
66
|
+
@import '~@neatui/btns';
|
|
67
|
+
// 引用更多组件...
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
## 使用
|
|
71
|
+
|
|
72
|
+
### 颜色
|
|
73
|
+
|
|
74
|
+
```scss
|
|
75
|
+
@import '~@neatui/core';
|
|
76
|
+
|
|
77
|
+
.header {
|
|
78
|
+
position: fixed;
|
|
79
|
+
width: 100%;
|
|
80
|
+
height: 4rem;
|
|
81
|
+
left: 0;
|
|
82
|
+
top: 0;
|
|
83
|
+
|
|
84
|
+
@include theme {
|
|
85
|
+
background-color: co(back);
|
|
86
|
+
color: co(text);
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
↓
|
|
92
|
+
|
|
93
|
+
```css
|
|
94
|
+
/* 编译成css: */
|
|
95
|
+
.header {
|
|
96
|
+
position: fixed;
|
|
97
|
+
width: 100%;
|
|
98
|
+
height: 4rem;
|
|
99
|
+
left: 0;
|
|
100
|
+
top: 0;
|
|
101
|
+
}
|
|
102
|
+
[mcui~='light'] .header {
|
|
103
|
+
background-color: #ffffff;
|
|
104
|
+
color: #000000;
|
|
105
|
+
}
|
|
106
|
+
[mcui~='dark'] .header {
|
|
107
|
+
background-color: #262629;
|
|
108
|
+
color: rgba(255, 255, 255, 0.9);
|
|
109
|
+
}
|
|
110
|
+
```
|
|
111
|
+
|
|
112
|
+
### 响应三端
|
|
113
|
+
|
|
114
|
+
```scss
|
|
115
|
+
@import '~@neatui/core';
|
|
116
|
+
|
|
117
|
+
body {
|
|
118
|
+
font-size: 14px;
|
|
119
|
+
|
|
120
|
+
@include mob {
|
|
121
|
+
font-size: 12px;
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
```
|
|
125
|
+
|
|
126
|
+
↓
|
|
127
|
+
|
|
128
|
+
```css
|
|
129
|
+
/* 编译成css: */
|
|
130
|
+
body {
|
|
131
|
+
font-size: 14px;
|
|
132
|
+
}
|
|
133
|
+
@media screen and (max-width: 767px) {
|
|
134
|
+
body {
|
|
135
|
+
font-size: 12px;
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
```
|
|
139
|
+
|
|
140
|
+
## 更多
|
|
141
|
+
|
|
142
|
+
详细文档请到MCUI官网 [https://mcui.fekit.cn](https://mcui.fekit.cn)
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@import './path@a.scss';
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@neatui/path",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "",
|
|
5
|
+
"main": "mcui@path.scss",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"test": "echo \"Error: no test specified\" && exit 1"
|
|
8
|
+
},
|
|
9
|
+
"repository": {
|
|
10
|
+
"type": "git",
|
|
11
|
+
"url": "git+https://gitlab.com/mcui/mcui.desktop.git"
|
|
12
|
+
},
|
|
13
|
+
"keywords": [
|
|
14
|
+
"mcui"
|
|
15
|
+
],
|
|
16
|
+
"author": "xiaojunbo",
|
|
17
|
+
"license": "MIT",
|
|
18
|
+
"bugs": {
|
|
19
|
+
"url": "https://gitlab.com/mcui/mcui.desktop/issues"
|
|
20
|
+
},
|
|
21
|
+
"homepage": "https://gitlab.com/mcui/mcui.desktop#readme"
|
|
22
|
+
}
|
package/path/path@a.scss
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
[ui-path~='@a'] {
|
|
2
|
+
& > * {
|
|
3
|
+
display: inline-flex;
|
|
4
|
+
align-items: center;
|
|
5
|
+
align-content: center;
|
|
6
|
+
|
|
7
|
+
&:not(:last-child) {
|
|
8
|
+
cursor: pointer;
|
|
9
|
+
transition: all 0.3s;
|
|
10
|
+
@include dpc {
|
|
11
|
+
&:hover {
|
|
12
|
+
@include theme {
|
|
13
|
+
color: co(main);
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
@include pad {
|
|
19
|
+
&:active {
|
|
20
|
+
@include theme {
|
|
21
|
+
color: co(main);
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
// 分隔符
|
|
27
|
+
&:after {
|
|
28
|
+
content: '';
|
|
29
|
+
width: 1em;
|
|
30
|
+
height: 1em;
|
|
31
|
+
background:
|
|
32
|
+
linear-gradient(225deg, transparent 51%, currentColor 52%, currentColor 67%, transparent 68%) no-repeat 70% 23.5% / 50% 35%,
|
|
33
|
+
linear-gradient(-45deg, transparent 51%, currentColor 52%, currentColor 67%, transparent 68%) no-repeat 70% 76.5% / 50% 35%;
|
|
34
|
+
opacity: 0.5;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
File without changes
|
package/side/side.scss
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@neatui/steps",
|
|
3
|
+
"version": "1.0.8",
|
|
4
|
+
"description": "",
|
|
5
|
+
"main": "mcui@steps.scss",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"test": "echo \"Error: no test specified\" && exit 1"
|
|
8
|
+
},
|
|
9
|
+
"keywords": [
|
|
10
|
+
"steps"
|
|
11
|
+
],
|
|
12
|
+
"author": "xiaojunbo",
|
|
13
|
+
"license": "MIT",
|
|
14
|
+
"dependencies": {
|
|
15
|
+
"@neatui/icon": "^1.0.2"
|
|
16
|
+
}
|
|
17
|
+
}
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
@import '../icon/icon@hook.scss';
|
|
2
|
+
@import '../icon/icon@close.scss';
|
|
3
|
+
$co: 'none', 'main', 'vice', 'text', 'read', 'note', 'line', 'case', 'weak', 'fore', 'back', 'info', 'well', 'warn', 'risk';
|
|
4
|
+
$sz: 'xs', 's', 'm', 'l', 'xl';
|
|
5
|
+
|
|
6
|
+
[ui-steps~='@a'] {
|
|
7
|
+
& {
|
|
8
|
+
display: inline-flex;
|
|
9
|
+
justify-content: space-around;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
&[ui-steps~=':block'] {
|
|
13
|
+
display: flex;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
// 宽度撑满
|
|
17
|
+
&[ui-steps~=':full'] {
|
|
18
|
+
width: 100%;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
& > * {
|
|
22
|
+
position: relative;
|
|
23
|
+
padding-top: 2em;
|
|
24
|
+
padding-left: 0.5em;
|
|
25
|
+
padding-right: 0.5em;
|
|
26
|
+
flex-grow: 1;
|
|
27
|
+
text-align: center;
|
|
28
|
+
|
|
29
|
+
&::before {
|
|
30
|
+
position: absolute;
|
|
31
|
+
display: block;
|
|
32
|
+
content: '';
|
|
33
|
+
width: 100%;
|
|
34
|
+
height: 1px;
|
|
35
|
+
border-radius: 2px;
|
|
36
|
+
left: 0;
|
|
37
|
+
top: 0.75em;
|
|
38
|
+
@include theme {
|
|
39
|
+
background: radial-gradient(circle at 50% 50%, transparent 2%, co(case) 2.1%) no-repeat center / 100em 100%;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
&::after {
|
|
43
|
+
position: absolute;
|
|
44
|
+
display: block;
|
|
45
|
+
content: '';
|
|
46
|
+
width: 1.5em;
|
|
47
|
+
height: 1.5em;
|
|
48
|
+
left: 50%;
|
|
49
|
+
margin-left: -0.75em;
|
|
50
|
+
top: 0;
|
|
51
|
+
border-radius: 50%;
|
|
52
|
+
@include theme {
|
|
53
|
+
border: 1px solid co(case);
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
&.done {
|
|
58
|
+
@include theme {
|
|
59
|
+
color: co(well);
|
|
60
|
+
}
|
|
61
|
+
&::before {
|
|
62
|
+
@include theme {
|
|
63
|
+
background: radial-gradient(circle at 50% 50%, transparent 2%, co(well) 2.1%) no-repeat center / 100em 100%;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
&::after {
|
|
67
|
+
@include theme {
|
|
68
|
+
border: 1px solid co(well);
|
|
69
|
+
}
|
|
70
|
+
@extend %icon-hook;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
&.fail {
|
|
75
|
+
@include theme {
|
|
76
|
+
color: co(risk);
|
|
77
|
+
}
|
|
78
|
+
&::before {
|
|
79
|
+
@include theme {
|
|
80
|
+
background: radial-gradient(circle at 50% 50%, transparent 2%, co(risk) 2.1%) no-repeat center / 100em 100%;
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
&::after {
|
|
84
|
+
border: 1px solid co(risk);
|
|
85
|
+
@extend %icon-close;
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
}
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
@import '../icon/icon@hook.scss';
|
|
2
|
+
@import '../icon/icon@close.scss';
|
|
3
|
+
@import '../icon/icon@more.scss';
|
|
4
|
+
|
|
5
|
+
$co: 'none', 'main', 'vice', 'text', 'read', 'note', 'line', 'case', 'weak', 'fore', 'back', 'info', 'well', 'warn', 'risk';
|
|
6
|
+
$sz: 'xs', 's', 'm', 'l', 'xl';
|
|
7
|
+
|
|
8
|
+
[ui-steps~='@v'] {
|
|
9
|
+
& {
|
|
10
|
+
display: flex;
|
|
11
|
+
flex-direction: column;
|
|
12
|
+
justify-content: flex-start;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
// 宽度撑满
|
|
16
|
+
&[ui-steps~=':full'] {
|
|
17
|
+
width: 100%;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
& > * {
|
|
21
|
+
position: relative;
|
|
22
|
+
padding-left: 2em;
|
|
23
|
+
padding-bottom: 1.5em;
|
|
24
|
+
flex-grow: 1;
|
|
25
|
+
@include theme {
|
|
26
|
+
color: co(note);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
&:last-child {
|
|
30
|
+
padding-bottom: 0;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
& > *:first-child {
|
|
34
|
+
line-height: 1.2;
|
|
35
|
+
margin-bottom: 0.2em;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
&::before {
|
|
39
|
+
position: absolute;
|
|
40
|
+
display: block;
|
|
41
|
+
content: '';
|
|
42
|
+
width: 1px;
|
|
43
|
+
border-radius: 2px;
|
|
44
|
+
left: 0.55em;
|
|
45
|
+
top: 1.5em;
|
|
46
|
+
bottom: 0.3em;
|
|
47
|
+
@include theme {
|
|
48
|
+
background: co(case);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
&::after {
|
|
52
|
+
position: absolute;
|
|
53
|
+
display: block;
|
|
54
|
+
content: attr(data-num);
|
|
55
|
+
width: 1.2em;
|
|
56
|
+
height: 1.2em;
|
|
57
|
+
text-align: center;
|
|
58
|
+
line-height: 1em;
|
|
59
|
+
left: 0%;
|
|
60
|
+
top: 0;
|
|
61
|
+
border-radius: 50%;
|
|
62
|
+
@include theme {
|
|
63
|
+
color: co(note);
|
|
64
|
+
border: 1px solid co(note);
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
&.done {
|
|
69
|
+
@include theme {
|
|
70
|
+
color: co(main);
|
|
71
|
+
}
|
|
72
|
+
&::before {
|
|
73
|
+
@include theme {
|
|
74
|
+
background: co(main);
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
&::after {
|
|
78
|
+
content: '';
|
|
79
|
+
@include theme {
|
|
80
|
+
color: co(main);
|
|
81
|
+
border: 1px solid co(main);
|
|
82
|
+
}
|
|
83
|
+
@extend %icon-hook;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
&.fail {
|
|
88
|
+
@include theme {
|
|
89
|
+
color: co(risk);
|
|
90
|
+
}
|
|
91
|
+
&::before {
|
|
92
|
+
@include theme {
|
|
93
|
+
background: co(risk);
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
&::after {
|
|
97
|
+
content: '';
|
|
98
|
+
@include theme {
|
|
99
|
+
color: co(risk);
|
|
100
|
+
border: 1px solid co(risk);
|
|
101
|
+
}
|
|
102
|
+
@extend %icon-close;
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
&.curr {
|
|
107
|
+
&::before {
|
|
108
|
+
@include theme {
|
|
109
|
+
background: co(read);
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
&::after {
|
|
113
|
+
content: '';
|
|
114
|
+
@include theme {
|
|
115
|
+
color: co(read);
|
|
116
|
+
border: 1px solid co(read);
|
|
117
|
+
}
|
|
118
|
+
@extend %icon-more;
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
}
|
package/table/base.scss
ADDED
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
[ui-table] {
|
|
2
|
+
width: 100%;
|
|
3
|
+
|
|
4
|
+
th,
|
|
5
|
+
td {
|
|
6
|
+
&[col-fixed] {
|
|
7
|
+
position: sticky !important;
|
|
8
|
+
z-index: 1;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
&[min-width] {
|
|
12
|
+
width: 1%;
|
|
13
|
+
white-space: nowrap;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
&[col-fixed-side='l'] {
|
|
17
|
+
position: sticky;
|
|
18
|
+
&::before {
|
|
19
|
+
content: '';
|
|
20
|
+
display: block;
|
|
21
|
+
position: absolute;
|
|
22
|
+
width: 5px;
|
|
23
|
+
height: 100%;
|
|
24
|
+
right: -5px;
|
|
25
|
+
top: 0;
|
|
26
|
+
@include theme {
|
|
27
|
+
box-shadow: inset 5px 0 5px -5px rgba(co(text), 0.15);
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
&[col-fixed-side='r'] {
|
|
32
|
+
position: sticky;
|
|
33
|
+
&::before {
|
|
34
|
+
content: '';
|
|
35
|
+
display: block;
|
|
36
|
+
position: absolute;
|
|
37
|
+
width: 5px;
|
|
38
|
+
height: 100%;
|
|
39
|
+
left: -5px;
|
|
40
|
+
top: 0;
|
|
41
|
+
@include theme {
|
|
42
|
+
box-shadow: inset -5px 0 5px -5px rgba(co(text), 0.15);
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
// 固宽
|
|
49
|
+
&[ui-table~=':fix'],
|
|
50
|
+
&[ui-table~=':fixed'] {
|
|
51
|
+
table-layout: fixed;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
// 对齐
|
|
55
|
+
&[ui-table~=':vt'] {
|
|
56
|
+
th,
|
|
57
|
+
td {
|
|
58
|
+
vertical-align: top;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
&[ui-table~=':vb'] {
|
|
62
|
+
th,
|
|
63
|
+
td {
|
|
64
|
+
vertical-align: bottom;
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
// 尺寸
|
|
69
|
+
&[ui-table~='sz:xs'] {
|
|
70
|
+
th,
|
|
71
|
+
td {
|
|
72
|
+
padding: 0.25em;
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
&[ui-table~='sz:s'] {
|
|
76
|
+
th,
|
|
77
|
+
td {
|
|
78
|
+
padding: 0.5em;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
&,
|
|
82
|
+
&[ui-table~='sz:m'] {
|
|
83
|
+
th,
|
|
84
|
+
td {
|
|
85
|
+
padding: 0.75em;
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
&[ui-table~='sz:l'] {
|
|
89
|
+
th,
|
|
90
|
+
td {
|
|
91
|
+
padding: 1em;
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
&[ui-table~='sz:xl'] {
|
|
95
|
+
th,
|
|
96
|
+
td {
|
|
97
|
+
padding: 1.25em;
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
// 固定头部
|
|
102
|
+
.table-head-fixed {
|
|
103
|
+
@include theme {
|
|
104
|
+
background: co(fore);
|
|
105
|
+
box-shadow:
|
|
106
|
+
2px 0 0 co(fore),
|
|
107
|
+
-2px 0 0 co(fore),
|
|
108
|
+
0 -2px 0 co(fore),
|
|
109
|
+
0 1px 3px rgba(co(deep), 0.5);
|
|
110
|
+
}
|
|
111
|
+
position: sticky;
|
|
112
|
+
top: 0;
|
|
113
|
+
z-index: 3;
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
[scroll-side-l='1'] {
|
|
118
|
+
[ui-table] {
|
|
119
|
+
th,
|
|
120
|
+
td {
|
|
121
|
+
&[col-fixed-side='l'] {
|
|
122
|
+
&:before {
|
|
123
|
+
display: none;
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
[scroll-side-r='1'] {
|
|
130
|
+
[ui-table] {
|
|
131
|
+
th,
|
|
132
|
+
td {
|
|
133
|
+
&[col-fixed-side='r'] {
|
|
134
|
+
&:before {
|
|
135
|
+
display: none;
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@neatui/table",
|
|
3
|
+
"version": "1.1.22",
|
|
4
|
+
"description": "",
|
|
5
|
+
"main": "mcui@table.scss",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"test": "echo \"Error: no test specified\" && exit 1"
|
|
8
|
+
},
|
|
9
|
+
"repository": {
|
|
10
|
+
"type": "git",
|
|
11
|
+
"url": "git+https://gitlab.com/mcui/mcui.desktop.git"
|
|
12
|
+
},
|
|
13
|
+
"keywords": [
|
|
14
|
+
"mcui"
|
|
15
|
+
],
|
|
16
|
+
"author": "xiaojunbo",
|
|
17
|
+
"license": "MIT",
|
|
18
|
+
"bugs": {
|
|
19
|
+
"url": "https://gitlab.com/mcui/mcui.desktop/issues"
|
|
20
|
+
},
|
|
21
|
+
"homepage": "https://gitlab.com/mcui/mcui.desktop#readme"
|
|
22
|
+
}
|