sone-ui-component-3.2.4 2.1.23 → 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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sone-ui-component-3.2.4",
3
- "version": "2.1.23",
3
+ "version": "2.1.24",
4
4
  "private": false,
5
5
  "main": "lib/sone-ui.common.js",
6
6
  "files": [
@@ -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>&nbsp;&nbsp;{{ 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>&nbsp;&nbsp;{{ 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)
package/src/index.js CHANGED
@@ -57,7 +57,7 @@ if (typeof window !== 'undefined' && window.Vue) {
57
57
  }
58
58
 
59
59
  export default {
60
- version: '2.1.23',
60
+ version: '2.1.24',
61
61
  locale: locale.use,
62
62
  i18n: locale.i18n,
63
63
  install,