sone-ui-component-3.2.4 2.1.41 → 2.1.42
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 +34 -14
- package/lib/sone-ui.common.js.map +1 -1
- package/lib/sone-ui.umd.js +34 -14
- 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 +30 -10
- package/src/index.js +1 -1
- package/Notice.md +0 -106
package/lib/sone-ui.common.js
CHANGED
|
@@ -25993,12 +25993,12 @@ src_main.install = function(Vue) {
|
|
|
25993
25993
|
|
|
25994
25994
|
|
|
25995
25995
|
/* harmony default export */ var messageBox = (src_main);
|
|
25996
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"de981356-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/tree/src/main.vue?vue&type=template&id=
|
|
25997
|
-
var
|
|
25998
|
-
var
|
|
25996
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"de981356-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/tree/src/main.vue?vue&type=template&id=70eba772&scoped=true&
|
|
25997
|
+
var mainvue_type_template_id_70eba772_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticStyle:{"height":"100%"}},[(_vm.type === 'normal')?_c('div',{staticClass:"sone-tree"},[(_vm.lineDirection === 'left')?_c('div',{ref:"line",staticClass:"show-line",style:(_vm.dragWidth?'cursor:col-resize;':'')},[_c('div',{staticClass:"show-line-box",style:(_vm.showStyle2),on:{"click":function($event){return _vm.onShow(2)}}})]):_vm._e(),_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.show),expression:"show"}],ref:"menu",staticClass:"tree-wrap",style:('width:' + _vm.defaultWidth + 'px')},[_c('div',{staticClass:"sone-tree-title"},[(_vm.treeData.length>1)?_c('el-select',{staticClass:"sone-tree-components-class",on:{"change":_vm.changeTreeData},model:{value:(_vm.checkedTreeData),callback:function ($$v) {_vm.checkedTreeData=$$v},expression:"checkedTreeData"}},_vm._l((_vm.treeData),function(item,index){return _c('el-option',{key:index,attrs:{"label":item.title,"value":item.title}})}),1):_c('span',[_vm._v(_vm._s(_vm.treeData && _vm.treeData[0] && _vm.treeData[0].title))])],1),_c('el-input',{attrs:{"placeholder":_vm.placeholder,"clearable":_vm.clearable},on:{"clear":function($event){return _vm.$emit('clear', '')}},model:{value:(_vm.filterText),callback:function ($$v) {_vm.filterText=$$v},expression:"filterText"}}),_c('div',{staticClass:"sone-tree-wrap"},[_c('el-tree',{ref:"tree",staticClass:"filter-tree",attrs:{"data":_vm.data,"props":_vm.treeProps,"node-key":_vm.nodeKey,"filter-node-method":_vm.filterNode,"empty-text":_vm.emptyText,"highlight-current":_vm.highlightCurrent,"default-expand-all":_vm.defaultExpandAll,"expand-on-click-node":_vm.expandOnClickNode,"default-expanded-keys":_vm.defaultExpandedKeys,"show-checkbox":_vm.showCheckbox,"check-strictly":_vm.checkStrictly,"default-checked-keys":_vm.defaultCheckedKeys,"current-node-key":_vm.currentNodeKey,"indent":_vm.indent,"icon-class":_vm.iconClass,"draggable":_vm.draggable,"allow-drop":_vm.allowDrop,"allow-drag":_vm.allowDrag},on:{"node-click":_vm.handleNodeClick,"node-contextmenu":_vm.handleContextmenu,"check-change":_vm.handleCheckChange,"check":_vm.handleCheck,"current-change":_vm.handleCurrentChange,"node-expand":_vm.handleNodeExpand,"node-collapse":_vm.handleNodeCollapse,"node-drag-start":_vm.handleDragStart,"node-drag-enter":_vm.handleDragEnter,"node-drag-leave":_vm.handleDragLeave,"node-drag-over":_vm.handleDragOver,"node-drag-end":_vm.handleDragEnd,"node-drop":_vm.handleDrop}})],1)],1),(_vm.lineDirection === 'right')?_c('div',{ref:"line",staticClass:"show-line",style:(_vm.dragWidth?'cursor:col-resize;':'')},[_c('div',{staticClass:"show-line-box",style:(_vm.showStyle),on:{"click":function($event){return _vm.onShow(1)}}})]):_vm._e()]):_c('div',{staticClass:"sone-tree"},[(_vm.lineDirection === 'left')?_c('div',{ref:"line",staticClass:"show-line",style:(_vm.dragWidth?'cursor:col-resize;':'')},[_c('div',{staticClass:"show-line-box",style:(_vm.showStyle2),on:{"click":function($event){return _vm.onShow(2)}}})]):_vm._e(),_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.show),expression:"show"}],ref:"menu",staticClass:"tree-wrap",style:('width:' + _vm.defaultWidth + 'px')},[_c('div',{staticClass:"sone-tree-title"},[_c('span',[_vm._v(_vm._s(_vm.handleTypeTitle))]),(_vm.showTitleButton)?_c('el-popover',{attrs:{"placement":"bottom","width":"100","trigger":"click","popper-class":"sone-components-tree-popover"}},[_c('div',{staticClass:"tree-box"},[_vm._t("handleTitleMenu")],2),_c('el-button',{attrs:{"slot":"reference","type":"text","icon":("iconfont iconfont-single " + (_vm.titleIcon || _vm.handleTypeTitleIcon))},on:{"click":function($event){return _vm.$emit('handleTypeTitle')}},slot:"reference"})],1):_vm._e()],1),_c('el-input',{attrs:{"placeholder":_vm.placeholder,"clearable":_vm.clearable},on:{"clear":function($event){return _vm.$emit('clear', '')}},model:{value:(_vm.filterText),callback:function ($$v) {_vm.filterText=$$v},expression:"filterText"}}),_c('div',{ref:"soneTreeWrap",staticClass:"sone-tree-wrap"},[_c('el-tree',{ref:"tree",staticClass:"filter-tree",attrs:{"data":_vm.handleTypeData,"props":_vm.treeProps,"node-key":_vm.nodeKey,"filter-node-method":_vm.filterNode,"empty-text":_vm.emptyText,"highlight-current":_vm.highlightCurrent,"default-expand-all":_vm.defaultExpandAll,"expand-on-click-node":_vm.expandOnClickNode,"default-expanded-keys":_vm.defaultExpandedKeys,"show-checkbox":_vm.showCheckbox,"check-strictly":_vm.checkStrictly,"default-checked-keys":_vm.defaultCheckedKeys,"current-node-key":_vm.currentNodeKey,"indent":_vm.indent,"icon-class":_vm.iconClass,"draggable":_vm.draggable,"allow-drop":_vm.allowDrop,"allow-drag":_vm.allowDrag},on:{"node-click":_vm.handleNodeClick,"node-contextmenu":_vm.handleContextmenu,"check-change":_vm.handleCheckChange,"check":_vm.handleCheck,"current-change":_vm.handleCurrentChange,"node-expand":_vm.handleNodeExpand,"node-collapse":_vm.handleNodeCollapse,"node-drag-start":_vm.handleDragStart,"node-drag-enter":_vm.handleDragEnter,"node-drag-leave":_vm.handleDragLeave,"node-drag-over":_vm.handleDragOver,"node-drag-end":_vm.handleDragEnd,"node-drop":_vm.handleDrop},scopedSlots:_vm._u([{key:"default",fn:function(scope){return _c('span',{ref:("treeNode-" + (scope.node[_vm.nodeKey])),staticClass:"custom-tree-node",staticStyle:{"display":"flex"}},[_c('span',{staticStyle:{"font-size":"12px"}},[_c('i',{class:("iconfont iconfont-single " + (scope.node.data.iconClass))}),_vm._v(" "),_c('span',{directives:[{name:"show",rawName:"v-show",value:(_vm.showLabel),expression:"showLabel"}]},[_vm._v(_vm._s(scope.node.label))]),_vm._t("labelSlot",null,{"node":scope.node})],2),_c('div',[(!scope.node.data.noMoreBtn)?_c('span',{staticClass:"sone-components-tree-more-btn-color"},[_c('el-button',{directives:[{name:"show",rawName:"v-show",value:(_vm.showMoreBtn),expression:"showMoreBtn"}],attrs:{"type":"text","size":"mini","icon":"iconfont iconfont-single icon-more"},on:{"click":function($event){$event.stopPropagation();return _vm.showTreeMenu(scope,$event)}}})],1):_vm._e()])])}}],null,true)}),_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.handleMenuFlag),expression:"handleMenuFlag"}],ref:"handleMenu",staticClass:"sone-tree-components-handleMenu"},[_vm._t("handleMenu",null,{"node":_vm.node})],2)],1)],1),(_vm.lineDirection === 'right')?_c('div',{ref:"line",staticClass:"show-line",style:(_vm.dragWidth?'cursor:col-resize;':'')},[_c('div',{staticClass:"show-line-box",style:(_vm.showStyle),on:{"click":function($event){return _vm.onShow(1)}}})]):_vm._e()])])}
|
|
25998
|
+
var mainvue_type_template_id_70eba772_scoped_true_staticRenderFns = []
|
|
25999
25999
|
|
|
26000
26000
|
|
|
26001
|
-
// CONCATENATED MODULE: ./packages/tree/src/main.vue?vue&type=template&id=
|
|
26001
|
+
// CONCATENATED MODULE: ./packages/tree/src/main.vue?vue&type=template&id=70eba772&scoped=true&
|
|
26002
26002
|
|
|
26003
26003
|
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/tree/src/main.vue?vue&type=script&lang=js&
|
|
26004
26004
|
//
|
|
@@ -26160,6 +26160,12 @@ var mainvue_type_template_id_bc55315a_scoped_true_staticRenderFns = []
|
|
|
26160
26160
|
//
|
|
26161
26161
|
//
|
|
26162
26162
|
//
|
|
26163
|
+
//
|
|
26164
|
+
//
|
|
26165
|
+
//
|
|
26166
|
+
//
|
|
26167
|
+
//
|
|
26168
|
+
//
|
|
26163
26169
|
|
|
26164
26170
|
// import { deepClone } from '../../../../src/utils/util';
|
|
26165
26171
|
const mainvue_type_script_lang_js_getObjType = obj => {
|
|
@@ -26269,12 +26275,18 @@ const mainvue_type_script_lang_js_deepClone = data => {
|
|
|
26269
26275
|
type:Boolean,
|
|
26270
26276
|
default:true,
|
|
26271
26277
|
remark:"handle模式下是否展示label"
|
|
26278
|
+
},
|
|
26279
|
+
lineDirection:{
|
|
26280
|
+
type: String,
|
|
26281
|
+
default:'right',
|
|
26282
|
+
remark:"折叠线方向"
|
|
26272
26283
|
}
|
|
26273
26284
|
},
|
|
26274
26285
|
data() {
|
|
26275
26286
|
return {
|
|
26276
26287
|
show: true,
|
|
26277
26288
|
showStyle: "border-right: 6px solid #019bee;transform: translate(-100%,-50%)",
|
|
26289
|
+
showStyle2: "border-left: 6px solid #019bee;transform: translate(0,-50%)",
|
|
26278
26290
|
filterText: "",
|
|
26279
26291
|
|
|
26280
26292
|
// normal
|
|
@@ -26428,13 +26440,21 @@ const mainvue_type_script_lang_js_deepClone = data => {
|
|
|
26428
26440
|
handleNodeCollapse(obj, node, self) {
|
|
26429
26441
|
this.$emit("node-collapse", obj, node, self);
|
|
26430
26442
|
},
|
|
26431
|
-
onShow() {
|
|
26443
|
+
onShow(direct) {
|
|
26432
26444
|
this.show = !this.show;
|
|
26433
|
-
|
|
26434
|
-
|
|
26435
|
-
|
|
26436
|
-
|
|
26437
|
-
|
|
26445
|
+
if(direct === 1) {
|
|
26446
|
+
this.show
|
|
26447
|
+
? (this.showStyle =
|
|
26448
|
+
"border-right: 6px solid #019bee;transform: translate(-100%,-50%)")
|
|
26449
|
+
: (this.showStyle =
|
|
26450
|
+
"border-left: 6px solid #019bee;transform: translate(0,-50%)");
|
|
26451
|
+
}else {
|
|
26452
|
+
this.show
|
|
26453
|
+
? (this.showStyle2 =
|
|
26454
|
+
"border-left: 6px solid #019bee;transform: translate(0,-50%)")
|
|
26455
|
+
: (this.showStyle2 =
|
|
26456
|
+
"border-right: 6px solid #019bee;transform: translate(-100%,-50%)");
|
|
26457
|
+
}
|
|
26438
26458
|
this.$emit('handleDisplay',this.show)
|
|
26439
26459
|
},
|
|
26440
26460
|
handleDragEnd(draggingNode, dropNode, dropType, ev) {
|
|
@@ -26470,11 +26490,11 @@ const mainvue_type_script_lang_js_deepClone = data => {
|
|
|
26470
26490
|
|
|
26471
26491
|
var src_main_component = normalizeComponent(
|
|
26472
26492
|
packages_tree_src_mainvue_type_script_lang_js_,
|
|
26473
|
-
|
|
26474
|
-
|
|
26493
|
+
mainvue_type_template_id_70eba772_scoped_true_render,
|
|
26494
|
+
mainvue_type_template_id_70eba772_scoped_true_staticRenderFns,
|
|
26475
26495
|
false,
|
|
26476
26496
|
null,
|
|
26477
|
-
"
|
|
26497
|
+
"70eba772",
|
|
26478
26498
|
null
|
|
26479
26499
|
|
|
26480
26500
|
)
|
|
@@ -37935,7 +37955,7 @@ if (typeof window !== 'undefined' && window.Vue) {
|
|
|
37935
37955
|
}
|
|
37936
37956
|
|
|
37937
37957
|
/* harmony default export */ var src_0 = ({
|
|
37938
|
-
version: '2.1.
|
|
37958
|
+
version: '2.1.42',
|
|
37939
37959
|
locale: locale.use,
|
|
37940
37960
|
i18n: locale.i18n,
|
|
37941
37961
|
install,
|