From d13197204fb141970bd6dd889754d09229a521f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BB=8E=E4=BC=9F=E6=9D=B0?= <674416404@qq.com> Date: Fri, 20 Sep 2024 12:08:38 +0800 Subject: [PATCH] fix(site): triggerElements --- .../_site/assets/{index.927e92f8.js => index.63152407.js} | 4 ++-- .../_site/assets/{index.0c12acca.js => index.65680dd1.js} | 2 +- .../_site/assets/{preview.b0e92229.js => preview.b804e12d.js} | 2 +- packages/frontend/_site/index.html | 2 +- packages/frontend/src/pages/api/import.vue | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) rename packages/frontend/_site/assets/{index.927e92f8.js => index.63152407.js} (99%) rename packages/frontend/_site/assets/{index.0c12acca.js => index.65680dd1.js} (99%) rename packages/frontend/_site/assets/{preview.b0e92229.js => preview.b804e12d.js} (75%) diff --git a/packages/frontend/_site/assets/index.927e92f8.js b/packages/frontend/_site/assets/index.63152407.js similarity index 99% rename from packages/frontend/_site/assets/index.927e92f8.js rename to packages/frontend/_site/assets/index.63152407.js index 5acd1ebf0..0092ca3be 100644 --- a/packages/frontend/_site/assets/index.927e92f8.js +++ b/packages/frontend/_site/assets/index.63152407.js @@ -1,4 +1,4 @@ -import{c as Gi,u as Pd,a as Xc,n as qi,B as $y,b as Id,P as My,C as Nd,d as Rd,S as Zc,O as Qc,k as Fd,p as Py,I as Iy,e as Bd,f as Ny,R as Ry,g as Fy,V as Bl,h as By,i as ys,j as Wy,D as Uy,L as Hy}from"./index.0c12acca.js";import zy from"https://tdesign.gtimg.com/js/prettier%402.8.1-standalone.mjs";import jy from"https://tdesign.gtimg.com/js/prettier%402.8.1-parser-babel.mjs";var Wd={exports:{}},ep={exports:{}};(function(a,u){(function(s,p){a.exports=p()})(Gi,function(){var s=navigator.userAgent,p=navigator.platform,h=/gecko\/\d/i.test(s),b=/MSIE \d/.test(s),w=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(s),_=/Edge\/(\d+)/.exec(s),k=b||w||_,M=k&&(b?document.documentMode||6:+(_||w)[1]),O=!_&&/WebKit\//.test(s),H=O&&/Qt\/\d+\.\d+/.test(s),j=!_&&/Chrome\/(\d+)/.exec(s),J=j&&+j[1],Q=/Opera\//.test(s),ae=/Apple Computer/.test(navigator.vendor),le=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(s),re=/PhantomJS/.test(s),N=ae&&(/Mobile\/\w+/.test(s)||navigator.maxTouchPoints>2),B=/Android/.test(s),q=N||B||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(s),Y=N||/Mac/.test(p),ne=/\bCrOS\b/.test(s),de=/win/i.test(p),_e=Q&&s.match(/Version\/(\d*\.\d*)/);_e&&(_e=Number(_e[1])),_e&&_e>=15&&(Q=!1,O=!0);var ve=Y&&(H||Q&&(_e==null||_e<12.11)),ze=h||k&&M>=9;function tt(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var ht=function(e,t){var i=e.className,r=tt(t).exec(i);if(r){var l=i.slice(r.index+r[0].length);e.className=i.slice(0,r.index)+(l?r[1]+l:"")}};function Z(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild);return e}function me(e,t){return Z(e).appendChild(t)}function $(e,t,i,r){var l=document.createElement(e);if(i&&(l.className=i),r&&(l.style.cssText=r),typeof t=="string")l.appendChild(document.createTextNode(t));else if(t)for(var c=0;c=t)return d+(t-c);d+=v-c,d+=i-d%i,c=v+1}}var dn=function(){this.id=null,this.f=null,this.time=0,this.handler=Ee(this.onTimeout,this)};dn.prototype.onTimeout=function(e){e.id=0,e.time<=+new Date?e.f():setTimeout(e.handler,e.time-+new Date)},dn.prototype.set=function(e,t){this.f=t;var i=+new Date+e;(!this.id||i=t)return r+Math.min(d,t-l);if(l+=c-r,l+=i-l%i,r=c+1,l>=t)return r}}var pr=[""];function Na(e){for(;pr.length<=e;)pr.push(Ue(pr)+" ");return pr[e]}function Ue(e){return e[e.length-1]}function Qt(e,t){for(var i=[],r=0;r"\x80"&&(e.toUpperCase()!=e.toLowerCase()||yi.test(e))}function Cn(e,t){return t?t.source.indexOf("\\w")>-1&&Ra(e)?!0:t.test(e):Ra(e)}function Lr(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return!1;return!0}var jn=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function bt(e){return e.charCodeAt(0)>=768&&jn.test(e)}function dr(e,t,i){for(;(i<0?t>0:ti?-1:1;;){if(t==i)return t;var l=(t+i)/2,c=r<0?Math.ceil(l):Math.floor(l);if(c==t)return e(c)?t:i;e(c)?i=c:t=c+r}}function hr(e,t,i,r){if(!e)return r(t,i,"ltr",0);for(var l=!1,c=0;ct||t==i&&d.to==t)&&(r(Math.max(d.from,t),Math.min(d.to,i),d.level==1?"rtl":"ltr",c),l=!0)}l||r(t,i,"ltr")}var $r=null;function gr(e,t,i){var r;$r=null;for(var l=0;lt)return l;c.to==t&&(c.from!=c.to&&i=="before"?r=l:$r=l),c.from==t&&(c.from!=c.to&&i!="before"?r=l:$r=l)}return r!=null?r:$r}var Fa=function(){var e="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",t="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function i(y){return y<=247?e.charAt(y):1424<=y&&y<=1524?"R":1536<=y&&y<=1785?t.charAt(y-1536):1774<=y&&y<=2220?"r":8192<=y&&y<=8203?"w":y==8204?"b":"L"}var r=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,l=/[stwN]/,c=/[LRr]/,d=/[Lb1n]/,v=/[1n]/;function m(y,E,D){this.level=y,this.from=E,this.to=D}return function(y,E){var D=E=="ltr"?"L":"R";if(y.length==0||E=="ltr"&&!r.test(y))return!1;for(var R=y.length,I=[],G=0;G-1&&(r[t]=l.slice(0,c).concat(l.slice(c+1)))}}}function ft(e,t){var i=Mr(e,t);if(!!i.length)for(var r=Array.prototype.slice.call(arguments,2),l=0;l0}function Gn(e){e.prototype.on=function(t,i){we(this,t,i)},e.prototype.off=function(t,i){Kt(this,t,i)}}function Yt(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function Vi(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function un(e){return e.defaultPrevented!=null?e.defaultPrevented:e.returnValue==!1}function Vr(e){Yt(e),Vi(e)}function bi(e){return e.target||e.srcElement}function qn(e){var t=e.which;return t==null&&(e.button&1?t=1:e.button&2?t=3:e.button&4&&(t=2)),Y&&e.ctrlKey&&t==1&&(t=3),t}var Ba=function(){if(k&&M<9)return!1;var e=$("div");return"draggable"in e||"dragDrop"in e}(),Ki;function Eo(e){if(Ki==null){var t=$("span","\u200B");me(e,$("span",[t,document.createTextNode("x")])),e.firstChild.offsetHeight!=0&&(Ki=t.offsetWidth<=1&&t.offsetHeight>2&&!(k&&M<8))}var i=Ki?$("span","\u200B"):$("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return i.setAttribute("cm-text",""),i}var Wa;function Kr(e){if(Wa!=null)return Wa;var t=me(e,document.createTextNode("A\u062EA")),i=gt(t,0,1).getBoundingClientRect(),r=gt(t,1,2).getBoundingClientRect();return Z(e),!i||i.left==i.right?!1:Wa=r.right-i.right<3}var Mn=` +import{c as Gi,u as Pd,a as Xc,n as qi,B as $y,b as Id,P as My,C as Nd,d as Rd,S as Zc,O as Qc,k as Fd,p as Py,I as Iy,e as Bd,f as Ny,R as Ry,g as Fy,V as Bl,h as By,i as ys,j as Wy,D as Uy,L as Hy}from"./index.65680dd1.js";import zy from"https://tdesign.gtimg.com/js/prettier%402.8.1-standalone.mjs";import jy from"https://tdesign.gtimg.com/js/prettier%402.8.1-parser-babel.mjs";var Wd={exports:{}},ep={exports:{}};(function(a,u){(function(s,p){a.exports=p()})(Gi,function(){var s=navigator.userAgent,p=navigator.platform,h=/gecko\/\d/i.test(s),b=/MSIE \d/.test(s),w=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(s),_=/Edge\/(\d+)/.exec(s),k=b||w||_,M=k&&(b?document.documentMode||6:+(_||w)[1]),O=!_&&/WebKit\//.test(s),H=O&&/Qt\/\d+\.\d+/.test(s),j=!_&&/Chrome\/(\d+)/.exec(s),J=j&&+j[1],Q=/Opera\//.test(s),ae=/Apple Computer/.test(navigator.vendor),le=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(s),re=/PhantomJS/.test(s),N=ae&&(/Mobile\/\w+/.test(s)||navigator.maxTouchPoints>2),B=/Android/.test(s),q=N||B||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(s),Y=N||/Mac/.test(p),ne=/\bCrOS\b/.test(s),de=/win/i.test(p),_e=Q&&s.match(/Version\/(\d*\.\d*)/);_e&&(_e=Number(_e[1])),_e&&_e>=15&&(Q=!1,O=!0);var ve=Y&&(H||Q&&(_e==null||_e<12.11)),ze=h||k&&M>=9;function tt(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var ht=function(e,t){var i=e.className,r=tt(t).exec(i);if(r){var l=i.slice(r.index+r[0].length);e.className=i.slice(0,r.index)+(l?r[1]+l:"")}};function Z(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild);return e}function me(e,t){return Z(e).appendChild(t)}function $(e,t,i,r){var l=document.createElement(e);if(i&&(l.className=i),r&&(l.style.cssText=r),typeof t=="string")l.appendChild(document.createTextNode(t));else if(t)for(var c=0;c=t)return d+(t-c);d+=v-c,d+=i-d%i,c=v+1}}var dn=function(){this.id=null,this.f=null,this.time=0,this.handler=Ee(this.onTimeout,this)};dn.prototype.onTimeout=function(e){e.id=0,e.time<=+new Date?e.f():setTimeout(e.handler,e.time-+new Date)},dn.prototype.set=function(e,t){this.f=t;var i=+new Date+e;(!this.id||i=t)return r+Math.min(d,t-l);if(l+=c-r,l+=i-l%i,r=c+1,l>=t)return r}}var pr=[""];function Na(e){for(;pr.length<=e;)pr.push(Ue(pr)+" ");return pr[e]}function Ue(e){return e[e.length-1]}function Qt(e,t){for(var i=[],r=0;r"\x80"&&(e.toUpperCase()!=e.toLowerCase()||yi.test(e))}function Cn(e,t){return t?t.source.indexOf("\\w")>-1&&Ra(e)?!0:t.test(e):Ra(e)}function Lr(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return!1;return!0}var jn=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function bt(e){return e.charCodeAt(0)>=768&&jn.test(e)}function dr(e,t,i){for(;(i<0?t>0:ti?-1:1;;){if(t==i)return t;var l=(t+i)/2,c=r<0?Math.ceil(l):Math.floor(l);if(c==t)return e(c)?t:i;e(c)?i=c:t=c+r}}function hr(e,t,i,r){if(!e)return r(t,i,"ltr",0);for(var l=!1,c=0;ct||t==i&&d.to==t)&&(r(Math.max(d.from,t),Math.min(d.to,i),d.level==1?"rtl":"ltr",c),l=!0)}l||r(t,i,"ltr")}var $r=null;function gr(e,t,i){var r;$r=null;for(var l=0;lt)return l;c.to==t&&(c.from!=c.to&&i=="before"?r=l:$r=l),c.from==t&&(c.from!=c.to&&i!="before"?r=l:$r=l)}return r!=null?r:$r}var Fa=function(){var e="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",t="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function i(y){return y<=247?e.charAt(y):1424<=y&&y<=1524?"R":1536<=y&&y<=1785?t.charAt(y-1536):1774<=y&&y<=2220?"r":8192<=y&&y<=8203?"w":y==8204?"b":"L"}var r=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,l=/[stwN]/,c=/[LRr]/,d=/[Lb1n]/,v=/[1n]/;function m(y,E,D){this.level=y,this.from=E,this.to=D}return function(y,E){var D=E=="ltr"?"L":"R";if(y.length==0||E=="ltr"&&!r.test(y))return!1;for(var R=y.length,I=[],G=0;G-1&&(r[t]=l.slice(0,c).concat(l.slice(c+1)))}}}function ft(e,t){var i=Mr(e,t);if(!!i.length)for(var r=Array.prototype.slice.call(arguments,2),l=0;l0}function Gn(e){e.prototype.on=function(t,i){we(this,t,i)},e.prototype.off=function(t,i){Kt(this,t,i)}}function Yt(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function Vi(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function un(e){return e.defaultPrevented!=null?e.defaultPrevented:e.returnValue==!1}function Vr(e){Yt(e),Vi(e)}function bi(e){return e.target||e.srcElement}function qn(e){var t=e.which;return t==null&&(e.button&1?t=1:e.button&2?t=3:e.button&4&&(t=2)),Y&&e.ctrlKey&&t==1&&(t=3),t}var Ba=function(){if(k&&M<9)return!1;var e=$("div");return"draggable"in e||"dragDrop"in e}(),Ki;function Eo(e){if(Ki==null){var t=$("span","\u200B");me(e,$("span",[t,document.createTextNode("x")])),e.firstChild.offsetHeight!=0&&(Ki=t.offsetWidth<=1&&t.offsetHeight>2&&!(k&&M<8))}var i=Ki?$("span","\u200B"):$("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return i.setAttribute("cm-text",""),i}var Wa;function Kr(e){if(Wa!=null)return Wa;var t=me(e,document.createTextNode("A\u062EA")),i=gt(t,0,1).getBoundingClientRect(),r=gt(t,1,2).getBoundingClientRect();return Z(e),!i||i.left==i.right?!1:Wa=r.right-i.right<3}var Mn=` b`.split(/\n/).length!=3?function(e){for(var t=0,i=[],r=e.length;t<=r;){var l=e.indexOf(` `,t);l==-1&&(l=e.length);var c=e.slice(t,e.charAt(l-1)=="\r"?l-1:l),d=c.indexOf("\r");d!=-1?(i.push(c.slice(0,d)),t+=d+1):(i.push(c),t=l+1)}return i}:function(e){return e.split(/\r\n?|\n/)},Yr=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch{return!1}}:function(e){var t;try{t=e.ownerDocument.selection.createRange()}catch{}return!t||t.parentElement()!=e?!1:t.compareEndPoints("StartToEnd",t)!=0},Do=function(){var e=$("div");return"oncopy"in e?!0:(e.setAttribute("oncopy","return;"),typeof e.oncopy=="function")}(),Vn=null;function Ao(e){if(Vn!=null)return Vn;var t=me(e,$("span","x")),i=t.getBoundingClientRect(),r=gt(t,0,1).getBoundingClientRect();return Vn=Math.abs(i.left-r.left)>1}var Yi={},Kn={};function Yn(e,t){arguments.length>2&&(t.dependencies=Array.prototype.slice.call(arguments,2)),Yi[e]=t}function xi(e,t){Kn[e]=t}function Ji(e){if(typeof e=="string"&&Kn.hasOwnProperty(e))e=Kn[e];else if(e&&typeof e.name=="string"&&Kn.hasOwnProperty(e.name)){var t=Kn[e.name];typeof t=="string"&&(t={name:t}),e=wo(t,e),e.name=t.name}else{if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return Ji("application/xml");if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return Ji("application/json")}return typeof e=="string"?{name:e}:e||{name:"null"}}function Xi(e,t){t=Ji(t);var i=Yi[t.name];if(!i)return Xi(e,"text/plain");var r=i(e,t);if(Jn.hasOwnProperty(t.name)){var l=Jn[t.name];for(var c in l)!l.hasOwnProperty(c)||(r.hasOwnProperty(c)&&(r["_"+c]=r[c]),r[c]=l[c])}if(r.name=t.name,t.helperType&&(r.helperType=t.helperType),t.modeProps)for(var d in t.modeProps)r[d]=t.modeProps[d];return r}var Jn={};function Zi(e,t){var i=Jn.hasOwnProperty(e)?Jn[e]:Jn[e]={};ke(t,i)}function _n(e,t){if(t===!0)return t;if(e.copyState)return e.copyState(t);var i={};for(var r in t){var l=t[r];l instanceof Array&&(l=l.concat([])),i[r]=l}return i}function Ua(e,t){for(var i;e.innerMode&&(i=e.innerMode(t),!(!i||i.mode==e));)t=i.state,e=i.mode;return i||{mode:e,state:t}}function Qi(e,t,i){return e.startState?e.startState(t,i):!0}var Ct=function(e,t,i){this.pos=this.start=0,this.string=e,this.tabSize=t||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=i};Ct.prototype.eol=function(){return this.pos>=this.string.length},Ct.prototype.sol=function(){return this.pos==this.lineStart},Ct.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Ct.prototype.next=function(){if(this.post},Ct.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},Ct.prototype.skipToEnd=function(){this.pos=this.string.length},Ct.prototype.skipTo=function(e){var t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0},Ct.prototype.backUp=function(e){this.pos-=e},Ct.prototype.column=function(){return this.lastColumnPos0?null:(c&&t!==!1&&(this.pos+=c[0].length),c)}},Ct.prototype.current=function(){return this.string.slice(this.start,this.pos)},Ct.prototype.hideFirstChars=function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}},Ct.prototype.lookAhead=function(e){var t=this.lineOracle;return t&&t.lookAhead(e)},Ct.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};function be(e,t){if(t-=e.first,t<0||t>=e.size)throw new Error("There is no line "+(t+e.first)+" in the document.");for(var i=e;!i.lines;)for(var r=0;;++r){var l=i.children[r],c=l.chunkSize();if(t=e.first&&ti?z(i,be(e,i).text.length):Ul(t,be(e,t.line).text.length)}function Ul(e,t){var i=e.ch;return i==null||i>t?z(e.line,t):i<0?z(e.line,0):e}function $s(e,t){for(var i=[],r=0;rthis.maxLookAhead&&(this.maxLookAhead=e),t},mr.prototype.baseToken=function(e){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=e;)this.baseTokenPos+=2;var t=this.baseTokens[this.baseTokenPos+1];return{type:t&&t.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-e}},mr.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},mr.fromSaved=function(e,t,i){return t instanceof ta?new mr(e,_n(e.mode,t.state),i,t.lookAhead):new mr(e,_n(e.mode,t),i)},mr.prototype.save=function(e){var t=e!==!1?_n(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new ta(t,this.maxLookAhead):t};function Ms(e,t,i,r){var l=[e.state.modeGen],c={};Rs(e,t.text,e.doc.mode,i,function(y,E){return l.push(y,E)},c,r);for(var d=i.state,v=function(y){i.baseTokens=l;var E=e.state.overlays[y],D=1,R=0;i.state=!0,Rs(e,t.text,E.mode,i,function(I,G){for(var X=D;RI&&l.splice(D,1,I,l[D+1],se),D+=2,R=Math.min(I,se)}if(!!G)if(E.opaque)l.splice(X,D-X,I,"overlay "+G),D=X+2;else for(;Xe.options.maxHighlightLength&&_n(e.doc.mode,r.state),c=Ms(e,t,r);l&&(r.state=l),t.stateAfter=r.save(!l),t.styles=c.styles,c.classes?t.styleClasses=c.classes:t.styleClasses&&(t.styleClasses=null),i===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return t.styles}function Ci(e,t,i){var r=e.doc,l=e.display;if(!r.mode.startState)return new mr(r,!0,t);var c=zl(e,t,i),d=c>r.first&&be(r,c-1).stateAfter,v=d?mr.fromSaved(r,d,c):new mr(r,Qi(r.mode),c);return r.iter(c,t,function(m){Jr(e,m.text,v);var y=v.line;m.stateAfter=y==t-1||y%5==0||y>=l.viewFrom&&yt.start)return c}throw new Error("Mode "+e.name+" failed to advance stream.")}var Hl=function(e,t,i){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=t||null,this.state=i};function Is(e,t,i,r){var l=e.doc,c=l.mode,d;t=Me(l,t);var v=be(l,t.line),m=Ci(e,t.line,i),y=new Ct(v.text,e.options.tabSize,m),E;for(r&&(E=[]);(r||y.pose.options.maxHighlightLength?(v=!1,d&&Jr(e,t,r,E.pos),E.pos=t.length,D=null):D=Ns(ko(i,E,r.state,R),c),R){var I=R[0].name;I&&(D="m-"+(D?I+" "+D:I))}if(!v||y!=D){for(;md;--v){if(v<=c.first)return c.first;var m=be(c,v-1),y=m.stateAfter;if(y&&(!i||v+(y instanceof ta?y.lookAhead:0)<=c.modeFrontier))return v;var E=We(m.text,null,e.options.tabSize);(l==null||r>E)&&(l=v-1,r=E)}return l}function wf(e,t){if(e.modeFrontier=Math.min(e.modeFrontier,t),!(e.highlightFrontieri;r--){var l=be(e,r).stateAfter;if(l&&(!(l instanceof ta)||r+l.lookAhead=t:c.to>t);(r||(r=[])).push(new Lo(d,c.from,m?null:c.to))}}return r}function Af(e,t,i){var r;if(e)for(var l=0;l=t:c.to>t);if(v||c.from==t&&d.type=="bookmark"&&(!i||c.marker.insertLeft)){var m=c.from==null||(d.inclusiveLeft?c.from<=t:c.from0&&v)for(var he=0;he0)){var E=[m,1],D=ce(y.from,v.from),R=ce(y.to,v.to);(D<0||!d.inclusiveLeft&&!D)&&E.push({from:y.from,to:v.from}),(R>0||!d.inclusiveRight&&!R)&&E.push({from:v.to,to:y.to}),l.splice.apply(l,E),m+=E.length-3}}return l}function lt(e){var t=e.markedSpans;if(!!t){for(var i=0;it)&&(!r||Ws(r,c.marker)<0)&&(r=c.marker)}return r}function Jl(e,t,i,r,l){var c=be(e,t),d=Ir&&c.markedSpans;if(d)for(var v=0;v=0&&D<=0||E<=0&&D>=0)&&(E<=0&&(m.marker.inclusiveRight&&l.inclusiveLeft?ce(y.to,i)>=0:ce(y.to,i)>0)||E>=0&&(m.marker.inclusiveRight&&l.inclusiveLeft?ce(y.from,r)<=0:ce(y.from,r)<0)))return!0}}}function st(e){for(var t;t=Kl(e);)e=t.find(-1,!0).line;return e}function Us(e){for(var t;t=Po(e);)e=t.find(1,!0).line;return e}function _i(e){for(var t,i;t=Po(e);)e=t.find(1,!0).line,(i||(i=[])).push(e);return i}function Io(e,t){var i=be(e,t),r=st(i);return i==r?t:C(r)}function No(e,t){if(t>e.lastLine())return t;var i=be(e,t),r;if(!Bt(e,i))return t;for(;r=Po(i);)i=r.find(1,!0).line;return C(i)+1}function Bt(e,t){var i=Ir&&t.markedSpans;if(i){for(var r=void 0,l=0;lt.maxLineLength&&(t.maxLineLength=l,t.maxLine=r)})}var Si=function(e,t,i){this.text=e,ot(this,t),this.height=i?i(this):1};Si.prototype.lineNo=function(){return C(this)},Gn(Si);function Xl(e,t,i,r){e.text=t,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),e.order!=null&&(e.order=null),lt(e),ot(e,i);var l=r?r(e):1;l!=e.height&&Sn(e,l)}function wn(e){e.parent=null,lt(e)}var kf={},Pn={};function Zl(e,t){if(!e||/^\s*$/.test(e))return null;var i=t.addModeClass?Pn:kf;return i[e]||(i[e]=e.replace(/\S+/g,"cm-$&"))}function Hs(e,t){var i=pn("span",null,null,O?"padding-right: .1px":null),r={pre:pn("pre",[i],"CodeMirror-line"),content:i,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:e.getOption("lineWrapping")};t.measure={};for(var l=0;l<=(t.rest?t.rest.length:0);l++){var c=l?t.rest[l-1]:t.line,d=void 0;r.pos=0,r.addToken=Bo,Kr(e.display.measure)&&(d=Re(c,e.doc.direction))&&(r.addToken=ct(r.addToken,d)),r.map=[];var v=t!=e.display.externalMeasured&&C(c);js(c,r,Oo(e,c,v)),c.styleClasses&&(c.styleClasses.bgClass&&(r.bgClass=mt(c.styleClasses.bgClass,r.bgClass||"")),c.styleClasses.textClass&&(r.textClass=mt(c.styleClasses.textClass,r.textClass||""))),r.map.length==0&&r.map.push(0,0,r.content.appendChild(Eo(e.display.measure))),l==0?(t.measure.map=r.map,t.measure.cache={}):((t.measure.maps||(t.measure.maps=[])).push(r.map),(t.measure.caches||(t.measure.caches=[])).push({}))}if(O){var m=r.content.lastChild;(/\bcm-tab\b/.test(m.className)||m.querySelector&&m.querySelector(".cm-tab"))&&(r.content.className="cm-tab-wrap-hack")}return ft(e,"renderLine",e,t.line,r.pre),r.pre.className&&(r.textClass=mt(r.pre.className,r.textClass||"")),r}function Xr(e){var t=$("span","\u2022","cm-invalidchar");return t.title="\\u"+e.charCodeAt(0).toString(16),t.setAttribute("aria-label",t.title),t}function Bo(e,t,i,r,l,c,d){if(!!t){var v=e.splitSpaces?zs(t,e.trailingSpace):t,m=e.cm.state.specialChars,y=!1,E;if(!m.test(t))e.col+=t.length,E=document.createTextNode(v),e.map.push(e.pos,e.pos+t.length,E),k&&M<9&&(y=!0),e.pos+=t.length;else{E=document.createDocumentFragment();for(var D=0;;){m.lastIndex=D;var R=m.exec(t),I=R?R.index-D:t.length-D;if(I){var G=document.createTextNode(v.slice(D,D+I));k&&M<9?E.appendChild($("span",[G])):E.appendChild(G),e.map.push(e.pos,e.pos+I,G),e.col+=I,e.pos+=I}if(!R)break;D+=I+1;var X=void 0;if(R[0]==" "){var se=e.cm.options.tabSize,fe=se-e.col%se;X=E.appendChild($("span",Na(fe),"cm-tab")),X.setAttribute("role","presentation"),X.setAttribute("cm-text"," "),e.col+=fe}else R[0]=="\r"||R[0]==` @@ -123,7 +123,7 @@ it${j}(${ae}, ${J} () => {`,zc(M),"const fn = vi.fn();",_o(s,p,{[u.field_name]:" `)}function GC(a,u,s,p){const h=jC(a,u,s,p);return Lh(h,a)}function qC(a,u){a&&(a.afterAll.length&&u.unshift("afterAll(() => {",a.afterAll.join(` `),"});"),a.afterEach.length&&u.unshift("afterEach(() => {",a.afterEach.join(` `),"});"),a.beforeAll.length&&u.unshift("beforeAll(() => {",a.beforeAll.join(` -`),"});"),a.variables.length&&u.unshift(...a.variables))}var VC={getUnitTestCode:Lh,getOneUnitTest:kh,getComponentUnitTests:GC};(function(a,u){const{getComponentUnitTests:s,getOneUnitTest:p}=VC;a.exports={getComponentUnitTests:s,getOneUnitTest:p},u.getComponentUnitTests=s,u.getOneUnitTest=p,u.default=s,Object.defineProperty(u,"__esModule",{value:!0})})(mf,mf.exports);var KC=function(){var a=this,u=a.$createElement,s=a._self._c||u;return s("form",{staticClass:"t-form api-edit-form",attrs:{onsubmit:"return false"}},[s("div",{staticClass:"t-form-item"},[s("label",[a._v("\u8BBE\u8BA1\u7EC4\u4EF6\uFF1A")]),s("div",{staticClass:"t-form-content"},[s("t-select",{attrs:{placeholder:"\u8BF7\u9009\u62E9\u7EC4\u4EF6",clearable:"",filterable:""},model:{value:a.formData.component,callback:function(p){a.$set(a.formData,"component",p)},expression:"formData.component"}},a._l(a.components,function(p,h){return s("t-option",{key:h,attrs:{label:`${p.value} ${p.label}`,value:p.value}})}),1)],1)]),s("div",{staticClass:"t-form-item"},[s("label",{staticStyle:{"vertical-align":"top"}},[a._v("\u6846\u67B6\u5E73\u53F0\uFF1A")]),s("div",{staticClass:"t-form-content platform"},[s("site-checkbox",{attrs:{options:a.platformOptions},model:{value:a.formData.platform,callback:function(p){a.$set(a.formData,"platform",p)},expression:"formData.platform"}})],1)]),s("div",{staticClass:"t-form-item"},[s("label",[a._v(" API \u7C7B\u522B "),s("t-popup",{staticClass:"placement-top",attrs:{content:"Extends \u8868\u793A\u7EC4\u4EF6/\u63D2\u4EF6\u4F1A\u7EE7\u627F\u5F53\u524D API \u6240\u6709\u5C5E\u6027\u3002Return \u8868\u793A\u63D2\u4EF6\u6216\u51FD\u6570\u7684\u8FD4\u56DE\u503C\u3002 \u8868\u793A\u6CDB\u578B\u53C2\u6570",placement:"top-left",visibleArrow:""}},[s("t-icon",{attrs:{name:"help-circle",size:"middle"}})],1),a._v("\uFF1A ")],1),s("div",{staticClass:"t-form-content"},[s("t-radio-group",{model:{value:a.formData.apiCategory,callback:function(p){a.$set(a.formData,"apiCategory",p)},expression:"formData.apiCategory"}},a._l(a.map.field_category,function(p,h){return s("t-radio",{key:h,attrs:{value:p.value}},[a._v(a._s(p.label))])}),1)],1)]),s("div",{staticClass:"t-form-item"},[s("label",[a._v("API \u540D\u79F0\uFF1A")]),s("div",{staticClass:"t-form-content"},[s("t-input",{attrs:{placeholder:a.currentApiCategory.placeholder.name},model:{value:a.formData.name,callback:function(p){a.$set(a.formData,"name",p)},expression:"formData.name"}}),a.currentApiCategory.desc?s("small",[a._v("\u793A\u4F8B\uFF1A`"+a._s(a.currentApiCategory.desc)+"'`")]):a._e()],1)]),a.formData.apiCategory===a.API_CATEGORY_CSS_VAR_API?[s("div",{staticClass:"t-form-item"},[s("label",[a._v("\u9ED8\u8BA4\u503C\uFF1A")]),s("div",{staticClass:"t-form-content"},[s("t-input",{attrs:{placeholder:"\u8BF7\u8F93\u5165\u5B57\u6BB5\u9ED8\u8BA4\u503C"},model:{value:a.formData.defaultValue,callback:function(p){a.$set(a.formData,"defaultValue",p)},expression:"formData.defaultValue"}})],1)])]:a._e(),s("div",{directives:[{name:"show",rawName:"v-show",value:a.isShowSugar,expression:"isShowSugar"}],staticClass:"t-form-item"},[s("label",[a._v("\u8BED\u6CD5\u7CD6(Vue)\uFF1A")]),s("div",{staticClass:"t-form-content"},[s("t-radio-group",{model:{value:a.formData.syntacticSugar,callback:function(p){a.$set(a.formData,"syntacticSugar",p)},expression:"formData.syntacticSugar"}},[s("t-radio",{attrs:{value:""}},[a._v("\u65E0")]),s("t-radio",{attrs:{value:"v-model"}},[s("t-tooltip",{attrs:{content:"\u5728 Vue3 \u4E2D\u8868\u793A v-model:modelValue"}},[a._v("v-model")])],1),s("t-radio",{attrs:{value:"sync"}},[s("t-tooltip",{attrs:{content:"\u5728 Vue3 \u4E2D\u8868\u793A v-model:xxx"}},[a._v(".sync")])],1)],1)],1)]),a.isShowSugar?s("div",{staticClass:"t-form-item"},[s("label"),s("div",{staticClass:"t-form-content"},[s("t-checkbox",{model:{value:a.formData.supportDefaultValue,callback:function(p){a.$set(a.formData,"supportDefaultValue",p)},expression:"formData.supportDefaultValue"}},[a._v("\u662F\u5426\u652F\u6301\u975E\u53D7\u63A7\u5C5E\u6027")])],1)]):a._e(),[a.API_CATEGORY_PROPS,a.API_CATEGORY_PLUGINS].includes(Number(a.formData.apiCategory))?[s("div",{staticClass:"t-form-item"},[s("label",{staticStyle:{"vertical-align":"top"}},[s("span",[a._v("API \u7C7B\u578B")]),s("t-popup",{staticClass:"placement-top",attrs:{content:"\u3010Tips\u3011TNode \u662F TDesign \u5B9A\u4E49\u7684\u4E00\u79CD\u96C6\u5408\u6570\u636E\u7C7B\u578B\uFF0C\u7528\u4E8E\u63CF\u8FF0\u591A\u7C7B\u578B API\u3002TNode = Function + Slot + ReactNode",placement:"top-left",visibleArrow:""}},[s("t-icon",{attrs:{name:"help-circle",size:"middle"}})],1),a._v("\uFF1A ")],1),s("div",{staticClass:"t-form-content api-type"},[s("t-checkbox-group",{on:{change:a.onFieldTypeChange},model:{value:a.formData.fieldType,callback:function(p){a.$set(a.formData,"fieldType",p)},expression:"formData.fieldType"}},a._l(a.fieldOptions,function(p){return s("t-checkbox",{key:p.value,attrs:{value:p.value}},[a._v(a._s(p.label))])}),1)],1)]),s("div",{staticClass:"t-form-item"},[s("label",[a._v("TS \u7C7B\u578B\uFF1A")]),s("div",{staticClass:"t-form-content"},[s("t-textarea",{attrs:{placeholder:"API \u7C7B\u578B\u4E0D\u80FD\u6EE1\u8DB3\u9700\u8981\u65F6\uFF0C\u53EF\u5728\u6B64\u5904\u8F93\u5165\u8BE6\u7EC6\u7684 TS \u7C7B\u578B\uFF0C\u4F8B\u5982\uFF1A ButtonProps\u3002API \u7C7B\u578B\u5305\u542B\u6CDB\u578B\u65F6\uFF0C\u8BE5\u9879\u5FC5\u586B\u3002"},model:{value:a.formData.customFieldType,callback:function(p){a.$set(a.formData,"customFieldType",p)},expression:"formData.customFieldType"}})],1)]),s("div",{staticClass:"t-form-item"},[s("label",[a._v("\u9ED8\u8BA4\u503C\uFF1A")]),s("div",{staticClass:"t-form-content"},[s("t-input",{attrs:{placeholder:"\u8BF7\u8F93\u5165\u5B57\u6BB5\u9ED8\u8BA4\u503C"},model:{value:a.formData.defaultValue,callback:function(p){a.$set(a.formData,"defaultValue",p)},expression:"formData.defaultValue"}})],1)]),a.isShowEnumField?s("div",{staticClass:"t-form-item"},[s("label",[a._v("\u53EF\u9009\u503C\uFF1A")]),s("div",{staticClass:"t-form-content"},[s("t-input",{attrs:{placeholder:"\u591A\u4E2A\u53EF\u9009\u503C\u4F7F\u7528\u659C\u6760(/)\u9694\u5F00\uFF0C\u5982\uFF1Aprimary/warning/error"},model:{value:a.formData.fieldEnums,callback:function(p){a.$set(a.formData,"fieldEnums",p)},expression:"formData.fieldEnums"}})],1)]):a._e(),s("div",{staticClass:"t-form-item"},[s("label",[a._v("\u5C5E\u6027\u63CF\u8FF0\uFF1A")]),s("div",{staticClass:"t-form-content"},[s("t-input",{attrs:{placeholder:"\u8BF7\u8F93\u5165\u5C5E\u6027\u63CF\u8FF0\uFF08\u4E2D\u6587\uFF09\uFF0C\u5B57\u6BB5\u4E3A\u591A\u7C7B\u578B\u65F6\uFF0C\u9700\u8981\u63CF\u8FF0\u5404\u4E2A\u7C7B\u578B\u7684\u542B\u4E49"},model:{value:a.formData.descZh,callback:function(p){a.$set(a.formData,"descZh",p)},expression:"formData.descZh"}})],1)]),s("div",{staticClass:"t-form-item"},[s("label",[a._v("\u82F1\u6587\u63CF\u8FF0\uFF1A")]),s("div",{staticClass:"t-form-content"},[s("t-input",{attrs:{placeholder:"type API description in English"},model:{value:a.formData.descEn,callback:function(p){a.$set(a.formData,"descEn",p)},expression:"formData.descEn"}})],1)])]:!a.isExtendsApi&&!a.isReturnApi&&!a.isT?[s("div",{directives:[{name:"show",rawName:"v-show",value:a.isShowParams,expression:"isShowParams"}],staticClass:"t-form-item"},[s("label",[a._v("\u53C2\u6570\uFF1A")]),s("div",{staticClass:"t-form-content"},[s("t-input",{attrs:{placeholder:a.currentApiCategory.placeholder.inputParams},model:{value:a.formData.eventInput,callback:function(p){a.$set(a.formData,"eventInput",p)},expression:"formData.eventInput"}})],1)]),s("div",{directives:[{name:"show",rawName:"v-show",value:a.isShowReturn,expression:"isShowReturn"}],staticClass:"t-form-item"},[s("label",[a._v("\u8FD4\u56DE\u503C\uFF1A")]),s("div",{staticClass:"t-form-content"},[s("t-input",{attrs:{placeholder:a.currentApiCategory.placeholder.outputParams},model:{value:a.formData.eventOutput,callback:function(p){a.$set(a.formData,"eventOutput",p)},expression:"formData.eventOutput"}})],1)]),s("div",{staticClass:"t-form-item"},[s("label",[a._v("\u63CF\u8FF0\uFF1A")]),s("div",{staticClass:"t-form-content"},[s("t-input",{attrs:{placeholder:a.currentApiCategory.placeholder.descZh},model:{value:a.formData.descZh,callback:function(p){a.$set(a.formData,"descZh",p)},expression:"formData.descZh"}})],1)]),s("div",{staticClass:"t-form-item"},[s("label",[a._v("Description\uFF1A")]),s("div",{staticClass:"t-form-content"},[s("t-input",{attrs:{placeholder:a.currentApiCategory.placeholder.descEn},model:{value:a.formData.descEn,callback:function(p){a.$set(a.formData,"descEn",p)},expression:"formData.descEn"}})],1)]),s("div",{directives:[{name:"show",rawName:"v-show",value:a.formData.apiCategory===a.API_CATEGORY_EVENTS,expression:"formData.apiCategory === API_CATEGORY_EVENTS"}],staticClass:"t-form-item"},[s("label",[s("span",[a._v("\u89E6\u53D1\u5143\u7D20(React)")]),s("t-popup",{staticClass:"placement-top",attrs:{content:"\u3010Tips\u3011\u7528\u4E8E\u63CF\u8FF0\u4E8B\u4EF6\u7C7B\u578B\u7684\u8303\u578B\u7EA6\u675F\uFF0C\u4EC5\u7528\u4E8E React",placement:"top-left",visibleArrow:""}},[s("t-icon",{attrs:{name:"help-circle",size:"middle"}})],1),a._v("\uFF1A ")],1),s("div",{staticClass:"t-form-content"},[s("t-input",{attrs:{placeholder:a.currentApiCategory.placeholder.triggerElements},model:{value:a.formData.triggerElements,callback:function(p){a.$set(a.formData,"triggerElements",p)},expression:"formData.triggerElements"}})],1)])]:a._e(),s("div",{staticClass:"t-form-item"},[s("label"),s("div",{staticClass:"t-form-content"},[s("t-checkbox",{model:{value:a.formData.required,callback:function(p){a.$set(a.formData,"required",p)},expression:"formData.required"}},[a._v("\u662F\u5426\u5FC5\u9700")])],1)]),s("div",{staticClass:"t-form-item"},[s("label"),s("div",{staticClass:"t-form-content"},[s("t-checkbox",{model:{value:a.formData.deprecated,callback:function(p){a.$set(a.formData,"deprecated",p)},expression:"formData.deprecated"}},[a._v("\u662F\u5426\u5E9F\u5F03")])],1)]),s("div",{staticClass:"t-form-item"},[s("label",[a._v(" \u7248\u672C\u53F7 "),s("t-popup",{staticClass:"placement-top",attrs:{content:a.versionDescription,placement:"top-left",visibleArrow:""}},[s("t-icon",{attrs:{name:"help-circle",size:"middle"}})],1),a._v(" \uFF1A ")],1),s("div",{staticClass:"t-form-content"},[s("t-textarea",{attrs:{autosize:{minRows:3},placeholder:"\u4ECE\u54EA\u4E2A\u7248\u672C\u53F7\u5F00\u59CB\u652F\u6301\u7684\u8FD9\u4E2A API\uFF08JSON\uFF09"},model:{value:a.formData.version,callback:function(p){a.$set(a.formData,"version",p)},expression:"formData.version"}})],1)])],2)},YC=[];const JC=["\u4ECE\u54EA\u4E2A\u7248\u672C\u53F7\u5F00\u59CB\u652F\u6301\u7684\u8FD9\u4E2A API\uFF0C\u4E0D\u540C\u7684\u6846\u67B6\u6709\u4E0D\u540C\u7684\u7248\u672C\u53F7\u3002",`\u793A\u4F8B\uFF1A${JSON.stringify({"Vue(PC)":"0.50.1","VueNext(PC)":"0.24.9","React(PC)":"0.43.1",Miniprogram:"0.27.0","Vue(Mobile)":"0.14.1"},void 0,2)}`].join(` +`),"});"),a.variables.length&&u.unshift(...a.variables))}var VC={getUnitTestCode:Lh,getOneUnitTest:kh,getComponentUnitTests:GC};(function(a,u){const{getComponentUnitTests:s,getOneUnitTest:p}=VC;a.exports={getComponentUnitTests:s,getOneUnitTest:p},u.getComponentUnitTests=s,u.getOneUnitTest=p,u.default=s,Object.defineProperty(u,"__esModule",{value:!0})})(mf,mf.exports);var KC=function(){var a=this,u=a.$createElement,s=a._self._c||u;return s("form",{staticClass:"t-form api-edit-form",attrs:{onsubmit:"return false"}},[s("div",{staticClass:"t-form-item"},[s("label",[a._v("\u8BBE\u8BA1\u7EC4\u4EF6\uFF1A")]),s("div",{staticClass:"t-form-content"},[s("t-select",{attrs:{placeholder:"\u8BF7\u9009\u62E9\u7EC4\u4EF6",clearable:"",filterable:""},model:{value:a.formData.component,callback:function(p){a.$set(a.formData,"component",p)},expression:"formData.component"}},a._l(a.components,function(p,h){return s("t-option",{key:h,attrs:{label:`${p.value} ${p.label}`,value:p.value}})}),1)],1)]),s("div",{staticClass:"t-form-item"},[s("label",{staticStyle:{"vertical-align":"top"}},[a._v("\u6846\u67B6\u5E73\u53F0\uFF1A")]),s("div",{staticClass:"t-form-content platform"},[s("site-checkbox",{attrs:{options:a.platformOptions},model:{value:a.formData.platform,callback:function(p){a.$set(a.formData,"platform",p)},expression:"formData.platform"}})],1)]),s("div",{staticClass:"t-form-item"},[s("label",[a._v(" API \u7C7B\u522B "),s("t-popup",{staticClass:"placement-top",attrs:{content:"Extends \u8868\u793A\u7EC4\u4EF6/\u63D2\u4EF6\u4F1A\u7EE7\u627F\u5F53\u524D API \u6240\u6709\u5C5E\u6027\u3002Return \u8868\u793A\u63D2\u4EF6\u6216\u51FD\u6570\u7684\u8FD4\u56DE\u503C\u3002 \u8868\u793A\u6CDB\u578B\u53C2\u6570",placement:"top-left",visibleArrow:""}},[s("t-icon",{attrs:{name:"help-circle",size:"middle"}})],1),a._v("\uFF1A ")],1),s("div",{staticClass:"t-form-content"},[s("t-radio-group",{model:{value:a.formData.apiCategory,callback:function(p){a.$set(a.formData,"apiCategory",p)},expression:"formData.apiCategory"}},a._l(a.map.field_category,function(p,h){return s("t-radio",{key:h,attrs:{value:p.value}},[a._v(a._s(p.label))])}),1)],1)]),s("div",{staticClass:"t-form-item"},[s("label",[a._v("API \u540D\u79F0\uFF1A")]),s("div",{staticClass:"t-form-content"},[s("t-input",{attrs:{placeholder:a.currentApiCategory.placeholder.name},model:{value:a.formData.name,callback:function(p){a.$set(a.formData,"name",p)},expression:"formData.name"}}),a.currentApiCategory.desc?s("small",[a._v("\u793A\u4F8B\uFF1A`"+a._s(a.currentApiCategory.desc)+"'`")]):a._e()],1)]),a.formData.apiCategory===a.API_CATEGORY_CSS_VAR_API?[s("div",{staticClass:"t-form-item"},[s("label",[a._v("\u9ED8\u8BA4\u503C\uFF1A")]),s("div",{staticClass:"t-form-content"},[s("t-input",{attrs:{placeholder:"\u8BF7\u8F93\u5165\u5B57\u6BB5\u9ED8\u8BA4\u503C"},model:{value:a.formData.defaultValue,callback:function(p){a.$set(a.formData,"defaultValue",p)},expression:"formData.defaultValue"}})],1)])]:a._e(),s("div",{directives:[{name:"show",rawName:"v-show",value:a.isShowSugar,expression:"isShowSugar"}],staticClass:"t-form-item"},[s("label",[a._v("\u8BED\u6CD5\u7CD6(Vue)\uFF1A")]),s("div",{staticClass:"t-form-content"},[s("t-radio-group",{model:{value:a.formData.syntacticSugar,callback:function(p){a.$set(a.formData,"syntacticSugar",p)},expression:"formData.syntacticSugar"}},[s("t-radio",{attrs:{value:""}},[a._v("\u65E0")]),s("t-radio",{attrs:{value:"v-model"}},[s("t-tooltip",{attrs:{content:"\u5728 Vue3 \u4E2D\u8868\u793A v-model:modelValue"}},[a._v("v-model")])],1),s("t-radio",{attrs:{value:"sync"}},[s("t-tooltip",{attrs:{content:"\u5728 Vue3 \u4E2D\u8868\u793A v-model:xxx"}},[a._v(".sync")])],1)],1)],1)]),a.isShowSugar?s("div",{staticClass:"t-form-item"},[s("label"),s("div",{staticClass:"t-form-content"},[s("t-checkbox",{model:{value:a.formData.supportDefaultValue,callback:function(p){a.$set(a.formData,"supportDefaultValue",p)},expression:"formData.supportDefaultValue"}},[a._v("\u662F\u5426\u652F\u6301\u975E\u53D7\u63A7\u5C5E\u6027")])],1)]):a._e(),[a.API_CATEGORY_PROPS,a.API_CATEGORY_PLUGINS].includes(Number(a.formData.apiCategory))?[s("div",{staticClass:"t-form-item"},[s("label",{staticStyle:{"vertical-align":"top"}},[s("span",[a._v("API \u7C7B\u578B")]),s("t-popup",{staticClass:"placement-top",attrs:{content:"\u3010Tips\u3011TNode \u662F TDesign \u5B9A\u4E49\u7684\u4E00\u79CD\u96C6\u5408\u6570\u636E\u7C7B\u578B\uFF0C\u7528\u4E8E\u63CF\u8FF0\u591A\u7C7B\u578B API\u3002TNode = Function + Slot + ReactNode",placement:"top-left",visibleArrow:""}},[s("t-icon",{attrs:{name:"help-circle",size:"middle"}})],1),a._v("\uFF1A ")],1),s("div",{staticClass:"t-form-content api-type"},[s("t-checkbox-group",{on:{change:a.onFieldTypeChange},model:{value:a.formData.fieldType,callback:function(p){a.$set(a.formData,"fieldType",p)},expression:"formData.fieldType"}},a._l(a.fieldOptions,function(p){return s("t-checkbox",{key:p.value,attrs:{value:p.value}},[a._v(a._s(p.label))])}),1)],1)]),s("div",{staticClass:"t-form-item"},[s("label",[a._v("TS \u7C7B\u578B\uFF1A")]),s("div",{staticClass:"t-form-content"},[s("t-textarea",{attrs:{placeholder:"API \u7C7B\u578B\u4E0D\u80FD\u6EE1\u8DB3\u9700\u8981\u65F6\uFF0C\u53EF\u5728\u6B64\u5904\u8F93\u5165\u8BE6\u7EC6\u7684 TS \u7C7B\u578B\uFF0C\u4F8B\u5982\uFF1A ButtonProps\u3002API \u7C7B\u578B\u5305\u542B\u6CDB\u578B\u65F6\uFF0C\u8BE5\u9879\u5FC5\u586B\u3002"},model:{value:a.formData.customFieldType,callback:function(p){a.$set(a.formData,"customFieldType",p)},expression:"formData.customFieldType"}})],1)]),s("div",{staticClass:"t-form-item"},[s("label",[a._v("\u9ED8\u8BA4\u503C\uFF1A")]),s("div",{staticClass:"t-form-content"},[s("t-input",{attrs:{placeholder:"\u8BF7\u8F93\u5165\u5B57\u6BB5\u9ED8\u8BA4\u503C"},model:{value:a.formData.defaultValue,callback:function(p){a.$set(a.formData,"defaultValue",p)},expression:"formData.defaultValue"}})],1)]),a.isShowEnumField?s("div",{staticClass:"t-form-item"},[s("label",[a._v("\u53EF\u9009\u503C\uFF1A")]),s("div",{staticClass:"t-form-content"},[s("t-input",{attrs:{placeholder:"\u591A\u4E2A\u53EF\u9009\u503C\u4F7F\u7528\u659C\u6760(/)\u9694\u5F00\uFF0C\u5982\uFF1Aprimary/warning/error"},model:{value:a.formData.fieldEnums,callback:function(p){a.$set(a.formData,"fieldEnums",p)},expression:"formData.fieldEnums"}})],1)]):a._e(),s("div",{staticClass:"t-form-item"},[s("label",[a._v("\u5C5E\u6027\u63CF\u8FF0\uFF1A")]),s("div",{staticClass:"t-form-content"},[s("t-input",{attrs:{placeholder:"\u8BF7\u8F93\u5165\u5C5E\u6027\u63CF\u8FF0\uFF08\u4E2D\u6587\uFF09\uFF0C\u5B57\u6BB5\u4E3A\u591A\u7C7B\u578B\u65F6\uFF0C\u9700\u8981\u63CF\u8FF0\u5404\u4E2A\u7C7B\u578B\u7684\u542B\u4E49"},model:{value:a.formData.descZh,callback:function(p){a.$set(a.formData,"descZh",p)},expression:"formData.descZh"}})],1)]),s("div",{staticClass:"t-form-item"},[s("label",[a._v("\u82F1\u6587\u63CF\u8FF0\uFF1A")]),s("div",{staticClass:"t-form-content"},[s("t-input",{attrs:{placeholder:"type API description in English"},model:{value:a.formData.descEn,callback:function(p){a.$set(a.formData,"descEn",p)},expression:"formData.descEn"}})],1)])]:!a.isExtendsApi&&!a.isReturnApi&&!a.isT?[s("div",{directives:[{name:"show",rawName:"v-show",value:a.isShowParams,expression:"isShowParams"}],staticClass:"t-form-item"},[s("label",[a._v("\u53C2\u6570\uFF1A")]),s("div",{staticClass:"t-form-content"},[s("t-input",{attrs:{placeholder:a.currentApiCategory.placeholder.inputParams},model:{value:a.formData.eventInput,callback:function(p){a.$set(a.formData,"eventInput",p)},expression:"formData.eventInput"}})],1)]),s("div",{directives:[{name:"show",rawName:"v-show",value:a.isShowReturn,expression:"isShowReturn"}],staticClass:"t-form-item"},[s("label",[a._v("\u8FD4\u56DE\u503C\uFF1A")]),s("div",{staticClass:"t-form-content"},[s("t-input",{attrs:{placeholder:a.currentApiCategory.placeholder.outputParams},model:{value:a.formData.eventOutput,callback:function(p){a.$set(a.formData,"eventOutput",p)},expression:"formData.eventOutput"}})],1)]),s("div",{staticClass:"t-form-item"},[s("label",[a._v("\u63CF\u8FF0\uFF1A")]),s("div",{staticClass:"t-form-content"},[s("t-input",{attrs:{placeholder:a.currentApiCategory.placeholder.descZh},model:{value:a.formData.descZh,callback:function(p){a.$set(a.formData,"descZh",p)},expression:"formData.descZh"}})],1)]),s("div",{staticClass:"t-form-item"},[s("label",[a._v("Description\uFF1A")]),s("div",{staticClass:"t-form-content"},[s("t-input",{attrs:{placeholder:a.currentApiCategory.placeholder.descEn},model:{value:a.formData.descEn,callback:function(p){a.$set(a.formData,"descEn",p)},expression:"formData.descEn"}})],1)]),s("div",{directives:[{name:"show",rawName:"v-show",value:Number(a.formData.apiCategory)===Number(a.API_CATEGORY_EVENTS),expression:"Number(formData.apiCategory) === Number(API_CATEGORY_EVENTS)"}],staticClass:"t-form-item"},[s("label",[s("span",[a._v("\u89E6\u53D1\u5143\u7D20(React)")]),s("t-popup",{staticClass:"placement-top",attrs:{content:"\u3010Tips\u3011\u7528\u4E8E\u63CF\u8FF0\u4E8B\u4EF6\u7C7B\u578B\u7684\u8303\u578B\u7EA6\u675F\uFF0C\u4EC5\u7528\u4E8E React",placement:"top-left",visibleArrow:""}},[s("t-icon",{attrs:{name:"help-circle",size:"middle"}})],1),a._v("\uFF1A ")],1),s("div",{staticClass:"t-form-content"},[s("t-input",{attrs:{placeholder:a.currentApiCategory.placeholder.triggerElements},model:{value:a.formData.triggerElements,callback:function(p){a.$set(a.formData,"triggerElements",p)},expression:"formData.triggerElements"}})],1)])]:a._e(),s("div",{staticClass:"t-form-item"},[s("label"),s("div",{staticClass:"t-form-content"},[s("t-checkbox",{model:{value:a.formData.required,callback:function(p){a.$set(a.formData,"required",p)},expression:"formData.required"}},[a._v("\u662F\u5426\u5FC5\u9700")])],1)]),s("div",{staticClass:"t-form-item"},[s("label"),s("div",{staticClass:"t-form-content"},[s("t-checkbox",{model:{value:a.formData.deprecated,callback:function(p){a.$set(a.formData,"deprecated",p)},expression:"formData.deprecated"}},[a._v("\u662F\u5426\u5E9F\u5F03")])],1)]),s("div",{staticClass:"t-form-item"},[s("label",[a._v(" \u7248\u672C\u53F7 "),s("t-popup",{staticClass:"placement-top",attrs:{content:a.versionDescription,placement:"top-left",visibleArrow:""}},[s("t-icon",{attrs:{name:"help-circle",size:"middle"}})],1),a._v(" \uFF1A ")],1),s("div",{staticClass:"t-form-content"},[s("t-textarea",{attrs:{autosize:{minRows:3},placeholder:"\u4ECE\u54EA\u4E2A\u7248\u672C\u53F7\u5F00\u59CB\u652F\u6301\u7684\u8FD9\u4E2A API\uFF08JSON\uFF09"},model:{value:a.formData.version,callback:function(p){a.$set(a.formData,"version",p)},expression:"formData.version"}})],1)])],2)},YC=[];const JC=["\u4ECE\u54EA\u4E2A\u7248\u672C\u53F7\u5F00\u59CB\u652F\u6301\u7684\u8FD9\u4E2A API\uFF0C\u4E0D\u540C\u7684\u6846\u67B6\u6709\u4E0D\u540C\u7684\u7248\u672C\u53F7\u3002",`\u793A\u4F8B\uFF1A${JSON.stringify({"Vue(PC)":"0.50.1","VueNext(PC)":"0.24.9","React(PC)":"0.43.1",Miniprogram:"0.27.0","Vue(Mobile)":"0.14.1"},void 0,2)}`].join(` `),XC={name:"APIDesignImport",components:{SiteCheckbox:eh,TIcon:Iy,TInput:Bd,TSelect:Zc,TOption:Qc,TPopup:Ny,TCheckbox:Nd,TCheckboxGroup:Rd,TRadio:Ry,TRadioGroup:Fy},props:{dataBase:{},map:Object,info:Object,mode:String},data(){return{API_CATEGORY_EVENTS:df,API_CATEGORY_PROPS:Fc,API_CATEGORY_PLUGINS:Bc,API_CATEGORY_FUNCTIONS:hf,API_CATEGORY_CSS_VAR_API:d0,STRING:kc,list:[],versionDescription:JC,componentApiData:[],formData:{platform:[],component:"",apiCategory:"1",fieldType:[],customFieldType:"",defaultValue:"",required:!1,deprecated:!1,fieldEnums:"",descZh:"",descEn:"",testDescription:"",version:"",supportDefaultValue:!1,name:"",eventInput:"",eventOutput:"",syntacticSugar:"",html_attribute:!1,triggerElements:""}}},computed:{components(){return this.map&&this.map.components},fieldOptions(){return this.map&&this.map.field_type},platformOptions(){return this.map&&this.map.platform_framework},currentApiCategory(){return h0[this.formData.apiCategory]||{placeholder:{}}},isShowSugar(){const u=!!this.formData.platform.filter(p=>[v0,m0].includes(Number(p))).length,s=[df,Fc,Bc].includes(Number(this.formData.apiCategory));return u&&s},isExtendsApi(){return String(this.formData.apiCategory)===String(th)},isReturnApi(){return String(this.formData.apiCategory)===String(nh)},isT(){return String(this.formData.apiCategory)===String(rh)},isShowEnumField(){return this.formData.fieldType.includes(String(kc))||this.formData.fieldType.includes(String(g0))},isShowParams(){return[hf,df].includes(Number(this.formData.apiCategory))},isShowReturn(){return[hf].includes(Number(this.formData.apiCategory))}},watch:{platformOptions(a){!a||(this.formData.platform=[])},info(a){this.formData={...this.formData,testDescription:""},a&&(this.formData={platform:a.platform_framework,component:a.component,apiCategory:a.field_category?String(a.field_category):"1",fieldType:a.field_type,customFieldType:a.custom_field_type,defaultValue:a.field_default_value,required:!!a.field_required,deprecated:!!a.deprecated,fieldEnums:a.field_enum,descZh:a.field_desc_zh,descEn:a.field_desc_en,testDescription:a.test_description,version:a.version,supportDefaultValue:Boolean(a.support_default_value),htmlAttribute:Boolean(a.html_attribute),name:a.field_name,eventInput:a.event_input,eventOutput:a.event_output,syntacticSugar:a.syntactic_sugar,triggerElements:a.trigger_elements},this.mode==="create"&&(this.formData.testDescription=""),this.getCurrentComponentData())}},methods:{onFieldTypeChange(a){a.includes(String(kc))||(this.formData.fieldEnums="")},getCurrentComponentData(){if(!this.info.component)return;const a=Hd(),u=a[this.info.component]?a[this.info.component].join():this.info.component;Pa({method:"get",url:"/cmp/api",params:{component:u,page:1,page_size:300}}).then(s=>{this.componentApiData=s.data.data,this.loading=!1},()=>{this.loading=!1})}}},yd={};var ZC=qi(XC,KC,YC,!1,QC,null,null,null);function QC(a){for(let u in yd)this[u]=yd[u]}var e_=function(){return ZC.exports}();function ks(a,u,s){return u in a?Object.defineProperty(a,u,{value:s,enumerable:!0,configurable:!0,writable:!0}):a[u]=s,a}function t_(a,u){if(a==null)return{};var s={},p=Object.keys(a),h,b;for(b=0;b=0)&&(s[h]=a[h]);return s}function Ia(a,u){if(a==null)return{};var s=t_(a,u),p,h;if(Object.getOwnPropertySymbols){var b=Object.getOwnPropertySymbols(a);for(h=0;h=0)&&(!Object.prototype.propertyIsEnumerable.call(a,p)||(s[p]=a[p]))}return s}var n_=["attrs"];function bd(a,u){var s=Object.keys(a);if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(a);u&&(p=p.filter(function(h){return Object.getOwnPropertyDescriptor(a,h).enumerable})),s.push.apply(s,p)}return s}function Pc(a){for(var u=1;u{h.push({trigger:b,arguments:JSON.stringify(w.arguments)})}),s=h}return a==="array"&&u.event.length&&(p=u.event.map(h=>({props:h.props?JSON.stringify(h.props):"",description:h.description,wrapper:h.wrapper,expect:h.expect.map(b=>({trigger:b.trigger,event:JSON.stringify(b.event),exist:Array.isArray(b.exist)?JSON.stringify(b.exist):b.exist,delay:(()=>b.delay===!0?"true":typeof b.delay=="number"?String(b.delay):b.delay)()}))}))),{objectEvent:s,arrayEvent:p}}var L_=function(){var a=this,u=a.$createElement,s=a._self._c||u;return s("div",{staticClass:"unit-test-ui__one-unit-test"},[s("t-radio-group",{attrs:{value:a.formData.category},on:{change:a.onCategoryChange}},a._l(a.testCategoryOptions,function(p){return s("t-radio-button",{key:p.value,attrs:{value:p.value}},[s("t-tooltip",{attrs:{content:p.tips}},[s("span",[a._v(a._s(p==null?void 0:p.label))])])],1)}),1),a.formData.category==="tnode"&&a.formData.tnode?[s("div",{staticClass:"unit-test-ui__form-item-inner"},[s("t-tooltip",{attrs:{theme:"light",content:"\u683C\u5F0F\uFF1ADomSelector\u3002\u6807\u7B7E\u8F93\u5165\u3002\u5982\u679C\u5143\u7D20\u90FD\u6302\u8F7D\u5728 document.body \u4E0A\uFF0C\u8BF7\u52A0\u4E0A document \u524D\u7F00\uFF0C\u793A\u4F8B\uFF1Adocument.class-name\u3002\u5982\u679C\u662F\u81EA\u5B9A\u4E49\u8282\u70B9\uFF0C\u5219\u662F document.custom-node"}},[s("t-tag-input",{attrs:{placeholder:"\u9664\u81EA\u5B9A\u4E49\u8282\u70B9\uFF0C\u8FD8\u671F\u671B\u54EA\u4E9B\u5143\u7D20\u540C\u65F6\u5B58\u5728\uFF0C\u6807\u7B7E\u8F93\u5165\uFF0C\u793A\u4F8B\uFF1A.t-radio__label"},on:{change:function(){return a.onFormDataChange("tnode")}},model:{value:a.formData.tnode.dom,callback:function(p){a.$set(a.formData.tnode,"dom",p)},expression:"formData.tnode.dom"}})],1)],1),s("div",{staticClass:"unit-test-ui__form-item-inner"},[s("t-tooltip",{attrs:{theme:"light"},scopedSlots:a._u([{key:"content",fn:function(){return[a._v(' \u793A\u4F8B\uFF1A[{ "value": "tdesign-vue" }] ')]},proxy:!0}],null,!1,1378868323)},[s("t-input",{attrs:{placeholder:"TNode \u51FD\u6570\u53C2\u6570"},on:{blur:function(){return a.onFormDataChange("tnode")}},model:{value:a.formData.tnode.params,callback:function(p){a.$set(a.formData.tnode,"params",p)},expression:"formData.tnode.params"}})],1)],1),s("div",{staticClass:"unit-test-ui__form-item-inner"},[s("t-tooltip",{attrs:{theme:"light"},scopedSlots:a._u([{key:"content",fn:function(){return[s("p",[a._v(" \u683C\u5F0F\uFF1AEventName(DomSelector) \u6216\u8005 delay\u3002focus(.t-input__wrap) \u8868\u793A\u5F53\u5143\u7D20 .t-input__wrap \u805A\u7126\u540E\u624D\u4F1A\u51FA\u73B0\u524D\u9762\u671F\u671B\u7684\u5143\u7D20\u3002 \u793A\u4F8B\uFF1Adelay \u3001 delay(100) "),s("t-link",{attrs:{underline:"",href:"https://github.com/vuejs/test-utils/blob/main/src/constants/dom-events.ts#L566",target:"_blank"}},[a._v("\u6240\u6709\u4E8B\u4EF6\u5217\u8868")])],1)]},proxy:!0}],null,!1,73742847)},[s("t-input",{attrs:{placeholder:"\u89E6\u53D1\u81EA\u5B9A\u4E49\u8282\u70B9\u663E\u793A\u7684\u524D\u7F6E\u4E8B\u4EF6\uFF0C\u5982\uFF1Afocus(.t-input__wrap)"},on:{change:function(){return a.onFormDataChange("tnode")}},model:{value:a.formData.tnode.trigger,callback:function(p){a.$set(a.formData.tnode,"trigger",p)},expression:"formData.tnode.trigger"}})],1)],1),s("div",{staticClass:"unit-test-ui__form-item-inner"},[s("t-tooltip",{attrs:{theme:"light",content:"\u8FD8\u9700\u8981\u6DFB\u52A0\u54EA\u4E9B\u5C5E\u6027\u5230\u7EC4\u4EF6"}},[s("t-input",{attrs:{placeholder:"\u6DFB\u52A0\u989D\u5916\u7684\u7EC4\u4EF6\u5C5E\u6027\uFF0C\u683C\u5F0F\uFF1AJSON"},on:{blur:function(){return a.onFormDataChange("tnode")}},model:{value:a.formData.props,callback:function(p){a.$set(a.formData,"props",p)},expression:"formData.props"}})],1)],1)]:a._e(),a.formData.category==="className"?[s("div",{staticClass:"unit-test-ui__form-item-inner"},[s("t-tooltip",{attrs:{theme:"light"},scopedSlots:a._u([{key:"content",fn:function(){return[a.apiInfo&&a.apiInfo.field_type_text.join()==="Boolean"?s("p",[a._v(" "+a._s(a.formData.className?`\u7C7B\u540D\u89C4\u5219\uFF1A\u5F53\u524D\u503C\u7C7B\u578B\u4E3A Boolean\uFF0C\u5F53\u503C\u4E3A true \u65F6\uFF0C\u671F\u671B\u5B58\u5728\u7C7B\u540D ${a.formData.className}`:"\u7C7B\u540D\u89C4\u5219\uFF1A\u5F53\u524D\u503C\u7C7B\u578B\u4E3A Boolean\uFF0C\u63A8\u8350\u89C4\u5219\u5F62\u5982\uFF1A.t-size-full-width\u3002\u8868\u793A\u503C\u4E3A true \u65F6\uFF0C\u671F\u671B\u7C7B\u540D t-size-full-width \u5B58\u5728")+" ")]):a._e(),a.apiInfo&&a.apiInfo.field_type_text.join()==="String"?s("p",[a._v(" \u7C7B\u540D\u89C4\u5219\uFF1A ")]):a._e(),a._l(a.getClassNameRecommend(),function(p,h){return s("p",{key:h},[a._v(a._s(p))])}),s("p")]},proxy:!0}],null,!1,1796600822)},[s("t-textarea",{attrs:{placeholder:"\u7C7B\u540D\u89C4\u5219"},on:{blur:function(){return a.onFormDataChange("className")}},model:{value:a.formData.className,callback:function(p){a.$set(a.formData,"className",p)},expression:"formData.className"}})],1)],1),s("div",{staticClass:"unit-test-ui__form-item-inner"},[s("t-tooltip",{attrs:{theme:"light",content:"\u4E0A\u8FF0\u7C7B\u540D\u89C4\u5219\u5E94\u7528\u5728\u54EA\u4E2A\u5B50\u8282\u70B9\uFF0C\u4E0D\u586B\u6216\u8005\u586B\u5199 'self' \u8868\u793A\u7EC4\u4EF6\u6839\u8282\u70B9"}},[s("t-input",{attrs:{placeholder:"\u7C7B\u540D\u89C4\u5219\u5E94\u7528\u7684 HTML \u5143\u7D20"},on:{change:function(){return a.onFormDataChange("className")}},model:{value:a.formData.classNameDom,callback:function(p){a.$set(a.formData,"classNameDom",p)},expression:"formData.classNameDom"}})],1)],1),s("div",{staticClass:"unit-test-ui__form-item-inner"},[s("t-tooltip",{attrs:{theme:"light",content:"\u8FD8\u9700\u8981\u6DFB\u52A0\u54EA\u4E9B\u5C5E\u6027\u5230\u7EC4\u4EF6\uFF0C\u5982\u679C API \u6570\u636E\u7C7B\u578B\u4E3A boolean \u53EF\u4EE5\u4E0D\u6DFB\u52A0"}},[s("t-input",{attrs:{placeholder:"\u6DFB\u52A0\u989D\u5916\u7684\u7EC4\u4EF6\u5C5E\u6027\uFF0C\u683C\u5F0F\uFF1AJSON"},on:{blur:function(){return a.onFormDataChange("className")}},model:{value:a.formData.props,callback:function(p){a.$set(a.formData,"props",p)},expression:"formData.props"}})],1)],1)]:a._e(),a.formData.category==="attribute"?[s("div",{staticClass:"unit-test-ui__form-item-inner"},[s("t-tooltip",{attrs:{theme:"light"},scopedSlots:a._u([{key:"content",fn:function(){return[s("p",[a._l(a.getAttributeRecommend(),function(p){return[s("p",[a._v(a._s(p))])]})],2)]},proxy:!0}],null,!1,2868227598)},[s("t-textarea",{attrs:{placeholder:"\u5C5E\u6027\u89C4\u5219"},on:{blur:function(){return a.onFormDataChange("attribute")}},model:{value:a.formData.attribute,callback:function(p){a.$set(a.formData,"attribute",p)},expression:"formData.attribute"}})],1)],1),s("div",{staticClass:"unit-test-ui__form-item-inner"},[s("t-tooltip",{attrs:{theme:"light",content:"\u4E0A\u8FF0\u5C5E\u6027\u89C4\u5219\u5E94\u7528\u5728\u54EA\u4E2A\u5B50\u8282\u70B9\uFF0C\u4E0D\u586B\u6216\u8005\u586B\u5199 'self' \u8868\u793A\u7EC4\u4EF6\u6839\u8282\u70B9"}},[s("t-input",{attrs:{placeholder:"\u5C5E\u6027\u89C4\u5219\u5E94\u7528\u7684 HTML \u5143\u7D20"},on:{change:function(){return a.onFormDataChange("attribute")}},model:{value:a.formData.attributeDom,callback:function(p){a.$set(a.formData,"attributeDom",p)},expression:"formData.attributeDom"}})],1)],1),s("div",{staticClass:"unit-test-ui__form-item-inner"},[s("t-tooltip",{attrs:{theme:"light",content:"\u8FD8\u9700\u8981\u6DFB\u52A0\u54EA\u4E9B\u5C5E\u6027\u5230\u7EC4\u4EF6\uFF0C\u5982\u679C API \u6570\u636E\u7C7B\u578B\u4E3A boolean \u53EF\u4EE5\u4E0D\u6DFB\u52A0"}},[s("t-input",{attrs:{placeholder:"\u6DFB\u52A0\u989D\u5916\u7684\u7EC4\u4EF6\u5C5E\u6027\uFF0C\u683C\u5F0F\uFF1AJSON"},on:{blur:function(){return a.onFormDataChange("attribute")}},model:{value:a.formData.props,callback:function(p){a.$set(a.formData,"props",p)},expression:"formData.props"}})],1)],1)]:a._e(),a.formData.category==="dom"?[s("div",{staticClass:"unit-test-ui__form-item-inner"},[s("t-tooltip",{attrs:{theme:"light"},scopedSlots:a._u([{key:"content",fn:function(){return[s("p",[a._l(a.getDomRecommend(),function(p){return[s("p",[a._v(a._s(p))])]})],2)]},proxy:!0}],null,!1,2415190324)},[s("t-textarea",{attrs:{placeholder:"\u68C0\u6D4B\u67D0\u4E2A\u5143\u7D20\u662F\u5426\u5B58\u5728\u7684\u89C4\u5219"},on:{blur:function(){return a.onFormDataChange("dom")}},model:{value:a.formData.dom,callback:function(p){a.$set(a.formData,"dom",p)},expression:"formData.dom"}})],1),s("t-tooltip",{attrs:{theme:"light",trigger:"click",placement:"bottom-left"},scopedSlots:a._u([{key:"content",fn:function(){return[s("p",[a._l(a.getDomMoreTips(),function(p){return[s("p",[a._v(a._s(p))])]})],2)]},proxy:!0}],null,!1,729966059)},[s("t-button",{attrs:{variant:"text",theme:"primary",size:"small"}},[a._v("\u70B9\u51FB\u67E5\u770B\u89C4\u5219\u7EC6\u8282")])],1)],1),s("div",{staticClass:"unit-test-ui__form-item-inner"},[s("t-tooltip",{attrs:{theme:"light",content:"\u8FD8\u9700\u8981\u6DFB\u52A0\u54EA\u4E9B\u5C5E\u6027\u5230\u7EC4\u4EF6\uFF0C\u5982\u679C API \u6570\u636E\u7C7B\u578B\u4E3A boolean \u53EF\u4EE5\u4E0D\u6DFB\u52A0"}},[s("t-input",{attrs:{placeholder:"\u6DFB\u52A0\u989D\u5916\u7684\u7EC4\u4EF6\u5C5E\u6027\uFF0C\u683C\u5F0F\uFF1AJSON"},on:{blur:function(){return a.onFormDataChange("dom")}},model:{value:a.formData.props,callback:function(p){a.$set(a.formData,"props",p)},expression:"formData.props"}})],1)],1)]:a._e(),a.formData.category==="event"?[s("div",[s("t-radio-group",{staticStyle:{margin:"16px 0"},model:{value:a.eventType,callback:function(p){a.eventType=p},expression:"eventType"}},[s("t-radio",{attrs:{value:"object"}},[a._v("\u7B80\u5355\u4E8B\u4EF6\u53C2\u6570")]),s("t-radio",{attrs:{value:"array"}},[a._v("\u590D\u6742\u4EBA\u673A\u4EA4\u4E92")])],1),a.eventType==="object"?s("t-card",{staticClass:"t-event-object-card"},a._l(a.objectEvent,function(p,h){return s("div",{key:h,staticClass:"unit-test-ui__one-object-event"},[s("t-tooltip",{attrs:{trigger:"focus",theme:"light",content:"\u4E8B\u4EF6\u540D\uFF0C\u5982\uFF1Aclick \u6216\u8005 click(.t-input)"}},[s("t-input",{staticStyle:{"min-width":"130px",width:"130px"},attrs:{placeholder:"\u4E8B\u4EF6\u540D"},on:{change:a.onObjectEventChange},model:{value:a.objectEvent[h].trigger,callback:function(b){a.$set(a.objectEvent[h],"trigger",b)},expression:"objectEvent[index].trigger"}})],1),s("t-tooltip",{attrs:{trigger:"focus",theme:"light"},scopedSlots:a._u([{key:"content",fn:function(){return[a._v(` \u793A\u4F8B\uFF1A[{ "e.type": "click" }, [100, 101]] \u3002\u8868\u793A\u7B2C\u4E00\u4E2A\u53C2\u6570\u5B58\u5728\u5C5E\u6027 'e.type' \u503C\u4E3A 'click'\uFF0C\u7B2C\u4E8C\u4E2A\u53C2\u6570\u503C\u4E3A [100, 101] `)]},proxy:!0}],null,!0)},[s("t-input",{staticStyle:{"margin-left":"16px"},attrs:{placeholder:"\u4E8B\u4EF6\u53C2\u6570"},on:{change:a.onObjectEventChange},model:{value:a.objectEvent[h].arguments,callback:function(b){a.$set(a.objectEvent[h],"arguments",b)},expression:"objectEvent[index].arguments"}})],1),s("t-button",{staticStyle:{"margin-left":"8px"},attrs:{variant:"text",theme:"primary",size:"small"},on:{click:function(){return a.onObjectEventAdd(h)}}},[s("AddCircleIcon")],1),s("t-button",{attrs:{variant:"text",theme:"danger",size:"small"},on:{click:function(){return a.onObjectEventDelete(h)}}},[s("MinusCircleIcon")],1)],1)}),0):a._e(),a.eventType==="array"?s("div",a._l(a.arrayEvent,function(p,h){return s("t-card",{key:h,staticClass:"test-card-array-event"},[s("h4",{staticStyle:{"margin-top":"0"}},[a._v("\u7B2C"+a._s(["\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94"][h])+"\u4E2A\u4EA4\u4E92\u6D4B\u8BD5\u7528\u4F8B")]),s("div",{staticStyle:{display:"flex","align-items":"center","margin-bottom":"16px"}},[s("label",{staticStyle:{width:"100px"}},[a._v("\u7528\u4F8B\u63CF\u8FF0\uFF1A")]),s("t-input",{attrs:{placeholder:"\u9009\u586B\uFF0C\u5F53\u524D\u6D4B\u8BD5\u7528\u4F8B\u6587\u672C\u63CF\u8FF0\uFF0C\u9ED8\u8BA4\u4E3A xxx works fine"},on:{blur:a.onEventPropsChange},model:{value:a.arrayEvent[h].description,callback:function(b){a.$set(a.arrayEvent[h],"description",b)},expression:"arrayEvent[index].description"}})],1),a._l(a.arrayEvent[h].expect,function(b,w){return s("div",[s("div",{staticStyle:{display:"flex","align-items":"center","margin-bottom":"16px"}},[a._v(" \u7B2C"+a._s(["\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u4E03","\u516B","\u4E5D","\u5341"][w])+"\u4E2A\u4E8B\u4EF6\uFF1A "),s("t-button",{attrs:{theme:"primary",variant:"text",size:"small"},on:{click:function(){return a.onEventExpectEdit(b,w,h,"edit")}}},[s("EditIcon")],1),s("t-button",{attrs:{theme:"primary",variant:"text",size:"small"},on:{click:function(){return a.onEventExpectAdd(b,w,h,"add")}}},[s("AddCircleIcon")],1),s("t-button",{attrs:{theme:"danger",variant:"text",size:"small"},on:{click:function(){return a.onEventExpectDelete(w,h,"delete")}}},[s("MinusCircleIcon")],1)],1),b.trigger||b.event||b.exist?s("p",{staticClass:"t-input__tips t-input__tips--default",staticStyle:{position:"relative"}},[a._v(" "+a._s(a.getEventDescription(b))+" ")]):a._e()])}),s("div",{staticStyle:{display:"flex","align-items":"center","margin-bottom":"16px"}},[s("label",{staticStyle:{width:"100px"}},[a._v("\u7EC4\u4EF6\u5C5E\u6027\uFF1A")]),s("t-input",{attrs:{placeholder:"\u9009\u586B\uFF0C\u5F53\u524D\u6D4B\u8BD5\u7528\u4F8B\u6240\u9700\u7684\u5FC5\u8981\u5C5E\u6027\uFF0C\u683C\u5F0F\uFF1AJSON"},on:{blur:a.onEventPropsChange},model:{value:a.arrayEvent[h].props,callback:function(b){a.$set(a.arrayEvent[h],"props",b)},expression:"arrayEvent[index].props"}})],1),s("div",{staticStyle:{display:"flex","align-items":"center","margin-bottom":"16px"}},[s("label",{staticStyle:{width:"100px"}},[a._v("\u5B9E\u4F8B\u51FD\u6570\uFF1A")]),s("t-input",{attrs:{placeholder:"\u9ED8\u8BA4\u76F4\u63A5\u4F7F\u7528\u7EC4\u4EF6\u83B7\u53D6\uFF0C\u793A\u4F8B\uFF1AgetRadioGroupDefaultMount"},on:{blur:a.onEventPropsChange},model:{value:a.arrayEvent[h].wrapper,callback:function(b){a.$set(a.arrayEvent[h],"wrapper",b)},expression:"arrayEvent[index].wrapper"}})],1),s("div",{staticStyle:{"margin-top":"16px","text-align":"right"}},[s("t-button",{attrs:{size:"small"},on:{click:function(){return a.onArrayEventAdd(h)}}},[a._v(" \u518D\u6765\u4E00\u4E2A ")]),a.arrayEvent.length>1?s("t-button",{staticStyle:{"margin-left":"8px"},attrs:{theme:"danger",size:"small"},on:{click:function(){return a.onArrayEventDelete(h)}}},[a._v(" \u79FB\u9664 ")]):a._e()],1)],2)}),1):a._e()],1)]:a._e(),a._t("operation"),s("EventExpect",{attrs:{visible:a.eventExpectVisible,eventExpect:a.currentExpectData.expectData,eventExpectMode:a.eventExpectMode},on:{"update:visible":function(p){a.eventExpectVisible=p},confirm:a.onEventExpectChange}})],2)},$_=[];const Ic=[{trigger:"",arguments:""}],Nl=[{expect:[{trigger:"",event:"",exist:""}],props:""}],M_={name:"OneCategoryTest",components:{AddCircleIcon:d_,MinusCircleIcon:__,EventExpect:A_,EditIcon:b_},props:{data:{type:Object,default:()=>({})},apiInfo:{type:Object,default:()=>({})},categories:Array,testProps:{type:[Object,String],default:()=>({})}},data(){return{formData:{category:"",attribute:"",attributeDom:"",props:"",className:"",classNameDom:"",dom:""},testCategoryOptions:Fl,eventType:"object",objectEvent:[...Ic],arrayEvent:[...Nl],eventExpectVisible:!1,currentExpectData:{expectData:{...Nl[0].expect},expectIndex:-1,eventIndex:-1},eventExpectMode:"edit"}},watch:{testProps:{immediate:!0,handler(a){!this.formData||this.$nextTick(()=>{const u=typeof a=="string"?zn(a):a,p={...this.formData.props?zn(this.formData.props,{}):{},...u};this.$set(this.formData,"props",Object.keys(p).length?JSON.stringify(p):"")})}},data:{immediate:!0,handler(a){if(this.formData=O_(a),a.event){this.eventType=Array.isArray(a.event)?"array":"object";const{objectEvent:u,arrayEvent:s}=k_(this.eventType,a);u.length&&(this.objectEvent=u),s.length&&(this.arrayEvent=s)}}},eventType(){this.objectEvent=[...Ic],this.arrayEvent=[...Nl]}},methods:{onFormDataChange(a,u){this.$emit("formDataChange",a,{...u,formData:this.formData})},onCategoryChange(a){if(this.categories.includes(a)){const s=Fl.find(p=>p.value===a);this.$message.warning(`${s.label} already exist`);return}Fl.map(s=>{delete this.formData[s.value]});const u=fp[a];Array.isArray(u)?this.formData[a]=[...u]:typeof u=="object"?this.formData[a]={...u}:this.formData[a]=u,this.formData.category=a,a==="event"&&(this.objectEvent=[...Ic],this.arrayEvent=[...Nl]),this.onFormDataChange("category")},getClassNameRecommend(){return["\u4E0D\u540C\u7684\u503C\uFF0C\u671F\u671B\u4E0D\u540C\u7684\u6839\u5143\u7D20\uFF08\u6216\u5B50\u5143\u7D20\uFF09\u5B58\u5728\u4E0D\u540C\u7684\u7C7B\u540D\u3002","\u63A8\u8350\u89C4\u5219\u4E00\uFF1At-button--variant-${item}\u3002\u5B58\u5728\u679A\u4E3E\u503C\uFF0C\u503C\u4E3A\u7C7B\u540D\u7684\u4E00\u90E8\u5206",'\u63A8\u8350\u89C4\u5219\u4E8C\uFF1A["t-size-s", "t-size-m", "t-size-l"]\u3002\u5B58\u5728\u679A\u4E3E\u503C\u3002\u5982\u679C\u671F\u671B t-size-m \u4E0D\u5B58\u5728\uFF0C\u8BF7\u8BBE\u7F6E [{ "t-size-m": false }]','\u63A8\u8350\u89C4\u5219\u4E09\uFF1A{ "underline": "t-link--hover-underline" }\u3002\u4E0D\u5B58\u5728\u679A\u4E3E\u503C\u3002',`\u63A8\u8350\u89C4\u5219\u56DB\uFF1A[{ "value": "'tdesign-class'", "expect": [{"dom": "tbody > tr", "className": { "tdesign-class": true }}] }]\u3002\u4E0D\u540C\u7684\u503C\u5BF9\u5E94\u591A\u4E2A\u4E0D\u540C\u7684\u5143\u7D20\u548C\u7C7B\u540D\u3002\u3010\u6CE8\u610F\u3011\u8FD9\u4E2A\u89C4\u5219\uFF0C\u4E0D\u9700\u8981\u586B\u5199\u4E0B\u65B9\u7684 \u300C\u7C7B\u540D\u89C4\u5219\u5E94\u7528\u7684 HTML \u5143\u7D20\u300D`]},getAttributeRecommend(){return["\u5C5E\u6027\u89C4\u5219\uFF1A","\u4E0D\u540C\u7684\u503C\uFF0C\u671F\u671B\u4E0D\u540C\u7684\u6839\u5143\u7D20\uFF08\u6216\u5B50\u5143\u7D20\uFF09\u5B58\u5728\u4E0D\u540C\u7684\u5C5E\u6027\u3002\u5143\u7D20\u7684 style/value/checked \u7B49\u4E5F\u5C5E\u4E8E\u5C5E\u6027\u6D4B\u8BD5\u3002",'\u63A8\u8350\u89C4\u5219\u4E00\uFF1A{ "type": ["submit", "reset", "button"] }','\u63A8\u8350\u89C4\u5219\u4E8C\uFF1A{ "href": "https://tdesign.tencent.com/" }',`\u63A8\u8350\u89C4\u5219\u4E09\uFF1A[{ "value": "{ 'data-level': 'level-1' }", "expect": [{ "dom": "tbody > tr", "attribute": { "data-level": "level-1" }}] }]\u3002\u5176\u4E2D\uFF0Cvalue \u8868\u793A API \u7684\u503C\uFF0C\u53EF\u4EE5\u662F\u51FD\u6570\u6216\u6570\u7EC4\u5B57\u7B26\u4E32\u3002\u3010\u6CE8\u610F\u3011\u8FD9\u4E2A\u89C4\u5219\u4E0D\u9700\u8981\u4E0B\u65B9\u7684\u300C\u5C5E\u6027\u89C4\u5219\u5E94\u7528\u7684 HTML \u5143\u7D20\u300D`,'\u5982\u679C\u662F style\uFF0C\u76F4\u63A5\u4F7F\u7528 "style.flexWrap": "wrap" \u5373\u53EF']},getDomRecommend(){return["\u5143\u7D20\u6821\u9A8C\u89C4\u5219\uFF1A",'\u6700\u7B80\u89C4\u5219\uFF1A".t-tag__icon-close"\uFF0C\u8868\u793A\u503C\u4E3A true \u65F6\u5B58\u5728\u5143\u7D20 `.t-tag__icon-close`','\u63A8\u8350\u89C4\u5219\u4E00\uFF1A["button", "a", "div"]\u3002\u5B58\u5728\u679A\u4E3E\u503C\uFF0C\u4F9D\u6B21\u9A8C\u8BC1\u8FD9\u51E0\u4E2A\u5143\u7D20\u662F\u5426\u5B58\u5728\u3002\u5982\uFF1AButton.tag','\u63A8\u8350\u89C4\u5219\u4E8C\uFF1A["tfoot.t-table__footer", { "tfoot > tr": 2 }]\u3002\u76F4\u63A5\u6821\u9A8C\u7EC4\u4EF6\u5B9E\u4F8B\u662F\u5426\u5B58\u5728\u8FD9\u4E9B\u5143\u7D20\uFF0C\u6570\u5B57\u8868\u793A\u5B58\u5728\u51E0\u4E2A','\u63A8\u8350\u89C4\u5219\u4E09\uFF1A{ "[3, 1]": { ".t-table__row--fixed-top": 3 } }\u3002\u8868\u793A\u503C\u4E3A [3, 1] \u65F6\uFF0C\u6821\u9A8C .t-table__row--fixed-top \u662F\u5426\u5B58\u5728 3 \u4E2A','\u6CE8\u610F\uFF1A\u5982\u679C\u5143\u7D20\u4E0D\u5728\u7EC4\u4EF6\u5185\u90E8\uFF0C\u53EA\u80FD\u901A\u8FC7 document \u67E5\u8BE2\uFF0C\u53EF\u4EE5\u8BBE\u7F6E "document.t-popup"']},getDomMoreTips(){return['[".t-image"] \u671F\u671B\u5143\u7D20 .t-image \u5B58\u5728','[{ ".t-image": false }] \u671F\u671B\u5143\u7D20 .t-image \u4E0D\u5B58\u5728','[{ ".t-image": 3 }] \u671F\u671B\u5143\u7D20 .t-image \u5B58\u5728 3 \u4E2A','[{ ".t-image": { "text": "+1" } }] \u671F\u671B\u5143\u7D20 .t-image \u5B58\u5728\u6587\u672C +1','[{ ".t-input": { "attribute": { "value": "input value" } } }] \u671F\u671B\u5143\u7D20 .t-image \u7684\u5C5E\u6027 value \u503C\u4E3A "input value"']},onObjectEventAdd(a){if(!this.objectEvent[a].trigger){this.$message.warning("\u8BF7\u628A\u5F53\u524D\u5185\u5BB9\u586B\u5199\u5B8C\u6574\u540E\u518D\u6DFB\u52A0");return}debugger;this.objectEvent.splice(a,0,{trigger:"",arguments:""})},onObjectEventDelete(a){this.objectEvent.length<2||this.objectEvent.splice(a,1)},onArrayEventAdd(a){this.arrayEvent.splice(a+1,0,{props:"",expect:[{trigger:"",event:"",exist:""}]})},onArrayEventDelete(a){this.arrayEvent.length<2||this.arrayEvent.splice(a,1)},onArrayEventChange(){for(let a=0,u=this.arrayEvent.length;aqy(s)).join("\u3001")}return a},getEventDescription(a){const u=this.getExpectDesc(a.exist);return[a.trigger&&`\u89E6\u53D1 ${a.trigger}`,a.delay&&`\u5EF6\u8FDF ${a.delay==="true"?300:a.delay} \u6BEB\u79D2\u4E4B\u540E`,u,a.event&&`\u671F\u671B ${this.getEventName(a.event)} \u7B49\u4E8B\u4EF6\u5904\u7406\u51FD\u6570\u88AB\u6267\u884C\uFF0C\u4EE5\u53CA\u76F8\u5173\u53C2\u6570\u6B63\u786E`].filter(s=>s).join("\uFF0C")+"\u3002"},getExpectDesc(a){const u=zn(a,[]),s=[],p=[],h=[];return u==null||u.forEach(b=>{if(!!b){if(typeof b=="string")s.push(b);else if(typeof b=="object"){const w=Object.keys(b);if(b[w[0]]===!1)p.push(w[0]);else if(b[w[0]].attribute){const _=[];w.forEach(k=>{Object.keys(b[k].attribute).forEach(M=>{_.push({dom:k,attributeName:M,attributeValue:b[k].attribute[M]})})}),h.push(..._)}else s.push(w[0])}}}),[s.length&&`\u671F\u671B ${s.join("\u3001")} \u7B49\u5143\u7D20\u5B58\u5728`,p.length&&`\u671F\u671B ${p.join("\u3001")} \u7B49\u5143\u7D20\u4E0D\u5B58\u5728`,h.length&&h.map(b=>`\u671F\u671B\u5143\u7D20 ${b.dom} \u7684\u5C5E\u6027 ${b.attributeName} \u503C\u4E3A ${b.attributeValue}`).join("\uFF0C")].filter(b=>b).join("\uFF0C")}}},kd={};var P_=qi(M_,L_,$_,!1,I_,null,null,null);function I_(a){for(let u in kd)this[u]=kd[u]}var N_=function(){return P_.exports}(),R_=function(){var a=this,u=a.$createElement,s=a._self._c||u;return s("div",{staticClass:"unit-test-ui"},[s("t-tabs",{attrs:{list:a.frameWorkOptions},model:{value:a.framework,callback:function(p){a.framework=p},expression:"framework"}}),s("br"),s("t-card",[s("t-form",{attrs:{size:"small"}},[s("t-form-item",a._l(a.formData.list,function(p,h){return s("OneCategoryTest",{key:p.category+h,attrs:{apiInfo:a.apiInfo,data:p,categories:a.categories,testProps:a.formData.props},on:{formDataChange:function(b,w){return a.onOneCategoryTestChange(b,w,h)}},scopedSlots:a._u([{key:"operation",fn:function(){return[s("div",[s("t-button",{staticStyle:{"margin-top":"16px"},attrs:{size:"small"},on:{click:a.onAddMore}},[a._v("\u6DFB\u52A0\u5176\u4ED6\u7C7B\u522B")]),a.formData.list.length>1?s("t-button",{staticStyle:{"margin-top":"16px","margin-left":"16px"},attrs:{theme:"danger",size:"small"},on:{click:function(){return a.onDelete(h)}}},[a._v("\u79FB\u9664")]):a._e()],1)]},proxy:!0}],null,!0)})}),1),s("t-form-item",[s("t-tooltip",{attrs:{theme:"light",content:"\u793A\u4F8B\u4E00\uFF1AText\uFF0C\u8F93\u51FA \uFF1B \u793A\u4F8B\u4E8C\uFF1Achildren\uFF0C \u8F93\u51FA\uFF1A"}},[s("t-input",{attrs:{placeholder:"\u5B50\u7EC4\u4EF6"},on:{change:function(){return a.onFormDataChange("content")}},model:{value:a.formData.content,callback:function(p){a.$set(a.formData,"content",p)},expression:"formData.content"}})],1)],1),s("t-form-item",[s("t-tooltip",{attrs:{theme:"light"},scopedSlots:a._u([{key:"content",fn:function(){return[s("p",[a._v(a._s("const wrapper = mount(< RadioGroup >)")+" \u9ED8\u8BA4\u83B7\u53D6\u7EC4\u4EF6\u5B9E\u4F8B\u65B9\u6CD5\u3002")]),s("p",[a._v(a._s("const wrapper = getRadioGroupDefaultMount(RadioGroup, {})")+" \u586B\u5199\u540E\u7684\u83B7\u53D6\u5B9E\u4F8B\u65B9\u6CD5\uFF0C\u4E00\u822C\u7528\u4E8E\u5B58\u5728\u5B50\u7EC4\u4EF6\u7684\u573A\u666F")])]},proxy:!0}])},[s("t-input",{attrs:{placeholder:"\u83B7\u53D6\u7EC4\u4EF6\u5B9E\u4F8B\u7684\u51FD\u6570\u540D\u79F0\uFF0C\u7C7B\u5B50\u7EC4\u4EF6\u573A\u666F\uFF0C\u5982\uFF1AgetRadioGroupDefaultMount"},on:{change:function(){return a.onFormDataChange("wrapper")}},model:{value:a.formData.wrapper,callback:function(p){a.$set(a.formData,"wrapper",p)},expression:"formData.wrapper"}})],1)],1),s("div",{staticClass:"unit-test-ui__form-item-inner"},[s("t-tooltip",{attrs:{theme:"light"},scopedSlots:a._u([{key:"content",fn:function(){return[s("p",[a._v(" \u5F00\u542F\u6821\u9A8C\u7684\u524D\u7F6E\u6761\u4EF6\uFF0C\u793A\u4F8B\u4E00\uFF1Afocus(.t-input__wrap)\u3002\u793A\u4F8B\u4E8C\uFF1Adelay \u6216\u8005 delay(100)\u3002 "),s("t-link",{attrs:{underline:"",href:"https://github.com/vuejs/test-utils/blob/main/src/constants/dom-events.ts#L566",target:"_blank"}},[a._v("\u6240\u6709\u4E8B\u4EF6\u5217\u8868")])],1)]},proxy:!0}])},[s("t-input",{attrs:{placeholder:"\u7B49\u5F85\u6E32\u67D3\u5EF6\u8FDF\u6216\u89E6\u53D1\u4E8B\u4EF6\u540E\u518D\u5F00\u59CB\u6821\u9A8C"},on:{change:function(){return a.onFormDataChange("trigger")}},model:{value:a.formData.trigger,callback:function(p){a.$set(a.formData,"trigger",p)},expression:"formData.trigger"}})],1)],1),s("t-form-item",{staticStyle:{margin:"16px 0 8px 0"}},[s("t-checkbox",{on:{change:function(){return a.onFormDataChange("snapshot")}},model:{value:a.formData.snapshot,callback:function(p){a.$set(a.formData,"snapshot",p)},expression:"formData.snapshot"}},[a._v("\u751F\u6210\u5FEB\u7167\uFF08Snapshots\uFF09")])],1),s("t-form-item",{staticStyle:{margin:"0px 0 8px 0"}},[s("t-checkbox",{model:{value:a.formData.needCopy,callback:function(p){a.$set(a.formData,"needCopy",p)},expression:"formData.needCopy"}},[a._v("\u590D\u7528\u5F53\u524D\u6240\u6709\u6D4B\u8BD5\u7528\u4F8B\u5230\u5176\u4ED6\u300C\u7EC4\u4EF6\u5B9E\u4F8B\u300D")])],1),a.formData.needCopy?s("t-form-item",[s("t-input",{attrs:{placeholder:"\u591A\u4E2A\u5B9E\u4F8B\u9017\u53F7\u9694\u5F00\uFF0C\u793A\u4F8B\uFF1AgetRadioGroupKidsMount"},on:{change:function(){return a.onFormDataChange("copyTestToWrapper")}},model:{value:a.formData.copyTestToWrapper,callback:function(p){a.$set(a.formData,"copyTestToWrapper",p)},expression:"formData.copyTestToWrapper"}})],1):a._e(),s("t-form-item",[s("t-checkbox",{on:{change:function(){return a.onFormDataChange("skip")}},model:{value:a.formData.skip,callback:function(p){a.$set(a.formData,"skip",p)},expression:"formData.skip"}},[a._v("\u8DF3\u8FC7\u5F53\u524D\u6D4B\u8BD5\u7528\u4F8B")])],1)],1)],1)],1)},F_=[];const B_={name:"UnitTestUI",components:{OneCategoryTest:N_},props:{currentTestJSON:Object,apiInfo:{type:Object,default:()=>({})}},data(){return{framework:"PC",formDataPC:ys(Ts),formDataMobile:ys(Ts),frameWorkOptions:[{label:"PC",value:"PC"},{label:"Mobile",value:"Mobile"}],CATEGORY_OPTIONS:Fl}},computed:{formData(){return{PC:this.formDataPC,Mobile:this.formDataMobile}[this.framework]},categories(){return this.formData.list.map(a=>a.category)}},methods:{updateDataByJSON(){const{currentTestJSON:a}=this;a.PC?this.formDataPC=this.updateFormData(this.formDataPC,a.PC):this.formDataPC=ys(Ts),a.Mobile?this.formDataMobile=this.updateFormData(this.formDataMobile,a.Mobile):this.formDataMobile=ys(Ts)},updateFormData(a,u){var p;const s={...a,dom:u.dom,classNameDom:u.classNameDom,attributeDom:u.attributeDom,props:u.props,content:u.content,wrapper:u.wrapper,trigger:u.trigger,copyTestToWrapper:(p=u.copyTestToWrapper)==null?void 0:p.join(),needCopy:Boolean(u.copyTestToWrapper&&u.copyTestToWrapper.length),snapshot:u.snapshot,skip:u.skip,list:[]};Fl.forEach(h=>{const b=h.value;if(u[b]){const w={category:b,[b]:this.formatCategoryData(b,u[b])};b==="className"?w.classNameDom=u.classNameDom:b==="attribute"&&(w.attributeDom=u.attributeDom),["tnode","className","attribute","dom"].includes("key")&&(w.props=u.props),s.list.push(w)}});for(let h=s.list.length;h{u[s.trigger]={arguments:s.arguments?JSON.parse(s.arguments):void 0}}),u}if(a.arrayEvent)return a.arrayEvent.map(u=>({props:u.props?zn(u.props):void 0,description:u.description,wrapper:u.wrapper,expect:u.expect.map(s=>({trigger:s.trigger,event:s.event?zn(s.event):void 0,exist:s.exist?zn(s.exist,[]):void 0,delay:s.delay==="true"?!0:s.delay?Number(s.delay):void 0}))}))},clearFormData(){this.formDataPC=ys(Ts),this.formDataMobile=ys(Ts)},onAddMore(){this[`formData${this.framework}`].list.push({...fp})},onDelete(a){if(this[`formData${this.framework}`].list.length<=1){this.$message.warning("\u81F3\u5C11\u4FDD\u7559\u4E00\u4E2A");return}this[`formData${this.framework}`].list.splice(a,1)}}},Ld={};var W_=qi(B_,R_,F_,!1,U_,null,null,null);function U_(a){for(let u in Ld)this[u]=Ld[u]}var H_=function(){return W_.exports}(),z_={parser:"typescript",printWidth:120,tabWidth:2,useTabs:!1,semi:!0,singleQuote:!0,quoteProps:"as-needed",jsxSingleQuote:!1,trailingComma:"all",bracketSpacing:!0,arrowParens:"always",rangeStart:0,rangeEnd:1/0,requirePragma:!1,insertPragma:!1,proseWrap:"preserve",htmlWhitespaceSensitivity:"css",vueIndentScriptAndStyle:!1,endOfLine:"lf"},Mh={exports:{}};(function(a){var u=typeof window!="undefined"?window:typeof WorkerGlobalScope!="undefined"&&self instanceof WorkerGlobalScope?self:{};/** * Prism: Lightweight, robust, elegant syntax highlighting * diff --git a/packages/frontend/_site/assets/index.0c12acca.js b/packages/frontend/_site/assets/index.65680dd1.js similarity index 99% rename from packages/frontend/_site/assets/index.0c12acca.js rename to packages/frontend/_site/assets/index.65680dd1.js index 85b5ee474..2afbfc224 100644 --- a/packages/frontend/_site/assets/index.0c12acca.js +++ b/packages/frontend/_site/assets/index.65680dd1.js @@ -2175,4 +2175,4 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho * tdesign v1.9.1 * (c) 2024 tdesign * @license MIT - */function tI(t,e){t._installedPlugins.indexOf(it)===-1&&t.use(it),Object.keys(ic).forEach(function(r){ic[r]&&(/plugin/i.test(r)?t.use(ic[r]):t.use(ic[r],e))})}typeof window!="undefined"&&window.Vue&&tI(window.Vue);var wpe={install:tI,version:"1.9.1"};const Ope="modulepreload",Sx={},Ppe="/",_x=function(e,r){return!r||r.length===0?e():Promise.all(r.map(n=>{if(n=`${Ppe}${n}`,n in Sx)return;Sx[n]=!0;const a=n.endsWith(".css"),i=a?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${n}"]${i}`))return;const o=document.createElement("link");if(o.rel=a?"stylesheet":Ope,a||(o.as="script",o.crossOrigin=""),o.href=n,document.head.appendChild(o),a)return new Promise((l,s)=>{o.addEventListener("load",l),o.addEventListener("error",()=>s(new Error(`Unable to preload CSS for ${n}`)))})})).then(()=>e())},Spe=[{path:"/api_design",component:()=>_x(()=>import("./index.927e92f8.js"),["assets/index.927e92f8.js","assets/index.d2ef5ea3.css"])},{path:"/apis",component:()=>_x(()=>import("./preview.b0e92229.js"),["assets/preview.b0e92229.js","assets/index.927e92f8.js","assets/index.d2ef5ea3.css"])},{path:"*",redirect:"/api_design"}];var _pe=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("router-view")},xpe=[];function Epe(t,e,r,n,a,i,o,l){var s=typeof t=="function"?t.options:t;e&&(s.render=e,s.staticRenderFns=r,s._compiled=!0),n&&(s.functional=!0),i&&(s._scopeId="data-v-"+i);var u;if(o?(u=function(f){f=f||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,!f&&typeof __VUE_SSR_CONTEXT__!="undefined"&&(f=__VUE_SSR_CONTEXT__),a&&a.call(this,f),f&&f._registeredComponents&&f._registeredComponents.add(o)},s._ssrRegister=u):a&&(u=l?function(){a.call(this,(s.functional?this.parent:this).$root.$options.shadowRoot)}:a),u)if(s.functional){s._injectStyles=u;var c=s.render;s.render=function(v,h){return u.call(h),c(v,h)}}else{var d=s.beforeCreate;s.beforeCreate=d?[].concat(d,u):[u]}return{exports:t,options:s}}const Dpe={},xx={};var kpe=Epe(Dpe,_pe,xpe,!1,jpe,null,null,null);function jpe(t){for(let e in xx)this[e]=xx[e]}var $pe=function(){return kpe.exports}();ae.use(R1);ae.use(wpe);const Ipe=new R1({mode:"history",routes:Spe});ae.config.productionTip=!1;new ae({router:Ipe,render:t=>t($pe)}).$mount("#app");export{Yve as B,On as C,b$ as D,e7 as I,Ut as L,vi as O,Qhe as P,mj as R,ra as S,ae as V,Qn as a,lt as b,Qa as c,Ho as d,Dr as e,Yr as f,sf as g,iW as h,dn as i,Sg as j,$a as k,Epe as n,Da as p,ag as u}; + */function tI(t,e){t._installedPlugins.indexOf(it)===-1&&t.use(it),Object.keys(ic).forEach(function(r){ic[r]&&(/plugin/i.test(r)?t.use(ic[r]):t.use(ic[r],e))})}typeof window!="undefined"&&window.Vue&&tI(window.Vue);var wpe={install:tI,version:"1.9.1"};const Ope="modulepreload",Sx={},Ppe="/",_x=function(e,r){return!r||r.length===0?e():Promise.all(r.map(n=>{if(n=`${Ppe}${n}`,n in Sx)return;Sx[n]=!0;const a=n.endsWith(".css"),i=a?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${n}"]${i}`))return;const o=document.createElement("link");if(o.rel=a?"stylesheet":Ope,a||(o.as="script",o.crossOrigin=""),o.href=n,document.head.appendChild(o),a)return new Promise((l,s)=>{o.addEventListener("load",l),o.addEventListener("error",()=>s(new Error(`Unable to preload CSS for ${n}`)))})})).then(()=>e())},Spe=[{path:"/api_design",component:()=>_x(()=>import("./index.63152407.js"),["assets/index.63152407.js","assets/index.d2ef5ea3.css"])},{path:"/apis",component:()=>_x(()=>import("./preview.b804e12d.js"),["assets/preview.b804e12d.js","assets/index.63152407.js","assets/index.d2ef5ea3.css"])},{path:"*",redirect:"/api_design"}];var _pe=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("router-view")},xpe=[];function Epe(t,e,r,n,a,i,o,l){var s=typeof t=="function"?t.options:t;e&&(s.render=e,s.staticRenderFns=r,s._compiled=!0),n&&(s.functional=!0),i&&(s._scopeId="data-v-"+i);var u;if(o?(u=function(f){f=f||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,!f&&typeof __VUE_SSR_CONTEXT__!="undefined"&&(f=__VUE_SSR_CONTEXT__),a&&a.call(this,f),f&&f._registeredComponents&&f._registeredComponents.add(o)},s._ssrRegister=u):a&&(u=l?function(){a.call(this,(s.functional?this.parent:this).$root.$options.shadowRoot)}:a),u)if(s.functional){s._injectStyles=u;var c=s.render;s.render=function(v,h){return u.call(h),c(v,h)}}else{var d=s.beforeCreate;s.beforeCreate=d?[].concat(d,u):[u]}return{exports:t,options:s}}const Dpe={},xx={};var kpe=Epe(Dpe,_pe,xpe,!1,jpe,null,null,null);function jpe(t){for(let e in xx)this[e]=xx[e]}var $pe=function(){return kpe.exports}();ae.use(R1);ae.use(wpe);const Ipe=new R1({mode:"history",routes:Spe});ae.config.productionTip=!1;new ae({router:Ipe,render:t=>t($pe)}).$mount("#app");export{Yve as B,On as C,b$ as D,e7 as I,Ut as L,vi as O,Qhe as P,mj as R,ra as S,ae as V,Qn as a,lt as b,Qa as c,Ho as d,Dr as e,Yr as f,sf as g,iW as h,dn as i,Sg as j,$a as k,Epe as n,Da as p,ag as u}; diff --git a/packages/frontend/_site/assets/preview.b0e92229.js b/packages/frontend/_site/assets/preview.b804e12d.js similarity index 75% rename from packages/frontend/_site/assets/preview.b0e92229.js rename to packages/frontend/_site/assets/preview.b804e12d.js index 1fea1ead1..880e8644c 100644 --- a/packages/frontend/_site/assets/preview.b0e92229.js +++ b/packages/frontend/_site/assets/preview.b804e12d.js @@ -1 +1 @@ -import o from"./index.927e92f8.js";import{n as i}from"./index.0c12acca.js";import"https://tdesign.gtimg.com/js/prettier%402.8.1-standalone.mjs";import"https://tdesign.gtimg.com/js/prettier%402.8.1-parser-babel.mjs";var s=function(){var n=this,e=n.$createElement,r=n._self._c||e;return r("api-design",{attrs:{preview:""}})},a=[];const _={name:"ApiPreview",components:{ApiDesign:o}},t={};var c=i(_,s,a,!1,p,null,null,null);function p(n){for(let e in t)this[e]=t[e]}var f=function(){return c.exports}();export{f as default}; +import o from"./index.63152407.js";import{n as i}from"./index.65680dd1.js";import"https://tdesign.gtimg.com/js/prettier%402.8.1-standalone.mjs";import"https://tdesign.gtimg.com/js/prettier%402.8.1-parser-babel.mjs";var s=function(){var n=this,e=n.$createElement,r=n._self._c||e;return r("api-design",{attrs:{preview:""}})},a=[];const _={name:"ApiPreview",components:{ApiDesign:o}},t={};var c=i(_,s,a,!1,p,null,null,null);function p(n){for(let e in t)this[e]=t[e]}var f=function(){return c.exports}();export{f as default}; diff --git a/packages/frontend/_site/index.html b/packages/frontend/_site/index.html index 3cd8833ed..4b581dc35 100644 --- a/packages/frontend/_site/index.html +++ b/packages/frontend/_site/index.html @@ -15,7 +15,7 @@ } - + diff --git a/packages/frontend/src/pages/api/import.vue b/packages/frontend/src/pages/api/import.vue index 9e8fbc0dc..02250df4a 100644 --- a/packages/frontend/src/pages/api/import.vue +++ b/packages/frontend/src/pages/api/import.vue @@ -164,7 +164,7 @@ -
+