@scenetechnology/cj_iview_table 0.0.23 → 0.0.25

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-6d657755] .ivu-table th,[data-v-6d657755] .ivu-table-border th{background-color:#eff2fa}[data-v-6d657755] .ivu-table-border{border-color:#ececec!important}[data-v-6d657755] .ivu-table-border td,[data-v-6d657755] .ivu-table-border th{border-right:1px solid #ececec}[data-v-6d657755] .ivu-table-header .ivu-table-cell{font-size:14px;font-family:Source Han Sans;font-weight:500;color:#222}[data-v-6d657755] .ivu-table-row .ivu-table-cell{font-size:14px;font-family:Source Han Sans;font-weight:400;color:#555}.pro-table[data-v-6d657755]{background-color:#fff}.pro-table .filter-bar-group[data-v-6d657755]{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-6d657755]{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-6d657755]{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-6d657755]{white-space:nowrap}.pro-table .filter-bar[data-v-6d657755]{padding:0 20px;margin-bottom:15px;display:flex;justify-content:space-between;background-color:#fff}.pro-table .filter-bar .filter-bar-left[data-v-6d657755]{flex:1;display:flex;align-items:center;flex-wrap:wrap;padding-top:20px}.pro-table .filter-bar .filter-bar-right[data-v-6d657755]{padding-top:20px}.pro-table .filter-bar .btn[data-v-6d657755]{margin:0 10px 20px 0}.pro-table .filterForm[data-v-6d657755]{display:flex;align-items:center;margin:0 20px 20px 0}.pro-table .filterForm .labelClass[data-v-6d657755]{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-6d657755]{white-space:nowrap}.pro-table .tool-bar-content[data-v-6d657755]{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-6d657755]{display:flex;margin-bottom:15px;flex:2}.pro-table .tool-bar-content .tool-bar-left>div[data-v-6d657755]{margin-right:10px}.pro-table .tool-bar-content .tool-bar-right[data-v-6d657755]{display:flex;flex:1;justify-content:right;margin-bottom:15px}.pro-table .dropdownItem_content[data-v-6d657755]{display:flex;align-items:center;justify-content:space-between}.pro-table .dropdownItem_content .textTitle[data-v-6d657755]{width:110px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-right:5px;font-size:12px}.pro-table .dropdownItem_content .textTitle2[data-v-6d657755]{font-weight:400;font-size:12px;color:#666}.pro-table .table-container[data-v-6d657755]{padding:0 20px;background-color:#fff;box-sizing:border-box}.pro-table .footer[data-v-6d657755]{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-16d45f8c] .ivu-table th,[data-v-16d45f8c] .ivu-table-border th{background-color:#eff2fa}[data-v-16d45f8c] .ivu-table-border{border-color:#ececec!important}[data-v-16d45f8c] .ivu-table-border td,[data-v-16d45f8c] .ivu-table-border th{border-right:1px solid #ececec}[data-v-16d45f8c] .ivu-table-header .ivu-table-cell{font-size:14px;font-family:Source Han Sans;font-weight:500;color:#222}[data-v-16d45f8c] .ivu-table-row .ivu-table-cell{font-size:14px;font-family:Source Han Sans;font-weight:400;color:#555}[data-v-16d45f8c] .ivu-table-cell{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}[data-v-16d45f8c] .ivu-table td{max-width:0}.ivu-tooltip-inner[data-v-16d45f8c]{max-width:300px;word-break:break-all;white-space:normal}.pro-table[data-v-16d45f8c]{background-color:#fff}.pro-table .filter-bar-group[data-v-16d45f8c]{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-16d45f8c]{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-16d45f8c]{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-16d45f8c]{white-space:nowrap}.pro-table .filter-bar[data-v-16d45f8c]{padding:0 20px;margin-bottom:15px;display:flex;justify-content:space-between;background-color:#fff}.pro-table .filter-bar .filter-bar-left[data-v-16d45f8c]{flex:1;display:flex;align-items:center;flex-wrap:wrap;padding-top:20px}.pro-table .filter-bar .filter-bar-right[data-v-16d45f8c]{padding-top:20px}.pro-table .filter-bar .btn[data-v-16d45f8c]{margin:0 10px 20px 0}.pro-table .filterForm[data-v-16d45f8c]{display:flex;align-items:center;margin:0 20px 20px 0}.pro-table .filterForm .labelClass[data-v-16d45f8c]{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-16d45f8c]{white-space:nowrap}.pro-table .tool-bar-content[data-v-16d45f8c]{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-16d45f8c]{display:flex;margin-bottom:15px;flex:2}.pro-table .tool-bar-content .tool-bar-left>div[data-v-16d45f8c]{margin-right:10px}.pro-table .tool-bar-content .tool-bar-right[data-v-16d45f8c]{display:flex;flex:1;justify-content:right;margin-bottom:15px}.pro-table .dropdownItem_content[data-v-16d45f8c]{display:flex;align-items:center;justify-content:space-between}.pro-table .dropdownItem_content .textTitle[data-v-16d45f8c]{width:110px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-right:5px;font-size:12px}.pro-table .dropdownItem_content .textTitle2[data-v-16d45f8c]{font-weight:400;font-size:12px;color:#666}.pro-table .table-container[data-v-16d45f8c]{padding:0 20px;background-color:#fff;box-sizing:border-box}.pro-table .footer[data-v-16d45f8c]{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=6d657755&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=16d45f8c&scoped=true
20591
20591
  var render = function render() {
20592
20592
  var _vm = this,
20593
20593
  _c = _vm._self._c;
@@ -27879,17 +27879,37 @@ var OrgPicker_component = normalizeComponent(
27879
27879
  textOverflow: 'ellipsis',
27880
27880
  whiteSpace: 'nowrap',
27881
27881
  minWidth: '0',
27882
- cursor: 'pointer'
27882
+ cursor: 'pointer',
27883
+ width: '100%'
27883
27884
  }
27884
27885
  }, [slotContent])],
27885
- content: () => h('div', {
27886
- style: {
27887
- maxHeight: '200px',
27888
- overflowY: 'auto',
27889
- padding: '8px',
27890
- boxSizing: 'border-box'
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: '300px'
27907
+ },
27908
+ class: 'custom-json-viewer'
27909
+ });
27891
27910
  }
27892
- }, [slotContent])
27911
+ return h('div', value);
27912
+ }
27893
27913
  }
27894
27914
  });
27895
27915
  }
@@ -27903,7 +27923,7 @@ var OrgPicker_component = normalizeComponent(
27903
27923
  const cellValue = params.row[column.key];
27904
27924
  // 获取当前列的宽度(如果未设置宽度,则使用默认值)
27905
27925
  const columnWidth = params.column.width || params.column.minWidth;
27906
- const maxWidth = columnWidth * 0.85; // 计算 70% 的宽度
27926
+ const maxWidth = columnWidth * 0.85; // 计算 85% 的宽度
27907
27927
 
27908
27928
  // 如果有自定义 render 函数,先执行它
27909
27929
  let renderedContent;
@@ -27917,7 +27937,8 @@ var OrgPicker_component = normalizeComponent(
27917
27937
  maxWidth: `${maxWidth}px`,
27918
27938
  overflow: 'hidden',
27919
27939
  textOverflow: 'ellipsis',
27920
- whiteSpace: 'nowrap'
27940
+ whiteSpace: 'nowrap',
27941
+ width: '100%'
27921
27942
  }
27922
27943
  }, cellValue);
27923
27944
  }
@@ -27941,17 +27962,38 @@ var OrgPicker_component = normalizeComponent(
27941
27962
  textOverflow: 'ellipsis',
27942
27963
  whiteSpace: 'nowrap',
27943
27964
  minWidth: '0',
27944
- cursor: 'pointer'
27965
+ cursor: 'pointer',
27966
+ width: '100%'
27945
27967
  }
27946
27968
  }, [renderedContent])],
27947
- content: () => h('div', {
27948
- style: {
27949
- maxHeight: '200px',
27950
- overflowY: 'auto',
27951
- padding: '8px',
27952
- boxSizing: 'border-box'
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: '300px'
27991
+ },
27992
+ class: 'custom-json-viewer'
27993
+ });
27953
27994
  }
27954
- }, [renderedContent])
27995
+ return h('div', value);
27996
+ }
27955
27997
  }
27956
27998
  });
27957
27999
  }
@@ -28070,6 +28112,15 @@ var OrgPicker_component = normalizeComponent(
28070
28112
  }
28071
28113
  },
28072
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
+ },
28073
28124
  // 添加计算补充项数量的方法
28074
28125
  calculateSupplementNum(columnsLength, spanValue) {
28075
28126
  console.log(this.filterGridSpan);
@@ -28755,15 +28806,15 @@ var OrgPicker_component = normalizeComponent(
28755
28806
  });
28756
28807
  ;// ./packages/components/index.vue?vue&type=script&lang=js
28757
28808
  /* harmony default export */ var packages_componentsvue_type_script_lang_js = (componentsvue_type_script_lang_js);
28758
- ;// ./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=6d657755&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=16d45f8c&prod&scoped=true&lang=less
28759
28810
  // extracted by mini-css-extract-plugin
28760
28811
 
28761
- ;// ./packages/components/index.vue?vue&type=style&index=0&id=6d657755&prod&scoped=true&lang=less
28812
+ ;// ./packages/components/index.vue?vue&type=style&index=0&id=16d45f8c&prod&scoped=true&lang=less
28762
28813
 
28763
- ;// ./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=6d657755&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=16d45f8c&prod&lang=css
28764
28815
  // extracted by mini-css-extract-plugin
28765
28816
 
28766
- ;// ./packages/components/index.vue?vue&type=style&index=1&id=6d657755&prod&lang=css
28817
+ ;// ./packages/components/index.vue?vue&type=style&index=1&id=16d45f8c&prod&lang=css
28767
28818
 
28768
28819
  ;// ./packages/components/index.vue
28769
28820
 
@@ -28781,7 +28832,7 @@ var components_component = normalizeComponent(
28781
28832
  staticRenderFns,
28782
28833
  false,
28783
28834
  null,
28784
- "6d657755",
28835
+ "16d45f8c",
28785
28836
  null
28786
28837
 
28787
28838
  )