@lambo-design/detail-table 1.0.0-beta.2 → 1.0.0-beta.20

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/package.json CHANGED
@@ -1,18 +1,17 @@
1
- {
2
- "name": "@lambo-design/detail-table",
3
- "version": "1.0.0-beta.2",
4
- "description": "",
5
- "main": "index.js",
6
- "scripts": {
7
-
8
- },
9
- "author": "lambo",
10
- "license": "ISC",
11
- "publishConfig": {
12
- "access": "public"
13
- },
14
- "devDependencies": {
15
- "@lambo-design/core": "workspace:*",
16
- "@lambo-design/shared": "workspace:*"
17
- }
18
- }
1
+ {
2
+ "name": "@lambo-design/detail-table",
3
+ "version": "1.0.0-beta.20",
4
+ "description": "",
5
+ "main": "index.js",
6
+ "author": "lambo",
7
+ "license": "ISC",
8
+ "publishConfig": {
9
+ "access": "public",
10
+ "registry": "https://registry.npmjs.org/"
11
+ },
12
+ "devDependencies": {
13
+ "@lambo-design/core": "^4.7.1-beta.60",
14
+ "@lambo-design/shared": "^1.0.0-beta.43"
15
+ },
16
+ "scripts": {}
17
+ }
@@ -51,7 +51,8 @@ const Col = {
51
51
  {
52
52
  class: `${prefixCls}-item-content`,
53
53
  key: `${key}-content`,
54
- colSpan: span * 2 - 1
54
+ attrs:{colSpan: span * 2 - 1}
55
+
55
56
  },
56
57
  slots.default
57
58
  );
@@ -1,7 +1,9 @@
1
- @descriptions-prefix-cls: lambo-detail-table;
2
- @descriptions-default-padding: 16px 24px;
3
- @descriptions-middle-padding: 12px 24px;
4
- @descriptions-small-padding: 8px 16px;
1
+ @import "@lambo-design/core/src/styles/default.less";
2
+ @descriptions-prefix-cls: lambo-detail-table;
3
+
4
+ @descriptions-default-padding: 10px 16px;
5
+ @descriptions-middle-padding: 8px 12px;
6
+ @descriptions-small-padding: 6px 8px;
5
7
 
6
8
  .@{descriptions-prefix-cls} {
7
9
  &-title {
@@ -15,7 +17,6 @@
15
17
  &-view {
16
18
  width: 100%;
17
19
  overflow: hidden;
18
- border-radius: 4px;
19
20
  table {
20
21
  width: 100%;
21
22
  table-layout: fixed;
@@ -34,8 +35,9 @@
34
35
  }
35
36
 
36
37
  &-item-label {
37
- color: fade(#000, 85%);
38
- font-weight: normal;
38
+ color: var(--heading-color,@_heading-color);;
39
+ text-align: left;
40
+ font-weight: 500;
39
41
  font-size: 14px;
40
42
  line-height: 1.5;
41
43
 
@@ -62,7 +64,7 @@
62
64
 
63
65
  &-item-content {
64
66
  display: table-cell;
65
- color: fade(#000, 65%);;
67
+ color: var(--text-color,@_text-color);;
66
68
  font-size: 14px;
67
69
  line-height: 1.5;
68
70
  }
@@ -94,7 +96,6 @@
94
96
 
95
97
  &-bordered {
96
98
  .@{descriptions-prefix-cls}-view {
97
- border: 1px solid hsv(0, 0, 91%);
98
99
  > table {
99
100
  table-layout: auto;
100
101
  }
@@ -103,7 +104,7 @@
103
104
  .@{descriptions-prefix-cls}-item-label,
104
105
  .@{descriptions-prefix-cls}-item-content {
105
106
  padding: @descriptions-default-padding;
106
- border-right: 1px solid hsv(0, 0, 91%); ;
107
+ border: 1px solid var(--border-color-base,@_border-color-base); ;
107
108
 
108
109
  &:last-child {
109
110
  border-right: none;
@@ -111,17 +112,16 @@
111
112
  }
112
113
 
113
114
  .@{descriptions-prefix-cls}-item-label {
114
- background-color: #fafafa;
115
+ //background-color: #f0f0f1ff;
116
+ background-color: var(--table-thead-bg,@_table-thead-bg);
117
+
115
118
  &::after {
116
119
  display: none;
117
120
  }
118
121
  }
119
122
 
120
123
  .@{descriptions-prefix-cls}-row {
121
- border-bottom: 1px solid hsv(0, 0, 91%);
122
- &:last-child {
123
- border-bottom: none;
124
- }
124
+ border: 1px solid var(--border-color-base,@_border-color-base); ;
125
125
  }
126
126
 
127
127
  &.@{descriptions-prefix-cls}-middle {