bri-components 1.3.9 → 1.3.12

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,6 +1,6 @@
1
1
  {
2
2
  "name": "bri-components",
3
- "version": "1.3.9",
3
+ "version": "1.3.12",
4
4
  "author": "dengshanghui",
5
5
  "description": "a component lib for vue project",
6
6
  "main": "src/index.js",
@@ -105,7 +105,12 @@
105
105
 
106
106
  tablePropsObj () {
107
107
  return {
108
- maxHeight: this.contentHeight
108
+ maxHeight: this.contentHeight,
109
+ cellStyleOption: {
110
+ bodyCellClass: ({rowIndex}) => {
111
+ return "bri-table-td bri-table-td-edit";
112
+ }
113
+ }
109
114
  };
110
115
  },
111
116
  selfPropsObj () {
@@ -382,7 +382,7 @@
382
382
  // 按钮式、卡片式
383
383
  &-button {
384
384
  height: 32px;
385
- &.ivu-tabs>.ivu-tabs-bar {
385
+ &.ivu-tabs.ivu-tabs-card>.ivu-tabs-bar {
386
386
  border: none;
387
387
  margin-bottom: 0px;
388
388
  height: 100%;
@@ -438,7 +438,7 @@
438
438
 
439
439
  &-card {
440
440
  height: 32px;
441
- &.ivu-tabs > .ivu-tabs-bar {
441
+ &.ivu-tabs.ivu-tabs-card > .ivu-tabs-bar {
442
442
  border: none;
443
443
  margin: 0px;
444
444
  height: 100%;
@@ -26,48 +26,6 @@
26
26
  box-shadow: 4px 0 7px -2px rgba(0, 0, 0, 0.1);
27
27
  }
28
28
 
29
- &-th {
30
- padding: 4px 8px;
31
- border-bottom: none !important;
32
- background-color: #F0F0F0;
33
- font-size: 14px;
34
- font-weight: 500;
35
- color: rgba(0, 0, 0, 0.6);
36
- position: relative;
37
- }
38
-
39
- &-td {
40
- position: relative;
41
- padding: 4px 20px 12px 20px;
42
-
43
- &-tip {
44
- padding: 0px 0px 0px 20px;
45
- font-size: 12px;
46
- line-height: 1;
47
- color: #ed4014;
48
- position: absolute;
49
- top: calc(100% -15px);
50
- left: 0px;
51
- }
52
-
53
- &-operation {
54
- .DshButtons-dropdown-more {
55
- padding: 0px;
56
- margin-left: 16px;
57
- }
58
-
59
- &-btn {
60
- margin-left: 16px;
61
- padding: 0px;
62
-
63
-
64
- &:first-of-type {
65
- margin: 0px;
66
- }
67
- }
68
- }
69
- }
70
-
71
29
  &-content {
72
30
  width: 100%;
73
31
  max-height: 100%;
@@ -104,9 +62,9 @@
104
62
  }
105
63
  }
106
64
 
107
- tbody.ve-table-body tr.ve-table-body-tr td.ve-table-body-td {
108
- padding: 4px 20px 12px 20px;
109
- }
65
+ // tbody.ve-table-body tr.ve-table-body-tr td.ve-table-body-td {
66
+ // padding: 4px 20px 12px 20px;
67
+ // }
110
68
  }
111
69
  }
112
70
 
@@ -142,6 +100,51 @@
142
100
  color: @textColor;
143
101
  .dsh-flex-row-center-center();
144
102
  }
103
+
104
+ &-th {
105
+ padding: 4px 8px;
106
+ border-bottom: none !important;
107
+ background-color: #F0F0F0;
108
+ font-size: 14px;
109
+ font-weight: 500;
110
+ color: rgba(0, 0, 0, 0.6);
111
+ position: relative;
112
+ }
113
+
114
+ &-td {
115
+ position: relative;
116
+
117
+ &-tip {
118
+ padding: 0px 0px 0px 20px;
119
+ font-size: 12px;
120
+ line-height: 1;
121
+ color: #ed4014;
122
+ position: absolute;
123
+ top: calc(100% -15px);
124
+ left: 0px;
125
+ }
126
+
127
+ &-operation {
128
+ .DshButtons-dropdown-more {
129
+ padding: 0px;
130
+ margin-left: 16px;
131
+ }
132
+
133
+ &-btn {
134
+ margin-left: 16px;
135
+ padding: 0px;
136
+
137
+
138
+ &:first-of-type {
139
+ margin: 0px;
140
+ }
141
+ }
142
+ }
143
+
144
+ &-edit {
145
+ padding: 4px 20px 12px 20px!important;
146
+ }
147
+ }
145
148
  }
146
149
 
147
150