{{dubboInfo.docInfo.explain}}编辑
+ {{dubboInfo.docInfo.result}}编辑
+ {{dubboInfo.docInfo.explain}}编辑
- {{dubboInfo.docInfo.result}}编辑
- '+s+"",s},processObject:function(e,t,a,n,o,r,s){var i="",l=n?", ":"",u=Object(W["a"])(e);if(this.isArray(e))if(0==e.length)i+=this.getRow(a,"[ ]"+l,r);else{var c='
',d="";s&&t&&this.annotationObject[t]&&(d='// '+this.annotationObject[t]+""),i+=this.getRow(a,"["+c+d,r);for(var f=0;f
',d="";s&&t&&this.annotationObject[t]&&(d='// '+this.annotationObject[t]+""),i+=this.getRow(a,"{"+c+d,r);var m=0;for(var h in e){var b='"'+h+'": '+this.processObject(e[h],h,a+1,++m",i+=this.getRow(a,c+"}"+l)}}else"number"==u?i+=this.formatLiteral(e,"",l,a,o,"number"):"boolean"==u?i+=this.formatLiteral(e,"",l,a,o,"boolean"):"function"==u?(e=this.formatFunction(a,e),i+=this.formatLiteral(e,"",l,a,o,"function")):i+="undefined"==u?this.formatLiteral("undefined","",l,a,o,"null"):this.formatLiteral(e,'"',l,a,o,"string");return i},expImgClicked:function(e){var t=e.parentNode.nextSibling;if(t){var a="none",n="webjars/doc-dubbo/img/collapsed.png";"none"==t.style.display&&(a="inline",n="webjars/doc-dubbo/img/expanded.png"),t.style.display=a,e.src=n}},formatLiteral:function(e,t,a,n,o,r){"string"==typeof e&&(e=e.split("<").join("<").split(">").join(">"));var s=""+t+e+t+a+"";return o&&(s=this.getRow(n,s)),s},formatFunction:function(e,t){for(var a="",n=0;nl&&(e.scrollTop=o-e.clientHeight)}else e.scrollTop=0}},"2a93":function(e,t){e.exports=function(e){var t={className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[{begin:"'''",end:"'''",relevance:10},{begin:'"""',end:'"""',relevance:10},{begin:'"',end:'"'},{begin:"'",end:"'"}]};return{aliases:["toml"],case_insensitive:!0,illegal:/\S/,contains:[e.COMMENT(";","$"),e.HASH_COMMENT_MODE,{className:"section",begin:/^\s*\[+/,end:/\]+/},{begin:/^[a-z0-9\[\]_\.-]+\s*=\s*/,end:"$",returnBegin:!0,contains:[{className:"attr",begin:/[a-z0-9\[\]_\.-]+/},{begin:/=/,endsWithParent:!0,relevance:0,contains:[e.COMMENT(";","$"),e.HASH_COMMENT_MODE,{className:"literal",begin:/\bon|off|true|false|yes|no\b/},{className:"variable",variants:[{begin:/\$[\w\d"][\w\d_]*/},{begin:/\$\{(.*?)}/}]},t,{className:"number",begin:/([\+\-]+)?[\d]+_[\d_]+/},e.NUMBER_MODE]}]}]}}},"2b0e":function(e,t,n){"use strict";n.r(t),function(e){
+/*!
+ * Vue.js v2.6.10
+ * (c) 2014-2019 Evan You
+ * Released under the MIT License.
+ */
+var n=Object.freeze({});function i(e){return void 0===e||null===e}function r(e){return void 0!==e&&null!==e}function a(e){return!0===e}function o(e){return!1===e}function s(e){return"string"===typeof e||"number"===typeof e||"symbol"===typeof e||"boolean"===typeof e}function l(e){return null!==e&&"object"===typeof e}var c=Object.prototype.toString;function u(e){return"[object Object]"===c.call(e)}function d(e){return"[object RegExp]"===c.call(e)}function p(e){var t=parseFloat(String(e));return t>=0&&Math.floor(t)===t&&isFinite(e)}function _(e){return r(e)&&"function"===typeof e.then&&"function"===typeof e.catch}function h(e){return null==e?"":Array.isArray(e)||u(e)&&e.toString===c?JSON.stringify(e,null,2):String(e)}function f(e){var t=parseFloat(e);return isNaN(t)?e:t}function m(e,t){for(var n=Object.create(null),i=e.split(","),r=0;r-1&&t.splice(n,1);var i=this.childNodes.indexOf(e);i>-1&&(this.store&&this.store.deregisterNode(e),e.parent=null,this.childNodes.splice(i,1)),this.updateLeafState()},e.prototype.removeChildByData=function(e){for(var t=null,n=0;n1&&void 0!==arguments[1]&&arguments[1],n=arguments[2],i=this._getAllNodes().sort((function(e,t){return t.level-e.level})),r=Object.create(null),a=Object.keys(n);i.forEach((function(e){return e.setChecked(!1,!1)}));for(var o=0,s=i.length;o-1;if(u){var d=l.parent;while(d&&d.level>0)r[d.data[e]]=!0,d=d.parent;l.isLeaf||this.checkStrictly?l.setChecked(!0,!1):(l.setChecked(!0,!0),t&&function(){l.setChecked(!1,!1);var e=function e(t){var n=t.childNodes;n.forEach((function(t){t.isLeaf||t.setChecked(!1,!1),e(t)}))};e(l)}())}else l.checked&&!r[c]&&l.setChecked(!1,!1)}},e.prototype.setCheckedNodes=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.key,i={};e.forEach((function(e){i[(e||{})[n]]=!0})),this._setCheckedKeys(n,t,i)},e.prototype.setCheckedKeys=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.defaultCheckedKeys=e;var n=this.key,i={};e.forEach((function(e){i[e]=!0})),this._setCheckedKeys(n,t,i)},e.prototype.setDefaultExpandedKeys=function(e){var t=this;e=e||[],this.defaultExpandedKeys=e,e.forEach((function(e){var n=t.getNode(e);n&&n.expand(null,t.autoExpandParent)}))},e.prototype.setChecked=function(e,t,n){var i=this.getNode(e);i&&i.setChecked(!!t,n)},e.prototype.getCurrentNode=function(){return this.currentNode},e.prototype.setCurrentNode=function(e){var t=this.currentNode;t&&(t.isCurrent=!1),this.currentNode=e,this.currentNode.isCurrent=!0},e.prototype.setUserCurrentNode=function(e){var t=e[this.key],n=this.nodesMap[t];this.setCurrentNode(n)},e.prototype.setCurrentNodeKey=function(e){if(null===e||void 0===e)return this.currentNode&&(this.currentNode.isCurrent=!1),void(this.currentNode=null);var t=this.getNode(e);t&&this.setCurrentNode(t)},e}(),gc=mc,vc=function(){var e=this,t=this,n=t.$createElement,i=t._self._c||n;return i("div",{directives:[{name:"show",rawName:"v-show",value:t.node.visible,expression:"node.visible"}],ref:"node",staticClass:"el-tree-node",class:{"is-expanded":t.expanded,"is-current":t.node.isCurrent,"is-hidden":!t.node.visible,"is-focusable":!t.node.disabled,"is-checked":!t.node.disabled&&t.node.checked},attrs:{role:"treeitem",tabindex:"-1","aria-expanded":t.expanded,"aria-disabled":t.node.disabled,"aria-checked":t.node.checked,draggable:t.tree.draggable},on:{click:function(e){return e.stopPropagation(),t.handleClick(e)},contextmenu:function(t){return e.handleContextMenu(t)},dragstart:function(e){return e.stopPropagation(),t.handleDragStart(e)},dragover:function(e){return e.stopPropagation(),t.handleDragOver(e)},dragend:function(e){return e.stopPropagation(),t.handleDragEnd(e)},drop:function(e){return e.stopPropagation(),t.handleDrop(e)}}},[i("div",{staticClass:"el-tree-node__content",style:{"padding-left":(t.node.level-1)*t.tree.indent+"px"}},[i("span",{class:[{"is-leaf":t.node.isLeaf,expanded:!t.node.isLeaf&&t.expanded},"el-tree-node__expand-icon",t.tree.iconClass?t.tree.iconClass:"el-icon-caret-right"],on:{click:function(e){return e.stopPropagation(),t.handleExpandIconClick(e)}}}),t.showCheckbox?i("el-checkbox",{attrs:{indeterminate:t.node.indeterminate,disabled:!!t.node.disabled},on:{change:t.handleCheckChange},nativeOn:{click:function(e){e.stopPropagation()}},model:{value:t.node.checked,callback:function(e){t.$set(t.node,"checked",e)},expression:"node.checked"}}):t._e(),t.node.loading?i("span",{staticClass:"el-tree-node__loading-icon el-icon-loading"}):t._e(),i("node-content",{attrs:{node:t.node}})],1),i("el-collapse-transition",[!t.renderAfterExpand||t.childNodeRendered?i("div",{directives:[{name:"show",rawName:"v-show",value:t.expanded,expression:"expanded"}],staticClass:"el-tree-node__children",attrs:{role:"group","aria-expanded":t.expanded}},t._l(t.node.childNodes,(function(e){return i("el-tree-node",{key:t.getNodeKey(e),attrs:{"render-content":t.renderContent,"render-after-expand":t.renderAfterExpand,"show-checkbox":t.showCheckbox,node:e},on:{"node-expand":t.handleChildNodeExpand}})})),1):t._e()])],1)},bc=[];vc._withStripped=!0;var Sc={name:"ElTreeNode",componentName:"ElTreeNode",mixins:[x.a],props:{node:{default:function(){return{}}},props:{},renderContent:Function,renderAfterExpand:{type:Boolean,default:!0},showCheckbox:{type:Boolean,default:!1}},components:{ElCollapseTransition:qe.a,ElCheckbox:Li.a,NodeContent:{props:{node:{required:!0}},render:function(e){var t=this.$parent,n=t.tree,i=this.node,r=i.data,a=i.store;return t.renderContent?t.renderContent.call(t._renderProxy,e,{_self:n.$vnode.context,node:i,data:r,store:a}):n.$scopedSlots.default?n.$scopedSlots.default({node:i,data:r}):e("span",{class:"el-tree-node__label"},[i.label])}}},data:function(){return{tree:null,expanded:!1,childNodeRendered:!1,oldChecked:null,oldIndeterminate:null}},watch:{"node.indeterminate":function(e){this.handleSelectChange(this.node.checked,e)},"node.checked":function(e){this.handleSelectChange(e,this.node.indeterminate)},"node.expanded":function(e){var t=this;this.$nextTick((function(){return t.expanded=e})),e&&(this.childNodeRendered=!0)}},methods:{getNodeKey:function(e){return rc(this.tree.nodeKey,e.data)},handleSelectChange:function(e,t){this.oldChecked!==e&&this.oldIndeterminate!==t&&this.tree.$emit("check-change",this.node.data,e,t),this.oldChecked=e,this.indeterminate=t},handleClick:function(){var e=this.tree.store;e.setCurrentNode(this.node),this.tree.$emit("current-change",e.currentNode?e.currentNode.data:null,e.currentNode),this.tree.currentNode=this,this.tree.expandOnClickNode&&this.handleExpandIconClick(),this.tree.checkOnClickNode&&!this.node.disabled&&this.handleCheckChange(null,{target:{checked:!this.node.checked}}),this.tree.$emit("node-click",this.node.data,this.node,this)},handleContextMenu:function(e){this.tree._events["node-contextmenu"]&&this.tree._events["node-contextmenu"].length>0&&(e.stopPropagation(),e.preventDefault()),this.tree.$emit("node-contextmenu",e,this.node.data,this.node,this)},handleExpandIconClick:function(){this.node.isLeaf||(this.expanded?(this.tree.$emit("node-collapse",this.node.data,this.node,this),this.node.collapse()):(this.node.expand(),this.$emit("node-expand",this.node.data,this.node,this)))},handleCheckChange:function(e,t){var n=this;this.node.setChecked(t.target.checked,!this.tree.checkStrictly),this.$nextTick((function(){var e=n.tree.store;n.tree.$emit("check",n.node.data,{checkedNodes:e.getCheckedNodes(),checkedKeys:e.getCheckedKeys(),halfCheckedNodes:e.getHalfCheckedNodes(),halfCheckedKeys:e.getHalfCheckedKeys()})}))},handleChildNodeExpand:function(e,t,n){this.broadcast("ElTreeNode","tree-node-expand",t),this.tree.$emit("node-expand",e,t,n)},handleDragStart:function(e){this.tree.draggable&&this.tree.$emit("tree-node-drag-start",e,this)},handleDragOver:function(e){this.tree.draggable&&(this.tree.$emit("tree-node-drag-over",e,this),e.preventDefault())},handleDrop:function(e){e.preventDefault()},handleDragEnd:function(e){this.tree.draggable&&this.tree.$emit("tree-node-drag-end",e,this)}},created:function(){var e=this,t=this.$parent;t.isTree?this.tree=t:this.tree=t.tree;var n=this.tree;n||console.warn("Can not find node's tree.");var i=n.props||{},r=i["children"]||"children";this.$watch("node.data."+r,(function(){e.node.updateChildren()})),this.node.expanded&&(this.expanded=!0,this.childNodeRendered=!0),this.tree.accordion&&this.$on("tree-node-expand",(function(t){e.node!==t&&e.node.collapse()}))}},Ec=Sc,yc=s(Ec,vc,bc,!1,null,null,null);yc.options.__file="packages/tree/src/tree-node.vue";var Cc=yc.exports,Tc={name:"ElTree",mixins:[x.a],components:{ElTreeNode:Cc},data:function(){return{store:null,root:null,currentNode:null,treeItems:null,checkboxItems:[],dragState:{showDropIndicator:!1,draggingNode:null,dropNode:null,allowDrop:!0}}},props:{data:{type:Array},emptyText:{type:String,default:function(){return Object(ti["t"])("el.tree.emptyText")}},renderAfterExpand:{type:Boolean,default:!0},nodeKey:String,checkStrictly:Boolean,defaultExpandAll:Boolean,expandOnClickNode:{type:Boolean,default:!0},checkOnClickNode:Boolean,checkDescendants:{type:Boolean,default:!1},autoExpandParent:{type:Boolean,default:!0},defaultCheckedKeys:Array,defaultExpandedKeys:Array,currentNodeKey:[String,Number],renderContent:Function,showCheckbox:{type:Boolean,default:!1},draggable:{type:Boolean,default:!1},allowDrag:Function,allowDrop:Function,props:{default:function(){return{children:"children",label:"label",disabled:"disabled"}}},lazy:{type:Boolean,default:!1},highlightCurrent:Boolean,load:Function,filterNodeMethod:Function,accordion:Boolean,indent:{type:Number,default:18},iconClass:String},computed:{children:{set:function(e){this.data=e},get:function(){return this.data}},treeItemArray:function(){return Array.prototype.slice.call(this.treeItems)},isEmpty:function(){var e=this.root.childNodes;return!e||0===e.length||e.every((function(e){var t=e.visible;return!t}))}},watch:{defaultCheckedKeys:function(e){this.store.setDefaultCheckedKey(e)},defaultExpandedKeys:function(e){this.store.defaultExpandedKeys=e,this.store.setDefaultExpandedKeys(e)},data:function(e){this.store.setData(e)},checkboxItems:function(e){Array.prototype.forEach.call(e,(function(e){e.setAttribute("tabindex",-1)}))},checkStrictly:function(e){this.store.checkStrictly=e}},methods:{filter:function(e){if(!this.filterNodeMethod)throw new Error("[Tree] filterNodeMethod is required when filter");this.store.filter(e)},getNodeKey:function(e){return rc(this.nodeKey,e.data)},getNodePath:function(e){if(!this.nodeKey)throw new Error("[Tree] nodeKey is required in getNodePath");var t=this.store.getNode(e);if(!t)return[];var n=[t.data],i=t.parent;while(i&&i!==this.root)n.push(i.data),i=i.parent;return n.reverse()},getCheckedNodes:function(e,t){return this.store.getCheckedNodes(e,t)},getCheckedKeys:function(e){return this.store.getCheckedKeys(e)},getCurrentNode:function(){var e=this.store.getCurrentNode();return e?e.data:null},getCurrentKey:function(){if(!this.nodeKey)throw new Error("[Tree] nodeKey is required in getCurrentKey");var e=this.getCurrentNode();return e?e[this.nodeKey]:null},setCheckedNodes:function(e,t){if(!this.nodeKey)throw new Error("[Tree] nodeKey is required in setCheckedNodes");this.store.setCheckedNodes(e,t)},setCheckedKeys:function(e,t){if(!this.nodeKey)throw new Error("[Tree] nodeKey is required in setCheckedKeys");this.store.setCheckedKeys(e,t)},setChecked:function(e,t,n){this.store.setChecked(e,t,n)},getHalfCheckedNodes:function(){return this.store.getHalfCheckedNodes()},getHalfCheckedKeys:function(){return this.store.getHalfCheckedKeys()},setCurrentNode:function(e){if(!this.nodeKey)throw new Error("[Tree] nodeKey is required in setCurrentNode");this.store.setUserCurrentNode(e)},setCurrentKey:function(e){if(!this.nodeKey)throw new Error("[Tree] nodeKey is required in setCurrentKey");this.store.setCurrentNodeKey(e)},getNode:function(e){return this.store.getNode(e)},remove:function(e){this.store.remove(e)},append:function(e,t){this.store.append(e,t)},insertBefore:function(e,t){this.store.insertBefore(e,t)},insertAfter:function(e,t){this.store.insertAfter(e,t)},handleNodeExpand:function(e,t,n){this.broadcast("ElTreeNode","tree-node-expand",t),this.$emit("node-expand",e,t,n)},updateKeyChildren:function(e,t){if(!this.nodeKey)throw new Error("[Tree] nodeKey is required in updateKeyChild");this.store.updateChildren(e,t)},initTabIndex:function(){this.treeItems=this.$el.querySelectorAll(".is-focusable[role=treeitem]"),this.checkboxItems=this.$el.querySelectorAll("input[type=checkbox]");var e=this.$el.querySelectorAll(".is-checked[role=treeitem]");e.length?e[0].setAttribute("tabindex",0):this.treeItems[0]&&this.treeItems[0].setAttribute("tabindex",0)},handleKeydown:function(e){var t=e.target;if(-1!==t.className.indexOf("el-tree-node")){var n=e.keyCode;this.treeItems=this.$el.querySelectorAll(".is-focusable[role=treeitem]");var i=this.treeItemArray.indexOf(t),r=void 0;[38,40].indexOf(n)>-1&&(e.preventDefault(),r=38===n?0!==i?i-1:0:i' + htmlStr + '
';
+ return htmlStr;
+ },
+ processObject: function (obj, keyName, indent, addComma, isArray, isPropertyContent, showAnnotation) {
+ var html = "";
+ var comma = (addComma) ? ", " : "";
+ var type = typeof obj;
+ if (this.isArray(obj)) {
+ if (obj.length == 0) {
+ html += this.getRow(indent, "[ ]" + comma, isPropertyContent);
+ } else {
+ var clpsHtml = '
';
+ var annotation = '';
+ if (showAnnotation && !!keyName && !!this.annotationObject[keyName]) {
+ annotation = '// ' + this.annotationObject[keyName] + '';
+ }
+ html += this.getRow(indent, "[" + clpsHtml + annotation, isPropertyContent);
+ for (var i = 0; i < obj.length; i++) {
+ html += this.processObject(obj[i], "", indent + 1, i < (obj.length - 1), true, false, showAnnotation);
+ }
+ clpsHtml = "";
+ html += this.getRow(indent, clpsHtml + "]" + comma);
+ }
+ } else if (type == 'object' && obj == null) {
+ html += this.formatLiteral("null", "", comma, indent, isArray, "null");
+ } else if (type == 'object') {
+ var numProps = 0;
+ for (var prop in obj) {
+ numProps++;
+ }
+ if (numProps == 0) {
+ html += this.getRow(indent, "{ }" + comma, isPropertyContent);
+ } else {
+ var clpsHtml = '
';
+ var annotation = '';
+ if (showAnnotation && !!keyName && !!this.annotationObject[keyName]) {
+ annotation = '// ' + this.annotationObject[keyName] + '';
+ }
+ html += this.getRow(indent, "{" + clpsHtml + annotation, isPropertyContent);
+ var j = 0;
+ for (var prop in obj) {
+ var processStr = '"' + prop + '": ' + this.processObject(obj[prop], prop, indent + 1, ++j < numProps, false, true, showAnnotation);
+ html += this.getRow(indent + 1, processStr);
+ }
+ clpsHtml = "";
+ html += this.getRow(indent, clpsHtml + "}" + comma);
+ }
+ } else if (type == 'number') {
+ html += this.formatLiteral(obj, "", comma, indent, isArray, "number");
+ } else if (type == 'boolean') {
+ html += this.formatLiteral(obj, "", comma, indent, isArray, "boolean");
+ } else if (type == 'function') {
+ obj = this.formatFunction(indent, obj);
+ html += this.formatLiteral(obj, "", comma, indent, isArray, "function");
+ } else if (type == 'undefined') {
+ html += this.formatLiteral("undefined", "", comma, indent, isArray, "null");
+ } else {
+ html += this.formatLiteral(obj, "\"", comma, indent, isArray, "string");
+ }
+ return html;
+ },
+ expImgClicked: function (img) {
+ var container = img.parentNode.nextSibling;
+ if (!container) return;
+ var disp = "none";
+ var src = "webjars/doc-dubbo/img/collapsed.png";
+ if (container.style.display == "none") {
+ disp = "inline";
+ src = "webjars/doc-dubbo/img/expanded.png";
+ }
+ container.style.display = disp;
+ img.src = src;
+ },
+ formatLiteral: function (literal, quote, comma, indent, isArray, style) {
+ if (typeof literal == 'string') {
+ literal = literal.split("<").join("<").split(">").join(">");
+ }
+ var str = "" + quote + literal + quote + comma + "";
+ if (isArray) {
+ str = this.getRow(indent, str);
+ }
+ return str;
+ },
+ formatFunction: function (indent, obj) {
+ var tabs = "";
+ for (var i = 0; i < indent; i++) {
+ tabs += this.tabStr;
+ }
+ var funcStrArray = obj.toString().split("\n");
+ var str = "";
+ for (var i = 0; i < funcStrArray.length; i++) {
+ str += ((i == 0) ? "" : tabs) + funcStrArray[i] + "\n";
+ }
+ return str;
+ },
+ getRow: function (indent, data, isPropertyContent) {
+ var tabs = "";
+ for (var i = 0; i < indent && !isPropertyContent; i++) {
+ tabs += this.tabStr;
+ }
+ if (data != null && data.length > 0 && data.charAt(data.length - 1) != "\n") {
+ data = data + "\n";
+ }
+ return tabs + data;
+ }
+};
+window.Formatjson = Formatjson;
+export default Formatjson;
+
diff --git a/zyplayer-doc-ui/dubbo-ui/src/components/layouts/PageTableView.vue b/zyplayer-doc-ui/dubbo-ui/src/components/layouts/PageTableView.vue
index 4c63c9db..1dda6dfd 100644
--- a/zyplayer-doc-ui/dubbo-ui/src/components/layouts/PageTableView.vue
+++ b/zyplayer-doc-ui/dubbo-ui/src/components/layouts/PageTableView.vue
@@ -4,13 +4,14 @@