@scenetechnology/cj_iview_table 0.0.22 → 0.0.24

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- [data-v-22b2a22d]::-webkit-scrollbar{display:none}.ellipsis[data-v-22b2a22d]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ele[data-v-22b2a22d]{cursor:pointer;height:30px;line-height:30px;display:flex;align-items:center;justify-content:space-between}.ele[data-v-22b2a22d]:hover{background-color:#f7f8fb}[data-v-22b2a22d]{list-style:none}.classTitle[data-v-e9cb8b60]:before{content:"*";display:inline-block;margin-right:4px;line-height:1;font-family:SimSun;font-size:12px;color:#ed4014}.classTitle[data-v-e9cb8b60]{font-family:PingFang SC;font-weight:400;font-size:15px;color:#333}.content[data-v-e9cb8b60]{display:flex;justify-content:space-between}.headerTitle[data-v-e9cb8b60]{font-weight:500;font-size:16px;color:#1d2027}.classTitle[data-v-961a178a]:before{content:"*";display:inline-block;margin-right:4px;line-height:1;font-family:SimSun;font-size:12px;color:#ed4014}.classTitle[data-v-961a178a]{font-family:PingFang SC;font-weight:400;font-size:15px;color:#333}.content[data-v-961a178a]{display:flex;justify-content:space-between}.headerTitle[data-v-961a178a]{font-weight:500;font-size:16px;color:#1d2027}.classTitle[data-v-3cf84ea4]:before{content:"*";display:inline-block;margin-right:4px;line-height:1;font-family:SimSun;font-size:12px;color:#ed4014}.classTitle[data-v-3cf84ea4]{font-family:PingFang SC;font-weight:400;font-size:15px;color:#333}.content[data-v-3cf84ea4]{display:flex;justify-content:space-between}.headerTitle[data-v-3cf84ea4]{font-weight:500;font-size:16px;color:#1d2027}[data-v-3cf84ea4] thead tr{background-color:#eff2fa!important;font-size:14px;font-family:Source Han Sans;font-weight:500;color:#222}.candidate[data-v-cbda52d2],.selected[data-v-cbda52d2]{position:absolute;display:inline-block;width:292px;height:400px;border:1px solid #e8e8e8}.picker[data-v-cbda52d2]{height:402px;position:relative;text-align:left}.picker .candidate[data-v-cbda52d2]{left:0;top:0}.picker .candidate .role-header[data-v-cbda52d2]{padding:10px!important;margin-bottom:5px;border-bottom:1px solid #e8e8e8}.picker .candidate .top-dept[data-v-cbda52d2]{margin-left:20px;cursor:pointer;color:#38adff}.picker .candidate .next-dept[data-v-cbda52d2]{float:right;color:#38adff;cursor:pointer}.picker .candidate .next-dept-disable[data-v-cbda52d2]{float:right;color:#8c8c8c;cursor:not-allowed}.picker .candidate>div[data-v-cbda52d2]:first-child{padding:5px 10px}.picker .selected[data-v-cbda52d2]{right:0;top:0}.picker .org-items[data-v-cbda52d2]{overflow-y:auto;height:310px}.picker .org-items .el-icon-close[data-v-cbda52d2]{position:absolute;right:5px;cursor:pointer;font-size:larger}.picker .org-items .org-dept-item[data-v-cbda52d2]{padding:10px 5px}.picker .org-items .org-dept-item>div[data-v-cbda52d2]{display:inline-block}.picker .org-items .org-dept-item>div>span[data-v-cbda52d2]:last-child{position:absolute;right:5px}.picker .org-items .org-role-item[data-v-cbda52d2]{display:flex;align-items:center;padding:10px 5px}.picker .org-items[data-v-cbda52d2] .org-user-item{display:flex;align-items:center;padding:5px}.picker .org-items[data-v-cbda52d2] .org-user-item>div{display:inline-block}.picker .org-items[data-v-cbda52d2] .org-user-item .avatar{width:35px;text-align:center;line-height:35px;background:#eee;color:#fff;border-radius:50%}.picker .org-items[data-v-cbda52d2] .org-item{margin:0 5px;border-radius:5px;position:relative}.picker .org-items[data-v-cbda52d2] .org-item .el-checkbox{margin-right:10px}.picker .org-items[data-v-cbda52d2] .org-item .name{margin-left:5px}.picker .org-items[data-v-cbda52d2] .org-item .overTetx{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;display:inline-block;width:165px}.picker .org-items[data-v-cbda52d2] .org-item:hover{background:#f1f1f1}.selected[data-v-cbda52d2]{border-left:none}.selected .count[data-v-cbda52d2]{width:290px;padding:10px;display:inline-block;border-bottom:1px solid #e8e8e8;margin-bottom:5px}.selected .count>span[data-v-cbda52d2]:nth-child(2){float:right;color:#c75450;cursor:pointer}.disabled[data-v-cbda52d2]{cursor:not-allowed!important;color:#8c8c8c!important}[data-v-cbda52d2]::-webkit-scrollbar{float:right;width:4px;height:4px;background-color:#fff}[data-v-cbda52d2]::-webkit-scrollbar-thumb{border-radius:16px;background-color:#efefef}.demo-spin-icon-load[data-v-cbda52d2]{animation:ani-demo-spin 1s linear infinite}.closeStyle[data-v-cbda52d2]{position:absolute;right:10px;cursor:pointer}[data-v-5dc43923] .ivu-table th,[data-v-5dc43923] .ivu-table-border th{background-color:#eff2fa}[data-v-5dc43923] .ivu-table-border{border-color:#ececec!important}[data-v-5dc43923] .ivu-table-border td,[data-v-5dc43923] .ivu-table-border th{border-right:1px solid #ececec}[data-v-5dc43923] .ivu-table-header .ivu-table-cell{font-size:14px;font-family:Source Han Sans;font-weight:500;color:#222}[data-v-5dc43923] .ivu-table-row .ivu-table-cell{font-size:14px;font-family:Source Han Sans;font-weight:400;color:#555}.pro-table[data-v-5dc43923]{background-color:#fff}.pro-table .filter-bar-group[data-v-5dc43923]{padding:0 20px;margin-bottom:15px;background-color:#fff;padding-top:20px;box-sizing:border-box}.pro-table .filter-bar-group .filter-bar-item[data-v-5dc43923]{margin-bottom:20px;display:flex;align-items:center;box-sizing:border-box;height:32px}.pro-table .filter-bar-group .filter-bar-item .labelClass[data-v-5dc43923]{font-size:12px;font-family:Source Han Sans;font-weight:400;color:#222;text-align:right;line-height:15px;margin-right:8px;white-space:normal;word-wrap:break-word;word-break:break-all}.pro-table .filter-bar-group .filter-bar-item label[data-v-5dc43923]{white-space:nowrap}.pro-table .filter-bar[data-v-5dc43923]{padding:0 20px;margin-bottom:15px;display:flex;justify-content:space-between;background-color:#fff}.pro-table .filter-bar .filter-bar-left[data-v-5dc43923]{flex:1;display:flex;align-items:center;flex-wrap:wrap;padding-top:20px}.pro-table .filter-bar .filter-bar-right[data-v-5dc43923]{padding-top:20px}.pro-table .filter-bar .btn[data-v-5dc43923]{margin:0 10px 20px 0}.pro-table .filterForm[data-v-5dc43923]{display:flex;align-items:center;margin:0 20px 20px 0}.pro-table .filterForm .labelClass[data-v-5dc43923]{font-size:12px;font-family:Source Han Sans;font-weight:400;color:#222;text-align:right;line-height:15px;margin-right:8px;white-space:normal;word-wrap:break-word;word-break:break-all}.pro-table .filterForm label[data-v-5dc43923]{white-space:nowrap}.pro-table .tool-bar-content[data-v-5dc43923]{padding:0 20px;box-sizing:border-box;background-color:#fff;display:flex;align-items:center;justify-content:space-between}.pro-table .tool-bar-content .tool-bar-left[data-v-5dc43923]{display:flex;margin-bottom:15px;flex:2}.pro-table .tool-bar-content .tool-bar-left>div[data-v-5dc43923]{margin-right:10px}.pro-table .tool-bar-content .tool-bar-right[data-v-5dc43923]{display:flex;flex:1;justify-content:right;margin-bottom:15px}.pro-table .dropdownItem_content[data-v-5dc43923]{display:flex;align-items:center;justify-content:space-between}.pro-table .dropdownItem_content .textTitle[data-v-5dc43923]{width:110px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-right:5px;font-size:12px}.pro-table .dropdownItem_content .textTitle2[data-v-5dc43923]{font-weight:400;font-size:12px;color:#666}.pro-table .table-container[data-v-5dc43923]{padding:0 20px;background-color:#fff;box-sizing:border-box}.pro-table .footer[data-v-5dc43923]{width:100%;display:flex;justify-content:center;padding:15px 10px;background-color:#fff}::-webkit-scrollbar{width:8px;height:8px}::-webkit-scrollbar-thumb{background-color:#e1e1e1;border-radius:32px}::-webkit-scrollbar-track{background-color:#f2f2f2;border-radius:32px}.ivu-table-overflowY::-webkit-scrollbar{width:8px;height:8px}.ivu-tooltip,.ivu-tooltip-inner,.ivu-tooltip-popper{z-index:9999!important}.ivu-table-wrapper{position:relative;z-index:1}.ivu-table-fixed-left,.ivu-table-fixed-right{z-index:2}.person_icon{position:absolute;right:0;top:0;width:33px;height:32px;z-index:1;cursor:pointer}.personSelect i{display:none}.personSelect .ivu-select-visible{display:none!important}
1
+ [data-v-22b2a22d]::-webkit-scrollbar{display:none}.ellipsis[data-v-22b2a22d]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ele[data-v-22b2a22d]{cursor:pointer;height:30px;line-height:30px;display:flex;align-items:center;justify-content:space-between}.ele[data-v-22b2a22d]:hover{background-color:#f7f8fb}[data-v-22b2a22d]{list-style:none}.classTitle[data-v-e9cb8b60]:before{content:"*";display:inline-block;margin-right:4px;line-height:1;font-family:SimSun;font-size:12px;color:#ed4014}.classTitle[data-v-e9cb8b60]{font-family:PingFang SC;font-weight:400;font-size:15px;color:#333}.content[data-v-e9cb8b60]{display:flex;justify-content:space-between}.headerTitle[data-v-e9cb8b60]{font-weight:500;font-size:16px;color:#1d2027}.classTitle[data-v-961a178a]:before{content:"*";display:inline-block;margin-right:4px;line-height:1;font-family:SimSun;font-size:12px;color:#ed4014}.classTitle[data-v-961a178a]{font-family:PingFang SC;font-weight:400;font-size:15px;color:#333}.content[data-v-961a178a]{display:flex;justify-content:space-between}.headerTitle[data-v-961a178a]{font-weight:500;font-size:16px;color:#1d2027}.classTitle[data-v-3cf84ea4]:before{content:"*";display:inline-block;margin-right:4px;line-height:1;font-family:SimSun;font-size:12px;color:#ed4014}.classTitle[data-v-3cf84ea4]{font-family:PingFang SC;font-weight:400;font-size:15px;color:#333}.content[data-v-3cf84ea4]{display:flex;justify-content:space-between}.headerTitle[data-v-3cf84ea4]{font-weight:500;font-size:16px;color:#1d2027}[data-v-3cf84ea4] thead tr{background-color:#eff2fa!important;font-size:14px;font-family:Source Han Sans;font-weight:500;color:#222}.candidate[data-v-cbda52d2],.selected[data-v-cbda52d2]{position:absolute;display:inline-block;width:292px;height:400px;border:1px solid #e8e8e8}.picker[data-v-cbda52d2]{height:402px;position:relative;text-align:left}.picker .candidate[data-v-cbda52d2]{left:0;top:0}.picker .candidate .role-header[data-v-cbda52d2]{padding:10px!important;margin-bottom:5px;border-bottom:1px solid #e8e8e8}.picker .candidate .top-dept[data-v-cbda52d2]{margin-left:20px;cursor:pointer;color:#38adff}.picker .candidate .next-dept[data-v-cbda52d2]{float:right;color:#38adff;cursor:pointer}.picker .candidate .next-dept-disable[data-v-cbda52d2]{float:right;color:#8c8c8c;cursor:not-allowed}.picker .candidate>div[data-v-cbda52d2]:first-child{padding:5px 10px}.picker .selected[data-v-cbda52d2]{right:0;top:0}.picker .org-items[data-v-cbda52d2]{overflow-y:auto;height:310px}.picker .org-items .el-icon-close[data-v-cbda52d2]{position:absolute;right:5px;cursor:pointer;font-size:larger}.picker .org-items .org-dept-item[data-v-cbda52d2]{padding:10px 5px}.picker .org-items .org-dept-item>div[data-v-cbda52d2]{display:inline-block}.picker .org-items .org-dept-item>div>span[data-v-cbda52d2]:last-child{position:absolute;right:5px}.picker .org-items .org-role-item[data-v-cbda52d2]{display:flex;align-items:center;padding:10px 5px}.picker .org-items[data-v-cbda52d2] .org-user-item{display:flex;align-items:center;padding:5px}.picker .org-items[data-v-cbda52d2] .org-user-item>div{display:inline-block}.picker .org-items[data-v-cbda52d2] .org-user-item .avatar{width:35px;text-align:center;line-height:35px;background:#eee;color:#fff;border-radius:50%}.picker .org-items[data-v-cbda52d2] .org-item{margin:0 5px;border-radius:5px;position:relative}.picker .org-items[data-v-cbda52d2] .org-item .el-checkbox{margin-right:10px}.picker .org-items[data-v-cbda52d2] .org-item .name{margin-left:5px}.picker .org-items[data-v-cbda52d2] .org-item .overTetx{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;display:inline-block;width:165px}.picker .org-items[data-v-cbda52d2] .org-item:hover{background:#f1f1f1}.selected[data-v-cbda52d2]{border-left:none}.selected .count[data-v-cbda52d2]{width:290px;padding:10px;display:inline-block;border-bottom:1px solid #e8e8e8;margin-bottom:5px}.selected .count>span[data-v-cbda52d2]:nth-child(2){float:right;color:#c75450;cursor:pointer}.disabled[data-v-cbda52d2]{cursor:not-allowed!important;color:#8c8c8c!important}[data-v-cbda52d2]::-webkit-scrollbar{float:right;width:4px;height:4px;background-color:#fff}[data-v-cbda52d2]::-webkit-scrollbar-thumb{border-radius:16px;background-color:#efefef}.demo-spin-icon-load[data-v-cbda52d2]{animation:ani-demo-spin 1s linear infinite}.closeStyle[data-v-cbda52d2]{position:absolute;right:10px;cursor:pointer}[data-v-5eabbf2c] .ivu-table th,[data-v-5eabbf2c] .ivu-table-border th{background-color:#eff2fa}[data-v-5eabbf2c] .ivu-table-border{border-color:#ececec!important}[data-v-5eabbf2c] .ivu-table-border td,[data-v-5eabbf2c] .ivu-table-border th{border-right:1px solid #ececec}[data-v-5eabbf2c] .ivu-table-header .ivu-table-cell{font-size:14px;font-family:Source Han Sans;font-weight:500;color:#222}[data-v-5eabbf2c] .ivu-table-row .ivu-table-cell{font-size:14px;font-family:Source Han Sans;font-weight:400;color:#555}[data-v-5eabbf2c] .ivu-table-cell{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}[data-v-5eabbf2c] .ivu-table td{max-width:0}.ivu-tooltip-inner[data-v-5eabbf2c]{max-width:300px;word-break:break-all;white-space:normal}.pro-table[data-v-5eabbf2c]{background-color:#fff}.pro-table .filter-bar-group[data-v-5eabbf2c]{padding:0 20px;margin-bottom:15px;background-color:#fff;padding-top:20px;box-sizing:border-box}.pro-table .filter-bar-group .filter-bar-item[data-v-5eabbf2c]{margin-bottom:20px;display:flex;align-items:center;box-sizing:border-box;height:32px}.pro-table .filter-bar-group .filter-bar-item .labelClass[data-v-5eabbf2c]{font-size:12px;font-family:Source Han Sans;font-weight:400;color:#222;text-align:right;line-height:15px;margin-right:8px;white-space:normal;word-wrap:break-word;word-break:break-all}.pro-table .filter-bar-group .filter-bar-item label[data-v-5eabbf2c]{white-space:nowrap}.pro-table .filter-bar[data-v-5eabbf2c]{padding:0 20px;margin-bottom:15px;display:flex;justify-content:space-between;background-color:#fff}.pro-table .filter-bar .filter-bar-left[data-v-5eabbf2c]{flex:1;display:flex;align-items:center;flex-wrap:wrap;padding-top:20px}.pro-table .filter-bar .filter-bar-right[data-v-5eabbf2c]{padding-top:20px}.pro-table .filter-bar .btn[data-v-5eabbf2c]{margin:0 10px 20px 0}.pro-table .filterForm[data-v-5eabbf2c]{display:flex;align-items:center;margin:0 20px 20px 0}.pro-table .filterForm .labelClass[data-v-5eabbf2c]{font-size:12px;font-family:Source Han Sans;font-weight:400;color:#222;text-align:right;line-height:15px;margin-right:8px;white-space:normal;word-wrap:break-word;word-break:break-all}.pro-table .filterForm label[data-v-5eabbf2c]{white-space:nowrap}.pro-table .tool-bar-content[data-v-5eabbf2c]{padding:0 20px;box-sizing:border-box;background-color:#fff;display:flex;align-items:center;justify-content:space-between}.pro-table .tool-bar-content .tool-bar-left[data-v-5eabbf2c]{display:flex;margin-bottom:15px;flex:2}.pro-table .tool-bar-content .tool-bar-left>div[data-v-5eabbf2c]{margin-right:10px}.pro-table .tool-bar-content .tool-bar-right[data-v-5eabbf2c]{display:flex;flex:1;justify-content:right;margin-bottom:15px}.pro-table .dropdownItem_content[data-v-5eabbf2c]{display:flex;align-items:center;justify-content:space-between}.pro-table .dropdownItem_content .textTitle[data-v-5eabbf2c]{width:110px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-right:5px;font-size:12px}.pro-table .dropdownItem_content .textTitle2[data-v-5eabbf2c]{font-weight:400;font-size:12px;color:#666}.pro-table .table-container[data-v-5eabbf2c]{padding:0 20px;background-color:#fff;box-sizing:border-box}.pro-table .footer[data-v-5eabbf2c]{width:100%;display:flex;justify-content:center;padding:15px 10px;background-color:#fff}::-webkit-scrollbar{width:8px;height:8px}::-webkit-scrollbar-thumb{background-color:#e1e1e1;border-radius:32px}::-webkit-scrollbar-track{background-color:#f2f2f2;border-radius:32px}.ivu-table-overflowY::-webkit-scrollbar{width:8px;height:8px}.ivu-tooltip,.ivu-tooltip-inner,.ivu-tooltip-popper{z-index:9999!important}.ivu-table-wrapper{position:relative;z-index:1}.ivu-table-fixed-left,.ivu-table-fixed-right{z-index:2}.person_icon{position:absolute;right:0;top:0;width:33px;height:32px;z-index:1;cursor:pointer}.personSelect i{display:none}.personSelect .ivu-select-visible{display:none!important}.custom-json-viewer{width:800px!important;min-width:800px!important}.custom-json-viewer .jv-container,.custom-json-viewer .jv-container.jv-collapsed,.custom-json-viewer .jv-container.jv-expanded{width:100%!important;min-width:800px!important}.custom-json-viewer{background-color:#fff;border-radius:4px}.custom-json-viewer .jv-key{color:#881391!important}.custom-json-viewer .jv-value{color:#1c00cf!important}.custom-json-viewer .jv-string{color:#c41a16!important}.custom-json-viewer .jv-number{color:#1c00cf!important}.custom-json-viewer .jv-boolean{color:#00f!important}.custom-json-viewer .jv-null{color:grey!important}.custom-json-viewer .jv-more{display:none!important}
@@ -20587,7 +20587,7 @@ if (typeof window !== 'undefined') {
20587
20587
  // Indicate to webpack that this file can be concatenated
20588
20588
  /* harmony default export */ var setPublicPath = (null);
20589
20589
 
20590
- ;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/babel-loader/lib/index.js!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/components/index.vue?vue&type=template&id=5dc43923&scoped=true
20590
+ ;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/babel-loader/lib/index.js!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/components/index.vue?vue&type=template&id=5eabbf2c&scoped=true
20591
20591
  var render = function render() {
20592
20592
  var _vm = this,
20593
20593
  _c = _vm._self._c;
@@ -20980,7 +20980,7 @@ var render = function render() {
20980
20980
  }
20981
20981
  };
20982
20982
  })], null, true)
20983
- }, [_vm._v("7 ")])], 1), [_c('div', {
20983
+ })], 1), [_c('div', {
20984
20984
  staticClass: "footer"
20985
20985
  }, [_c('Page', {
20986
20986
  attrs: {
@@ -27856,15 +27856,74 @@ var OrgPicker_component = normalizeComponent(
27856
27856
  return {
27857
27857
  ...column,
27858
27858
  render: (h, params) => {
27859
+ // 如果列有slot属性,使用插槽内容
27860
+ if (column.slot) {
27861
+ const slotContent = this.$scopedSlots[column.slot] ? this.$scopedSlots[column.slot]({
27862
+ row: params.row
27863
+ }) : h('span', params.row[column.key]);
27864
+ return h('Tooltip', {
27865
+ props: {
27866
+ content: '',
27867
+ maxWidth: 800,
27868
+ theme: 'light',
27869
+ transfer: true,
27870
+ placement: params.row._index >= this.dataSource.length - 1 ? 'top' : params.row._index < 5 ? 'bottom' : 'top'
27871
+ },
27872
+ style: {
27873
+ width: '100%'
27874
+ },
27875
+ scopedSlots: {
27876
+ default: () => [h('div', {
27877
+ style: {
27878
+ overflow: 'hidden',
27879
+ textOverflow: 'ellipsis',
27880
+ whiteSpace: 'nowrap',
27881
+ minWidth: '0',
27882
+ cursor: 'pointer',
27883
+ width: '100%'
27884
+ }
27885
+ }, [slotContent])],
27886
+ content: () => {
27887
+ const value = params.row[column.key];
27888
+ // 判断是否为JSON字符串
27889
+ if (this.isJsonString(value)) {
27890
+ return h('json-viewer', {
27891
+ props: {
27892
+ value: JSON.parse(value),
27893
+ expandDepth: 999,
27894
+ copyable: true,
27895
+ sort: true,
27896
+ boxed: true,
27897
+ theme: 'light',
27898
+ collapsed: true
27899
+ },
27900
+ style: {
27901
+ overflowY: 'auto',
27902
+ padding: '8px',
27903
+ boxSizing: 'border-box',
27904
+ width: '800px',
27905
+ minWidth: '800px',
27906
+ maxHeight: '400px'
27907
+ },
27908
+ class: 'custom-json-viewer'
27909
+ });
27910
+ }
27911
+ return h('div', value);
27912
+ }
27913
+ }
27914
+ });
27915
+ }
27916
+
27859
27917
  // 如果 key 是 action,直接返回渲染内容
27860
27918
  if (column.title === '操作') {
27861
27919
  return originalRender ? originalRender(h, params) : h('span', params.row[column.key]);
27862
27920
  }
27921
+
27863
27922
  // 获取单元格内容
27864
27923
  const cellValue = params.row[column.key];
27865
27924
  // 获取当前列的宽度(如果未设置宽度,则使用默认值)
27866
27925
  const columnWidth = params.column.width || params.column.minWidth;
27867
- const maxWidth = columnWidth * 0.85; // 计算 70% 的宽度
27926
+ const maxWidth = columnWidth * 0.85; // 计算 85% 的宽度
27868
27927
 
27869
27928
  // 如果有自定义 render 函数,先执行它
27870
27929
  let renderedContent;
@@ -27878,7 +27937,8 @@ var OrgPicker_component = normalizeComponent(
27878
27937
  maxWidth: `${maxWidth}px`,
27879
27938
  overflow: 'hidden',
27880
27939
  textOverflow: 'ellipsis',
27881
- whiteSpace: 'nowrap'
27940
+ whiteSpace: 'nowrap',
27941
+ width: '100%'
27882
27942
  }
27883
27943
  }, cellValue);
27884
27944
  }
@@ -27896,30 +27956,44 @@ var OrgPicker_component = normalizeComponent(
27896
27956
  width: '100%'
27897
27957
  },
27898
27958
  scopedSlots: {
27899
- // 使用 scopedSlots 动态生成 Tooltip 的内容
27900
27959
  default: () => [h('div', {
27901
27960
  style: {
27902
27961
  overflow: 'hidden',
27903
27962
  textOverflow: 'ellipsis',
27904
27963
  whiteSpace: 'nowrap',
27905
27964
  minWidth: '0',
27906
- // 确保宽度被正确限制
27907
- cursor: 'pointer'
27965
+ cursor: 'pointer',
27966
+ width: '100%'
27908
27967
  }
27909
- }, [renderedContent] // 显示渲染后的内容
27910
- )],
27911
- content: () => h('div', {
27912
- style: {
27913
- maxHeight: '200px',
27914
- // 设置 Tooltip 内容区域的最大高度
27915
- overflowY: 'auto',
27916
- // 超出高度时显示滚动条
27917
- padding: '8px',
27918
- // 添加内边距
27919
- boxSizing: 'border-box' // 确保 padding 不影响高度计算
27968
+ }, [renderedContent])],
27969
+ content: () => {
27970
+ const value = cellValue;
27971
+ // 判断是否为JSON字符串
27972
+ if (this.isJsonString(value)) {
27973
+ return h('json-viewer', {
27974
+ props: {
27975
+ value: JSON.parse(value),
27976
+ expandDepth: 999,
27977
+ expanded: true,
27978
+ copyable: true,
27979
+ sort: true,
27980
+ boxed: true,
27981
+ theme: 'light',
27982
+ collapsed: true
27983
+ },
27984
+ style: {
27985
+ overflowY: 'auto',
27986
+ padding: '8px',
27987
+ boxSizing: 'border-box',
27988
+ width: '800px',
27989
+ minWidth: '800px',
27990
+ maxHeight: '400px'
27991
+ },
27992
+ class: 'custom-json-viewer'
27993
+ });
27920
27994
  }
27921
- }, [renderedContent] // Tooltip 的内容是渲染后的内容
27922
- )
27995
+ return h('div', value);
27996
+ }
27923
27997
  }
27924
27998
  });
27925
27999
  }
@@ -27960,6 +28034,7 @@ var OrgPicker_component = normalizeComponent(
27960
28034
  return [];
27961
28035
  },
27962
28036
  tableSlot() {
28037
+ console.log('tableSlot---', this.columns.filter(item => item.slot));
27963
28038
  return this.columns.filter(item => item.slot);
27964
28039
  },
27965
28040
  /**
@@ -28037,6 +28112,15 @@ var OrgPicker_component = normalizeComponent(
28037
28112
  }
28038
28113
  },
28039
28114
  methods: {
28115
+ isJsonString(str) {
28116
+ if (typeof str !== 'string') return false;
28117
+ try {
28118
+ const result = JSON.parse(str);
28119
+ return typeof result === 'object' && result !== null;
28120
+ } catch (e) {
28121
+ return false;
28122
+ }
28123
+ },
28040
28124
  // 添加计算补充项数量的方法
28041
28125
  calculateSupplementNum(columnsLength, spanValue) {
28042
28126
  console.log(this.filterGridSpan);
@@ -28722,15 +28806,15 @@ var OrgPicker_component = normalizeComponent(
28722
28806
  });
28723
28807
  ;// ./packages/components/index.vue?vue&type=script&lang=js
28724
28808
  /* harmony default export */ var packages_componentsvue_type_script_lang_js = (componentsvue_type_script_lang_js);
28725
- ;// ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-74.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-74.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-74.use[2]!./node_modules/less-loader/dist/cjs.js??clonedRuleSet-74.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/components/index.vue?vue&type=style&index=0&id=5dc43923&prod&scoped=true&lang=less
28809
+ ;// ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-74.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-74.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-74.use[2]!./node_modules/less-loader/dist/cjs.js??clonedRuleSet-74.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/components/index.vue?vue&type=style&index=0&id=5eabbf2c&prod&scoped=true&lang=less
28726
28810
  // extracted by mini-css-extract-plugin
28727
28811
 
28728
- ;// ./packages/components/index.vue?vue&type=style&index=0&id=5dc43923&prod&scoped=true&lang=less
28812
+ ;// ./packages/components/index.vue?vue&type=style&index=0&id=5eabbf2c&prod&scoped=true&lang=less
28729
28813
 
28730
- ;// ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-54.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-54.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-54.use[2]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/components/index.vue?vue&type=style&index=1&id=5dc43923&prod&lang=css
28814
+ ;// ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-54.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-54.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-54.use[2]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/components/index.vue?vue&type=style&index=1&id=5eabbf2c&prod&lang=css
28731
28815
  // extracted by mini-css-extract-plugin
28732
28816
 
28733
- ;// ./packages/components/index.vue?vue&type=style&index=1&id=5dc43923&prod&lang=css
28817
+ ;// ./packages/components/index.vue?vue&type=style&index=1&id=5eabbf2c&prod&lang=css
28734
28818
 
28735
28819
  ;// ./packages/components/index.vue
28736
28820
 
@@ -28748,7 +28832,7 @@ var components_component = normalizeComponent(
28748
28832
  staticRenderFns,
28749
28833
  false,
28750
28834
  null,
28751
- "5dc43923",
28835
+ "5eabbf2c",
28752
28836
  null
28753
28837
 
28754
28838
  )