sone-ui-component-3.2.4 2.0.269 → 2.0.271
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 +303 -369
- package/lib/sone-ui.common.js.map +1 -1
- package/lib/sone-ui.css +1 -1
- package/lib/sone-ui.umd.js +303 -369
- package/lib/sone-ui.umd.js.map +1 -1
- package/lib/sone-ui.umd.min.js +3 -3
- package/lib/sone-ui.umd.min.js.map +1 -1
- package/package.json +1 -1
- package/packages/upload/src/main.vue +24 -4
- package/src/index.js +1 -1
package/lib/sone-ui.common.js
CHANGED
|
@@ -101,6 +101,17 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
|
101
101
|
|
|
102
102
|
// extracted by mini-css-extract-plugin
|
|
103
103
|
|
|
104
|
+
/***/ }),
|
|
105
|
+
|
|
106
|
+
/***/ "3ac7":
|
|
107
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
108
|
+
|
|
109
|
+
"use strict";
|
|
110
|
+
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_vue_cli_service_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_main_vue_vue_type_style_index_0_id_e539e95e_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("5c75");
|
|
111
|
+
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_vue_cli_service_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_main_vue_vue_type_style_index_0_id_e539e95e_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_vue_cli_service_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_main_vue_vue_type_style_index_0_id_e539e95e_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__);
|
|
112
|
+
/* unused harmony reexport * */
|
|
113
|
+
|
|
114
|
+
|
|
104
115
|
/***/ }),
|
|
105
116
|
|
|
106
117
|
/***/ "3c4e":
|
|
@@ -208,14 +219,10 @@ module.exports = deepmerge_1;
|
|
|
208
219
|
|
|
209
220
|
/***/ }),
|
|
210
221
|
|
|
211
|
-
/***/ "
|
|
212
|
-
/***/ (function(module,
|
|
213
|
-
|
|
214
|
-
"use strict";
|
|
215
|
-
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_vue_cli_service_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_main_vue_vue_type_style_index_0_id_8d5dbf8c_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("90c8");
|
|
216
|
-
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_vue_cli_service_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_main_vue_vue_type_style_index_0_id_8d5dbf8c_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_vue_cli_service_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_main_vue_vue_type_style_index_0_id_8d5dbf8c_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__);
|
|
217
|
-
/* unused harmony reexport * */
|
|
222
|
+
/***/ "5c75":
|
|
223
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
218
224
|
|
|
225
|
+
// extracted by mini-css-extract-plugin
|
|
219
226
|
|
|
220
227
|
/***/ }),
|
|
221
228
|
|
|
@@ -25165,13 +25172,6 @@ module.exports = __WEBPACK_EXTERNAL_MODULE__8bbf__;
|
|
|
25165
25172
|
|
|
25166
25173
|
/***/ }),
|
|
25167
25174
|
|
|
25168
|
-
/***/ "90c8":
|
|
25169
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
25170
|
-
|
|
25171
|
-
// extracted by mini-css-extract-plugin
|
|
25172
|
-
|
|
25173
|
-
/***/ }),
|
|
25174
|
-
|
|
25175
25175
|
/***/ "ea9b":
|
|
25176
25176
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
25177
25177
|
|
|
@@ -25214,7 +25214,7 @@ if (typeof window !== 'undefined') {
|
|
|
25214
25214
|
// Indicate to webpack that this file can be concatenated
|
|
25215
25215
|
/* harmony default export */ var setPublicPath = (null);
|
|
25216
25216
|
|
|
25217
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
25217
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"b390af64-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/container/src/main.vue?vue&type=template&id=59ff11b6&
|
|
25218
25218
|
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_vm._v(" "+_vm._s(_vm.data)+" ")])}
|
|
25219
25219
|
var staticRenderFns = []
|
|
25220
25220
|
|
|
@@ -25840,7 +25840,7 @@ main.install = function(Vue) {
|
|
|
25840
25840
|
};
|
|
25841
25841
|
|
|
25842
25842
|
/* harmony default export */ var container = (main);
|
|
25843
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
25843
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"b390af64-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/messageBox/src/main.vue?vue&type=template&id=9152c6da&scoped=true&
|
|
25844
25844
|
var mainvue_type_template_id_9152c6da_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div')}
|
|
25845
25845
|
var mainvue_type_template_id_9152c6da_scoped_true_staticRenderFns = []
|
|
25846
25846
|
|
|
@@ -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":"
|
|
25997
|
-
var
|
|
25998
|
-
var
|
|
25996
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"b390af64-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=5115c798&scoped=true&
|
|
25997
|
+
var mainvue_type_template_id_5115c798_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"},[_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),_c('div',{ref:"line",staticClass:"show-line",style:(_vm.dragWidth?'cursor:col-resize;':'')},[_c('div',{staticClass:"show-line-box",style:(_vm.showStyle),on:{"click":_vm.onShow}})])]):_c('div',{staticClass:"sone-tree"},[_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.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',{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(" "+_vm._s(scope.node.label))]),_c('div',[(!scope.node.data.noMoreBtn)?_c('span',{staticClass:"sone-components-tree-more-btn-color"},[_c('el-button',{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()])])}}])}),_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),_c('div',{ref:"line",staticClass:"show-line",style:(_vm.dragWidth?'cursor:col-resize;':'')},[_c('div',{staticClass:"show-line-box",style:(_vm.showStyle),on:{"click":_vm.onShow}})])])])}
|
|
25998
|
+
var mainvue_type_template_id_5115c798_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=5115c798&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
|
//
|
|
@@ -26237,14 +26237,13 @@ const mainvue_type_script_lang_js_deepClone = data => {
|
|
|
26237
26237
|
defaultCheckedKeys: { type: Array },
|
|
26238
26238
|
currentNodeKey:{ type:[Number, String] },
|
|
26239
26239
|
indent: { type: Number },
|
|
26240
|
-
iconClass: { type: String },
|
|
26240
|
+
iconClass: { type: "String" },
|
|
26241
26241
|
draggable: { type: Boolean },
|
|
26242
26242
|
searchType:{ type:String, default:'normal' }, // normal api
|
|
26243
26243
|
defaultWidth:{ type:Number, default:200 },
|
|
26244
26244
|
placeholder:{ type:String, default:'请输入关键字搜索' },
|
|
26245
26245
|
clearable: { type: Boolean, default: false },
|
|
26246
26246
|
showTitleButton: { type: Boolean, default: true },
|
|
26247
|
-
titleIcon: { type: String, default: '' },
|
|
26248
26247
|
allowDrop: { type: Function },
|
|
26249
26248
|
allowDrag: { type: Function },
|
|
26250
26249
|
dragWidth:{
|
|
@@ -26296,9 +26295,6 @@ const mainvue_type_script_lang_js_deepClone = data => {
|
|
|
26296
26295
|
this.resetHandleData()
|
|
26297
26296
|
},
|
|
26298
26297
|
methods: {
|
|
26299
|
-
handldMore(node){
|
|
26300
|
-
this.$emit('click-more',node.data)
|
|
26301
|
-
},
|
|
26302
26298
|
dropSize(){
|
|
26303
26299
|
let that = this;
|
|
26304
26300
|
|
|
@@ -26385,7 +26381,6 @@ const mainvue_type_script_lang_js_deepClone = data => {
|
|
|
26385
26381
|
return data[this.treeProps.label].indexOf(value) !== -1;
|
|
26386
26382
|
},
|
|
26387
26383
|
handleNodeClick(data) {
|
|
26388
|
-
this.handleMenuFlag = false
|
|
26389
26384
|
this.$emit("node-click", data);
|
|
26390
26385
|
},
|
|
26391
26386
|
handleCheckChange(data, check, is) {
|
|
@@ -26445,11 +26440,11 @@ const mainvue_type_script_lang_js_deepClone = data => {
|
|
|
26445
26440
|
|
|
26446
26441
|
var src_main_component = normalizeComponent(
|
|
26447
26442
|
packages_tree_src_mainvue_type_script_lang_js_,
|
|
26448
|
-
|
|
26449
|
-
|
|
26443
|
+
mainvue_type_template_id_5115c798_scoped_true_render,
|
|
26444
|
+
mainvue_type_template_id_5115c798_scoped_true_staticRenderFns,
|
|
26450
26445
|
false,
|
|
26451
26446
|
null,
|
|
26452
|
-
"
|
|
26447
|
+
"5115c798",
|
|
26453
26448
|
null
|
|
26454
26449
|
|
|
26455
26450
|
)
|
|
@@ -26469,7 +26464,7 @@ tree_src_main.install = function(Vue) {
|
|
|
26469
26464
|
};
|
|
26470
26465
|
|
|
26471
26466
|
/* harmony default export */ var tree = (tree_src_main);
|
|
26472
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
26467
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"b390af64-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/steps/src/main.vue?vue&type=template&id=3523f814&
|
|
26473
26468
|
var mainvue_type_template_id_3523f814_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (_vm.type === 'simple' || _vm.type === 'line')?_c('el-steps',{attrs:{"align-center":"","finish-status":"success","space":_vm.space,"active":_vm.active,"simple":_vm.type === 'simple',"process-status":_vm.type === 'simple' ? 'process' : 'success'},on:{"change":_vm.changeActive}},_vm._l((_vm.stepData),function(item,index){return _c('el-step',{key:item.title + index,staticClass:"sone-steps",class:{
|
|
26474
26469
|
'sone-steps-currentColor': _vm.active === index,
|
|
26475
26470
|
'sone-steps-finishColor': _vm.active > index,
|
|
@@ -26741,14 +26736,14 @@ steps_src_main.install = function(Vue) {
|
|
|
26741
26736
|
};
|
|
26742
26737
|
|
|
26743
26738
|
/* harmony default export */ var steps = (steps_src_main);
|
|
26744
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
26739
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"b390af64-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/upload/src/main.vue?vue&type=template&id=0de9b7e4&
|
|
26745
26740
|
var mainvue_type_template_id_0de9b7e4_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"sone-upload-box",class:{ 'sone-upload-box-full': _vm.type === 'img' && !_vm.multiple }},[(!_vm.disabled)?_c('el-upload',{attrs:{"action":"","show-file-list":false,"accept":_vm.acceptType,"multiple":_vm.multiple,"drag":_vm.type === 'img' && !_vm.multiple,"before-upload":_vm.beforeUpload,"http-request":_vm.httpRequest}},[(_vm.type !== 'img')?_c('icon-button',{ref:"uploadBtn",staticClass:"sone-upload-btn",attrs:{"iconfont":false,"tooltipDisabled":_vm.tooltipDisabled,"enterable":false,"content":"上传","placement":"top","icon":_vm.uploadIcon}}):_vm._e(),(_vm.type === 'img' && !_vm.multiple)?_c('div',{staticClass:"sone-upload-drag"},[_c('el-tooltip',{attrs:{"enterable":false,"content":"上传","placement":"top"}},[_c('i',{class:_vm.uploadIcon})]),_c('div',{staticClass:"el-upload__text"},[_vm._v("将文件拖到此处,或"),_c('em',[_vm._v("点击上传")])])],1):_vm._e(),(_vm.type === 'img' && _vm.multiple)?_c('div',{staticClass:"sone-upload-multipleBtn"},[_c('el-tooltip',{attrs:{"enterable":false,"content":"上传","placement":"top"}},[_c('i',{staticClass:"el-icon-plus"})])],1):_vm._e()],1):_vm._e(),(_vm.type !== 'img' && !_vm.multiple && _vm.fileList)?_c('div',{staticClass:"sone-upload-file"},[_c('el-tooltip',{attrs:{"enterable":false,"content":_vm.fileList.name,"placement":"top"}},[_c('span',{staticClass:"sone-upload-file-name",attrs:{"title":_vm.fileList.name},on:{"click":function($event){return _vm.clickName(_vm.fileList)}}},[_vm._v(" "+_vm._s(_vm.fileList.name)+" "),_c('el-image',{staticClass:"sone-upload-preview",attrs:{"src":_vm.fileList.src,"preview-src-list":[_vm.fileList.src]}})],1)]),(!_vm.disabled && _vm.fileList.percentage === 100)?_c('i',{staticClass:"sone-upload-file-success el-icon-circle-check"}):_vm._e(),_c('el-tooltip',{attrs:{"enterable":false,"content":"删除","placement":"top"}},[(!_vm.disabled)?_c('i',{staticClass:"sone-upload-file-del el-icon-circle-close",attrs:{"title":"删除"},on:{"click":function($event){return _vm.del(_vm.fileList)}}}):_vm._e()]),_c('el-tooltip',{attrs:{"enterable":false,"content":"下载","placement":"top"}},[(_vm.disabled)?_c('i',{staticClass:"sone-upload-file-download el-icon-download",attrs:{"title":"下载"},on:{"click":function($event){return _vm.download(_vm.fileList)}}}):_vm._e()]),_c('el-progress',{directives:[{name:"show",rawName:"v-show",value:(_vm.fileList.percentage && _vm.fileList.percentage !== 100),expression:"fileList.percentage && fileList.percentage !== 100"}],staticClass:"sone-upload-file-progress",attrs:{"percentage":_vm.fileList.percentage,"stroke-width":3,"show-text":false}}),_c('div',{staticClass:"sone-upload-file-background"})],1):_vm._e(),(_vm.type === 'img' && !_vm.multiple && _vm.fileList)?_c('div',{staticClass:"sone-upload-singleImg"},[(_vm.fileList.src)?_c('img',{staticClass:"sone-upload-img",attrs:{"src":_vm.fileList.src,"alt":""}}):_vm._e(),_c('div',{staticClass:"sone-upload-mask"},[_c('el-tooltip',{attrs:{"enterable":false,"content":"预览","placement":"top"}},[_c('el-image',{staticClass:"sone-upload-preview sone-upload-mask-icon el-icon-view",attrs:{"src":_vm.fileList.src,"preview-src-list":[_vm.fileList.src]}})],1),_c('el-tooltip',{attrs:{"enterable":false,"content":"下载","placement":"top"}},[_c('i',{staticClass:"sone-upload-mask-icon el-icon-download",on:{"click":function($event){return _vm.download(_vm.fileList)}}})]),_c('el-tooltip',{attrs:{"enterable":false,"content":"删除","placement":"top"}},[(!_vm.disabled)?_c('i',{staticClass:"sone-upload-mask-icon el-icon-delete",on:{"click":function($event){return _vm.del(_vm.fileList)}}}):_vm._e()])],1),_c('el-progress',{directives:[{name:"show",rawName:"v-show",value:(_vm.fileList.percentage && _vm.fileList.percentage !== 100),expression:"fileList.percentage && fileList.percentage !== 100"}],staticClass:"sone-upload-file-progress",attrs:{"percentage":_vm.fileList.percentage,"stroke-width":3,"show-text":false}})],1):_vm._e(),(_vm.type === 'img' && _vm.multiple && _vm.fileList)?_c('div',{staticClass:"sone-upload-multipleImg-box"},[(!_vm.disabled)?_c('div',{staticClass:"sone-upload-blank"}):_vm._e(),_vm._l((_vm.fileList),function(item,index){return _c('div',{key:item.name + index,staticClass:"sone-upload-multipleImg"},[(item.src)?_c('img',{staticClass:"sone-upload-img",attrs:{"src":item.src,"alt":""}}):_vm._e(),_c('div',{staticClass:"sone-upload-mask"},[_c('el-tooltip',{attrs:{"enterable":false,"content":"预览","placement":"top"}},[_c('el-image',{staticClass:"sone-upload-preview sone-upload-mask-icon el-icon-view",attrs:{"src":item.src,"preview-src-list":_vm.previewList}})],1),_c('el-tooltip',{attrs:{"enterable":false,"content":"下载","placement":"top"}},[_c('i',{staticClass:"sone-upload-mask-icon el-icon-download",on:{"click":function($event){return _vm.download(item)}}})]),_c('el-tooltip',{attrs:{"enterable":false,"content":"删除","placement":"top"}},[(!_vm.disabled)?_c('i',{staticClass:"sone-upload-mask-icon el-icon-delete",on:{"click":function($event){return _vm.del(item, index)}}}):_vm._e()])],1),_c('el-progress',{directives:[{name:"show",rawName:"v-show",value:(item.percentage && item.percentage !== 100),expression:"item.percentage && item.percentage !== 100"}],staticClass:"sone-upload-file-progress",attrs:{"percentage":item.percentage,"stroke-width":3,"show-text":false}})],1)})],2):_vm._e()],1)}
|
|
26746
26741
|
var mainvue_type_template_id_0de9b7e4_staticRenderFns = []
|
|
26747
26742
|
|
|
26748
26743
|
|
|
26749
26744
|
// CONCATENATED MODULE: ./packages/upload/src/main.vue?vue&type=template&id=0de9b7e4&
|
|
26750
26745
|
|
|
26751
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
26746
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"b390af64-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/IconButton/index.vue?vue&type=template&id=943e0cac&scoped=true&
|
|
26752
26747
|
var IconButtonvue_type_template_id_943e0cac_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('el-tooltip',{attrs:{"content":_vm.content,"placement":"top","effect":"light","disabled":_vm.tooltipDisabled}},[_c('el-button',{staticClass:"sm-icon-button",attrs:{"circle":_vm.circle,"plain":_vm.plain,"loading":_vm.localLoading,"type":_vm.type,"size":_vm.btnSize,"disabled":_vm.disabled},on:{"click":function($event){return _vm.$emit('click', _vm.setLoading)}}},[(_vm.tooltipDisabled)?_c('span',[_vm._v(_vm._s(_vm.content))]):_vm._e(),(_vm.icon && !_vm.localLoading && !_vm.tooltipDisabled)?_c('i',{class:[ _vm.iconfont && 'iconfont', _vm.icon ],on:{"click":function($event){return _vm.$emit('click')}}}):_vm._e(),(!_vm.icon && !_vm.localLoading)?_vm._t("default"):_vm._e()],2)],1)}
|
|
26753
26748
|
var IconButtonvue_type_template_id_943e0cac_scoped_true_staticRenderFns = []
|
|
26754
26749
|
|
|
@@ -27303,7 +27298,7 @@ Watermark.clearAll = function () {
|
|
|
27303
27298
|
|
|
27304
27299
|
/* harmony default export */ var watermark = (watermark_src_main);
|
|
27305
27300
|
|
|
27306
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
27301
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"b390af64-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/form/src/mainNoDrag.vue?vue&type=template&id=6e3e3176&
|
|
27307
27302
|
var mainNoDragvue_type_template_id_6e3e3176_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('el-form',{ref:"sone-form",staticClass:"sone-form-box",style:({
|
|
27308
27303
|
height: _vm.showCollapse && !_vm.isBottomCollapse ? 52 * _vm.rowHideCount + 4 + 'px' : 'auto',
|
|
27309
27304
|
'overflow-y': _vm.showCollapse && _vm.isBottomCollapse ? 'auto' : 'hidden'
|
|
@@ -27832,12 +27827,12 @@ mainNoDrag.install = function(Vue) {
|
|
|
27832
27827
|
};
|
|
27833
27828
|
|
|
27834
27829
|
/* harmony default export */ var packages_form = (mainNoDrag);
|
|
27835
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
27836
|
-
var
|
|
27837
|
-
var
|
|
27830
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"b390af64-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/dialog/src/main.vue?vue&type=template&id=fe7c93a6&
|
|
27831
|
+
var mainvue_type_template_id_fe7c93a6_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"sone-dialog",staticStyle:{"position":"relative"}},[_c('el-dialog',{directives:[{name:"dialogDrag",rawName:"v-dialogDrag"}],attrs:{"before-close":_vm.handleClose,"modal":_vm.modal,"title":_vm.title,"close-on-click-modal":_vm.closeOnClickModal,"append-to-body":_vm.appendToBody,"top":'0',"visible":_vm.dialogVisible,"width":_vm.dialogSize,"custom-class":_vm.customClass},on:{"update:visible":function($event){_vm.dialogVisible=$event}},scopedSlots:_vm._u([{key:"title",fn:function(){return [_vm._t("title")]},proxy:true},{key:"default",fn:function(){return [_vm._t("default"),_vm._t("container")]},proxy:true},{key:"footer",fn:function(){return [(_vm.$slots.footer)?_c('div',{staticClass:"sone-dialog-custom-footer-wrapper"},[_vm._t("footer")],2):[(_vm.showFooter)?[_c('icon-button',{attrs:{"tooltipDisabled":_vm.tooltipDisabled,"content":_vm.cancel,"placement":"top","loading":_vm.loading,"icon":"el-icon-close","iconfont":false},on:{"click":_vm.handleClose}}),_c('icon-button',{attrs:{"tooltipDisabled":_vm.tooltipDisabled,"content":_vm.confirm,"placement":"top","loading":_vm.loading,"icon":"el-icon-check","type":"primary","iconfont":false},on:{"click":_vm.handleConfirm}})]:_vm._e()]]},proxy:true}],null,true)})],1)}
|
|
27832
|
+
var mainvue_type_template_id_fe7c93a6_staticRenderFns = []
|
|
27838
27833
|
|
|
27839
27834
|
|
|
27840
|
-
// CONCATENATED MODULE: ./packages/dialog/src/main.vue?vue&type=template&id=
|
|
27835
|
+
// CONCATENATED MODULE: ./packages/dialog/src/main.vue?vue&type=template&id=fe7c93a6&
|
|
27841
27836
|
|
|
27842
27837
|
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/dialog/src/main.vue?vue&type=script&lang=js&
|
|
27843
27838
|
//
|
|
@@ -27972,8 +27967,7 @@ var mainvue_type_template_id_49994547_staticRenderFns = []
|
|
|
27972
27967
|
},
|
|
27973
27968
|
data() {
|
|
27974
27969
|
return {
|
|
27975
|
-
dialogVisible: true
|
|
27976
|
-
timer: null,
|
|
27970
|
+
dialogVisible: true
|
|
27977
27971
|
};
|
|
27978
27972
|
},
|
|
27979
27973
|
methods: {
|
|
@@ -27981,10 +27975,6 @@ var mainvue_type_template_id_49994547_staticRenderFns = []
|
|
|
27981
27975
|
this.$emit("close");
|
|
27982
27976
|
},
|
|
27983
27977
|
handleConfirm() {
|
|
27984
|
-
if(this.timer) return; //PC端出现了点击确定出现了两次回调的情况, 这里限制下
|
|
27985
|
-
this.timer = setTimeout(() => {
|
|
27986
|
-
this.timer = null;
|
|
27987
|
-
}, 800)
|
|
27988
27978
|
this.$emit("confirm");
|
|
27989
27979
|
}
|
|
27990
27980
|
}
|
|
@@ -28002,8 +27992,8 @@ var mainvue_type_template_id_49994547_staticRenderFns = []
|
|
|
28002
27992
|
|
|
28003
27993
|
var dialog_src_main_component = normalizeComponent(
|
|
28004
27994
|
packages_dialog_src_mainvue_type_script_lang_js_,
|
|
28005
|
-
|
|
28006
|
-
|
|
27995
|
+
mainvue_type_template_id_fe7c93a6_render,
|
|
27996
|
+
mainvue_type_template_id_fe7c93a6_staticRenderFns,
|
|
28007
27997
|
false,
|
|
28008
27998
|
null,
|
|
28009
27999
|
null,
|
|
@@ -28021,19 +28011,19 @@ dialog_src_main.install = function(Vue) {
|
|
|
28021
28011
|
|
|
28022
28012
|
/* harmony default export */ var dialog = (dialog_src_main);
|
|
28023
28013
|
|
|
28024
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
28025
|
-
var mainvue_type_template_id_89ab6f68_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"sone_table_box"},[(_vm.showMenuLeft)?_c('div',{staticClass:"table-menu-left"},[_vm._t("menuLeft")],2):_vm._e(),(_vm.showMenuRight)?_c('div',{staticClass:"table-menu-right"},[_vm._t("menuRight"),(_vm.showColumnHandleBtn)?_c('el-dropdown',{attrs:{"hide-on-click":false},on:{"visible-change":_vm.onColumnVisibleMenu}},[_c('icon-button',{staticClass:"sort-btn",attrs:{"iconfont":false,"tooltipDisabled":_vm.tooltipDisabled,"content":"列展示","icon":"el-icon-s-operation"}}),_c('column-transfer',{ref:"column-transfer",attrs:{"columns":_vm.internalColumns},on:{"update:columns":function($event){_vm.internalColumns=$event},"dropdownList":_vm.dropdownList,"handleCheckedColumnChange":_vm.handleCheckedColumnChange,"selectFixed":_vm.selectFixed,"resetColumnTransfer":function($event){return _vm.$emit('resetColumnTransfer')}}})],1):_vm._e(),_vm._t("transferRight")],2):_vm._e(),(_vm.isTable)?_c('el-table',{directives:[{name:"loading",rawName:"v-loading",value:(_vm.loading),expression:"loading"}],ref:_vm.tabelRef,class:'sone-table ' + _vm.className,staticStyle:{"width":"100%"},attrs:{"useVirtual":_vm.option.useVirtual,"rowHeight":_vm.option.rowHeight,"excessRows":_vm.option.excessRows,"cell-class-name":_vm.option.cellClassName,"cell-style":_vm.option.cellStyle,"data":_vm.tableData,"header-cell-class-name":_vm.option.headerCellClassName,"header-cell-style":_vm.option.headerCellStyle,"header-row-class-name":_vm.option.headerRowClassName,"header-row-style":_vm.option.headerRowStyle,"height":_vm.option.height,"highlight-current-row":_vm.option.highlightRow,"max-height":_vm.option.maxHeight,"default-expand-all":_vm.option.defaultExpandAll,"expand-row-keys":_vm.option.expandRowKeys,"row-class-name":_vm.tableRowClassName,"row-key":_vm.option.rowKey,"row-style":_vm.option.rowStyle,"show-summary":_vm.option.showSummary,"render-header":_vm.option.renderHeader,"span-method":_vm.spanMethod,"show-header":_vm.showHeader,"stripe":_vm.stripe,"border":_vm.border,"sum-text":_vm.option.sumText,"summary-method":_vm.summaryMethod},on:{"cell-mouse-enter":_vm.cellMouseEnter,"cell-mouse-leave":_vm.cellMouseLeave,"filter-change":_vm.filterChange,"header-click":_vm.headerClick,"header-contextmenu":_vm.headerContextmenu,"row-click":_vm.rowClick,"row-contextmenu":_vm.rowContextmenu,"row-dblclick":_vm.rowDblclick,"header-dragend":_vm.onHeaderDragend,"expand-change":_vm.expandChange}},[(_vm.operation)?_c('el-table-column',{attrs:{"width":_vm.operation.width,"fixed":"","label":_vm.operation.label ? _vm.operation.label : '操作',"type":"index","resizable":_vm.operation.hasOwnProperty('resizable') ? _vm.operation.resizable : true},scopedSlots:_vm._u([{key:"default",fn:function(scope){return [(!_vm.hideButtonMode)?[(scope.row.buttonShow&&scope.row.buttonShow.filter(function (d){ return d.isShow; }).length<=3)?_c('div',{staticClass:"sone-table-buttonList"},[_vm._l((_vm.operation.buttonList),function(item,index){return [_c('el-tooltip',{directives:[{name:"show",rawName:"v-show",value:(scope.row.buttonShow.find(function (i){ return i.id===item.id; }).isShow),expression:"scope.row.buttonShow.find(i=>i.id===item.id).isShow"}],key:index,attrs:{"content":item.label,"effect":"light","placement":"top"}},[_c('el-button',{style:({color:item.color}),attrs:{"icon":item.icon,"disabled":scope.row.buttonShow.find(function (i){ return i.id===item.id; }).isDisabled || false,"circle":"","type":"text"},nativeOn:{"click":function($event){$event.stopPropagation();return _vm.handButton(item.function, scope, item.id)}}})],1)]})],2):_vm._e(),(scope.row.buttonShow&&scope.row.buttonShow.filter(function (d){ return d.isShow; }).length>3)?_c('div',{staticClass:"sone-table-buttonList"},[_vm._l((scope.row.buttonShow.filter(function (d){ return d.isShow; }).slice(0,2)),function(item,index){return [_c('el-tooltip',{key:index,attrs:{"content":_vm.operation.buttonList.find(function (d){ return d.id===item.id; }).label,"effect":"light","placement":"top"}},[_c('el-button',{style:({color:_vm.operation.buttonList.find(function (d){ return d.id===item.id; }).color}),attrs:{"icon":_vm.operation.buttonList.find(function (d){ return d.id===item.id; }).icon,"disabled":item.hasOwnProperty('isDisabled') ? item.isDisabled : false,"circle":"","type":"text"},nativeOn:{"click":function($event){$event.stopPropagation();_vm.handButton(_vm.operation.buttonList.find(function (d){ return d.id===item.id; }).function, scope, item.id)}}})],1)]}),_c('el-dropdown',{staticClass:"dropdown_box_button"},[_c('span',{staticClass:"el-dropdown-link color-span menu-more"},[_c('el-button',{attrs:{"type":"text"}},[_c('i',{staticClass:"el-icon-more more-handel",style:({color:_vm.operation.moreIconColor})})])],1),_c('el-dropdown-menu',{attrs:{"slot":"dropdown"},slot:"dropdown"},_vm._l((scope.row.buttonShow.filter(function (d){ return d.isShow; }).slice(2,scope.row.buttonShow.filter(function (d){ return d.isShow; }).length)),function(item,i){return _c('el-dropdown-item',{key:i,staticClass:"sone-table-dropdown",attrs:{"command":"copy"}},[_c('el-button',{style:({color:_vm.operation.buttonList.find(function (d){ return d.id===item.id; }).color}),attrs:{"icon":_vm.operation.buttonList.find(function (d){ return d.id===item.id; }).icon,"disabled":item.hasOwnProperty('isDisabled') ? item.isDisabled : false,"title":_vm.operation.buttonList.find(function (d){ return d.id===item.id; }).label,"type":"text"},nativeOn:{"click":function($event){$event.stopPropagation();_vm.handButton(_vm.operation.buttonList.find(function (d){ return d.id===item.id; }).function, scope, item.id)}}},[_vm._v(" "+_vm._s(_vm.operation.buttonList.find(function (d){ return d.id===item.id; }).label)+" ")])],1)}),1)],1)],2):_vm._e(),(!scope.row.buttonShow&&_vm.operation.buttonList.length<=3)?_c('div',{staticClass:"sone-table-buttonList"},[_vm._l((_vm.operation.buttonList),function(item,index){return [_c('el-tooltip',{key:index,attrs:{"content":item.label,"effect":"light","placement":"top"}},[_c('el-button',{style:({color:item.color}),attrs:{"icon":item.icon,"circle":"","type":"text"},nativeOn:{"click":function($event){$event.stopPropagation();return _vm.handButton(item.function,scope, item.id)}}})],1)]})],2):_vm._e(),(!scope.row.buttonShow&&_vm.operation.buttonList.length>3)?_c('div',{staticClass:"sone-table-buttonList"},[_vm._l((_vm.operation.buttonList.slice(0,2)),function(item,index){return [_c('el-tooltip',{key:index,attrs:{"content":item.label,"effect":"light","placement":"top"}},[_c('el-button',{style:({color:item.color}),attrs:{"icon":item.icon,"circle":"","type":"text"},nativeOn:{"click":function($event){$event.stopPropagation();return _vm.handButton(item.function, scope, item.id)}}})],1)]}),_c('el-dropdown',{staticClass:"dropdown_box_button",on:{"command":function($event){$event.stopPropagation();return (function (command){_vm.handleCommand(command,_vm.row)}).apply(null, arguments)}}},[_c('span',{staticClass:"el-dropdown-link color-span menu-more"},[_c('el-button',{attrs:{"type":"text"}},[_c('i',{staticClass:"el-icon-more more-handel",style:({color:_vm.operation.moreIconColor})})])],1),_c('el-dropdown-menu',{attrs:{"slot":"dropdown"},slot:"dropdown"},_vm._l((_vm.operation.buttonList.slice(2,_vm.operation.buttonList.length)),function(item,i){return _c('el-dropdown-item',{key:i,staticClass:"sone-table-dropdown",attrs:{"command":"copy"}},[_c('el-button',{style:({color:item.color}),attrs:{"icon":item.icon,"title":_vm.operation.buttonList.find(function (d){ return d.id===item.id; }).label,"type":"text"},nativeOn:{"click":function($event){$event.stopPropagation();_vm.handButton(_vm.operation.buttonList.find(function (d){ return d.id===item.id; }).function, scope, item.id)}}},[_vm._v(" "+_vm._s(item.label)+" ")])],1)}),1)],1)],2):_vm._e()]:[(scope.row.buttonShow)?_c('el-dropdown',{staticClass:"dropdown_box_button sone-table-buttonList"},[_c('span',{directives:[{name:"show",rawName:"v-show",value:(scope.row.buttonShow.filter(function (d){ return d.isShow; }).length > 0),expression:"scope.row.buttonShow.filter(d=>d.isShow).length > 0"}],staticClass:"el-dropdown-link color-span menu-more"},[_c('el-button',{attrs:{"type":"text"}},[_c('i',{staticClass:"el-icon-more more-handel",style:({color:_vm.operation.moreIconColor})})])],1),_c('el-dropdown-menu',{attrs:{"slot":"dropdown"},slot:"dropdown"},_vm._l((scope.row.buttonShow.filter(function (d){ return d.isShow; })),function(item,i){return _c('el-dropdown-item',{key:i,staticClass:"sone-table-dropdown",attrs:{"command":"copy"}},[_c('el-button',{style:({color:_vm.operation.buttonList.find(function (d){ return d.id===item.id; }).color}),attrs:{"icon":_vm.operation.buttonList.find(function (d){ return d.id===item.id; }).icon,"disabled":item.hasOwnProperty('isDisabled') ? item.isDisabled : false,"type":"text","title":_vm.operation.buttonList.find(function (d){ return d.id === item.id; }).label},nativeOn:{"click":function($event){$event.stopPropagation();_vm.handButton(_vm.operation.buttonList.find(function (d){ return d.id===item.id; }).function, scope, item.id)}}},[_vm._v(" "+_vm._s(_vm.operation.buttonList.find(function (d){ return d.id===item.id; }).label)+" ")])],1)}),1)],1):_c('el-dropdown',{staticClass:"dropdown_box_button sone-table-buttonList",on:{"command":function($event){$event.stopPropagation();return (function (command){_vm.handleCommand(command,_vm.row)}).apply(null, arguments)}}},[_c('span',{directives:[{name:"show",rawName:"v-show",value:(_vm.operation.buttonList.length > 0),expression:"operation.buttonList.length > 0"}],staticClass:"el-dropdown-link color-span menu-more"},[_c('el-button',{attrs:{"type":"text"}},[_c('i',{staticClass:"el-icon-more more-handel",style:({color:_vm.operation.moreIconColor})})])],1),_c('el-dropdown-menu',{attrs:{"slot":"dropdown"},slot:"dropdown"},_vm._l((_vm.operation.buttonList),function(item,i){return _c('el-dropdown-item',{key:i,staticClass:"sone-table-dropdown",attrs:{"command":"copy"}},[_c('el-button',{style:({color:item.color}),attrs:{"icon":item.icon,"title":item.label,"type":"text"},nativeOn:{"click":function($event){$event.stopPropagation();return _vm.handButton(item.function, scope, item.id)}}},[_vm._v(" "+_vm._s(item.label)+" ")])],1)}),1)],1)]]}}],null,false,2245244563)}):_vm._e(),(_vm.option.index)?_c('el-table-column',{attrs:{"width":_vm.option.indexWidth,"fixed":"","label":_vm.option.indexLabel ? _vm.option.indexLabel : '序号',"type":"index","index":_vm.indexMethod,"resizable":_vm.option.hasOwnProperty('indexResizable') ? _vm.option.indexResizable : true}}):(_vm.option.indexRadio)?_c('el-table-column',{attrs:{"width":_vm.option.indexRadioWidth,"fixed":"","label":_vm.option.indexLabel ? _vm.option.indexLabel : '序号',"type":"index","resizable":_vm.option.hasOwnProperty('indexResizable') ? _vm.option.indexResizable : true},scopedSlots:_vm._u([{key:"default",fn:function(scope){return [_c('div',{staticClass:"index-check-box"},[_c('el-radio',{staticClass:"table-checked",class:{ 'in-block': _vm.radioRow && _vm.radioRow === scope.row[_vm.option.rowKey] },attrs:{"label":scope.row[_vm.option.rowKey]},on:{"change":function($event){return _vm.handleRadioChange(scope.row, scope.$index)}},model:{value:(scope.row[_vm.option.rowKey]),callback:function ($$v) {_vm.$set(scope.row, _vm.option.rowKey, $$v)},expression:"scope.row[option.rowKey]"}}),(_vm.page)?_c('span',{directives:[{name:"show",rawName:"v-show",value:(!_vm.radioRow || _vm.radioRow !== scope.row[_vm.option.rowKey]),expression:"!radioRow || radioRow !== scope.row[option.rowKey]"}],staticClass:"table-index"},[_vm._v(_vm._s(_vm.indexMethod ? _vm.indexMethod(scope.$index) : (_vm.page.current - 1) * _vm.page.size + scope.$index + 1))]):_c('span',{directives:[{name:"show",rawName:"v-show",value:(!_vm.radioRow || _vm.radioRow !== scope.row[_vm.option.rowKey]),expression:"!radioRow || radioRow !== scope.row[option.rowKey]"}],staticClass:"table-index"},[_vm._v(_vm._s((_vm.indexMethod ? _vm.indexMethod(scope.$index) : scope.$index + 1)))])],1)]}}],null,false,420954598)}):(_vm.option.indexCheck)?_c('el-table-column',{attrs:{"width":_vm.option.indexCheckWidth,"fixed":"","label":_vm.option.indexLabel ? _vm.option.indexLabel : '序号',"type":"index","resizable":_vm.option.hasOwnProperty('indexResizable') ? _vm.option.indexResizable : true},scopedSlots:_vm._u([{key:"header",fn:function(ref){return [_c('div',{staticClass:"index-check-box",on:{"click":function($event){$event.stopPropagation();}}},[_c('span',{directives:[{name:"show",rawName:"v-show",value:(!_vm.checkList || _vm.checkList.length < 1),expression:"!checkList || checkList.length < 1"}],staticClass:"table-index"},[_vm._v(_vm._s(_vm.option.indexLabel ? _vm.option.indexLabel : '序号'))]),_c('label',{staticClass:"el-checkbox table-checked",class:{ 'is-checked': _vm.checkAll, 'in-block': _vm.checkList && _vm.checkList.length > 0 }},[_c('span',{staticClass:"el-checkbox__input",class:{ 'is-checked': _vm.checkAll, 'is-indeterminate': _vm.checkIndeterminate }},[_c('span',{staticClass:"el-checkbox__inner",on:{"click":function($event){$event.stopPropagation();return _vm.handleCheckAllChange(!_vm.checkAll)}}})])])])]}},{key:"default",fn:function(scope){return [_c('div',{staticClass:"index-check-box",on:{"click":function($event){$event.stopPropagation();}}},[_c('label',{staticClass:"el-checkbox table-checked",class:{ 'is-checked': scope.row.checked, 'in-block': scope.row.checked }},[_c('span',{staticClass:"el-checkbox__input",class:{ 'is-checked': scope.row.checked, 'is-indeterminate': scope.row.indeterminate }},[_c('span',{staticClass:"el-checkbox__inner",on:{"click":function($event){$event.stopPropagation();return _vm.handleCheckedChange(scope.row.checked, scope.row, scope.$index)}}})])]),(_vm.page)?_c('span',{directives:[{name:"show",rawName:"v-show",value:(!scope.row.checked),expression:"!scope.row.checked"}],staticClass:"table-index"},[_vm._v(_vm._s(_vm.indexMethod ? _vm.indexMethod(scope.$index) : (_vm.page.current - 1) * _vm.page.size + scope.$index + 1))]):_c('span',{directives:[{name:"show",rawName:"v-show",value:(!scope.row.checked),expression:"!scope.row.checked"}],staticClass:"table-index"},[_vm._v(_vm._s((_vm.indexMethod ? _vm.indexMethod(scope.$index) : scope.$index + 1)))])])]}}],null,false,993569738)}):_vm._e(),_vm._l((_vm.internalColumns),function(column,index){return [(column.slot && column.istrue)?_vm._t(column.slot):(column.hasOwnProperty('istrue')?column.istrue:true)?_c('el-table-column',{key:("col_" + (column.prop) + "_" + (column.label)),attrs:{"filter-method":column.filters ? _vm.filterHandler : null,"filters":column.filters,"fixed":column.fixed,"label":column.label,"min-width":column.minWidth,"prop":column.prop,"width":column.width,"align":column.hasOwnProperty('align') ? column.align : 'left',"filter-placement":"bottom-end","header-align":column.hasOwnProperty('headerAlign') ? column.headerAlign : 'left',"show-overflow-tooltip":column.hasOwnProperty('showOverflowTooltip') ? column.showOverflowTooltip : false,"column-key":column.hasOwnProperty('elementId')? column.elementId:column.prop,"resizable":column.hasOwnProperty('resizable') ? column.resizable : true},scopedSlots:_vm._u([{key:"header",fn:function(scope){return [(column.slotColumnHeader && _vm.isShow)?_vm._t(column.slotColumnHeader,null,{"header":{column: scope.column, $index:scope.$index }}):_vm._e(),(!column.slotColumnHeader && _vm.isShow)?[_c('div',{staticClass:"slot_header_class"},[(column.isRequire)?_c('span',{staticClass:"table-header-isRequire"},[_vm._v("*")]):_vm._e(),_c('span',[_vm._v(_vm._s(column.label))]),_c('span',{staticClass:"hide"},[(column.headerDescribe)?_c('i',{staticClass:"iconfont icon-help icon_describe",attrs:{"title":column.headerDescribe}}):_vm._e(),(column.headerFilterSort)?_c('span',{staticClass:"caret-wrapper",class:{ 'ascending': _vm.sortVal === column.prop + 'ascending', 'descending': _vm.sortVal === column.prop + 'descending' }},[_c('i',{staticClass:"sort-caret ascending",attrs:{"title":"升序"},on:{"click":function($event){return _vm.handleCommand(column.prop, index, { command: 'ascending' })}}}),_c('i',{staticClass:"sort-caret descending",attrs:{"title":"降序"},on:{"click":function($event){return _vm.handleCommand(column.prop, index, { command: 'descending' })}}})]):_vm._e()])])]:_vm._e()]}},{key:"default",fn:function(scope){return [(column.slotCell)?_vm._t(column.slotCell,null,{"index":scope.$index,"row":scope.row}):[_vm._v(_vm._s(scope.row[column.prop]))]]}}],null,true)},[(_vm.isMultipleHeader)?[_vm._l((column.children),function(childColumn,childIdx){return [(childColumn.hasOwnProperty('istrue')?childColumn.istrue:true)?_c('el-table-column',{key:("col_" + index + "_" + childIdx),attrs:{"filter-method":childColumn.filters ? _vm.filterHandler : null,"filters":childColumn.filters,"fixed":childColumn.fixed,"label":childColumn.label,"min-width":childColumn.minWidth,"prop":childColumn.prop,"width":childColumn.width,"align":childColumn.hasOwnProperty('align') ? childColumn.align : 'left',"filter-placement":"bottom-end","header-align":childColumn.hasOwnProperty('headerAlign') ? childColumn.headerAlign : 'left',"show-overflow-tooltip":childColumn.hasOwnProperty('showOverflowTooltip') ? childColumn.showOverflowTooltip : false,"column-key":childColumn.prop,"resizable":childColumn.hasOwnProperty('resizable') ? childColumn.resizable : true},scopedSlots:_vm._u([{key:"header",fn:function(scope){return [(childColumn.slotColumnHeader && _vm.isShow)?_vm._t(childColumn.slotColumnHeader,null,{"header":scope}):_vm._e(),(!childColumn.slotColumnHeader && _vm.isShow)?[_c('div',{staticClass:"slot_header_class"},[(childColumn.isRequire)?_c('span',{staticClass:"table-header-isRequire"},[_vm._v("*")]):_vm._e(),_c('span',[_vm._v(_vm._s(childColumn.label))]),_c('span',{staticClass:"hide"},[(childColumn.headerDescribe)?_c('i',{staticClass:"iconfont icon-help icon_describe",attrs:{"title":childColumn.headerDescribe}}):_vm._e(),(childColumn.headerFilterSort)?_c('span',{staticClass:"caret-wrapper",class:{ 'ascending': _vm.sortVal === childColumn.prop + 'ascending', 'descending': _vm.sortVal === childColumn.prop + 'descending' }},[_c('i',{staticClass:"sort-caret ascending",attrs:{"title":"升序"},on:{"click":function($event){return _vm.handleCommand(childColumn.prop, childIdx, { command: 'ascending' })}}}),_c('i',{staticClass:"sort-caret descending",attrs:{"title":"降序"},on:{"click":function($event){return _vm.handleCommand(childColumn.prop, childIdx, { command: 'descending' })}}})]):_vm._e()])])]:_vm._e()]}},{key:"default",fn:function(scope){return [(childColumn.slotCell)?_vm._t(childColumn.slotCell,null,{"index":scope.$index,"row":scope.row}):[_vm._v(_vm._s(scope.row[childColumn.prop]))]]}}],null,true)}):_vm._e()]})]:_vm._e()],2):_vm._e()]})],2):_vm._e(),(_vm.page && _vm.page.total > 0)?_c('div',{staticClass:"pagination-box"},[_c('el-pagination',{attrs:{"current-page":_vm.page.current,"layout":_vm.page.layout ? _vm.page.layout : 'total, sizes, prev, pager, next, jumper',"page-size":_vm.page.size,"page-sizes":_vm.page.pageSizes,"total":_vm.page.total,"page-count":_vm.page.pageCount,"pager-count":_vm.page.pagerCount,"background":""},on:{"current-change":_vm.currentChange,"size-change":_vm.sizeChange}})],1):_vm._e()],1)}
|
|
28026
|
-
var
|
|
28014
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"b390af64-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/table/src/main.vue?vue&type=template&id=3a4d34ef&
|
|
28015
|
+
var mainvue_type_template_id_3a4d34ef_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"sone_table_box"},[(_vm.showMenuLeft)?_c('div',{staticClass:"table-menu-left"},[_vm._t("menuLeft")],2):_vm._e(),(_vm.showMenuRight)?_c('div',{staticClass:"table-menu-right"},[_vm._t("menuRight"),(_vm.showColumnHandleBtn)?_c('el-dropdown',{attrs:{"hide-on-click":false,"trigger":"click"},on:{"visible-change":_vm.onColumnVisibleMenu}},[_c('icon-button',{staticClass:"sort-btn",attrs:{"iconfont":false,"tooltipDisabled":_vm.tooltipDisabled,"content":"列展示","icon":"el-icon-s-operation"},on:{"click":function($event){_vm.columnVisible = true}}}),_c('column-transfer',{ref:"column-transfer",attrs:{"columns":_vm.internalColumns},on:{"update:columns":function($event){_vm.internalColumns=$event},"dropdownList":_vm.dropdownList,"handleCheckedColumnChange":_vm.handleCheckedColumnChange,"selectFixed":_vm.selectFixed,"resetColumnTransfer":function($event){return _vm.$emit('resetColumnTransfer')}}})],1):_vm._e(),_vm._t("transferRight")],2):_vm._e(),(_vm.isTable)?_c('el-table',{directives:[{name:"loading",rawName:"v-loading",value:(_vm.loading),expression:"loading"}],ref:_vm.tabelRef,class:'sone-table ' + _vm.className,staticStyle:{"width":"100%"},attrs:{"useVirtual":_vm.option.useVirtual,"rowHeight":_vm.option.rowHeight,"excessRows":_vm.option.excessRows,"cell-class-name":_vm.option.cellClassName,"cell-style":_vm.option.cellStyle,"data":_vm.tableData,"header-cell-class-name":_vm.option.headerCellClassName,"header-cell-style":_vm.option.headerCellStyle,"header-row-class-name":_vm.option.headerRowClassName,"header-row-style":_vm.option.headerRowStyle,"height":_vm.option.height,"highlight-current-row":_vm.option.highlightRow,"max-height":_vm.option.maxHeight,"default-expand-all":_vm.option.defaultExpandAll,"row-class-name":_vm.tableRowClassName,"row-key":_vm.option.rowKey,"row-style":_vm.option.rowStyle,"show-summary":_vm.option.showSummary,"render-header":_vm.option.renderHeader,"span-method":_vm.spanMethod,"stripe":true,"border":_vm.border,"sum-text":_vm.option.sumText,"summary-method":_vm.summaryMethod},on:{"cell-mouse-enter":_vm.cellMouseEnter,"cell-mouse-leave":_vm.cellMouseLeave,"filter-change":_vm.filterChange,"header-click":_vm.headerClick,"header-contextmenu":_vm.headerContextmenu,"row-click":_vm.rowClick,"row-contextmenu":_vm.rowContextmenu,"row-dblclick":_vm.rowDblclick,"header-dragend":_vm.onHeaderDragend}},[(_vm.operation)?_c('el-table-column',{attrs:{"width":_vm.operation.width,"fixed":"","label":_vm.operation.label ? _vm.operation.label : '操作',"type":"index","resizable":_vm.operation.hasOwnProperty('resizable') ? _vm.operation.resizable : true},scopedSlots:_vm._u([{key:"default",fn:function(scope){return [(!_vm.hideButtonMode)?[(scope.row.buttonShow&&scope.row.buttonShow.filter(function (d){ return d.isShow; }).length<=3)?_c('div',{staticClass:"sone-table-buttonList"},[_vm._l((_vm.operation.buttonList),function(item,index){return [_c('el-tooltip',{directives:[{name:"show",rawName:"v-show",value:(scope.row.buttonShow.find(function (i){ return i.id===item.id; }).isShow),expression:"scope.row.buttonShow.find(i=>i.id===item.id).isShow"}],key:index,attrs:{"content":item.label,"effect":"light","placement":"top"}},[_c('el-button',{style:({color:item.color}),attrs:{"icon":item.icon,"disabled":scope.row.buttonShow.find(function (i){ return i.id===item.id; }).isDisabled || false,"circle":"","type":"text"},nativeOn:{"click":function($event){$event.stopPropagation();return _vm.handButton(item.function, scope, item.id)}}})],1)]})],2):_vm._e(),(scope.row.buttonShow&&scope.row.buttonShow.filter(function (d){ return d.isShow; }).length>3)?_c('div',{staticClass:"sone-table-buttonList"},[_vm._l((scope.row.buttonShow.filter(function (d){ return d.isShow; }).slice(0,2)),function(item,index){return [_c('el-tooltip',{key:index,attrs:{"content":_vm.operation.buttonList.find(function (d){ return d.id===item.id; }).label,"effect":"light","placement":"top"}},[_c('el-button',{style:({color:_vm.operation.buttonList.find(function (d){ return d.id===item.id; }).color}),attrs:{"icon":_vm.operation.buttonList.find(function (d){ return d.id===item.id; }).icon,"disabled":item.hasOwnProperty('isDisabled') ? item.isDisabled : false,"circle":"","type":"text"},nativeOn:{"click":function($event){$event.stopPropagation();_vm.handButton(_vm.operation.buttonList.find(function (d){ return d.id===item.id; }).function, scope, item.id)}}})],1)]}),_c('el-dropdown',{staticClass:"dropdown_box_button"},[_c('span',{staticClass:"el-dropdown-link color-span menu-more"},[_c('el-button',{attrs:{"type":"text"}},[_c('i',{staticClass:"el-icon-more more-handel",style:({color:_vm.operation.moreIconColor})})])],1),_c('el-dropdown-menu',{attrs:{"slot":"dropdown"},slot:"dropdown"},_vm._l((scope.row.buttonShow.filter(function (d){ return d.isShow; }).slice(2,scope.row.buttonShow.filter(function (d){ return d.isShow; }).length)),function(item,i){return _c('el-dropdown-item',{key:i,staticClass:"sone-table-dropdown",attrs:{"command":"copy"}},[_c('el-button',{style:({color:_vm.operation.buttonList.find(function (d){ return d.id===item.id; }).color}),attrs:{"icon":_vm.operation.buttonList.find(function (d){ return d.id===item.id; }).icon,"disabled":item.hasOwnProperty('isDisabled') ? item.isDisabled : false,"title":_vm.operation.buttonList.find(function (d){ return d.id===item.id; }).label,"type":"text"},nativeOn:{"click":function($event){$event.stopPropagation();_vm.handButton(_vm.operation.buttonList.find(function (d){ return d.id===item.id; }).function, scope, item.id)}}},[_vm._v(" "+_vm._s(_vm.operation.buttonList.find(function (d){ return d.id===item.id; }).label)+" ")])],1)}),1)],1)],2):_vm._e(),(!scope.row.buttonShow&&_vm.operation.buttonList.length<=3)?_c('div',{staticClass:"sone-table-buttonList"},[_vm._l((_vm.operation.buttonList),function(item,index){return [_c('el-tooltip',{key:index,attrs:{"content":item.label,"effect":"light","placement":"top"}},[_c('el-button',{style:({color:item.color}),attrs:{"icon":item.icon,"circle":"","type":"text"},nativeOn:{"click":function($event){$event.stopPropagation();return _vm.handButton(item.function,scope, item.id)}}})],1)]})],2):_vm._e(),(!scope.row.buttonShow&&_vm.operation.buttonList.length>3)?_c('div',{staticClass:"sone-table-buttonList"},[_vm._l((_vm.operation.buttonList.slice(0,2)),function(item,index){return [_c('el-tooltip',{key:index,attrs:{"content":item.label,"effect":"light","placement":"top"}},[_c('el-button',{style:({color:item.color}),attrs:{"icon":item.icon,"circle":"","type":"text"},nativeOn:{"click":function($event){$event.stopPropagation();return _vm.handButton(item.function, scope, item.id)}}})],1)]}),_c('el-dropdown',{staticClass:"dropdown_box_button",on:{"command":function($event){$event.stopPropagation();return (function (command){_vm.handleCommand(command,_vm.row)}).apply(null, arguments)}}},[_c('span',{staticClass:"el-dropdown-link color-span menu-more"},[_c('el-button',{attrs:{"type":"text"}},[_c('i',{staticClass:"el-icon-more more-handel",style:({color:_vm.operation.moreIconColor})})])],1),_c('el-dropdown-menu',{attrs:{"slot":"dropdown"},slot:"dropdown"},_vm._l((_vm.operation.buttonList.slice(2,_vm.operation.buttonList.length)),function(item,i){return _c('el-dropdown-item',{key:i,staticClass:"sone-table-dropdown",attrs:{"command":"copy"}},[_c('el-button',{style:({color:item.color}),attrs:{"icon":item.icon,"title":_vm.operation.buttonList.find(function (d){ return d.id===item.id; }).label,"type":"text"},nativeOn:{"click":function($event){$event.stopPropagation();_vm.handButton(_vm.operation.buttonList.find(function (d){ return d.id===item.id; }).function, scope, item.id)}}},[_vm._v(" "+_vm._s(item.label)+" ")])],1)}),1)],1)],2):_vm._e()]:[(scope.row.buttonShow)?_c('el-dropdown',{staticClass:"dropdown_box_button sone-table-buttonList"},[_c('span',{directives:[{name:"show",rawName:"v-show",value:(scope.row.buttonShow.filter(function (d){ return d.isShow; }).length > 0),expression:"scope.row.buttonShow.filter(d=>d.isShow).length > 0"}],staticClass:"el-dropdown-link color-span menu-more"},[_c('el-button',{attrs:{"type":"text"}},[_c('i',{staticClass:"el-icon-more more-handel",style:({color:_vm.operation.moreIconColor})})])],1),_c('el-dropdown-menu',{attrs:{"slot":"dropdown"},slot:"dropdown"},_vm._l((scope.row.buttonShow.filter(function (d){ return d.isShow; })),function(item,i){return _c('el-dropdown-item',{key:i,staticClass:"sone-table-dropdown",attrs:{"command":"copy"}},[_c('el-button',{style:({color:_vm.operation.buttonList.find(function (d){ return d.id===item.id; }).color}),attrs:{"icon":_vm.operation.buttonList.find(function (d){ return d.id===item.id; }).icon,"disabled":item.hasOwnProperty('isDisabled') ? item.isDisabled : false,"type":"text","title":_vm.operation.buttonList.find(function (d){ return d.id === item.id; }).label},nativeOn:{"click":function($event){$event.stopPropagation();_vm.handButton(_vm.operation.buttonList.find(function (d){ return d.id===item.id; }).function, scope, item.id)}}},[_vm._v(" "+_vm._s(_vm.operation.buttonList.find(function (d){ return d.id===item.id; }).label)+" ")])],1)}),1)],1):_c('el-dropdown',{staticClass:"dropdown_box_button sone-table-buttonList",on:{"command":function($event){$event.stopPropagation();return (function (command){_vm.handleCommand(command,_vm.row)}).apply(null, arguments)}}},[_c('span',{directives:[{name:"show",rawName:"v-show",value:(_vm.operation.buttonList.length > 0),expression:"operation.buttonList.length > 0"}],staticClass:"el-dropdown-link color-span menu-more"},[_c('el-button',{attrs:{"type":"text"}},[_c('i',{staticClass:"el-icon-more more-handel",style:({color:_vm.operation.moreIconColor})})])],1),_c('el-dropdown-menu',{attrs:{"slot":"dropdown"},slot:"dropdown"},_vm._l((_vm.operation.buttonList),function(item,i){return _c('el-dropdown-item',{key:i,staticClass:"sone-table-dropdown",attrs:{"command":"copy"}},[_c('el-button',{style:({color:item.color}),attrs:{"icon":item.icon,"title":item.label,"type":"text"},nativeOn:{"click":function($event){$event.stopPropagation();return _vm.handButton(item.function, scope, item.id)}}},[_vm._v(" "+_vm._s(item.label)+" ")])],1)}),1)],1)]]}}],null,false,2245244563)}):_vm._e(),(_vm.option.index)?_c('el-table-column',{attrs:{"width":_vm.option.indexWidth,"fixed":"","label":_vm.option.indexLabel ? _vm.option.indexLabel : '序号',"type":"index","index":_vm.indexMethod,"resizable":_vm.option.hasOwnProperty('indexResizable') ? _vm.option.indexResizable : true}}):(_vm.option.indexRadio)?_c('el-table-column',{attrs:{"width":_vm.option.indexRadioWidth,"fixed":"","label":_vm.option.indexLabel ? _vm.option.indexLabel : '序号',"type":"index","resizable":_vm.option.hasOwnProperty('indexResizable') ? _vm.option.indexResizable : true},scopedSlots:_vm._u([{key:"default",fn:function(scope){return [_c('div',{staticClass:"index-check-box"},[_c('el-radio',{staticClass:"table-checked",class:{ 'in-block': _vm.radioRow && _vm.radioRow === scope.row[_vm.option.rowKey] },attrs:{"label":scope.row[_vm.option.rowKey]},on:{"change":function($event){return _vm.handleRadioChange(scope.row, scope.$index)}},model:{value:(scope.row[_vm.option.rowKey]),callback:function ($$v) {_vm.$set(scope.row, _vm.option.rowKey, $$v)},expression:"scope.row[option.rowKey]"}}),(_vm.page)?_c('span',{directives:[{name:"show",rawName:"v-show",value:(!_vm.radioRow || _vm.radioRow !== scope.row[_vm.option.rowKey]),expression:"!radioRow || radioRow !== scope.row[option.rowKey]"}],staticClass:"table-index"},[_vm._v(_vm._s(_vm.indexMethod ? _vm.indexMethod(scope.$index) : (_vm.page.current - 1) * _vm.page.size + scope.$index + 1))]):_c('span',{directives:[{name:"show",rawName:"v-show",value:(!_vm.radioRow || _vm.radioRow !== scope.row[_vm.option.rowKey]),expression:"!radioRow || radioRow !== scope.row[option.rowKey]"}],staticClass:"table-index"},[_vm._v(_vm._s((_vm.indexMethod ? _vm.indexMethod(scope.$index) : scope.$index + 1)))])],1)]}}],null,false,420954598)}):(_vm.option.indexCheck)?_c('el-table-column',{attrs:{"width":_vm.option.indexCheckWidth,"fixed":"","label":_vm.option.indexLabel ? _vm.option.indexLabel : '序号',"type":"index","resizable":_vm.option.hasOwnProperty('indexResizable') ? _vm.option.indexResizable : true},scopedSlots:_vm._u([{key:"header",fn:function(ref){return [_c('div',{staticClass:"index-check-box",on:{"click":function($event){$event.stopPropagation();}}},[_c('span',{directives:[{name:"show",rawName:"v-show",value:(!_vm.checkList || _vm.checkList.length < 1),expression:"!checkList || checkList.length < 1"}],staticClass:"table-index"},[_vm._v(_vm._s(_vm.option.indexLabel ? _vm.option.indexLabel : '序号'))]),_c('label',{staticClass:"el-checkbox table-checked",class:{ 'is-checked': _vm.checkAll, 'in-block': _vm.checkList && _vm.checkList.length > 0 }},[_c('span',{staticClass:"el-checkbox__input",class:{ 'is-checked': _vm.checkAll, 'is-indeterminate': _vm.checkIndeterminate }},[_c('span',{staticClass:"el-checkbox__inner",on:{"click":function($event){$event.stopPropagation();return _vm.handleCheckAllChange(!_vm.checkAll)}}})])])])]}},{key:"default",fn:function(scope){return [_c('div',{staticClass:"index-check-box",on:{"click":function($event){$event.stopPropagation();}}},[_c('label',{staticClass:"el-checkbox table-checked",class:{ 'is-checked': scope.row.checked, 'in-block': scope.row.checked }},[_c('span',{staticClass:"el-checkbox__input",class:{ 'is-checked': scope.row.checked, 'is-indeterminate': scope.row.indeterminate }},[_c('span',{staticClass:"el-checkbox__inner",on:{"click":function($event){$event.stopPropagation();return _vm.handleCheckedChange(scope.row.checked, scope.row, scope.$index)}}})])]),(_vm.page)?_c('span',{directives:[{name:"show",rawName:"v-show",value:(!scope.row.checked),expression:"!scope.row.checked"}],staticClass:"table-index"},[_vm._v(_vm._s(_vm.indexMethod ? _vm.indexMethod(scope.$index) : (_vm.page.current - 1) * _vm.page.size + scope.$index + 1))]):_c('span',{directives:[{name:"show",rawName:"v-show",value:(!scope.row.checked),expression:"!scope.row.checked"}],staticClass:"table-index"},[_vm._v(_vm._s((_vm.indexMethod ? _vm.indexMethod(scope.$index) : scope.$index + 1)))])])]}}],null,false,993569738)}):_vm._e(),_vm._l((_vm.internalColumns),function(column,index){return [(column.slot && column.istrue)?_vm._t(column.slot):(column.hasOwnProperty('istrue')?column.istrue:true)?_c('el-table-column',{key:("col_" + (column.prop) + "_" + (column.label)),attrs:{"filter-method":column.filters ? _vm.filterHandler : null,"filters":column.filters,"fixed":column.fixed,"label":column.label,"min-width":column.minWidth,"prop":column.prop,"width":column.width,"align":column.hasOwnProperty('align') ? column.align : 'left',"filter-placement":"bottom-end","header-align":column.hasOwnProperty('headerAlign') ? column.headerAlign : 'left',"show-overflow-tooltip":column.hasOwnProperty('showOverflowTooltip') ? column.showOverflowTooltip : true,"column-key":column.hasOwnProperty('elementId')? column.elementId:column.prop,"resizable":column.hasOwnProperty('resizable') ? column.resizable : true},scopedSlots:_vm._u([{key:"header",fn:function(scope){return [(column.slotColumnHeader && _vm.isShow)?_vm._t(column.slotColumnHeader,null,{"header":{column: scope.column, $index:scope.$index }}):_vm._e(),(!column.slotColumnHeader && _vm.isShow)?[_c('div',{staticClass:"slot_header_class"},[(column.isRequire)?_c('span',{staticClass:"table-header-isRequire"},[_vm._v("*")]):_vm._e(),_c('span',[_vm._v(_vm._s(column.label))]),_c('span',{staticClass:"hide"},[(column.headerDescribe)?_c('i',{staticClass:"iconfont icon-help icon_describe",attrs:{"title":column.headerDescribe}}):_vm._e(),(column.headerFilterSort)?_c('span',{staticClass:"caret-wrapper",class:{ 'ascending': _vm.sortVal === column.prop + 'ascending', 'descending': _vm.sortVal === column.prop + 'descending' }},[_c('i',{staticClass:"sort-caret ascending",attrs:{"title":"升序"},on:{"click":function($event){return _vm.handleCommand(column.prop, index, { command: 'ascending' })}}}),_c('i',{staticClass:"sort-caret descending",attrs:{"title":"降序"},on:{"click":function($event){return _vm.handleCommand(column.prop, index, { command: 'descending' })}}})]):_vm._e()])])]:_vm._e()]}},{key:"default",fn:function(scope){return [(column.slotCell)?_vm._t(column.slotCell,null,{"index":scope.$index,"row":scope.row}):[_vm._v(_vm._s(scope.row[column.prop]))]]}}],null,true)},[(_vm.isMultipleHeader)?[_vm._l((column.children),function(childColumn,childIdx){return [(childColumn.hasOwnProperty('istrue')?childColumn.istrue:true)?_c('el-table-column',{key:("col_" + index + "_" + childIdx),attrs:{"filter-method":childColumn.filters ? _vm.filterHandler : null,"filters":childColumn.filters,"fixed":childColumn.fixed,"label":childColumn.label,"min-width":childColumn.minWidth,"prop":childColumn.prop,"width":childColumn.width,"align":childColumn.hasOwnProperty('align') ? childColumn.align : 'left',"filter-placement":"bottom-end","header-align":childColumn.hasOwnProperty('headerAlign') ? childColumn.headerAlign : 'left',"show-overflow-tooltip":childColumn.hasOwnProperty('showOverflowTooltip') ? childColumn.showOverflowTooltip : true,"column-key":childColumn.prop,"resizable":childColumn.hasOwnProperty('resizable') ? childColumn.resizable : true},scopedSlots:_vm._u([{key:"header",fn:function(scope){return [(childColumn.slotColumnHeader && _vm.isShow)?_vm._t(childColumn.slotColumnHeader,null,{"header":scope}):_vm._e(),(!childColumn.slotColumnHeader && _vm.isShow)?[_c('div',{staticClass:"slot_header_class"},[(childColumn.isRequire)?_c('span',{staticClass:"table-header-isRequire"},[_vm._v("*")]):_vm._e(),_c('span',[_vm._v(_vm._s(childColumn.label))]),_c('span',{staticClass:"hide"},[(childColumn.headerDescribe)?_c('i',{staticClass:"iconfont icon-help icon_describe",attrs:{"title":childColumn.headerDescribe}}):_vm._e(),(childColumn.headerFilterSort)?_c('span',{staticClass:"caret-wrapper",class:{ 'ascending': _vm.sortVal === childColumn.prop + 'ascending', 'descending': _vm.sortVal === childColumn.prop + 'descending' }},[_c('i',{staticClass:"sort-caret ascending",attrs:{"title":"升序"},on:{"click":function($event){return _vm.handleCommand(childColumn.prop, childIdx, { command: 'ascending' })}}}),_c('i',{staticClass:"sort-caret descending",attrs:{"title":"降序"},on:{"click":function($event){return _vm.handleCommand(childColumn.prop, childIdx, { command: 'descending' })}}})]):_vm._e()])])]:_vm._e()]}},{key:"default",fn:function(scope){return [(childColumn.slotCell)?_vm._t(childColumn.slotCell,null,{"index":scope.$index,"row":scope.row}):[_vm._v(_vm._s(scope.row[childColumn.prop]))]]}}],null,true)}):_vm._e()]})]:_vm._e()],2):_vm._e()]})],2):_vm._e(),(_vm.page && _vm.page.total > 0)?_c('div',{staticClass:"pagination-box"},[_c('el-pagination',{attrs:{"current-page":_vm.page.current,"layout":_vm.page.layout ? _vm.page.layout : 'total, sizes, prev, pager, next, jumper',"page-size":_vm.page.size,"page-sizes":_vm.page.pageSizes,"total":_vm.page.total,"page-count":_vm.page.pageCount,"pager-count":_vm.page.pagerCount,"background":""},on:{"current-change":_vm.currentChange,"size-change":_vm.sizeChange}})],1):_vm._e()],1)}
|
|
28016
|
+
var mainvue_type_template_id_3a4d34ef_staticRenderFns = []
|
|
28027
28017
|
|
|
28028
28018
|
|
|
28029
|
-
// CONCATENATED MODULE: ./packages/table/src/main.vue?vue&type=template&id=
|
|
28019
|
+
// CONCATENATED MODULE: ./packages/table/src/main.vue?vue&type=template&id=3a4d34ef&
|
|
28030
28020
|
|
|
28031
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
28032
|
-
var
|
|
28033
|
-
var
|
|
28021
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"b390af64-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/table/src/columnTransfer.vue?vue&type=template&id=b462b7d4&
|
|
28022
|
+
var columnTransfervue_type_template_id_b462b7d4_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('el-dropdown-menu',{attrs:{"slot":"dropdown"},slot:"dropdown"},[_c('div',{staticClass:"dropdown_box"},[_c('div',{staticClass:"dropdown_title"},[_c('el-checkbox',{attrs:{"indeterminate":_vm.isIndeterminate},on:{"change":_vm.handleColumnsCheckListChange},model:{value:(_vm.columnsCheckAll),callback:function ($$v) {_vm.columnsCheckAll=$$v},expression:"columnsCheckAll"}},[_vm._v("列展示")]),_c('el-tooltip',{attrs:{"effect":"light","content":"重置","placement":"top"}},[_c('el-button',{staticClass:"rigth_button",attrs:{"type":"text"},on:{"click":_vm.resetList}},[_vm._v("重置")])],1)],1),_c('div',{staticClass:"dropdown_content",class:[_vm.dragTarClass]},[_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.leftColumns.length),expression:"leftColumns.length"}]},[_c('p',{staticClass:"title"},[_vm._v("固定在左侧")]),_c('el-checkbox-group',{staticClass:"item1",on:{"change":_vm.handleCheckedColumnChange},model:{value:(_vm.columnsCheckList),callback:function ($$v) {_vm.columnsCheckList=$$v},expression:"columnsCheckList"}},_vm._l((_vm.leftColumns),function(item,index){return _c('div',{key:item.prop+'#'+item.istrue + index,staticClass:"hover_label"},[_c('label',{staticClass:"el-checkbox is-checked"},[_c('el-checkbox',{attrs:{"label":item.label}})],1),_c('span',{staticClass:"icon_display"},[_c('el-tooltip',{attrs:{"placement":"top","content":"不固定","effect":"light"}},[_c('i',{staticClass:"iconfont iconfont-action icon-close",on:{"click":function($event){return _vm.selectFixed(item,false)}}})]),_c('el-tooltip',{attrs:{"placement":"top","content":"固定在右侧","effect":"light"}},[_c('i',{staticClass:"iconfont iconfont-action icon-zhidi",on:{"click":function($event){return _vm.selectFixed(item,'right')}}})])],1)])}),0)],1),_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.rightColumns.length),expression:"rightColumns.length"}]},[_c('p',{staticClass:"title"},[_vm._v("固定在右侧")]),_c('el-checkbox-group',{staticClass:"item2",on:{"change":_vm.handleCheckedColumnChange},model:{value:(_vm.columnsCheckList),callback:function ($$v) {_vm.columnsCheckList=$$v},expression:"columnsCheckList"}},_vm._l((_vm.rightColumns),function(item,index){return _c('div',{key:item.prop+'#'+item.istrue + index,staticClass:"hover_label"},[_c('label',{staticClass:"el-checkbox is-checked"},[_c('el-checkbox',{attrs:{"label":item.label}})],1),_c('span',{staticClass:"icon_display"},[_c('el-tooltip',{attrs:{"placement":"top","content":"不固定","effect":"light"}},[_c('i',{staticClass:"iconfont iconfont-action icon-close",on:{"click":function($event){return _vm.selectFixed(item, false)}}})]),_c('el-tooltip',{attrs:{"placement":"top","content":"固定在左侧","effect":"light"}},[_c('i',{staticClass:"iconfont iconfont-action icon-zhiding",on:{"click":function($event){return _vm.selectFixed(item,'left')}}})])],1)])}),0)],1),_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.noColumns.length),expression:"noColumns.length"}]},[_c('p',{staticClass:"title"},[_vm._v("不固定")]),_c('el-checkbox-group',{staticClass:"item",on:{"change":_vm.handleCheckedColumnChange},model:{value:(_vm.columnsCheckList),callback:function ($$v) {_vm.columnsCheckList=$$v},expression:"columnsCheckList"}},_vm._l((_vm.noColumns),function(item,index){return _c('div',{key:item.prop+'#'+item.istrue + index,staticClass:"hover_label"},[_c('label',{staticClass:"el-checkbox is-checked"},[_c('el-checkbox',{attrs:{"label":item.label}})],1),_c('span',{staticClass:"icon_display"},[_c('el-tooltip',{attrs:{"placement":"top","content":"固定在左侧","effect":"light"}},[_c('i',{staticClass:"iconfont iconfont-action icon-zhiding",on:{"click":function($event){return _vm.selectFixed(item,'left')}}})]),_c('el-tooltip',{attrs:{"placement":"top","content":"固定在右侧","effect":"light"}},[_c('i',{staticClass:"iconfont iconfont-action icon-zhidi",on:{"click":function($event){return _vm.selectFixed(item,'right')}}})])],1)])}),0)],1)])])])],1)}
|
|
28023
|
+
var columnTransfervue_type_template_id_b462b7d4_staticRenderFns = []
|
|
28034
28024
|
|
|
28035
28025
|
|
|
28036
|
-
// CONCATENATED MODULE: ./packages/table/src/columnTransfer.vue?vue&type=template&id=
|
|
28026
|
+
// CONCATENATED MODULE: ./packages/table/src/columnTransfer.vue?vue&type=template&id=b462b7d4&
|
|
28037
28027
|
|
|
28038
28028
|
// CONCATENATED MODULE: ./node_modules/sortablejs/modular/sortable.esm.js
|
|
28039
28029
|
/**!
|
|
@@ -32136,8 +32126,8 @@ Sortable.mount(Remove, Revert);
|
|
|
32136
32126
|
|
|
32137
32127
|
var columnTransfer_component = normalizeComponent(
|
|
32138
32128
|
src_columnTransfervue_type_script_lang_js_,
|
|
32139
|
-
|
|
32140
|
-
|
|
32129
|
+
columnTransfervue_type_template_id_b462b7d4_render,
|
|
32130
|
+
columnTransfervue_type_template_id_b462b7d4_staticRenderFns,
|
|
32141
32131
|
false,
|
|
32142
32132
|
null,
|
|
32143
32133
|
null,
|
|
@@ -32783,7 +32773,6 @@ var columnTransfer_component = normalizeComponent(
|
|
|
32783
32773
|
//
|
|
32784
32774
|
//
|
|
32785
32775
|
//
|
|
32786
|
-
//
|
|
32787
32776
|
|
|
32788
32777
|
|
|
32789
32778
|
|
|
@@ -32817,14 +32806,6 @@ var columnTransfer_component = normalizeComponent(
|
|
|
32817
32806
|
type: Boolean,
|
|
32818
32807
|
default: false,
|
|
32819
32808
|
},
|
|
32820
|
-
showHeader: {
|
|
32821
|
-
type: Boolean,
|
|
32822
|
-
default: true,
|
|
32823
|
-
},
|
|
32824
|
-
stripe: {
|
|
32825
|
-
type: Boolean,
|
|
32826
|
-
default: true,
|
|
32827
|
-
},
|
|
32828
32809
|
border: {
|
|
32829
32810
|
type: Boolean,
|
|
32830
32811
|
default: true,
|
|
@@ -32934,6 +32915,7 @@ var columnTransfer_component = normalizeComponent(
|
|
|
32934
32915
|
// 复选
|
|
32935
32916
|
checkAll: false,
|
|
32936
32917
|
checkIndeterminate: false,
|
|
32918
|
+
columnVisible: false,
|
|
32937
32919
|
//多选的列表
|
|
32938
32920
|
checkList: this.defaultCheckedList,
|
|
32939
32921
|
|
|
@@ -33488,9 +33470,6 @@ var columnTransfer_component = normalizeComponent(
|
|
|
33488
33470
|
},
|
|
33489
33471
|
updateColumn(){
|
|
33490
33472
|
|
|
33491
|
-
},
|
|
33492
|
-
expandChange(row, expend){
|
|
33493
|
-
this.$emit('expandChange', row, expend)
|
|
33494
33473
|
}
|
|
33495
33474
|
},
|
|
33496
33475
|
});
|
|
@@ -33507,8 +33486,8 @@ var columnTransfer_component = normalizeComponent(
|
|
|
33507
33486
|
|
|
33508
33487
|
var table_src_main_component = normalizeComponent(
|
|
33509
33488
|
packages_table_src_mainvue_type_script_lang_js_,
|
|
33510
|
-
|
|
33511
|
-
|
|
33489
|
+
mainvue_type_template_id_3a4d34ef_render,
|
|
33490
|
+
mainvue_type_template_id_3a4d34ef_staticRenderFns,
|
|
33512
33491
|
false,
|
|
33513
33492
|
null,
|
|
33514
33493
|
null,
|
|
@@ -33534,15 +33513,15 @@ table_src_main.install = function(Vue) {
|
|
|
33534
33513
|
|
|
33535
33514
|
/* harmony default export */ var table = (table_src_main);
|
|
33536
33515
|
|
|
33537
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
33538
|
-
var
|
|
33516
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"b390af64-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/select/src/main.vue?vue&type=template&id=5ebc7e87&
|
|
33517
|
+
var mainvue_type_template_id_5ebc7e87_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('el-select',{staticClass:"sone-select",attrs:{"value":_vm.model,"placeholder":_vm.placeholder,"clearable":_vm.clearable,"multiple":_vm.multiple,"disabled":_vm.disabled,"collapse-tags":"","filterable":"","popper-class":_vm.popperClass,"popper-append-to-body":_vm.popperAppendToBody,"filter-method":_vm.onFilterOption},on:{"visible-change":_vm.handleVisible,"change":_vm.onChange,"clear":_vm.onClear,"blur":function (e){ return _vm.$emit('blur', e); },"focus":function (e){ return _vm.$emit('focus', e); }}},[(_vm.type==='normal')?[_vm._t("default",function(){return _vm._l((_vm.internalOptions),function(item){return _c('el-option',{key:item[_vm.props.value],attrs:{"label":item[_vm.props.label],"disabled":item[_vm.props.disabled],"value":item[_vm.props.value]}})})})]:(_vm.type==='tree')?[_c('el-tree',{ref:"treeRef",staticClass:"sone-select-tree",attrs:{"data":_vm.internalOptions,"props":_vm.props,"node-key":_vm.props.value,"default-expand-all":"","default-checked-keys":_vm.checkedNodes,"show-checkbox":_vm.multiple,"check-strictly":_vm.checkStrictly,"expand-on-click-node":false,"highlight-current":false,"filter-node-method":_vm.onFilterNode},on:{"check":_vm.onCheckNode},scopedSlots:_vm._u([{key:"default",fn:function(ref){
|
|
33539
33518
|
var node = ref.node;
|
|
33540
33519
|
var data = ref.data;
|
|
33541
33520
|
return _c('div',{staticClass:"custom-select-tree-node"},[_c('el-option',{key:data[_vm.props.value],attrs:{"label":_vm.formatLabelFunc(data, _vm.props.label),"value":data[_vm.props.value],"disabled":data[_vm.props.disabled]}})],1)}}])})]:_vm._e()],2)}
|
|
33542
|
-
var
|
|
33521
|
+
var mainvue_type_template_id_5ebc7e87_staticRenderFns = []
|
|
33543
33522
|
|
|
33544
33523
|
|
|
33545
|
-
// CONCATENATED MODULE: ./packages/select/src/main.vue?vue&type=template&id=
|
|
33524
|
+
// CONCATENATED MODULE: ./packages/select/src/main.vue?vue&type=template&id=5ebc7e87&
|
|
33546
33525
|
|
|
33547
33526
|
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/select/src/main.vue?vue&type=script&lang=js&
|
|
33548
33527
|
//
|
|
@@ -33613,182 +33592,173 @@ var mainvue_type_template_id_bd9422c6_staticRenderFns = []
|
|
|
33613
33592
|
//
|
|
33614
33593
|
//
|
|
33615
33594
|
//
|
|
33616
|
-
|
|
33617
|
-
|
|
33618
|
-
|
|
33619
|
-
|
|
33620
|
-
|
|
33621
|
-
|
|
33622
|
-
|
|
33623
|
-
|
|
33624
|
-
|
|
33625
|
-
|
|
33626
|
-
|
|
33627
|
-
|
|
33628
|
-
|
|
33629
|
-
|
|
33630
|
-
|
|
33631
|
-
|
|
33632
|
-
|
|
33633
|
-
|
|
33634
|
-
|
|
33635
|
-
|
|
33636
|
-
|
|
33637
|
-
|
|
33638
|
-
|
|
33639
|
-
|
|
33640
|
-
|
|
33641
|
-
|
|
33642
|
-
|
|
33643
|
-
|
|
33644
|
-
|
|
33645
|
-
|
|
33646
|
-
|
|
33647
|
-
|
|
33648
|
-
|
|
33649
|
-
|
|
33650
|
-
|
|
33651
|
-
|
|
33652
|
-
|
|
33653
|
-
|
|
33654
|
-
|
|
33655
|
-
|
|
33656
|
-
|
|
33657
|
-
|
|
33658
|
-
|
|
33659
|
-
|
|
33660
|
-
|
|
33661
|
-
|
|
33662
|
-
|
|
33663
|
-
|
|
33664
|
-
|
|
33665
|
-
|
|
33666
|
-
|
|
33667
|
-
|
|
33668
|
-
|
|
33669
|
-
|
|
33670
|
-
|
|
33671
|
-
|
|
33672
|
-
|
|
33673
|
-
|
|
33674
|
-
|
|
33675
|
-
|
|
33676
|
-
|
|
33677
|
-
|
|
33678
|
-
|
|
33679
|
-
|
|
33680
|
-
|
|
33681
|
-
|
|
33682
|
-
|
|
33683
|
-
|
|
33684
|
-
|
|
33685
|
-
|
|
33686
|
-
|
|
33687
|
-
|
|
33688
|
-
|
|
33689
|
-
|
|
33690
|
-
|
|
33691
|
-
|
|
33692
|
-
|
|
33693
|
-
|
|
33694
|
-
|
|
33695
|
-
|
|
33696
|
-
|
|
33697
|
-
|
|
33698
|
-
|
|
33699
|
-
|
|
33700
|
-
|
|
33701
|
-
|
|
33702
|
-
|
|
33703
|
-
|
|
33704
|
-
|
|
33705
|
-
|
|
33706
|
-
|
|
33707
|
-
|
|
33708
|
-
|
|
33709
|
-
|
|
33710
|
-
|
|
33711
|
-
|
|
33712
|
-
|
|
33713
|
-
|
|
33714
|
-
|
|
33715
|
-
|
|
33716
|
-
|
|
33717
|
-
|
|
33718
|
-
|
|
33719
|
-
|
|
33720
|
-
|
|
33721
|
-
|
|
33722
|
-
|
|
33723
|
-
|
|
33724
|
-
|
|
33725
|
-
|
|
33726
|
-
|
|
33727
|
-
|
|
33728
|
-
|
|
33729
|
-
|
|
33730
|
-
|
|
33731
|
-
|
|
33732
|
-
|
|
33733
|
-
|
|
33734
|
-
|
|
33735
|
-
|
|
33736
|
-
|
|
33737
|
-
|
|
33738
|
-
|
|
33739
|
-
|
|
33740
|
-
|
|
33741
|
-
|
|
33742
|
-
|
|
33743
|
-
|
|
33744
|
-
|
|
33745
|
-
|
|
33746
|
-
|
|
33747
|
-
|
|
33748
|
-
|
|
33749
|
-
|
|
33750
|
-
|
|
33751
|
-
|
|
33752
|
-
|
|
33753
|
-
|
|
33754
|
-
|
|
33755
|
-
|
|
33756
|
-
|
|
33757
|
-
|
|
33758
|
-
|
|
33759
|
-
|
|
33760
|
-
|
|
33761
|
-
|
|
33762
|
-
|
|
33763
|
-
|
|
33764
|
-
|
|
33765
|
-
|
|
33766
|
-
|
|
33767
|
-
|
|
33768
|
-
|
|
33769
|
-
|
|
33770
|
-
|
|
33771
|
-
|
|
33772
|
-
|
|
33773
|
-
|
|
33774
|
-
|
|
33775
|
-
|
|
33776
|
-
|
|
33777
|
-
|
|
33778
|
-
|
|
33779
|
-
|
|
33780
|
-
|
|
33781
|
-
|
|
33782
|
-
|
|
33783
|
-
this.internalOptions = [...this.options];
|
|
33784
|
-
}
|
|
33785
|
-
this.$emit("clear");
|
|
33786
|
-
},
|
|
33787
|
-
doTreeFilter(words) {
|
|
33788
|
-
this.$refs.treeRef && this.$refs.treeRef.filter(words);
|
|
33789
|
-
}
|
|
33790
|
-
}
|
|
33791
|
-
});
|
|
33595
|
+
//
|
|
33596
|
+
//
|
|
33597
|
+
|
|
33598
|
+
/* harmony default export */ var select_src_mainvue_type_script_lang_js_ = ({
|
|
33599
|
+
name: "SoneSelect",
|
|
33600
|
+
components: {
|
|
33601
|
+
|
|
33602
|
+
},
|
|
33603
|
+
model: {
|
|
33604
|
+
prop: 'model',
|
|
33605
|
+
event: 'changeVal'
|
|
33606
|
+
},
|
|
33607
|
+
props: {
|
|
33608
|
+
type: {/* 组件类型:普通:normal, 属性:tree */
|
|
33609
|
+
type: String,
|
|
33610
|
+
default: "normal"
|
|
33611
|
+
},
|
|
33612
|
+
model: {/* 绑定的数据 */
|
|
33613
|
+
default: null
|
|
33614
|
+
},
|
|
33615
|
+
placeholder: {/* 占位符 */
|
|
33616
|
+
type: String,
|
|
33617
|
+
default: "请选择"
|
|
33618
|
+
},
|
|
33619
|
+
multiple: {/* 是否多选 */
|
|
33620
|
+
type: Boolean,
|
|
33621
|
+
default: false
|
|
33622
|
+
},
|
|
33623
|
+
disabled: {/* 是否禁用 */
|
|
33624
|
+
type: Boolean,
|
|
33625
|
+
default: false
|
|
33626
|
+
},
|
|
33627
|
+
clearable: {/* 是否可以清空选项 */
|
|
33628
|
+
type: Boolean,
|
|
33629
|
+
default: true
|
|
33630
|
+
},
|
|
33631
|
+
options: {/* 下拉选项列表 */
|
|
33632
|
+
type: Array,
|
|
33633
|
+
default: () => []
|
|
33634
|
+
},
|
|
33635
|
+
props: {/* 配置选项 */
|
|
33636
|
+
type: Object,
|
|
33637
|
+
default: () => {
|
|
33638
|
+
return {
|
|
33639
|
+
children: 'children',
|
|
33640
|
+
label: 'label',
|
|
33641
|
+
value: 'value',
|
|
33642
|
+
disabled: 'disabled'
|
|
33643
|
+
}
|
|
33644
|
+
}
|
|
33645
|
+
},
|
|
33646
|
+
checkStrictly: {/* 树形- */
|
|
33647
|
+
type: Boolean,
|
|
33648
|
+
default: true
|
|
33649
|
+
},
|
|
33650
|
+
popperClass: {//Select 下拉框的类名
|
|
33651
|
+
type: String,
|
|
33652
|
+
default: ''
|
|
33653
|
+
},
|
|
33654
|
+
popperAppendToBody: {/* 是否将弹出框插入至 body 元素。在弹出框的定位出现问题时,可将该属性设置为 false */
|
|
33655
|
+
type: Boolean,
|
|
33656
|
+
default: false
|
|
33657
|
+
},
|
|
33658
|
+
formatLabelFunc: {/* 格式化Label函数 */
|
|
33659
|
+
type: Function,
|
|
33660
|
+
default: (data, label) => {
|
|
33661
|
+
return data[label];
|
|
33662
|
+
}
|
|
33663
|
+
},
|
|
33664
|
+
filterMethod: {
|
|
33665
|
+
type: Function,
|
|
33666
|
+
default: null,
|
|
33667
|
+
}
|
|
33668
|
+
|
|
33669
|
+
},
|
|
33670
|
+
data() {
|
|
33671
|
+
return {
|
|
33672
|
+
optionsClone: [],
|
|
33673
|
+
checkedNodes: [],
|
|
33674
|
+
internalOptions: [],
|
|
33675
|
+
}
|
|
33676
|
+
},
|
|
33677
|
+
watch: {
|
|
33678
|
+
'model.length'(newValue, oldValue) {
|
|
33679
|
+
if (this.type === 'tree' && Array.isArray(this.model)) {
|
|
33680
|
+
this.$refs.treeRef.setCheckedKeys(this.model)
|
|
33681
|
+
}
|
|
33682
|
+
},
|
|
33683
|
+
options: {
|
|
33684
|
+
handler(newVal, oldVal) {
|
|
33685
|
+
if (newVal) {
|
|
33686
|
+
this.internalOptions = [...newVal];
|
|
33687
|
+
this.optionsClone = [...newVal];
|
|
33688
|
+
}
|
|
33689
|
+
},
|
|
33690
|
+
immediate: true,
|
|
33691
|
+
deep: true,
|
|
33692
|
+
}
|
|
33693
|
+
},
|
|
33694
|
+
computed: {
|
|
33695
|
+
|
|
33696
|
+
},
|
|
33697
|
+
created() {
|
|
33698
|
+
|
|
33699
|
+
},
|
|
33700
|
+
mounted() {
|
|
33701
|
+
if (Array.isArray(this.model)) {
|
|
33702
|
+
this.checkedNodes = [...this.model];
|
|
33703
|
+
}
|
|
33704
|
+
},
|
|
33705
|
+
methods: {
|
|
33706
|
+
onChange(val) {
|
|
33707
|
+
/* v-model */
|
|
33708
|
+
this.$emit('changeVal', val);
|
|
33709
|
+
if (!this.multiple) {
|
|
33710
|
+
this.$emit('change', val)
|
|
33711
|
+
}
|
|
33712
|
+
},
|
|
33713
|
+
onFilterOption(words) {
|
|
33714
|
+
if (this.filterMethod) {
|
|
33715
|
+
this.filterMethod(words);
|
|
33716
|
+
} else {
|
|
33717
|
+
if (this.type === 'normal') {
|
|
33718
|
+
let aResult = this.optionsClone.filter(item => {
|
|
33719
|
+
return item[this.props.label].toLowerCase()
|
|
33720
|
+
.indexOf(words.toLowerCase()) > -1;
|
|
33721
|
+
});
|
|
33722
|
+
if (aResult.length) {
|
|
33723
|
+
this.internalOptions = [...aResult];
|
|
33724
|
+
} else {
|
|
33725
|
+
this.internalOptions = [...this.optionsClone];
|
|
33726
|
+
}
|
|
33727
|
+
} else if (this.type === 'tree') {
|
|
33728
|
+
this.$refs.treeRef.filter(words)
|
|
33729
|
+
}
|
|
33730
|
+
}
|
|
33731
|
+
|
|
33732
|
+
},
|
|
33733
|
+
onFilterNode(val, data) {
|
|
33734
|
+
if (!val) return true;
|
|
33735
|
+
return data[this.props.label].indexOf(val) !== -1;
|
|
33736
|
+
},
|
|
33737
|
+
handleVisible(val) {
|
|
33738
|
+
if (!val) {
|
|
33739
|
+
if (this.type === 'tree') {
|
|
33740
|
+
this.multiple && this.$emit('change', this.model);
|
|
33741
|
+
this.$refs.treeRef.filter('');
|
|
33742
|
+
} else if (this.type === 'normal') {
|
|
33743
|
+
this.multiple && this.$emit('change', this.model);
|
|
33744
|
+
}
|
|
33745
|
+
// this.options = [...this.optionsClone];
|
|
33746
|
+
}
|
|
33747
|
+
},
|
|
33748
|
+
onCheckNode(checkedNodes, checkedKeys) {
|
|
33749
|
+
this.$emit('changeVal', [...checkedKeys.checkedKeys]);
|
|
33750
|
+
},
|
|
33751
|
+
onClear() {
|
|
33752
|
+
if (this.type === 'normal') {
|
|
33753
|
+
this.internalOptions = [...this.options];
|
|
33754
|
+
}
|
|
33755
|
+
this.$emit('clear')
|
|
33756
|
+
},
|
|
33757
|
+
doTreeFilter(words){
|
|
33758
|
+
this.$refs.treeRef && this.$refs.treeRef.filter(words);
|
|
33759
|
+
},
|
|
33760
|
+
},
|
|
33761
|
+
});
|
|
33792
33762
|
|
|
33793
33763
|
// CONCATENATED MODULE: ./packages/select/src/main.vue?vue&type=script&lang=js&
|
|
33794
33764
|
/* harmony default export */ var packages_select_src_mainvue_type_script_lang_js_ = (select_src_mainvue_type_script_lang_js_);
|
|
@@ -33802,8 +33772,8 @@ var mainvue_type_template_id_bd9422c6_staticRenderFns = []
|
|
|
33802
33772
|
|
|
33803
33773
|
var select_src_main_component = normalizeComponent(
|
|
33804
33774
|
packages_select_src_mainvue_type_script_lang_js_,
|
|
33805
|
-
|
|
33806
|
-
|
|
33775
|
+
mainvue_type_template_id_5ebc7e87_render,
|
|
33776
|
+
mainvue_type_template_id_5ebc7e87_staticRenderFns,
|
|
33807
33777
|
false,
|
|
33808
33778
|
null,
|
|
33809
33779
|
null,
|
|
@@ -33827,12 +33797,12 @@ select_src_main.install = function(Vue) {
|
|
|
33827
33797
|
};
|
|
33828
33798
|
|
|
33829
33799
|
/* harmony default export */ var packages_select = (select_src_main);
|
|
33830
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
33831
|
-
var
|
|
33832
|
-
var
|
|
33800
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"b390af64-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/datePicker/src/main.vue?vue&type=template&id=4ebcae5a&
|
|
33801
|
+
var mainvue_type_template_id_4ebcae5a_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"sone-date-picker"},[(_vm.type === 'time')?_c('el-time-picker',{attrs:{"type":"time","readonly":_vm.readonly,"disabled":_vm.disabled,"editable":_vm.editable,"clearable":_vm.clearable,"placeholder":_vm.placeholder,"align":_vm.align,"format":_vm.format,"popper-class":_vm.popperClass,"default-value":_vm.defaultValue,"name":_vm.name,"prefix-icon":_vm.prefixIcon,"clear-icon":_vm.clearIcon,"value-format":_vm.valueFormat},on:{"change":_vm.changeValue,"blur":function($event){return _vm.$emit('blur', _vm.dateValue)},"focus":function($event){return _vm.$emit('focus', _vm.dateValue)}},model:{value:(_vm.dateValue),callback:function ($$v) {_vm.dateValue=$$v},expression:"dateValue"}}):_vm._e(),(_vm.type != 'time' && _vm.type != 'quarter')?_c('el-date-picker',{ref:"datePicker",attrs:{"type":_vm.type,"readonly":_vm.readonly,"disabled":_vm.disabled,"editable":_vm.editable,"clearable":_vm.clearable,"placeholder":_vm.placeholder,"align":_vm.align,"format":_vm.format,"popper-class":_vm.popperClass,"default-value":_vm.defaultValue,"name":_vm.name,"prefix-icon":_vm.prefixIcon,"clear-icon":_vm.clearIcon,"value-format":_vm.valueFormat},on:{"change":_vm.changeValue,"blur":function($event){return _vm.$emit('blur', _vm.dateValue)},"focus":function($event){return _vm.$emit('focus', _vm.dateValue)}},model:{value:(_vm.dateValue),callback:function ($$v) {_vm.dateValue=$$v},expression:"dateValue"}}):_vm._e(),(_vm.type == 'quarter')?_c('div',[_c('span',[_vm._v("季度")])]):_vm._e()],1)}
|
|
33802
|
+
var mainvue_type_template_id_4ebcae5a_staticRenderFns = []
|
|
33833
33803
|
|
|
33834
33804
|
|
|
33835
|
-
// CONCATENATED MODULE: ./packages/datePicker/src/main.vue?vue&type=template&id=
|
|
33805
|
+
// CONCATENATED MODULE: ./packages/datePicker/src/main.vue?vue&type=template&id=4ebcae5a&
|
|
33836
33806
|
|
|
33837
33807
|
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/datePicker/src/main.vue?vue&type=script&lang=js&
|
|
33838
33808
|
//
|
|
@@ -33893,9 +33863,6 @@ var mainvue_type_template_id_1dad9dac_staticRenderFns = []
|
|
|
33893
33863
|
//
|
|
33894
33864
|
//
|
|
33895
33865
|
//
|
|
33896
|
-
//
|
|
33897
|
-
//
|
|
33898
|
-
//
|
|
33899
33866
|
|
|
33900
33867
|
// type
|
|
33901
33868
|
// 年 year
|
|
@@ -33909,54 +33876,52 @@ var mainvue_type_template_id_1dad9dac_staticRenderFns = []
|
|
|
33909
33876
|
// 季度 quarter ------- 手写
|
|
33910
33877
|
|
|
33911
33878
|
/* harmony default export */ var datePicker_src_mainvue_type_script_lang_js_ = ({
|
|
33912
|
-
|
|
33913
|
-
|
|
33914
|
-
|
|
33915
|
-
|
|
33916
|
-
},
|
|
33917
|
-
props: {
|
|
33918
|
-
type: {
|
|
33919
|
-
type: String,
|
|
33920
|
-
default: "date"
|
|
33879
|
+
name:'SoneDatePicker',
|
|
33880
|
+
model:{
|
|
33881
|
+
prop:'value',
|
|
33882
|
+
event:'changeVal'
|
|
33921
33883
|
},
|
|
33922
|
-
|
|
33923
|
-
|
|
33884
|
+
props:{
|
|
33885
|
+
type:{
|
|
33886
|
+
type:String,
|
|
33887
|
+
default:'date'
|
|
33888
|
+
},
|
|
33889
|
+
value:{
|
|
33890
|
+
type: [String, Date]
|
|
33891
|
+
},
|
|
33892
|
+
readonly:{ type:Boolean, default:false },
|
|
33893
|
+
disabled:{ type:Boolean, default:false },
|
|
33894
|
+
editable:{ type:Boolean, default:true },
|
|
33895
|
+
clearable:{ type:Boolean, default:true },
|
|
33896
|
+
placeholder:{ type:String, default:'选择日期' },
|
|
33897
|
+
align:{ type:String, default:'left' },
|
|
33898
|
+
format:{ type:String, default:'' },
|
|
33899
|
+
popperClass:{ type:String, default:'' },
|
|
33900
|
+
defaultValue:{ type:Date },
|
|
33901
|
+
name:{ type:String, default:'' },
|
|
33902
|
+
prefixIcon:{ type:String, default:'el-icon-date' },
|
|
33903
|
+
clearIcon:{ type:String, default:'el-icon-circle-close' },
|
|
33904
|
+
valueFormat:{ type:String, default:''}
|
|
33924
33905
|
},
|
|
33925
|
-
|
|
33926
|
-
|
|
33927
|
-
|
|
33928
|
-
|
|
33929
|
-
|
|
33930
|
-
|
|
33931
|
-
|
|
33932
|
-
|
|
33933
|
-
|
|
33934
|
-
|
|
33935
|
-
|
|
33936
|
-
|
|
33937
|
-
|
|
33938
|
-
|
|
33939
|
-
|
|
33940
|
-
|
|
33941
|
-
|
|
33942
|
-
|
|
33943
|
-
|
|
33944
|
-
};
|
|
33945
|
-
},
|
|
33946
|
-
watch: {
|
|
33947
|
-
value(newVal) {
|
|
33948
|
-
this.dateValue = newVal;
|
|
33949
|
-
}
|
|
33950
|
-
},
|
|
33951
|
-
methods: {
|
|
33952
|
-
changeValue(val) {
|
|
33953
|
-
this.$emit("changeVal", val);
|
|
33954
|
-
this.$emit("change", val);
|
|
33955
|
-
}
|
|
33956
|
-
}
|
|
33957
|
-
// mounted() {
|
|
33958
|
-
// this.$refs.datePicker.focus()
|
|
33959
|
-
// },
|
|
33906
|
+
data() {
|
|
33907
|
+
return {
|
|
33908
|
+
dateValue:this.value
|
|
33909
|
+
}
|
|
33910
|
+
},
|
|
33911
|
+
watch:{
|
|
33912
|
+
value(newVal) {
|
|
33913
|
+
this.dateValue = newVal
|
|
33914
|
+
},
|
|
33915
|
+
},
|
|
33916
|
+
methods:{
|
|
33917
|
+
changeValue(val) {
|
|
33918
|
+
this.$emit('changeVal',val)
|
|
33919
|
+
this.$emit('change', val)
|
|
33920
|
+
},
|
|
33921
|
+
},
|
|
33922
|
+
// mounted() {
|
|
33923
|
+
// this.$refs.datePicker.focus()
|
|
33924
|
+
// },
|
|
33960
33925
|
});
|
|
33961
33926
|
|
|
33962
33927
|
// CONCATENATED MODULE: ./packages/datePicker/src/main.vue?vue&type=script&lang=js&
|
|
@@ -33971,8 +33936,8 @@ var mainvue_type_template_id_1dad9dac_staticRenderFns = []
|
|
|
33971
33936
|
|
|
33972
33937
|
var datePicker_src_main_component = normalizeComponent(
|
|
33973
33938
|
packages_datePicker_src_mainvue_type_script_lang_js_,
|
|
33974
|
-
|
|
33975
|
-
|
|
33939
|
+
mainvue_type_template_id_4ebcae5a_render,
|
|
33940
|
+
mainvue_type_template_id_4ebcae5a_staticRenderFns,
|
|
33976
33941
|
false,
|
|
33977
33942
|
null,
|
|
33978
33943
|
null,
|
|
@@ -33995,7 +33960,7 @@ datePicker_src_main.install = function(Vue) {
|
|
|
33995
33960
|
};
|
|
33996
33961
|
|
|
33997
33962
|
/* harmony default export */ var datePicker = (datePicker_src_main);
|
|
33998
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
33963
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"b390af64-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/datePickerRange/src/main.vue?vue&type=template&id=721710b4&
|
|
33999
33964
|
var mainvue_type_template_id_721710b4_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[(_vm.type === 'time')?_c('el-time-picker',{staticClass:"sone-component-date-pick-range",attrs:{"is-range":"","type":"time","readonly":_vm.readonly,"disabled":_vm.disabled,"editable":_vm.editable,"clearable":_vm.clearable,"placeholder":_vm.placeholder,"start-placeholder":_vm.startPlaceholder,"end-placeholder":_vm.endPlaceholder,"range-separator":_vm.rangeSeparator,"align":_vm.align,"format":_vm.format,"popper-class":_vm.popperClass,"default-value":_vm.defaultValue,"name":_vm.name,"prefix-icon":_vm.prefixIcon,"clear-icon":_vm.clearIcon,"value-format":_vm.valueFormat},on:{"change":_vm.changeValue,"blur":function($event){return _vm.$emit('blur', _vm.dateValue)},"focus":function($event){return _vm.$emit('focus', _vm.dateValue)}},model:{value:(_vm.dateValue),callback:function ($$v) {_vm.dateValue=$$v},expression:"dateValue"}}):_vm._e(),(_vm.type != 'time' && _vm.type != 'quarter')?_c('el-date-picker',{ref:"datePicker",staticClass:"sone-component-date-pick-range",attrs:{"type":(_vm.type + "range"),"readonly":_vm.readonly,"disabled":_vm.disabled,"editable":_vm.editable,"clearable":_vm.clearable,"placeholder":_vm.placeholder,"start-placeholder":_vm.startPlaceholder,"end-placeholder":_vm.endPlaceholder,"range-separator":_vm.rangeSeparator,"default-time":_vm.defaultTime,"unlink-panels":_vm.unlinkPanels,"align":_vm.align,"format":_vm.format,"popper-class":_vm.popperClass,"default-value":_vm.defaultValue,"name":_vm.name,"prefix-icon":_vm.prefixIcon,"clear-icon":_vm.clearIcon,"value-format":_vm.valueFormat},on:{"change":_vm.changeValue,"blur":function($event){return _vm.$emit('blur', _vm.dateValue)},"focus":function($event){return _vm.$emit('focus', _vm.dateValue)}},model:{value:(_vm.dateValue),callback:function ($$v) {_vm.dateValue=$$v},expression:"dateValue"}}):_vm._e(),(_vm.type === 'quarter')?_c('div',[_c('span',[_vm._v("季度")])]):_vm._e()],1)}
|
|
34000
33965
|
var mainvue_type_template_id_721710b4_staticRenderFns = []
|
|
34001
33966
|
|
|
@@ -34183,12 +34148,12 @@ datePickerRange_src_main.install = function(Vue) {
|
|
|
34183
34148
|
};
|
|
34184
34149
|
|
|
34185
34150
|
/* harmony default export */ var datePickerRange = (datePickerRange_src_main);
|
|
34186
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
34187
|
-
var
|
|
34188
|
-
var
|
|
34151
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"b390af64-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/editor/src/main.vue?vue&type=template&id=e539e95e&scoped=true&
|
|
34152
|
+
var mainvue_type_template_id_e539e95e_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('div',{ref:"editor"})])}
|
|
34153
|
+
var mainvue_type_template_id_e539e95e_scoped_true_staticRenderFns = []
|
|
34189
34154
|
|
|
34190
34155
|
|
|
34191
|
-
// CONCATENATED MODULE: ./packages/editor/src/main.vue?vue&type=template&id=
|
|
34156
|
+
// CONCATENATED MODULE: ./packages/editor/src/main.vue?vue&type=template&id=e539e95e&scoped=true&
|
|
34192
34157
|
|
|
34193
34158
|
// EXTERNAL MODULE: ./node_modules/wangeditor/dist/wangEditor.js
|
|
34194
34159
|
var wangEditor = __webpack_require__("6fad");
|
|
@@ -34214,20 +34179,20 @@ var wangEditor_default = /*#__PURE__*/__webpack_require__.n(wangEditor);
|
|
|
34214
34179
|
name: "SoneEditor",
|
|
34215
34180
|
components: {},
|
|
34216
34181
|
props: {
|
|
34217
|
-
zindex:
|
|
34218
|
-
type:
|
|
34219
|
-
default:
|
|
34220
|
-
remark:
|
|
34182
|
+
zindex:{
|
|
34183
|
+
type:Number,
|
|
34184
|
+
default:10000,
|
|
34185
|
+
remark:'富文本层级'
|
|
34221
34186
|
},
|
|
34222
34187
|
disabled: {
|
|
34223
34188
|
type: Boolean,
|
|
34224
34189
|
default: false,
|
|
34225
34190
|
remark: "是否可编辑",
|
|
34226
34191
|
},
|
|
34227
|
-
content:
|
|
34228
|
-
type:
|
|
34229
|
-
default:
|
|
34230
|
-
remark:
|
|
34192
|
+
content:{
|
|
34193
|
+
type:String,
|
|
34194
|
+
default:"",
|
|
34195
|
+
remark:"富文本的内容"
|
|
34231
34196
|
},
|
|
34232
34197
|
isVideo: {
|
|
34233
34198
|
type: Boolean,
|
|
@@ -34298,7 +34263,6 @@ var wangEditor_default = /*#__PURE__*/__webpack_require__.n(wangEditor);
|
|
|
34298
34263
|
data() {
|
|
34299
34264
|
return {
|
|
34300
34265
|
editor: null,
|
|
34301
|
-
allImgUrl: [],
|
|
34302
34266
|
};
|
|
34303
34267
|
},
|
|
34304
34268
|
mounted() {
|
|
@@ -34319,12 +34283,7 @@ var wangEditor_default = /*#__PURE__*/__webpack_require__.n(wangEditor);
|
|
|
34319
34283
|
// console.log("newV---disabled", newV);
|
|
34320
34284
|
if (newV) {
|
|
34321
34285
|
this.$nextTick(() => {
|
|
34322
|
-
|
|
34323
|
-
this.editor.disable();
|
|
34324
|
-
});
|
|
34325
|
-
} else {
|
|
34326
|
-
this.$nextTick(() => {
|
|
34327
|
-
this.editor.enable();
|
|
34286
|
+
this.editor.$textElem.attr("contenteditable", false);
|
|
34328
34287
|
});
|
|
34329
34288
|
}
|
|
34330
34289
|
},
|
|
@@ -34380,7 +34339,7 @@ var wangEditor_default = /*#__PURE__*/__webpack_require__.n(wangEditor);
|
|
|
34380
34339
|
// 4.配置 onchange 回调函数,将数据同步到 vue 中
|
|
34381
34340
|
this.editor.config.onchange = (newHtml) => {
|
|
34382
34341
|
this.$emit("change", this.content);
|
|
34383
|
-
this.$emit(
|
|
34342
|
+
this.$emit('update:content',newHtml);
|
|
34384
34343
|
};
|
|
34385
34344
|
|
|
34386
34345
|
// 6.消息提示框
|
|
@@ -34464,7 +34423,7 @@ var wangEditor_default = /*#__PURE__*/__webpack_require__.n(wangEditor);
|
|
|
34464
34423
|
customInsert: function (insertImgFn, result) {
|
|
34465
34424
|
// result 即服务端返回的接口
|
|
34466
34425
|
console.log("customInsert", result);
|
|
34467
|
-
|
|
34426
|
+
|
|
34468
34427
|
// insertImgFn 可把图片插入到编辑器,传入图片 src ,执行函数即可
|
|
34469
34428
|
insertImgFn(result.data[0]);
|
|
34470
34429
|
},
|
|
@@ -34522,22 +34481,6 @@ var wangEditor_default = /*#__PURE__*/__webpack_require__.n(wangEditor);
|
|
|
34522
34481
|
|
|
34523
34482
|
this.editor.create();
|
|
34524
34483
|
},
|
|
34525
|
-
deleteImg() {
|
|
34526
|
-
let imgList =
|
|
34527
|
-
document
|
|
34528
|
-
.getElementById(this.editor.textElemId)
|
|
34529
|
-
.getElementsByTagName("img") || [];
|
|
34530
|
-
let arr = [];
|
|
34531
|
-
for (let index = 0; index < imgList.length; index++) {
|
|
34532
|
-
arr.push(imgList[index].getAttribute("src"));
|
|
34533
|
-
}
|
|
34534
|
-
this.allImgUrl.forEach((v, i) => {
|
|
34535
|
-
if (arr.includes(v)) {
|
|
34536
|
-
this.allImgUrl.splice(i, 1);
|
|
34537
|
-
}
|
|
34538
|
-
});
|
|
34539
|
-
return this.allImgUrl;
|
|
34540
|
-
},
|
|
34541
34484
|
},
|
|
34542
34485
|
beforeDestroy() {
|
|
34543
34486
|
// 调用销毁 API 对当前编辑器实例进行销毁
|
|
@@ -34548,8 +34491,8 @@ var wangEditor_default = /*#__PURE__*/__webpack_require__.n(wangEditor);
|
|
|
34548
34491
|
|
|
34549
34492
|
// CONCATENATED MODULE: ./packages/editor/src/main.vue?vue&type=script&lang=js&
|
|
34550
34493
|
/* harmony default export */ var packages_editor_src_mainvue_type_script_lang_js_ = (editor_src_mainvue_type_script_lang_js_);
|
|
34551
|
-
// EXTERNAL MODULE: ./packages/editor/src/main.vue?vue&type=style&index=0&id=
|
|
34552
|
-
var
|
|
34494
|
+
// EXTERNAL MODULE: ./packages/editor/src/main.vue?vue&type=style&index=0&id=e539e95e&lang=scss&scoped=true&
|
|
34495
|
+
var mainvue_type_style_index_0_id_e539e95e_lang_scss_scoped_true_ = __webpack_require__("3ac7");
|
|
34553
34496
|
|
|
34554
34497
|
// CONCATENATED MODULE: ./packages/editor/src/main.vue
|
|
34555
34498
|
|
|
@@ -34562,11 +34505,11 @@ var mainvue_type_style_index_0_id_8d5dbf8c_lang_scss_scoped_true_ = __webpack_re
|
|
|
34562
34505
|
|
|
34563
34506
|
var editor_src_main_component = normalizeComponent(
|
|
34564
34507
|
packages_editor_src_mainvue_type_script_lang_js_,
|
|
34565
|
-
|
|
34566
|
-
|
|
34508
|
+
mainvue_type_template_id_e539e95e_scoped_true_render,
|
|
34509
|
+
mainvue_type_template_id_e539e95e_scoped_true_staticRenderFns,
|
|
34567
34510
|
false,
|
|
34568
34511
|
null,
|
|
34569
|
-
"
|
|
34512
|
+
"e539e95e",
|
|
34570
34513
|
null
|
|
34571
34514
|
|
|
34572
34515
|
)
|
|
@@ -34580,8 +34523,8 @@ editor_src_main.install = function(Vue) {
|
|
|
34580
34523
|
};
|
|
34581
34524
|
|
|
34582
34525
|
/* harmony default export */ var editor = (editor_src_main);
|
|
34583
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
34584
|
-
var
|
|
34526
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"b390af64-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/inputNumber/src/main.vue?vue&type=template&id=0563e913&
|
|
34527
|
+
var mainvue_type_template_id_0563e913_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{class:[
|
|
34585
34528
|
'sone-input-number',
|
|
34586
34529
|
'el-input-number',
|
|
34587
34530
|
_vm.inputNumberSize ? 'el-input-number--' + _vm.inputNumberSize : '',
|
|
@@ -34589,12 +34532,12 @@ var mainvue_type_template_id_5b5680fd_render = function () {var _vm=this;var _h=
|
|
|
34589
34532
|
{ 'is-without-controls': !_vm.controls },
|
|
34590
34533
|
{ 'is-controls-right': _vm.controlsAtRight }
|
|
34591
34534
|
],on:{"dragstart":function($event){$event.preventDefault();}}},[(_vm.controls)?_c('span',{directives:[{name:"repeat-click",rawName:"v-repeat-click",value:(_vm.decrease),expression:"decrease"}],staticClass:"el-input-number__decrease",class:{ 'is-disabled': _vm.minDisabled },attrs:{"role":"button"},on:{"keydown":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"enter",13,$event.key,"Enter")){ return null; }return _vm.decrease.apply(null, arguments)}}},[_c('i',{class:("el-icon-" + (_vm.controlsAtRight ? 'arrow-down' : 'minus'))})]):_vm._e(),(_vm.controls)?_c('span',{directives:[{name:"repeat-click",rawName:"v-repeat-click",value:(_vm.increase),expression:"increase"}],staticClass:"el-input-number__increase",class:{ 'is-disabled': _vm.maxDisabled },attrs:{"role":"button"},on:{"keydown":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"enter",13,$event.key,"Enter")){ return null; }return _vm.increase.apply(null, arguments)}}},[_c('i',{class:("el-icon-" + (_vm.controlsAtRight ? 'arrow-up' : 'plus'))})]):_vm._e(),_c('el-input',{ref:"input",class:['sone-number-ctl', _vm.controls ? 'has-ctls' : ''],attrs:{"value":_vm.displayValue,"placeholder":_vm.placeholder,"disabled":_vm.inputNumberDisabled,"size":_vm.inputNumberSize,"clearable":_vm.clearable,"max":_vm.max,"min":_vm.min,"name":_vm.name,"label":_vm.label},on:{"blur":_vm.handleBlur,"focus":_vm.handleFocus,"input":_vm.handleInput,"change":_vm.handleInputChange},nativeOn:{"keydown":[function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"up",38,$event.key,["Up","ArrowUp"])){ return null; }$event.preventDefault();return _vm.handleIncrease.apply(null, arguments)},function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"down",40,$event.key,["Down","ArrowDown"])){ return null; }$event.preventDefault();return _vm.handleDecrease.apply(null, arguments)}]}})],1)}
|
|
34592
|
-
var
|
|
34535
|
+
var mainvue_type_template_id_0563e913_staticRenderFns = []
|
|
34593
34536
|
|
|
34594
34537
|
|
|
34595
|
-
// CONCATENATED MODULE: ./packages/inputNumber/src/main.vue?vue&type=template&id=
|
|
34538
|
+
// CONCATENATED MODULE: ./packages/inputNumber/src/main.vue?vue&type=template&id=0563e913&
|
|
34596
34539
|
|
|
34597
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
34540
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"b390af64-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!./node_modules/element-ui/packages/input/src/input.vue?vue&type=template&id=7c3edccd&
|
|
34598
34541
|
var inputvue_type_template_id_7c3edccd_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{class:[
|
|
34599
34542
|
_vm.type === 'textarea' ? 'el-textarea' : 'el-input',
|
|
34600
34543
|
_vm.inputSize ? 'el-input--' + _vm.inputSize : '',
|
|
@@ -36180,15 +36123,6 @@ const isInContainer = (el, container) => {
|
|
|
36180
36123
|
this.currentValue = newVal;
|
|
36181
36124
|
},
|
|
36182
36125
|
handleInput(value) {
|
|
36183
|
-
if(typeof this.precision === 'number' && value.indexOf('.') !== -1){
|
|
36184
|
-
let num = value.split('.');
|
|
36185
|
-
let digits = num[1];
|
|
36186
|
-
if(digits.length > this.precision){
|
|
36187
|
-
num[1] = digits.slice(0, this.precision)
|
|
36188
|
-
this.userInput = num.join('.');
|
|
36189
|
-
return;
|
|
36190
|
-
}
|
|
36191
|
-
}
|
|
36192
36126
|
this.userInput = value;
|
|
36193
36127
|
},
|
|
36194
36128
|
handleInputChange(value) {
|
|
@@ -36244,8 +36178,8 @@ const isInContainer = (el, container) => {
|
|
|
36244
36178
|
|
|
36245
36179
|
var inputNumber_src_main_component = normalizeComponent(
|
|
36246
36180
|
packages_inputNumber_src_mainvue_type_script_lang_js_,
|
|
36247
|
-
|
|
36248
|
-
|
|
36181
|
+
mainvue_type_template_id_0563e913_render,
|
|
36182
|
+
mainvue_type_template_id_0563e913_staticRenderFns,
|
|
36249
36183
|
false,
|
|
36250
36184
|
null,
|
|
36251
36185
|
null,
|
|
@@ -36263,7 +36197,7 @@ inputNumber_src_main.install = function(Vue) {
|
|
|
36263
36197
|
|
|
36264
36198
|
/* harmony default export */ var inputNumber = (inputNumber_src_main);
|
|
36265
36199
|
|
|
36266
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
36200
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"b390af64-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/cascader/src/main.vue?vue&type=template&id=388a2e64&
|
|
36267
36201
|
var mainvue_type_template_id_388a2e64_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('el-cascader',{ref:"sone-cascader",attrs:{"placeholder":_vm.placeholder,"options":_vm.options,"size":_vm.size,"disabled":_vm.disabled,"props":_vm.cascaderProps,"clearable":_vm.clearable,"filterable":_vm.filterable,"show-all-levels":_vm.showAllLevels,"collapse-tags":_vm.collapseTags,"separator":_vm.separator,"debounce":_vm.debounce,"popper-class":_vm.popperClass,"before-filter":_vm.beforeFilter,"filter-method":_vm.filterMethod},on:{"change":_vm.handleChange,"blur":function (e) { return _vm.$emit('blur', e); },"focus":function (e) { return _vm.$emit('focus', e); },"expand-change":function (e) { return _vm.$emit('expand-change', e); },"visible-change":function (e) { return _vm.$emit('visible-change', e); },"remove-tag":function (e) { return _vm.$emit('remove-tag', e); }},model:{value:(_vm.currentVal),callback:function ($$v) {_vm.currentVal=$$v},expression:"currentVal"}})],1)}
|
|
36268
36202
|
var mainvue_type_template_id_388a2e64_staticRenderFns = []
|
|
36269
36203
|
|
|
@@ -36394,7 +36328,7 @@ cascader_src_main.install = function(Vue) {
|
|
|
36394
36328
|
};
|
|
36395
36329
|
|
|
36396
36330
|
/* harmony default export */ var cascader = (cascader_src_main);
|
|
36397
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
36331
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"b390af64-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/autocomplete/src/main.vue?vue&type=template&id=4d1db345&
|
|
36398
36332
|
var mainvue_type_template_id_4d1db345_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('el-autocomplete',{attrs:{"fetch-suggestions":_vm.querySearch,"placeholder":_vm.placeholder},on:{"select":_vm.handleSelect,"change":function (row) { return _vm.$emit('change', row); }},model:{value:(_vm.currentVal),callback:function ($$v) {_vm.currentVal=$$v},expression:"currentVal"}})],1)}
|
|
36399
36333
|
var mainvue_type_template_id_4d1db345_staticRenderFns = []
|
|
36400
36334
|
|
|
@@ -36481,7 +36415,7 @@ autocomplete_src_main.install = function(Vue) {
|
|
|
36481
36415
|
};
|
|
36482
36416
|
|
|
36483
36417
|
/* harmony default export */ var autocomplete = (autocomplete_src_main);
|
|
36484
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
36418
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"b390af64-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/fileUpload/src/main.vue?vue&type=template&id=372fe109&
|
|
36485
36419
|
var mainvue_type_template_id_372fe109_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"sone-file-upload-box",class:{ 'sone-upload-box-full': _vm.type === 'img', 'sone-upload-disabled': _vm.disabled }},[(!_vm.readonly)?_c('el-upload',{attrs:{"action":"","show-file-list":false,"accept":_vm.acceptType,"multiple":_vm.multiple,"drag":_vm.type === 'img',"disabled":_vm.disabled,"before-upload":_vm.beforeUpload,"http-request":_vm.httpRequest}},[(_vm.type !== 'img')?_c('icon-button',{ref:"uploadBtn",staticClass:"sone-upload-btn",attrs:{"tooltipDisabled":_vm.tooltipDisabled,"enterable":false,"content":"上传","placement":"top","disabled":_vm.disabled,"icon":_vm.uploadIcon,"iconfont":false}}):_vm._e(),(_vm.type === 'img')?_c('div',{staticClass:"sone-upload-drag"},[_c('el-tooltip',{attrs:{"enterable":false,"content":"上传","placement":"top"}},[_c('i',{class:_vm.uploadIcon})]),_c('div',{staticClass:"el-upload__text"},[_vm._v("将文件拖到此处,或"),_c('em',[_vm._v("点击上传")])])],1):_vm._e()],1):_vm._e(),(!_vm.readonly)?_c('div',{staticClass:"sone-upload-placeholder"},[_vm._v(_vm._s(_vm.placeholder))]):_vm._e(),(!_vm.multiple && _vm.fileList && Object.keys(_vm.fileList).length != 0)?_c('div',{staticClass:"sone-upload-file"},[_c('div',{staticClass:"sone-upload-file-box"},[_c('el-tooltip',{attrs:{"enterable":false,"content":_vm.fileList.name,"placement":"top"}},[_c('span',{staticClass:"sone-upload-file-name",attrs:{"title":_vm.fileList.name},on:{"click":function($event){return _vm.clickName(_vm.fileList)}}},[_vm._v(" "+_vm._s(_vm.fileList.name)+"("+_vm._s(_vm.getFileMb(_vm.fileList.size))+"MB) ")])]),_c('div',[_c('el-tooltip',{attrs:{"enterable":false,"content":"查看","placement":"top"}},[_c('i',{staticClass:"sone-upload-file-download el-icon-view",attrs:{"title":"查看"},on:{"click":function($event){!_vm.disabled && _vm.see(_vm.fileList)}}})]),_c('el-tooltip',{attrs:{"enterable":false,"content":"下载","placement":"top"}},[_c('i',{staticClass:"sone-upload-file-download el-icon-download",attrs:{"title":"下载"},on:{"click":function($event){!_vm.disabled && _vm.download(_vm.fileList)}}})]),_c('el-tooltip',{attrs:{"enterable":false,"content":"删除","placement":"top"}},[_c('i',{staticClass:"sone-upload-file-del el-icon-circle-close",attrs:{"title":"删除"},on:{"click":function($event){!_vm.disabled && _vm.del(_vm.fileList)}}})])],1)],1)]):_vm._e(),(_vm.multiple && _vm.fileList.length != 0)?_c('div',{staticClass:"sone-upload-file"},_vm._l((_vm.fileList),function(item,index){return _c('div',{key:index,staticClass:"sone-upload-file-box"},[_c('el-tooltip',{attrs:{"enterable":false,"content":item.name,"placement":"top"}},[_c('span',{staticClass:"sone-upload-file-name",attrs:{"title":item.name},on:{"click":function($event){return _vm.clickName(item)}}},[_vm._v(" "+_vm._s(item.name)+"("+_vm._s(_vm.getFileMb(item.size))+"MB) ")])]),_c('div',[_c('el-tooltip',{attrs:{"enterable":false,"content":"查看","placement":"top"}},[_c('i',{staticClass:"sone-upload-file-download el-icon-view",attrs:{"title":"查看"},on:{"click":function($event){!_vm.disabled && _vm.see(item)}}})]),_c('el-tooltip',{attrs:{"enterable":false,"content":"下载","placement":"top"}},[_c('i',{staticClass:"sone-upload-file-download el-icon-download",attrs:{"title":"下载"},on:{"click":function($event){!_vm.disabled && _vm.download(item)}}})]),_c('el-tooltip',{attrs:{"enterable":false,"content":"删除","placement":"top"}},[_c('i',{staticClass:"sone-upload-file-del el-icon-circle-close",attrs:{"title":"删除"},on:{"click":function($event){!_vm.disabled && _vm.del(item)}}})])],1)],1)}),0):_vm._e(),(_vm.readonly && !_vm.fileList)?_c('div',[_vm._v(" -- ")]):_vm._e()],1)}
|
|
36486
36420
|
var mainvue_type_template_id_372fe109_staticRenderFns = []
|
|
36487
36421
|
|
|
@@ -36964,7 +36898,7 @@ if (typeof window !== 'undefined' && window.Vue) {
|
|
|
36964
36898
|
}
|
|
36965
36899
|
|
|
36966
36900
|
/* harmony default export */ var src_0 = ({
|
|
36967
|
-
version: '
|
|
36901
|
+
version: '1.0.249',
|
|
36968
36902
|
locale: locale.use,
|
|
36969
36903
|
i18n: locale.i18n,
|
|
36970
36904
|
install,
|