bri-components 1.0.5 → 1.1.1

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.
Files changed (119) hide show
  1. package/lib/0.bri-components.min.js +1 -1
  2. package/lib/1.bri-components.min.js +1 -1
  3. package/lib/2.bri-components.min.js +1 -1
  4. package/lib/3.bri-components.min.js +1 -1
  5. package/lib/4.bri-components.min.js +1 -1
  6. package/lib/5.bri-components.min.js +1 -1
  7. package/lib/6.bri-components.min.js +1 -1
  8. package/lib/7.bri-components.min.js +1 -0
  9. package/lib/8.bri-components.min.js +1 -0
  10. package/lib/9.bri-components.min.js +1 -0
  11. package/lib/bri-components.min.js +13 -5
  12. package/lib/styles/bundle.css +0 -2
  13. package/package.json +2 -1
  14. package/src/components/controls/base/BriLabels.vue +223 -0
  15. package/src/components/controls/base/DshCascader.vue +24 -43
  16. package/src/components/controls/base/DshCascaderMultiple.vue +1 -1
  17. package/src/components/controls/base/DshCheckbox.vue +14 -4
  18. package/src/components/controls/base/DshCoordinates.vue +88 -87
  19. package/src/components/controls/base/DshDate.vue +10 -34
  20. package/src/components/controls/base/DshDivider.vue +1 -1
  21. package/src/components/controls/base/DshEditor.vue +57 -44
  22. package/src/components/controls/base/DshInput.vue +18 -45
  23. package/src/components/controls/base/DshLabels.vue +8 -4
  24. package/src/components/controls/base/DshNumber/DshNumber.vue +6 -20
  25. package/src/components/controls/base/DshNumberange.vue +1 -1
  26. package/src/components/controls/base/DshPackage.vue +7 -1
  27. package/src/components/controls/base/DshSelect.vue +15 -5
  28. package/src/components/controls/base/DshSwitch.vue +2 -6
  29. package/src/components/controls/base/YSerialNumber.vue +0 -1
  30. package/src/components/controls/base/ZUpload/index.vue +16 -10
  31. package/src/components/controls/base/ZUpload/upload-list.vue +17 -12
  32. package/src/components/controls/base/ZUpload/uploadMixin.js +1 -5
  33. package/src/components/controls/base/controlShow.vue +52 -0
  34. package/src/components/controls/base/textMultiple/DshTextMultiple.vue +1 -1
  35. package/src/components/controls/controlMap.js +4 -0
  36. package/src/components/controls/controlMixin.js +18 -12
  37. package/src/components/controls/senior/cascaderTable.vue +188 -0
  38. package/src/components/controls/senior/flatTable.vue +136 -0
  39. package/src/components/form/DshForm.vue +4 -3
  40. package/src/components/list/BriFlatTable.vue +435 -0
  41. package/src/components/list/BriTable.vue +184 -0
  42. package/src/components/list/DshBox/DshBox.vue +1 -1
  43. package/src/components/list/DshBox/DshCard.vue +1 -1
  44. package/src/components/list/DshBox/DshCrossTable.vue +1 -1
  45. package/src/components/list/DshBox/DshList.vue +3 -3
  46. package/src/components/list/DshBox/DshPanel.vue +5 -10
  47. package/src/components/list/DshBox/DshSingleData.vue +1 -1
  48. package/src/components/list/DshBox/DshTable.vue +29 -39
  49. package/src/components/list/DshCascaderTable.vue +8 -12
  50. package/src/components/list/DshFlatTable.vue +1 -1
  51. package/src/components/list/easyTable/v-table/src/table.vue +3 -3
  52. package/src/components/list/evTable/EvTable.vue +1 -1
  53. package/src/components/other/BriTransfer.vue +71 -0
  54. package/src/components/other/ZGantt.vue +2 -2
  55. package/src/components/small/BriButton.vue +65 -0
  56. package/src/components/small/BriTree.vue +42 -0
  57. package/src/components/small/Ctooltip.vue +1 -1
  58. package/src/components/small/DshButtons.vue +12 -42
  59. package/src/components/small/DshControlDefine.vue +2 -1
  60. package/src/components/small/DshDropdown.vue +1 -1
  61. package/src/components/small/DshTdRender.js +1 -1
  62. package/src/components/unit/DshFormItem.vue +0 -2
  63. package/src/components/unit/DshUnit.vue +1 -1
  64. package/src/components/unit/unitMixin.js +4 -1
  65. package/src/index.js +24 -4
  66. package/src/styles/bundle.css +0 -2
  67. package/src/styles/common/common.less +2 -2
  68. package/src/styles/common/control.less +54 -0
  69. package/src/styles/common/index.less +1 -0
  70. package/src/styles/components/controls/BriLabels.less +119 -0
  71. package/src/styles/components/controls/DshCascader.less +3 -3
  72. package/src/styles/components/controls/DshCheckbox.less +1 -1
  73. package/src/styles/components/controls/DshCoordinates.less +8 -3
  74. package/src/styles/components/controls/DshDate.less +54 -0
  75. package/src/styles/components/controls/DshDaterange.less +1 -1
  76. package/src/styles/components/controls/DshEditor.less +27 -9
  77. package/src/styles/components/controls/DshInput.less +11 -5
  78. package/src/styles/components/controls/DshLabels.less +1 -1
  79. package/src/styles/components/controls/DshSelect.less +46 -30
  80. package/src/styles/components/controls/ZUpload.less +82 -91
  81. package/src/styles/components/controls/cascaderTable.less +33 -0
  82. package/src/styles/components/controls/controlShow.less +10 -0
  83. package/src/styles/components/controls/flatTable.less +33 -0
  84. package/src/styles/components/form/DshAdvSearchForm.less +6 -6
  85. package/src/styles/components/index.less +11 -1
  86. package/src/styles/components/list/BriFlatTable.less +8 -0
  87. package/src/styles/components/list/BriTable.less +155 -0
  88. package/src/styles/components/list/DshFlatTable.less +3 -8
  89. package/src/styles/components/list/evTable.less +1 -1
  90. package/src/styles/components/other/BriTransfer.less +65 -0
  91. package/src/styles/components/other/DshEditPanel.less +2 -2
  92. package/src/styles/components/other/DshMenuNav.less +5 -5
  93. package/src/styles/components/other/ZGantt.less +5 -5
  94. package/src/styles/components/small/BriButton.less +259 -0
  95. package/src/styles/components/small/BriTree.less +57 -0
  96. package/src/styles/components/small/Ctooltip.less +14 -0
  97. package/src/styles/components/small/DshButtons.less +1 -1
  98. package/src/styles/components/small/DshControlDefine.less +13 -35
  99. package/src/styles/components/small/DshDropdown.less +1 -1
  100. package/src/styles/components/small/DshPage.less +1 -1
  101. package/src/styles/components/small/DshTabs.less +2 -2
  102. package/src/styles/components/small/DshTitle.less +0 -3
  103. package/src/styles/components/unit/DshFormItem.less +6 -7
  104. package/src/styles/iconfont/iconfont.css +254 -0
  105. package/src/styles/iconfont/iconfont.eot +0 -0
  106. package/src/styles/iconfont/iconfont.js +1 -0
  107. package/src/styles/iconfont/iconfont.json +422 -0
  108. package/src/styles/iconfont/iconfont.svg +137 -0
  109. package/src/styles/iconfont/iconfont.ttf +0 -0
  110. package/src/styles/iconfont/iconfont.woff +0 -0
  111. package/src/styles/iconfont/iconfont.woff2 +0 -0
  112. package/src/styles/index.less +2 -5
  113. package/src/styles/plugin/easytable.less +22 -0
  114. package/src/styles/plugin/index.less +2 -0
  115. package/src/styles/plugin/iview.less +34 -0
  116. package/src/styles/variables.less +71 -88
  117. package/src/utils/table.js +72 -978
  118. package/src/styles/define.less +0 -374
  119. package/src/styles/view_reset.less +0 -452
@@ -1,9 +1,9 @@
1
1
  <template>
2
2
  <div class="DshPanel">
3
3
  <div
4
- class="DshPanel-group"
5
4
  v-for="(groupItem, groupIndex) in data"
6
5
  :key="groupIndex"
6
+ class="DshPanel-group"
7
7
  >
8
8
  <!-- 组 标头 -->
9
9
  <div
@@ -164,7 +164,7 @@
164
164
  },
165
165
  noDataText: {
166
166
  type: String,
167
- default: "暂无数据..."
167
+ default: "暂无内容..."
168
168
  },
169
169
 
170
170
  operationList: {
@@ -192,10 +192,9 @@
192
192
 
193
193
  getBgColor (groupItem) {
194
194
  return this.groupFieldObj._useColor
195
- ? this.colorMap[(this.groupFieldObj._data.find(item => item._key === groupItem._key) || { color: "color-default" }).color]
196
- : "color-default";
197
- },
198
- colorMap: resourceData.colorMap
195
+ ? resourceData.colorMap[(this.groupFieldObj._data.find(item => item._key === groupItem._key) || { color: "color-default" }).color]
196
+ : resourceData.colorMap["color-default"];
197
+ }
199
198
  };
200
199
  },
201
200
  computed: {
@@ -385,10 +384,6 @@
385
384
  height: 40px;
386
385
  padding: 0px 10px;
387
386
  text-align: center;
388
-
389
- .ivu-btn {
390
- background: transparent;
391
- }
392
387
  }
393
388
  }
394
389
  }
@@ -8,7 +8,7 @@
8
8
  :formList="columns"
9
9
  ></dsh-form>
10
10
 
11
- <!-- 暂无数据 -->
11
+ <!-- 暂无内容 -->
12
12
  <div
13
13
  v-else
14
14
  class="DshSingleData-nodata"
@@ -3,26 +3,18 @@
3
3
  class="DshTable"
4
4
  style="width: 100%; height: 100%;"
5
5
  >
6
- <ev-table
6
+ <bri-table
7
7
  :className="propsObj.className"
8
8
  :data="data"
9
- :columnsList="selfColumns"
10
- :fixTitle="fixTitle"
11
- :showSort="propsObj.showSort"
12
- :tableBgColor="propsObj.tableBgColor"
13
- :title-bg-color="propsObj.titleBgColor"
14
- :title-font-color="propsObj.titleFontColor"
15
- :odd-bg-color="propsObj.oddBgColor"
16
- :even-bg-color="propsObj.evenBgColor"
17
- :row-hover-color="propsObj.rowHoverColor"
18
- :row-click-color="propsObj.rowClickColor"
19
- :noDataText="propsObj.noDataText"
20
- :is-loading="propsObj.isLoading"
21
- :selectChange="changeSelect"
22
- :selectAll="changeSelect"
9
+ :columns="selfColumns"
10
+ :propsObj="propsObj"
11
+ :isLoading="isLoading"
12
+ :noDataText="noDataText"
13
+ @selectChange="changeSelect"
14
+ @selectAll="changeSelect"
23
15
  @click-row="clickRow"
24
16
  @sort-change="changeSort"
25
- ></ev-table>
17
+ ></bri-table>
26
18
  </div>
27
19
  </template>
28
20
 
@@ -59,7 +51,9 @@
59
51
  default () {
60
52
  return {};
61
53
  }
62
- }
54
+ },
55
+ isLoading: Boolean,
56
+ noDataText: String
63
57
  },
64
58
  data () {
65
59
  return {};
@@ -99,26 +93,24 @@
99
93
  ...(
100
94
  this.multiple
101
95
  ? [{
102
- title: "多选",
103
- _name: "多选",
104
- type: "selection",
105
- width: 45,
106
- titleAlign: "left",
107
- columnAlign: "left",
108
- isFrozen: true
96
+ field: "selection",
97
+ key: "selection",
98
+ type: "checkbox",
99
+ width: 66,
100
+ align: "center",
101
+ fixed: "left"
109
102
  }]
110
103
  : []
111
104
  ),
112
105
  {
113
- field: "custome",
114
106
  title: "序号",
115
- _name: "序号",
116
- width: 67,
117
- titleAlign: "center",
118
- columnAlign: "center",
119
- isFrozen: true,
120
- formatter: function (rowData, rowIndex, pagingIndex, field) {
121
- return rowIndex + 1;
107
+ field: "custome",
108
+ key: "customes",
109
+ width: 78,
110
+ align: "center",
111
+ fixed: "left",
112
+ renderBodyCell: ({ row, column, rowIndex }, h) => {
113
+ return ++rowIndex;
122
114
  }
123
115
  },
124
116
 
@@ -129,8 +121,10 @@
129
121
  ? [
130
122
  {
131
123
  title: "操作",
132
- _name: "操作",
133
- type: "expend",
124
+ field: "operation",
125
+ key: "operation",
126
+ align: "center",
127
+ fixed: "right",
134
128
  width: Math.max(
135
129
  // 漏在外部按钮的宽度
136
130
  this.selfOperationList
@@ -141,11 +135,7 @@
141
135
  4 // 留出4px空间,避免麻烦问题
142
136
  , 80
143
137
  ),
144
- titleAlign: "center",
145
- columnAlign: "center",
146
- componentName: "dsh-td-render",
147
- isFrozenRight: true,
148
- render: (h, params) => {
138
+ renderBodyCell: (params, h) => {
149
139
  const totalOperationList = this.selfOperationList.map(operationItem => {
150
140
  return {
151
141
  ...operationItem,
@@ -1,6 +1,6 @@
1
1
  <template>
2
2
  <div
3
- :class="`DshCascaderTable control-${mode}`"
3
+ class="DshCascaderTable"
4
4
  ref="DshCascaderTable"
5
5
  >
6
6
  <div :class="{
@@ -149,11 +149,11 @@
149
149
  :style="getTdStyle(col, row)"
150
150
  >
151
151
  <dsh-unit
152
- :mode="mode"
153
152
  :canEdit="canEdit && (col.canEdit === undefined ? true : col.canEdit)"
154
153
  :formData="row[col.nodeKey]"
155
154
  :formItem="col"
156
155
  :rowIndex="rowIndex"
156
+ :isUnit="!canEdit"
157
157
  @change="$dispatchEvent(operationMap.changeVal, col, row, arguments)"
158
158
  ></dsh-unit>
159
159
  </td>
@@ -166,7 +166,7 @@
166
166
  v-else
167
167
  class="table-nodata"
168
168
  >
169
- <td :colspan="columns.length">暂无数据……</td>
169
+ <td :colspan="columns.length">暂无内容……</td>
170
170
  </tr>
171
171
  </tbody>
172
172
  </table>
@@ -186,10 +186,6 @@
186
186
  DshUnit
187
187
  },
188
188
  props: {
189
- mode: {
190
- type: String,
191
- default: "default"
192
- },
193
189
  useCol: {
194
190
  type: Boolean,
195
191
  default: false
@@ -232,7 +228,7 @@
232
228
  },
233
229
  data () {
234
230
  return {
235
- widthMap: this.$getModFieldPropertyMap("unitWidth"),
231
+ widthMap: this.$getModFieldPropertyMap("width"),
236
232
  boxWidth: 0,
237
233
  getColOperationNames (col) {
238
234
  return [
@@ -342,7 +338,7 @@
342
338
  },
343
339
 
344
340
  treeData () {
345
- return this.transformTreeData();
341
+ return this.transforBriTreeData();
346
342
  },
347
343
  columns () {
348
344
  return this.transformColumns(this.treeColumns);
@@ -520,7 +516,7 @@
520
516
  deleteSelfAndChildNodes (operationItem, row, rowIndex, col) {
521
517
  let nodeData = this.getNodeData(row, rowIndex, col);
522
518
  nodeData.brotherList.splice(nodeData.index, 1);
523
- // 此处应该判断子节点是否是最后一个,是的话就要添加一个一直到叶子节点,不过现在只需要添加一个子节点,transformTreeData会捎带着处理了
519
+ // 此处应该判断子节点是否是最后一个,是的话就要添加一个一直到叶子节点,不过现在只需要添加一个子节点,transforBriTreeData会捎带着处理了
524
520
  if (!nodeData.brotherList.length) {
525
521
  let newNode = this.getNewNode(nodeData.level, nodeData.brotherList);
526
522
  nodeData.brotherList.push(newNode);
@@ -532,7 +528,7 @@
532
528
  deleteChildNodes (operationItem, row, rowIndex, col) {
533
529
  let nodeData = this.getNodeData(row, rowIndex, col);
534
530
  nodeData.childList.splice(0);
535
- // 删除完应该添加一个子节点一直到叶子节点,不过现在只需要添加一个子节点,transformTreeData会捎带着处理了
531
+ // 删除完应该添加一个子节点一直到叶子节点,不过现在只需要添加一个子节点,transforBriTreeData会捎带着处理了
536
532
  let newNode = this.getNewNode(nodeData.level + 1, nodeData.childList);
537
533
  nodeData.childList.push(newNode);
538
534
 
@@ -589,7 +585,7 @@
589
585
  );
590
586
  },
591
587
  // 转化树数据
592
- transformTreeData (treeForm = this.treeColumns, subForm = this.subColumns) {
588
+ transforBriTreeData (treeForm = this.treeColumns, subForm = this.subColumns) {
593
589
  treeForm.forEach((treeFormItem, treeFormIndex) => {
594
590
  treeFormItem.canDelete = true; // 每次计算,重置一下
595
591
  treeFormItem.level = treeFormIndex + 1; // treeColumns更新,缺少level
@@ -154,7 +154,7 @@
154
154
  <td
155
155
  class="table-row-nodata"
156
156
  :colspan="showColumns.length"
157
- >暂无数据……</td>
157
+ >暂无内容……</td>
158
158
  </tr>
159
159
  </tfoot>
160
160
  </table>
@@ -992,7 +992,7 @@
992
992
  hasFrozenColumn: false, // 是否拥有固定列(false时最后一列的右边border无边框)
993
993
  hasFrozenRightColumn: false,
994
994
  resizeTimer: null,
995
- firstLoad: true, // 表格首次初始化加载,用于区分显示”数据加载中“还是”暂无数据“
995
+ firstLoad: true, // 表格首次初始化加载,用于区分显示”数据加载中“还是”暂无内容“
996
996
  tipContent: ""
997
997
  };
998
998
  },
@@ -1113,7 +1113,7 @@
1113
1113
  // 没数据时的html
1114
1114
  errorContent: {
1115
1115
  type: String,
1116
- default: "暂无数据..."
1116
+ default: "暂无内容..."
1117
1117
  },
1118
1118
  // 没数据时内容区域高度
1119
1119
  errorContentHeight: {
@@ -1488,7 +1488,7 @@
1488
1488
  updateErrorContent () {
1489
1489
  if (!this.firstLoad) {
1490
1490
  if (!(this.internalTableData && this.internalTableData.length)) {
1491
- this.tipContent = "暂无数据";
1491
+ this.tipContent = "暂无内容";
1492
1492
  }
1493
1493
  }
1494
1494
  this.firstLoad = false;
@@ -173,7 +173,7 @@
173
173
  height: Number,
174
174
  noDataText: {
175
175
  type: String,
176
- default: "暂无数据..."
176
+ default: "暂无内容..."
177
177
  }
178
178
  },
179
179
  data () {
@@ -0,0 +1,71 @@
1
+ <template>
2
+ <div class="BriTransfer">
3
+ <Transfer
4
+ :data="selfData"
5
+ :target-keys="targetKeys"
6
+ :filterable="filterable"
7
+ :filter-method="filterMethod"
8
+ :titles="titles"
9
+ not-found-text="暂无内容"
10
+ @on-change="handleChange"
11
+ ></Transfer>
12
+ </div>
13
+ </template>
14
+
15
+ <script>
16
+ export default {
17
+ name: "BriTransfer",
18
+ props: {
19
+ data: {
20
+ type: Array,
21
+ default: () => {
22
+ return [];
23
+ }
24
+ },
25
+ value: {
26
+ type: Array,
27
+ default: () => {
28
+ return [];
29
+ }
30
+ },
31
+ filterMethod: {
32
+ type: Function,
33
+ default: () => {
34
+ return {};
35
+ }
36
+ },
37
+ titles: {
38
+ type: Array,
39
+ default: () => {
40
+ return ["源列表", "目的列表"];
41
+ }
42
+ },
43
+ filterable: Boolean
44
+ },
45
+ data () {
46
+ return {
47
+ targetKeys: []
48
+ };
49
+ },
50
+ computed: {
51
+ selfData () {
52
+ return this.data.map(item => {
53
+ return {
54
+ key: item._key,
55
+ label: item._name || item.name || item.realname
56
+ };
57
+ });
58
+ }
59
+ },
60
+ created () {
61
+ this.targetKeys = this.value;
62
+ },
63
+ methods: {
64
+ handleChange (newTargetKeys) {
65
+ this.targetKeys = newTargetKeys;
66
+ this.$emit("input", this.targetKeys);
67
+ this.$emit("change", this.targetKeys);
68
+ }
69
+ }
70
+ };
71
+ </script>
@@ -110,14 +110,14 @@
110
110
  <td
111
111
  :colspan="timeData.length"
112
112
  class="briGantt-table-td"
113
- >暂无数据</td>
113
+ >暂无内容</td>
114
114
  </tr>
115
115
  <tbody v-if="type==='table'">
116
116
  <tr v-if="computedData.length === 0">
117
117
  <td
118
118
  :colspan="timeData.length"
119
119
  class="briGantt-table-td"
120
- >暂无数据</td>
120
+ >暂无内容</td>
121
121
  </tr>
122
122
  <tr
123
123
  class="briGantt-table-tr"
@@ -0,0 +1,65 @@
1
+ <template>
2
+ <Button
3
+ class="BriButton"
4
+ :class="selfPropsObj.class"
5
+ :type="selfPropsObj.btnType"
6
+ :shape="selfPropsObj.shape || shape"
7
+ :size="selfPropsObj.size || size"
8
+ :loading="selfPropsObj.loading"
9
+ :disabled="selfPropsObj.disabled"
10
+ :htmlType="selfPropsObj.htmlType"
11
+ :icon="selfPropsObj.icon || icon"
12
+ :customIcon="selfPropsObj.customIcon || customIcon"
13
+ :long="selfPropsObj.long"
14
+ :ghost="selfPropsObj.ghost"
15
+ @click="dispatchEvent"
16
+ >
17
+ <slot></slot>
18
+ </Button>
19
+ </template>
20
+
21
+ <script>
22
+ import controlMixin from "../controls/controlMixin.js";
23
+ export default {
24
+ name: "BriButton",
25
+ mixins: [controlMixin],
26
+ props: {
27
+ type: {
28
+ type: String,
29
+ default: "primary"
30
+ },
31
+ icon: String,
32
+ shape: String,
33
+ size: String,
34
+ customIcon: String
35
+ },
36
+ data () {
37
+ return {};
38
+ },
39
+ computed: {
40
+ selfPropsObj () {
41
+ let defaultType = this.propsObj.btnType || this.type;
42
+ let setType = this.propsObj.btnType || this.type;
43
+ if (["cancel"].includes(defaultType)) {
44
+ setType = "primary";
45
+ } else if (["errorLine"].includes(defaultType)) {
46
+ setType = "default";
47
+ } else if (["linkText", "primaryText", "errorText"].includes(defaultType)) {
48
+ setType = "text";
49
+ }
50
+ return {
51
+ class: ["cancel", "linkText", "primaryText", "errorLine", "errorText"].includes(defaultType) ? `ivu-btn-${defaultType}` : "",
52
+ ...this.propsObj,
53
+ btnType: setType,
54
+ customIcon: this.propsObj.customIcon ? `bico-font ${this.propsObj.customIcon}` : undefined
55
+ };
56
+ }
57
+ },
58
+ created () {},
59
+ methods: {
60
+ dispatchEvent () {
61
+ this.$emit("click", this.selfPropsObj);
62
+ }
63
+ }
64
+ };
65
+ </script>
@@ -0,0 +1,42 @@
1
+ <template>
2
+ <Tree
3
+ class="BriTree"
4
+ :data="val"
5
+ :multiple="propsObj.multiple"
6
+ :showCheckbox="propsObj.showCheckbox"
7
+ :checkStrictly="propsObj.checkStrictly"
8
+ :checkDirectly="propsObj.checkDirectly"
9
+ :emptyText="propsObj.emptyText"
10
+ :childrenKey="propsObj.childrenKey"
11
+ :loadData="propsObj.loadData"
12
+ :render="propsObj.render"
13
+ :selectNode="propsObj.selectNode"
14
+ :expandNode="propsObj.expandNode"
15
+ ></Tree>
16
+ </template>
17
+
18
+ <script>
19
+ import controlMixin from "../controls/controlMixin.js";
20
+ export default {
21
+ name: "BriTree",
22
+ mixins: [controlMixin],
23
+ props: {
24
+ },
25
+ data () {
26
+ return {};
27
+ },
28
+ computed: {
29
+ selfPropsObj () {
30
+ return {
31
+ ...this.propsObj
32
+ };
33
+ },
34
+ val () {
35
+ return this.value[this.propsObj._key];
36
+ }
37
+ },
38
+ created () {},
39
+ methods: {
40
+ }
41
+ };
42
+ </script>
@@ -6,7 +6,7 @@
6
6
  :content="content"
7
7
  :placement="placement"
8
8
  :transfer="transfer"
9
- :maxWidth="maxWidth"
9
+ :max-width="maxWidth"
10
10
  >
11
11
  <div
12
12
  ref="ellipsisContent"
@@ -9,7 +9,7 @@
9
9
  >
10
10
  <!-- 左侧按钮 -->
11
11
  <div class="DshButtons-flex-left">
12
- <Button
12
+ <bri-button
13
13
  v-for="(operationItem, index) in leftFlatList"
14
14
  :key="operationItem.type"
15
15
  :style="operationItem.style"
@@ -17,16 +17,8 @@
17
17
  index ? 'dsh-margin-left5' : undefined,
18
18
  !operationItem.customIcon && !operationItem.icon ? 'DshButtons-item' : undefined,
19
19
  itemClass,
20
- ...(Array.isArray(operationItem.class) ? operationItem.class : [operationItem.class])
21
20
  ]"
22
- :type="operationItem.btnType"
23
- :ghost="operationItem.ghost"
24
- :size="operationItem.size"
25
- :shape="operationItem.shape"
26
- :long="operationItem.long"
27
- :disabled="operationItem.disabled"
28
- :icon="operationItem.icon"
29
- :custom-icon="operationItem.customIcon ? `bico-font ${operationItem.customIcon}` : undefined"
21
+ :propsObj="operationItem"
30
22
  @click="emit(operationItem)"
31
23
  >
32
24
  <span
@@ -35,7 +27,7 @@
35
27
  >
36
28
  {{ operationItem.name }}
37
29
  </span>
38
- </Button>
30
+ </bri-button>
39
31
 
40
32
  <!-- 更多的 下拉按钮-->
41
33
  <dsh-dropdown
@@ -46,21 +38,14 @@
46
38
  @click="emit($event)"
47
39
  >
48
40
  <slot name="more">
49
- <Button
41
+ <bri-button
50
42
  class="DshButtons-dropdown-more"
51
- :type="moreBtnOperationObj.btnType"
52
- :ghost="moreBtnOperationObj.ghost"
53
- :size="moreBtnOperationObj.size"
54
- :shape="moreBtnOperationObj.shape"
55
- :long="moreBtnOperationObj.long"
56
- :disabled="moreBtnOperationObj.disabled"
57
- :icon="moreBtnOperationObj.icon"
58
- :custom-icon="moreBtnOperationObj.customIcon ? `bico-font ${moreBtnOperationObj.customIcon}` : undefined"
43
+ :propsObj="moreBtnOperationObj"
59
44
  >
60
45
  <span class="DshButtons-dropdown-more-name">
61
46
  {{ moreBtnOperationObj.name }}
62
47
  </span>
63
- </Button>
48
+ </bri-button>
64
49
  </slot>
65
50
  </dsh-dropdown>
66
51
  </div>
@@ -69,7 +54,7 @@
69
54
  <div class="DshButtons-flex-right">
70
55
  <slot></slot>
71
56
 
72
- <Button
57
+ <bri-button
73
58
  v-for="(operationItem, index) in rightList"
74
59
  :key="operationItem.type"
75
60
  :style="operationItem.style"
@@ -77,16 +62,8 @@
77
62
  index ? 'dsh-margin-left5' : undefined,
78
63
  !operationItem.customIcon && !operationItem.icon ? 'DshButtons-item' : undefined,
79
64
  itemClass,
80
- ...(Array.isArray(operationItem.class) ? operationItem.class : [operationItem.class])
81
65
  ]"
82
- :type="operationItem.btnType"
83
- :ghost="operationItem.ghost"
84
- :size="operationItem.size"
85
- :shape="operationItem.shape"
86
- :long="operationItem.long"
87
- :disabled="operationItem.disabled"
88
- :icon="operationItem.icon"
89
- :custom-icon="operationItem.customIcon ? `bico-font ${operationItem.customIcon}` : undefined"
66
+ :propsObj="operationItem"
90
67
  @click="emit(operationItem)"
91
68
  >
92
69
  <span
@@ -95,12 +72,12 @@
95
72
  >
96
73
  {{ operationItem.name }}
97
74
  </span>
98
- </Button>
75
+ </bri-button>
99
76
  </div>
100
77
  </div>
101
78
 
102
79
  <template v-else>
103
- <Button
80
+ <bri-button
104
81
  v-for="(operationItem, index) in list"
105
82
  :key="operationItem.type"
106
83
  :style="operationItem.style"
@@ -110,14 +87,7 @@
110
87
  itemClass,
111
88
  ...(Array.isArray(operationItem.class) ? operationItem.class : [operationItem.class])
112
89
  ]"
113
- :type="operationItem.btnType"
114
- :ghost="operationItem.ghost"
115
- :size="operationItem.size"
116
- :shape="operationItem.shape"
117
- :long="operationItem.long"
118
- :disabled="operationItem.disabled"
119
- :icon="operationItem.icon"
120
- :custom-icon="operationItem.customIcon ? `bico-font ${operationItem.customIcon}` : undefined"
90
+ :propsObj="operationItem"
121
91
  @click="emit(operationItem)"
122
92
  >
123
93
  <span
@@ -126,7 +96,7 @@
126
96
  >
127
97
  {{ operationItem.name }}
128
98
  </span>
129
- </Button>
99
+ </bri-button>
130
100
  </template>
131
101
  </div>
132
102
  </template>
@@ -3,7 +3,8 @@
3
3
  :class="{
4
4
  'dsh-control-define': true,
5
5
  'dsh-control-define-multiplerow': selfPropsObj._multiplerow,
6
- 'dsh-control-define-disabled': !canEdit
6
+ 'dsh-control-define-disabled': $isDisabled(canEdit, propsObj),
7
+ 'dsh-control-define-show': !canEdit
7
8
  }"
8
9
  @click="clickInput"
9
10
  >
@@ -86,7 +86,7 @@
86
86
  v-else
87
87
  class="nodata"
88
88
  >
89
- 暂无数据
89
+ 暂无内容
90
90
  </div>
91
91
  </div>
92
92
  </div>
@@ -16,6 +16,6 @@ export default {
16
16
  index: ctx.props.index
17
17
  };
18
18
  if (ctx.props.column) params.column = ctx.props.column;
19
- return ctx.props.render(h, params);
19
+ return ctx.props.render(params, h);
20
20
  }
21
21
  };