sone-ui-component-3.2.4 2.1.22 → 2.1.24
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/lib/sone-ui.common.js +39 -37
- package/lib/sone-ui.common.js.map +1 -1
- package/lib/sone-ui.umd.js +39 -37
- package/lib/sone-ui.umd.js.map +1 -1
- package/lib/sone-ui.umd.min.js +2 -2
- package/lib/sone-ui.umd.min.js.map +1 -1
- package/package.json +1 -1
- package/packages/normalTable/src/main.vue +3 -7
- package/packages/tree/src/main.vue +7 -1
- package/src/index.js +1 -1
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<!--
|
|
2
|
-
* @Description: 直接copy的table
|
|
2
|
+
* @Description: 直接copy的table 优化代码 硬是让我删掉了800行。。。
|
|
3
3
|
* @Author:xjl
|
|
4
4
|
* @Date:2021-09-10 11:03
|
|
5
5
|
-->
|
|
@@ -139,7 +139,7 @@
|
|
|
139
139
|
:prop="column.prop"
|
|
140
140
|
:width="column.width"
|
|
141
141
|
:align="column.hasOwnProperty('align') ? column.align : 'left'"
|
|
142
|
-
:show-overflow-tooltip="false"
|
|
142
|
+
:show-overflow-tooltip="column.hasOwnProperty('showOverflowTooltip') ? column.showOverflowTooltip : false"
|
|
143
143
|
filter-placement="bottom-end"
|
|
144
144
|
:header-align="column.hasOwnProperty('headerAlign') ? column.headerAlign : 'left'"
|
|
145
145
|
:column-key="column.hasOwnProperty('elementId')? column.elementId:column.prop"
|
|
@@ -183,11 +183,7 @@
|
|
|
183
183
|
<!--表体-->
|
|
184
184
|
<template slot-scope="scope">
|
|
185
185
|
<slot :index="scope.$index" :name="column.slotCell" :row="scope.row" v-if="column.slotCell"></slot>
|
|
186
|
-
<template v-else>
|
|
187
|
-
<el-tooltip :content="String(scope.row[column.prop])" placement="top" effect="light" popper-class="over_popper">
|
|
188
|
-
<span class="over_title">{{ scope.row[column.prop] }}</span>
|
|
189
|
-
</el-tooltip>
|
|
190
|
-
</template>
|
|
186
|
+
<template v-else>{{ scope.row[column.prop] }}</template>
|
|
191
187
|
</template>
|
|
192
188
|
</el-table-column>
|
|
193
189
|
</template>
|
|
@@ -122,7 +122,7 @@
|
|
|
122
122
|
@node-drop="handleDrop"
|
|
123
123
|
>
|
|
124
124
|
<span class="custom-tree-node" style="display:flex;" :ref="`treeNode-${scope.node[nodeKey]}`" slot-scope="scope">
|
|
125
|
-
<span style="font-size:12px;" ><i :class="`iconfont iconfont-single ${scope.node.data.iconClass}`"></i> {{ scope.node.label }}</span>
|
|
125
|
+
<span style="font-size:12px;" @dblclick="handleDoubleClick(scope.node.data)"><i :class="`iconfont iconfont-single ${scope.node.data.iconClass}`"></i> {{ scope.node.label }}</span>
|
|
126
126
|
<div >
|
|
127
127
|
<span class="sone-components-tree-more-btn-color" v-if="!scope.node.data.noMoreBtn">
|
|
128
128
|
<el-button
|
|
@@ -303,6 +303,12 @@ export default {
|
|
|
303
303
|
this.resetHandleData()
|
|
304
304
|
},
|
|
305
305
|
methods: {
|
|
306
|
+
/**
|
|
307
|
+
* @description 双击事件
|
|
308
|
+
*/
|
|
309
|
+
handleDoubleClick(val){
|
|
310
|
+
this.$emit('handleDoubleClick',val)
|
|
311
|
+
},
|
|
306
312
|
changeFilterText(val){
|
|
307
313
|
this.$refs.tree.filter(val)
|
|
308
314
|
this.$emit('searchInput', val)
|