bri-components 1.3.90 → 1.3.92

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.
@@ -26,7 +26,7 @@ export default {
26
26
  }
27
27
  },
28
28
 
29
- /* 内部表,层级表内的字段用到的 */
29
+ /* 表格字段内用到的 */
30
30
  inTableType: {
31
31
  type: String,
32
32
  validator (val) {
@@ -130,6 +130,29 @@
130
130
  .dsh-flex-row-center-center();
131
131
  }
132
132
 
133
+ &-nodata {
134
+ height: 30px;
135
+ text-align: center;
136
+ }
137
+
138
+ &-dropdown {
139
+ position: absolute;
140
+ right: 0px;
141
+ bottom: 0px;
142
+ display: none;
143
+ z-index: 2;
144
+ text-align: left;
145
+
146
+ &-list {
147
+ min-width: 120px;
148
+ margin: 0px;
149
+
150
+ li {
151
+ padding-left: 15px !important;
152
+ }
153
+ }
154
+ }
155
+
133
156
  &-th {
134
157
  padding: 4px 8px;
135
158
  border-bottom: none !important;
@@ -200,6 +223,27 @@
200
223
  &-hide {
201
224
  display: none!important;
202
225
  }
226
+
227
+ &-tree,
228
+ &-merge {
229
+ textarea.ivu-input {
230
+ min-height: 18px;
231
+ padding: 0px;
232
+ border: none;
233
+ background-color: transparent;
234
+ box-shadow: none;
235
+ line-height: 18px;
236
+ }
237
+ }
238
+ }
239
+
240
+ &-th,
241
+ &-td {
242
+ &:hover {
243
+ .bri-table-dropdown {
244
+ display: inline-block;
245
+ }
246
+ }
203
247
  }
204
248
  }
205
249
 
@@ -132,7 +132,7 @@ const transformToColumns = function (form, {
132
132
  },
133
133
  renderBodyCell: col._type
134
134
  ? col._type === "operation"
135
- ? ({ row, column, rowIndex }, h) => {
135
+ ? ({ row, rowIndex, column }, h) => {
136
136
  return h("dsh-buttons", {
137
137
  class: "bri-table-td-operation",
138
138
  props: {
@@ -141,12 +141,12 @@ const transformToColumns = function (form, {
141
141
  },
142
142
  on: {
143
143
  click: (operationItem) => {
144
- this.$dispatchEvent(operationItem, { row, column, rowIndex });
144
+ this.$dispatchEvent(operationItem, { row, rowIndex, column });
145
145
  }
146
146
  }
147
147
  });
148
148
  }
149
- : ({ row, column, rowIndex }, h) => {
149
+ : ({ row, rowIndex, column }, h) => {
150
150
  return h("dsh-list-unit", {
151
151
  props: {
152
152
  canEdit: false,