tianheng-ui 0.0.7 → 0.0.11
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 +6 -13
- package/{src → lib}/index.js +1 -1
- package/lib/theme-chalk/cell.css +52 -0
- package/lib/theme-chalk/index.css +2 -1940
- package/lib/tianheng-ui.js +2 -0
- package/lib/tianheng-ui.js.map +1 -0
- package/package.json +8 -7
- package/packages/cell/index.vue +98 -126
- package/packages/codeEditor/index.js +8 -0
- package/packages/codeEditor/index.vue +212 -0
- package/packages/table/index.vue +24 -18
- package/dist/tianheng-ui.js +0 -2
- package/dist/tianheng-ui.js.map +0 -1
- package/src/App.vue +0 -31
- package/src/assets/logo.png +0 -0
- package/src/main.js +0 -11
package/README.md
CHANGED
@@ -1,18 +1,11 @@
|
|
1
|
-
#
|
1
|
+
# Install
|
2
2
|
|
3
|
-
>
|
3
|
+
> npm i tianheng-ui
|
4
4
|
|
5
|
-
##
|
5
|
+
## Quick Start
|
6
6
|
|
7
7
|
``` bash
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
# serve with hot reload at localhost:8080
|
12
|
-
npm run dev
|
13
|
-
|
14
|
-
# build for production with minification
|
15
|
-
npm run build
|
8
|
+
import TianhengUI from "tianheng-ui";
|
9
|
+
import 'tianheng-ui/lib/theme-chalk/index.css';
|
10
|
+
Vue.use(TianhengUI);
|
16
11
|
```
|
17
|
-
|
18
|
-
For detailed explanation on how things work, consult the [docs for vue-loader](http://vuejs.github.io/vue-loader).
|
package/{src → lib}/index.js
RENAMED
@@ -0,0 +1,52 @@
|
|
1
|
+
.th-cell {
|
2
|
+
position: relative;
|
3
|
+
display: flex;
|
4
|
+
padding: 10px 16px;
|
5
|
+
font-size: 14px;
|
6
|
+
box-sizing: border-box;
|
7
|
+
background-color: white;
|
8
|
+
overflow: hidden;
|
9
|
+
transition: 0.3s;
|
10
|
+
}
|
11
|
+
.th-cell-icon {
|
12
|
+
margin-right: 10px;
|
13
|
+
font-size: 18px;
|
14
|
+
}
|
15
|
+
.th-cell-content {
|
16
|
+
flex: 1;
|
17
|
+
}
|
18
|
+
.th-cell-title {
|
19
|
+
font-size: 16px;
|
20
|
+
}
|
21
|
+
.title-color {
|
22
|
+
color: #333333;
|
23
|
+
}
|
24
|
+
.th-cell-label {
|
25
|
+
margin-top: 5px;
|
26
|
+
font-size: 14px;
|
27
|
+
color: #666666;
|
28
|
+
word-wrap: break-word;
|
29
|
+
word-break: break-all;
|
30
|
+
}
|
31
|
+
.th-cell-value {
|
32
|
+
margin-left: 10px;
|
33
|
+
max-width: 50%;
|
34
|
+
font-size: 14px;
|
35
|
+
color: #999999;
|
36
|
+
word-wrap: break-word;
|
37
|
+
word-break: break-all;
|
38
|
+
}
|
39
|
+
|
40
|
+
.th-cell.is-active {
|
41
|
+
background-color: #f5f7fa !important;
|
42
|
+
}
|
43
|
+
.th-cell.is-center {
|
44
|
+
align-items: center;
|
45
|
+
}
|
46
|
+
.th-cell.is-hover:hover {
|
47
|
+
background-color: #f5f7fa;
|
48
|
+
}
|
49
|
+
|
50
|
+
/* .th-cell-title.is-active {
|
51
|
+
color: #409eff;
|
52
|
+
} */
|