hc-basic 1.6.6 → 1.6.8
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/hc-basic.common.js +10 -9
- package/lib/hc-basic.umd.js +10 -9
- package/lib/hc-basic.umd.min.js +1 -1
- package/package.json +1 -1
package/lib/hc-basic.common.js
CHANGED
|
@@ -81285,7 +81285,9 @@ var cjs_default = /*#__PURE__*/__webpack_require__.n(cjs);
|
|
|
81285
81285
|
}
|
|
81286
81286
|
},
|
|
81287
81287
|
directives: {
|
|
81288
|
-
copy: {
|
|
81288
|
+
copy: {
|
|
81289
|
+
info: '复制成功'
|
|
81290
|
+
},
|
|
81289
81291
|
errImg: {
|
|
81290
81292
|
avatarErr: 'https://ocj-erp-frontendonline.oss-cn-shanghai.aliyuncs.com/img/avator.png', // 头像错误图片
|
|
81291
81293
|
showErr: 'https://ocj-erp-frontendonline.oss-cn-shanghai.aliyuncs.com/img/nofound.png', // 展示错误图片
|
|
@@ -82888,13 +82890,13 @@ var tab_component = normalizeComponent(
|
|
|
82888
82890
|
// CONCATENATED MODULE: ./packages/components/tab/index.js
|
|
82889
82891
|
|
|
82890
82892
|
|
|
82891
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"3165804a-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/components/table/index.vue?vue&type=template&id=
|
|
82892
|
-
var
|
|
82893
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"3165804a-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/components/table/index.vue?vue&type=template&id=71c37c33&
|
|
82894
|
+
var tablevue_type_template_id_71c37c33_render = function render(){var _vm=this,_c=_vm._self._c;return _c('el-table',_vm._g(_vm._b({directives:[{name:"watermark",rawName:"v-watermark",value:({ title: _vm.$Config.directives.watermark.title, subTitle: _vm.$Config.directives.watermark.subTitle }),expression:"{ title: $Config.directives.watermark.title, subTitle: $Config.directives.watermark.subTitle }"}],ref:"multipleTable",staticClass:"hcTable",staticStyle:{"width":"100%"},attrs:{"data":_vm.tableData,"cell-class-name":_vm.cellConfigSet},on:{"select":_vm.$comSelect,"select-all":_vm.$comSelect},scopedSlots:_vm._u([{key:"empty",fn:function(){return [_c('img',{staticClass:"my-24",attrs:{"src":_vm.$Config.Components.table.noData,"alt":""}})]},proxy:true}])},'el-table',_vm.$attrs,false),_vm.$listeners),[(_vm.checkbox)?_c('el-table-column',{attrs:{"fixed":_vm.showFixed,"reserve-selection":_vm.reserveSelection,"type":"selection","width":"44"}}):_vm._e(),(_vm.expand)?_c('el-table-column',{attrs:{"fixed":_vm.showFixed,"type":"expand","width":"44"},scopedSlots:_vm._u([{key:"default",fn:function(scope){return [_vm._t("expand",null,null,scope)]}}],null,true)}):_vm._e(),_vm._l((_vm.column),function(item,index){return _c('el-table-column',_vm._b({key:'hctable' + index,class:item.code,attrs:{"formatter":item.code ? _vm.setFormatData(item) : item.formatter,"fixed":_vm.showFixed && item.fixed,"show-overflow-tooltip":!item['hidden-overflow-tooltip']},scopedSlots:_vm._u([(_vm.isShowHeader(item.prop))?{key:"header",fn:function(scope){return [_vm._t(item.prop + 'Header',null,null,scope)]}}:null,(_vm.isShowSlots(item.prop))?{key:"default",fn:function(scope){return [(item.image)?_c('hc-dialog',{attrs:{"out-close":_vm.outClose,"close-on-click-modal":"","title":"","width":_vm.$Config.Components.table.imgDialogWidth}},[_c('img',{directives:[{name:"errImg",rawName:"v-errImg",value:({ empty: false }),expression:"{ empty: false }"}],staticClass:"hc-table-slot-image",style:({ width: item.imgWidth || _vm.$Config.Components.table.imgWidth, height: item.imgHeight || _vm.$Config.Components.table.imgHeight }),attrs:{"src":scope.row[item.prop],"alt":item.label}}),_c('img',{directives:[{name:"errImg",rawName:"v-errImg"}],staticClass:"hc-table-slot-dialog-image",attrs:{"slot":"contain","src":scope.row[item.prop],"alt":""},slot:"contain"})]):(item.copy)?_c('div',{directives:[{name:"copy",rawName:"v-copy",value:([scope.row[item.prop]]),expression:"[scope.row[item.prop]]"}]},[_vm._v(" "+_vm._s(scope.row[item.prop])+" ")]):_vm._t(item.prop,null,null,scope)]}}:null],null,true)},'el-table-column',{ ...item },false),_vm._l((item.children),function(items,indexs){return (item.children)?_c('childTable',{key:'otables' + indexs,attrs:{"data":items,"show-slots":_vm.showSlots},scopedSlots:_vm._u([_vm._l((_vm.showSlots),function(slotName,slotIndex){return {key:slotName,fn:function(scope){return [_c('div',{key:slotIndex + 'slotName'},[_vm._t(slotName,null,null,scope)],2)]}}})],null,true)}):_vm._e()}),1)}),(_vm.operationWidth !== 'auto')?_c('el-table-column',{attrs:{"fixed":_vm.showFixed ? 'right' : false,"label":_vm.$Config.Components.table.optionLabel,"width":_vm.operationWidth},scopedSlots:_vm._u([{key:"default",fn:function(scope){return [_vm._t("default",null,null,scope)]}}],null,true)}):_vm._e()],2)
|
|
82893
82895
|
}
|
|
82894
|
-
var
|
|
82896
|
+
var tablevue_type_template_id_71c37c33_staticRenderFns = []
|
|
82895
82897
|
|
|
82896
82898
|
|
|
82897
|
-
// CONCATENATED MODULE: ./packages/components/table/index.vue?vue&type=template&id=
|
|
82899
|
+
// CONCATENATED MODULE: ./packages/components/table/index.vue?vue&type=template&id=71c37c33&
|
|
82898
82900
|
|
|
82899
82901
|
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"3165804a-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/components/table/childTable/index.vue?vue&type=template&id=0587b934&
|
|
82900
82902
|
var childTablevue_type_template_id_0587b934_render = function render(){var _vm=this,_c=_vm._self._c;return _c('el-table-column',_vm._b({attrs:{"show-overflow-tooltip":!_vm.data['hidden-overflow-tooltip']},scopedSlots:_vm._u([(_vm.showSlots.includes(_vm.data.prop))?{key:"default",fn:function(scope){return [_vm._t(_vm.data.prop,null,null,scope)]}}:null],null,true)},'el-table-column',{ ..._vm.data },false),_vm._l((_vm.data.children),function(item,index){return (_vm.data.children)?_c('childTable',{key:'otables' + index,attrs:{"data":item,"show-slots":_vm.showSlots},scopedSlots:_vm._u([_vm._l((_vm.showSlots),function(slotName,slotIndex){return {key:slotName,fn:function(scope){return [_c('div',{key:slotIndex + 'slotName'},[_vm._t(slotName,null,null,scope)],2)]}}})],null,true)}):_vm._e()}),1)
|
|
@@ -83076,8 +83078,8 @@ var childTable_component = normalizeComponent(
|
|
|
83076
83078
|
|
|
83077
83079
|
var table_component = normalizeComponent(
|
|
83078
83080
|
components_tablevue_type_script_lang_js_,
|
|
83079
|
-
|
|
83080
|
-
|
|
83081
|
+
tablevue_type_template_id_71c37c33_render,
|
|
83082
|
+
tablevue_type_template_id_71c37c33_staticRenderFns,
|
|
83081
83083
|
false,
|
|
83082
83084
|
null,
|
|
83083
83085
|
null,
|
|
@@ -84330,7 +84332,6 @@ const copy = val => {
|
|
|
84330
84332
|
bind(el, { value }) {
|
|
84331
84333
|
el.$value = value; // 用一个全局属性来存传进来的值,因为这个值在别的钩子函数里还会用到
|
|
84332
84334
|
el.handler = () => {
|
|
84333
|
-
console.log(value, 'copy');
|
|
84334
84335
|
if (!el.$value) {
|
|
84335
84336
|
// 值为空的时候,给出提示,我这里的提示是用的 的提示,你们随意
|
|
84336
84337
|
return;
|
|
@@ -84348,7 +84349,7 @@ const copy = val => {
|
|
|
84348
84349
|
// 选中值并复制
|
|
84349
84350
|
textarea.select();
|
|
84350
84351
|
textarea.setSelectionRange(0, textarea.value.length);
|
|
84351
|
-
document.execCommand('Copy') && element_ui_common["Message"].success(
|
|
84352
|
+
document.execCommand('Copy') && element_ui_common["Message"].success(val.info);
|
|
84352
84353
|
document.body.removeChild(textarea);
|
|
84353
84354
|
};
|
|
84354
84355
|
// 绑定点击事件,就是所谓的一键 copy 啦
|
package/lib/hc-basic.umd.js
CHANGED
|
@@ -81294,7 +81294,9 @@ var cjs_default = /*#__PURE__*/__webpack_require__.n(cjs);
|
|
|
81294
81294
|
}
|
|
81295
81295
|
},
|
|
81296
81296
|
directives: {
|
|
81297
|
-
copy: {
|
|
81297
|
+
copy: {
|
|
81298
|
+
info: '复制成功'
|
|
81299
|
+
},
|
|
81298
81300
|
errImg: {
|
|
81299
81301
|
avatarErr: 'https://ocj-erp-frontendonline.oss-cn-shanghai.aliyuncs.com/img/avator.png', // 头像错误图片
|
|
81300
81302
|
showErr: 'https://ocj-erp-frontendonline.oss-cn-shanghai.aliyuncs.com/img/nofound.png', // 展示错误图片
|
|
@@ -82897,13 +82899,13 @@ var tab_component = normalizeComponent(
|
|
|
82897
82899
|
// CONCATENATED MODULE: ./packages/components/tab/index.js
|
|
82898
82900
|
|
|
82899
82901
|
|
|
82900
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"3165804a-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/components/table/index.vue?vue&type=template&id=
|
|
82901
|
-
var
|
|
82902
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"3165804a-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/components/table/index.vue?vue&type=template&id=71c37c33&
|
|
82903
|
+
var tablevue_type_template_id_71c37c33_render = function render(){var _vm=this,_c=_vm._self._c;return _c('el-table',_vm._g(_vm._b({directives:[{name:"watermark",rawName:"v-watermark",value:({ title: _vm.$Config.directives.watermark.title, subTitle: _vm.$Config.directives.watermark.subTitle }),expression:"{ title: $Config.directives.watermark.title, subTitle: $Config.directives.watermark.subTitle }"}],ref:"multipleTable",staticClass:"hcTable",staticStyle:{"width":"100%"},attrs:{"data":_vm.tableData,"cell-class-name":_vm.cellConfigSet},on:{"select":_vm.$comSelect,"select-all":_vm.$comSelect},scopedSlots:_vm._u([{key:"empty",fn:function(){return [_c('img',{staticClass:"my-24",attrs:{"src":_vm.$Config.Components.table.noData,"alt":""}})]},proxy:true}])},'el-table',_vm.$attrs,false),_vm.$listeners),[(_vm.checkbox)?_c('el-table-column',{attrs:{"fixed":_vm.showFixed,"reserve-selection":_vm.reserveSelection,"type":"selection","width":"44"}}):_vm._e(),(_vm.expand)?_c('el-table-column',{attrs:{"fixed":_vm.showFixed,"type":"expand","width":"44"},scopedSlots:_vm._u([{key:"default",fn:function(scope){return [_vm._t("expand",null,null,scope)]}}],null,true)}):_vm._e(),_vm._l((_vm.column),function(item,index){return _c('el-table-column',_vm._b({key:'hctable' + index,class:item.code,attrs:{"formatter":item.code ? _vm.setFormatData(item) : item.formatter,"fixed":_vm.showFixed && item.fixed,"show-overflow-tooltip":!item['hidden-overflow-tooltip']},scopedSlots:_vm._u([(_vm.isShowHeader(item.prop))?{key:"header",fn:function(scope){return [_vm._t(item.prop + 'Header',null,null,scope)]}}:null,(_vm.isShowSlots(item.prop))?{key:"default",fn:function(scope){return [(item.image)?_c('hc-dialog',{attrs:{"out-close":_vm.outClose,"close-on-click-modal":"","title":"","width":_vm.$Config.Components.table.imgDialogWidth}},[_c('img',{directives:[{name:"errImg",rawName:"v-errImg",value:({ empty: false }),expression:"{ empty: false }"}],staticClass:"hc-table-slot-image",style:({ width: item.imgWidth || _vm.$Config.Components.table.imgWidth, height: item.imgHeight || _vm.$Config.Components.table.imgHeight }),attrs:{"src":scope.row[item.prop],"alt":item.label}}),_c('img',{directives:[{name:"errImg",rawName:"v-errImg"}],staticClass:"hc-table-slot-dialog-image",attrs:{"slot":"contain","src":scope.row[item.prop],"alt":""},slot:"contain"})]):(item.copy)?_c('div',{directives:[{name:"copy",rawName:"v-copy",value:([scope.row[item.prop]]),expression:"[scope.row[item.prop]]"}]},[_vm._v(" "+_vm._s(scope.row[item.prop])+" ")]):_vm._t(item.prop,null,null,scope)]}}:null],null,true)},'el-table-column',{ ...item },false),_vm._l((item.children),function(items,indexs){return (item.children)?_c('childTable',{key:'otables' + indexs,attrs:{"data":items,"show-slots":_vm.showSlots},scopedSlots:_vm._u([_vm._l((_vm.showSlots),function(slotName,slotIndex){return {key:slotName,fn:function(scope){return [_c('div',{key:slotIndex + 'slotName'},[_vm._t(slotName,null,null,scope)],2)]}}})],null,true)}):_vm._e()}),1)}),(_vm.operationWidth !== 'auto')?_c('el-table-column',{attrs:{"fixed":_vm.showFixed ? 'right' : false,"label":_vm.$Config.Components.table.optionLabel,"width":_vm.operationWidth},scopedSlots:_vm._u([{key:"default",fn:function(scope){return [_vm._t("default",null,null,scope)]}}],null,true)}):_vm._e()],2)
|
|
82902
82904
|
}
|
|
82903
|
-
var
|
|
82905
|
+
var tablevue_type_template_id_71c37c33_staticRenderFns = []
|
|
82904
82906
|
|
|
82905
82907
|
|
|
82906
|
-
// CONCATENATED MODULE: ./packages/components/table/index.vue?vue&type=template&id=
|
|
82908
|
+
// CONCATENATED MODULE: ./packages/components/table/index.vue?vue&type=template&id=71c37c33&
|
|
82907
82909
|
|
|
82908
82910
|
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"3165804a-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/components/table/childTable/index.vue?vue&type=template&id=0587b934&
|
|
82909
82911
|
var childTablevue_type_template_id_0587b934_render = function render(){var _vm=this,_c=_vm._self._c;return _c('el-table-column',_vm._b({attrs:{"show-overflow-tooltip":!_vm.data['hidden-overflow-tooltip']},scopedSlots:_vm._u([(_vm.showSlots.includes(_vm.data.prop))?{key:"default",fn:function(scope){return [_vm._t(_vm.data.prop,null,null,scope)]}}:null],null,true)},'el-table-column',{ ..._vm.data },false),_vm._l((_vm.data.children),function(item,index){return (_vm.data.children)?_c('childTable',{key:'otables' + index,attrs:{"data":item,"show-slots":_vm.showSlots},scopedSlots:_vm._u([_vm._l((_vm.showSlots),function(slotName,slotIndex){return {key:slotName,fn:function(scope){return [_c('div',{key:slotIndex + 'slotName'},[_vm._t(slotName,null,null,scope)],2)]}}})],null,true)}):_vm._e()}),1)
|
|
@@ -83085,8 +83087,8 @@ var childTable_component = normalizeComponent(
|
|
|
83085
83087
|
|
|
83086
83088
|
var table_component = normalizeComponent(
|
|
83087
83089
|
components_tablevue_type_script_lang_js_,
|
|
83088
|
-
|
|
83089
|
-
|
|
83090
|
+
tablevue_type_template_id_71c37c33_render,
|
|
83091
|
+
tablevue_type_template_id_71c37c33_staticRenderFns,
|
|
83090
83092
|
false,
|
|
83091
83093
|
null,
|
|
83092
83094
|
null,
|
|
@@ -84339,7 +84341,6 @@ const copy = val => {
|
|
|
84339
84341
|
bind(el, { value }) {
|
|
84340
84342
|
el.$value = value; // 用一个全局属性来存传进来的值,因为这个值在别的钩子函数里还会用到
|
|
84341
84343
|
el.handler = () => {
|
|
84342
|
-
console.log(value, 'copy');
|
|
84343
84344
|
if (!el.$value) {
|
|
84344
84345
|
// 值为空的时候,给出提示,我这里的提示是用的 的提示,你们随意
|
|
84345
84346
|
return;
|
|
@@ -84357,7 +84358,7 @@ const copy = val => {
|
|
|
84357
84358
|
// 选中值并复制
|
|
84358
84359
|
textarea.select();
|
|
84359
84360
|
textarea.setSelectionRange(0, textarea.value.length);
|
|
84360
|
-
document.execCommand('Copy') && element_ui_common["Message"].success(
|
|
84361
|
+
document.execCommand('Copy') && element_ui_common["Message"].success(val.info);
|
|
84361
84362
|
document.body.removeChild(textarea);
|
|
84362
84363
|
};
|
|
84363
84364
|
// 绑定点击事件,就是所谓的一键 copy 啦
|