sone-ui-component-3.2.4 2.1.23 → 2.1.25
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 +36 -28
- package/lib/sone-ui.common.js.map +1 -1
- package/lib/sone-ui.umd.js +36 -28
- 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/tree/src/main.vue +9 -1
- package/src/index.js +1 -1
package/package.json
CHANGED
|
@@ -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
|
|
@@ -297,12 +297,20 @@ export default {
|
|
|
297
297
|
},
|
|
298
298
|
},
|
|
299
299
|
mounted() {
|
|
300
|
+
console.log('更新到没');
|
|
300
301
|
this.$nextTick(() => {
|
|
301
302
|
if(this.dragWidth) this.dropSize();
|
|
302
303
|
})
|
|
303
304
|
this.resetHandleData()
|
|
304
305
|
},
|
|
305
306
|
methods: {
|
|
307
|
+
/**
|
|
308
|
+
* @description 双击事件
|
|
309
|
+
*/
|
|
310
|
+
handleDoubleClick(val){
|
|
311
|
+
console.log('双击');
|
|
312
|
+
this.$emit('handleDoubleClick',val)
|
|
313
|
+
},
|
|
306
314
|
changeFilterText(val){
|
|
307
315
|
this.$refs.tree.filter(val)
|
|
308
316
|
this.$emit('searchInput', val)
|