@deanwu/vue-component-library 1.3.113 → 1.3.114
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/vue-component-library.common.js +12 -13
- package/dist/vue-component-library.common.js.map +1 -1
- package/dist/vue-component-library.umd.js +12 -13
- package/dist/vue-component-library.umd.js.map +1 -1
- package/dist/vue-component-library.umd.min.js +1 -1
- package/dist/vue-component-library.umd.min.js.map +1 -1
- package/package.json +1 -1
|
@@ -15,7 +15,7 @@ return function(e){var n=t,i=n.lib,r=i.WordArray,o=i.Hasher,a=n.algo,s=r.create(
|
|
|
15
15
|
* derived from CryptoJS.mode.CTR
|
|
16
16
|
* Jan Hruby jhruby.web@gmail.com
|
|
17
17
|
*/
|
|
18
|
-
return t.mode.CTRGladman=function(){var e=t.lib.BlockCipherMode.extend();function n(t){if(255===(t>>24&255)){var e=t>>16&255,n=t>>8&255,i=255&t;255===e?(e=0,255===n?(n=0,255===i?i=0:++i):++n):++e,t=0,t+=e<<16,t+=n<<8,t+=i}else t+=1<<24;return t}function i(t){return 0===(t[0]=n(t[0]))&&(t[1]=n(t[1])),t}var r=e.Encryptor=e.extend({processBlock:function(t,e){var n=this._cipher,r=n.blockSize,o=this._iv,a=this._counter;o&&(a=this._counter=o.slice(0),this._iv=void 0),i(a);var s=a.slice(0);n.encryptBlock(s,0);for(var l=0;l<r;l++)t[e+l]^=s[l]}});return e.Decryptor=r,e}(),t.mode.CTRGladman}))},ab07:function(t,e,n){},ab1f:function(t,e,n){"use strict";n("50f6")},ab36:function(t,e,n){"use strict";var i=n("861d"),r=n("9112");t.exports=function(t,e){i(e)&&"cause"in e&&r(t,"cause",e.cause)}},ad2f:function(t,e,n){},ad6d:function(t,e,n){"use strict";var i=n("825a");t.exports=function(){var t=i(this),e="";return t.hasIndices&&(e+="d"),t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.unicodeSets&&(e+="v"),t.sticky&&(e+="y"),e}},ad6e:function(t,e,n){"use strict";n("bde4")},aeb0:function(t,e,n){"use strict";var i=n("9bf2").f;t.exports=function(t,e,n){n in t||i(t,n,{configurable:!0,get:function(){return e[n]},set:function(t){e[n]=t}})}},aed9:function(t,e,n){"use strict";var i=n("83ab"),r=n("d039");t.exports=i&&r((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},b035:function(t,e,n){"use strict";n.r(e),e["default"]="## 示例代码\r\n\r\n```\r\n<c-input></c-input>\r\n```\r\n\r\n## 属性配置\r\n\r\n属性 | 类型 | 默认值 | 说明\r\n---- | ---- | ---- | ----\r\nvalue | String \\| Number | - | 输入框的值,可使用v-model属性绑定变量\r\nname | String | - | 字段名\r\ntype | String | text | 按钮尺寸<br>**text**: 文本框<br>**password**: 密码框<br>**number**: 数字框<br>**stepper**: 步进器<br>**textarea**: 多行文本\r\nplaceholder | String | - | 提示占位符\r\nmaxlength | Number \\| String | - | 可输入最大字符数\r\ndecimal | Number \\| String | 0 | 数字框小数位数\r\nrange | Number \\| Array | 0 | 数字框数字范围<br>可输入逗号隔开的字符串('0,100')或数组([0, 100])\r\nprepend-text | String | - | 前置文本内容\r\nappend-text | String | - | 后置文本内容\r\nvisible | Boolean | false | 密码框显示密码按钮\r\nstep | Number \\| String | 1 | 步进器精度\r\nstep-controls | String | both | 步进器按钮位置<br>**both**: 两侧<br>**side**: 一侧\r\ndisabled | Boolean | false | 是否禁用输入框\r\nreadonly | Boolean | false | 输入框是否只读\r\nclear | Boolean | false | 是否显示清空按钮\r\nheight-resize | Boolean \\| String | true | 多行文本是否支持调整高度,'auto'表示自动高度\r\n@input | Function | - | 输入事件\r\n@focus | Function | - | 焦点移入事件\r\n@blur | Function | - | 焦点移出事件\r\n@change | Function | - | 内容改变事件\r\n@suggest | Function(value, resolve) | - | 输入建议事件"},b038:function(t,e,n){"use strict";n("db68")},b108:function(t,e,n){},b42e:function(t,e,n){"use strict";var i=Math.ceil,r=Math.floor;t.exports=Math.trunc||function(t){var e=+t;return(e>0?r:i)(e)}},b50d:function(t,e,n){"use strict";var i=n("c532"),r=n("467f"),o=n("7aac"),a=n("30b5"),s=n("83b9"),l=n("c345"),c=n("3934"),u=n("2d83");t.exports=function(t){return new Promise((function(e,n){var d=t.data,h=t.headers;i.isFormData(d)&&delete h["Content-Type"],(i.isBlob(d)||i.isFile(d))&&d.type&&delete h["Content-Type"];var p=new XMLHttpRequest;if(t.auth){var f=t.auth.username||"",m=unescape(encodeURIComponent(t.auth.password))||"";h.Authorization="Basic "+btoa(f+":"+m)}var g=s(t.baseURL,t.url);if(p.open(t.method.toUpperCase(),a(g,t.params,t.paramsSerializer),!0),p.timeout=t.timeout,p.onreadystatechange=function(){if(p&&4===p.readyState&&(0!==p.status||p.responseURL&&0===p.responseURL.indexOf("file:"))){var i="getAllResponseHeaders"in p?l(p.getAllResponseHeaders()):null,o=t.responseType&&"text"!==t.responseType?p.response:p.responseText,a={data:o,status:p.status,statusText:p.statusText,headers:i,config:t,request:p};r(e,n,a),p=null}},p.onabort=function(){p&&(n(u("Request aborted",t,"ECONNABORTED",p)),p=null)},p.onerror=function(){n(u("Network Error",t,null,p)),p=null},p.ontimeout=function(){var e="timeout of "+t.timeout+"ms exceeded";t.timeoutErrorMessage&&(e=t.timeoutErrorMessage),n(u(e,t,"ECONNABORTED",p)),p=null},i.isStandardBrowserEnv()){var v=(t.withCredentials||c(g))&&t.xsrfCookieName?o.read(t.xsrfCookieName):void 0;v&&(h[t.xsrfHeaderName]=v)}if("setRequestHeader"in p&&i.forEach(h,(function(t,e){"undefined"===typeof d&&"content-type"===e.toLowerCase()?delete h[e]:p.setRequestHeader(e,t)})),i.isUndefined(t.withCredentials)||(p.withCredentials=!!t.withCredentials),t.responseType)try{p.responseType=t.responseType}catch(b){if("json"!==t.responseType)throw b}"function"===typeof t.onDownloadProgress&&p.addEventListener("progress",t.onDownloadProgress),"function"===typeof t.onUploadProgress&&p.upload&&p.upload.addEventListener("progress",t.onUploadProgress),t.cancelToken&&t.cancelToken.promise.then((function(t){p&&(p.abort(),n(t),p=null)})),d||(d=null),p.send(d)}))}},b564:function(t,e,n){"use strict";n("151b")},b622:function(t,e,n){"use strict";var i=n("da84"),r=n("5692"),o=n("1a2d"),a=n("90e3"),s=n("04f8"),l=n("fdbf"),c=i.Symbol,u=r("wks"),d=l?c["for"]||c:c&&c.withoutSetter||a;t.exports=function(t){return o(u,t)||(u[t]=s&&o(c,t)?c[t]:d("Symbol."+t)),u[t]}},b74a:function(t,e,n){"use strict";n.r(e),e["default"]='## 示例代码\n\n```\r\n<c-detail column="3">\n\t<c-detail-item label="字段名" colspan="2">\n\t\t单独设置占两列\n\t</c-detail-item>\n\t\n\t<c-detail-item label="字段名">\n\t\t内容\n\t</c-detail-item>\n</c-detail>\n```\n\n## 属性配置\r\n\r\n### 详情主体 <c-detail\\>\r\n\n属性 | 类型 | 默认值 | 说明\n---- | ---- | ---- | ----\r\ncolumn | String | - | 列数\r\n\r\n### 详情项 <c-detail-item\\>\r\n\n属性 | 类型 | 默认值 | 说明\n---- | ---- | ---- | ----\r\nlabel | String | - | 字段名\r\ncolspan | String | 1 | 该项占几列'},b771:function(t,e,n){},b86b:function(t,e,n){(function(e,i,r){t.exports=i(n("21bf"),n("3252"),n("d6e6"))})(0,(function(t){return function(){var e=t,n=e.x64,i=n.Word,r=n.WordArray,o=e.algo,a=o.SHA512,s=o.SHA384=a.extend({_doReset:function(){this._hash=new r.init([new i.init(3418070365,3238371032),new i.init(1654270250,914150663),new i.init(2438529370,812702999),new i.init(355462360,4144912697),new i.init(1731405415,4290775857),new i.init(2394180231,1750603025),new i.init(3675008525,1694076839),new i.init(1203062813,3204075428)])},_doFinalize:function(){var t=a._doFinalize.call(this);return t.sigBytes-=16,t}});e.SHA384=a._createHelper(s),e.HmacSHA384=a._createHmacHelper(s)}(),t.SHA384}))},b86c:function(t,e,n){(function(e,i,r){t.exports=i(n("21bf"),n("38ba"))})(0,(function(t){return t.pad.NoPadding={pad:function(){},unpad:function(){}},t.pad.NoPadding}))},b980:function(t,e,n){"use strict";var i=n("d039"),r=n("5c6c");t.exports=!i((function(){var t=Error("a");return!("stack"in t)||(Object.defineProperty(t,"stack",r(1,7)),7!==t.stack)}))},b9c5:function(t,e,n){},bb56:function(t,e,n){},bbf0:function(t,e,n){const i=n("27a3"),r=n("0425");function o(t){if("string"!==typeof t)throw new Error("Param is not a string");const n=t.toLowerCase();switch(n){case"numeric":return e.NUMERIC;case"alphanumeric":return e.ALPHANUMERIC;case"kanji":return e.KANJI;case"byte":return e.BYTE;default:throw new Error("Unknown mode: "+t)}}e.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},e.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},e.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},e.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},e.MIXED={bit:-1},e.getCharCountIndicator=function(t,e){if(!t.ccBits)throw new Error("Invalid mode: "+t);if(!i.isValid(e))throw new Error("Invalid version: "+e);return e>=1&&e<10?t.ccBits[0]:e<27?t.ccBits[1]:t.ccBits[2]},e.getBestModeForData=function(t){return r.testNumeric(t)?e.NUMERIC:r.testAlphanumeric(t)?e.ALPHANUMERIC:r.testKanji(t)?e.KANJI:e.BYTE},e.toString=function(t){if(t&&t.id)return t.id;throw new Error("Invalid mode")},e.isValid=function(t){return t&&t.bit&&t.ccBits},e.from=function(t,n){if(e.isValid(t))return t;try{return o(t)}catch(i){return n}}},bc3a:function(t,e,n){t.exports=n("cee4")},bd2f:function(t,e,n){"use strict";n("4f25")},bde4:function(t,e,n){},be04:function(t,e,n){},befa:function(t,e,n){const i=n("bbf0"),r=n("dd7e"),o=n("9d94"),a=n("0196"),s=n("2f3a"),l=n("0425"),c=n("7bf0"),u=n("10b0");function d(t){return unescape(encodeURIComponent(t)).length}function h(t,e,n){const i=[];let r;while(null!==(r=t.exec(n)))i.push({data:r[0],index:r.index,mode:e,length:r[0].length});return i}function p(t){const e=h(l.NUMERIC,i.NUMERIC,t),n=h(l.ALPHANUMERIC,i.ALPHANUMERIC,t);let r,o;c.isKanjiModeEnabled()?(r=h(l.BYTE,i.BYTE,t),o=h(l.KANJI,i.KANJI,t)):(r=h(l.BYTE_KANJI,i.BYTE,t),o=[]);const a=e.concat(n,r,o);return a.sort((function(t,e){return t.index-e.index})).map((function(t){return{data:t.data,mode:t.mode,length:t.length}}))}function f(t,e){switch(e){case i.NUMERIC:return r.getBitsLength(t);case i.ALPHANUMERIC:return o.getBitsLength(t);case i.KANJI:return s.getBitsLength(t);case i.BYTE:return a.getBitsLength(t)}}function m(t){return t.reduce((function(t,e){const n=t.length-1>=0?t[t.length-1]:null;return n&&n.mode===e.mode?(t[t.length-1].data+=e.data,t):(t.push(e),t)}),[])}function g(t){const e=[];for(let n=0;n<t.length;n++){const r=t[n];switch(r.mode){case i.NUMERIC:e.push([r,{data:r.data,mode:i.ALPHANUMERIC,length:r.length},{data:r.data,mode:i.BYTE,length:r.length}]);break;case i.ALPHANUMERIC:e.push([r,{data:r.data,mode:i.BYTE,length:r.length}]);break;case i.KANJI:e.push([r,{data:r.data,mode:i.BYTE,length:d(r.data)}]);break;case i.BYTE:e.push([{data:r.data,mode:i.BYTE,length:d(r.data)}])}}return e}function v(t,e){const n={},r={start:{}};let o=["start"];for(let a=0;a<t.length;a++){const s=t[a],l=[];for(let t=0;t<s.length;t++){const c=s[t],u=""+a+t;l.push(u),n[u]={node:c,lastCount:0},r[u]={};for(let t=0;t<o.length;t++){const a=o[t];n[a]&&n[a].node.mode===c.mode?(r[a][u]=f(n[a].lastCount+c.length,c.mode)-f(n[a].lastCount,c.mode),n[a].lastCount+=c.length):(n[a]&&(n[a].lastCount=c.length),r[a][u]=f(c.length,c.mode)+4+i.getCharCountIndicator(c.mode,e))}}o=l}for(let i=0;i<o.length;i++)r[o[i]].end=0;return{map:r,table:n}}function b(t,e){let n;const l=i.getBestModeForData(t);if(n=i.from(e,l),n!==i.BYTE&&n.bit<l.bit)throw new Error('"'+t+'" cannot be encoded with mode '+i.toString(n)+".\n Suggested mode is: "+i.toString(l));switch(n!==i.KANJI||c.isKanjiModeEnabled()||(n=i.BYTE),n){case i.NUMERIC:return new r(t);case i.ALPHANUMERIC:return new o(t);case i.KANJI:return new s(t);case i.BYTE:return new a(t)}}e.fromArray=function(t){return t.reduce((function(t,e){return"string"===typeof e?t.push(b(e,null)):e.data&&t.push(b(e.data,e.mode)),t}),[])},e.fromString=function(t,n){const i=p(t,c.isKanjiModeEnabled()),r=g(i),o=v(r,n),a=u.find_path(o.map,"start","end"),s=[];for(let e=1;e<a.length-1;e++)s.push(o.table[a[e]].node);return e.fromArray(m(s))},e.rawSplit=function(t){return e.fromArray(p(t,c.isKanjiModeEnabled()))}},c046:function(t,e,n){},c04e:function(t,e,n){"use strict";var i=n("c65b"),r=n("861d"),o=n("d9b5"),a=n("dc4a"),s=n("485a"),l=n("b622"),c=TypeError,u=l("toPrimitive");t.exports=function(t,e){if(!r(t)||o(t))return t;var n,l=a(t,u);if(l){if(void 0===e&&(e="default"),n=i(l,t,e),!r(n)||o(n))return n;throw c("Can't convert object to primitive value")}return void 0===e&&(e="number"),s(t,e)}},c0c9:function(t,e,n){"use strict";n.r(e),e["default"]='## 示例代码\r\n\r\n```\r\n<c-select></c-select> // 下拉框\r\n<c-region></c-region> // 地址框\r\n<c-datetime></c-datetime> // 日期框\r\n<c-color></c-color> // 颜色框\r\n<c-transfer></c-transfer> // 穿梭框\r\n```\r\n\r\n## 属性配置\r\n\r\n### 下拉框 <c-select\\>\r\n\r\n属性 | 类型 | 默认值 | 说明\r\n---- | ---- | ---- | ----\r\nvalue | String | - | 下拉框的值,可使用v-model属性绑定变量\r\nvalue-data | Array | - | 下拉框值对应的数据,异步模式下可用\r\nname | String | - | 字段名\r\nplaceholder | String | - | 提示占位符\r\noptions | Array | - | 选项数据:[{"name": "选项名", "value": "选项值"}]\r\ndisabled | Boolean | false | 是否禁用下拉框\r\nmultiple | Boolean \\| Object | false | 是否支持多选\r\nmultiple.limit | Number | - | 多选最多可以选的选项数\r\nmultiple.linefeed | Boolean | false | 多选标签是否换行显示\r\nsearch | Boolean \\| Object | false | 是否支持搜索,异步模式下默认开启\r\nsearch.empty | Boolean | true | 异步模式下是否支持空搜索\r\nsearch.add | Boolean | false | 是否支持添加选项\r\nasync | Boolean | false | 异步模式\r\nclear | Boolean | false | 是否显示清空按钮\r\n@change | Function | - | 选项变化事件\r\n@search | Function(keyword, resolve) | - | 搜索事件,异步模式下可用\r\n@add | Function(keyword, resolve) | - | 添加选项事件\r\n@customEvent | Function(data, resolve) | - | 自定义事件\r\n\r\n### 地址框 <c-region\\>\r\n\r\n属性 | 类型 | 默认值 | 说明\r\n---- | ---- | ---- | ----\r\nvalue | String | - | 地址框的值,可使用v-model属性绑定变量\r\nprovince-name | String | - | 省份字段名\r\ncity-name | String | - | 城市字段名\r\ncounty-name | String | - | 区县字段名\r\naddress-name | String | - | 详细街道字段名\r\nlevel | String \\| Number | 3 | 地址库级别<br>**1**: 到省级<br>**2**: 到市级<br>**3**: 到区县级<br>**4**: 到详细街道地址\r\n\r\n### 日期框 <c-datetime\\>\r\n\r\n属性 | 类型 | 默认值 | 说明\r\n---- | ---- | ---- | ----\r\nvalue | String | - | 日期框的值,可使用v-model属性绑定变量\r\nname | String | - | 字段名\r\nstart-name | String | - | 开始日期字段名\r\nend-name | String | - | 结束日期字段名\r\nplaceholder | String | - | 提示占位符\r\ntype | String | datetime | 日期类型<br>**datetime**: 日期+时间<br>**date**: 仅日期<br>**time**: 仅时间\r\ntime-accuracy | String | sec | 时间精度<br>**hour**: 到小时<br>**min**: 到分钟<br>**sec**: 到秒\r\ndefault-time | String \\| Array | - | 默认时间\r\nrange | Boolean | - | 是否为范围选择\r\nformat | Boolean | \'yyyy-MM-dd hh:mm:ss\' | 日期格式\r\ndisabled | Boolean | false | 是否禁用日期框\r\n\r\n### 颜色框 <c-color\\>\r\n\r\n属性 | 类型 | 默认值 | 说明\r\n---- | ---- | ---- | ----\r\nvalue | String | - | 颜色框的值,可使用v-model属性绑定变量\r\nname | String | - | 字段名\r\n\r\n### 穿梭框 <c-transfer\\>\r\n\r\n属性 | 类型 | 默认值 | 说明\r\n---- | ---- | ---- | ----\r\nvalue | Array | - | 穿梭框的值,可使用v-model属性绑定变量\r\nvalue-data | Array | - | 穿梭框值对应的数据,异步模式下可用\r\nname | String | - | 字段名\r\ntitle | String \\| Array | 数据 | 穿梭框的标题,传入字符串xx时标题为"全部xx"和"已选xx",也可传入数组:[\'左侧标题\', \'右侧标题\']\r\ndata | Array | - | 所有可选数据:[{"name": "选项名", "value": "选项值"}]\r\nsearch | Boolean \\| Object | false | 搜索功能,异步模式下默认开启\r\nsearch.immediate | Boolean | true | 异步模式下是否立即加载数据\r\nsearch.placeholder | String | - | 搜索框提示信息\r\nasync | Boolean | false | 异步模式\r\nsort | Boolean | false | 是否支持排序\r\n@search | Function(keyword, resolve) | - | 搜索事件,异步模式下可用'},c15a:function(t,e,n){"use strict";n("fd29")},c198:function(t,e,n){(function(e,i,r){t.exports=i(n("21bf"),n("1132"),n("72fe"),n("2b79"),n("38ba"))})(0,(function(t){return function(){var e=t,n=e.lib,i=n.BlockCipher,r=e.algo,o=[],a=[],s=[],l=[],c=[],u=[],d=[],h=[],p=[],f=[];(function(){for(var t=[],e=0;e<256;e++)t[e]=e<128?e<<1:e<<1^283;var n=0,i=0;for(e=0;e<256;e++){var r=i^i<<1^i<<2^i<<3^i<<4;r=r>>>8^255&r^99,o[n]=r,a[r]=n;var m=t[n],g=t[m],v=t[g],b=257*t[r]^16843008*r;s[n]=b<<24|b>>>8,l[n]=b<<16|b>>>16,c[n]=b<<8|b>>>24,u[n]=b;b=16843009*v^65537*g^257*m^16843008*n;d[r]=b<<24|b>>>8,h[r]=b<<16|b>>>16,p[r]=b<<8|b>>>24,f[r]=b,n?(n=m^t[t[t[v^m]]],i^=t[t[i]]):n=i=1}})();var m=[0,1,2,4,8,16,32,64,128,27,54],g=r.AES=i.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var t=this._keyPriorReset=this._key,e=t.words,n=t.sigBytes/4,i=this._nRounds=n+6,r=4*(i+1),a=this._keySchedule=[],s=0;s<r;s++)s<n?a[s]=e[s]:(u=a[s-1],s%n?n>6&&s%n==4&&(u=o[u>>>24]<<24|o[u>>>16&255]<<16|o[u>>>8&255]<<8|o[255&u]):(u=u<<8|u>>>24,u=o[u>>>24]<<24|o[u>>>16&255]<<16|o[u>>>8&255]<<8|o[255&u],u^=m[s/n|0]<<24),a[s]=a[s-n]^u);for(var l=this._invKeySchedule=[],c=0;c<r;c++){s=r-c;if(c%4)var u=a[s];else u=a[s-4];l[c]=c<4||s<=4?u:d[o[u>>>24]]^h[o[u>>>16&255]]^p[o[u>>>8&255]]^f[o[255&u]]}}},encryptBlock:function(t,e){this._doCryptBlock(t,e,this._keySchedule,s,l,c,u,o)},decryptBlock:function(t,e){var n=t[e+1];t[e+1]=t[e+3],t[e+3]=n,this._doCryptBlock(t,e,this._invKeySchedule,d,h,p,f,a);n=t[e+1];t[e+1]=t[e+3],t[e+3]=n},_doCryptBlock:function(t,e,n,i,r,o,a,s){for(var l=this._nRounds,c=t[e]^n[0],u=t[e+1]^n[1],d=t[e+2]^n[2],h=t[e+3]^n[3],p=4,f=1;f<l;f++){var m=i[c>>>24]^r[u>>>16&255]^o[d>>>8&255]^a[255&h]^n[p++],g=i[u>>>24]^r[d>>>16&255]^o[h>>>8&255]^a[255&c]^n[p++],v=i[d>>>24]^r[h>>>16&255]^o[c>>>8&255]^a[255&u]^n[p++],b=i[h>>>24]^r[c>>>16&255]^o[u>>>8&255]^a[255&d]^n[p++];c=m,u=g,d=v,h=b}m=(s[c>>>24]<<24|s[u>>>16&255]<<16|s[d>>>8&255]<<8|s[255&h])^n[p++],g=(s[u>>>24]<<24|s[d>>>16&255]<<16|s[h>>>8&255]<<8|s[255&c])^n[p++],v=(s[d>>>24]<<24|s[h>>>16&255]<<16|s[c>>>8&255]<<8|s[255&u])^n[p++],b=(s[h>>>24]<<24|s[c>>>16&255]<<16|s[u>>>8&255]<<8|s[255&d])^n[p++];t[e]=m,t[e+1]=g,t[e+2]=v,t[e+3]=b},keySize:8});e.AES=i._createHelper(g)}(),t.AES}))},c1bc:function(t,e,n){(function(e,i){t.exports=i(n("21bf"))})(0,(function(t){return function(){var e=t,n=e.lib,i=n.WordArray,r=e.enc;r.Base64url={stringify:function(t,e=!0){var n=t.words,i=t.sigBytes,r=e?this._safe_map:this._map;t.clamp();for(var o=[],a=0;a<i;a+=3)for(var s=n[a>>>2]>>>24-a%4*8&255,l=n[a+1>>>2]>>>24-(a+1)%4*8&255,c=n[a+2>>>2]>>>24-(a+2)%4*8&255,u=s<<16|l<<8|c,d=0;d<4&&a+.75*d<i;d++)o.push(r.charAt(u>>>6*(3-d)&63));var h=r.charAt(64);if(h)while(o.length%4)o.push(h);return o.join("")},parse:function(t,e=!0){var n=t.length,i=e?this._safe_map:this._map,r=this._reverseMap;if(!r){r=this._reverseMap=[];for(var a=0;a<i.length;a++)r[i.charCodeAt(a)]=a}var s=i.charAt(64);if(s){var l=t.indexOf(s);-1!==l&&(n=l)}return o(t,n,r)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"};function o(t,e,n){for(var r=[],o=0,a=0;a<e;a++)if(a%4){var s=n[t.charCodeAt(a-1)]<<a%4*2,l=n[t.charCodeAt(a)]>>>6-a%4*2,c=s|l;r[o>>>2]|=c<<24-o%4*8,o++}return i.create(r,o)}}(),t.enc.Base64url}))},c21e:function(t,e,n){"use strict";n("bb56")},c2c5:function(t,e,n){},c345:function(t,e,n){"use strict";var i=n("c532"),r=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];t.exports=function(t){var e,n,o,a={};return t?(i.forEach(t.split("\n"),(function(t){if(o=t.indexOf(":"),e=i.trim(t.substr(0,o)).toLowerCase(),n=i.trim(t.substr(o+1)),e){if(a[e]&&r.indexOf(e)>=0)return;a[e]="set-cookie"===e?(a[e]?a[e]:[]).concat([n]):a[e]?a[e]+", "+n:n}})),a):a}},c3b6:function(t,e,n){(function(e,i,r){t.exports=i(n("21bf"),n("1132"),n("72fe"),n("2b79"),n("38ba"))})(0,(function(t){return function(){var e=t,n=e.lib,i=n.StreamCipher,r=e.algo,o=r.RC4=i.extend({_doReset:function(){for(var t=this._key,e=t.words,n=t.sigBytes,i=this._S=[],r=0;r<256;r++)i[r]=r;r=0;for(var o=0;r<256;r++){var a=r%n,s=e[a>>>2]>>>24-a%4*8&255;o=(o+i[r]+s)%256;var l=i[r];i[r]=i[o],i[o]=l}this._i=this._j=0},_doProcessBlock:function(t,e){t[e]^=a.call(this)},keySize:8,ivSize:0});function a(){for(var t=this._S,e=this._i,n=this._j,i=0,r=0;r<4;r++){e=(e+1)%256,n=(n+t[e])%256;var o=t[e];t[e]=t[n],t[n]=o,i|=t[(t[e]+t[n])%256]<<24-8*r}return this._i=e,this._j=n,i}e.RC4=i._createHelper(o);var s=r.RC4Drop=o.extend({cfg:o.cfg.extend({drop:192}),_doReset:function(){o._doReset.call(this);for(var t=this.cfg.drop;t>0;t--)a.call(this)}});e.RC4Drop=i._createHelper(s)}(),t.RC4}))},c401:function(t,e,n){"use strict";var i=n("c532");t.exports=function(t,e,n){return i.forEach(n,(function(n){t=n(t,e)})),t}},c430:function(t,e,n){"use strict";t.exports=!1},c532:function(t,e,n){"use strict";var i=n("1d2b"),r=Object.prototype.toString;function o(t){return"[object Array]"===r.call(t)}function a(t){return"undefined"===typeof t}function s(t){return null!==t&&!a(t)&&null!==t.constructor&&!a(t.constructor)&&"function"===typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)}function l(t){return"[object ArrayBuffer]"===r.call(t)}function c(t){return"undefined"!==typeof FormData&&t instanceof FormData}function u(t){var e;return e="undefined"!==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&t.buffer instanceof ArrayBuffer,e}function d(t){return"string"===typeof t}function h(t){return"number"===typeof t}function p(t){return null!==t&&"object"===typeof t}function f(t){if("[object Object]"!==r.call(t))return!1;var e=Object.getPrototypeOf(t);return null===e||e===Object.prototype}function m(t){return"[object Date]"===r.call(t)}function g(t){return"[object File]"===r.call(t)}function v(t){return"[object Blob]"===r.call(t)}function b(t){return"[object Function]"===r.call(t)}function _(t){return p(t)&&b(t.pipe)}function y(t){return"undefined"!==typeof URLSearchParams&&t instanceof URLSearchParams}function w(t){return t.replace(/^\s*/,"").replace(/\s*$/,"")}function x(){return("undefined"===typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!==typeof window&&"undefined"!==typeof document)}function k(t,e){if(null!==t&&"undefined"!==typeof t)if("object"!==typeof t&&(t=[t]),o(t))for(var n=0,i=t.length;n<i;n++)e.call(null,t[n],n,t);else for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.call(null,t[r],r,t)}function S(){var t={};function e(e,n){f(t[n])&&f(e)?t[n]=S(t[n],e):f(e)?t[n]=S({},e):o(e)?t[n]=e.slice():t[n]=e}for(var n=0,i=arguments.length;n<i;n++)k(arguments[n],e);return t}function D(t,e,n){return k(e,(function(e,r){t[r]=n&&"function"===typeof e?i(e,n):e})),t}function C(t){return 65279===t.charCodeAt(0)&&(t=t.slice(1)),t}t.exports={isArray:o,isArrayBuffer:l,isBuffer:s,isFormData:c,isArrayBufferView:u,isString:d,isNumber:h,isObject:p,isPlainObject:f,isUndefined:a,isDate:m,isFile:g,isBlob:v,isFunction:b,isStream:_,isURLSearchParams:y,isStandardBrowserEnv:x,forEach:k,merge:S,extend:D,trim:w,stripBOM:C}},c600:function(t,e,n){},c65b:function(t,e,n){"use strict";var i=n("40d5"),r=Function.prototype.call;t.exports=i?r.bind(r):function(){return r.apply(r,arguments)}},c6b6:function(t,e,n){"use strict";var i=n("e330"),r=i({}.toString),o=i("".slice);t.exports=function(t){return o(r(t),8,-1)}},c6cd:function(t,e,n){"use strict";var i=n("da84"),r=n("6374"),o="__core-js_shared__",a=i[o]||r(o,{});t.exports=a},c6ce:function(t,e,n){},c73d:function(t,e,n){"use strict";var i=n("23e7"),r=n("da84"),o=n("edd0"),a=n("83ab"),s=TypeError,l=Object.defineProperty,c=r.self!==r;try{if(a){var u=Object.getOwnPropertyDescriptor(r,"self");!c&&u&&u.get&&u.enumerable||o(r,"self",{get:function(){return r},set:function(t){if(this!==r)throw s("Illegal invocation");l(r,"self",{value:t,writable:!0,configurable:!0,enumerable:!0})},configurable:!0,enumerable:!0})}else i({global:!0,simple:!0,forced:c},{self:r})}catch(d){}},c7c0:function(t,e,n){},c7ef:function(t,e,n){},c8aa:function(t,e,n){const i=n("7bf0"),r=n("34fc"),o=n("7a43"),a=n("bbf0"),s=n("27a3"),l=7973,c=i.getBCHDigit(l);function u(t,n,i){for(let r=1;r<=40;r++)if(n<=e.getCapacity(r,i,t))return r}function d(t,e){return a.getCharCountIndicator(t,e)+4}function h(t,e){let n=0;return t.forEach((function(t){const i=d(t.mode,e);n+=i+t.getBitsLength()})),n}function p(t,n){for(let i=1;i<=40;i++){const r=h(t,i);if(r<=e.getCapacity(i,n,a.MIXED))return i}}e.from=function(t,e){return s.isValid(t)?parseInt(t,10):e},e.getCapacity=function(t,e,n){if(!s.isValid(t))throw new Error("Invalid QR Code version");"undefined"===typeof n&&(n=a.BYTE);const o=i.getSymbolTotalCodewords(t),l=r.getTotalCodewordsCount(t,e),c=8*(o-l);if(n===a.MIXED)return c;const u=c-d(n,t);switch(n){case a.NUMERIC:return Math.floor(u/10*3);case a.ALPHANUMERIC:return Math.floor(u/11*2);case a.KANJI:return Math.floor(u/13);case a.BYTE:default:return Math.floor(u/8)}},e.getBestVersionForData=function(t,e){let n;const i=o.from(e,o.M);if(Array.isArray(t)){if(t.length>1)return p(t,i);if(0===t.length)return 1;n=t[0]}else n=t;return u(n.mode,n.getLength(),i)},e.getEncodedBits=function(t){if(!s.isValid(t)||t<7)throw new Error("Invalid QR Code version");let e=t<<12;while(i.getBCHDigit(e)-c>=0)e^=l<<i.getBCHDigit(e)-c;return t<<12|e}},c8af:function(t,e,n){"use strict";var i=n("c532");t.exports=function(t,e){i.forEach(t,(function(n,i){i!==e&&i.toUpperCase()===e.toUpperCase()&&(t[e]=n,delete t[i])}))}},c8ba:function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(i){"object"===typeof window&&(n=window)}t.exports=n},ca84:function(t,e,n){"use strict";var i=n("e330"),r=n("1a2d"),o=n("fc6a"),a=n("4d64").indexOf,s=n("d012"),l=i([].push);t.exports=function(t,e){var n,i=o(t),c=0,u=[];for(n in i)!r(s,n)&&r(i,n)&&l(u,n);while(e.length>c)r(i,n=e[c++])&&(~a(u,n)||l(u,n));return u}},ca97:function(t,e,n){"use strict";n("b771")},cb2d:function(t,e,n){"use strict";var i=n("1626"),r=n("9bf2"),o=n("13d2"),a=n("6374");t.exports=function(t,e,n,s){s||(s={});var l=s.enumerable,c=void 0!==s.name?s.name:e;if(i(n)&&o(n,c,s),s.global)l?t[e]=n:a(e,n);else{try{s.unsafe?t[e]&&(l=!0):delete t[e]}catch(u){}l?t[e]=n:r.f(t,e,{value:n,enumerable:!1,configurable:!s.nonConfigurable,writable:!s.nonWritable})}return t}},cb82:function(t,e,n){"use strict";n("9490")},cc12:function(t,e,n){"use strict";var i=n("da84"),r=n("861d"),o=i.document,a=r(o)&&r(o.createElement);t.exports=function(t){return a?o.createElement(t):{}}},cd7d:function(t,e,n){"use strict";n("3b78")},cdce:function(t,e,n){"use strict";var i=n("da84"),r=n("1626"),o=i.WeakMap;t.exports=r(o)&&/native code/.test(String(o))},cee4:function(t,e,n){"use strict";var i=n("c532"),r=n("1d2b"),o=n("0a06"),a=n("4a7b"),s=n("2444");function l(t){var e=new o(t),n=r(o.prototype.request,e);return i.extend(n,o.prototype,e),i.extend(n,e),n}var c=l(s);c.Axios=o,c.create=function(t){return l(a(c.defaults,t))},c.Cancel=n("7a77"),c.CancelToken=n("8df4"),c.isCancel=n("2e67"),c.all=function(t){return Promise.all(t)},c.spread=n("0df6"),t.exports=c,t.exports.default=c},d012:function(t,e,n){"use strict";t.exports={}},d013:function(t,e,n){"use strict";n.r(e),e["default"]='## 栅格布局\r\n\r\n```\r\n<c-grid-row margin gap>\r\n\t<c-grid-col colspan="6">\r\n\t\t// 内容\r\n\t</c-grid-col>\r\n\t<c-grid-col colspan="6">\r\n\t\t// 内容\r\n\t</c-grid-col>\r\n</c-grid-row>\r\n```'},d039:function(t,e,n){"use strict";t.exports=function(t){try{return!!t()}catch(e){return!0}}},d055:function(t,e,n){const i=n("67dd"),r=n("aa63"),o=n("4146"),a=n("4006");function s(t,e,n,o,a){const s=[].slice.call(arguments,1),l=s.length,c="function"===typeof s[l-1];if(!c&&!i())throw new Error("Callback required as last argument");if(!c){if(l<1)throw new Error("Too few arguments provided");return 1===l?(n=e,e=o=void 0):2!==l||e.getContext||(o=n,n=e,e=void 0),new Promise((function(i,a){try{const a=r.create(n,o);i(t(a,e,o))}catch(s){a(s)}}))}if(l<2)throw new Error("Too few arguments provided");2===l?(a=n,n=e,e=o=void 0):3===l&&(e.getContext&&"undefined"===typeof a?(a=o,o=void 0):(a=o,o=n,n=e,e=void 0));try{const i=r.create(n,o);a(null,t(i,e,o))}catch(u){a(u)}}e.create=r.create,e.toCanvas=s.bind(null,o.render),e.toDataURL=s.bind(null,o.renderToDataURL),e.toString=s.bind(null,(function(t,e,n){return a.render(t,n)}))},d066:function(t,e,n){"use strict";var i=n("da84"),r=n("1626"),o=function(t){return r(t)?t:void 0};t.exports=function(t,e){return arguments.length<2?o(i[t]):i[t]&&i[t][e]}},d1e7:function(t,e,n){"use strict";var i={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,o=r&&!i.call({1:2},1);e.f=o?function(t){var e=r(this,t);return!!e&&e.enumerable}:i},d278:function(t,e,n){"use strict";n.r(e),e["default"]='## 示例代码\n\n```\n<c-window ref="window">\n\t<div>窗口内容</div>\n\n\t<template #beforeButton>\n\t\t自定义内容\n\t</template>\n\t\n\t<template #button>\n\t\t<c-button>按钮名称</c-button>\n\t</template>\n</c-window>\n\nthis.$refs.window.show(follow, position, align) // 显示悬浮窗口,follow:跟随的目标节点,position:跟随位置(top、bottom、left、right),align:对齐方向(start、end)\nthis.$refs.window.hide() // 隐藏悬浮窗口\n```\n\n## 属性配置\n\n属性 | 类型 | 默认值 | 说明\n---- | ---- | ---- | ----\ntitle | String | - | 悬浮窗口标题\nwidth | Number \\| String | 400 | 悬浮窗口宽度\nheight | Number \\| String | - | 悬浮窗口内容区域高度\nposition | String | bottom | 跟随位置<br>**bottom**: 底部<br>**top**: 顶部<br>**left**: 左侧<br>**right**: 右侧\nalign | String | start | 对齐方向<br>**start**: 起始方向<br>**end**: 结束方向'},d2bb:function(t,e,n){"use strict";var i=n("7282"),r=n("825a"),o=n("3bbe");t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{t=i(Object.prototype,"__proto__","set"),t(n,[]),e=n instanceof Array}catch(a){}return function(n,i){return r(n),o(i),e?t(n,i):n.__proto__=i,n}}():void 0)},d2d1:function(t,e,n){},d30d:function(t,e,n){},d359:function(t,e){t.exports="data:image/gif;base64,R0lGODlhFwAZAOYAAAAAAP////Hp7NTD0Pr7/+vv+/r7/p+y3Jyt0pmoyHmEnWVob/L1/DxZkkJelENflUZhlVFpmZ2v1VRdcJuszYKQq6/B5a2/442cucja/ay51J2nu5mhsdHb79Xf8/z9/zlYkTtZkj1bkj5ck0Bdk0lklklllkxml01nmE9pmFFqmVNsmXuQtaK87IGVuYWYuoibvYqdvpioxdLd8KOrutXf8bvD0urx/uHl7HaMsX+Ut46hwZCiwZytyqCxzXyJnqW10Ke30aq61Ku71JCdsp6lsdLY4tbc5lNhdZWoxZutyVVfbqGzzXB8jai50mt4iomZr5ajtIqarn2Ejc3a6WVveVldYfv///3//+jDk++lTu2gS8t0I8FKKs9UNcxoVdKXjd2lm/Xl4slyZdOWjbpsZfLi4t/f37S0tP///wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAEAAGkALAAAAAAXABkAAAfZgGiCg4SFhoMBiYqLjI2CjZCRjwFnlZUBQ0JBTD1JOzAuLDmJk41Di2JhZAI3KqRoiZaXTgEEBFhgWVplHSmvkUABHwFXY1tcXR0nv5SyAT6JR1RmX14DHSXMjUoBRlA/MjQbGR0QzLJnAUk4UgwzTxxFEy0P2ow8UQY1FhpNNlMLSJxzFiOAhwsHJFBAQsSKCHuLXhS4gCABhgoKllQJMdBSAB0rVkRAYQKCgxENQECMJAlWM3QwnQUoxZLlpJg4L810WdOmy5w4V/ZcdBMoTKFDkSY9xLRpIAA7"},d429:function(t,e,n){"use strict";n.r(e),e["default"]='# 一级标题\n\n> 高亮区域\n\n## 二级标题\n\n正文内容**加粗**\r\n\r\n[链接](#gridOptions)\n\n```\n代码区域\n```\n\n<a id="gridOptions"></a>\n\n表头 | 表头 | 表头\n---- | ---- | ----\n表体 | 表体 | 表体<br>换行'},d525:function(t,e,n){},d6c0:function(t,e,n){const i=n("7bf0").getSymbolSize;e.getRowColCoords=function(t){if(1===t)return[];const e=Math.floor(t/7)+2,n=i(t),r=145===n?26:2*Math.ceil((n-13)/(2*e-2)),o=[n-7];for(let i=1;i<e-1;i++)o[i]=o[i-1]-r;return o.push(6),o.reverse()},e.getPositions=function(t){const n=[],i=e.getRowColCoords(t),r=i.length;for(let e=0;e<r;e++)for(let t=0;t<r;t++)0===e&&0===t||0===e&&t===r-1||e===r-1&&0===t||n.push([i[e],i[t]]);return n}},d6d6:function(t,e,n){"use strict";var i=TypeError;t.exports=function(t,e){if(t<e)throw i("Not enough arguments");return t}},d6e6:function(t,e,n){(function(e,i,r){t.exports=i(n("21bf"),n("3252"))})(0,(function(t){return function(){var e=t,n=e.lib,i=n.Hasher,r=e.x64,o=r.Word,a=r.WordArray,s=e.algo;function l(){return o.create.apply(o,arguments)}var c=[l(1116352408,3609767458),l(1899447441,602891725),l(3049323471,3964484399),l(3921009573,2173295548),l(961987163,4081628472),l(1508970993,3053834265),l(2453635748,2937671579),l(2870763221,3664609560),l(3624381080,2734883394),l(310598401,1164996542),l(607225278,1323610764),l(1426881987,3590304994),l(1925078388,4068182383),l(2162078206,991336113),l(2614888103,633803317),l(3248222580,3479774868),l(3835390401,2666613458),l(4022224774,944711139),l(264347078,2341262773),l(604807628,2007800933),l(770255983,1495990901),l(1249150122,1856431235),l(1555081692,3175218132),l(1996064986,2198950837),l(2554220882,3999719339),l(2821834349,766784016),l(2952996808,2566594879),l(3210313671,3203337956),l(3336571891,1034457026),l(3584528711,2466948901),l(113926993,3758326383),l(338241895,168717936),l(666307205,1188179964),l(773529912,1546045734),l(1294757372,1522805485),l(1396182291,2643833823),l(1695183700,2343527390),l(1986661051,1014477480),l(2177026350,1206759142),l(2456956037,344077627),l(2730485921,1290863460),l(2820302411,3158454273),l(3259730800,3505952657),l(3345764771,106217008),l(3516065817,3606008344),l(3600352804,1432725776),l(4094571909,1467031594),l(275423344,851169720),l(430227734,3100823752),l(506948616,1363258195),l(659060556,3750685593),l(883997877,3785050280),l(958139571,3318307427),l(1322822218,3812723403),l(1537002063,2003034995),l(1747873779,3602036899),l(1955562222,1575990012),l(2024104815,1125592928),l(2227730452,2716904306),l(2361852424,442776044),l(2428436474,593698344),l(2756734187,3733110249),l(3204031479,2999351573),l(3329325298,3815920427),l(3391569614,3928383900),l(3515267271,566280711),l(3940187606,3454069534),l(4118630271,4000239992),l(116418474,1914138554),l(174292421,2731055270),l(289380356,3203993006),l(460393269,320620315),l(685471733,587496836),l(852142971,1086792851),l(1017036298,365543100),l(1126000580,2618297676),l(1288033470,3409855158),l(1501505948,4234509866),l(1607167915,987167468),l(1816402316,1246189591)],u=[];(function(){for(var t=0;t<80;t++)u[t]=l()})();var d=s.SHA512=i.extend({_doReset:function(){this._hash=new a.init([new o.init(1779033703,4089235720),new o.init(3144134277,2227873595),new o.init(1013904242,4271175723),new o.init(2773480762,1595750129),new o.init(1359893119,2917565137),new o.init(2600822924,725511199),new o.init(528734635,4215389547),new o.init(1541459225,327033209)])},_doProcessBlock:function(t,e){for(var n=this._hash.words,i=n[0],r=n[1],o=n[2],a=n[3],s=n[4],l=n[5],d=n[6],h=n[7],p=i.high,f=i.low,m=r.high,g=r.low,v=o.high,b=o.low,_=a.high,y=a.low,w=s.high,x=s.low,k=l.high,S=l.low,D=d.high,C=d.low,E=h.high,A=h.low,T=p,B=f,F=m,$=g,L=v,M=b,I=_,P=y,N=w,H=x,O=k,R=S,z=D,U=C,K=E,W=A,j=0;j<80;j++){var V,q,Y=u[j];if(j<16)q=Y.high=0|t[e+2*j],V=Y.low=0|t[e+2*j+1];else{var X=u[j-15],G=X.high,Z=X.low,Q=(G>>>1|Z<<31)^(G>>>8|Z<<24)^G>>>7,J=(Z>>>1|G<<31)^(Z>>>8|G<<24)^(Z>>>7|G<<25),tt=u[j-2],et=tt.high,nt=tt.low,it=(et>>>19|nt<<13)^(et<<3|nt>>>29)^et>>>6,rt=(nt>>>19|et<<13)^(nt<<3|et>>>29)^(nt>>>6|et<<26),ot=u[j-7],at=ot.high,st=ot.low,lt=u[j-16],ct=lt.high,ut=lt.low;V=J+st,q=Q+at+(V>>>0<J>>>0?1:0),V+=rt,q=q+it+(V>>>0<rt>>>0?1:0),V+=ut,q=q+ct+(V>>>0<ut>>>0?1:0),Y.high=q,Y.low=V}var dt=N&O^~N&z,ht=H&R^~H&U,pt=T&F^T&L^F&L,ft=B&$^B&M^$&M,mt=(T>>>28|B<<4)^(T<<30|B>>>2)^(T<<25|B>>>7),gt=(B>>>28|T<<4)^(B<<30|T>>>2)^(B<<25|T>>>7),vt=(N>>>14|H<<18)^(N>>>18|H<<14)^(N<<23|H>>>9),bt=(H>>>14|N<<18)^(H>>>18|N<<14)^(H<<23|N>>>9),_t=c[j],yt=_t.high,wt=_t.low,xt=W+bt,kt=K+vt+(xt>>>0<W>>>0?1:0),St=(xt=xt+ht,kt=kt+dt+(xt>>>0<ht>>>0?1:0),xt=xt+wt,kt=kt+yt+(xt>>>0<wt>>>0?1:0),xt=xt+V,kt=kt+q+(xt>>>0<V>>>0?1:0),gt+ft),Dt=mt+pt+(St>>>0<gt>>>0?1:0);K=z,W=U,z=O,U=R,O=N,R=H,H=P+xt|0,N=I+kt+(H>>>0<P>>>0?1:0)|0,I=L,P=M,L=F,M=$,F=T,$=B,B=xt+St|0,T=kt+Dt+(B>>>0<xt>>>0?1:0)|0}f=i.low=f+B,i.high=p+T+(f>>>0<B>>>0?1:0),g=r.low=g+$,r.high=m+F+(g>>>0<$>>>0?1:0),b=o.low=b+M,o.high=v+L+(b>>>0<M>>>0?1:0),y=a.low=y+P,a.high=_+I+(y>>>0<P>>>0?1:0),x=s.low=x+H,s.high=w+N+(x>>>0<H>>>0?1:0),S=l.low=S+R,l.high=k+O+(S>>>0<R>>>0?1:0),C=d.low=C+U,d.high=D+z+(C>>>0<U>>>0?1:0),A=h.low=A+W,h.high=E+K+(A>>>0<W>>>0?1:0)},_doFinalize:function(){var t=this._data,e=t.words,n=8*this._nDataBytes,i=8*t.sigBytes;e[i>>>5]|=128<<24-i%32,e[30+(i+128>>>10<<5)]=Math.floor(n/4294967296),e[31+(i+128>>>10<<5)]=n,t.sigBytes=4*e.length,this._process();var r=this._hash.toX32();return r},clone:function(){var t=i.clone.call(this);return t._hash=this._hash.clone(),t},blockSize:32});e.SHA512=i._createHelper(d),e.HmacSHA512=i._createHmacHelper(d)}(),t.SHA512}))},d925:function(t,e,n){"use strict";t.exports=function(t){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(t)}},d9b5:function(t,e,n){"use strict";var i=n("d066"),r=n("1626"),o=n("3a9b"),a=n("fdbf"),s=Object;t.exports=a?function(t){return"symbol"==typeof t}:function(t){var e=i("Symbol");return r(e)&&o(e.prototype,s(t))}},d9e2:function(t,e,n){"use strict";var i=n("23e7"),r=n("da84"),o=n("2ba4"),a=n("e5cb"),s="WebAssembly",l=r[s],c=7!==Error("e",{cause:7}).cause,u=function(t,e){var n={};n[t]=a(t,e,c),i({global:!0,constructor:!0,arity:1,forced:c},n)},d=function(t,e){if(l&&l[t]){var n={};n[t]=a(s+"."+t,e,c),i({target:s,stat:!0,constructor:!0,arity:1,forced:c},n)}};u("Error",(function(t){return function(e){return o(t,this,arguments)}})),u("EvalError",(function(t){return function(e){return o(t,this,arguments)}})),u("RangeError",(function(t){return function(e){return o(t,this,arguments)}})),u("ReferenceError",(function(t){return function(e){return o(t,this,arguments)}})),u("SyntaxError",(function(t){return function(e){return o(t,this,arguments)}})),u("TypeError",(function(t){return function(e){return o(t,this,arguments)}})),u("URIError",(function(t){return function(e){return o(t,this,arguments)}})),d("CompileError",(function(t){return function(e){return o(t,this,arguments)}})),d("LinkError",(function(t){return function(e){return o(t,this,arguments)}})),d("RuntimeError",(function(t){return function(e){return o(t,this,arguments)}}))},da84:function(t,e,n){"use strict";(function(e){var n=function(t){return t&&t.Math===Math&&t};t.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof e&&e)||function(){return this}()||this||Function("return this")()}).call(this,n("c8ba"))},db68:function(t,e,n){},dc4a:function(t,e,n){"use strict";var i=n("59ed"),r=n("7234");t.exports=function(t,e){var n=t[e];return r(n)?void 0:i(n)}},dd13:function(t,e,n){},dd7e:function(t,e,n){const i=n("bbf0");function r(t){this.mode=i.NUMERIC,this.data=t.toString()}r.getBitsLength=function(t){return 10*Math.floor(t/3)+(t%3?t%3*3+1:0)},r.prototype.getLength=function(){return this.data.length},r.prototype.getBitsLength=function(){return r.getBitsLength(this.data.length)},r.prototype.write=function(t){let e,n,i;for(e=0;e+3<=this.data.length;e+=3)n=this.data.substr(e,3),i=parseInt(n,10),t.put(i,10);const r=this.data.length-e;r>0&&(n=this.data.substr(e),i=parseInt(n,10),t.put(i,3*r+1))},t.exports=r},df2f:function(t,e,n){(function(e,i){t.exports=i(n("21bf"))})(0,(function(t){return function(){var e=t,n=e.lib,i=n.WordArray,r=n.Hasher,o=e.algo,a=[],s=o.SHA1=r.extend({_doReset:function(){this._hash=new i.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(t,e){for(var n=this._hash.words,i=n[0],r=n[1],o=n[2],s=n[3],l=n[4],c=0;c<80;c++){if(c<16)a[c]=0|t[e+c];else{var u=a[c-3]^a[c-8]^a[c-14]^a[c-16];a[c]=u<<1|u>>>31}var d=(i<<5|i>>>27)+l+a[c];d+=c<20?1518500249+(r&o|~r&s):c<40?1859775393+(r^o^s):c<60?(r&o|r&s|o&s)-1894007588:(r^o^s)-899497514,l=s,s=o,o=r<<30|r>>>2,r=i,i=d}n[0]=n[0]+i|0,n[1]=n[1]+r|0,n[2]=n[2]+o|0,n[3]=n[3]+s|0,n[4]=n[4]+l|0},_doFinalize:function(){var t=this._data,e=t.words,n=8*this._nDataBytes,i=8*t.sigBytes;return e[i>>>5]|=128<<24-i%32,e[14+(i+64>>>9<<4)]=Math.floor(n/4294967296),e[15+(i+64>>>9<<4)]=n,t.sigBytes=4*e.length,this._process(),this._hash},clone:function(){var t=r.clone.call(this);return t._hash=this._hash.clone(),t}});e.SHA1=r._createHelper(s),e.HmacSHA1=r._createHmacHelper(s)}(),t.SHA1}))},df7c:function(t,e,n){(function(t){function n(t,e){for(var n=0,i=t.length-1;i>=0;i--){var r=t[i];"."===r?t.splice(i,1):".."===r?(t.splice(i,1),n++):n&&(t.splice(i,1),n--)}if(e)for(;n--;n)t.unshift("..");return t}function i(t){"string"!==typeof t&&(t+="");var e,n=0,i=-1,r=!0;for(e=t.length-1;e>=0;--e)if(47===t.charCodeAt(e)){if(!r){n=e+1;break}}else-1===i&&(r=!1,i=e+1);return-1===i?"":t.slice(n,i)}function r(t,e){if(t.filter)return t.filter(e);for(var n=[],i=0;i<t.length;i++)e(t[i],i,t)&&n.push(t[i]);return n}e.resolve=function(){for(var e="",i=!1,o=arguments.length-1;o>=-1&&!i;o--){var a=o>=0?arguments[o]:t.cwd();if("string"!==typeof a)throw new TypeError("Arguments to path.resolve must be strings");a&&(e=a+"/"+e,i="/"===a.charAt(0))}return e=n(r(e.split("/"),(function(t){return!!t})),!i).join("/"),(i?"/":"")+e||"."},e.normalize=function(t){var i=e.isAbsolute(t),a="/"===o(t,-1);return t=n(r(t.split("/"),(function(t){return!!t})),!i).join("/"),t||i||(t="."),t&&a&&(t+="/"),(i?"/":"")+t},e.isAbsolute=function(t){return"/"===t.charAt(0)},e.join=function(){var t=Array.prototype.slice.call(arguments,0);return e.normalize(r(t,(function(t,e){if("string"!==typeof t)throw new TypeError("Arguments to path.join must be strings");return t})).join("/"))},e.relative=function(t,n){function i(t){for(var e=0;e<t.length;e++)if(""!==t[e])break;for(var n=t.length-1;n>=0;n--)if(""!==t[n])break;return e>n?[]:t.slice(e,n-e+1)}t=e.resolve(t).substr(1),n=e.resolve(n).substr(1);for(var r=i(t.split("/")),o=i(n.split("/")),a=Math.min(r.length,o.length),s=a,l=0;l<a;l++)if(r[l]!==o[l]){s=l;break}var c=[];for(l=s;l<r.length;l++)c.push("..");return c=c.concat(o.slice(s)),c.join("/")},e.sep="/",e.delimiter=":",e.dirname=function(t){if("string"!==typeof t&&(t+=""),0===t.length)return".";for(var e=t.charCodeAt(0),n=47===e,i=-1,r=!0,o=t.length-1;o>=1;--o)if(e=t.charCodeAt(o),47===e){if(!r){i=o;break}}else r=!1;return-1===i?n?"/":".":n&&1===i?"/":t.slice(0,i)},e.basename=function(t,e){var n=i(t);return e&&n.substr(-1*e.length)===e&&(n=n.substr(0,n.length-e.length)),n},e.extname=function(t){"string"!==typeof t&&(t+="");for(var e=-1,n=0,i=-1,r=!0,o=0,a=t.length-1;a>=0;--a){var s=t.charCodeAt(a);if(47!==s)-1===i&&(r=!1,i=a+1),46===s?-1===e?e=a:1!==o&&(o=1):-1!==e&&(o=-1);else if(!r){n=a+1;break}}return-1===e||-1===i||0===o||1===o&&e===i-1&&e===n+1?"":t.slice(e,i)};var o="b"==="ab".substr(-1)?function(t,e,n){return t.substr(e,n)}:function(t,e,n){return e<0&&(e=t.length+e),t.substr(e,n)}}).call(this,n("4362"))},e103:function(t,e,n){"use strict";n("c7c0")},e2ba:function(t,e,n){},e330:function(t,e,n){"use strict";var i=n("40d5"),r=Function.prototype,o=r.call,a=i&&r.bind.bind(o,o);t.exports=i?a:function(t){return function(){return o.apply(t,arguments)}}},e391:function(t,e,n){"use strict";var i=n("577e");t.exports=function(t,e){return void 0===t?arguments.length<2?"":e:i(t)}},e3ee:function(t,e,n){"use strict";n.r(e),e["default"]="## 示例代码\r\n\r\n```\r\n<c-countdown></c-countdown>\r\n```\r\n\r\n## 属性配置\r\n\r\n属性 | 类型 | 默认值 | 说明\r\n---- | ---- | ---- | ----\r\nms | String \\| Number | - | 剩余毫秒数\r\nsec | String \\| Number | - | 剩余秒数\r\ndate | String | - | 结束时间\r\nicon | Boolean \\| String | false | 是否显示icon,可传入icon的样式名自定义图标\r\ncolor | String | - | 文字颜色"},e474:function(t,e,n){"use strict";n.r(e),e["default"]="## 示例代码\r\n\r\n```\r\n<c-switch></c-switch>\r\n```\r\n\r\n## 属性配置\r\n\r\n属性 | 类型 | 默认值 | 说明\r\n---- | ---- | ---- | ----\r\nvalue | Any | false | 开关当前的状态值,可使用v-model属性绑定变量\r\nstate-value | Array | [true, false] | 开关的状态值,第0项对于打开状态,第1项对应关闭状态\r\nstate-text | Array | ['开启', '关闭']] | 开关的状态文字,第0项对于打开状态,第1项对应关闭状态\r\nstate-color | Array | ['#00B578', '#eee'] | 开关的状态颜色,第0项对于打开状态,第1项对应关闭状态\r\n@beforeChange | Function(state, next) | - | 开关状态变更前的回调函数<br>**state**: 开关变更前的状态<br>**next**: 继续变更开关状态的方法,不调用则开关状态不变更\r\n@change | Function(state) | - | 开关状态变更后的回调函数<br>**state**: 开关变更后的状态"},e566:function(t,e,n){"use strict";n("d30d")},e5cb:function(t,e,n){"use strict";var i=n("d066"),r=n("1a2d"),o=n("9112"),a=n("3a9b"),s=n("d2bb"),l=n("e893"),c=n("aeb0"),u=n("7156"),d=n("e391"),h=n("ab36"),p=n("6f19"),f=n("83ab"),m=n("c430");t.exports=function(t,e,n,g){var v="stackTraceLimit",b=g?2:1,_=t.split("."),y=_[_.length-1],w=i.apply(null,_);if(w){var x=w.prototype;if(!m&&r(x,"cause")&&delete x.cause,!n)return w;var k=i("Error"),S=e((function(t,e){var n=d(g?e:t,void 0),i=g?new w(t):new w;return void 0!==n&&o(i,"message",n),p(i,S,i.stack,2),this&&a(x,this)&&u(i,this,S),arguments.length>b&&h(i,arguments[b]),i}));if(S.prototype=x,"Error"!==y?s?s(S,k):l(S,k,{name:!0}):f&&v in w&&(c(S,w,v),c(S,w,"prepareStackTrace")),l(S,w),!m)try{x.name!==y&&o(x,"name",y),x.constructor=S}catch(D){}return S}}},e61b:function(t,e,n){(function(e,i,r){t.exports=i(n("21bf"),n("3252"))})(0,(function(t){return function(e){var n=t,i=n.lib,r=i.WordArray,o=i.Hasher,a=n.x64,s=a.Word,l=n.algo,c=[],u=[],d=[];(function(){for(var t=1,e=0,n=0;n<24;n++){c[t+5*e]=(n+1)*(n+2)/2%64;var i=e%5,r=(2*t+3*e)%5;t=i,e=r}for(t=0;t<5;t++)for(e=0;e<5;e++)u[t+5*e]=e+(2*t+3*e)%5*5;for(var o=1,a=0;a<24;a++){for(var l=0,h=0,p=0;p<7;p++){if(1&o){var f=(1<<p)-1;f<32?h^=1<<f:l^=1<<f-32}128&o?o=o<<1^113:o<<=1}d[a]=s.create(l,h)}})();var h=[];(function(){for(var t=0;t<25;t++)h[t]=s.create()})();var p=l.SHA3=o.extend({cfg:o.cfg.extend({outputLength:512}),_doReset:function(){for(var t=this._state=[],e=0;e<25;e++)t[e]=new s.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(t,e){for(var n=this._state,i=this.blockSize/2,r=0;r<i;r++){var o=t[e+2*r],a=t[e+2*r+1];o=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),a=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8);var s=n[r];s.high^=a,s.low^=o}for(var l=0;l<24;l++){for(var p=0;p<5;p++){for(var f=0,m=0,g=0;g<5;g++){s=n[p+5*g];f^=s.high,m^=s.low}var v=h[p];v.high=f,v.low=m}for(p=0;p<5;p++){var b=h[(p+4)%5],_=h[(p+1)%5],y=_.high,w=_.low;for(f=b.high^(y<<1|w>>>31),m=b.low^(w<<1|y>>>31),g=0;g<5;g++){s=n[p+5*g];s.high^=f,s.low^=m}}for(var x=1;x<25;x++){s=n[x];var k=s.high,S=s.low,D=c[x];D<32?(f=k<<D|S>>>32-D,m=S<<D|k>>>32-D):(f=S<<D-32|k>>>64-D,m=k<<D-32|S>>>64-D);var C=h[u[x]];C.high=f,C.low=m}var E=h[0],A=n[0];E.high=A.high,E.low=A.low;for(p=0;p<5;p++)for(g=0;g<5;g++){x=p+5*g,s=n[x];var T=h[x],B=h[(p+1)%5+5*g],F=h[(p+2)%5+5*g];s.high=T.high^~B.high&F.high,s.low=T.low^~B.low&F.low}s=n[0];var $=d[l];s.high^=$.high,s.low^=$.low}},_doFinalize:function(){var t=this._data,n=t.words,i=(this._nDataBytes,8*t.sigBytes),o=32*this.blockSize;n[i>>>5]|=1<<24-i%32,n[(e.ceil((i+1)/o)*o>>>5)-1]|=128,t.sigBytes=4*n.length,this._process();for(var a=this._state,s=this.cfg.outputLength/8,l=s/8,c=[],u=0;u<l;u++){var d=a[u],h=d.high,p=d.low;h=16711935&(h<<8|h>>>24)|4278255360&(h<<24|h>>>8),p=16711935&(p<<8|p>>>24)|4278255360&(p<<24|p>>>8),c.push(p),c.push(h)}return new r.init(c,s)},clone:function(){for(var t=o.clone.call(this),e=t._state=this._state.slice(0),n=0;n<25;n++)e[n]=e[n].clone();return t}});n.SHA3=o._createHelper(p),n.HmacSHA3=o._createHmacHelper(p)}(Math),t.SHA3}))},e683:function(t,e,n){"use strict";t.exports=function(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}},e6c5:function(t,e,n){"use strict";n.r(e),e["default"]='## 示例代码\r\n\r\n```\r\n// 单选框\r\n<c-radio-group>\r\n\t<c-radio value="1">选项一</c-radio>\r\n\t<c-radio value="2">选项二</c-radio>\r\n</c-radio-group>\r\n<c-radio-group :options="[{"name": "选项一", "value": "1"}]"></c-radio-group>\r\n\r\n// 复选框\r\n<c-checkbox-group>\r\n\t<c-checkbox value="1">选项一</c-checkbox>\r\n\t<c-checkbox value="2">选项二</c-checkbox>\r\n</c-checkbox-group>\r\n<c-checkbox-group :options="[{"name": "选项一", "value": "1"}]"></c-checkbox-group>\r\n```\r\n\r\n## 属性配置\r\n\r\n### 单选框组 <c-radio-group\\>\r\n\r\n属性 | 类型 | 默认值 | 说明\r\n---- | ---- | ---- | ----\r\nvalue | String | - | 单选框组的值,可使用v-model属性绑定变量\r\nname | String | - | 字段名\r\ndisabled | Boolean | false | 是否禁用单选框组下所有单选框\r\nlimit | String \\| String | - | 最多可选项数\r\noptions | Array | - | 选项可以直接在组件中使用单选框组件也可通过该数据传入选项数据:[{"name": "选项名", "value": "选项值"}]\r\n\r\n### 单选框 <c-radio\\>\r\n\r\n属性 | 类型 | 默认值 | 说明\r\n---- | ---- | ---- | ----\r\nvalue | String \\| Number \\| Boolean | - | 在单选框组中表示该选项的值<br>独立使用时为布尔值,表示选中状态\r\ndisabled | Boolean | false | 是否禁用单选框\r\n\r\n### 复选框组 <c-checkbox-group\\>\r\n\r\n属性 | 类型 | 默认值 | 说明\r\n---- | ---- | ---- | ----\r\nvalue | String \\| Array | - | 复选框组的值,可输入逗号隔开的字符串(\'1,2\')或数组([1, 2]),可使用v-model属性绑定变量\r\nname | String | - | 字段名\r\ndisabled | Boolean | false | 是否禁用复选框组下所有复选框\r\nlimit | String \\| String | - | 最多可选项数\r\noptions | Array | - | 选项可以直接在组件中使用复选框组件也可通过该数据传入选项数据:[{"name": "选项名", "value": "选项值"}]\r\n\r\n### 复选框 <c-checkbox\\>\r\n```\r\n<c-checkbox\\>组件可在复选框组中使用,也可独立使用\r\n```\r\n\r\n属性 | 类型 | 默认值 | 说明\r\n---- | ---- | ---- | ----\r\nvalue | String \\| Number \\| Boolean | - | 在复选框组中表示该选项的值<br>独立使用时为布尔值,表示选中状态\r\ndisabled | Boolean | false | 是否禁用复选框\r\n@change | Function | - | 勾选状态改变事件,仅独立使用时可用\r\n@click | Function | - | 复选框点击事件'},e731:function(t,e,n){"use strict";n("ad2f")},e84a:function(t,e,n){},e893:function(t,e,n){"use strict";var i=n("1a2d"),r=n("56ef"),o=n("06cf"),a=n("9bf2");t.exports=function(t,e,n){for(var s=r(e),l=a.f,c=o.f,u=0;u<s.length;u++){var d=s[u];i(t,d)||n&&i(n,d)||l(t,d,c(e,d))}}},e8b5:function(t,e,n){"use strict";var i=n("c6b6");t.exports=Array.isArray||function(t){return"Array"===i(t)}},ed5e:function(t,e,n){},edd0:function(t,e,n){"use strict";var i=n("13d2"),r=n("9bf2");t.exports=function(t,e,n){return n.get&&i(n.get,e,{getter:!0}),n.set&&i(n.set,e,{setter:!0}),r.f(t,e,n)}},f488:function(t,e,n){"use strict";n("d525")},f4ea:function(t,e,n){(function(e,i,r){t.exports=i(n("21bf"),n("38ba"))})(0,(function(t){return t.mode.CTR=function(){var e=t.lib.BlockCipherMode.extend(),n=e.Encryptor=e.extend({processBlock:function(t,e){var n=this._cipher,i=n.blockSize,r=this._iv,o=this._counter;r&&(o=this._counter=r.slice(0),this._iv=void 0);var a=o.slice(0);n.encryptBlock(a,0),o[i-1]=o[i-1]+1|0;for(var s=0;s<i;s++)t[e+s]^=a[s]}});return e.Decryptor=n,e}(),t.mode.CTR}))},f5df:function(t,e,n){"use strict";var i=n("00ee"),r=n("1626"),o=n("c6b6"),a=n("b622"),s=a("toStringTag"),l=Object,c="Arguments"===o(function(){return arguments}()),u=function(t,e){try{return t[e]}catch(n){}};t.exports=i?o:function(t){var e,n,i;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=u(e=l(t),s))?n:c?o(e):"Object"===(i=o(e))&&r(e.callee)?"Arguments":i}},f67f:function(t,e,n){"use strict";n("d2d1")},f6b4:function(t,e,n){"use strict";var i=n("c532");function r(){this.handlers=[]}r.prototype.use=function(t,e){return this.handlers.push({fulfilled:t,rejected:e}),this.handlers.length-1},r.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)},r.prototype.forEach=function(t){i.forEach(this.handlers,(function(e){null!==e&&t(e)}))},t.exports=r},f772:function(t,e,n){"use strict";var i=n("5692"),r=n("90e3"),o=i("keys");t.exports=function(t){return o[t]||(o[t]=r(t))}},fb15:function(t,e,n){"use strict";if(n.r(e),n.d(e,"i18n",(function(){return Wf})),n.d(e,"cryptoJs",(function(){return ep.a})),n.d(e,"qrcode",(function(){return ip.a})),n.d(e,"validate",(function(){return Rs})),n.d(e,"shortcutKey",(function(){return Of})),n.d(e,"debounce",(function(){return Vf})),n.d(e,"throttle",(function(){return qf})),n.d(e,"cookie",(function(){return Xf})),n.d(e,"createStore",(function(){return On})),n.d(e,"getStore",(function(){return Rn})),n.d(e,"mapStore",(function(){return zn})),n.d(e,"countdown",(function(){return Yf})),"undefined"!==typeof window){var i=window.document.currentScript,r=i&&i.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);r&&(n.p=r[1])}n("14d9"),n("37f6"),n("4e02"),n("69b1");var o=function(){var t=this,e=t._self._c;return e("div",[e("div",{staticClass:"vue-component-library"},[e("div",{staticClass:"lang flex"},[e("c-link",{staticClass:"item",on:{click:function(e){t.$i18n.locale="zh"}}},[t._v("中文")]),e("c-link",{staticClass:"item",on:{click:function(e){t.$i18n.locale="en"}}},[t._v("English")])],1),t._l(t.docTab,(function(n,i){return e("c-button",{key:i,staticClass:"tab",attrs:{size:"form",color:t.crtTab==n?t.crtTabColor:""},on:{click:function(e){t.crtTab=n}}},[t._v(t._s(n))])})),e("div",{staticClass:"doc",domProps:{innerHTML:t._s(t.marked.parse("# "+t.crtTab))}}),e("api-button",{directives:[{name:"show",rawName:"v-show",value:"按钮"==t.crtTab,expression:"crtTab == '按钮'"}]}),e("api-input",{directives:[{name:"show",rawName:"v-show",value:"输入框"==t.crtTab,expression:"crtTab == '输入框'"}]}),e("api-options",{directives:[{name:"show",rawName:"v-show",value:"单复选框"==t.crtTab,expression:"crtTab == '单复选框'"}]}),e("api-selector",{directives:[{name:"show",rawName:"v-show",value:"选择器"==t.crtTab,expression:"crtTab == '选择器'"}]}),e("api-switch",{directives:[{name:"show",rawName:"v-show",value:"开关"==t.crtTab,expression:"crtTab == '开关'"}]}),e("api-file",{directives:[{name:"show",rawName:"v-show",value:"文件"==t.crtTab,expression:"crtTab == '文件'"}]}),e("api-editor",{directives:[{name:"show",rawName:"v-show",value:"编辑器"==t.crtTab,expression:"crtTab == '编辑器'"}]}),e("api-link",{directives:[{name:"show",rawName:"v-show",value:"链接"==t.crtTab,expression:"crtTab == '链接'"}]}),e("api-tooltip",{directives:[{name:"show",rawName:"v-show",value:"提示信息"==t.crtTab,expression:"crtTab == '提示信息'"}]}),e("api-title",{directives:[{name:"show",rawName:"v-show",value:"标题"==t.crtTab,expression:"crtTab == '标题'"}]}),e("api-pagination",{directives:[{name:"show",rawName:"v-show",value:"分页栏"==t.crtTab,expression:"crtTab == '分页栏'"}]}),e("api-table",{directives:[{name:"show",rawName:"v-show",value:"表格"==t.crtTab,expression:"crtTab == '表格'"}]}),e("api-form",{directives:[{name:"show",rawName:"v-show",value:"表单"==t.crtTab,expression:"crtTab == '表单'"}]}),e("api-detail",{directives:[{name:"show",rawName:"v-show",value:"详情"==t.crtTab,expression:"crtTab == '详情'"}]}),e("api-popup",{directives:[{name:"show",rawName:"v-show",value:"消息弹窗"==t.crtTab,expression:"crtTab == '消息弹窗'"}]}),e("api-dialog",{directives:[{name:"show",rawName:"v-show",value:"会话弹窗"==t.crtTab,expression:"crtTab == '会话弹窗'"}]}),e("api-window",{directives:[{name:"show",rawName:"v-show",value:"悬浮窗口"==t.crtTab,expression:"crtTab == '悬浮窗口'"}]}),e("api-preview",{directives:[{name:"show",rawName:"v-show",value:"媒体预览"==t.crtTab,expression:"crtTab == '媒体预览'"}]}),e("api-tab",{directives:[{name:"show",rawName:"v-show",value:"选项卡"==t.crtTab,expression:"crtTab == '选项卡'"}]}),e("api-layout",{directives:[{name:"show",rawName:"v-show",value:"布局"==t.crtTab,expression:"crtTab == '布局'"}]}),e("api-module",{directives:[{name:"show",rawName:"v-show",value:"模块"==t.crtTab,expression:"crtTab == '模块'"}]}),e("api-drag-sort",{directives:[{name:"show",rawName:"v-show",value:"拖拽排序"==t.crtTab,expression:"crtTab == '拖拽排序'"}]}),e("api-dropdown",{directives:[{name:"show",rawName:"v-show",value:"下拉菜单"==t.crtTab,expression:"crtTab == '下拉菜单'"}]}),e("api-right-menu",{directives:[{name:"show",rawName:"v-show",value:"右键菜单"==t.crtTab,expression:"crtTab == '右键菜单'"}]}),e("api-tree",{directives:[{name:"show",rawName:"v-show",value:"树"==t.crtTab,expression:"crtTab == '树'"}]}),e("api-steps",{directives:[{name:"show",rawName:"v-show",value:"步骤条"==t.crtTab,expression:"crtTab == '步骤条'"}]}),e("api-progress",{directives:[{name:"show",rawName:"v-show",value:"进度条"==t.crtTab,expression:"crtTab == '进度条'"}]}),e("api-qrcode",{directives:[{name:"show",rawName:"v-show",value:"二维码"==t.crtTab,expression:"crtTab == '二维码'"}]}),e("api-countdown",{directives:[{name:"show",rawName:"v-show",value:"倒计时"==t.crtTab,expression:"crtTab == '倒计时'"}]})],2)])},a=[],s=function(){var t=this,e=t._self._c;return e("div",[e("div",[t._l(t.buttonSize,(function(n,i){return e("div",{key:i},[e("c-button",{key:"n"+i,attrs:{size:n}},[t._v("按钮")]),t._l(t.buttonHollow,(function(i,r){return t._l(t.buttonColor,(function(o,a){return e("c-button",{key:`${r}${a}`,attrs:{size:n,color:o,hollow:i}},[t._v("按钮")])}))}))],2)})),e("div",[e("c-button",{attrs:{disabled:""}},[t._v("按钮")])],1),e("div",{staticClass:"flex"},[e("c-button",{attrs:{"prepend-icon":"c-icon-search"}},[t._v("按钮")]),e("c-button",{attrs:{"append-icon":"c-icon-search"}},[t._v("按钮")])],1)],2),e("div",{staticClass:"doc",domProps:{innerHTML:t._s(t.$parent.loadDoc("button"))}})])},l=[],c={data(){return{buttonSize:["normal","form","dialog"],buttonColor:["main","lesser","red","green","blue","yellow"],buttonHollow:[!0,!1]}}},u=c;n("e566");function d(t,e,n,i,r,o,a,s){var l,c="function"===typeof t?t.options:t;if(e&&(c.render=e,c.staticRenderFns=n,c._compiled=!0),i&&(c.functional=!0),o&&(c._scopeId="data-v-"+o),a?(l=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),r&&r.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},c._ssrRegister=l):r&&(l=s?function(){r.call(this,(c.functional?this.parent:this).$root.$options.shadowRoot)}:r),l)if(c.functional){c._injectStyles=l;var u=c.render;c.render=function(t,e){return l.call(e),u(t,e)}}else{var d=c.beforeCreate;c.beforeCreate=d?[].concat(d,l):[l]}return{exports:t,options:c}}var h=d(u,s,l,!1,null,"1a1f6dc0",null),p=h.exports,f=function(){var t=this,e=t._self._c;return e("div",[e("div",{staticStyle:{width:"400px"}},[e("p",[e("c-input",{on:{suggest:t.suggestHandle}})],1),e("br"),e("p",[e("c-input",{attrs:{type:"number",decimal:"2",range:"0,9999"}})],1),e("br"),e("p",[e("c-input",{attrs:{"prepend-text":"前置文本","append-text":"后置文本"}})],1),e("br"),e("p",[e("c-input",{scopedSlots:t._u([{key:"prependText",fn:function(){return[e("i",{staticClass:"c-icon-search"})]},proxy:!0},{key:"prependIcon",fn:function(){return[e("i",{staticClass:"c-icon-search"})]},proxy:!0},{key:"appendIcon",fn:function(){return[e("i",{staticClass:"c-icon-media"})]},proxy:!0},{key:"appendText",fn:function(){return[e("i",{staticClass:"c-icon-media"})]},proxy:!0}])})],1),e("br"),e("p",[e("c-input",{attrs:{type:"stepper",step:"10",range:"0,100"}})],1),e("br"),e("p",[e("c-input",{attrs:{type:"stepper",step:"0.1",range:"0,1",decimal:"1","step-controls":"side"}})],1),e("br"),e("p",[e("c-input",{attrs:{type:"password",visible:""}})],1),e("br"),e("p",[e("c-input",{attrs:{type:"textarea",maxlength:"100"}})],1)]),e("div",{staticClass:"doc",domProps:{innerHTML:t._s(t.$parent.loadDoc("input"))}})])},m=[],g={data(){return{}},mounted(){},methods:{suggestHandle(t,e){let n=this.$parent.random(0,6),i=n+this.$parent.random(2,8),r=[];for(let o=n;o<i;o++)r.push(t+"输入建议"+o);e(r)}}},v=g,b=d(v,f,m,!1,null,"5bbd0d88",null),_=b.exports,y=function(){var t=this,e=t._self._c;return e("div",[e("div",{staticStyle:{width:"400px"}},[e("p",[e("c-radio-group",{attrs:{value:"2"},on:{change:t.changeHandle}},t._l(t.options,(function(n,i){return e("c-radio",{key:i,attrs:{value:n.value},on:{change:t.changeHandle}},[t._v(t._s(t.$t(n.name)))])})),1)],1),e("p",[e("c-radio-group",{attrs:{options:t.options,value:"3",disabled:""},on:{change:t.changeHandle}})],1),e("p",[e("c-checkbox-group",{attrs:{limit:"2"},on:{change:t.changeHandle}},t._l(t.options,(function(n,i){return e("c-checkbox",{key:i,attrs:{value:n.value},on:{change:t.changeHandle}},[t._v(t._s(t.$t(n.name)))])})),1)],1),e("p",[e("c-checkbox-group",{attrs:{options:t.options,value:"2,3",disabled:""},on:{change:t.changeHandle}})],1)]),e("div",{staticClass:"doc",domProps:{innerHTML:t._s(t.$parent.loadDoc("options"))}})])},w=[],x={data(){return{options:[{name:"option1",value:1},{name:"option2",value:2},{name:"option3",value:3}]}},mounted(){},methods:{changeHandle(t){console.log(t)}}},k=x,S=d(k,y,w,!1,null,"7eb1e109",null),D=S.exports,C=function(){var t=this,e=t._self._c;return e("div",[e("div",[e("c-form",{attrs:{"unit-width":"400"}},[e("c-form-item",{attrs:{label:"下拉框",tip:"单选"}},[e("p",[e("c-select",{attrs:{options:t.options,value:"1"},on:{change:t.changeHandle}})],1)]),e("c-form-item",{attrs:{tip:"单选 + 搜索"}},[e("p",[e("c-select",{attrs:{options:t.options,value:"1",search:{add:!0}},on:{add:t.addHandle,change:t.changeHandle}})],1)]),e("c-form-item",{attrs:{tip:"多选"}},[e("p",[e("c-select",{attrs:{options:t.options,value:"1",multiple:""},on:{change:t.changeHandle}})],1)]),e("c-form-item",{attrs:{tip:"多选 + 搜索"}},[e("p",[e("c-select",{attrs:{options:t.options,value:"1",multiple:"",search:{add:!0}},on:{add:t.addHandle,change:t.changeHandle}})],1)]),e("c-form-item",{attrs:{tip:"多选换行展示 + 搜索"}},[e("p",[e("c-select",{attrs:{options:t.options,value:"1",multiple:{linefeed:!0},search:""},on:{change:t.changeHandle}})],1)]),e("c-form-item",{attrs:{tip:"单选 + 异步选项"}},[e("p",[e("c-select",{attrs:{"value-data":t.initRandomOptions,async:""},on:{search:t.randomOptions,change:t.changeHandle}})],1)]),e("c-form-item",{attrs:{tip:"多选 + 异步选项"}},[e("p",[e("c-select",{attrs:{multiple:"","value-data":t.initRandomOptions,async:""},on:{search:t.randomOptions,change:t.changeHandle}})],1)]),e("c-form-item",{attrs:{tip:"自定义事件"}},[e("p",[e("c-select",{attrs:{multiple:{linefeed:!0}},on:{customEvent:t.customEvent,change:t.changeHandle}})],1)]),e("c-form-item",{attrs:{label:"地址框"}},[e("p",[e("c-region",{attrs:{level:"4"},on:{change:t.changeHandle}})],1)]),e("c-form-item",{attrs:{label:"日期框"}},[e("p",[e("c-datetime",{on:{change:t.changeHandle}})],1),e("br"),e("p",[e("c-datetime",{attrs:{range:""},on:{change:t.changeHandle}})],1)]),e("c-form-item",{attrs:{label:"颜色框"}},[e("p",[e("c-color",{on:{change:t.changeHandle}})],1)]),e("c-form-item",{attrs:{label:"穿梭框"}},[e("p",[e("c-transfer",{attrs:{data:t.initRandomOptions,search:""},on:{search:t.randomOptions,change:t.changeHandle}})],1)])],1)],1),e("div",{staticClass:"doc",domProps:{innerHTML:t._s(t.$parent.loadDoc("selector"))}})])},E=[],A={data(){return{options:[{name:"option1",value:1},{name:"option2",value:2,children:[{name:"optionSub1",value:21},{name:"optionSub2",value:22,children:[]},{name:"optionSub3",value:23}]},{name:"option3",value:3}],initRandomOptions:[]}},mounted(){this.randomOptions("",t=>{this.initRandomOptions=t})},methods:{randomOptions(t,e){let n=this.$parent.random(0,6),i=n+this.$parent.random(2,8),r=[];for(let o=n;o<i;o++)r.push({name:"选项"+o,value:o});e(r)},customEvent(t,e){this.randomOptions("",e)},changeHandle(t){console.log(t)},addHandle(t,e){e({name:t,value:t})}}},T=A,B=d(T,C,E,!1,null,"f572ee30",null),F=B.exports,$=function(){var t=this,e=t._self._c;return e("div",[e("div",[e("p",[e("c-switch",{on:{change:t.changeHandle}})],1)]),e("div",{staticClass:"doc",domProps:{innerHTML:t._s(t.$parent.loadDoc("switch"))}})])},L=[],M={data(){return{}},mounted(){},methods:{changeHandle(t){console.log(t)}}},I=M,P=d(I,$,L,!1,null,"b20cbce2",null),N=P.exports,H=function(){var t=this,e=t._self._c;return e("div",[e("div",[e("p",[e("c-upload-file",{attrs:{value:"https://infinityicon.infinitynewtab.com/user-share-icon/d8b62f4d64bda8800b1c788cd5ba3c68.png,https://infinityicon.infinitynewtab.com/user-share-icon/d1b00e6f33c7c9c436c9fbd20a3278d7.png",type:"image,video",multiple:"2",media:""},scopedSlots:t._u([{key:"tip",fn:function({type:n}){return[e("p",[t._v("自定义的提示说明")]),e("p",[t._v(t._s(n))])]}}])})],1),e("br"),e("p",[e("c-upload-file",{attrs:{value:"https://infinityicon.infinitynewtab.com/user-share-icon/d8b62f4d64bda8800b1c788cd5ba3c68.png",type:"image,video",media:"",tip:"提示说明"}})],1),e("br"),e("p",[e("c-upload-file",{attrs:{value:"http://placehold.it/750x750/666/fff.png,http://placehold.it/750x750/666/fff.png",type:"word,excel",tip:"tip属性"}})],1),e("br"),e("br"),e("p",[e("c-file",{attrs:{src:"https://infinityicon.infinitynewtab.com/user-share-icon/d8b62f4d64bda8800b1c788cd5ba3c68.png",media:""}})],1),e("br"),e("p",[e("c-file",{attrs:{src:"http://placehold.it/750x750/666/fff.png"}})],1)]),e("div",{staticClass:"doc",domProps:{innerHTML:t._s(t.$parent.loadDoc("file"))}})])},O=[],R={data(){return{}},mounted(){},methods:{}},z=R,U=d(z,H,O,!1,null,"b1ed53f8",null),K=U.exports,W=function(){var t=this,e=t._self._c;return e("div",[e("div",{staticStyle:{width:"800px"}},[e("p",[e("c-editor")],1)]),e("br"),e("div",{staticClass:"doc",domProps:{innerHTML:t._s(t.$parent.loadDoc("editor"))}})])},j=[],V={data(){return{}},mounted(){},methods:{}},q=V,Y=d(q,W,j,!1,null,"1036af41",null),X=Y.exports,G=function(){var t=this,e=t._self._c;return e("div",[e("div",[e("p",[e("c-link",{attrs:{href:"https://www.baidu.com/",target:"_blank"}},[t._v("链接名称")])],1),e("br"),e("p",[e("c-link",{attrs:{href:"https://www.baidu.com/",target:"_blank"}})],1),e("br"),e("p",[e("c-link",{attrs:{href:"https://www.baidu.com/",target:"_blank",icon:""}},[t._v("带icon的链接")])],1),e("br"),e("p",[e("c-link",{attrs:{href:"https://www.baidu.com/",target:"_blank",icon:"c-icon-search"}},[t._v("自定义icon的链接")])],1),e("br"),e("p",[e("c-link",{attrs:{color:"main",href:"https://www.baidu.com/",target:"_blank"}},[t._v("主色链接")])],1),e("br"),e("p",[e("c-link",{attrs:{color:"lesser",href:"https://www.baidu.com/",target:"_blank"}},[t._v("辅色链接")])],1),e("br"),e("p",[e("c-link",{attrs:{color:"gray",href:"https://www.baidu.com/",target:"_blank"}},[t._v("灰色链接")])],1),e("br")]),e("div",{staticClass:"doc",domProps:{innerHTML:t._s(t.$parent.loadDoc("link"))}})])},Z=[],Q={data(){return{}},mounted(){},methods:{}},J=Q,tt=d(J,G,Z,!1,null,"8e49391a",null),et=tt.exports,nt=function(){var t=this,e=t._self._c;return e("div",[e("div",{staticStyle:{width:"320px",margin:"0 auto"}},[e("div",{staticClass:"flex-start-center",staticStyle:{height:"50px","margin-bottom":"20px"}},[e("span",{staticStyle:{"margin-right":"10px"}},[t._v("默认提示信息")]),e("c-tooltip",{attrs:{tip:"提示信息内容"}}),e("span",{staticStyle:{margin:"0 10px 0 20px"}},[t._v("默认提示信息(白色)")]),e("c-tooltip",{attrs:{tip:"提示信息内容",color:"white"}})],1),e("div",{staticClass:"flex-between",staticStyle:{padding:"0 100px"}},[e("c-tooltip",{attrs:{tip:"提示信息内容",position:"top",align:"start"}},[e("c-button",{ref:"button"},[t._v("上左")])],1),e("c-tooltip",{attrs:{tip:"提示信息内容",position:"top",align:"end"}},[e("c-button",{ref:"button"},[t._v("上右")])],1)],1),e("div",{staticClass:"flex-between",staticStyle:{height:"80px"}},[e("div",{staticClass:"flex-column flex-between"},[e("c-tooltip",{attrs:{position:"left",align:"start"},scopedSlots:t._u([{key:"tip",fn:function(){return[e("p",[t._v("提示信息内容")]),e("p",[t._v("提示信息内容")])]},proxy:!0}])},[e("c-button",{ref:"button"},[t._v("左上")])],1),e("c-tooltip",{attrs:{position:"left",align:"end"},scopedSlots:t._u([{key:"tip",fn:function(){return[e("p",[t._v("提示信息内容")]),e("p",[t._v("提示信息内容")])]},proxy:!0}])},[e("c-button",{ref:"button"},[t._v("左下")])],1)],1),e("div",{staticClass:"flex-column flex-between"},[e("c-tooltip",{attrs:{position:"right",align:"start"},scopedSlots:t._u([{key:"tip",fn:function(){return[e("p",[t._v("提示信息内容")]),e("p",[t._v("提示信息内容")])]},proxy:!0}])},[e("c-button",{ref:"button"},[t._v("右上")])],1),e("c-tooltip",{attrs:{position:"right",align:"end"},scopedSlots:t._u([{key:"tip",fn:function(){return[e("p",[t._v("提示信息内容")]),e("p",[t._v("提示信息内容")])]},proxy:!0}])},[e("c-button",{ref:"button"},[t._v("右下")])],1)],1)]),e("div",{staticClass:"flex-between",staticStyle:{padding:"0 100px"}},[e("c-tooltip",{attrs:{tip:"提示信息内容",position:"bottom",align:"start"}},[e("c-button",{ref:"button"},[t._v("下左")])],1),e("c-tooltip",{attrs:{tip:"提示信息内容",position:"bottom",align:"end"}},[e("c-button",{ref:"button"},[t._v("下右")])],1)],1)]),e("div",{staticClass:"doc",domProps:{innerHTML:t._s(t.$parent.loadDoc("tooltip"))}})])},it=[],rt={data(){return{}},mounted(){},methods:{}},ot=rt,at=d(ot,nt,it,!1,null,"680d77da",null),st=at.exports,lt=function(){var t=this,e=t._self._c;return e("div",[e("div",[e("c-title",[t._v("标题名称")]),e("c-title",{attrs:{icon:"c-icon-search"}},[t._v("自定义图标标题")])],1),e("div",{staticClass:"doc",domProps:{innerHTML:t._s(t.$parent.loadDoc("title"))}})])},ct=[],ut={data(){return{}},mounted(){},methods:{}},dt=ut,ht=d(dt,lt,ct,!1,null,"211d9b4c",null),pt=ht.exports,ft=function(){var t=this,e=t._self._c;return e("div",[e("div",{staticStyle:{padding:"20px",background:"#F5F5F5"}},[e("c-pagination",{attrs:{total:"100"},on:{handle:t.update}})],1)])},mt=[],gt={data(){return{}},mounted(){},methods:{update(t){console.log(t)}}},vt=gt,bt=d(vt,ft,mt,!1,null,"2b668974",null),_t=bt.exports,yt=function(){var t=this,e=t._self._c;return e("div",[e("div",{staticClass:"preview",staticStyle:{"margin-top":"20px"}},[e("c-table",{ref:"table",attrs:{border:"","fixed-width":t.fixedWidth,"width-resize":"",height:"500",paging:!1},on:{rowClick:t.rowClick,widthResize:t.widthResize}},[e("c-table-column",{attrs:{type:"drag"},on:{handle:t.colHandle}}),e("c-table-column",{attrs:{type:"selector",name:"selected"},on:{handle:t.colHandle}}),e("c-table-column",{attrs:{fixed:"left",label:"col.expand",type:"expand","expand-button":({data:t})=>4!=t.num,"expand-limit":"3","add-button":""},on:{handle:t.expandHandle,add:t.addHandle},scopedSlots:t._u([{key:"default",fn:function({data:e}){return[t._v(" "+t._s(e.children?e.text:4==e.num?"不可展开":"可展开")+" ")]}}])}),e("c-table-column",{attrs:{label:"col.normal",name:"num",required:"",summed:""},scopedSlots:t._u([{key:"summed",fn:function({total:e}){return[t._v(" 默认数据合计:"+t._s(e)+" ")]}}])}),e("c-table-column",{attrs:{label:"col.custom",summed:({data:t})=>t.num},scopedSlots:t._u([{key:"tip",fn:function(){return[e("c-tooltip",{attrs:{tip:"123"}})]},proxy:!0},{key:"default",fn:function({data:n}){return[e("span",[t._v("num: "+t._s(n.num.toFixed(2)))])]}},{key:"summed",fn:function({total:e}){return[t._v(" 自定义数据合计:"+t._s(e)+" ")]}}])}),e("c-table-column",{attrs:{label:"col.sort",type:"sort","align-center":""},on:{handle:t.sortHandle}}),e("c-table-column",{attrs:{label:"col.complex"}},[e("c-table-column",{attrs:{label:"col.children",name:"rowspan","col-span":t.colSpan,"row-span":t.rowSpan}}),e("c-table-column",{attrs:{label:"col.children",name:"rowspan"}})],1),e("c-table-column",{attrs:{name:"_selected"},scopedSlots:t._u([{key:"head",fn:function(){return[e("c-button",[t._v("自定义头部")])]},proxy:!0}])}),t.col?e("c-table-column",{attrs:{label:"动态列1"}},[t._v("1")]):t._e(),t.col?e("c-table-column",{attrs:{label:"动态列2"}},[t._v("2")]):t._e(),e("c-table-column",{attrs:{label:"静态列"}},[t._v("0")]),t.col?t._e():e("c-table-column",{attrs:{fixed:"right",label:"动态列3"}},[t._v("3")]),e("c-table-column",{attrs:{type:"button",label:"col.handle","button-limit":"3"},scopedSlots:t._u([{key:"default",fn:function({data:n}){return[n.button?t._e():e("c-table-button",{on:{click:function(t){n.button=!n.button}}},[t._v("数据按钮1")]),n.button?e("c-table-button",{on:{click:function(t){n.button=!n.button}}},[t._v("数据按钮2")]):t._e(),t.button?t._e():e("c-table-button",{attrs:{disabled:t.disabledButton&&{tip:"asd"}},on:{click:function(e){t.button=!t.button}}},[t._v("全局按钮1")]),t.button?e("c-table-button",{on:{click:function(e){t.button=!t.button}}},[t._v("全局按钮2")]):t._e(),e("c-table-button",{attrs:{disabled:t.disabledButton&&{tip:"asd"}}},[t._v("按钮")]),e("c-table-button",[t._v("按钮")])]}}])})],1)],1),e("br"),e("c-button",{on:{click:function(e){t.col=!t.col}}},[t._v("切换列")]),e("c-button",{on:{click:function(e){t.button=!t.button}}},[t._v("切换按钮")]),e("c-button",{on:{click:function(e){t.disabledButton=!t.disabledButton}}},[t._v("切换按钮禁用")]),e("c-button",{on:{click:function(e){t.fixedWidth=!t.fixedWidth}}},[t._v(t._s(t.fixedWidth?"自动宽度":"固定宽度"))]),e("c-button",{on:{click:function(e){return t.getData()}}},[t._v("获取数据")]),e("c-button",{on:{click:function(e){return t.getData("selected")}}},[t._v("获取选中行")]),e("div",{staticClass:"doc",domProps:{innerHTML:t._s(t.$parent.loadDoc("table"))}})],1)},wt=[],xt={data(){return{col:!1,button:!1,disabledButton:!0,fixedWidth:!1}},mounted(){this.$refs.table.setData([{selected:!0,name:"admin",num:2,date:"2024-01-01 00:00:00",rowspan:1,text:"基于标准 HTML、CSS 和 JavaScript 构建",button:!1},{name:"admin",num:4,date:"2024-01-01 00:00:00",rowspan:2,text:"基于标准 HTML、CSS 和 JavaScript 构建",button:!1},{name:"admin",num:5,date:"2024-01-01 00:00:00",rowspan:2,text:"基于标准 HTML、CSS 和 JavaScript 构建",button:!1},{selected:!0,name:"admin",num:1,date:"2024-01-01 00:00:00",rowspan:4,text:"基于标准 HTML、CSS 和 JavaScript 构建",button:!1},{name:"admin",num:3,date:"2024-01-01 00:00:00",rowspan:5,text:"基于标准 HTML、CSS 和 JavaScript 构建",button:!1}])},methods:{rowSpan({data:t},e){return e.filter(({data:e})=>e.rowspan==t.rowspan).length},colSpan({data:t},e){return 1==t.rowspan?2:1},rowClick(t){console.log(t)},expandHandle(t,e){setTimeout(()=>{e([{children:!0,text:"子节点1",num:0},{children:!0,text:"子节点2",num:0}])},1e3)},addHandle(t,e){setTimeout(()=>{e({children:!0,text:"新子节点",num:0})},1e3)},colHandle(t){console.log(t)},sortHandle(t,e,n){console.log(t,e),n()},getData(t){console.log(this.$refs.table.getData(t))},widthResize(t){console.log(t)}}},kt=xt,St=d(kt,yt,wt,!1,null,"04576e3d",null),Dt=St.exports,Ct=function(){var t=this,e=t._self._c;return e("div",[e("div",[e("c-form",{ref:"form",attrs:{vertical:t.verticalState,"unit-width":"400"}},[e("c-form-item",{attrs:{label:"form.label"},scopedSlots:t._u([{key:"handle",fn:function(){return[e("c-link",{attrs:{href:"https://www.baidu.com/",target:"_blank"}},[t._v("跳转链接")])]},proxy:!0}])},[e("c-input",{attrs:{name:"input"}})],1),e("c-form-item",{attrs:{label:"form.label"}},[e("c-radio-group",{attrs:{name:"radio"}},t._l(t.options,(function(n,i){return e("c-radio",{key:i,attrs:{value:n.value}},[t._v(t._s(t.$t(n.name)))])})),1)],1),e("c-form-item",{attrs:{label:"form.label"}},[e("c-checkbox-group",{attrs:{name:"checkbox"}},t._l(t.options,(function(n,i){return e("c-checkbox",{key:i,attrs:{value:n.value}},[t._v(t._s(t.$t(n.name)))])})),1)],1),e("c-form-item",{attrs:{label:"form.labelWithAsterisk",required:""}},[e("c-select",{attrs:{name:"select",options:t.options}})],1),e("c-form-item",{attrs:{label:"form.labelTip",tip:"提示信息"}},[e("c-region",{attrs:{level:"4","province-name":"province","city-name":"city","county-name":"county","address-name":"address"}})],1),e("c-form-item",{attrs:{label:"form.labelCustomTip"},scopedSlots:t._u([{key:"tip",fn:function(){return[e("span",{staticStyle:{color:"blue"}},[t._v("自定义提示信息")])]},proxy:!0}])},[e("c-datetime",{attrs:{type:"date",range:"","start-name":"start","end-name":"end"}})],1),e("c-form-item",{attrs:{label:"form.label"}},[e("c-color",{attrs:{name:"color"}})],1),e("c-form-item",{attrs:{label:"form.label"}},[e("c-switch",{attrs:{name:"switch","state-value":[1,0]}})],1),e("c-form-item",{attrs:{label:"form.label"}},[e("c-transfer",{attrs:{name:"transfer",sort:"",data:t.initRandomOptions},on:{search:t.randomOptions}})],1),e("c-form-item",{attrs:{label:"form.label"}},[e("c-upload-file",{attrs:{name:"file",type:"image,video"}})],1),e("c-form-item",{attrs:{label:"form.label"}},[e("c-upload-file",{attrs:{name:"file",multiple:"",media:"",type:"image,video"}})],1),e("c-form-item",{attrs:{label:"form.label",name:"complex"}},[e("p",{staticStyle:{"line-height":"38px"}},[t._v("复杂表单项内容...")]),e("c-input",{attrs:{name:"complexInput"}})],1),e("c-form-item",[e("c-button",{on:{click:function(e){t.verticalState=!t.verticalState}}},[t._v(t._s(t.verticalState?"横向排列":"纵向排列"))]),e("c-button",{on:{click:t.getData}},[t._v("获取数据")]),e("c-button",{on:{click:t.setData}},[t._v("回填数据")]),e("c-button",{on:{click:t.validData}},[t._v("校验")]),e("c-button",{on:{click:t.clearData}},[t._v("清空")])],1)],1)],1),e("div",{staticClass:"doc",domProps:{innerHTML:t._s(t.$parent.loadDoc("form"))}})])},Et=[],At={data(){return{verticalState:!1,options:[{name:"option1",value:1},{name:"option2",value:2},{name:"option3",value:3}],initRandomOptions:[]}},mounted(){this.randomOptions("",t=>{this.initRandomOptions=t})},methods:{randomOptions(t,e){let n=this.$parent.random(0,6),i=n+this.$parent.random(2,8),r=[];for(let o=n;o<i;o++)r.push({name:"选项"+o,value:o});e(r)},setData(){this.$refs.form.set({input:1,radio:2,checkbox:[1,3],select:2,province:"province1",city:"city2",county:"county1",address:"address",start:"2024-01-01",end:"2024-01-31",color:"#000000",switch:1,transfer:[2,4,6],file:["https://infinityicon.infinitynewtab.com/user-share-icon/d8b62f4d64bda8800b1c788cd5ba3c68.png","https://infinityicon.infinitynewtab.com/user-share-icon/d1b00e6f33c7c9c436c9fbd20a3278d7.png"],complexInput:"1"})},getData(){console.log(this.$refs.form.get())},clearData(){this.$refs.form.clear()},validData(){this.$refs.form.validate({breakWhenFail:!1,rule:{input:{check:"输入框内容为空"},radio:"选项不能为空",checkbox:"选项不能为空",select:[{type:"empty",message:"下拉框内容为空"},{type:"function",fun:()=>new Promise(t=>{setTimeout(()=>{t(!0)},1e3)})}],county:"地区不能为空",end:"日期不能为空",color:"颜色不能为空",transfer:"穿梭框不能为空",file:"请上传文件",complex:t=>!!t.complexInput||"复杂字段校验失败"},success:t=>{console.log("success",t)},fail:t=>{console.log("fail",t)}})}}},Tt=At,Bt=d(Tt,Ct,Et,!1,null,"7f8a3797",null),Ft=Bt.exports,$t=function(){var t=this,e=t._self._c;return e("div",[e("div",[e("c-detail",{attrs:{column:"3"}},[e("c-detail-item",{attrs:{label:"字段名"}},[t._v(" 内容 ")]),e("c-detail-item",{attrs:{label:"字段名"}},[t._v(" 内容 ")]),e("c-detail-item",{attrs:{label:"字段名"}},[t._v(" 内容 ")]),e("c-detail-item",{attrs:{label:"字段名",colspan:"2"}},[t._v(" 单独设置占两列 ")]),e("c-detail-item",{attrs:{label:"字段名"}},[t._v(" 内容 ")])],1)],1),e("div",{staticClass:"doc",domProps:{innerHTML:t._s(t.$parent.loadDoc("detail"))}})])},Lt=[],Mt={data(){return{}},mounted(){},methods:{}},It=Mt,Pt=d(It,$t,Lt,!1,null,"6bceeb66",null),Nt=Pt.exports,Ht=function(){var t=this,e=t._self._c;return e("div",[e("div",[e("div",[e("c-button",{staticClass:"api-handle",on:{click:function(e){return t.message()}}},[t._v("普通消息弹窗")]),e("c-button",{staticClass:"api-handle",on:{click:function(e){return t.message("success")}}},[t._v("成功消息弹窗")]),e("c-button",{staticClass:"api-handle",on:{click:function(e){return t.message("warn")}}},[t._v("警告消息弹窗")]),e("c-button",{staticClass:"api-handle",on:{click:function(e){return t.message("fail")}}},[t._v("失败消息弹窗")])],1),e("div",[e("c-button",{staticClass:"api-handle",on:{click:function(e){return t.notice()}}},[t._v("普通通知弹窗")]),e("c-button",{staticClass:"api-handle",on:{click:function(e){return t.notice("success")}}},[t._v("成功通知弹窗")]),e("c-button",{staticClass:"api-handle",on:{click:function(e){return t.notice("warn")}}},[t._v("警告通知弹窗")]),e("c-button",{staticClass:"api-handle",on:{click:function(e){return t.notice("fail")}}},[t._v("失败通知弹窗")]),e("c-button",{staticClass:"api-handle",on:{click:function(e){return t.noticeButton()}}},[t._v("带按钮的通知弹窗")])],1),e("div",[e("c-button",{staticClass:"api-handle",on:{click:function(e){return t.confirm("enquire")}}},[t._v("询问确认弹窗")]),e("c-button",{staticClass:"api-handle",on:{click:function(e){return t.confirm("warn")}}},[t._v("提醒确认弹窗")])],1),e("div",[e("c-button",{staticClass:"api-handle",on:{click:function(e){return t.loading()}}},[t._v("普通加载弹窗")]),e("c-button",{staticClass:"api-handle",on:{click:function(e){return t.loading("加载中")}}},[t._v("带文案加载弹窗")])],1)]),e("div",{staticClass:"doc",domProps:{innerHTML:t._s(t.$parent.loadDoc("popup"))}})])},Ot=[],Rt={data(){return{}},mounted(){},methods:{message(t){this.$message({type:t,message:"消息弹窗内容"})},notice(t){this.$notice({type:t,title:"通知标题",message:"通知弹窗内容"})},noticeButton(){this.$notice({title:"通知标题",message:"通知弹窗内容",button:[{name:"不再提醒",callback(){console.log(0)}}]})},confirm(t){this.$confirm({type:t,title:"确认弹窗标题",message:"确认弹窗内容",resolve:()=>{console.log("resolve")},cancel:()=>{console.log("cancel")}})},loading(t){this.$loading({message:t,timeout:1e3})}}},zt=Rt,Ut=d(zt,Ht,Ot,!1,null,"694f65b0",null),Kt=Ut.exports,Wt=function(){var t=this,e=t._self._c;return e("div",[e("div",[e("div",[e("c-button",{staticClass:"api-handle",on:{click:function(e){return t.dialog("popup")}}},[t._v("弹出模式会话弹窗")]),e("c-button",{staticClass:"api-handle",on:{click:function(e){return t.dialog("slide")}}},[t._v("侧滑模式会话弹窗")]),e("c-button",{staticClass:"api-handle",on:{click:function(e){return t.dialog("mask")}}},[t._v("无遮罩会话弹窗")])],1)]),e("div",{staticClass:"doc",domProps:{innerHTML:t._s(t.$parent.loadDoc("dialog"))}}),e("c-dialog",{ref:"popup",attrs:{title:"会话弹窗1",height:"199","resize-button":"","move-limit":!1}},[e("div",{staticStyle:{height:"199px"}},[t._v(" 会话弹窗内容 ")])]),e("c-dialog",{ref:"mask",attrs:{title:"会话弹窗2","resize-button":"",mask:!1}},[e("div",{staticStyle:{height:"199px"}},[t._v(" 会话弹窗内容 ")])]),e("c-dialog",{ref:"slide",attrs:{mode:"slide",title:"会话弹窗3","resize-button":"","move-limit":!1}},[e("div",{staticStyle:{height:"199px"}},[t._v(" 会话弹窗内容 ")])])],1)},jt=[],Vt={data(){return{}},mounted(){},methods:{dialog(t){this.$refs[t].open({zIndex:"mask"==t?1020:0})}}},qt=Vt,Yt=d(qt,Wt,jt,!1,null,"6313ac22",null),Xt=Yt.exports,Gt=function(){var t=this,e=t._self._c;return e("div",[e("div",[e("c-button",{ref:"button",on:{click:function(e){return t.$refs.window.show(t.$refs.button)}}},[t._v("显示窗口")]),e("c-window",{ref:"window",attrs:{title:"测试"},scopedSlots:t._u([{key:"beforeButton",fn:function(){return[t._v(" 自定义内容 ")]},proxy:!0},{key:"button",fn:function(){return[e("c-button",[t._v("按钮")])]},proxy:!0}])},[e("div",{staticStyle:{height:"100px"}},[t._v("窗口内容")])])],1),e("div",{staticClass:"doc",domProps:{innerHTML:t._s(t.$parent.loadDoc("window"))}})])},Zt=[],Qt={data(){return{}},mounted(){},methods:{}},Jt=Qt,te=d(Jt,Gt,Zt,!1,null,"7c9c33d0",null),ee=te.exports,ne=function(){var t=this,e=t._self._c;return e("div",[e("div",[e("div",[e("c-button",{staticClass:"api-handle",on:{click:function(e){return t.preview("https://uploadstatic.mihoyo.com/puzzle/upload/puzzle/2023/03/01/d2121e7797f65af32e3ed9eb258be585_8579148517963343593.jpg")}}},[t._v("图片预览")]),e("c-button",{staticClass:"api-handle",on:{click:function(e){return t.preview("https://ys.mihoyo.com/main/_nuxt/videos/3e78e80.mp4")}}},[t._v("视频预览")])],1)]),e("div",{staticClass:"doc",domProps:{innerHTML:t._s(t.$parent.loadDoc("preview"))}})])},ie=[],re={data(){return{}},mounted(){},methods:{preview(t){this.$preview({src:t})}}},oe=re,ae=d(oe,ne,ie,!1,null,"41bde794",null),se=ae.exports,le=function(){var t=this,e=t._self._c;return e("div",[e("div",[e("c-tab-list",{ref:"tabList",attrs:{tabs:t.tabs},on:{change:t.tabsHandle}})],1),e("div",[e("c-tab-list",{ref:"tabList",attrs:{tabs:t.tabs,type:"border-tab"},on:{change:t.tabsHandle}})],1),e("div",[e("c-tab-list",{ref:"tabList",attrs:{tabs:t.tabs,type:"card"},on:{change:t.tabsHandle}})],1),e("div",{staticClass:"doc",domProps:{innerHTML:t._s(t.$parent.loadDoc("tab"))}})])},ce=[],ue={data(){return{tabs:[{name:"tab1",value:1},{name:"tab2",value:2}]}},mounted(){},methods:{tabsHandle(t){console.log(t)}}},de=ue,he=d(de,le,ce,!1,null,"483ea3ec",null),pe=he.exports,fe=function(){var t=this,e=t._self._c;return e("div",[e("div",[e("c-grid-row",{staticStyle:{background:"#F5F5F5"},attrs:{margin:"",gap:""}},[e("c-grid-col",{attrs:{colspan:"1"}},[e("div",{staticStyle:{height:"50px",background:"#000"}})]),e("c-grid-col",{attrs:{colspan:"1"}},[e("div",{staticStyle:{height:"50px",background:"#333"}})]),e("c-grid-col",{attrs:{colspan:"2"}},[e("div",{staticStyle:{height:"50px",background:"#666"}})]),e("c-grid-col",{attrs:{colspan:"2"}},[e("div",{staticStyle:{height:"50px",background:"#999"}})])],1),e("br"),e("c-grid-row",{staticStyle:{background:"#F5F5F5"},attrs:{gap:""}},[e("c-grid-col",{attrs:{colspan:"6"}},[e("div",{staticStyle:{height:"50px",background:"#000"}})]),e("c-grid-col",{attrs:{colspan:"6"}},[e("div",{staticStyle:{height:"50px",background:"#666"}})])],1),e("br"),e("c-grid-row",{staticStyle:{background:"#F5F5F5"},attrs:{margin:""}},[e("c-grid-col",{attrs:{colspan:"3"}},[e("div",{staticStyle:{height:"50px",background:"#000"}})]),e("c-grid-col",{attrs:{colspan:"3"}},[e("div",{staticStyle:{height:"50px",background:"#333"}})]),e("c-grid-col",{attrs:{colspan:"3"}},[e("div",{staticStyle:{height:"50px",background:"#666"}})]),e("c-grid-col",{attrs:{colspan:"3"}},[e("div",{staticStyle:{height:"50px",background:"#999"}})])],1),e("div",{staticClass:"doc",domProps:{innerHTML:t._s(t.$parent.loadDoc("layout/grid"))}}),e("c-flex-row",{staticStyle:{background:"#F5F5F5"},attrs:{margin:"",gap:""}},[e("c-flex-col",{attrs:{colspan:"1"}},[e("div",{staticStyle:{height:"50px",background:"#000"}})]),e("c-flex-col",{attrs:{colspan:"1"}},[e("div",{staticStyle:{height:"50px",background:"#333"}})]),e("c-flex-col",{attrs:{colspan:"2"}},[e("div",{staticStyle:{height:"50px",background:"#666"}})]),e("c-flex-col",{attrs:{colspan:"2"}},[e("div",{staticStyle:{height:"50px",background:"#999"}})])],1),e("br"),e("c-flex-row",{staticStyle:{background:"#F5F5F5"},attrs:{gap:""}},[e("c-flex-col",{attrs:{colspan:"3"}},[e("div",{staticStyle:{height:"50px",background:"#000"}})]),e("c-flex-col",{attrs:{colspan:"2"}},[e("div",{staticStyle:{height:"50px",background:"#666"}})])],1),e("div",{staticClass:"doc",domProps:{innerHTML:t._s(t.$parent.loadDoc("layout/flex"))}})],1)])},me=[],ge={data(){return{}},mounted(){},methods:{}},ve=ge,be=d(ve,fe,me,!1,null,"29fab78c",null),_e=be.exports,ye=function(){var t=this,e=t._self._c;return e("div",[e("div",{staticClass:"layout"},[e("page",[e("module",{attrs:{title:"标题","sub-title":"副标题"},scopedSlots:t._u([{key:"head",fn:function(){return[e("div",{staticClass:"flex-end-center",staticStyle:{height:"100%"}},[t._v(" 头部插槽 ")])]},proxy:!0},{key:"foot",fn:function(){return[e("p",{staticStyle:{"line-height":"50px","text-align":"center",background:"#fffcd1"}},[t._v("底部插槽")])]},proxy:!0},{key:"button",fn:function(){return[e("c-button",[t._v("按钮一")]),e("c-button",[t._v("按钮二")])]},proxy:!0}])},[e("div",{staticStyle:{height:"1000px"}})])],1)],1),e("div",{staticClass:"doc",domProps:{innerHTML:t._s(t.$parent.loadDoc("module/normal"))}}),e("div",{staticClass:"layout"},[e("page",[e("module",{attrs:{title:"自适应高度","sub-title":"填充剩余高度,最小高度为100(不包含头部)"}}),e("module",{attrs:{title:"固定高度",height:"200","sub-title":"指定模块高度(不包含头部)"}},[e("div",{staticStyle:{height:"300px"}},[t._v("内容高300px")])]),e("module",{attrs:{title:"自动高度",height:"auto","sub-title":"根据内容高度变化"}},[e("div",{staticStyle:{height:"300px"}},[t._v("内容高300px")])])],1)],1),e("div",{staticClass:"doc",domProps:{innerHTML:t._s(t.$parent.loadDoc("module/multi"))}}),e("div",{staticClass:"layout"},[e("page",[e("module",{attrs:{tabs:t.tabs,"tab-type":"border-tab"},on:{tabChange:t.tabsHandle}},[e("div")]),e("module",[e("module-tab",{attrs:{name:"选项卡一"},on:{mounted:function(e){return t.moduleTabHandle(1,"mounted")},activated:function(e){return t.moduleTabHandle(1,"activated")},deactivated:function(e){return t.moduleTabHandle(1,"deactivated")}}},[e("div",{staticStyle:{height:"600px"}},[t._v("内容高600px")])]),e("module-tab",{attrs:{name:"选项卡二"},on:{mounted:function(e){return t.moduleTabHandle(2,"mounted")},activated:function(e){return t.moduleTabHandle(2,"activated")},deactivated:function(e){return t.moduleTabHandle(2,"deactivated")}}},[e("div",{staticStyle:{height:"1000px"}},[t._v("内容高1000px")])])],1)],1)],1),e("div",{staticClass:"doc",domProps:{innerHTML:t._s(t.$parent.loadDoc("module/tabs"))}}),e("div",{staticClass:"layout"},[e("page",[e("module",[e("module-row"),e("module-row",[e("module-col"),e("module-col")],1)],1)],1)],1),e("div",{staticClass:"doc",domProps:{innerHTML:t._s(t.$parent.loadDoc("module/complex"))}})])},we=[],xe={data(){return{tabs:[{name:"tab1",value:1},{name:"tab2",value:2}]}},mounted(){},methods:{moduleTabHandle(t,e){console.log(t,e)},tabsHandle(t){console.log(t)}}},ke=xe,Se=(n("4acb"),d(ke,ye,we,!1,null,"0406f941",null)),De=Se.exports,Ce=function(){var t=this,e=t._self._c;return e("div",[e("div",[e("c-drag-sort",{staticClass:"flex-wrap",on:{sort:t.sortHandle},scopedSlots:t._u([{key:"default",fn:function({item:n,index:i}){return[e("c-drag-item",{key:i,staticStyle:{margin:"0 30px 10px 0"}},[e("div",{staticClass:"flex-column flex-center",staticStyle:{width:"100px",height:"100px",background:"#eee"}},[e("p",[t._v(t._s(n))]),e("button",{staticStyle:{"margin-top":"10px"},on:{click:function(e){return t.removeSortItem(i)}}},[t._v("删除")])]),e("c-drag-handle",{staticClass:"handle"},[e("div",[t._v("拖")])])],1)]}}]),model:{value:t.sortList,callback:function(e){t.sortList=e},expression:"sortList"}}),e("c-drag-sort",{staticClass:"flex-wrap",scopedSlots:t._u([{key:"default",fn:function({item:n,index:i}){return[e("c-drag-item",{key:i,staticStyle:{margin:"0 30px 10px 0"}},[e("div",{staticClass:"flex-column flex-center",staticStyle:{width:"100px",height:"100px",background:"#eee"}},[e("p",[t._v(t._s(n))]),e("button",{staticStyle:{"margin-top":"10px"},on:{click:function(e){return t.removeSortItem(i)}}},[t._v("删除")])])])]}}]),model:{value:t.sortList,callback:function(e){t.sortList=e},expression:"sortList"}}),e("c-button",{staticClass:"api-handle",on:{click:t.addSortItem}},[t._v("添加一项")])],1),e("div",{staticClass:"doc",domProps:{innerHTML:t._s(t.$parent.loadDoc("drag_sort"))}})])},Ee=[],Ae={data(){return{sortList:[0,1,2,3,4,5],sortAdd:6}},watch:{sortList(t){console.log(t)}},mounted(){},methods:{addSortItem(){this.sortList.push(this.sortAdd++)},removeSortItem(t){this.sortList.splice(t,1)},sortHandle(t,e,n){console.log(t,e,n)}}},Te=Ae,Be=(n("c15a"),d(Te,Ce,Ee,!1,null,"1d55c72d",null)),Fe=Be.exports,$e=function(){var t=this,e=t._self._c;return e("div",[e("div",[e("c-dropdown",{attrs:{menu:t.menuList},on:{handle:t.handle}},[e("c-button",[t._v("下拉菜单"),e("i",{staticClass:"c-dropdown-angle c-icon-tri-down"})])],1)],1)])},Le=[],Me={data(){return{menuList:[[{name:"菜单1-1"},{name:"菜单1-2"}],[{name:"菜单2-1"},{name:"菜单2-2",submenu:[{name:"子菜单1-1"},{name:"子菜单1-2"}]},{name:"菜单2-3"}],{name:"菜单3-1"}]}},mounted(){},methods:{handle(t){console.log(t)}}},Ie=Me,Pe=d(Ie,$e,Le,!1,null,"6d885ec1",null),Ne=Pe.exports,He=function(){var t=this,e=t._self._c;return e("div",[e("div",[e("c-right-menu",{attrs:{menu:t.menuList},on:{handle:t.handle}},[e("div",{staticStyle:{display:"inline-block",padding:"20px",background:"#F5F5F5"}},[t._v(" 在此处单击右键 ")])])],1)])},Oe=[],Re={data(){return{menuList:[[{name:"菜单1-1"},{name:"菜单1-2"}],[{name:"菜单2-1"},{name:"菜单2-2",submenu:[{name:"子菜单1-1"},{name:"子菜单1-2"}]},{name:"菜单2-3"}],{name:"菜单3-1"}]}},mounted(){},methods:{handle(t){console.log(t)}}},ze=Re,Ue=d(ze,He,Oe,!1,null,"cefe2f94",null),Ke=Ue.exports,We=function(){var t=this,e=t._self._c;return e("div",[e("div",[e("div",{staticStyle:{"margin-bottom":"20px"}},[e("c-button",{staticClass:"api-handle",on:{click:function(e){return t.treeHandle("getNode","root")}}},[t._v("获取根节点")]),e("c-button",{staticClass:"api-handle",on:{click:function(e){return t.treeHandle("getNode","selected")}}},[t._v("获取选中节点")]),e("c-button",{staticClass:"api-handle",on:{click:function(e){return t.treeHandle("getNode","checked")}}},[t._v("获取勾选节点")]),e("c-button",{staticClass:"api-handle",on:{click:function(e){return t.treeHandle("insertRoot")}}},[t._v("插入根节点")])],1),e("c-tree",{ref:"tree",attrs:{data:t.treeData,select:{expand:!0,unselect:!0},check:{clickCheck:!0}},on:{load:function(e){return t.treeHandle("load",arguments[0],arguments[1])},click:function(e){return t.treeHandle("click",e)},check:function(e){return t.treeHandle("check",e)}}})],1),e("div",{staticClass:"doc",domProps:{innerHTML:t._s(t.$parent.loadDoc("tree"))}})])},je=[],Ve={data(){return{treeData:[{id:1,pId:0,name:"节点1"},{id:2,pId:0,name:"节点2"}]}},mounted(){},methods:{treeHandle(t,e,n){if(console.log(t,e),"load"==t){let t=[],i=this.$parent.random(2,6);for(let n=1;n<=i;n++)t.push({id:e.id.toString()+n,name:e.name+n,pId:e.id,leaf:this.$parent.random(0,9)>6});setTimeout(()=>{n(t)},500)}else if("getNode"==t)console.log(this.$refs.tree.getNode(e));else if("insertRoot"==t){let t=[],e=this.$refs.tree.getNode().length+1,n=e+this.$parent.random(2,6);for(let i=e;i<=n;i++)t.push({id:i,name:"节点"+i,pId:0,leaf:this.$parent.random(0,9)>6});this.$refs.tree.insertRoot(t)}}}},qe=Ve,Ye=d(qe,We,je,!1,null,"3dac96a0",null),Xe=Ye.exports,Ge=function(){var t=this,e=t._self._c;return e("div",[e("div",[e("c-steps",{attrs:{steps:t.stepsList,active:"2"}})],1),e("div",{staticClass:"doc",domProps:{innerHTML:t._s(t.$parent.loadDoc("steps"))}})])},Ze=[],Qe={data(){return{stepsList:[{name:"步骤一"},{name:"步骤二",message:"步骤描述"},{name:"步骤三",message:"步骤描述"},{name:"步骤四"}]}},mounted(){},methods:{}},Je=Qe,tn=d(Je,Ge,Ze,!1,null,"852e07c0",null),en=tn.exports,nn=function(){var t=this,e=t._self._c;return e("div",[e("div",{staticStyle:{width:"200px"}},[e("c-progress",{attrs:{type:"line",rate:[5,10],decimal:"1"}}),e("br"),e("br"),e("c-progress",{attrs:{type:"circle",rate:"44,111",decimal:"2"}})],1),e("div",{staticClass:"doc",domProps:{innerHTML:t._s(t.$parent.loadDoc("progress"))}})])},rn=[],on={data(){return{}},mounted(){},methods:{}},an=on,sn=d(an,nn,rn,!1,null,"7fc615f7",null),ln=sn.exports,cn=function(){var t=this,e=t._self._c;return e("div",[e("div",{staticStyle:{padding:"20px",background:"#FAFAFA"}},[e("c-qrcode",{attrs:{value:"qweqwqwe",margin:"20"}})],1),e("div",{staticClass:"doc",domProps:{innerHTML:t._s(t.$parent.loadDoc("qrcode"))}})])},un=[],dn={data(){return{}},mounted(){},methods:{}},hn=dn,pn=d(hn,cn,un,!1,null,"77da1f1b",null),fn=pn.exports,mn=function(){var t=this,e=t._self._c;return e("div",[e("div",[e("p",[e("c-countdown",{ref:"cd",attrs:{icon:"",sec:"86400"},on:{end:t.endHandle}})],1),e("br"),e("c-button",{on:{click:function(e){return t.$refs.cd.setSec(10)}}},[t._v("10S")])],1),e("div",{staticClass:"doc",domProps:{innerHTML:t._s(t.$parent.loadDoc("countdown"))}})])},gn=[],vn={data(){return{}},mounted(){},methods:{endHandle(){console.log("end")}}},bn=vn,_n=d(bn,mn,gn,!1,null,"2e48d6ac",null),yn=_n.exports,wn=n("7c5c"),xn=n.n(wn),kn={name:"vueComponentLibrary",components:{apiButton:p,apiInput:_,apiOptions:D,apiSelector:F,apiSwitch:N,apiFile:K,apiEditor:X,apiLink:et,apiTooltip:st,apiTitle:pt,apiPagination:_t,apiTable:Dt,apiForm:Ft,apiDetail:Nt,apiPopup:Kt,apiDialog:Xt,apiWindow:ee,apiPreview:se,apiTab:pe,apiLayout:_e,apiModule:De,apiDragSort:Fe,apiDropdown:Ne,apiRightMenu:Ke,apiTree:Xe,apiSteps:en,apiProgress:ln,apiQrcode:fn,apiCountdown:yn},data(){return{marked:xn.a,docTab:["按钮","输入框","单复选框","选择器","开关","文件","编辑器","链接","提示信息","标题","分页栏","表格","表单","详情","消息弹窗","会话弹窗","悬浮窗口","媒体预览","选项卡","布局","模块","拖拽排序","下拉菜单","右键菜单","树","步骤条","进度条","二维码","倒计时"],tabColor:["main","lesser","red","green","blue","yellow"],crtTab:Xf.get("crt_tab")||"按钮"}},computed:{crtTabColor(){return this.crtTab,this.tabColor[Math.floor(Math.random()*this.tabColor.length)]},loadDoc(){return t=>xn.a.parse(n("5aa3")(`./${t}.md`).default)}},watch:{crtTab(t){Xf.set("crt_tab",t)}},mounted(){window.$app=this},methods:{random(t,e){return Math.floor(Math.random()*(e-t+1)+t)}}},Sn=kn,Dn=(n("5af5"),d(Sn,o,a,!1,null,null,null)),Cn=Dn.exports,En=function(){var t=this,e=t._self._c;return e("button",{staticClass:"c-button",style:t.compStyle,attrs:{color:t.color,hollow:t.hollow,disabled:!!t.disabled},on:{click:function(e){return t.$emit("click")},mouseenter:function(e){t.hoverState=!0},mouseleave:function(e){t.hoverState=!1}}},[e("div",{staticClass:"flex-center"},[t.prependIcon?e("i",{staticClass:"icon",class:t.prependIcon}):t._e(),e("span",[t._t("default")],2),t.appendIcon?e("i",{staticClass:"icon",class:t.appendIcon}):t._e()])])},An=[],Tn={name:"cButton",props:{size:{type:String,default:"normal"},color:{type:String,default:"normal"},hollow:Boolean,disabled:Boolean,prependIcon:String,appendIcon:String},data(){return{hoverState:!1}},computed:{sizeStyle(){return this.$compsConfig.style.buttonSize[this.size]||{}},colorStyle(){let t=this.$compsConfig.color[this.color];if(!t)return{};let e=t[this.hoverState?1:0];return{"border-color":e,color:this.hollow?e:"#fff",background:this.hollow?"#fff":e}},compStyle(){return Object.assign({},this.sizeStyle,this.colorStyle)}}},Bn=Tn,Fn=(n("25f9"),d(Bn,En,An,!1,null,"ff8f74d6",null)),$n=Fn.exports,Ln=function(){var t=this,e=t._self._c;return e("div",{directives:[{name:"show",rawName:"v-show",value:"hidden"!=t.type,expression:"type != 'hidden'"}],staticClass:"c-input",class:{"c-textarea":"textarea"==t.type,"z-dis":t.disabled},attrs:{warn:!!t.name&&t.warnState},on:{mouseenter:function(e){t.active=!0},mouseleave:function(e){t.active=!1}}},["textarea"==t.type?[e("textarea",{directives:[{name:"model",rawName:"v-model",value:t.valueData,expression:"valueData"}],ref:"input",style:{resize:!0===t.heightResize?"vertical":"none"},attrs:{rows:"1",placeholder:t.$t(t.placeholder),maxlength:t.maxlength,disabled:t.disabled,readonly:t.readonly},domProps:{value:t.valueData},on:{input:[function(e){e.target.composing||(t.valueData=e.target.value)},t.inputHandle],focus:t.inputHandle,blur:t.inputHandle,change:t.inputHandle}}),t.maxlength?e("span",{staticClass:"c-input-length",style:{right:!0===t.heightResize?"20px":"5px"}},[t._v(t._s(t.valueData.length)+" / "+t._s(t.maxlength))]):t._e()]:e("div",{staticClass:"flex"},[t.$scopedSlots.prependText||t.prependText?e("div",{staticClass:"c-input-text flex-center"},[t._t("prependText"),e("span",[t._v(t._s(t.$t(t.prependText)))])],2):t._e(),"stepper"==t.type&&"both"==t.stepControls?e("button",{staticClass:"c-input-step flex-center",class:{"z-dis":""!==t.valueData&&!1!==t.minRange&&t.minRange==t.valueData},on:{click:function(e){return t.stepHandle(-1)}}},[e("i",{staticClass:"c-icon-minus"})]):t._e(),e("div",{staticClass:"flex-center flex-grow"},[t.$scopedSlots.prepend?e("div",{staticClass:"c-input-content"},[t._t("prepend")],2):t._e(),t.$scopedSlots.prependIcon?e("span",{staticClass:"c-input-icon flex-center"},[t._t("prependIcon")],2):t._e(),"checkbox"===t.compType?e("input",{directives:[{name:"model",rawName:"v-model",value:t.valueData,expression:"valueData"}],ref:"input",staticClass:"flex-grow",style:{"text-align":t.alignCenter?"center":"left"},attrs:{placeholder:t.$t(t.placeholder),maxlength:t.maxlength,disabled:t.disabled,readonly:t.readonly,autocomplete:"off",type:"checkbox"},domProps:{checked:Array.isArray(t.valueData)?t._i(t.valueData,null)>-1:t.valueData},on:{input:t.inputHandle,focus:t.inputHandle,blur:t.inputHandle,change:[function(e){var n=t.valueData,i=e.target,r=!!i.checked;if(Array.isArray(n)){var o=null,a=t._i(n,o);i.checked?a<0&&(t.valueData=n.concat([o])):a>-1&&(t.valueData=n.slice(0,a).concat(n.slice(a+1)))}else t.valueData=r},t.inputHandle],keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.enterHandle.apply(null,arguments)}}}):"radio"===t.compType?e("input",{directives:[{name:"model",rawName:"v-model",value:t.valueData,expression:"valueData"}],ref:"input",staticClass:"flex-grow",style:{"text-align":t.alignCenter?"center":"left"},attrs:{placeholder:t.$t(t.placeholder),maxlength:t.maxlength,disabled:t.disabled,readonly:t.readonly,autocomplete:"off",type:"radio"},domProps:{checked:t._q(t.valueData,null)},on:{input:t.inputHandle,focus:t.inputHandle,blur:t.inputHandle,change:[function(e){t.valueData=null},t.inputHandle],keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.enterHandle.apply(null,arguments)}}}):e("input",{directives:[{name:"model",rawName:"v-model",value:t.valueData,expression:"valueData"}],ref:"input",staticClass:"flex-grow",style:{"text-align":t.alignCenter?"center":"left"},attrs:{placeholder:t.$t(t.placeholder),maxlength:t.maxlength,disabled:t.disabled,readonly:t.readonly,autocomplete:"off",type:t.compType},domProps:{value:t.valueData},on:{input:[function(e){e.target.composing||(t.valueData=e.target.value)},t.inputHandle],focus:t.inputHandle,blur:t.inputHandle,change:t.inputHandle,keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.enterHandle.apply(null,arguments)}}}),t.clear&&t.valueData&&!t.readonly?e("a",{staticClass:"c-input-icon clear flex-center",on:{click:t.clearHandle}},[e("i",{staticClass:"c-icon-clear"})]):t._e(),t.visible?e("a",{staticClass:"c-input-icon flex-center",on:{click:function(e){t.visibleState=!t.visibleState}}},[e("i",{staticClass:"c-icon-eyes",class:{"c-icon-eyes-close":t.visibleState}})]):t._e(),t.$scopedSlots.appendIcon?e("span",{staticClass:"c-input-icon flex-center"},[t._t("appendIcon")],2):t._e(),t.$scopedSlots.append?e("div",{staticClass:"c-input-content"},[t._t("append")],2):t._e()]),e("div",{staticClass:"flex-column"},["stepper"==t.type?e("button",{staticClass:"c-input-step flex-center flex-grow",class:{"z-dis":""!==t.valueData&&!1!==t.maxRange&&t.maxRange==t.valueData},on:{click:function(e){return t.stepHandle(1)}}},[e("i",{staticClass:"c-icon-plus"})]):t._e(),"stepper"==t.type&&"side"==t.stepControls?e("button",{staticClass:"c-input-step flex-center flex-grow",class:{"z-dis":""!==t.valueData&&!1!==t.minRange&&t.minRange==t.valueData},on:{click:function(e){return t.stepHandle(-1)}}},[e("i",{staticClass:"c-icon-minus"})]):t._e()]),t.$scopedSlots.appendText||t.appendText||t.unit?e("div",{staticClass:"c-input-text flex-center"},[t._t("appendText"),e("span",[t._v(t._s(t.$t(t.appendText||t.unit)))])],2):t._e()]),t._events.suggest?e("div",{directives:[{name:"show",rawName:"v-show",value:t.listPosition&&t.suggestList.length,expression:"listPosition && suggestList.length"}],ref:"list",staticClass:"c-input-suggest",style:t.listPosition,on:{mouseenter:function(e){t.active=!0},mouseleave:function(e){t.active=!1}}},[e("select-list",{ref:"options",attrs:{options:t.suggestList},on:{click:t.set}})],1):t._e()],2)},Mn=[];function In(t,e){var n=window.getComputedStyle(t,null);return n[e]}function Pn(t,e){var n=t.parentNode;if(n)return n===window.document?window.document.body.scrollTop||window.document.body.scrollLeft?e(window.document.body):e(window):((["scroll","auto"].includes(In(n,"overflow"))||["scroll","auto"].includes(In(n,"overflow-x"))||["scroll","auto"].includes(In(n,"overflow-y")))&&e(n),Pn(t.parentNode,e))}var Nn=n("8bbf"),Hn=n.n(Nn);function On(t,e={}){let{computed:n,watch:i,methods:r}=e;const o="function"==typeof t?t:Hn.a.extend({data(){return t},computed:n,watch:i,methods:{...r,commit(t,e){this[t]=e}}});return new o({i18n:Wf})}function Rn(t,e="store"){let n;return function t(i){i&&(i[e]?n=i[e]:t(i.$parent))}(t),{[e]:n||{commit:function(){}}}}function zn(t,e){"string"!=typeof t&&(e=t,t="store");const n={};if(e.constructor==Array)e.forEach(e=>{n[e]={get(){try{return this[t][e]}catch(n){return}},set(){}}});else for(let i in e)n[i]={get(){return e[i](this[t])},set(){}};return n}const Un={render(t){return t("div",[this.options.map(e=>[t("div",{class:"flex-center-cross c-input-suggest-item flex-center-cross",attrs:{title:this.$t(e)},on:{click:()=>this.clickHandle(e)}},[t("p",{class:"ellipsis flex-grow"},[this.$t(e)])])])])},props:{options:Array},methods:{clickHandle(t){this.$emit("click",t),this.$parent.blurHandle()}}};var Kn={name:"cInput",components:{selectList:Un},props:{type:{type:String,default:"text"},value:[Number,String],name:String,placeholder:String,maxlength:[Number,String],decimal:[Number,String],range:[String,Array],disabled:Boolean,readonly:Boolean,alignCenter:Boolean,prependText:String,appendText:String,unit:String,visible:Boolean,clear:{type:Boolean,default:!0},step:{type:[String,Number],default:1},stepControls:{type:String,default:"both"},heightResize:{type:[Boolean,String],default(){return this.$compsConfig.config.input.heightResize}}},data(){return{...Rn(this,"cFormStore"),...Rn(this,"cFormItemStore"),valueData:"",visibleState:!1,listPosition:!1,suggestList:[],active:!1}},computed:{...zn("cFormStore",["submitHandle"]),...zn("cFormItemStore",["warnState"]),compType(){return"number"==this.type||this.visibleState?"text":this.type},compRange(){return!!this.range&&("string"==typeof this.range?this.range.split(","):this.range)},minRange(){return"object"==typeof this.compRange&&2==this.compRange.length&&parseFloat(this.compRange[0])},maxRange(){return!1!==this.compRange&&parseFloat(this.compRange[1])},compDecimal(){return!!["number","stepper"].includes(this.type)&&(parseInt(this.decimal)||0)}},watch:{value(t){this.set(t)},valueData(){this.$emit("input",this.get()),this.$nextTick(this.updateHeight)},compDecimal(){this.inputHandle({type:"blur"})}},mounted(){this.set(this.value),this._events.suggest&&document.body.appendChild(this.$refs.list)},beforeDestroy(){this._events.suggest&&document.body.removeChild(this.$refs.list)},methods:{set(t=""){t=t||0===t?t:"",this.valueData=t.toString().trim(),this.valueData&&this.cFormItemStore.commit("warnState",!1)},get(){return this.valueData.toString().trim()},focus(){this.$refs.input.focus()},select(){this.$refs.input.select()},inputHandle(t){if(this.cFormItemStore.commit("warnState",!1),!1!==this.compDecimal){var e=[["^(-?)0?(\\d+)$","$1$2"],["^(-?)\\.$","$1"],["\\.(\\d*)\\.+",".$1"],["^(\\d+\\.?\\d*)-+","$1"],["^(-\\d*\\.?\\d*)-+","$1"],["^(-?\\d+\\.\\d{"+this.compDecimal+"}).+","$1"],[this.compDecimal?"[^-\\d\\.]+$":"[^-\\d]+$",""]];e.forEach(t=>{this.valueData=this.valueData.toString().replace(new RegExp(t[0]),t[1])}),""!==this.valueData&&"blur"==t.type&&(this.valueData=this.valueData.toString().replace(this.compDecimal?/[^-\d\.]+/g:/[^-\d]+/g,""),!1!==this.minRange&&this.valueData<this.minRange&&(this.valueData=this.minRange),!1!==this.maxRange&&this.valueData>this.maxRange&&(this.valueData=this.maxRange))}"input"!=t.type?(this.$emit("input",this.get()),this.$emit(t.type,this.get()),"focus"==t.type?this._events.suggest&&(this.suggestHandle(),this.listPosition=!0,this.$nextTick(this.updatePosition),window.addEventListener("click",this.blurHandle,!0),Pn(this.$el,t=>{t.addEventListener("scroll",this.updatePosition)})):"blur"==t.type&&(this.changeHandle(),this.blurHandle(t))):this.suggestHandle()},blurHandle(t){t&&this.active||(this.listPosition=!1,this.suggestList=[],window.removeEventListener("click",this.blurHandle,!0),Pn(this.$el,t=>{t.removeEventListener("scroll",this.updatePosition)}))},changeHandle(){this.$emit("change",this.get()),this.cFormStore.commit("editState",!0)},clearHandle(){this.valueData="",this.suggestHandle(),this.focus(),this.changeHandle()},enterHandle(){this.$emit("enter",this.get()),this.submitHandle&&this.submitHandle()},suggestHandle(){this.valueData?this.$emit("suggest",this.valueData,t=>{this.suggestList=t,this.$nextTick(this.updatePosition)}):this.suggestList=[]},stepHandle(t){let e=this.valueData.toString().split(".")[1]||"",n=this.step.toString().split(".")[1]||"",i=n.length>e.length?n.length:e.length;this.valueData=parseFloat(((parseFloat(this.valueData)||0)+t*parseFloat(this.step)).toFixed(i)),this.inputHandle({type:"blur"}),this.changeHandle()},updatePosition(){let t=this.$el.getBoundingClientRect(),e=this.$refs.list.offsetHeight<300?this.$refs.list.offsetHeight:300,n=window.innerHeight-t.bottom<e;this.listPosition={left:t.left+"px",top:window.scrollY+(n?t.top-e+1:t.top+this.$el.offsetHeight-1)+"px",width:this.$el.offsetWidth+"px","max-height":this.parsePixel(300,!0)}},updateHeight(){"textarea"==this.type&&"auto"==this.heightResize&&(this.$refs.input.style.height="auto",this.$refs.input.style.height=this.$refs.input.scrollHeight+"px")}}},Wn=Kn,jn=(n("5b1c"),d(Wn,Ln,Mn,!1,null,"240ce892",null)),Vn=jn.exports,qn=function(){var t=this,e=t._self._c;return e("div",{staticClass:"c-radio",class:{"z-chk":t.checkState,"z-dis":t.disabledState},on:{click:t.checkHandle}},[e("div",{staticClass:"c-radio-check"}),t.$slots.default?e("div",{staticClass:"c-radio-content"},[t._t("default")],2):t._e()])},Yn=[],Xn={name:"cRadio",props:{value:[Number,String],disabled:Boolean},data(){return{store:this.$parent.store}},computed:{...zn(["valueData","groupDisabled"]),checkState(){return this.valueData==this.value},disabledState(){return this.groupDisabled||this.disabled}},methods:{checkHandle(){this.disabledState||this.checkState||this.$parent.changeHandle(this.value)},changeHandle(t){this.$emit("change",t)}}},Gn=Xn,Zn=(n("647a"),d(Gn,qn,Yn,!1,null,"1ef111e6",null)),Qn=Zn.exports,Jn=function(){var t=this,e=t._self._c;return e("div",{staticClass:"c-radio-group",attrs:{warn:!!t.name&&t.warnState},on:{click:function(e){return t.cFormItemStore.commit("warnState",!1)}}},[t.$slots.default?t._t("default"):t._l(t.options,(function(n,i){return e("c-radio",{key:i,attrs:{value:n.value}},[t._v(t._s(t.$t(n.name)))])}))],2)},ti=[],ei={name:"cRadioGroup",props:{value:[String,Number],name:String,disabled:Boolean,options:Array},data(){return{...Rn(this,"cFormStore"),...Rn(this,"cFormItemStore"),store:On({valueData:this.value,groupDisabled:this.disabled})}},computed:{...zn("cFormItemStore",["warnState"]),...zn(["valueData"])},watch:{value(t){this.set(t)},valueData(){this.$emit("input",this.get())},disabled(t){this.store.commit("groupDisabled",t)}},methods:{set(t=""){this.store.commit("valueData",t),this.valueData&&this.cFormItemStore.commit("warnState",!1)},get(){return this.valueData},changeHandle(t){this.$children.forEach(e=>{(e.checkState||e.value==t)&&e.changeHandle(e.value==t)}),this.store.commit("valueData",t),this.$emit("change",this.get()),this.cFormStore.commit("editState",!0)}}},ni=ei,ii=(n("0a75"),d(ni,Jn,ti,!1,null,"1345d698",null)),ri=ii.exports,oi=function(){var t=this,e=t._self._c;return e("div",{staticClass:"c-checkbox",class:{"z-chk":t.checkState,"z-dis":t.disabledState},style:{height:t.parsePixel(t.size,!0)},on:{click:function(e){return t.checkHandle(!t.checkState)}}},[e("div",{staticClass:"c-checkbox-check",style:{width:t.parsePixel(t.size,!0),height:t.parsePixel(t.size,!0),"line-height":t.parsePixel(t.size,!0),"font-size":t.parsePixel(t.iconSize,!0)}},[t.half?e("i",{staticClass:"c-icon-check-half"}):t.checkState?e("i",{staticClass:"c-icon-check"}):t._e()]),t.$slots.default?e("div",{staticClass:"c-checkbox-content"},[t._t("default")],2):t._e()])},ai=[],si={name:"cCheckbox",props:{value:[Number,String,Boolean],disabled:Boolean,half:Boolean,size:{type:[Number,String],default:20}},data(){let t="cCheckboxGroup"==this.$parent.$options.name;return{selfChecked:!!this.value,inGroup:t,store:t?this.$parent.store:void 0}},computed:{...zn(["valueData","limit","groupDisabled"]),parseValueData(){return"object"==typeof this.valueData?Array.from(this.valueData,t=>t.toString()):this.valueData.toString()?this.valueData.toString().split(","):[]},checkState(){return this.inGroup?this.parseValueData.includes(this.value.toString()):this.selfChecked},disabledState(){return this.inGroup&&this.groupDisabled||this.disabled},overflow(){return!this.checkState&&this.limit>0&&this.parseValueData.length>=this.limit},iconSize(){return parseInt(this.size)<20?12:13}},watch:{value(t){this.selfChecked=!!t,this.store&&this.store.updateValueData()}},mounted(){this.store&&this.store.updateValueData()},beforeDestroy(){this.store&&this.store.updateValueData()},methods:{checkHandle(t){if(!this.disabledState){if(this.inGroup){if(this.overflow)return void this.$message({message:this.$t("_t.select.upperLimit",{count:this.limit})});let e;t?e=this.parseValueData.concat([this.value.toString()]):(e=this.parseValueData.join(",").split(","),e.splice(e.indexOf(this.value.toString()),1)),this.store.commit("valueData","object"==typeof this.valueData?e:e.join(",")),this.$parent.changeHandle()}else this.selfChecked=t,this.$emit("input",t);this.$emit("change",t)}}}},li=si,ci=(n("5d56"),d(li,oi,ai,!1,null,"2b8f077c",null)),ui=ci.exports,di=function(){var t=this,e=t._self._c;return e("div",{staticClass:"c-checkbox-group",attrs:{warn:!!t.name&&t.warnState},on:{click:function(e){return t.cFormItemStore.commit("warnState",!1)}}},[t.$slots.default?t._t("default"):t._l(t.options,(function(n,i){return e("c-checkbox",{key:i,attrs:{value:n.value}},[t._v(t._s(t.$t(n.name)))])}))],2)},hi=[],pi={name:"cCheckboxGroup",props:{value:{type:[String,Number,Array],default:""},name:String,disabled:Boolean,limit:[String,Number],options:Array},data(){return{...Rn(this,"cFormStore"),...Rn(this,"cFormItemStore"),store:On({updateValueData:Vf(()=>{this.set(this.valueData.filter(t=>!!this.$children.find(e=>"cCheckbox"==e.$options.name&&e.value.toString()==t.toString())))},10),valueData:[],limit:parseInt(this.limit),groupDisabled:this.disabled})}},computed:{...zn("cFormItemStore",["warnState"]),...zn(["valueData"])},watch:{value(t){this.set(t)},valueData(){this.$emit("input",this.get())},limit(t){this.store.commit("limit",t)},disabled(t){this.store.commit("groupDisabled",t)}},mounted(){this.set(this.value)},methods:{set(t){t||(t=[]),"string"==typeof t&&(t=t.split(",")),this.store.commit("valueData",t),this.valueData.length&&this.cFormItemStore.commit("warnState",!1)},get(){return this.valueData},changeHandle(){this.$emit("change",this.get()),this.cFormStore.commit("editState",!0)}}},fi=pi,mi=(n("830f"),d(fi,di,hi,!1,null,"cca96b80",null)),gi=mi.exports,vi=function(){var t=this,e=t._self._c;return e("div",{staticClass:"c-select",class:{"z-active":t.listPosition,"z-dis":t.disabled},attrs:{warn:!!t.name&&t.warnState,"auto-height":t.multiple&&t.multipleConfig.linefeed&&!t.emptyState},on:{click:t.developHandle,mouseenter:function(e){t.active=!0},mouseleave:function(e){t.active=!1}}},[e("div",{staticClass:"c-select-main flex-between-center"},[e("div",{ref:"value",staticClass:"flex-grow flex-center-cross",class:{"flex-wrap":t.multipleConfig.linefeed,"c-select-tag":t.multiple&&!t.emptyState}},[t.multiple&&!t.emptyState?t._l(t.currentData,(function(n,i){return e("div",{key:i,staticClass:"c-select-tag-item flex-center"},[e("span",{staticClass:"ellipsis",attrs:{title:t.$t(n.name)}},[t._v(t._s(t.$t(n.name)))]),t.disabled?t._e():e("a",{staticClass:"c-icon-cross",on:{click:function(e){return e.stopPropagation(),t.deleteValue(n)}}})])})):t._e(),t.searchConfig?e("input",{directives:[{name:"model",rawName:"v-model",value:t.searchValue,expression:"searchValue"}],ref:"input",staticClass:"c-select-input flex-grow",attrs:{disabled:t.disabled,placeholder:t.emptyState?t.$t(t.placeholder):t.multiple?"":t.valueName,autocomplete:"off"},domProps:{value:t.searchValue},on:{input:[function(e){e.target.composing||(t.searchValue=e.target.value)},t.asyncSearchDebounceHandle],keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.addHandle(t.searchValue,"enter")},blur:function(e){return t.addHandle(t.searchValue,"blur")}}}):t._e(),!t.emptyState&&t.multiple||t.searchConfig?t._e():e("span",{staticClass:"c-select-current flex-grow ellipsis",class:{"z-empty":t.emptyState},attrs:{title:t.emptyState?t.$t(t.placeholder):t.valueName}},[t._v(t._s(t.emptyState?t.$t(t.placeholder):t.valueName))])],2),t.clear&&!t.emptyState?e("a",{staticClass:"c-select-clear flex-center",on:{click:function(e){return e.stopPropagation(),t.clearHandle.apply(null,arguments)}}},[e("i",{staticClass:"c-icon-clear"})]):t._e(),e("span",{staticClass:"c-select-icon flex-center"},[t.$scopedSlots.icon?t._t("icon"):e("i",{staticClass:"c-icon-angle-down"})],2)]),e("div",{directives:[{name:"show",rawName:"v-show",value:t.listPosition,expression:"listPosition"}],ref:"list",staticClass:"c-select-options",style:t.listPosition,on:{click:t=>t.stopPropagation(),mouseenter:function(e){t.active=!0},mouseleave:function(e){t.active=!1}}},[e("select-list",{ref:"options",attrs:{async:t.asyncState,options:t.optionsList,disableOptions:t.disableOptions,multiple:!!t.multiple,add:t.searchConfig.add&&t.searchConfig.addEvents.includes("option")},on:{search:t.searchFocus},model:{value:t.searchValue,callback:function(e){t.searchValue=e},expression:"searchValue"}})],1)])},bi=[];function _i(t,e,n=0){var i=[];return e&&e.map(e=>{(this.async||!this.keyword||this.$t(e.name).toLocaleLowerCase().includes(this.keyword.toLocaleLowerCase()))&&(i=i.concat(this.$parent.$scopedSlots.option?[t("div",{class:"c-select-options-custom",on:{click:()=>this.clickHandle(e)}},[this.$parent.$scopedSlots.option({data:e,selected:this.currentDataValue.includes(e.value.toString()),disabled:-1!=this.disableOptions.findIndex(t=>t==e.value)})])]:[t("div",{class:"flex-center-cross c-select-options-item "+(this.currentDataValue.includes(e.value.toString())?"z-crt":""),attrs:{title:this.$t(e.name),disabled:-1!=this.disableOptions.findIndex(t=>t==e.value)},on:{click:()=>this.clickHandle(e)}},[n?[t("div",{class:"c-select-options-item-level c-icon-level-line",style:`margin-left: ${20*(n-1)}px;`})]:[],t("p",{class:"ellipsis flex-grow"},[this.$t(e.name)]),this.multiple?[t("i",{class:"c-select-options-item-check c-icon-check"})]:[]])])),i=i.concat(_i.call(this,t,e.children,n+1))}),i}const yi={render(t){return t("div",[this.undefinedOption?[t("div",{class:"flex-center-cross c-select-options-item c-select-options-add",on:{click:()=>this.addHandle()}},[t("i",{class:"c-select-options-add-icon c-icon-add"}),t("span",[this.$t("_t.select.add")])])]:[],_i.call(this,t,this.options)])},props:{async:Boolean,options:Array,disableOptions:Array,multiple:Boolean,add:Boolean,value:String},data(){return{store:this.$parent.store}},computed:{...zn(["currentValue","currentData"]),keyword(){return this.value.trim()},currentDataValue(){return this.currentData.map(t=>t.value.toString())},undefinedOption(){if(this.add&&this.keyword)return!this.options.find(t=>this.$t(t.name)==this.keyword)}},watch:{currentValue(){this.updateCurrentData()},options(){this.async||this.updateCurrentData()}},mounted(){this.updateCurrentData()},methods:{updateCurrentData(){let t=[],e="object"==typeof this.currentValue?this.currentValue.map(t=>t.toString()):this.currentValue.toString().split(",");e.length&&function n(i){i.forEach(i=>{e.includes(i.value.toString())&&t.push(i),i.children&&n(i.children)})}(this.async?this.currentData:this.options),this.store.commit("currentData",t)},clickHandle(t,e){if(-1==this.disableOptions.findIndex(e=>e==t.value))if(this.multiple){let n,i=this.currentData.findIndex(e=>e.value==t.value);if(-1!=i)n=this.currentData.map(t=>t),!e&&n.splice(i,1);else{if(this.currentData.length>=this.$parent.multipleConfig.limit)return void this.$message({message:this.$t("_t.select.upperLimit",{count:this.$parent.multipleConfig.limit})});n=this.currentData.concat([t])}this.store.commit("currentData",n);let r=n.map(t=>t.value);this.store.commit("currentValue","object"==typeof this.currentValue?r:r.join(",")),this.$parent.changeHandle(),this.$emit("input",""),this.$emit("search")}else this.currentDataValue.includes(t.value.toString())||(this.store.commit("currentData",[t]),this.store.commit("currentValue",t.value),this.$parent.changeHandle()),this.$parent.foldHandle()},addHandle(){this.$parent.addHandle(this.keyword,"option")}}};var wi={name:"cSelect",components:{selectList:yi},props:{async:Boolean,value:{type:[String,Number,Array],default:""},valueData:Array,name:String,placeholder:{type:String,default:"_t.select.placeholder"},options:{type:[Array,String],default:()=>[]},disableOptions:{type:Array,default(){return[]}},listWidth:[Number,String],listHeight:{type:[Number,String],default:300},disabled:Boolean,clear:{type:Boolean,default:!0},multiple:[Boolean,Object],search:{type:[Boolean,Object],default(){return this.$compsConfig.config.select.search}}},data(){return{...Rn(this,"cFormStore"),...Rn(this,"cFormItemStore"),store:On({currentValue:this.multiple?[]:"",currentData:[]}),optionsList:[],listPosition:!1,active:!1,searchValue:""}},computed:{...zn("cFormItemStore",["warnState"]),...zn(["currentValue","currentData"]),multipleConfig(){return!!this.multiple&&Object.assign({limit:1/0,linefeed:!1},"object"==typeof this.multiple?this.multiple:{})},searchConfig(){return!(!this.asyncState&&!this.search)&&Object.assign({empty:!0,add:!1,addEvents:["option"]},"object"==typeof this.search?this.search:{})},valueName(){return this.currentData[0]?this.$t(this.currentData[0].name):""},emptyState(){return!this.currentValue&&0!==this.currentValue||this.multiple&&!this.currentValue.length},asyncState(){return this.async||!!this._events.customEvent}},watch:{value(t){this.set(t)},currentValue(){this.$emit("input",this.get())},currentData(){this.multipleConfig&&this.multipleConfig.linefeed&&this.listPosition&&this.updatePosition()},valueName(t){this.searchConfig&&!this.multiple&&(this.searchValue=t)},valueData(t){this.asyncState&&this.setValueData(t)},options(){this.asyncState||this.getOptionsList()},optionsList(t,e){if(!this.asyncState&&e.length){let e=Array.isArray(this.currentValue)?this.currentValue:[this.currentValue];e=e.filter(e=>t.find(t=>t.value==e)),this.set(e.join(","))}},searchValue(){this.$nextTick(()=>{this.listPosition&&this.updatePosition()})}},mounted(){this.asyncState?this.setValueData(this.valueData):(this.set(this.value),this.getOptionsList()),document.body.appendChild(this.$refs.list)},beforeDestroy(){document.body.removeChild(this.$refs.list)},methods:{set(t){t||0===t||(t=this.multiple?[]:""),this.multiple&&!Array.isArray(t)&&(t=t.toString().split(",")),this.store.commit("currentValue",t),Array.isArray(this.currentValue)?this.currentValue.length&&this.cFormItemStore.commit("warnState",!1):this.currentValue&&this.cFormItemStore.commit("warnState",!1)},get(){return this.currentValue},getData(){return this.multiple?this.currentData:this.currentData[0]||{}},setValueData(t){t&&(this.store.commit("currentData",t),this.set(this.multiple?t.map(t=>t.value):t[0]?t[0].value:""))},getOptionsList(){Array.isArray(this.options)?this.optionsList=JSON.parse(JSON.stringify(this.options)):this.$compsConfig.data.options[this.options]&&this.$compsConfig.data.options[this.options]("",t=>{this.optionsList=t})},developHandle(){this.cFormItemStore.commit("warnState",!1),this.disabled||(this.searchFocus(),this.$refs.value.scrollLeft=9999,window.addEventListener("click",this.foldHandle,!0),this._events.customEvent?this.$emit("customEvent",this.currentData,t=>{this.multiple?this.setValueData(t):this.setValueData(Array.isArray(t)?[t[0]]:[t]),this.changeHandle()}):this.listPosition?this.foldHandle():(this.listPosition=!0,this.$nextTick(this.updatePosition),Pn(this.$el,t=>{t.addEventListener("scroll",this.updatePosition)}),this.asyncState&&this.searchConfig.empty&&this.asyncSearchHandle()))},foldHandle(t){t&&this.active||(this.searchFocus(!1),this.searchValue=this.searchConfig&&!this.multiple?this.valueName:"",this.$refs.value.scrollLeft=0,window.removeEventListener("click",this.foldHandle,!0),t&&this._events.customEvent||(this.listPosition=!1,Pn(this.$el,t=>{t.removeEventListener("scroll",this.updatePosition)}),this.asyncState&&(this.optionsList=[])))},searchFocus(t=!0){this.searchValue="",this.$nextTick(()=>{this.$refs.input&&this.$refs.input[t?"focus":"blur"]()})},asyncSearchHandle(){this.asyncState&&(this.searchConfig.empty||this.searchValue.trim()?this.searchConfig.options?this.$compsConfig.data.options[this.searchConfig.options](this.searchValue.trim(),t=>{this.optionsList=t||[],this.listPosition&&this.$nextTick(this.updatePosition)}):this.$emit("search",this.searchValue.trim(),t=>{this.optionsList=JSON.parse(JSON.stringify(t))||[],this.listPosition&&this.$nextTick(this.updatePosition)}):this.optionsList=[])},asyncSearchDebounceHandle:Vf((function(){this.asyncSearchHandle()}),300),deleteValue(t){this.currentValue.splice(this.currentValue.findIndex(e=>e==t.value),1),this.changeHandle(),this.searchFocus()},clearHandle(){this.set("object"==typeof this.currentValue?[]:""),this.changeHandle(),this.listPosition&&this.searchFocus()},changeHandle(){this.$nextTick(()=>{this.$emit("change",this.getData()),this.cFormStore.commit("editState",!0)})},addHandle(t,e){t&&this.searchConfig.addEvents.includes(e)&&this.$emit("add",t,t=>{t&&(this.optionsList.push(t),this.$refs.options.clickHandle(t,!0))})},updatePosition(){let t=this.$el.getBoundingClientRect(),e=this.$refs.list.offsetHeight<this.listHeight?this.$refs.list.offsetHeight:this.listHeight,n=window.innerHeight-t.bottom<e;this.listPosition={left:t.left+"px",top:window.scrollY+(n?t.top-e+1:t.top+t.height-1)+"px",width:(this.listWidth||t.width)+"px","max-height":this.parsePixel(this.listHeight,!0)}}}},xi=wi,ki=(n("cb82"),d(xi,vi,bi,!1,null,"1def3566",null)),Si=ki.exports,Di=function(){var t=this,e=t._self._c;return e("div",{staticClass:"c-region",attrs:{warn:!!t.provinceName&&t.warnState}},[e("div",{staticClass:"flex"},[t.level>=1?e("c-select",{ref:"province",staticClass:"flex-grow",attrs:{options:t.provinceOptions,placeholder:"_t.region.province",search:"",disabled:t.disabled},on:{change:function(e){return t.changeHandle(e,"province")}},model:{value:t.valueData.province,callback:function(e){t.$set(t.valueData,"province",e)},expression:"valueData.province"}}):t._e(),t.level>=2?e("c-select",{ref:"city",staticClass:"flex-grow",attrs:{options:t.cityOptions,placeholder:"_t.region.city",search:"",disabled:t.disabled},on:{change:function(e){return t.changeHandle(e,"city")}},model:{value:t.valueData.city,callback:function(e){t.$set(t.valueData,"city",e)},expression:"valueData.city"}}):t._e(),t.level>=3?e("c-select",{ref:"county",staticClass:"flex-grow",attrs:{options:t.countyOptions,placeholder:"_t.region.county",search:"",disabled:t.disabled},on:{change:function(e){return t.changeHandle(e,"county")}},model:{value:t.valueData.county,callback:function(e){t.$set(t.valueData,"county",e)},expression:"valueData.county"}}):t._e()],1),4==t.level?e("c-input",{attrs:{placeholder:"_t.region.address",disabled:t.disabled},on:{change:function(e){return t.changeHandle(e,"address")}},model:{value:t.valueData.address,callback:function(e){t.$set(t.valueData,"address",e)},expression:"valueData.address"}}):t._e()],1)},Ci=[],Ei={name:"cRegion",props:{value:{type:Object,default:()=>({})},provinceName:String,cityName:String,countyName:String,addressName:String,level:{type:[Number,String],default:3},disabled:Boolean,immediate:{type:Boolean,default:!0}},data(){return{...Rn(this,"cFormItemStore"),valueData:{province:"",city:"",county:"",address:""},provinceOptions:[],cityOptions:[],countyOptions:[]}},computed:{...zn("cFormItemStore",["warnState"])},watch:{value(t){this.set(t)}},async mounted(){this.immediate&&await this.updateOptions("province"),this.set(this.value)},methods:{async set(t={}){this.valueData.province=t.province,await this.updateOptions("city",t.province,t.city),await this.updateOptions("county",t.city,t.county),this.valueData.address=t.address||""},get(){return this.valueData},getData(){return{province:this.$refs.province.getData(),city:this.$refs.city&&this.$refs.city.getData(),county:this.$refs.county&&this.$refs.county.getData(),address:this.valueData.address}},async resetOptions(t){this.cityOptions=[],this.countyOptions=[],await this.updateOptions("province",t),this.set(this.valueData)},updateOptions(t,e,n){return new Promise(async i=>{("province"==t||"city"==t&&this.level>1||"county"==t&&this.level>2)&&(this[t+"Options"]=[],(e||"province"==t)&&(this[t+"Options"]=await new Promise(n=>{let i;i="province"!=t?this[("county"==t?"city":"province")+"Options"].find(t=>t.value==e)||{value:e}:e,this.$compsConfig.data.region(t,i,n)})),"province"!=t&&(this.valueData[t]=n),(1==this.level||2==this.level&&"city"==t||3==this.level&&"county"==t)&&this.$emit("input",this.get())),i()})},changeHandle(t,e){"province"==e?(this.updateOptions("city",t.value),this.updateOptions("county")):"city"==e?this.updateOptions("county",t.value):this.$emit("input",this.get()),this.$emit("change",this.get())}}},Ai=Ei,Ti=(n("8def"),d(Ai,Di,Ci,!1,null,"586236aa",null)),Bi=Ti.exports,Fi=function(){var t=this,e=t._self._c;return e("div",{staticClass:"c-datetime",class:{"z-active":t.pickerPosition,"z-dis":t.disabled},attrs:{warn:!!(t.name||t.startName||t.endName)&&t.warnState},on:{click:function(e){return t.cFormItemStore.commit("warnState",!1)},mouseenter:function(e){t.active=!0},mouseleave:function(e){t.active=!1}}},[e("div",{staticClass:"c-datetime-main flex-center"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.inputStart,expression:"inputStart"}],ref:"start",staticClass:"flex-grow",attrs:{placeholder:t.$t(t.range?t.placeholder[0]:t.placeholder),disabled:t.disabled},domProps:{value:t.inputStart},on:{change:function(e){return t.inputHandle("start")},click:function(e){return t.developHandle("start")},blur:t.blurHandle,input:function(e){e.target.composing||(t.inputStart=e.target.value)}}}),t.range?e("span",{staticClass:"c-datetime-line"},[t._v("-")]):t._e(),t.range?e("input",{directives:[{name:"model",rawName:"v-model",value:t.inputEnd,expression:"inputEnd"}],ref:"end",staticClass:"flex-grow",attrs:{placeholder:t.$t(t.placeholder[1]),disabled:t.disabled},domProps:{value:t.inputEnd},on:{change:function(e){return t.inputHandle("end")},click:function(e){return t.developHandle("end")},blur:t.blurHandle,input:function(e){e.target.composing||(t.inputEnd=e.target.value)}}}):t._e(),t.clear&&(t.start||t.end)?e("a",{staticClass:"c-datetime-clear flex-center",on:{click:function(e){return e.stopPropagation(),t.clearHandle.apply(null,arguments)}}},[e("i",{staticClass:"c-icon-clear"})]):t._e(),t._m(0)]),e("div",{directives:[{name:"show",rawName:"v-show",value:t.pickerPosition,expression:"pickerPosition"}],ref:"pickerBox",staticClass:"c-datetime-selector",style:t.pickerPosition,on:{click:t=>t.stopPropagation(),mouseenter:function(e){t.active=!0},mouseleave:function(e){t.active=!1}}},[e("c-datetime-picker",{ref:"picker",attrs:{type:t.type,timeAccuracy:t.timeAccuracy,start:"end"==t.inputType?t.start:"",end:"start"==t.inputType?t.end:"","min-date":t.compMinDate,"max-date":t.compMaxDate,format:t.format},on:{input:t.setDate}})],1)])},$i=[function(){var t=this,e=t._self._c;return e("span",{staticClass:"c-datetime-icon flex-center"},[e("i",{staticClass:"c-icon-calendar"})])}],Li={name:"cDatetime",props:{value:[String,Array],name:String,startName:String,endName:String,type:{type:String,default:"datetime"},timeAccuracy:{type:String,default:"sec"},range:[Boolean,Object],disabled:Boolean,placeholder:{type:[String,Array],default(){return this.range?["_t.datetime.placeholderStart","_t.datetime.placeholderEnd"]:"_t.datetime.placeholder"}},defaultTime:{type:[String,Array],default(){return this.range?["00:00:00","23:59:59"]:"00:00:00"}},format:{type:String,default(){return{datetime:"yyyy-MM-dd hh:mm:ss",date:"yyyy-MM-dd",time:"hh:mm:ss"}[this.type]}},clear:{type:Boolean,default:!0},minDate:{type:String},maxDate:{type:String}},data(){return{...Rn(this,"cFormStore"),...Rn(this,"cFormItemStore"),start:"",end:"",inputType:"",inputStart:"",inputEnd:"",pickerPosition:!1,active:!1}},computed:{...zn("cFormItemStore",["warnState"]),valueData(){return this.range?[this.start,this.end]:this.start},rangeOpt(){return!!this.range&&Object.assign({limit:!1},"object"==typeof this.range?this.range:{})},compMinDate(){if(this.rangeOpt&&this.rangeOpt.limit&&"start"==this.inputType&&this.end){let t=new Date(this.end);return t=new Date(t.setDate(t.getDate()-parseInt(this.rangeOpt.limit)+1)).format("yyyy-MM-dd 00:00:00"),!this.minDate||t>this.minDate?t:this.minDate}return this.minDate},compMaxDate(){if(this.rangeOpt&&this.rangeOpt.limit&&"end"==this.inputType&&this.start){let t=new Date(this.start);return t=new Date(t.setDate(t.getDate()+parseInt(this.rangeOpt.limit)-1)).format("yyyy-MM-dd 23:59:59"),!this.maxDate||t<this.maxDate?t:this.maxDate}return this.maxDate}},watch:{value(t){this.set(t)},valueData(){this.$emit("input",this.get())},inputType(t,e){t?(this.blurHandle(),this.updatePosition()):this.$refs[e].blur()}},mounted(){this.set(this.value),document.body.appendChild(this.$refs.pickerBox)},beforeDestroy(){document.body.removeChild(this.$refs.pickerBox)},methods:{set(t=""){this.range?(this.inputStart=this.start=t&&t[0]||"",this.inputEnd=this.end=t&&t[1]||"",(this.start||this.end)&&this.cFormItemStore.commit("warnState",!1)):(this.inputStart=this.start=t,this.start&&this.cFormItemStore.commit("warnState",!1))},get(){return this.valueData},changeHandle(){this.$emit("change",this.get()),this.cFormStore.commit("editState",!0)},developHandle(t){this.disabled||(this.inputType=t,this.listPosition=!0,this.$nextTick(this.updatePosition),window.addEventListener("click",this.foldHandle,!0),Pn(this.$el,t=>{t.addEventListener("scroll",this.updatePosition)}),this.$refs.picker.set(this[this.inputType]||(new Date).format("yyyy-MM-dd "+(this.range?this.defaultTime["end"==t?1:0]:this.defaultTime))))},foldHandle(t){t&&this.active||(this.inputType="",this.pickerPosition=!1,window.removeEventListener("click",this.foldHandle,!0),Pn(this.$el,t=>{t.removeEventListener("scroll",this.updatePosition)}))},updatePosition(){let t=this.$el.getBoundingClientRect(),e=this.range?this.$refs.end.getBoundingClientRect():null,n=this.$refs.pickerBox.getBoundingClientRect(),i="end"==this.inputType?e.left-8:t.left,r=window.innerWidth-i-20,o=window.innerHeight-t.bottom<n.height;this.pickerPosition={left:(r<n.width?i+r-n.width:i)+"px",top:window.scrollY+(o?t.top-n.height+1:t.top+t.height-1)+"px"}},blurHandle(){this.inputType&&this.$refs[this.inputType].focus()},inputHandle(t){let e="end"==t?"inputEnd":"inputStart",n=this.$refs.picker.parseDate(this[e])||[],i=new Date(`${n[0]}-${n[1]}-${n[2]} ${n[3]}:${n[4]}:${n[5]}`);this[e]="Invalid Date"==i?this[t]:this[t]=new Date(`${n[0]}-${n[1]}-${n[2]} ${n[3]}:${n[4]}:${n[5]}`).format(this.format)},clearHandle(){this.set(""),this.changeHandle()},setDate(t){"start"==this.inputType?(this.start=t,this.inputStart=t,this.range&&!this.end?this.developHandle("end"):(this.inputType="",this.foldHandle())):(this.end=t,this.inputEnd=t,this.start?(this.inputType="",this.foldHandle()):this.developHandle("start")),this.changeHandle()}}},Mi=Li,Ii=(n("0a1d"),d(Mi,Fi,$i,!1,null,"2e4157e4",null)),Pi=Ii.exports,Ni=function(){var t=this,e=t._self._c;return e("div",{staticClass:"c-color",class:{"z-active":t.pickerPosition,"z-dis":t.disabled},attrs:{warn:!!t.name&&t.warnState},on:{click:function(e){return t.cFormItemStore.commit("warnState",!1)},mouseenter:function(e){t.active=!0},mouseleave:function(e){t.active=!1}}},[e("div",{staticClass:"c-color-main flex-center",on:{click:t.developHandle}},[e("div",{staticClass:"c-color-preview",style:{background:t.valueData}}),e("input",{directives:[{name:"model",rawName:"v-model",value:t.valueData,expression:"valueData"}],staticClass:"flex-grow",attrs:{disabled:t.disabled},domProps:{value:t.valueData},on:{blur:function(e){return t.set(t.valueData)},input:function(e){e.target.composing||(t.valueData=e.target.value)}}}),t.clear&&t.valueData?e("a",{staticClass:"c-color-clear flex-center",on:{click:function(e){return e.stopPropagation(),t.clearHandle.apply(null,arguments)}}},[e("i",{staticClass:"c-icon-clear"})]):t._e()]),e("div",{directives:[{name:"show",rawName:"v-show",value:t.pickerPosition,expression:"pickerPosition"}],ref:"pickerBox",staticClass:"c-color-selector",style:t.pickerPosition,on:{click:t=>t.stopPropagation(),mouseenter:function(e){t.active=!0},mouseleave:function(e){t.active=!1}}},[e("c-color-picker",{ref:"picker",on:{input:t.pickerHandle}})],1)])},Hi=[],Oi={name:"cColor",props:{value:String,name:String,disabled:Boolean,clear:{type:Boolean,default:!0}},data(){return{...Rn(this,"cFormStore"),...Rn(this,"cFormItemStore"),valueData:this.value,pickerPosition:!1,active:!1}},computed:{...zn("cFormItemStore",["warnState"])},watch:{value(t){this.set(t)}},mounted(){this.set(this.value),document.body.appendChild(this.$refs.pickerBox)},beforeDestroy(){document.body.removeChild(this.$refs.pickerBox)},methods:{set(t){t?(this.$refs.picker.set(t),this.cFormItemStore.commit("warnState",!1)):this.valueData=""},get(){return this.valueData},changeHandle(){this.$emit("change",this.get()),this.cFormStore.commit("editState",!0)},clearHandle(){this.set("")},developHandle(t){this.disabled||(this.listPosition=!0,this.$nextTick(this.updatePosition),window.addEventListener("click",this.foldHandle,!0),Pn(this.$el,t=>{t.addEventListener("scroll",this.updatePosition)}))},foldHandle(t){t&&this.active||(this.pickerPosition=!1,window.removeEventListener("click",this.foldHandle,!0),Pn(this.$el,t=>{t.removeEventListener("scroll",this.updatePosition)}))},updatePosition(){let t=this.$el.getBoundingClientRect(),e=this.$refs.pickerBox.getBoundingClientRect(),n=window.innerWidth-t.left-20,i=window.innerHeight-t.bottom<e.height;this.pickerPosition={left:(n<e.width?t.left+n-e.width:t.left)+"px",top:window.scrollY+(i?t.top-e.height+1:t.top+t.height-1)+"px"}},pickerHandle(t){this.valueData=t,this.$emit("input",this.get()),this.changeHandle()}}},Ri=Oi,zi=(n("c21e"),d(Ri,Ni,Hi,!1,null,"5470b092",null)),Ui=zi.exports,Ki=function(){var t=this,e=t._self._c;return e("div",{staticClass:"c-transfer flex-center-cross"},[e("dl",{staticClass:"flex-column flex-grow",style:{height:t.parsePixel(t.height,!0)},attrs:{warn:!!t.name&&t.warnState}},[e("dt",[t._v(t._s(t.compTitle[0]))]),t.searchConfig?e("dd",[e("div",{staticClass:"c-transfer-search flex-center"},[e("c-input",{staticClass:"flex-grow",attrs:{type:"text",placeholder:t.$t(t.searchConfig.placeholder)},on:{input:t.searchDebounceHandle},scopedSlots:t._u([{key:"appendIcon",fn:function(){return[e("i",{staticClass:"c-icon-search"})]},proxy:!0}],null,!1,2573559812),model:{value:t.keyword,callback:function(e){t.keyword=e},expression:"keyword"}})],1)]):t._e(),e("dd",{staticClass:"flex-grow"},[t._l(t.options,(function(n,i){return[e("div",{directives:[{name:"show",rawName:"v-show",value:t.async||!t.keyword||t.$t(n.name).toLocaleLowerCase().includes(t.keyword.toLocaleLowerCase()),expression:"async || !keyword || $t(item.name).toLocaleLowerCase().includes(keyword.toLocaleLowerCase())"}],key:i,staticClass:"c-transfer-option flex-center",attrs:{title:t.$t(n.name)},on:{click:function(e){return t.transferHandle(n)}}},[e("c-checkbox",{attrs:{value:!!t.currentOptions.find(t=>t.value==n.value),readonly:""}}),e("p",{staticClass:"flex-grow ellipsis"},[t._v(t._s(t.$t(n.name)))])],1)]}))],2)]),e("dl",{staticClass:"flex-column flex-grow",style:{height:t.parsePixel(t.height,!0)},attrs:{warn:!!t.name&&t.warnState}},[e("dt",[t._v(t._s(t.compTitle[1]))]),e("dd",{staticClass:"flex-grow"},[e("c-drag-sort",{attrs:{disabled:!t.sort},on:{sort:t.sortHandle},scopedSlots:t._u([{key:"default",fn:function({item:n,id:i}){return[e("c-drag-item",{key:i,staticClass:"c-transfer-option flex-center",attrs:{title:t.$t(n.name)}},[e("c-drag-handle",[e("i",{staticClass:"c-transfer-option-drag c-icon-sort-drag"})]),e("p",{staticClass:"flex-grow ellipsis"},[t._v(t._s(t.$t(n.name)))]),e("a",{staticClass:"c-transfer-option-delete",on:{click:function(e){return t.transferHandle(n)}}},[e("i",{staticClass:"c-icon-cross"})])],1)]}}]),model:{value:t.currentOptions,callback:function(e){t.currentOptions=e},expression:"currentOptions"}})],1)])])},Wi=[],ji={name:"cTransfer",props:{async:Boolean,value:Array,valueData:Array,name:String,data:Array,title:{type:[String,Array],default:"_t.transfer.title"},search:[Boolean,Object],height:{type:[String,Number],default:300},sort:Boolean},data(){return{...Rn(this,"cFormStore"),...Rn(this,"cFormItemStore"),options:[],currentOptions:[],currentValue:[],keyword:""}},computed:{...zn("cFormItemStore",["warnState"]),searchConfig(){return!(!this.async&&!this.search)&&Object.assign({placeholder:"_t.transfer.searchPlaceholder",immediate:!0},"object"==typeof this.search?this.search:{})},compTitle(){return"string"==typeof this.title?[this.$t("_t.transfer.titleLeft",{name:this.$t(this.title)}),this.$t("_t.transfer.titleRight",{name:this.$t(this.title)})]:[this.$t(this.title[0]),this.$t(this.title[1])]}},watch:{value(t){this.set(t)},currentValue(){this.async||this.updateCurrentOption(),this.$emit("input",this.get())},options(){this.async||this.updateCurrentOption()},valueData(t){this.async&&this.setValueData(t)},data(t,e){this.async||(this.updateOption(t),Array.isArray(t)&&e.length&&this.set(""))}},mounted(){this.async?(this.setValueData(this.valueData),this.searchConfig.immediate&&this.searchHandle()):(this.updateOption(this.data),this.set(this.value))},methods:{set(t){this.currentValue=t||[],this.currentValue.length&&this.cFormItemStore.commit("warnState",!1)},get(){return this.currentValue},getData(){return this.currentOptions},setValueData(t){t&&(this.currentOptions=t,this.set(t.map(t=>t.value)))},updateOption(t){this.options=JSON.parse(JSON.stringify(t))},updateCurrentOption(){this.currentOptions=this.currentValue.map(t=>this.options.find(e=>e.value==t)).filter(t=>t)},transferHandle(t){this.cFormItemStore.commit("warnState",!1);let e=this.currentValue.findIndex(e=>e==t.value);-1==e?this.currentValue.push(t.value):this.currentValue.splice(e,1),this.async&&(-1==e?this.currentOptions.push(t):this.currentOptions.splice(e,1)),this.$emit("change",this.getData()),this.cFormStore.commit("editState",!0)},sortHandle(t,e,n,i){this.async||i(),this.currentValue.splice(n,0,this.currentValue.splice(e,1)[0])},searchHandle(){this.async&&this.$emit("search",this.keyword.trim(),this.updateOption)},searchDebounceHandle:Vf((function(){this.searchHandle()}),300)}},Vi=ji,qi=(n("7185"),d(Vi,Ki,Wi,!1,null,"1ca8c1c7",null)),Yi=qi.exports,Xi=function(){var t=this,e=t._self._c;return e("div",{staticClass:"c-switch",class:t.state?"z-open":"",style:{width:t.compWidth+"px",background:t.stateColor[t.state?0:1]},on:{click:t.switchHandle}},[e("div",{staticClass:"text flex-center",style:t.textStyle},[t._v(t._s(t.$t(t.stateText[t.state?0:1])))]),e("div",{staticClass:"handle",style:{left:t.handleSeat,width:t.handleSize+"px",height:t.handleSize+"px"}})])},Gi=[],Zi={name:"cSwitch",props:{value:[Boolean,Number,String],stateValue:{type:Array,default(){return[!0,!1]}},stateText:{type:Array,default(){return["_t.switch.open","_t.switch.close"]}},stateColor:{type:Array,default(){return["#00B578","#eee"]}},name:String},data(){return{...Rn(this,"cFormStore"),handleSize:22,valueData:this.value||this.stateValue[1]}},computed:{state(){return!this.stateValue.indexOf(this.valueData)},compWidth(){let t=Math.max(this.$t(this.stateText[0]).length,this.$t(this.stateText[1]).length);return 3+this.handleSize+4+t*("zh"==this.$i18n.locale?1:.5)*13+10},handleSeat(){return this.state?this.compWidth-this.handleSize-3+"px":"3px"},textStyle(){return this.state?{left:0}:{right:0}}},watch:{value(t){this.set(t)},valueData(){this.$emit("input",this.get())}},methods:{set(t=this.stateValue[1]){this.valueData=t},get(){return this.valueData},switchHandle(){this._events.beforeChange?this.$emit("beforeChange",this.state,()=>{this.switch()}):this.switch()},switch(t=this.state){this.valueData=this.stateValue[t?1:0],this.$emit("change",this.get()),this.cFormStore.commit("editState",!0)}}},Qi=Zi,Ji=(n("f67f"),d(Qi,Xi,Gi,!1,null,"13c36189",null)),tr=Ji.exports,er=function(){var t=this,e=t._self._c;return e("div",{staticClass:"c-upload",class:{"flex-start-end":t.media},attrs:{media:t.media}},[t.media?e("c-drag-sort",{staticClass:"c-upload-media flex-wrap",attrs:{disabled:!t.multiple||!t.sort},scopedSlots:t._u([{key:"default",fn:function({item:n,id:i,index:r}){return[e("c-drag-item",{key:i,staticClass:"c-upload-media-item flex-center"},[e("c-file",{attrs:{src:n,media:""}}),e("a",{staticClass:"flex-center",on:{click:function(e){return e.stopPropagation(),t.removeHandle(r)}}},[e("i",{staticClass:"c-icon-cross"})])],1)]}},{key:"append",fn:function(){return[t.upperLimit||t.parseValueData.length&&t.button?t._e():e("div",{staticClass:"c-upload-media-item c-upload-media-upload flex-center",on:{click:t.uploadHandle}},[e("i",{class:t.mediaIcon})])]},proxy:!0}],null,!1,3604882091),model:{value:t.parseValueData,callback:function(e){t.parseValueData=e},expression:"parseValueData"}}):t._e(),e("div",{staticClass:"c-upload-handle",class:{"flex-column":t.media,"flex-center-cross":!t.media}},[t.button?e("c-button",{style:{"align-self":t.media?"flex-start":""},attrs:{size:"upload","prepend-icon":t.icon,hollow:"",warn:!!t.name&&t.warnState},on:{click:t.uploadHandle}},[t._v(t._s(t.$t(t.button)))]):t._e(),t.type||t.tip||t.$slots.tip?e("div",{staticClass:"c-upload-tip"},[t._t("tip",null,{type:t.fileTypeTip}),t.$scopedSlots.tip?t._e():e("div",{class:{"flex-center":!t.media}},[t.tip?e("p",[t._v(t._s(t.tip))]):t._e(),t.fileTypeTip?e("p",[t._v(t._s(t.tip&&!t.media?",":"")+t._s(t.fileTypeTip))]):t._e()])],2):t._e()],1),t.media?t._e():e("ul",{directives:[{name:"show",rawName:"v-show",value:t.parseValueData.length,expression:"parseValueData.length"}],staticClass:"c-upload-list"},t._l(t.parseValueData,(function(n,i){return e("li",{key:i,staticClass:"flex-center-cross"},[e("c-file",{staticClass:"ellipsis",attrs:{src:n}}),e("a",{on:{click:function(e){return t.removeHandle(i)}}},[t._v(t._s(t.$t("_t.upload.delete")))])],1)})),0)],1)},nr=[],ir={name:"cUploadFile",props:{value:{type:[String,Array],default:""},name:String,type:String,size:[String,Number],media:Boolean,sort:{type:Boolean,default:!0},icon:{type:String,default:"c-icon-upload"},mediaIcon:{type:String,default:"c-icon-media"},button:{type:[String,Boolean],default:"_t.upload.button"},tip:String,multiple:{type:[Boolean,Number,String],default:!1}},data(){return{...Rn(this,"cFormStore"),...Rn(this,"cFormItemStore"),valueData:this.multiple?[]:""}},computed:{...zn("cFormItemStore",["warnState"]),parseValueData:{get(){return this.valueData?"object"==typeof this.valueData?this.valueData:this.valueData.toString().split(","):[]},set(t){this.multiple&&(this.valueData=t.join(",").split(","))}},fileTypeTip(){if(this.type){let t=[];return this.type.split(",").forEach(e=>{t=t.concat({image:[this.$t("_t.upload.type.image")],video:["mp4"],word:["doc(x)"],excel:["xls(x)"],zip:[this.$t("_t.upload.type.zip")]}[e]||[e])}),this.$t("_t.upload.tip",{type:t.join(",")})}return""},upperLimit(){return this.multiple?"boolean"!=typeof this.multiple&&this.parseValueData.length>=parseInt(this.multiple):this.parseValueData.length>0}},watch:{value(t){this.set(t)},valueData(){this.$emit("input",this.get())}},mounted(){this.set(this.value)},methods:{set(t){t||(t=this.multiple?[]:""),this.multiple&&"string"==typeof t&&(t=t.split(",")),this.valueData=t,Array.isArray(this.valueData)?this.valueData.length&&this.cFormItemStore.commit("warnState",!1):this.valueData&&this.cFormItemStore.commit("warnState",!1)},get(){return this.valueData},removeHandle(t){let e=this.parseValueData.join(",").split(",");e.splice(t,1),this.set(this.multiple?e:e.join(",")),this.changeHandle()},uploadHandle(){this.cFormItemStore.commit("warnState",!1),this.upperLimit&&this.multiple?this.$message({message:this.$t("_t.upload.message.limit",{limit:this.multiple})}):this._events.click?this.$emit("click",{type:this.type,size:this.size,count:this.multiple?"boolean"!=typeof this.multiple?parseInt(this.multiple)-this.parseValueData.length:"":1,success:t=>{this.multiple?this.set(this.parseValueData.concat(Array.from(t,t=>t.path))):this.set(t[0].path),this.changeHandle()}}):this.$upload({type:this.type,size:this.size,multiple:this.multiple,loading:!0,success:t=>{this.multiple?this.set(this.parseValueData.concat(Array.from(t,t=>t.path))):(Array.isArray(t)&&(t=t[0]),this.set(t.path)),this.changeHandle()}})},changeHandle(){this.$emit("change",this.get()),this.cFormStore.commit("editState",!0)}}},rr=ir,or=(n("fb1c"),d(rr,er,nr,!1,null,"66fcf5e0",null)),ar=or.exports,sr=function(){var t=this,e=t._self._c;return t.media?e("div",{staticClass:"c-file-media flex-center",attrs:{title:`${t.info.name}${t.info.suffix?".":""}${t.info.suffix}`},on:{click:t.previewHandle}},["video"==t.info.media?e("video",{attrs:{src:t.src}}):"image"==t.info.media?e("img",{attrs:{src:t.src}}):e("i",{staticClass:"c-file-icon c-icon-file",class:"c-icon-file-"+t.info.suffix})]):e("div",{staticClass:"c-file flex-center-cross",on:{click:t.download}},[e("i",{staticClass:"c-file-icon c-icon-fw c-icon-file",class:"c-icon-file-"+t.info.suffix}),e("a",{staticClass:"ellipsis"},[t._v(t._s(t.info.name)+t._s(t.info.suffix?".":"")+t._s(t.info.suffix))])])},lr=[],cr={name:"cFile",props:{src:String,media:Boolean,preview:{type:Boolean,default:!0}},computed:{info(){return this.parseFile(this.src)}},methods:{download(){window.open(this.src)},previewHandle(){this.preview&&(this.info.media?this.$preview({src:this.src}):this.download())}}},ur=cr,dr=(n("ad6e"),d(ur,sr,lr,!1,null,"b510596e",null)),hr=dr.exports,pr=function(){var t=this,e=t._self._c;return e("div",{staticClass:"c-editor"},[e("div",{ref:"div",attrs:{id:t.id}})])},fr=[],mr=(n("79d9"),n("5a08"),{name:"cEditor",props:{value:String,name:String,height:{type:[String,Number],default:300},autoHeight:Boolean},data(){return{id:"KindEditor"+this._uid}},watch:{value(t){this.editor.html(t)}},mounted(){setTimeout(()=>{this.editor||this.create(),this.set(this.value)})},activated(){this.destroy(),this.create()},beforeDestroy(){this.destroy()},methods:{set(t=""){this.editor.html(t)},get(){return this.editor.html()},create(){this.editor=KindEditor.create("#"+this.id,{width:"100%",height:this.height,resizeType:1,autoHeightMode:!!this.autoHeight,afterBlur:()=>{this.$emit("input",this.get())}})},destroy(){this.editor&&this.editor.remove()}}}),gr=mr,vr=(n("6286"),d(gr,pr,fr,!1,null,"cbdbd666",null)),br=vr.exports,_r=function(){var t=this,e=t._self._c;return e("div",{directives:[{name:"show",rawName:"v-show",value:t.show,expression:"show"}]},[t.mask?e("div",t._g({staticClass:"c-popup-mask an an-fadein",class:{"an-fadeout":!t.active},style:{"z-index":t.zIndex}},t.maskEvent)):t._e(),e("div",{ref:"wrapper",staticClass:"c-dialog-wrapper",class:{"z-max":t.max},style:{...t.position,"z-index":t.zIndex,width:t.parsePixel(t.compWidth,!0)},attrs:{mode:t.mode}},[e("div",{staticClass:"c-dialog flex-column an",class:{"z-shadow":!t.mask,[t.animateClass]:t.active,"an-fadeout":!t.active},attrs:{mode:t.mode,confirm:t.confirm}},[!1!==t.options.title?e("div",{staticClass:"c-dialog-head flex-center-cross",attrs:{move:!!t.move},on:{mousedown:t.moveHandle}},[e("p",[t._v(t._s(t.$t(t.options.title)))]),t._t("head")],2):t._e(),e("div",{staticClass:"flex c-dialog-handle"},[t.compResizeButton?[t.compResizeButton.includes("min")?e("div",{staticClass:"c-dialog-handle-item flex-center",on:{click:t.minimize}},[e("i",{staticClass:"c-icon-dialog-min"})]):t._e(),t.compResizeButton.includes("max")?e("div",{staticClass:"c-dialog-handle-item flex-center",on:{click:function(e){t.max=!t.max}}},[e("i",{class:[t.max?"c-icon-dialog-normal":"c-icon-dialog-max"]})]):t._e()]:t._e(),t.closeButton?e("div",{staticClass:"c-dialog-handle-item close flex-center",on:{click:t.close}},[e("i",{staticClass:"c-icon-cross"})]):t._e()],2),e("div",{class:{"flex-grow":"slide"==t.mode||t.max,"flex-column":t.enableFlex},style:{height:t.compHeight,overflow:"auto"==t.compHeight?"":"auto"}},[t._t("default")],2),t.options.button?e("div",{staticClass:"c-dialog-button flex-center-cross flex-end-center"},[t.$slots.button?t._t("button"):[e("c-button",{attrs:{size:"dialog",color:"main"},on:{click:function(e){return t.buttonHandle("resolve")}}},[t._v(t._s(t.$t(t.options.buttonName)))]),t.options.cancelButton?e("c-button",{attrs:{size:"dialog"},on:{click:function(e){return t.buttonHandle("cancel")}}},[t._v(t._s(t.$t(t.options.cancelButtonName)))]):t._e()]],2):t._e()])])])},yr=[],wr={name:"cDialog",props:{mode:{type:String,default:"popup"},confirm:Boolean,title:{type:[String,Boolean],default:""},width:[Number,String],height:{type:[Number,String],default:"auto"},resizeButton:[Boolean,Array],closeButton:{type:Boolean,default:!0},move:{type:Boolean,default:!0},moveLimit:{type:Boolean,default:!0},button:{type:Boolean,default:!0},buttonName:{type:String,default:"_t.popup.button"},cancelButton:{type:Boolean,default:!0},cancelButtonName:{type:String,default:"_t.popup.cancelButton"},enableFlex:Boolean,maskClose:{type:Boolean,default(){return this.$compsConfig.config.dialog.maskClose}},mask:{type:Boolean,default:!0}},data(){return{zIndex:1001,animate:!1,show:!1,active:!1,position:{},actualWidth:0,actualHeight:0,openOptions:{},max:!1,min:!1,maskEvent:{[this.$compsConfig.config.dialog.maskCloseEvent]:()=>{this.maskClose&&this.closeButton&&this.close()}}}},computed:{compWidth(){return this.show,this.max?"100%":this.actualWidth||this.parsePixel(this.width+"+0")||{popup:750,slide:600}[this.mode]},compHeight(){return this.show,"slide"==this.mode?"100%":this.parsePixel(this.actualHeight||this.height+"+0",!0)},propsOptions(){return{title:this.title,button:this.button,buttonName:this.buttonName,cancelButton:this.cancelButton,cancelButtonName:this.cancelButtonName}},options(){return Object.assign({},this.propsOptions,this.openOptions)},animateClass(){return this.animate?{popup:"an-popup",slide:"an-slidein"}[this.mode]:""},compResizeButton(){return Array.isArray(this.resizeButton)?this.resizeButton:!!this.resizeButton&&["min","max"]}},watch:{max(t){t?(this._lastPosition=this.position,this.position={left:0,top:0,right:0,bottom:0}):this.position=this._lastPosition}},mounted(){(function t(e){e&&("cDialog"==e.$options.name?this.zIndex=e.zIndex+1:t.call(this,e.$parent))}).call(this,this.$parent)},activated(){this._min&&this._min.show()},deactivated(){this._min&&this._min.hide()},beforeDestroy(){this._min&&this._min.remove()},methods:{updatePosition(t){this.show&&this.$nextTick(()=>{let e=this.$refs.wrapper.getBoundingClientRect();if(e.width>document.body.clientWidth-80?e.width=this.actualWidth=document.body.clientWidth-80:this.actualWidth=0,"popup"==this.mode){let t=(!1!==this.options.title?61:0)+(this.options.button?61:0);e.height>window.innerHeight-80?(this.actualHeight=window.innerHeight-80-t,e.height=this.actualHeight+t):this.actualHeight=0}"slide"==this.mode?this.position={right:0,top:0}:this.position=t?{left:parseInt(t.left)+"px",top:parseInt(t.top)+"px"}:{left:(document.body.clientWidth-e.width)/2+"px",top:(window.innerHeight-e.height)/2+"px"}})},open(t={}){if(!this._min)return t.zIndex&&(this.zIndex=t.zIndex),this.openOptions=t,this.openHandle(),this.updatePosition(t.position),new Promise(t=>{this._resolve=t});this.openHandle()},minimize(){this.active&&(this._min=this.$minDialog(this,{title:this.options.title||"",closeButton:this.closeButton,back:this.openHandle}),this.outHandle())},close(){let t=!1;(function(t,e){this.$emit("close",t,e),this.openOptions.close&&this.openOptions.close(t,e)}).call(this,()=>{t=!0},this.closeHandle),setTimeout(()=>{!t&&this.closeHandle()})},openHandle(){this._min&&this._min.remove(),delete this._min,this.animate=!0,this.active=!0,this.show=!0,setTimeout(()=>{this.animate=!1},450)},closeHandle(){this._min&&this._min.remove(),delete this._min,this.outHandle(),setTimeout(()=>{this.actualWidth=this.actualHeight=0,this.max=this.min=!1},250)},outHandle(){this.active=!1,setTimeout(()=>{this.show=!1},250)},buttonHandle(t){let e=!1;(function(e,n){this.$emit(t,e,n),this._resolve({type:t,stop:e,next:n}),this.openOptions[t]&&this.openOptions[t](e,n)}).call(this,()=>{e=!0},this.closeHandle),setTimeout(()=>{!e&&this.closeHandle()})},moveHandle(t){if(this.max)return;this.moveEnd();let e="slide"==this.mode,n=this.$refs.wrapper.getBoundingClientRect(),i={x:e?document.body.clientWidth-n.right:n.left,y:n.top},r={x:t.clientX,y:t.clientY};this._mousemoveEvent=t=>{let o={x:t.clientX<0?0:t.clientX>document.body.clientWidth?document.body.clientWidth:t.clientX,y:t.clientY<0?0:t.clientY>window.innerHeight?window.innerHeight:t.clientY},a={x:i.x+(o.x-r.x)*(e?-1:1),y:i.y+o.y-r.y};if(this.moveLimit){let t={x:document.body.clientWidth-n.width,y:window.innerHeight-n.height};a.x=a.x<0?0:a.x>t.x?t.x:a.x,a.y=a.y<0?0:a.y>t.y?t.y:a.y}this.position={[e?"right":"left"]:a.x+"px",top:e?0:a.y+"px"}},document.addEventListener("mousemove",this._mousemoveEvent),document.addEventListener("mouseup",this.moveEnd)},moveEnd(){document.removeEventListener("mousemove",this._mousemoveEvent),document.removeEventListener("mouseup",this.moveEnd)}}},xr=wr,kr=(n("1ba6"),d(xr,_r,yr,!1,null,"b6c0bb64",null)),Sr=kr.exports,Dr=function(){var t=this,e=t._self._c;return e("dl",{directives:[{name:"show",rawName:"v-show",value:t.active,expression:"active"}],staticClass:"c-window",style:t.compStyle},[e("dt",{staticClass:"flex-between-center"},[e("p",[t._v(t._s(t.$t(t.title)))]),e("a",{on:{click:t.hideHandle}},[e("i",{staticClass:"c-icon-cross"})])]),e("dd",{ref:"content",style:{height:t.parsePixel(this.height,!0)}},[t._t("default")],2),t.$scopedSlots.button?e("dd",{staticClass:"flex-between-center"},[e("div",[t._t("beforeButton")],2),e("div",{staticClass:"c-window-button flex"},[t._t("button")],2)]):t._e()])},Cr=[],Er={name:"cWindow",props:{title:String,width:{type:[Number,String],default:400},height:{type:[Number,String],default:"auto"},position:{type:String,default:"bottom"},align:{type:String,default:"start"}},data(){return{active:!1,positionStyle:{}}},computed:{compStyle(){return Object.assign({width:this.parsePixel(this.width,!0)},this.positionStyle)}},deactivated(){this.hide()},methods:{show(t,e=this.position,n=this.align){if(this.active=!0,this.$nextTick(()=>{this.$refs.content.scrollTop=0}),t){t=t.$options?t.$el:t;let i=["left","right"].includes(e);this._updatePosition=()=>{let r=t.getBoundingClientRect(),o=r.top+({top:-this.$el.offsetHeight,bottom:r.height}[e]||0)+(i&&"start"!=n?r.height-this.$el.offsetHeight:0);this.positionStyle={left:r.left+({left:-this.$el.offsetWidth,right:r.width}[e]||0)+(["top","bottom"].includes(e)&&"start"!=n?r.width-this.$el.offsetWidth:0)+"px",top:Math.max(Math.min(o,window.innerHeight-this.$el.offsetHeight),0)+"px"}},this._removeEvent=()=>{Pn(t,t=>{t.removeEventListener("scroll",this._updatePosition)})},Pn(t,t=>{t.addEventListener("scroll",this._updatePosition)}),this.$nextTick(this._updatePosition)}else this.positionStyle={position:"static"}},hide(){this._removeEvent&&this._removeEvent(),this.active=!1},hideHandle(){this.hide(),this.$emit("close")}}},Ar=Er,Tr=(n("6cf1"),d(Ar,Dr,Cr,!1,null,"3d87fc16",null)),Br=Tr.exports,Fr=function(){var t=this,e=t._self._c;return e("div",{staticClass:"c-table flex-column flex-grow-auto",style:{height:t.compHeight,"user-select":t.widthResizePosition?"none":"auto"},attrs:{border:t.border}},[e("div",{staticClass:"c-table-main flex-column flex-grow-auto",attrs:{"fixed-width":t.fixedWidth,"left-shadow":t.leftShadow,"right-shadow":t.rightShadow}},[e("c-tbody",{ref:"tbody",attrs:{"auto-height":"auto"==t.height},scopedSlots:t._u([{key:"head",fn:function(){return[e("c-thead")]},proxy:!0},t.$scopedSlots.empty?{key:"empty",fn:function(){return[t._t("empty")]},proxy:!0}:null,t.$scopedSlots.custom?{key:"custom",fn:function({data:e,index:n}){return[t._t("custom",null,{data:e,index:n})]}}:null,t.summedRow?{key:"summed",fn:function(){return[e("c-summed")]},proxy:!0}:null],null,!0)})],1),!t.data&&t.pageBar?e("div",{staticClass:"c-table-foot"},[e("c-pagination",{staticClass:"c-table-page",attrs:{value:t.pageIndex,total:t.total,"page-size":t.pagingConfig.size,"page-size-select":t.pagingConfig.select},on:{handle:t.pageHandle}})],1):t._e(),t.widthResizePosition?e("div",{staticClass:"c-table-head-drag-line",style:{left:t.widthResizePosition+"px"}}):t._e(),e("div",{ref:"hidden",staticStyle:{display:"none"}},[t._t("default")],2)])},$r=[];function Lr(t,e){switch(e.type){case"selector":return e.multiple?[t("div",{class:"flex-center-cross"},[t("c-checkbox",{attrs:{value:this.allSelected},on:{change:t=>{this.store.selectHandle("all",t)}}})])]:"";default:return[t("div",{class:e.isParent||e.alignCenter?"flex-center":"flex-center-cross"},[e.required?[t("b",{class:"c-table-head-required"},["*"])]:[],e.$scopedSlots.head?[t("div",{class:"ellipsis"},[e.$scopedSlots.head()])]:[t("p",{class:e.ellipsis?"ellipsis":"",attrs:{title:this.$t(e.label)}},[this.$t(e.label)])],e.$scopedSlots.tip?[t("div",{class:"c-table-head-tip"},[e.$scopedSlots.tip()])]:[]])]}}var Mr={render(t){return t("div",{class:"c-table-head",style:`min-width: ${this.columnsWidth}px;`},[t("table",{style:this.fixedWidth},[t("colgroup",[this.columns.map(e=>t("col",{attrs:{width:`${e.resizeWidth}${e.widthResize?"%":"px"}`}}))]),t("thead",[this.header.map(e=>[t("tr",[e.map(e=>[t("th",{attrs:{rowspan:e.isParent?1:this.header.length-e.headLevel,colspan:e.colspan,parent:e.isParent,fixed:e.fixed,last:e._last},style:void 0!==e._position?`z-index: 10; position: sticky; ${e.fixed}: ${e._position}px`:""},[Lr.call(this,t,e),this.widthResize&&!e.isParent&&e.widthResize?[t("div",{class:"c-table-head-drag",attrs:{type:"right"==e.fixed?"left":"right"},on:{mousedown:t=>this.dragHandle(t,e,"right"==e.fixed?"left":"right")}})]:[]])])])])])])])},data(){return{store:this.$parent.store}},computed:{...zn(["header","columns","fixedWidth","columnsWidth","allSelected","widthResize"])},methods:{dragHandle(t,e,n){let i=t.target.getBoundingClientRect().left-this.store.table.$el.getBoundingClientRect().left,r=t.clientX,o=0,a="right"==n?1/0:e.resizeWidth-20,s="left"==n?-1/0:20-e.resizeWidth;this.store.commit("widthResizePosition",i);const l=qf(t=>{o=t.clientX-r,this.store.commit("widthResizePosition",i+o)},20,!1),c=()=>{o=(o>a?a:o<s?s:o)*("right"==n?1:-1),e.resizeWidth+=o,document.removeEventListener("mousemove",l),document.removeEventListener("mouseup",c),this.store.commit("widthResizePosition",null),this.store.table.$emit("widthResize",{type:e.type,name:e.name,width:e.resizeWidth})};document.addEventListener("mousemove",l),document.addEventListener("mouseup",c)}}},Ir=function(){var t=this,e=t._self._c;return e("div",{staticClass:"c-table-button flex-wrap"},[t._l(t.buttonList.list,(function(n,i){return[n.disabled&&n.disabled.tip?e("c-tooltip",{key:i,attrs:{tip:n.disabled.tip,position:"top",align:n.disabledConfig.tipAlign,width:n.disabledConfig.tipWidth}},[e("item-button",{attrs:{data:n},nativeOn:{click:function(e){return e.stopPropagation(),t.buttonHadnle(n)}}})],1):e("item-button",{key:i,attrs:{data:n},nativeOn:{click:function(e){return e.stopPropagation(),t.buttonHadnle(n)}}})]})),t.buttonList.more?e("div",{ref:"more",staticClass:"c-table-button-item ellipsis flex-center",on:{click:function(t){t.stopPropagation()},mouseenter:function(e){return t.moreHandle(!0)},mouseleave:function(e){return t.moreHandle(!1)}}},[t._v(" "+t._s(t.$t("_t.table.more"))),e("i",{staticClass:"c-table-button-tri c-icon-tri-down"})]):t._e(),t.buttonList.more?e("div",{directives:[{name:"show",rawName:"v-show",value:t.listPosition,expression:"listPosition"}],ref:"list",staticClass:"c-table-button-more",style:t.listPosition,on:{mouseenter:function(e){return t.moreHandle(!0)},mouseleave:function(e){return t.moreHandle(!1)}}},[e("ul",{attrs:{up:t.listPosition.up}},[t._l(t.buttonList.more,(function(n,i){return[n.disabled&&n.disabled.tip?e("c-tooltip",{key:i,staticStyle:{display:"block"},attrs:{tip:n.disabled.tip,position:"left",align:n.disabledConfig.tipAlign,width:n.disabledConfig.tipWidth}},[e("more-button",{attrs:{data:n},nativeOn:{click:function(e){return e.stopPropagation(),t.buttonHadnle(n)}}})],1):e("more-button",{key:i,attrs:{data:n},nativeOn:{click:function(e){return e.stopPropagation(),t.buttonHadnle(n)}}})]}))],2)]):t._e(),e("div",{ref:"hidden",staticStyle:{display:"none"}},[t._t("default")],2)],2)},Pr=[];const Nr={render(t){return t("div",{class:"c-table-button-item ellipsis flex-center",attrs:{title:this.$t(this.data.$slots.default[0].text),disabled:this.data.disabled,attr:this.data.attr}},[this.data.icon?[t("i",{class:"c-table-button-icon "+this.data.icon})]:[],t("span",[this.$t(this.data.$slots.default[0].text)])])},props:{data:Object}},Hr={render(t){return t("li",{class:"ellipsis flex-center-cross",attrs:{title:this.$t(this.data.$slots.default[0].text),disabled:this.data.disabled,attr:this.data.attr}},[this.data.icon?[t("i",{class:"c-table-button-icon "+this.data.icon})]:[],t("span",[this.$t(this.data.$slots.default[0].text)])])},props:{data:Object}};var Or={name:"cTableButtonGroup",components:{itemButton:Nr,moreButton:Hr},props:{limit:Number},data(){return{store:this.$parent.store,buttons:[],listPosition:!1}},computed:{buttonList(){var t=Array.from(this.buttons,t=>t),e="";return t.length>this.limit&&(e=t.splice(this.limit-1)),{list:t,more:e}}},watch:{buttonList(t){t.more&&this.$nextTick(()=>{this.$refs.list&&document.body.appendChild(this.$refs.list)})}},mounted(){this.update(),this.$refs.list&&document.body.appendChild(this.$refs.list)},beforeDestroy(){this.$refs.list&&document.body.removeChild(this.$refs.list)},methods:{update(){this.$nextTick(()=>{this.buttons=Array.from(this.$refs.hidden?this.$refs.hidden.children:[],t=>this.$children.find(e=>e.$el==t))})},buttonHadnle(t){t.disabled?t.$emit("disabledClick"):(console.log(t),this.moreHandle(!1),t.$emit("click"))},moreHandle(t){t?this._moreTimer?clearTimeout(this._moreTimer):(this.listPosition=!0,Pn(this.$refs.more,t=>{t.addEventListener("scroll",this.updatePosition)}),this.$nextTick(this.updatePosition)):this._moreTimer=setTimeout(()=>{delete this._moreTimer,Pn(this.$el,t=>{t.removeEventListener("scroll",this.updatePosition)}),this.listPosition=!1},20)},updatePosition(){let t=this.$refs.more.getBoundingClientRect(),e=this.$refs.list.offsetHeight,n=window.innerHeight-t.bottom<e;this.listPosition={up:n,right:document.body.offsetWidth-t.right+"px",top:(n?t.top-e:t.bottom)+"px"}}}},Rr=Or,zr=d(Rr,Ir,Pr,!1,null,null,null),Ur=zr.exports;
|
|
18
|
+
return t.mode.CTRGladman=function(){var e=t.lib.BlockCipherMode.extend();function n(t){if(255===(t>>24&255)){var e=t>>16&255,n=t>>8&255,i=255&t;255===e?(e=0,255===n?(n=0,255===i?i=0:++i):++n):++e,t=0,t+=e<<16,t+=n<<8,t+=i}else t+=1<<24;return t}function i(t){return 0===(t[0]=n(t[0]))&&(t[1]=n(t[1])),t}var r=e.Encryptor=e.extend({processBlock:function(t,e){var n=this._cipher,r=n.blockSize,o=this._iv,a=this._counter;o&&(a=this._counter=o.slice(0),this._iv=void 0),i(a);var s=a.slice(0);n.encryptBlock(s,0);for(var l=0;l<r;l++)t[e+l]^=s[l]}});return e.Decryptor=r,e}(),t.mode.CTRGladman}))},ab07:function(t,e,n){},ab1f:function(t,e,n){"use strict";n("50f6")},ab36:function(t,e,n){"use strict";var i=n("861d"),r=n("9112");t.exports=function(t,e){i(e)&&"cause"in e&&r(t,"cause",e.cause)}},ad2f:function(t,e,n){},ad6d:function(t,e,n){"use strict";var i=n("825a");t.exports=function(){var t=i(this),e="";return t.hasIndices&&(e+="d"),t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.unicodeSets&&(e+="v"),t.sticky&&(e+="y"),e}},ad6e:function(t,e,n){"use strict";n("bde4")},aeb0:function(t,e,n){"use strict";var i=n("9bf2").f;t.exports=function(t,e,n){n in t||i(t,n,{configurable:!0,get:function(){return e[n]},set:function(t){e[n]=t}})}},aed9:function(t,e,n){"use strict";var i=n("83ab"),r=n("d039");t.exports=i&&r((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},b035:function(t,e,n){"use strict";n.r(e),e["default"]="## 示例代码\r\n\r\n```\r\n<c-input></c-input>\r\n```\r\n\r\n## 属性配置\r\n\r\n属性 | 类型 | 默认值 | 说明\r\n---- | ---- | ---- | ----\r\nvalue | String \\| Number | - | 输入框的值,可使用v-model属性绑定变量\r\nname | String | - | 字段名\r\ntype | String | text | 按钮尺寸<br>**text**: 文本框<br>**password**: 密码框<br>**number**: 数字框<br>**stepper**: 步进器<br>**textarea**: 多行文本\r\nplaceholder | String | - | 提示占位符\r\nmaxlength | Number \\| String | - | 可输入最大字符数\r\ndecimal | Number \\| String | 0 | 数字框小数位数\r\nrange | Number \\| Array | 0 | 数字框数字范围<br>可输入逗号隔开的字符串('0,100')或数组([0, 100])\r\nprepend-text | String | - | 前置文本内容\r\nappend-text | String | - | 后置文本内容\r\nvisible | Boolean | false | 密码框显示密码按钮\r\nstep | Number \\| String | 1 | 步进器精度\r\nstep-controls | String | both | 步进器按钮位置<br>**both**: 两侧<br>**side**: 一侧\r\ndisabled | Boolean | false | 是否禁用输入框\r\nreadonly | Boolean | false | 输入框是否只读\r\nclear | Boolean | false | 是否显示清空按钮\r\nheight-resize | Boolean \\| String | true | 多行文本是否支持调整高度,'auto'表示自动高度\r\n@input | Function | - | 输入事件\r\n@focus | Function | - | 焦点移入事件\r\n@blur | Function | - | 焦点移出事件\r\n@change | Function | - | 内容改变事件\r\n@suggest | Function(value, resolve) | - | 输入建议事件"},b038:function(t,e,n){"use strict";n("db68")},b108:function(t,e,n){},b42e:function(t,e,n){"use strict";var i=Math.ceil,r=Math.floor;t.exports=Math.trunc||function(t){var e=+t;return(e>0?r:i)(e)}},b50d:function(t,e,n){"use strict";var i=n("c532"),r=n("467f"),o=n("7aac"),a=n("30b5"),s=n("83b9"),l=n("c345"),c=n("3934"),u=n("2d83");t.exports=function(t){return new Promise((function(e,n){var d=t.data,h=t.headers;i.isFormData(d)&&delete h["Content-Type"],(i.isBlob(d)||i.isFile(d))&&d.type&&delete h["Content-Type"];var p=new XMLHttpRequest;if(t.auth){var f=t.auth.username||"",m=unescape(encodeURIComponent(t.auth.password))||"";h.Authorization="Basic "+btoa(f+":"+m)}var g=s(t.baseURL,t.url);if(p.open(t.method.toUpperCase(),a(g,t.params,t.paramsSerializer),!0),p.timeout=t.timeout,p.onreadystatechange=function(){if(p&&4===p.readyState&&(0!==p.status||p.responseURL&&0===p.responseURL.indexOf("file:"))){var i="getAllResponseHeaders"in p?l(p.getAllResponseHeaders()):null,o=t.responseType&&"text"!==t.responseType?p.response:p.responseText,a={data:o,status:p.status,statusText:p.statusText,headers:i,config:t,request:p};r(e,n,a),p=null}},p.onabort=function(){p&&(n(u("Request aborted",t,"ECONNABORTED",p)),p=null)},p.onerror=function(){n(u("Network Error",t,null,p)),p=null},p.ontimeout=function(){var e="timeout of "+t.timeout+"ms exceeded";t.timeoutErrorMessage&&(e=t.timeoutErrorMessage),n(u(e,t,"ECONNABORTED",p)),p=null},i.isStandardBrowserEnv()){var v=(t.withCredentials||c(g))&&t.xsrfCookieName?o.read(t.xsrfCookieName):void 0;v&&(h[t.xsrfHeaderName]=v)}if("setRequestHeader"in p&&i.forEach(h,(function(t,e){"undefined"===typeof d&&"content-type"===e.toLowerCase()?delete h[e]:p.setRequestHeader(e,t)})),i.isUndefined(t.withCredentials)||(p.withCredentials=!!t.withCredentials),t.responseType)try{p.responseType=t.responseType}catch(b){if("json"!==t.responseType)throw b}"function"===typeof t.onDownloadProgress&&p.addEventListener("progress",t.onDownloadProgress),"function"===typeof t.onUploadProgress&&p.upload&&p.upload.addEventListener("progress",t.onUploadProgress),t.cancelToken&&t.cancelToken.promise.then((function(t){p&&(p.abort(),n(t),p=null)})),d||(d=null),p.send(d)}))}},b564:function(t,e,n){"use strict";n("151b")},b622:function(t,e,n){"use strict";var i=n("da84"),r=n("5692"),o=n("1a2d"),a=n("90e3"),s=n("04f8"),l=n("fdbf"),c=i.Symbol,u=r("wks"),d=l?c["for"]||c:c&&c.withoutSetter||a;t.exports=function(t){return o(u,t)||(u[t]=s&&o(c,t)?c[t]:d("Symbol."+t)),u[t]}},b74a:function(t,e,n){"use strict";n.r(e),e["default"]='## 示例代码\n\n```\r\n<c-detail column="3">\n\t<c-detail-item label="字段名" colspan="2">\n\t\t单独设置占两列\n\t</c-detail-item>\n\t\n\t<c-detail-item label="字段名">\n\t\t内容\n\t</c-detail-item>\n</c-detail>\n```\n\n## 属性配置\r\n\r\n### 详情主体 <c-detail\\>\r\n\n属性 | 类型 | 默认值 | 说明\n---- | ---- | ---- | ----\r\ncolumn | String | - | 列数\r\n\r\n### 详情项 <c-detail-item\\>\r\n\n属性 | 类型 | 默认值 | 说明\n---- | ---- | ---- | ----\r\nlabel | String | - | 字段名\r\ncolspan | String | 1 | 该项占几列'},b771:function(t,e,n){},b86b:function(t,e,n){(function(e,i,r){t.exports=i(n("21bf"),n("3252"),n("d6e6"))})(0,(function(t){return function(){var e=t,n=e.x64,i=n.Word,r=n.WordArray,o=e.algo,a=o.SHA512,s=o.SHA384=a.extend({_doReset:function(){this._hash=new r.init([new i.init(3418070365,3238371032),new i.init(1654270250,914150663),new i.init(2438529370,812702999),new i.init(355462360,4144912697),new i.init(1731405415,4290775857),new i.init(2394180231,1750603025),new i.init(3675008525,1694076839),new i.init(1203062813,3204075428)])},_doFinalize:function(){var t=a._doFinalize.call(this);return t.sigBytes-=16,t}});e.SHA384=a._createHelper(s),e.HmacSHA384=a._createHmacHelper(s)}(),t.SHA384}))},b86c:function(t,e,n){(function(e,i,r){t.exports=i(n("21bf"),n("38ba"))})(0,(function(t){return t.pad.NoPadding={pad:function(){},unpad:function(){}},t.pad.NoPadding}))},b980:function(t,e,n){"use strict";var i=n("d039"),r=n("5c6c");t.exports=!i((function(){var t=Error("a");return!("stack"in t)||(Object.defineProperty(t,"stack",r(1,7)),7!==t.stack)}))},b9c5:function(t,e,n){},bb56:function(t,e,n){},bbf0:function(t,e,n){const i=n("27a3"),r=n("0425");function o(t){if("string"!==typeof t)throw new Error("Param is not a string");const n=t.toLowerCase();switch(n){case"numeric":return e.NUMERIC;case"alphanumeric":return e.ALPHANUMERIC;case"kanji":return e.KANJI;case"byte":return e.BYTE;default:throw new Error("Unknown mode: "+t)}}e.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},e.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},e.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},e.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},e.MIXED={bit:-1},e.getCharCountIndicator=function(t,e){if(!t.ccBits)throw new Error("Invalid mode: "+t);if(!i.isValid(e))throw new Error("Invalid version: "+e);return e>=1&&e<10?t.ccBits[0]:e<27?t.ccBits[1]:t.ccBits[2]},e.getBestModeForData=function(t){return r.testNumeric(t)?e.NUMERIC:r.testAlphanumeric(t)?e.ALPHANUMERIC:r.testKanji(t)?e.KANJI:e.BYTE},e.toString=function(t){if(t&&t.id)return t.id;throw new Error("Invalid mode")},e.isValid=function(t){return t&&t.bit&&t.ccBits},e.from=function(t,n){if(e.isValid(t))return t;try{return o(t)}catch(i){return n}}},bc3a:function(t,e,n){t.exports=n("cee4")},bd2f:function(t,e,n){"use strict";n("4f25")},bde4:function(t,e,n){},be04:function(t,e,n){},befa:function(t,e,n){const i=n("bbf0"),r=n("dd7e"),o=n("9d94"),a=n("0196"),s=n("2f3a"),l=n("0425"),c=n("7bf0"),u=n("10b0");function d(t){return unescape(encodeURIComponent(t)).length}function h(t,e,n){const i=[];let r;while(null!==(r=t.exec(n)))i.push({data:r[0],index:r.index,mode:e,length:r[0].length});return i}function p(t){const e=h(l.NUMERIC,i.NUMERIC,t),n=h(l.ALPHANUMERIC,i.ALPHANUMERIC,t);let r,o;c.isKanjiModeEnabled()?(r=h(l.BYTE,i.BYTE,t),o=h(l.KANJI,i.KANJI,t)):(r=h(l.BYTE_KANJI,i.BYTE,t),o=[]);const a=e.concat(n,r,o);return a.sort((function(t,e){return t.index-e.index})).map((function(t){return{data:t.data,mode:t.mode,length:t.length}}))}function f(t,e){switch(e){case i.NUMERIC:return r.getBitsLength(t);case i.ALPHANUMERIC:return o.getBitsLength(t);case i.KANJI:return s.getBitsLength(t);case i.BYTE:return a.getBitsLength(t)}}function m(t){return t.reduce((function(t,e){const n=t.length-1>=0?t[t.length-1]:null;return n&&n.mode===e.mode?(t[t.length-1].data+=e.data,t):(t.push(e),t)}),[])}function g(t){const e=[];for(let n=0;n<t.length;n++){const r=t[n];switch(r.mode){case i.NUMERIC:e.push([r,{data:r.data,mode:i.ALPHANUMERIC,length:r.length},{data:r.data,mode:i.BYTE,length:r.length}]);break;case i.ALPHANUMERIC:e.push([r,{data:r.data,mode:i.BYTE,length:r.length}]);break;case i.KANJI:e.push([r,{data:r.data,mode:i.BYTE,length:d(r.data)}]);break;case i.BYTE:e.push([{data:r.data,mode:i.BYTE,length:d(r.data)}])}}return e}function v(t,e){const n={},r={start:{}};let o=["start"];for(let a=0;a<t.length;a++){const s=t[a],l=[];for(let t=0;t<s.length;t++){const c=s[t],u=""+a+t;l.push(u),n[u]={node:c,lastCount:0},r[u]={};for(let t=0;t<o.length;t++){const a=o[t];n[a]&&n[a].node.mode===c.mode?(r[a][u]=f(n[a].lastCount+c.length,c.mode)-f(n[a].lastCount,c.mode),n[a].lastCount+=c.length):(n[a]&&(n[a].lastCount=c.length),r[a][u]=f(c.length,c.mode)+4+i.getCharCountIndicator(c.mode,e))}}o=l}for(let i=0;i<o.length;i++)r[o[i]].end=0;return{map:r,table:n}}function b(t,e){let n;const l=i.getBestModeForData(t);if(n=i.from(e,l),n!==i.BYTE&&n.bit<l.bit)throw new Error('"'+t+'" cannot be encoded with mode '+i.toString(n)+".\n Suggested mode is: "+i.toString(l));switch(n!==i.KANJI||c.isKanjiModeEnabled()||(n=i.BYTE),n){case i.NUMERIC:return new r(t);case i.ALPHANUMERIC:return new o(t);case i.KANJI:return new s(t);case i.BYTE:return new a(t)}}e.fromArray=function(t){return t.reduce((function(t,e){return"string"===typeof e?t.push(b(e,null)):e.data&&t.push(b(e.data,e.mode)),t}),[])},e.fromString=function(t,n){const i=p(t,c.isKanjiModeEnabled()),r=g(i),o=v(r,n),a=u.find_path(o.map,"start","end"),s=[];for(let e=1;e<a.length-1;e++)s.push(o.table[a[e]].node);return e.fromArray(m(s))},e.rawSplit=function(t){return e.fromArray(p(t,c.isKanjiModeEnabled()))}},c046:function(t,e,n){},c04e:function(t,e,n){"use strict";var i=n("c65b"),r=n("861d"),o=n("d9b5"),a=n("dc4a"),s=n("485a"),l=n("b622"),c=TypeError,u=l("toPrimitive");t.exports=function(t,e){if(!r(t)||o(t))return t;var n,l=a(t,u);if(l){if(void 0===e&&(e="default"),n=i(l,t,e),!r(n)||o(n))return n;throw c("Can't convert object to primitive value")}return void 0===e&&(e="number"),s(t,e)}},c0c9:function(t,e,n){"use strict";n.r(e),e["default"]='## 示例代码\r\n\r\n```\r\n<c-select></c-select> // 下拉框\r\n<c-region></c-region> // 地址框\r\n<c-datetime></c-datetime> // 日期框\r\n<c-color></c-color> // 颜色框\r\n<c-transfer></c-transfer> // 穿梭框\r\n```\r\n\r\n## 属性配置\r\n\r\n### 下拉框 <c-select\\>\r\n\r\n属性 | 类型 | 默认值 | 说明\r\n---- | ---- | ---- | ----\r\nvalue | String | - | 下拉框的值,可使用v-model属性绑定变量\r\nvalue-data | Array | - | 下拉框值对应的数据,异步模式下可用\r\nname | String | - | 字段名\r\nplaceholder | String | - | 提示占位符\r\noptions | Array | - | 选项数据:[{"name": "选项名", "value": "选项值"}]\r\ndisabled | Boolean | false | 是否禁用下拉框\r\nmultiple | Boolean \\| Object | false | 是否支持多选\r\nmultiple.limit | Number | - | 多选最多可以选的选项数\r\nmultiple.linefeed | Boolean | false | 多选标签是否换行显示\r\nsearch | Boolean \\| Object | false | 是否支持搜索,异步模式下默认开启\r\nsearch.empty | Boolean | true | 异步模式下是否支持空搜索\r\nsearch.add | Boolean | false | 是否支持添加选项\r\nasync | Boolean | false | 异步模式\r\nclear | Boolean | false | 是否显示清空按钮\r\n@change | Function | - | 选项变化事件\r\n@search | Function(keyword, resolve) | - | 搜索事件,异步模式下可用\r\n@add | Function(keyword, resolve) | - | 添加选项事件\r\n@customEvent | Function(data, resolve) | - | 自定义事件\r\n\r\n### 地址框 <c-region\\>\r\n\r\n属性 | 类型 | 默认值 | 说明\r\n---- | ---- | ---- | ----\r\nvalue | String | - | 地址框的值,可使用v-model属性绑定变量\r\nprovince-name | String | - | 省份字段名\r\ncity-name | String | - | 城市字段名\r\ncounty-name | String | - | 区县字段名\r\naddress-name | String | - | 详细街道字段名\r\nlevel | String \\| Number | 3 | 地址库级别<br>**1**: 到省级<br>**2**: 到市级<br>**3**: 到区县级<br>**4**: 到详细街道地址\r\n\r\n### 日期框 <c-datetime\\>\r\n\r\n属性 | 类型 | 默认值 | 说明\r\n---- | ---- | ---- | ----\r\nvalue | String | - | 日期框的值,可使用v-model属性绑定变量\r\nname | String | - | 字段名\r\nstart-name | String | - | 开始日期字段名\r\nend-name | String | - | 结束日期字段名\r\nplaceholder | String | - | 提示占位符\r\ntype | String | datetime | 日期类型<br>**datetime**: 日期+时间<br>**date**: 仅日期<br>**time**: 仅时间\r\ntime-accuracy | String | sec | 时间精度<br>**hour**: 到小时<br>**min**: 到分钟<br>**sec**: 到秒\r\ndefault-time | String \\| Array | - | 默认时间\r\nrange | Boolean | - | 是否为范围选择\r\nformat | Boolean | \'yyyy-MM-dd hh:mm:ss\' | 日期格式\r\ndisabled | Boolean | false | 是否禁用日期框\r\n\r\n### 颜色框 <c-color\\>\r\n\r\n属性 | 类型 | 默认值 | 说明\r\n---- | ---- | ---- | ----\r\nvalue | String | - | 颜色框的值,可使用v-model属性绑定变量\r\nname | String | - | 字段名\r\n\r\n### 穿梭框 <c-transfer\\>\r\n\r\n属性 | 类型 | 默认值 | 说明\r\n---- | ---- | ---- | ----\r\nvalue | Array | - | 穿梭框的值,可使用v-model属性绑定变量\r\nvalue-data | Array | - | 穿梭框值对应的数据,异步模式下可用\r\nname | String | - | 字段名\r\ntitle | String \\| Array | 数据 | 穿梭框的标题,传入字符串xx时标题为"全部xx"和"已选xx",也可传入数组:[\'左侧标题\', \'右侧标题\']\r\ndata | Array | - | 所有可选数据:[{"name": "选项名", "value": "选项值"}]\r\nsearch | Boolean \\| Object | false | 搜索功能,异步模式下默认开启\r\nsearch.immediate | Boolean | true | 异步模式下是否立即加载数据\r\nsearch.placeholder | String | - | 搜索框提示信息\r\nasync | Boolean | false | 异步模式\r\nsort | Boolean | false | 是否支持排序\r\n@search | Function(keyword, resolve) | - | 搜索事件,异步模式下可用'},c15a:function(t,e,n){"use strict";n("fd29")},c198:function(t,e,n){(function(e,i,r){t.exports=i(n("21bf"),n("1132"),n("72fe"),n("2b79"),n("38ba"))})(0,(function(t){return function(){var e=t,n=e.lib,i=n.BlockCipher,r=e.algo,o=[],a=[],s=[],l=[],c=[],u=[],d=[],h=[],p=[],f=[];(function(){for(var t=[],e=0;e<256;e++)t[e]=e<128?e<<1:e<<1^283;var n=0,i=0;for(e=0;e<256;e++){var r=i^i<<1^i<<2^i<<3^i<<4;r=r>>>8^255&r^99,o[n]=r,a[r]=n;var m=t[n],g=t[m],v=t[g],b=257*t[r]^16843008*r;s[n]=b<<24|b>>>8,l[n]=b<<16|b>>>16,c[n]=b<<8|b>>>24,u[n]=b;b=16843009*v^65537*g^257*m^16843008*n;d[r]=b<<24|b>>>8,h[r]=b<<16|b>>>16,p[r]=b<<8|b>>>24,f[r]=b,n?(n=m^t[t[t[v^m]]],i^=t[t[i]]):n=i=1}})();var m=[0,1,2,4,8,16,32,64,128,27,54],g=r.AES=i.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var t=this._keyPriorReset=this._key,e=t.words,n=t.sigBytes/4,i=this._nRounds=n+6,r=4*(i+1),a=this._keySchedule=[],s=0;s<r;s++)s<n?a[s]=e[s]:(u=a[s-1],s%n?n>6&&s%n==4&&(u=o[u>>>24]<<24|o[u>>>16&255]<<16|o[u>>>8&255]<<8|o[255&u]):(u=u<<8|u>>>24,u=o[u>>>24]<<24|o[u>>>16&255]<<16|o[u>>>8&255]<<8|o[255&u],u^=m[s/n|0]<<24),a[s]=a[s-n]^u);for(var l=this._invKeySchedule=[],c=0;c<r;c++){s=r-c;if(c%4)var u=a[s];else u=a[s-4];l[c]=c<4||s<=4?u:d[o[u>>>24]]^h[o[u>>>16&255]]^p[o[u>>>8&255]]^f[o[255&u]]}}},encryptBlock:function(t,e){this._doCryptBlock(t,e,this._keySchedule,s,l,c,u,o)},decryptBlock:function(t,e){var n=t[e+1];t[e+1]=t[e+3],t[e+3]=n,this._doCryptBlock(t,e,this._invKeySchedule,d,h,p,f,a);n=t[e+1];t[e+1]=t[e+3],t[e+3]=n},_doCryptBlock:function(t,e,n,i,r,o,a,s){for(var l=this._nRounds,c=t[e]^n[0],u=t[e+1]^n[1],d=t[e+2]^n[2],h=t[e+3]^n[3],p=4,f=1;f<l;f++){var m=i[c>>>24]^r[u>>>16&255]^o[d>>>8&255]^a[255&h]^n[p++],g=i[u>>>24]^r[d>>>16&255]^o[h>>>8&255]^a[255&c]^n[p++],v=i[d>>>24]^r[h>>>16&255]^o[c>>>8&255]^a[255&u]^n[p++],b=i[h>>>24]^r[c>>>16&255]^o[u>>>8&255]^a[255&d]^n[p++];c=m,u=g,d=v,h=b}m=(s[c>>>24]<<24|s[u>>>16&255]<<16|s[d>>>8&255]<<8|s[255&h])^n[p++],g=(s[u>>>24]<<24|s[d>>>16&255]<<16|s[h>>>8&255]<<8|s[255&c])^n[p++],v=(s[d>>>24]<<24|s[h>>>16&255]<<16|s[c>>>8&255]<<8|s[255&u])^n[p++],b=(s[h>>>24]<<24|s[c>>>16&255]<<16|s[u>>>8&255]<<8|s[255&d])^n[p++];t[e]=m,t[e+1]=g,t[e+2]=v,t[e+3]=b},keySize:8});e.AES=i._createHelper(g)}(),t.AES}))},c1bc:function(t,e,n){(function(e,i){t.exports=i(n("21bf"))})(0,(function(t){return function(){var e=t,n=e.lib,i=n.WordArray,r=e.enc;r.Base64url={stringify:function(t,e=!0){var n=t.words,i=t.sigBytes,r=e?this._safe_map:this._map;t.clamp();for(var o=[],a=0;a<i;a+=3)for(var s=n[a>>>2]>>>24-a%4*8&255,l=n[a+1>>>2]>>>24-(a+1)%4*8&255,c=n[a+2>>>2]>>>24-(a+2)%4*8&255,u=s<<16|l<<8|c,d=0;d<4&&a+.75*d<i;d++)o.push(r.charAt(u>>>6*(3-d)&63));var h=r.charAt(64);if(h)while(o.length%4)o.push(h);return o.join("")},parse:function(t,e=!0){var n=t.length,i=e?this._safe_map:this._map,r=this._reverseMap;if(!r){r=this._reverseMap=[];for(var a=0;a<i.length;a++)r[i.charCodeAt(a)]=a}var s=i.charAt(64);if(s){var l=t.indexOf(s);-1!==l&&(n=l)}return o(t,n,r)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"};function o(t,e,n){for(var r=[],o=0,a=0;a<e;a++)if(a%4){var s=n[t.charCodeAt(a-1)]<<a%4*2,l=n[t.charCodeAt(a)]>>>6-a%4*2,c=s|l;r[o>>>2]|=c<<24-o%4*8,o++}return i.create(r,o)}}(),t.enc.Base64url}))},c21e:function(t,e,n){"use strict";n("bb56")},c2c5:function(t,e,n){},c345:function(t,e,n){"use strict";var i=n("c532"),r=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];t.exports=function(t){var e,n,o,a={};return t?(i.forEach(t.split("\n"),(function(t){if(o=t.indexOf(":"),e=i.trim(t.substr(0,o)).toLowerCase(),n=i.trim(t.substr(o+1)),e){if(a[e]&&r.indexOf(e)>=0)return;a[e]="set-cookie"===e?(a[e]?a[e]:[]).concat([n]):a[e]?a[e]+", "+n:n}})),a):a}},c3b6:function(t,e,n){(function(e,i,r){t.exports=i(n("21bf"),n("1132"),n("72fe"),n("2b79"),n("38ba"))})(0,(function(t){return function(){var e=t,n=e.lib,i=n.StreamCipher,r=e.algo,o=r.RC4=i.extend({_doReset:function(){for(var t=this._key,e=t.words,n=t.sigBytes,i=this._S=[],r=0;r<256;r++)i[r]=r;r=0;for(var o=0;r<256;r++){var a=r%n,s=e[a>>>2]>>>24-a%4*8&255;o=(o+i[r]+s)%256;var l=i[r];i[r]=i[o],i[o]=l}this._i=this._j=0},_doProcessBlock:function(t,e){t[e]^=a.call(this)},keySize:8,ivSize:0});function a(){for(var t=this._S,e=this._i,n=this._j,i=0,r=0;r<4;r++){e=(e+1)%256,n=(n+t[e])%256;var o=t[e];t[e]=t[n],t[n]=o,i|=t[(t[e]+t[n])%256]<<24-8*r}return this._i=e,this._j=n,i}e.RC4=i._createHelper(o);var s=r.RC4Drop=o.extend({cfg:o.cfg.extend({drop:192}),_doReset:function(){o._doReset.call(this);for(var t=this.cfg.drop;t>0;t--)a.call(this)}});e.RC4Drop=i._createHelper(s)}(),t.RC4}))},c401:function(t,e,n){"use strict";var i=n("c532");t.exports=function(t,e,n){return i.forEach(n,(function(n){t=n(t,e)})),t}},c430:function(t,e,n){"use strict";t.exports=!1},c532:function(t,e,n){"use strict";var i=n("1d2b"),r=Object.prototype.toString;function o(t){return"[object Array]"===r.call(t)}function a(t){return"undefined"===typeof t}function s(t){return null!==t&&!a(t)&&null!==t.constructor&&!a(t.constructor)&&"function"===typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)}function l(t){return"[object ArrayBuffer]"===r.call(t)}function c(t){return"undefined"!==typeof FormData&&t instanceof FormData}function u(t){var e;return e="undefined"!==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&t.buffer instanceof ArrayBuffer,e}function d(t){return"string"===typeof t}function h(t){return"number"===typeof t}function p(t){return null!==t&&"object"===typeof t}function f(t){if("[object Object]"!==r.call(t))return!1;var e=Object.getPrototypeOf(t);return null===e||e===Object.prototype}function m(t){return"[object Date]"===r.call(t)}function g(t){return"[object File]"===r.call(t)}function v(t){return"[object Blob]"===r.call(t)}function b(t){return"[object Function]"===r.call(t)}function _(t){return p(t)&&b(t.pipe)}function y(t){return"undefined"!==typeof URLSearchParams&&t instanceof URLSearchParams}function w(t){return t.replace(/^\s*/,"").replace(/\s*$/,"")}function x(){return("undefined"===typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!==typeof window&&"undefined"!==typeof document)}function k(t,e){if(null!==t&&"undefined"!==typeof t)if("object"!==typeof t&&(t=[t]),o(t))for(var n=0,i=t.length;n<i;n++)e.call(null,t[n],n,t);else for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.call(null,t[r],r,t)}function S(){var t={};function e(e,n){f(t[n])&&f(e)?t[n]=S(t[n],e):f(e)?t[n]=S({},e):o(e)?t[n]=e.slice():t[n]=e}for(var n=0,i=arguments.length;n<i;n++)k(arguments[n],e);return t}function D(t,e,n){return k(e,(function(e,r){t[r]=n&&"function"===typeof e?i(e,n):e})),t}function C(t){return 65279===t.charCodeAt(0)&&(t=t.slice(1)),t}t.exports={isArray:o,isArrayBuffer:l,isBuffer:s,isFormData:c,isArrayBufferView:u,isString:d,isNumber:h,isObject:p,isPlainObject:f,isUndefined:a,isDate:m,isFile:g,isBlob:v,isFunction:b,isStream:_,isURLSearchParams:y,isStandardBrowserEnv:x,forEach:k,merge:S,extend:D,trim:w,stripBOM:C}},c600:function(t,e,n){},c65b:function(t,e,n){"use strict";var i=n("40d5"),r=Function.prototype.call;t.exports=i?r.bind(r):function(){return r.apply(r,arguments)}},c6b6:function(t,e,n){"use strict";var i=n("e330"),r=i({}.toString),o=i("".slice);t.exports=function(t){return o(r(t),8,-1)}},c6cd:function(t,e,n){"use strict";var i=n("da84"),r=n("6374"),o="__core-js_shared__",a=i[o]||r(o,{});t.exports=a},c6ce:function(t,e,n){},c73d:function(t,e,n){"use strict";var i=n("23e7"),r=n("da84"),o=n("edd0"),a=n("83ab"),s=TypeError,l=Object.defineProperty,c=r.self!==r;try{if(a){var u=Object.getOwnPropertyDescriptor(r,"self");!c&&u&&u.get&&u.enumerable||o(r,"self",{get:function(){return r},set:function(t){if(this!==r)throw s("Illegal invocation");l(r,"self",{value:t,writable:!0,configurable:!0,enumerable:!0})},configurable:!0,enumerable:!0})}else i({global:!0,simple:!0,forced:c},{self:r})}catch(d){}},c7c0:function(t,e,n){},c7ef:function(t,e,n){},c8aa:function(t,e,n){const i=n("7bf0"),r=n("34fc"),o=n("7a43"),a=n("bbf0"),s=n("27a3"),l=7973,c=i.getBCHDigit(l);function u(t,n,i){for(let r=1;r<=40;r++)if(n<=e.getCapacity(r,i,t))return r}function d(t,e){return a.getCharCountIndicator(t,e)+4}function h(t,e){let n=0;return t.forEach((function(t){const i=d(t.mode,e);n+=i+t.getBitsLength()})),n}function p(t,n){for(let i=1;i<=40;i++){const r=h(t,i);if(r<=e.getCapacity(i,n,a.MIXED))return i}}e.from=function(t,e){return s.isValid(t)?parseInt(t,10):e},e.getCapacity=function(t,e,n){if(!s.isValid(t))throw new Error("Invalid QR Code version");"undefined"===typeof n&&(n=a.BYTE);const o=i.getSymbolTotalCodewords(t),l=r.getTotalCodewordsCount(t,e),c=8*(o-l);if(n===a.MIXED)return c;const u=c-d(n,t);switch(n){case a.NUMERIC:return Math.floor(u/10*3);case a.ALPHANUMERIC:return Math.floor(u/11*2);case a.KANJI:return Math.floor(u/13);case a.BYTE:default:return Math.floor(u/8)}},e.getBestVersionForData=function(t,e){let n;const i=o.from(e,o.M);if(Array.isArray(t)){if(t.length>1)return p(t,i);if(0===t.length)return 1;n=t[0]}else n=t;return u(n.mode,n.getLength(),i)},e.getEncodedBits=function(t){if(!s.isValid(t)||t<7)throw new Error("Invalid QR Code version");let e=t<<12;while(i.getBCHDigit(e)-c>=0)e^=l<<i.getBCHDigit(e)-c;return t<<12|e}},c8af:function(t,e,n){"use strict";var i=n("c532");t.exports=function(t,e){i.forEach(t,(function(n,i){i!==e&&i.toUpperCase()===e.toUpperCase()&&(t[e]=n,delete t[i])}))}},c8ba:function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(i){"object"===typeof window&&(n=window)}t.exports=n},ca84:function(t,e,n){"use strict";var i=n("e330"),r=n("1a2d"),o=n("fc6a"),a=n("4d64").indexOf,s=n("d012"),l=i([].push);t.exports=function(t,e){var n,i=o(t),c=0,u=[];for(n in i)!r(s,n)&&r(i,n)&&l(u,n);while(e.length>c)r(i,n=e[c++])&&(~a(u,n)||l(u,n));return u}},ca97:function(t,e,n){"use strict";n("b771")},cb2d:function(t,e,n){"use strict";var i=n("1626"),r=n("9bf2"),o=n("13d2"),a=n("6374");t.exports=function(t,e,n,s){s||(s={});var l=s.enumerable,c=void 0!==s.name?s.name:e;if(i(n)&&o(n,c,s),s.global)l?t[e]=n:a(e,n);else{try{s.unsafe?t[e]&&(l=!0):delete t[e]}catch(u){}l?t[e]=n:r.f(t,e,{value:n,enumerable:!1,configurable:!s.nonConfigurable,writable:!s.nonWritable})}return t}},cb82:function(t,e,n){"use strict";n("9490")},cc12:function(t,e,n){"use strict";var i=n("da84"),r=n("861d"),o=i.document,a=r(o)&&r(o.createElement);t.exports=function(t){return a?o.createElement(t):{}}},cd7d:function(t,e,n){"use strict";n("3b78")},cdce:function(t,e,n){"use strict";var i=n("da84"),r=n("1626"),o=i.WeakMap;t.exports=r(o)&&/native code/.test(String(o))},cee4:function(t,e,n){"use strict";var i=n("c532"),r=n("1d2b"),o=n("0a06"),a=n("4a7b"),s=n("2444");function l(t){var e=new o(t),n=r(o.prototype.request,e);return i.extend(n,o.prototype,e),i.extend(n,e),n}var c=l(s);c.Axios=o,c.create=function(t){return l(a(c.defaults,t))},c.Cancel=n("7a77"),c.CancelToken=n("8df4"),c.isCancel=n("2e67"),c.all=function(t){return Promise.all(t)},c.spread=n("0df6"),t.exports=c,t.exports.default=c},d012:function(t,e,n){"use strict";t.exports={}},d013:function(t,e,n){"use strict";n.r(e),e["default"]='## 栅格布局\r\n\r\n```\r\n<c-grid-row margin gap>\r\n\t<c-grid-col colspan="6">\r\n\t\t// 内容\r\n\t</c-grid-col>\r\n\t<c-grid-col colspan="6">\r\n\t\t// 内容\r\n\t</c-grid-col>\r\n</c-grid-row>\r\n```'},d039:function(t,e,n){"use strict";t.exports=function(t){try{return!!t()}catch(e){return!0}}},d055:function(t,e,n){const i=n("67dd"),r=n("aa63"),o=n("4146"),a=n("4006");function s(t,e,n,o,a){const s=[].slice.call(arguments,1),l=s.length,c="function"===typeof s[l-1];if(!c&&!i())throw new Error("Callback required as last argument");if(!c){if(l<1)throw new Error("Too few arguments provided");return 1===l?(n=e,e=o=void 0):2!==l||e.getContext||(o=n,n=e,e=void 0),new Promise((function(i,a){try{const a=r.create(n,o);i(t(a,e,o))}catch(s){a(s)}}))}if(l<2)throw new Error("Too few arguments provided");2===l?(a=n,n=e,e=o=void 0):3===l&&(e.getContext&&"undefined"===typeof a?(a=o,o=void 0):(a=o,o=n,n=e,e=void 0));try{const i=r.create(n,o);a(null,t(i,e,o))}catch(u){a(u)}}e.create=r.create,e.toCanvas=s.bind(null,o.render),e.toDataURL=s.bind(null,o.renderToDataURL),e.toString=s.bind(null,(function(t,e,n){return a.render(t,n)}))},d066:function(t,e,n){"use strict";var i=n("da84"),r=n("1626"),o=function(t){return r(t)?t:void 0};t.exports=function(t,e){return arguments.length<2?o(i[t]):i[t]&&i[t][e]}},d1e7:function(t,e,n){"use strict";var i={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,o=r&&!i.call({1:2},1);e.f=o?function(t){var e=r(this,t);return!!e&&e.enumerable}:i},d278:function(t,e,n){"use strict";n.r(e),e["default"]='## 示例代码\n\n```\n<c-window ref="window">\n\t<div>窗口内容</div>\n\n\t<template #beforeButton>\n\t\t自定义内容\n\t</template>\n\t\n\t<template #button>\n\t\t<c-button>按钮名称</c-button>\n\t</template>\n</c-window>\n\nthis.$refs.window.show(follow, position, align) // 显示悬浮窗口,follow:跟随的目标节点,position:跟随位置(top、bottom、left、right),align:对齐方向(start、end)\nthis.$refs.window.hide() // 隐藏悬浮窗口\n```\n\n## 属性配置\n\n属性 | 类型 | 默认值 | 说明\n---- | ---- | ---- | ----\ntitle | String | - | 悬浮窗口标题\nwidth | Number \\| String | 400 | 悬浮窗口宽度\nheight | Number \\| String | - | 悬浮窗口内容区域高度\nposition | String | bottom | 跟随位置<br>**bottom**: 底部<br>**top**: 顶部<br>**left**: 左侧<br>**right**: 右侧\nalign | String | start | 对齐方向<br>**start**: 起始方向<br>**end**: 结束方向'},d2bb:function(t,e,n){"use strict";var i=n("7282"),r=n("825a"),o=n("3bbe");t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{t=i(Object.prototype,"__proto__","set"),t(n,[]),e=n instanceof Array}catch(a){}return function(n,i){return r(n),o(i),e?t(n,i):n.__proto__=i,n}}():void 0)},d2d1:function(t,e,n){},d30d:function(t,e,n){},d359:function(t,e){t.exports="data:image/gif;base64,R0lGODlhFwAZAOYAAAAAAP////Hp7NTD0Pr7/+vv+/r7/p+y3Jyt0pmoyHmEnWVob/L1/DxZkkJelENflUZhlVFpmZ2v1VRdcJuszYKQq6/B5a2/442cucja/ay51J2nu5mhsdHb79Xf8/z9/zlYkTtZkj1bkj5ck0Bdk0lklklllkxml01nmE9pmFFqmVNsmXuQtaK87IGVuYWYuoibvYqdvpioxdLd8KOrutXf8bvD0urx/uHl7HaMsX+Ut46hwZCiwZytyqCxzXyJnqW10Ke30aq61Ku71JCdsp6lsdLY4tbc5lNhdZWoxZutyVVfbqGzzXB8jai50mt4iomZr5ajtIqarn2Ejc3a6WVveVldYfv///3//+jDk++lTu2gS8t0I8FKKs9UNcxoVdKXjd2lm/Xl4slyZdOWjbpsZfLi4t/f37S0tP///wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAEAAGkALAAAAAAXABkAAAfZgGiCg4SFhoMBiYqLjI2CjZCRjwFnlZUBQ0JBTD1JOzAuLDmJk41Di2JhZAI3KqRoiZaXTgEEBFhgWVplHSmvkUABHwFXY1tcXR0nv5SyAT6JR1RmX14DHSXMjUoBRlA/MjQbGR0QzLJnAUk4UgwzTxxFEy0P2ow8UQY1FhpNNlMLSJxzFiOAhwsHJFBAQsSKCHuLXhS4gCABhgoKllQJMdBSAB0rVkRAYQKCgxENQECMJAlWM3QwnQUoxZLlpJg4L810WdOmy5w4V/ZcdBMoTKFDkSY9xLRpIAA7"},d429:function(t,e,n){"use strict";n.r(e),e["default"]='# 一级标题\n\n> 高亮区域\n\n## 二级标题\n\n正文内容**加粗**\r\n\r\n[链接](#gridOptions)\n\n```\n代码区域\n```\n\n<a id="gridOptions"></a>\n\n表头 | 表头 | 表头\n---- | ---- | ----\n表体 | 表体 | 表体<br>换行'},d525:function(t,e,n){},d6c0:function(t,e,n){const i=n("7bf0").getSymbolSize;e.getRowColCoords=function(t){if(1===t)return[];const e=Math.floor(t/7)+2,n=i(t),r=145===n?26:2*Math.ceil((n-13)/(2*e-2)),o=[n-7];for(let i=1;i<e-1;i++)o[i]=o[i-1]-r;return o.push(6),o.reverse()},e.getPositions=function(t){const n=[],i=e.getRowColCoords(t),r=i.length;for(let e=0;e<r;e++)for(let t=0;t<r;t++)0===e&&0===t||0===e&&t===r-1||e===r-1&&0===t||n.push([i[e],i[t]]);return n}},d6d6:function(t,e,n){"use strict";var i=TypeError;t.exports=function(t,e){if(t<e)throw i("Not enough arguments");return t}},d6e6:function(t,e,n){(function(e,i,r){t.exports=i(n("21bf"),n("3252"))})(0,(function(t){return function(){var e=t,n=e.lib,i=n.Hasher,r=e.x64,o=r.Word,a=r.WordArray,s=e.algo;function l(){return o.create.apply(o,arguments)}var c=[l(1116352408,3609767458),l(1899447441,602891725),l(3049323471,3964484399),l(3921009573,2173295548),l(961987163,4081628472),l(1508970993,3053834265),l(2453635748,2937671579),l(2870763221,3664609560),l(3624381080,2734883394),l(310598401,1164996542),l(607225278,1323610764),l(1426881987,3590304994),l(1925078388,4068182383),l(2162078206,991336113),l(2614888103,633803317),l(3248222580,3479774868),l(3835390401,2666613458),l(4022224774,944711139),l(264347078,2341262773),l(604807628,2007800933),l(770255983,1495990901),l(1249150122,1856431235),l(1555081692,3175218132),l(1996064986,2198950837),l(2554220882,3999719339),l(2821834349,766784016),l(2952996808,2566594879),l(3210313671,3203337956),l(3336571891,1034457026),l(3584528711,2466948901),l(113926993,3758326383),l(338241895,168717936),l(666307205,1188179964),l(773529912,1546045734),l(1294757372,1522805485),l(1396182291,2643833823),l(1695183700,2343527390),l(1986661051,1014477480),l(2177026350,1206759142),l(2456956037,344077627),l(2730485921,1290863460),l(2820302411,3158454273),l(3259730800,3505952657),l(3345764771,106217008),l(3516065817,3606008344),l(3600352804,1432725776),l(4094571909,1467031594),l(275423344,851169720),l(430227734,3100823752),l(506948616,1363258195),l(659060556,3750685593),l(883997877,3785050280),l(958139571,3318307427),l(1322822218,3812723403),l(1537002063,2003034995),l(1747873779,3602036899),l(1955562222,1575990012),l(2024104815,1125592928),l(2227730452,2716904306),l(2361852424,442776044),l(2428436474,593698344),l(2756734187,3733110249),l(3204031479,2999351573),l(3329325298,3815920427),l(3391569614,3928383900),l(3515267271,566280711),l(3940187606,3454069534),l(4118630271,4000239992),l(116418474,1914138554),l(174292421,2731055270),l(289380356,3203993006),l(460393269,320620315),l(685471733,587496836),l(852142971,1086792851),l(1017036298,365543100),l(1126000580,2618297676),l(1288033470,3409855158),l(1501505948,4234509866),l(1607167915,987167468),l(1816402316,1246189591)],u=[];(function(){for(var t=0;t<80;t++)u[t]=l()})();var d=s.SHA512=i.extend({_doReset:function(){this._hash=new a.init([new o.init(1779033703,4089235720),new o.init(3144134277,2227873595),new o.init(1013904242,4271175723),new o.init(2773480762,1595750129),new o.init(1359893119,2917565137),new o.init(2600822924,725511199),new o.init(528734635,4215389547),new o.init(1541459225,327033209)])},_doProcessBlock:function(t,e){for(var n=this._hash.words,i=n[0],r=n[1],o=n[2],a=n[3],s=n[4],l=n[5],d=n[6],h=n[7],p=i.high,f=i.low,m=r.high,g=r.low,v=o.high,b=o.low,_=a.high,y=a.low,w=s.high,x=s.low,k=l.high,S=l.low,D=d.high,C=d.low,E=h.high,A=h.low,T=p,B=f,F=m,$=g,L=v,M=b,I=_,P=y,N=w,H=x,O=k,R=S,z=D,U=C,K=E,W=A,j=0;j<80;j++){var V,q,Y=u[j];if(j<16)q=Y.high=0|t[e+2*j],V=Y.low=0|t[e+2*j+1];else{var X=u[j-15],G=X.high,Z=X.low,Q=(G>>>1|Z<<31)^(G>>>8|Z<<24)^G>>>7,J=(Z>>>1|G<<31)^(Z>>>8|G<<24)^(Z>>>7|G<<25),tt=u[j-2],et=tt.high,nt=tt.low,it=(et>>>19|nt<<13)^(et<<3|nt>>>29)^et>>>6,rt=(nt>>>19|et<<13)^(nt<<3|et>>>29)^(nt>>>6|et<<26),ot=u[j-7],at=ot.high,st=ot.low,lt=u[j-16],ct=lt.high,ut=lt.low;V=J+st,q=Q+at+(V>>>0<J>>>0?1:0),V+=rt,q=q+it+(V>>>0<rt>>>0?1:0),V+=ut,q=q+ct+(V>>>0<ut>>>0?1:0),Y.high=q,Y.low=V}var dt=N&O^~N&z,ht=H&R^~H&U,pt=T&F^T&L^F&L,ft=B&$^B&M^$&M,mt=(T>>>28|B<<4)^(T<<30|B>>>2)^(T<<25|B>>>7),gt=(B>>>28|T<<4)^(B<<30|T>>>2)^(B<<25|T>>>7),vt=(N>>>14|H<<18)^(N>>>18|H<<14)^(N<<23|H>>>9),bt=(H>>>14|N<<18)^(H>>>18|N<<14)^(H<<23|N>>>9),_t=c[j],yt=_t.high,wt=_t.low,xt=W+bt,kt=K+vt+(xt>>>0<W>>>0?1:0),St=(xt=xt+ht,kt=kt+dt+(xt>>>0<ht>>>0?1:0),xt=xt+wt,kt=kt+yt+(xt>>>0<wt>>>0?1:0),xt=xt+V,kt=kt+q+(xt>>>0<V>>>0?1:0),gt+ft),Dt=mt+pt+(St>>>0<gt>>>0?1:0);K=z,W=U,z=O,U=R,O=N,R=H,H=P+xt|0,N=I+kt+(H>>>0<P>>>0?1:0)|0,I=L,P=M,L=F,M=$,F=T,$=B,B=xt+St|0,T=kt+Dt+(B>>>0<xt>>>0?1:0)|0}f=i.low=f+B,i.high=p+T+(f>>>0<B>>>0?1:0),g=r.low=g+$,r.high=m+F+(g>>>0<$>>>0?1:0),b=o.low=b+M,o.high=v+L+(b>>>0<M>>>0?1:0),y=a.low=y+P,a.high=_+I+(y>>>0<P>>>0?1:0),x=s.low=x+H,s.high=w+N+(x>>>0<H>>>0?1:0),S=l.low=S+R,l.high=k+O+(S>>>0<R>>>0?1:0),C=d.low=C+U,d.high=D+z+(C>>>0<U>>>0?1:0),A=h.low=A+W,h.high=E+K+(A>>>0<W>>>0?1:0)},_doFinalize:function(){var t=this._data,e=t.words,n=8*this._nDataBytes,i=8*t.sigBytes;e[i>>>5]|=128<<24-i%32,e[30+(i+128>>>10<<5)]=Math.floor(n/4294967296),e[31+(i+128>>>10<<5)]=n,t.sigBytes=4*e.length,this._process();var r=this._hash.toX32();return r},clone:function(){var t=i.clone.call(this);return t._hash=this._hash.clone(),t},blockSize:32});e.SHA512=i._createHelper(d),e.HmacSHA512=i._createHmacHelper(d)}(),t.SHA512}))},d925:function(t,e,n){"use strict";t.exports=function(t){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(t)}},d9b5:function(t,e,n){"use strict";var i=n("d066"),r=n("1626"),o=n("3a9b"),a=n("fdbf"),s=Object;t.exports=a?function(t){return"symbol"==typeof t}:function(t){var e=i("Symbol");return r(e)&&o(e.prototype,s(t))}},d9e2:function(t,e,n){"use strict";var i=n("23e7"),r=n("da84"),o=n("2ba4"),a=n("e5cb"),s="WebAssembly",l=r[s],c=7!==Error("e",{cause:7}).cause,u=function(t,e){var n={};n[t]=a(t,e,c),i({global:!0,constructor:!0,arity:1,forced:c},n)},d=function(t,e){if(l&&l[t]){var n={};n[t]=a(s+"."+t,e,c),i({target:s,stat:!0,constructor:!0,arity:1,forced:c},n)}};u("Error",(function(t){return function(e){return o(t,this,arguments)}})),u("EvalError",(function(t){return function(e){return o(t,this,arguments)}})),u("RangeError",(function(t){return function(e){return o(t,this,arguments)}})),u("ReferenceError",(function(t){return function(e){return o(t,this,arguments)}})),u("SyntaxError",(function(t){return function(e){return o(t,this,arguments)}})),u("TypeError",(function(t){return function(e){return o(t,this,arguments)}})),u("URIError",(function(t){return function(e){return o(t,this,arguments)}})),d("CompileError",(function(t){return function(e){return o(t,this,arguments)}})),d("LinkError",(function(t){return function(e){return o(t,this,arguments)}})),d("RuntimeError",(function(t){return function(e){return o(t,this,arguments)}}))},da84:function(t,e,n){"use strict";(function(e){var n=function(t){return t&&t.Math===Math&&t};t.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof e&&e)||function(){return this}()||this||Function("return this")()}).call(this,n("c8ba"))},db68:function(t,e,n){},dc4a:function(t,e,n){"use strict";var i=n("59ed"),r=n("7234");t.exports=function(t,e){var n=t[e];return r(n)?void 0:i(n)}},dd13:function(t,e,n){},dd7e:function(t,e,n){const i=n("bbf0");function r(t){this.mode=i.NUMERIC,this.data=t.toString()}r.getBitsLength=function(t){return 10*Math.floor(t/3)+(t%3?t%3*3+1:0)},r.prototype.getLength=function(){return this.data.length},r.prototype.getBitsLength=function(){return r.getBitsLength(this.data.length)},r.prototype.write=function(t){let e,n,i;for(e=0;e+3<=this.data.length;e+=3)n=this.data.substr(e,3),i=parseInt(n,10),t.put(i,10);const r=this.data.length-e;r>0&&(n=this.data.substr(e),i=parseInt(n,10),t.put(i,3*r+1))},t.exports=r},df2f:function(t,e,n){(function(e,i){t.exports=i(n("21bf"))})(0,(function(t){return function(){var e=t,n=e.lib,i=n.WordArray,r=n.Hasher,o=e.algo,a=[],s=o.SHA1=r.extend({_doReset:function(){this._hash=new i.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(t,e){for(var n=this._hash.words,i=n[0],r=n[1],o=n[2],s=n[3],l=n[4],c=0;c<80;c++){if(c<16)a[c]=0|t[e+c];else{var u=a[c-3]^a[c-8]^a[c-14]^a[c-16];a[c]=u<<1|u>>>31}var d=(i<<5|i>>>27)+l+a[c];d+=c<20?1518500249+(r&o|~r&s):c<40?1859775393+(r^o^s):c<60?(r&o|r&s|o&s)-1894007588:(r^o^s)-899497514,l=s,s=o,o=r<<30|r>>>2,r=i,i=d}n[0]=n[0]+i|0,n[1]=n[1]+r|0,n[2]=n[2]+o|0,n[3]=n[3]+s|0,n[4]=n[4]+l|0},_doFinalize:function(){var t=this._data,e=t.words,n=8*this._nDataBytes,i=8*t.sigBytes;return e[i>>>5]|=128<<24-i%32,e[14+(i+64>>>9<<4)]=Math.floor(n/4294967296),e[15+(i+64>>>9<<4)]=n,t.sigBytes=4*e.length,this._process(),this._hash},clone:function(){var t=r.clone.call(this);return t._hash=this._hash.clone(),t}});e.SHA1=r._createHelper(s),e.HmacSHA1=r._createHmacHelper(s)}(),t.SHA1}))},df7c:function(t,e,n){(function(t){function n(t,e){for(var n=0,i=t.length-1;i>=0;i--){var r=t[i];"."===r?t.splice(i,1):".."===r?(t.splice(i,1),n++):n&&(t.splice(i,1),n--)}if(e)for(;n--;n)t.unshift("..");return t}function i(t){"string"!==typeof t&&(t+="");var e,n=0,i=-1,r=!0;for(e=t.length-1;e>=0;--e)if(47===t.charCodeAt(e)){if(!r){n=e+1;break}}else-1===i&&(r=!1,i=e+1);return-1===i?"":t.slice(n,i)}function r(t,e){if(t.filter)return t.filter(e);for(var n=[],i=0;i<t.length;i++)e(t[i],i,t)&&n.push(t[i]);return n}e.resolve=function(){for(var e="",i=!1,o=arguments.length-1;o>=-1&&!i;o--){var a=o>=0?arguments[o]:t.cwd();if("string"!==typeof a)throw new TypeError("Arguments to path.resolve must be strings");a&&(e=a+"/"+e,i="/"===a.charAt(0))}return e=n(r(e.split("/"),(function(t){return!!t})),!i).join("/"),(i?"/":"")+e||"."},e.normalize=function(t){var i=e.isAbsolute(t),a="/"===o(t,-1);return t=n(r(t.split("/"),(function(t){return!!t})),!i).join("/"),t||i||(t="."),t&&a&&(t+="/"),(i?"/":"")+t},e.isAbsolute=function(t){return"/"===t.charAt(0)},e.join=function(){var t=Array.prototype.slice.call(arguments,0);return e.normalize(r(t,(function(t,e){if("string"!==typeof t)throw new TypeError("Arguments to path.join must be strings");return t})).join("/"))},e.relative=function(t,n){function i(t){for(var e=0;e<t.length;e++)if(""!==t[e])break;for(var n=t.length-1;n>=0;n--)if(""!==t[n])break;return e>n?[]:t.slice(e,n-e+1)}t=e.resolve(t).substr(1),n=e.resolve(n).substr(1);for(var r=i(t.split("/")),o=i(n.split("/")),a=Math.min(r.length,o.length),s=a,l=0;l<a;l++)if(r[l]!==o[l]){s=l;break}var c=[];for(l=s;l<r.length;l++)c.push("..");return c=c.concat(o.slice(s)),c.join("/")},e.sep="/",e.delimiter=":",e.dirname=function(t){if("string"!==typeof t&&(t+=""),0===t.length)return".";for(var e=t.charCodeAt(0),n=47===e,i=-1,r=!0,o=t.length-1;o>=1;--o)if(e=t.charCodeAt(o),47===e){if(!r){i=o;break}}else r=!1;return-1===i?n?"/":".":n&&1===i?"/":t.slice(0,i)},e.basename=function(t,e){var n=i(t);return e&&n.substr(-1*e.length)===e&&(n=n.substr(0,n.length-e.length)),n},e.extname=function(t){"string"!==typeof t&&(t+="");for(var e=-1,n=0,i=-1,r=!0,o=0,a=t.length-1;a>=0;--a){var s=t.charCodeAt(a);if(47!==s)-1===i&&(r=!1,i=a+1),46===s?-1===e?e=a:1!==o&&(o=1):-1!==e&&(o=-1);else if(!r){n=a+1;break}}return-1===e||-1===i||0===o||1===o&&e===i-1&&e===n+1?"":t.slice(e,i)};var o="b"==="ab".substr(-1)?function(t,e,n){return t.substr(e,n)}:function(t,e,n){return e<0&&(e=t.length+e),t.substr(e,n)}}).call(this,n("4362"))},e103:function(t,e,n){"use strict";n("c7c0")},e2ba:function(t,e,n){},e330:function(t,e,n){"use strict";var i=n("40d5"),r=Function.prototype,o=r.call,a=i&&r.bind.bind(o,o);t.exports=i?a:function(t){return function(){return o.apply(t,arguments)}}},e391:function(t,e,n){"use strict";var i=n("577e");t.exports=function(t,e){return void 0===t?arguments.length<2?"":e:i(t)}},e3ee:function(t,e,n){"use strict";n.r(e),e["default"]="## 示例代码\r\n\r\n```\r\n<c-countdown></c-countdown>\r\n```\r\n\r\n## 属性配置\r\n\r\n属性 | 类型 | 默认值 | 说明\r\n---- | ---- | ---- | ----\r\nms | String \\| Number | - | 剩余毫秒数\r\nsec | String \\| Number | - | 剩余秒数\r\ndate | String | - | 结束时间\r\nicon | Boolean \\| String | false | 是否显示icon,可传入icon的样式名自定义图标\r\ncolor | String | - | 文字颜色"},e474:function(t,e,n){"use strict";n.r(e),e["default"]="## 示例代码\r\n\r\n```\r\n<c-switch></c-switch>\r\n```\r\n\r\n## 属性配置\r\n\r\n属性 | 类型 | 默认值 | 说明\r\n---- | ---- | ---- | ----\r\nvalue | Any | false | 开关当前的状态值,可使用v-model属性绑定变量\r\nstate-value | Array | [true, false] | 开关的状态值,第0项对于打开状态,第1项对应关闭状态\r\nstate-text | Array | ['开启', '关闭']] | 开关的状态文字,第0项对于打开状态,第1项对应关闭状态\r\nstate-color | Array | ['#00B578', '#eee'] | 开关的状态颜色,第0项对于打开状态,第1项对应关闭状态\r\n@beforeChange | Function(state, next) | - | 开关状态变更前的回调函数<br>**state**: 开关变更前的状态<br>**next**: 继续变更开关状态的方法,不调用则开关状态不变更\r\n@change | Function(state) | - | 开关状态变更后的回调函数<br>**state**: 开关变更后的状态"},e566:function(t,e,n){"use strict";n("d30d")},e5cb:function(t,e,n){"use strict";var i=n("d066"),r=n("1a2d"),o=n("9112"),a=n("3a9b"),s=n("d2bb"),l=n("e893"),c=n("aeb0"),u=n("7156"),d=n("e391"),h=n("ab36"),p=n("6f19"),f=n("83ab"),m=n("c430");t.exports=function(t,e,n,g){var v="stackTraceLimit",b=g?2:1,_=t.split("."),y=_[_.length-1],w=i.apply(null,_);if(w){var x=w.prototype;if(!m&&r(x,"cause")&&delete x.cause,!n)return w;var k=i("Error"),S=e((function(t,e){var n=d(g?e:t,void 0),i=g?new w(t):new w;return void 0!==n&&o(i,"message",n),p(i,S,i.stack,2),this&&a(x,this)&&u(i,this,S),arguments.length>b&&h(i,arguments[b]),i}));if(S.prototype=x,"Error"!==y?s?s(S,k):l(S,k,{name:!0}):f&&v in w&&(c(S,w,v),c(S,w,"prepareStackTrace")),l(S,w),!m)try{x.name!==y&&o(x,"name",y),x.constructor=S}catch(D){}return S}}},e61b:function(t,e,n){(function(e,i,r){t.exports=i(n("21bf"),n("3252"))})(0,(function(t){return function(e){var n=t,i=n.lib,r=i.WordArray,o=i.Hasher,a=n.x64,s=a.Word,l=n.algo,c=[],u=[],d=[];(function(){for(var t=1,e=0,n=0;n<24;n++){c[t+5*e]=(n+1)*(n+2)/2%64;var i=e%5,r=(2*t+3*e)%5;t=i,e=r}for(t=0;t<5;t++)for(e=0;e<5;e++)u[t+5*e]=e+(2*t+3*e)%5*5;for(var o=1,a=0;a<24;a++){for(var l=0,h=0,p=0;p<7;p++){if(1&o){var f=(1<<p)-1;f<32?h^=1<<f:l^=1<<f-32}128&o?o=o<<1^113:o<<=1}d[a]=s.create(l,h)}})();var h=[];(function(){for(var t=0;t<25;t++)h[t]=s.create()})();var p=l.SHA3=o.extend({cfg:o.cfg.extend({outputLength:512}),_doReset:function(){for(var t=this._state=[],e=0;e<25;e++)t[e]=new s.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(t,e){for(var n=this._state,i=this.blockSize/2,r=0;r<i;r++){var o=t[e+2*r],a=t[e+2*r+1];o=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),a=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8);var s=n[r];s.high^=a,s.low^=o}for(var l=0;l<24;l++){for(var p=0;p<5;p++){for(var f=0,m=0,g=0;g<5;g++){s=n[p+5*g];f^=s.high,m^=s.low}var v=h[p];v.high=f,v.low=m}for(p=0;p<5;p++){var b=h[(p+4)%5],_=h[(p+1)%5],y=_.high,w=_.low;for(f=b.high^(y<<1|w>>>31),m=b.low^(w<<1|y>>>31),g=0;g<5;g++){s=n[p+5*g];s.high^=f,s.low^=m}}for(var x=1;x<25;x++){s=n[x];var k=s.high,S=s.low,D=c[x];D<32?(f=k<<D|S>>>32-D,m=S<<D|k>>>32-D):(f=S<<D-32|k>>>64-D,m=k<<D-32|S>>>64-D);var C=h[u[x]];C.high=f,C.low=m}var E=h[0],A=n[0];E.high=A.high,E.low=A.low;for(p=0;p<5;p++)for(g=0;g<5;g++){x=p+5*g,s=n[x];var T=h[x],B=h[(p+1)%5+5*g],F=h[(p+2)%5+5*g];s.high=T.high^~B.high&F.high,s.low=T.low^~B.low&F.low}s=n[0];var $=d[l];s.high^=$.high,s.low^=$.low}},_doFinalize:function(){var t=this._data,n=t.words,i=(this._nDataBytes,8*t.sigBytes),o=32*this.blockSize;n[i>>>5]|=1<<24-i%32,n[(e.ceil((i+1)/o)*o>>>5)-1]|=128,t.sigBytes=4*n.length,this._process();for(var a=this._state,s=this.cfg.outputLength/8,l=s/8,c=[],u=0;u<l;u++){var d=a[u],h=d.high,p=d.low;h=16711935&(h<<8|h>>>24)|4278255360&(h<<24|h>>>8),p=16711935&(p<<8|p>>>24)|4278255360&(p<<24|p>>>8),c.push(p),c.push(h)}return new r.init(c,s)},clone:function(){for(var t=o.clone.call(this),e=t._state=this._state.slice(0),n=0;n<25;n++)e[n]=e[n].clone();return t}});n.SHA3=o._createHelper(p),n.HmacSHA3=o._createHmacHelper(p)}(Math),t.SHA3}))},e683:function(t,e,n){"use strict";t.exports=function(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}},e6c5:function(t,e,n){"use strict";n.r(e),e["default"]='## 示例代码\r\n\r\n```\r\n// 单选框\r\n<c-radio-group>\r\n\t<c-radio value="1">选项一</c-radio>\r\n\t<c-radio value="2">选项二</c-radio>\r\n</c-radio-group>\r\n<c-radio-group :options="[{"name": "选项一", "value": "1"}]"></c-radio-group>\r\n\r\n// 复选框\r\n<c-checkbox-group>\r\n\t<c-checkbox value="1">选项一</c-checkbox>\r\n\t<c-checkbox value="2">选项二</c-checkbox>\r\n</c-checkbox-group>\r\n<c-checkbox-group :options="[{"name": "选项一", "value": "1"}]"></c-checkbox-group>\r\n```\r\n\r\n## 属性配置\r\n\r\n### 单选框组 <c-radio-group\\>\r\n\r\n属性 | 类型 | 默认值 | 说明\r\n---- | ---- | ---- | ----\r\nvalue | String | - | 单选框组的值,可使用v-model属性绑定变量\r\nname | String | - | 字段名\r\ndisabled | Boolean | false | 是否禁用单选框组下所有单选框\r\nlimit | String \\| String | - | 最多可选项数\r\noptions | Array | - | 选项可以直接在组件中使用单选框组件也可通过该数据传入选项数据:[{"name": "选项名", "value": "选项值"}]\r\n\r\n### 单选框 <c-radio\\>\r\n\r\n属性 | 类型 | 默认值 | 说明\r\n---- | ---- | ---- | ----\r\nvalue | String \\| Number \\| Boolean | - | 在单选框组中表示该选项的值<br>独立使用时为布尔值,表示选中状态\r\ndisabled | Boolean | false | 是否禁用单选框\r\n\r\n### 复选框组 <c-checkbox-group\\>\r\n\r\n属性 | 类型 | 默认值 | 说明\r\n---- | ---- | ---- | ----\r\nvalue | String \\| Array | - | 复选框组的值,可输入逗号隔开的字符串(\'1,2\')或数组([1, 2]),可使用v-model属性绑定变量\r\nname | String | - | 字段名\r\ndisabled | Boolean | false | 是否禁用复选框组下所有复选框\r\nlimit | String \\| String | - | 最多可选项数\r\noptions | Array | - | 选项可以直接在组件中使用复选框组件也可通过该数据传入选项数据:[{"name": "选项名", "value": "选项值"}]\r\n\r\n### 复选框 <c-checkbox\\>\r\n```\r\n<c-checkbox\\>组件可在复选框组中使用,也可独立使用\r\n```\r\n\r\n属性 | 类型 | 默认值 | 说明\r\n---- | ---- | ---- | ----\r\nvalue | String \\| Number \\| Boolean | - | 在复选框组中表示该选项的值<br>独立使用时为布尔值,表示选中状态\r\ndisabled | Boolean | false | 是否禁用复选框\r\n@change | Function | - | 勾选状态改变事件,仅独立使用时可用\r\n@click | Function | - | 复选框点击事件'},e731:function(t,e,n){"use strict";n("ad2f")},e84a:function(t,e,n){},e893:function(t,e,n){"use strict";var i=n("1a2d"),r=n("56ef"),o=n("06cf"),a=n("9bf2");t.exports=function(t,e,n){for(var s=r(e),l=a.f,c=o.f,u=0;u<s.length;u++){var d=s[u];i(t,d)||n&&i(n,d)||l(t,d,c(e,d))}}},e8b5:function(t,e,n){"use strict";var i=n("c6b6");t.exports=Array.isArray||function(t){return"Array"===i(t)}},ed5e:function(t,e,n){},edd0:function(t,e,n){"use strict";var i=n("13d2"),r=n("9bf2");t.exports=function(t,e,n){return n.get&&i(n.get,e,{getter:!0}),n.set&&i(n.set,e,{setter:!0}),r.f(t,e,n)}},f488:function(t,e,n){"use strict";n("d525")},f4ea:function(t,e,n){(function(e,i,r){t.exports=i(n("21bf"),n("38ba"))})(0,(function(t){return t.mode.CTR=function(){var e=t.lib.BlockCipherMode.extend(),n=e.Encryptor=e.extend({processBlock:function(t,e){var n=this._cipher,i=n.blockSize,r=this._iv,o=this._counter;r&&(o=this._counter=r.slice(0),this._iv=void 0);var a=o.slice(0);n.encryptBlock(a,0),o[i-1]=o[i-1]+1|0;for(var s=0;s<i;s++)t[e+s]^=a[s]}});return e.Decryptor=n,e}(),t.mode.CTR}))},f5df:function(t,e,n){"use strict";var i=n("00ee"),r=n("1626"),o=n("c6b6"),a=n("b622"),s=a("toStringTag"),l=Object,c="Arguments"===o(function(){return arguments}()),u=function(t,e){try{return t[e]}catch(n){}};t.exports=i?o:function(t){var e,n,i;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=u(e=l(t),s))?n:c?o(e):"Object"===(i=o(e))&&r(e.callee)?"Arguments":i}},f67f:function(t,e,n){"use strict";n("d2d1")},f6b4:function(t,e,n){"use strict";var i=n("c532");function r(){this.handlers=[]}r.prototype.use=function(t,e){return this.handlers.push({fulfilled:t,rejected:e}),this.handlers.length-1},r.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)},r.prototype.forEach=function(t){i.forEach(this.handlers,(function(e){null!==e&&t(e)}))},t.exports=r},f772:function(t,e,n){"use strict";var i=n("5692"),r=n("90e3"),o=i("keys");t.exports=function(t){return o[t]||(o[t]=r(t))}},fb15:function(t,e,n){"use strict";if(n.r(e),n.d(e,"i18n",(function(){return Wf})),n.d(e,"cryptoJs",(function(){return ep.a})),n.d(e,"qrcode",(function(){return ip.a})),n.d(e,"validate",(function(){return Rs})),n.d(e,"shortcutKey",(function(){return Of})),n.d(e,"debounce",(function(){return Vf})),n.d(e,"throttle",(function(){return qf})),n.d(e,"cookie",(function(){return Xf})),n.d(e,"createStore",(function(){return On})),n.d(e,"getStore",(function(){return Rn})),n.d(e,"mapStore",(function(){return zn})),n.d(e,"countdown",(function(){return Yf})),"undefined"!==typeof window){var i=window.document.currentScript,r=i&&i.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);r&&(n.p=r[1])}n("14d9"),n("37f6"),n("4e02"),n("69b1");var o=function(){var t=this,e=t._self._c;return e("div",[e("div",{staticClass:"vue-component-library"},[e("div",{staticClass:"lang flex"},[e("c-link",{staticClass:"item",on:{click:function(e){t.$i18n.locale="zh"}}},[t._v("中文")]),e("c-link",{staticClass:"item",on:{click:function(e){t.$i18n.locale="en"}}},[t._v("English")])],1),t._l(t.docTab,(function(n,i){return e("c-button",{key:i,staticClass:"tab",attrs:{size:"form",color:t.crtTab==n?t.crtTabColor:""},on:{click:function(e){t.crtTab=n}}},[t._v(t._s(n))])})),e("div",{staticClass:"doc",domProps:{innerHTML:t._s(t.marked.parse("# "+t.crtTab))}}),e("api-button",{directives:[{name:"show",rawName:"v-show",value:"按钮"==t.crtTab,expression:"crtTab == '按钮'"}]}),e("api-input",{directives:[{name:"show",rawName:"v-show",value:"输入框"==t.crtTab,expression:"crtTab == '输入框'"}]}),e("api-options",{directives:[{name:"show",rawName:"v-show",value:"单复选框"==t.crtTab,expression:"crtTab == '单复选框'"}]}),e("api-selector",{directives:[{name:"show",rawName:"v-show",value:"选择器"==t.crtTab,expression:"crtTab == '选择器'"}]}),e("api-switch",{directives:[{name:"show",rawName:"v-show",value:"开关"==t.crtTab,expression:"crtTab == '开关'"}]}),e("api-file",{directives:[{name:"show",rawName:"v-show",value:"文件"==t.crtTab,expression:"crtTab == '文件'"}]}),e("api-editor",{directives:[{name:"show",rawName:"v-show",value:"编辑器"==t.crtTab,expression:"crtTab == '编辑器'"}]}),e("api-link",{directives:[{name:"show",rawName:"v-show",value:"链接"==t.crtTab,expression:"crtTab == '链接'"}]}),e("api-tooltip",{directives:[{name:"show",rawName:"v-show",value:"提示信息"==t.crtTab,expression:"crtTab == '提示信息'"}]}),e("api-title",{directives:[{name:"show",rawName:"v-show",value:"标题"==t.crtTab,expression:"crtTab == '标题'"}]}),e("api-pagination",{directives:[{name:"show",rawName:"v-show",value:"分页栏"==t.crtTab,expression:"crtTab == '分页栏'"}]}),e("api-table",{directives:[{name:"show",rawName:"v-show",value:"表格"==t.crtTab,expression:"crtTab == '表格'"}]}),e("api-form",{directives:[{name:"show",rawName:"v-show",value:"表单"==t.crtTab,expression:"crtTab == '表单'"}]}),e("api-detail",{directives:[{name:"show",rawName:"v-show",value:"详情"==t.crtTab,expression:"crtTab == '详情'"}]}),e("api-popup",{directives:[{name:"show",rawName:"v-show",value:"消息弹窗"==t.crtTab,expression:"crtTab == '消息弹窗'"}]}),e("api-dialog",{directives:[{name:"show",rawName:"v-show",value:"会话弹窗"==t.crtTab,expression:"crtTab == '会话弹窗'"}]}),e("api-window",{directives:[{name:"show",rawName:"v-show",value:"悬浮窗口"==t.crtTab,expression:"crtTab == '悬浮窗口'"}]}),e("api-preview",{directives:[{name:"show",rawName:"v-show",value:"媒体预览"==t.crtTab,expression:"crtTab == '媒体预览'"}]}),e("api-tab",{directives:[{name:"show",rawName:"v-show",value:"选项卡"==t.crtTab,expression:"crtTab == '选项卡'"}]}),e("api-layout",{directives:[{name:"show",rawName:"v-show",value:"布局"==t.crtTab,expression:"crtTab == '布局'"}]}),e("api-module",{directives:[{name:"show",rawName:"v-show",value:"模块"==t.crtTab,expression:"crtTab == '模块'"}]}),e("api-drag-sort",{directives:[{name:"show",rawName:"v-show",value:"拖拽排序"==t.crtTab,expression:"crtTab == '拖拽排序'"}]}),e("api-dropdown",{directives:[{name:"show",rawName:"v-show",value:"下拉菜单"==t.crtTab,expression:"crtTab == '下拉菜单'"}]}),e("api-right-menu",{directives:[{name:"show",rawName:"v-show",value:"右键菜单"==t.crtTab,expression:"crtTab == '右键菜单'"}]}),e("api-tree",{directives:[{name:"show",rawName:"v-show",value:"树"==t.crtTab,expression:"crtTab == '树'"}]}),e("api-steps",{directives:[{name:"show",rawName:"v-show",value:"步骤条"==t.crtTab,expression:"crtTab == '步骤条'"}]}),e("api-progress",{directives:[{name:"show",rawName:"v-show",value:"进度条"==t.crtTab,expression:"crtTab == '进度条'"}]}),e("api-qrcode",{directives:[{name:"show",rawName:"v-show",value:"二维码"==t.crtTab,expression:"crtTab == '二维码'"}]}),e("api-countdown",{directives:[{name:"show",rawName:"v-show",value:"倒计时"==t.crtTab,expression:"crtTab == '倒计时'"}]})],2)])},a=[],s=function(){var t=this,e=t._self._c;return e("div",[e("div",[t._l(t.buttonSize,(function(n,i){return e("div",{key:i},[e("c-button",{key:"n"+i,attrs:{size:n}},[t._v("按钮")]),t._l(t.buttonHollow,(function(i,r){return t._l(t.buttonColor,(function(o,a){return e("c-button",{key:`${r}${a}`,attrs:{size:n,color:o,hollow:i}},[t._v("按钮")])}))}))],2)})),e("div",[e("c-button",{attrs:{disabled:""}},[t._v("按钮")])],1),e("div",{staticClass:"flex"},[e("c-button",{attrs:{"prepend-icon":"c-icon-search"}},[t._v("按钮")]),e("c-button",{attrs:{"append-icon":"c-icon-search"}},[t._v("按钮")])],1)],2),e("div",{staticClass:"doc",domProps:{innerHTML:t._s(t.$parent.loadDoc("button"))}})])},l=[],c={data(){return{buttonSize:["normal","form","dialog"],buttonColor:["main","lesser","red","green","blue","yellow"],buttonHollow:[!0,!1]}}},u=c;n("e566");function d(t,e,n,i,r,o,a,s){var l,c="function"===typeof t?t.options:t;if(e&&(c.render=e,c.staticRenderFns=n,c._compiled=!0),i&&(c.functional=!0),o&&(c._scopeId="data-v-"+o),a?(l=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),r&&r.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},c._ssrRegister=l):r&&(l=s?function(){r.call(this,(c.functional?this.parent:this).$root.$options.shadowRoot)}:r),l)if(c.functional){c._injectStyles=l;var u=c.render;c.render=function(t,e){return l.call(e),u(t,e)}}else{var d=c.beforeCreate;c.beforeCreate=d?[].concat(d,l):[l]}return{exports:t,options:c}}var h=d(u,s,l,!1,null,"1a1f6dc0",null),p=h.exports,f=function(){var t=this,e=t._self._c;return e("div",[e("div",{staticStyle:{width:"400px"}},[e("p",[e("c-input",{on:{suggest:t.suggestHandle}})],1),e("br"),e("p",[e("c-input",{attrs:{type:"number",decimal:"2",range:"0,9999"}})],1),e("br"),e("p",[e("c-input",{attrs:{"prepend-text":"前置文本","append-text":"后置文本"}})],1),e("br"),e("p",[e("c-input",{scopedSlots:t._u([{key:"prependText",fn:function(){return[e("i",{staticClass:"c-icon-search"})]},proxy:!0},{key:"prependIcon",fn:function(){return[e("i",{staticClass:"c-icon-search"})]},proxy:!0},{key:"appendIcon",fn:function(){return[e("i",{staticClass:"c-icon-media"})]},proxy:!0},{key:"appendText",fn:function(){return[e("i",{staticClass:"c-icon-media"})]},proxy:!0}])})],1),e("br"),e("p",[e("c-input",{attrs:{type:"stepper",step:"10",range:"0,100"}})],1),e("br"),e("p",[e("c-input",{attrs:{type:"stepper",step:"0.1",range:"0,1",decimal:"1","step-controls":"side"}})],1),e("br"),e("p",[e("c-input",{attrs:{type:"password",visible:""}})],1),e("br"),e("p",[e("c-input",{attrs:{type:"textarea",maxlength:"100"}})],1)]),e("div",{staticClass:"doc",domProps:{innerHTML:t._s(t.$parent.loadDoc("input"))}})])},m=[],g={data(){return{}},mounted(){},methods:{suggestHandle(t,e){let n=this.$parent.random(0,6),i=n+this.$parent.random(2,8),r=[];for(let o=n;o<i;o++)r.push(t+"输入建议"+o);e(r)}}},v=g,b=d(v,f,m,!1,null,"5bbd0d88",null),_=b.exports,y=function(){var t=this,e=t._self._c;return e("div",[e("div",{staticStyle:{width:"400px"}},[e("p",[e("c-radio-group",{attrs:{value:"2"},on:{change:t.changeHandle}},t._l(t.options,(function(n,i){return e("c-radio",{key:i,attrs:{value:n.value},on:{change:t.changeHandle}},[t._v(t._s(t.$t(n.name)))])})),1)],1),e("p",[e("c-radio-group",{attrs:{options:t.options,value:"3",disabled:""},on:{change:t.changeHandle}})],1),e("p",[e("c-checkbox-group",{attrs:{limit:"2"},on:{change:t.changeHandle}},t._l(t.options,(function(n,i){return e("c-checkbox",{key:i,attrs:{value:n.value},on:{change:t.changeHandle}},[t._v(t._s(t.$t(n.name)))])})),1)],1),e("p",[e("c-checkbox-group",{attrs:{options:t.options,value:"2,3",disabled:""},on:{change:t.changeHandle}})],1)]),e("div",{staticClass:"doc",domProps:{innerHTML:t._s(t.$parent.loadDoc("options"))}})])},w=[],x={data(){return{options:[{name:"option1",value:1},{name:"option2",value:2},{name:"option3",value:3}]}},mounted(){},methods:{changeHandle(t){console.log(t)}}},k=x,S=d(k,y,w,!1,null,"7eb1e109",null),D=S.exports,C=function(){var t=this,e=t._self._c;return e("div",[e("div",[e("c-form",{attrs:{"unit-width":"400"}},[e("c-form-item",{attrs:{label:"下拉框",tip:"单选"}},[e("p",[e("c-select",{attrs:{options:t.options,value:"1"},on:{change:t.changeHandle}})],1)]),e("c-form-item",{attrs:{tip:"单选 + 搜索"}},[e("p",[e("c-select",{attrs:{options:t.options,value:"1",search:{add:!0}},on:{add:t.addHandle,change:t.changeHandle}})],1)]),e("c-form-item",{attrs:{tip:"多选"}},[e("p",[e("c-select",{attrs:{options:t.options,value:"1",multiple:""},on:{change:t.changeHandle}})],1)]),e("c-form-item",{attrs:{tip:"多选 + 搜索"}},[e("p",[e("c-select",{attrs:{options:t.options,value:"1",multiple:"",search:{add:!0}},on:{add:t.addHandle,change:t.changeHandle}})],1)]),e("c-form-item",{attrs:{tip:"多选换行展示 + 搜索"}},[e("p",[e("c-select",{attrs:{options:t.options,value:"1",multiple:{linefeed:!0},search:""},on:{change:t.changeHandle}})],1)]),e("c-form-item",{attrs:{tip:"单选 + 异步选项"}},[e("p",[e("c-select",{attrs:{"value-data":t.initRandomOptions,async:""},on:{search:t.randomOptions,change:t.changeHandle}})],1)]),e("c-form-item",{attrs:{tip:"多选 + 异步选项"}},[e("p",[e("c-select",{attrs:{multiple:"","value-data":t.initRandomOptions,async:""},on:{search:t.randomOptions,change:t.changeHandle}})],1)]),e("c-form-item",{attrs:{tip:"自定义事件"}},[e("p",[e("c-select",{attrs:{multiple:{linefeed:!0}},on:{customEvent:t.customEvent,change:t.changeHandle}})],1)]),e("c-form-item",{attrs:{label:"地址框"}},[e("p",[e("c-region",{attrs:{level:"4"},on:{change:t.changeHandle}})],1)]),e("c-form-item",{attrs:{label:"日期框"}},[e("p",[e("c-datetime",{on:{change:t.changeHandle}})],1),e("br"),e("p",[e("c-datetime",{attrs:{range:""},on:{change:t.changeHandle}})],1)]),e("c-form-item",{attrs:{label:"颜色框"}},[e("p",[e("c-color",{on:{change:t.changeHandle}})],1)]),e("c-form-item",{attrs:{label:"穿梭框"}},[e("p",[e("c-transfer",{attrs:{data:t.initRandomOptions,search:""},on:{search:t.randomOptions,change:t.changeHandle}})],1)])],1)],1),e("div",{staticClass:"doc",domProps:{innerHTML:t._s(t.$parent.loadDoc("selector"))}})])},E=[],A={data(){return{options:[{name:"option1",value:1},{name:"option2",value:2,children:[{name:"optionSub1",value:21},{name:"optionSub2",value:22,children:[]},{name:"optionSub3",value:23}]},{name:"option3",value:3}],initRandomOptions:[]}},mounted(){this.randomOptions("",t=>{this.initRandomOptions=t})},methods:{randomOptions(t,e){let n=this.$parent.random(0,6),i=n+this.$parent.random(2,8),r=[];for(let o=n;o<i;o++)r.push({name:"选项"+o,value:o});e(r)},customEvent(t,e){this.randomOptions("",e)},changeHandle(t){console.log(t)},addHandle(t,e){e({name:t,value:t})}}},T=A,B=d(T,C,E,!1,null,"f572ee30",null),F=B.exports,$=function(){var t=this,e=t._self._c;return e("div",[e("div",[e("p",[e("c-switch",{on:{change:t.changeHandle}})],1)]),e("div",{staticClass:"doc",domProps:{innerHTML:t._s(t.$parent.loadDoc("switch"))}})])},L=[],M={data(){return{}},mounted(){},methods:{changeHandle(t){console.log(t)}}},I=M,P=d(I,$,L,!1,null,"b20cbce2",null),N=P.exports,H=function(){var t=this,e=t._self._c;return e("div",[e("div",[e("p",[e("c-upload-file",{attrs:{value:"https://infinityicon.infinitynewtab.com/user-share-icon/d8b62f4d64bda8800b1c788cd5ba3c68.png,https://infinityicon.infinitynewtab.com/user-share-icon/d1b00e6f33c7c9c436c9fbd20a3278d7.png",type:"image,video",multiple:"2",media:""},scopedSlots:t._u([{key:"tip",fn:function({type:n}){return[e("p",[t._v("自定义的提示说明")]),e("p",[t._v(t._s(n))])]}}])})],1),e("br"),e("p",[e("c-upload-file",{attrs:{value:"https://infinityicon.infinitynewtab.com/user-share-icon/d8b62f4d64bda8800b1c788cd5ba3c68.png",type:"image,video",media:"",tip:"提示说明"}})],1),e("br"),e("p",[e("c-upload-file",{attrs:{value:"http://placehold.it/750x750/666/fff.png,http://placehold.it/750x750/666/fff.png",type:"word,excel",tip:"tip属性"}})],1),e("br"),e("br"),e("p",[e("c-file",{attrs:{src:"https://infinityicon.infinitynewtab.com/user-share-icon/d8b62f4d64bda8800b1c788cd5ba3c68.png",media:""}})],1),e("br"),e("p",[e("c-file",{attrs:{src:"http://placehold.it/750x750/666/fff.png"}})],1)]),e("div",{staticClass:"doc",domProps:{innerHTML:t._s(t.$parent.loadDoc("file"))}})])},O=[],R={data(){return{}},mounted(){},methods:{}},z=R,U=d(z,H,O,!1,null,"b1ed53f8",null),K=U.exports,W=function(){var t=this,e=t._self._c;return e("div",[e("div",{staticStyle:{width:"800px"}},[e("p",[e("c-editor")],1)]),e("br"),e("div",{staticClass:"doc",domProps:{innerHTML:t._s(t.$parent.loadDoc("editor"))}})])},j=[],V={data(){return{}},mounted(){},methods:{}},q=V,Y=d(q,W,j,!1,null,"1036af41",null),X=Y.exports,G=function(){var t=this,e=t._self._c;return e("div",[e("div",[e("p",[e("c-link",{attrs:{href:"https://www.baidu.com/",target:"_blank"}},[t._v("链接名称")])],1),e("br"),e("p",[e("c-link",{attrs:{href:"https://www.baidu.com/",target:"_blank"}})],1),e("br"),e("p",[e("c-link",{attrs:{href:"https://www.baidu.com/",target:"_blank",icon:""}},[t._v("带icon的链接")])],1),e("br"),e("p",[e("c-link",{attrs:{href:"https://www.baidu.com/",target:"_blank",icon:"c-icon-search"}},[t._v("自定义icon的链接")])],1),e("br"),e("p",[e("c-link",{attrs:{color:"main",href:"https://www.baidu.com/",target:"_blank"}},[t._v("主色链接")])],1),e("br"),e("p",[e("c-link",{attrs:{color:"lesser",href:"https://www.baidu.com/",target:"_blank"}},[t._v("辅色链接")])],1),e("br"),e("p",[e("c-link",{attrs:{color:"gray",href:"https://www.baidu.com/",target:"_blank"}},[t._v("灰色链接")])],1),e("br")]),e("div",{staticClass:"doc",domProps:{innerHTML:t._s(t.$parent.loadDoc("link"))}})])},Z=[],Q={data(){return{}},mounted(){},methods:{}},J=Q,tt=d(J,G,Z,!1,null,"8e49391a",null),et=tt.exports,nt=function(){var t=this,e=t._self._c;return e("div",[e("div",{staticStyle:{width:"320px",margin:"0 auto"}},[e("div",{staticClass:"flex-start-center",staticStyle:{height:"50px","margin-bottom":"20px"}},[e("span",{staticStyle:{"margin-right":"10px"}},[t._v("默认提示信息")]),e("c-tooltip",{attrs:{tip:"提示信息内容"}}),e("span",{staticStyle:{margin:"0 10px 0 20px"}},[t._v("默认提示信息(白色)")]),e("c-tooltip",{attrs:{tip:"提示信息内容",color:"white"}})],1),e("div",{staticClass:"flex-between",staticStyle:{padding:"0 100px"}},[e("c-tooltip",{attrs:{tip:"提示信息内容",position:"top",align:"start"}},[e("c-button",{ref:"button"},[t._v("上左")])],1),e("c-tooltip",{attrs:{tip:"提示信息内容",position:"top",align:"end"}},[e("c-button",{ref:"button"},[t._v("上右")])],1)],1),e("div",{staticClass:"flex-between",staticStyle:{height:"80px"}},[e("div",{staticClass:"flex-column flex-between"},[e("c-tooltip",{attrs:{position:"left",align:"start"},scopedSlots:t._u([{key:"tip",fn:function(){return[e("p",[t._v("提示信息内容")]),e("p",[t._v("提示信息内容")])]},proxy:!0}])},[e("c-button",{ref:"button"},[t._v("左上")])],1),e("c-tooltip",{attrs:{position:"left",align:"end"},scopedSlots:t._u([{key:"tip",fn:function(){return[e("p",[t._v("提示信息内容")]),e("p",[t._v("提示信息内容")])]},proxy:!0}])},[e("c-button",{ref:"button"},[t._v("左下")])],1)],1),e("div",{staticClass:"flex-column flex-between"},[e("c-tooltip",{attrs:{position:"right",align:"start"},scopedSlots:t._u([{key:"tip",fn:function(){return[e("p",[t._v("提示信息内容")]),e("p",[t._v("提示信息内容")])]},proxy:!0}])},[e("c-button",{ref:"button"},[t._v("右上")])],1),e("c-tooltip",{attrs:{position:"right",align:"end"},scopedSlots:t._u([{key:"tip",fn:function(){return[e("p",[t._v("提示信息内容")]),e("p",[t._v("提示信息内容")])]},proxy:!0}])},[e("c-button",{ref:"button"},[t._v("右下")])],1)],1)]),e("div",{staticClass:"flex-between",staticStyle:{padding:"0 100px"}},[e("c-tooltip",{attrs:{tip:"提示信息内容",position:"bottom",align:"start"}},[e("c-button",{ref:"button"},[t._v("下左")])],1),e("c-tooltip",{attrs:{tip:"提示信息内容",position:"bottom",align:"end"}},[e("c-button",{ref:"button"},[t._v("下右")])],1)],1)]),e("div",{staticClass:"doc",domProps:{innerHTML:t._s(t.$parent.loadDoc("tooltip"))}})])},it=[],rt={data(){return{}},mounted(){},methods:{}},ot=rt,at=d(ot,nt,it,!1,null,"680d77da",null),st=at.exports,lt=function(){var t=this,e=t._self._c;return e("div",[e("div",[e("c-title",[t._v("标题名称")]),e("c-title",{attrs:{icon:"c-icon-search"}},[t._v("自定义图标标题")])],1),e("div",{staticClass:"doc",domProps:{innerHTML:t._s(t.$parent.loadDoc("title"))}})])},ct=[],ut={data(){return{}},mounted(){},methods:{}},dt=ut,ht=d(dt,lt,ct,!1,null,"211d9b4c",null),pt=ht.exports,ft=function(){var t=this,e=t._self._c;return e("div",[e("div",{staticStyle:{padding:"20px",background:"#F5F5F5"}},[e("c-pagination",{attrs:{total:"100"},on:{handle:t.update}})],1)])},mt=[],gt={data(){return{}},mounted(){},methods:{update(t){console.log(t)}}},vt=gt,bt=d(vt,ft,mt,!1,null,"2b668974",null),_t=bt.exports,yt=function(){var t=this,e=t._self._c;return e("div",[e("div",{staticClass:"preview",staticStyle:{"margin-top":"20px"}},[e("c-table",{ref:"table",attrs:{border:"","fixed-width":t.fixedWidth,"width-resize":"",height:"500",paging:!1},on:{rowClick:t.rowClick,widthResize:t.widthResize}},[e("c-table-column",{attrs:{type:"drag"},on:{handle:t.colHandle}}),e("c-table-column",{attrs:{type:"selector",name:"selected"},on:{handle:t.colHandle}}),e("c-table-column",{attrs:{fixed:"left",label:"col.expand",type:"expand","expand-button":({data:t})=>4!=t.num,"expand-limit":"3","add-button":""},on:{handle:t.expandHandle,add:t.addHandle},scopedSlots:t._u([{key:"default",fn:function({data:e}){return[t._v(" "+t._s(e.children?e.text:4==e.num?"不可展开":"可展开")+" ")]}}])}),e("c-table-column",{attrs:{label:"col.normal",name:"num",required:"",summed:""},scopedSlots:t._u([{key:"summed",fn:function({total:e}){return[t._v(" 默认数据合计:"+t._s(e)+" ")]}}])}),e("c-table-column",{attrs:{label:"col.custom",summed:({data:t})=>t.num},scopedSlots:t._u([{key:"tip",fn:function(){return[e("c-tooltip",{attrs:{tip:"123"}})]},proxy:!0},{key:"default",fn:function({data:n}){return[e("span",[t._v("num: "+t._s(n.num.toFixed(2)))])]}},{key:"summed",fn:function({total:e}){return[t._v(" 自定义数据合计:"+t._s(e)+" ")]}}])}),e("c-table-column",{attrs:{label:"col.sort",type:"sort","align-center":""},on:{handle:t.sortHandle}}),e("c-table-column",{attrs:{label:"col.complex"}},[e("c-table-column",{attrs:{label:"col.children",name:"rowspan","col-span":t.colSpan,"row-span":t.rowSpan}}),e("c-table-column",{attrs:{label:"col.children",name:"rowspan"}})],1),e("c-table-column",{attrs:{name:"_selected"},scopedSlots:t._u([{key:"head",fn:function(){return[e("c-button",[t._v("自定义头部")])]},proxy:!0}])}),t.col?e("c-table-column",{attrs:{label:"动态列1"}},[t._v("1")]):t._e(),t.col?e("c-table-column",{attrs:{label:"动态列2"}},[t._v("2")]):t._e(),e("c-table-column",{attrs:{label:"静态列"}},[t._v("0")]),t.col?t._e():e("c-table-column",{attrs:{fixed:"right",label:"动态列3"}},[t._v("3")]),e("c-table-column",{attrs:{type:"button",label:"col.handle","button-limit":"3"},scopedSlots:t._u([{key:"default",fn:function({data:n}){return[n.button?t._e():e("c-table-button",{on:{click:function(t){n.button=!n.button}}},[t._v("数据按钮1")]),n.button?e("c-table-button",{on:{click:function(t){n.button=!n.button}}},[t._v("数据按钮2")]):t._e(),t.button?t._e():e("c-table-button",{attrs:{disabled:t.disabledButton&&{tip:"asd"}},on:{click:function(e){t.button=!t.button}}},[t._v("全局按钮1")]),t.button?e("c-table-button",{on:{click:function(e){t.button=!t.button}}},[t._v("全局按钮2")]):t._e(),e("c-table-button",{attrs:{disabled:t.disabledButton&&{tip:"asd"}}},[t._v("按钮")]),e("c-table-button",[t._v("按钮")])]}}])})],1)],1),e("br"),e("c-button",{on:{click:function(e){t.col=!t.col}}},[t._v("切换列")]),e("c-button",{on:{click:function(e){t.button=!t.button}}},[t._v("切换按钮")]),e("c-button",{on:{click:function(e){t.disabledButton=!t.disabledButton}}},[t._v("切换按钮禁用")]),e("c-button",{on:{click:function(e){t.fixedWidth=!t.fixedWidth}}},[t._v(t._s(t.fixedWidth?"自动宽度":"固定宽度"))]),e("c-button",{on:{click:function(e){return t.getData()}}},[t._v("获取数据")]),e("c-button",{on:{click:function(e){return t.getData("selected")}}},[t._v("获取选中行")]),e("div",{staticClass:"doc",domProps:{innerHTML:t._s(t.$parent.loadDoc("table"))}})],1)},wt=[],xt={data(){return{col:!1,button:!1,disabledButton:!0,fixedWidth:!1}},mounted(){this.$refs.table.setData([{selected:!0,name:"admin",num:2,date:"2024-01-01 00:00:00",rowspan:1,text:"基于标准 HTML、CSS 和 JavaScript 构建",button:!1},{name:"admin",num:4,date:"2024-01-01 00:00:00",rowspan:2,text:"基于标准 HTML、CSS 和 JavaScript 构建",button:!1},{name:"admin",num:5,date:"2024-01-01 00:00:00",rowspan:2,text:"基于标准 HTML、CSS 和 JavaScript 构建",button:!1},{selected:!0,name:"admin",num:1,date:"2024-01-01 00:00:00",rowspan:4,text:"基于标准 HTML、CSS 和 JavaScript 构建",button:!1},{name:"admin",num:3,date:"2024-01-01 00:00:00",rowspan:5,text:"基于标准 HTML、CSS 和 JavaScript 构建",button:!1}])},methods:{rowSpan({data:t},e){return e.filter(({data:e})=>e.rowspan==t.rowspan).length},colSpan({data:t},e){return 1==t.rowspan?2:1},rowClick(t){console.log(t)},expandHandle(t,e){setTimeout(()=>{e([{children:!0,text:"子节点1",num:0},{children:!0,text:"子节点2",num:0}])},1e3)},addHandle(t,e){setTimeout(()=>{e({children:!0,text:"新子节点",num:0})},1e3)},colHandle(t){console.log(t)},sortHandle(t,e,n){console.log(t,e),n()},getData(t){console.log(this.$refs.table.getData(t))},widthResize(t){console.log(t)}}},kt=xt,St=d(kt,yt,wt,!1,null,"04576e3d",null),Dt=St.exports,Ct=function(){var t=this,e=t._self._c;return e("div",[e("div",[e("c-form",{ref:"form",attrs:{vertical:t.verticalState,"unit-width":"400"}},[e("c-form-item",{attrs:{label:"form.label"},scopedSlots:t._u([{key:"handle",fn:function(){return[e("c-link",{attrs:{href:"https://www.baidu.com/",target:"_blank"}},[t._v("跳转链接")])]},proxy:!0}])},[e("c-input",{attrs:{name:"input"}})],1),e("c-form-item",{attrs:{label:"form.label"}},[e("c-radio-group",{attrs:{name:"radio"}},t._l(t.options,(function(n,i){return e("c-radio",{key:i,attrs:{value:n.value}},[t._v(t._s(t.$t(n.name)))])})),1)],1),e("c-form-item",{attrs:{label:"form.label"}},[e("c-checkbox-group",{attrs:{name:"checkbox"}},t._l(t.options,(function(n,i){return e("c-checkbox",{key:i,attrs:{value:n.value}},[t._v(t._s(t.$t(n.name)))])})),1)],1),e("c-form-item",{attrs:{label:"form.labelWithAsterisk",required:""}},[e("c-select",{attrs:{name:"select",options:t.options}})],1),e("c-form-item",{attrs:{label:"form.labelTip",tip:"提示信息"}},[e("c-region",{attrs:{level:"4","province-name":"province","city-name":"city","county-name":"county","address-name":"address"}})],1),e("c-form-item",{attrs:{label:"form.labelCustomTip"},scopedSlots:t._u([{key:"tip",fn:function(){return[e("span",{staticStyle:{color:"blue"}},[t._v("自定义提示信息")])]},proxy:!0}])},[e("c-datetime",{attrs:{type:"date",range:"","start-name":"start","end-name":"end"}})],1),e("c-form-item",{attrs:{label:"form.label"}},[e("c-color",{attrs:{name:"color"}})],1),e("c-form-item",{attrs:{label:"form.label"}},[e("c-switch",{attrs:{name:"switch","state-value":[1,0]}})],1),e("c-form-item",{attrs:{label:"form.label"}},[e("c-transfer",{attrs:{name:"transfer",sort:"",data:t.initRandomOptions},on:{search:t.randomOptions}})],1),e("c-form-item",{attrs:{label:"form.label"}},[e("c-upload-file",{attrs:{name:"file",type:"image,video"}})],1),e("c-form-item",{attrs:{label:"form.label"}},[e("c-upload-file",{attrs:{name:"file",multiple:"",media:"",type:"image,video"}})],1),e("c-form-item",{attrs:{label:"form.label",name:"complex"}},[e("p",{staticStyle:{"line-height":"38px"}},[t._v("复杂表单项内容...")]),e("c-input",{attrs:{name:"complexInput"}})],1),e("c-form-item",[e("c-button",{on:{click:function(e){t.verticalState=!t.verticalState}}},[t._v(t._s(t.verticalState?"横向排列":"纵向排列"))]),e("c-button",{on:{click:t.getData}},[t._v("获取数据")]),e("c-button",{on:{click:t.setData}},[t._v("回填数据")]),e("c-button",{on:{click:t.validData}},[t._v("校验")]),e("c-button",{on:{click:t.clearData}},[t._v("清空")])],1)],1)],1),e("div",{staticClass:"doc",domProps:{innerHTML:t._s(t.$parent.loadDoc("form"))}})])},Et=[],At={data(){return{verticalState:!1,options:[{name:"option1",value:1},{name:"option2",value:2},{name:"option3",value:3}],initRandomOptions:[]}},mounted(){this.randomOptions("",t=>{this.initRandomOptions=t})},methods:{randomOptions(t,e){let n=this.$parent.random(0,6),i=n+this.$parent.random(2,8),r=[];for(let o=n;o<i;o++)r.push({name:"选项"+o,value:o});e(r)},setData(){this.$refs.form.set({input:1,radio:2,checkbox:[1,3],select:2,province:"province1",city:"city2",county:"county1",address:"address",start:"2024-01-01",end:"2024-01-31",color:"#000000",switch:1,transfer:[2,4,6],file:["https://infinityicon.infinitynewtab.com/user-share-icon/d8b62f4d64bda8800b1c788cd5ba3c68.png","https://infinityicon.infinitynewtab.com/user-share-icon/d1b00e6f33c7c9c436c9fbd20a3278d7.png"],complexInput:"1"})},getData(){console.log(this.$refs.form.get())},clearData(){this.$refs.form.clear()},validData(){this.$refs.form.validate({breakWhenFail:!1,rule:{input:{check:"输入框内容为空"},radio:"选项不能为空",checkbox:"选项不能为空",select:[{type:"empty",message:"下拉框内容为空"},{type:"function",fun:()=>new Promise(t=>{setTimeout(()=>{t(!0)},1e3)})}],county:"地区不能为空",end:"日期不能为空",color:"颜色不能为空",transfer:"穿梭框不能为空",file:"请上传文件",complex:t=>!!t.complexInput||"复杂字段校验失败"},success:t=>{console.log("success",t)},fail:t=>{console.log("fail",t)}})}}},Tt=At,Bt=d(Tt,Ct,Et,!1,null,"7f8a3797",null),Ft=Bt.exports,$t=function(){var t=this,e=t._self._c;return e("div",[e("div",[e("c-detail",{attrs:{column:"3"}},[e("c-detail-item",{attrs:{label:"字段名"}},[t._v(" 内容 ")]),e("c-detail-item",{attrs:{label:"字段名"}},[t._v(" 内容 ")]),e("c-detail-item",{attrs:{label:"字段名"}},[t._v(" 内容 ")]),e("c-detail-item",{attrs:{label:"字段名",colspan:"2"}},[t._v(" 单独设置占两列 ")]),e("c-detail-item",{attrs:{label:"字段名"}},[t._v(" 内容 ")])],1)],1),e("div",{staticClass:"doc",domProps:{innerHTML:t._s(t.$parent.loadDoc("detail"))}})])},Lt=[],Mt={data(){return{}},mounted(){},methods:{}},It=Mt,Pt=d(It,$t,Lt,!1,null,"6bceeb66",null),Nt=Pt.exports,Ht=function(){var t=this,e=t._self._c;return e("div",[e("div",[e("div",[e("c-button",{staticClass:"api-handle",on:{click:function(e){return t.message()}}},[t._v("普通消息弹窗")]),e("c-button",{staticClass:"api-handle",on:{click:function(e){return t.message("success")}}},[t._v("成功消息弹窗")]),e("c-button",{staticClass:"api-handle",on:{click:function(e){return t.message("warn")}}},[t._v("警告消息弹窗")]),e("c-button",{staticClass:"api-handle",on:{click:function(e){return t.message("fail")}}},[t._v("失败消息弹窗")])],1),e("div",[e("c-button",{staticClass:"api-handle",on:{click:function(e){return t.notice()}}},[t._v("普通通知弹窗")]),e("c-button",{staticClass:"api-handle",on:{click:function(e){return t.notice("success")}}},[t._v("成功通知弹窗")]),e("c-button",{staticClass:"api-handle",on:{click:function(e){return t.notice("warn")}}},[t._v("警告通知弹窗")]),e("c-button",{staticClass:"api-handle",on:{click:function(e){return t.notice("fail")}}},[t._v("失败通知弹窗")]),e("c-button",{staticClass:"api-handle",on:{click:function(e){return t.noticeButton()}}},[t._v("带按钮的通知弹窗")])],1),e("div",[e("c-button",{staticClass:"api-handle",on:{click:function(e){return t.confirm("enquire")}}},[t._v("询问确认弹窗")]),e("c-button",{staticClass:"api-handle",on:{click:function(e){return t.confirm("warn")}}},[t._v("提醒确认弹窗")])],1),e("div",[e("c-button",{staticClass:"api-handle",on:{click:function(e){return t.loading()}}},[t._v("普通加载弹窗")]),e("c-button",{staticClass:"api-handle",on:{click:function(e){return t.loading("加载中")}}},[t._v("带文案加载弹窗")])],1)]),e("div",{staticClass:"doc",domProps:{innerHTML:t._s(t.$parent.loadDoc("popup"))}})])},Ot=[],Rt={data(){return{}},mounted(){},methods:{message(t){this.$message({type:t,message:"消息弹窗内容"})},notice(t){this.$notice({type:t,title:"通知标题",message:"通知弹窗内容"})},noticeButton(){this.$notice({title:"通知标题",message:"通知弹窗内容",button:[{name:"不再提醒",callback(){console.log(0)}}]})},confirm(t){this.$confirm({type:t,title:"确认弹窗标题",message:"确认弹窗内容",resolve:()=>{console.log("resolve")},cancel:()=>{console.log("cancel")}})},loading(t){this.$loading({message:t,timeout:1e3})}}},zt=Rt,Ut=d(zt,Ht,Ot,!1,null,"694f65b0",null),Kt=Ut.exports,Wt=function(){var t=this,e=t._self._c;return e("div",[e("div",[e("div",[e("c-button",{staticClass:"api-handle",on:{click:function(e){return t.dialog("popup")}}},[t._v("弹出模式会话弹窗")]),e("c-button",{staticClass:"api-handle",on:{click:function(e){return t.dialog("slide")}}},[t._v("侧滑模式会话弹窗")]),e("c-button",{staticClass:"api-handle",on:{click:function(e){return t.dialog("mask")}}},[t._v("无遮罩会话弹窗")])],1)]),e("div",{staticClass:"doc",domProps:{innerHTML:t._s(t.$parent.loadDoc("dialog"))}}),e("c-dialog",{ref:"popup",attrs:{title:"会话弹窗1",height:"199","resize-button":"","move-limit":!1}},[e("div",{staticStyle:{height:"199px"}},[t._v(" 会话弹窗内容 ")])]),e("c-dialog",{ref:"mask",attrs:{title:"会话弹窗2","resize-button":"",mask:!1}},[e("div",{staticStyle:{height:"199px"}},[t._v(" 会话弹窗内容 ")])]),e("c-dialog",{ref:"slide",attrs:{mode:"slide",title:"会话弹窗3","resize-button":"","move-limit":!1}},[e("div",{staticStyle:{height:"199px"}},[t._v(" 会话弹窗内容 ")])])],1)},jt=[],Vt={data(){return{}},mounted(){},methods:{dialog(t){this.$refs[t].open({zIndex:"mask"==t?1020:0})}}},qt=Vt,Yt=d(qt,Wt,jt,!1,null,"6313ac22",null),Xt=Yt.exports,Gt=function(){var t=this,e=t._self._c;return e("div",[e("div",[e("c-button",{ref:"button",on:{click:function(e){return t.$refs.window.show(t.$refs.button)}}},[t._v("显示窗口")]),e("c-window",{ref:"window",attrs:{title:"测试"},scopedSlots:t._u([{key:"beforeButton",fn:function(){return[t._v(" 自定义内容 ")]},proxy:!0},{key:"button",fn:function(){return[e("c-button",[t._v("按钮")])]},proxy:!0}])},[e("div",{staticStyle:{height:"100px"}},[t._v("窗口内容")])])],1),e("div",{staticClass:"doc",domProps:{innerHTML:t._s(t.$parent.loadDoc("window"))}})])},Zt=[],Qt={data(){return{}},mounted(){},methods:{}},Jt=Qt,te=d(Jt,Gt,Zt,!1,null,"7c9c33d0",null),ee=te.exports,ne=function(){var t=this,e=t._self._c;return e("div",[e("div",[e("div",[e("c-button",{staticClass:"api-handle",on:{click:function(e){return t.preview("https://uploadstatic.mihoyo.com/puzzle/upload/puzzle/2023/03/01/d2121e7797f65af32e3ed9eb258be585_8579148517963343593.jpg")}}},[t._v("图片预览")]),e("c-button",{staticClass:"api-handle",on:{click:function(e){return t.preview("https://ys.mihoyo.com/main/_nuxt/videos/3e78e80.mp4")}}},[t._v("视频预览")])],1)]),e("div",{staticClass:"doc",domProps:{innerHTML:t._s(t.$parent.loadDoc("preview"))}})])},ie=[],re={data(){return{}},mounted(){},methods:{preview(t){this.$preview({src:t})}}},oe=re,ae=d(oe,ne,ie,!1,null,"41bde794",null),se=ae.exports,le=function(){var t=this,e=t._self._c;return e("div",[e("div",[e("c-tab-list",{ref:"tabList",attrs:{tabs:t.tabs},on:{change:t.tabsHandle}})],1),e("div",[e("c-tab-list",{ref:"tabList",attrs:{tabs:t.tabs,type:"border-tab"},on:{change:t.tabsHandle}})],1),e("div",[e("c-tab-list",{ref:"tabList",attrs:{tabs:t.tabs,type:"card"},on:{change:t.tabsHandle}})],1),e("div",{staticClass:"doc",domProps:{innerHTML:t._s(t.$parent.loadDoc("tab"))}})])},ce=[],ue={data(){return{tabs:[{name:"tab1",value:1},{name:"tab2",value:2}]}},mounted(){},methods:{tabsHandle(t){console.log(t)}}},de=ue,he=d(de,le,ce,!1,null,"483ea3ec",null),pe=he.exports,fe=function(){var t=this,e=t._self._c;return e("div",[e("div",[e("c-grid-row",{staticStyle:{background:"#F5F5F5"},attrs:{margin:"",gap:""}},[e("c-grid-col",{attrs:{colspan:"1"}},[e("div",{staticStyle:{height:"50px",background:"#000"}})]),e("c-grid-col",{attrs:{colspan:"1"}},[e("div",{staticStyle:{height:"50px",background:"#333"}})]),e("c-grid-col",{attrs:{colspan:"2"}},[e("div",{staticStyle:{height:"50px",background:"#666"}})]),e("c-grid-col",{attrs:{colspan:"2"}},[e("div",{staticStyle:{height:"50px",background:"#999"}})])],1),e("br"),e("c-grid-row",{staticStyle:{background:"#F5F5F5"},attrs:{gap:""}},[e("c-grid-col",{attrs:{colspan:"6"}},[e("div",{staticStyle:{height:"50px",background:"#000"}})]),e("c-grid-col",{attrs:{colspan:"6"}},[e("div",{staticStyle:{height:"50px",background:"#666"}})])],1),e("br"),e("c-grid-row",{staticStyle:{background:"#F5F5F5"},attrs:{margin:""}},[e("c-grid-col",{attrs:{colspan:"3"}},[e("div",{staticStyle:{height:"50px",background:"#000"}})]),e("c-grid-col",{attrs:{colspan:"3"}},[e("div",{staticStyle:{height:"50px",background:"#333"}})]),e("c-grid-col",{attrs:{colspan:"3"}},[e("div",{staticStyle:{height:"50px",background:"#666"}})]),e("c-grid-col",{attrs:{colspan:"3"}},[e("div",{staticStyle:{height:"50px",background:"#999"}})])],1),e("div",{staticClass:"doc",domProps:{innerHTML:t._s(t.$parent.loadDoc("layout/grid"))}}),e("c-flex-row",{staticStyle:{background:"#F5F5F5"},attrs:{margin:"",gap:""}},[e("c-flex-col",{attrs:{colspan:"1"}},[e("div",{staticStyle:{height:"50px",background:"#000"}})]),e("c-flex-col",{attrs:{colspan:"1"}},[e("div",{staticStyle:{height:"50px",background:"#333"}})]),e("c-flex-col",{attrs:{colspan:"2"}},[e("div",{staticStyle:{height:"50px",background:"#666"}})]),e("c-flex-col",{attrs:{colspan:"2"}},[e("div",{staticStyle:{height:"50px",background:"#999"}})])],1),e("br"),e("c-flex-row",{staticStyle:{background:"#F5F5F5"},attrs:{gap:""}},[e("c-flex-col",{attrs:{colspan:"3"}},[e("div",{staticStyle:{height:"50px",background:"#000"}})]),e("c-flex-col",{attrs:{colspan:"2"}},[e("div",{staticStyle:{height:"50px",background:"#666"}})])],1),e("div",{staticClass:"doc",domProps:{innerHTML:t._s(t.$parent.loadDoc("layout/flex"))}})],1)])},me=[],ge={data(){return{}},mounted(){},methods:{}},ve=ge,be=d(ve,fe,me,!1,null,"29fab78c",null),_e=be.exports,ye=function(){var t=this,e=t._self._c;return e("div",[e("div",{staticClass:"layout"},[e("page",[e("module",{attrs:{title:"标题","sub-title":"副标题"},scopedSlots:t._u([{key:"head",fn:function(){return[e("div",{staticClass:"flex-end-center",staticStyle:{height:"100%"}},[t._v(" 头部插槽 ")])]},proxy:!0},{key:"foot",fn:function(){return[e("p",{staticStyle:{"line-height":"50px","text-align":"center",background:"#fffcd1"}},[t._v("底部插槽")])]},proxy:!0},{key:"button",fn:function(){return[e("c-button",[t._v("按钮一")]),e("c-button",[t._v("按钮二")])]},proxy:!0}])},[e("div",{staticStyle:{height:"1000px"}})])],1)],1),e("div",{staticClass:"doc",domProps:{innerHTML:t._s(t.$parent.loadDoc("module/normal"))}}),e("div",{staticClass:"layout"},[e("page",[e("module",{attrs:{title:"自适应高度","sub-title":"填充剩余高度,最小高度为100(不包含头部)"}}),e("module",{attrs:{title:"固定高度",height:"200","sub-title":"指定模块高度(不包含头部)"}},[e("div",{staticStyle:{height:"300px"}},[t._v("内容高300px")])]),e("module",{attrs:{title:"自动高度",height:"auto","sub-title":"根据内容高度变化"}},[e("div",{staticStyle:{height:"300px"}},[t._v("内容高300px")])])],1)],1),e("div",{staticClass:"doc",domProps:{innerHTML:t._s(t.$parent.loadDoc("module/multi"))}}),e("div",{staticClass:"layout"},[e("page",[e("module",{attrs:{tabs:t.tabs,"tab-type":"border-tab"},on:{tabChange:t.tabsHandle}},[e("div")]),e("module",[e("module-tab",{attrs:{name:"选项卡一"},on:{mounted:function(e){return t.moduleTabHandle(1,"mounted")},activated:function(e){return t.moduleTabHandle(1,"activated")},deactivated:function(e){return t.moduleTabHandle(1,"deactivated")}}},[e("div",{staticStyle:{height:"600px"}},[t._v("内容高600px")])]),e("module-tab",{attrs:{name:"选项卡二"},on:{mounted:function(e){return t.moduleTabHandle(2,"mounted")},activated:function(e){return t.moduleTabHandle(2,"activated")},deactivated:function(e){return t.moduleTabHandle(2,"deactivated")}}},[e("div",{staticStyle:{height:"1000px"}},[t._v("内容高1000px")])])],1)],1)],1),e("div",{staticClass:"doc",domProps:{innerHTML:t._s(t.$parent.loadDoc("module/tabs"))}}),e("div",{staticClass:"layout"},[e("page",[e("module",[e("module-row"),e("module-row",[e("module-col"),e("module-col")],1)],1)],1)],1),e("div",{staticClass:"doc",domProps:{innerHTML:t._s(t.$parent.loadDoc("module/complex"))}})])},we=[],xe={data(){return{tabs:[{name:"tab1",value:1},{name:"tab2",value:2}]}},mounted(){},methods:{moduleTabHandle(t,e){console.log(t,e)},tabsHandle(t){console.log(t)}}},ke=xe,Se=(n("4acb"),d(ke,ye,we,!1,null,"0406f941",null)),De=Se.exports,Ce=function(){var t=this,e=t._self._c;return e("div",[e("div",[e("c-drag-sort",{staticClass:"flex-wrap",on:{sort:t.sortHandle},scopedSlots:t._u([{key:"default",fn:function({item:n,index:i}){return[e("c-drag-item",{key:i,staticStyle:{margin:"0 30px 10px 0"}},[e("div",{staticClass:"flex-column flex-center",staticStyle:{width:"100px",height:"100px",background:"#eee"}},[e("p",[t._v(t._s(n))]),e("button",{staticStyle:{"margin-top":"10px"},on:{click:function(e){return t.removeSortItem(i)}}},[t._v("删除")])]),e("c-drag-handle",{staticClass:"handle"},[e("div",[t._v("拖")])])],1)]}}]),model:{value:t.sortList,callback:function(e){t.sortList=e},expression:"sortList"}}),e("c-drag-sort",{staticClass:"flex-wrap",scopedSlots:t._u([{key:"default",fn:function({item:n,index:i}){return[e("c-drag-item",{key:i,staticStyle:{margin:"0 30px 10px 0"}},[e("div",{staticClass:"flex-column flex-center",staticStyle:{width:"100px",height:"100px",background:"#eee"}},[e("p",[t._v(t._s(n))]),e("button",{staticStyle:{"margin-top":"10px"},on:{click:function(e){return t.removeSortItem(i)}}},[t._v("删除")])])])]}}]),model:{value:t.sortList,callback:function(e){t.sortList=e},expression:"sortList"}}),e("c-button",{staticClass:"api-handle",on:{click:t.addSortItem}},[t._v("添加一项")])],1),e("div",{staticClass:"doc",domProps:{innerHTML:t._s(t.$parent.loadDoc("drag_sort"))}})])},Ee=[],Ae={data(){return{sortList:[0,1,2,3,4,5],sortAdd:6}},watch:{sortList(t){console.log(t)}},mounted(){},methods:{addSortItem(){this.sortList.push(this.sortAdd++)},removeSortItem(t){this.sortList.splice(t,1)},sortHandle(t,e,n){console.log(t,e,n)}}},Te=Ae,Be=(n("c15a"),d(Te,Ce,Ee,!1,null,"1d55c72d",null)),Fe=Be.exports,$e=function(){var t=this,e=t._self._c;return e("div",[e("div",[e("c-dropdown",{attrs:{menu:t.menuList},on:{handle:t.handle}},[e("c-button",[t._v("下拉菜单"),e("i",{staticClass:"c-dropdown-angle c-icon-tri-down"})])],1)],1)])},Le=[],Me={data(){return{menuList:[[{name:"菜单1-1"},{name:"菜单1-2"}],[{name:"菜单2-1"},{name:"菜单2-2",submenu:[{name:"子菜单1-1"},{name:"子菜单1-2"}]},{name:"菜单2-3"}],{name:"菜单3-1"}]}},mounted(){},methods:{handle(t){console.log(t)}}},Ie=Me,Pe=d(Ie,$e,Le,!1,null,"6d885ec1",null),Ne=Pe.exports,He=function(){var t=this,e=t._self._c;return e("div",[e("div",[e("c-right-menu",{attrs:{menu:t.menuList},on:{handle:t.handle}},[e("div",{staticStyle:{display:"inline-block",padding:"20px",background:"#F5F5F5"}},[t._v(" 在此处单击右键 ")])])],1)])},Oe=[],Re={data(){return{menuList:[[{name:"菜单1-1"},{name:"菜单1-2"}],[{name:"菜单2-1"},{name:"菜单2-2",submenu:[{name:"子菜单1-1"},{name:"子菜单1-2"}]},{name:"菜单2-3"}],{name:"菜单3-1"}]}},mounted(){},methods:{handle(t){console.log(t)}}},ze=Re,Ue=d(ze,He,Oe,!1,null,"cefe2f94",null),Ke=Ue.exports,We=function(){var t=this,e=t._self._c;return e("div",[e("div",[e("div",{staticStyle:{"margin-bottom":"20px"}},[e("c-button",{staticClass:"api-handle",on:{click:function(e){return t.treeHandle("getNode","root")}}},[t._v("获取根节点")]),e("c-button",{staticClass:"api-handle",on:{click:function(e){return t.treeHandle("getNode","selected")}}},[t._v("获取选中节点")]),e("c-button",{staticClass:"api-handle",on:{click:function(e){return t.treeHandle("getNode","checked")}}},[t._v("获取勾选节点")]),e("c-button",{staticClass:"api-handle",on:{click:function(e){return t.treeHandle("insertRoot")}}},[t._v("插入根节点")])],1),e("c-tree",{ref:"tree",attrs:{data:t.treeData,select:{expand:!0,unselect:!0},check:{clickCheck:!0}},on:{load:function(e){return t.treeHandle("load",arguments[0],arguments[1])},click:function(e){return t.treeHandle("click",e)},check:function(e){return t.treeHandle("check",e)}}})],1),e("div",{staticClass:"doc",domProps:{innerHTML:t._s(t.$parent.loadDoc("tree"))}})])},je=[],Ve={data(){return{treeData:[{id:1,pId:0,name:"节点1"},{id:2,pId:0,name:"节点2"}]}},mounted(){},methods:{treeHandle(t,e,n){if(console.log(t,e),"load"==t){let t=[],i=this.$parent.random(2,6);for(let n=1;n<=i;n++)t.push({id:e.id.toString()+n,name:e.name+n,pId:e.id,leaf:this.$parent.random(0,9)>6});setTimeout(()=>{n(t)},500)}else if("getNode"==t)console.log(this.$refs.tree.getNode(e));else if("insertRoot"==t){let t=[],e=this.$refs.tree.getNode().length+1,n=e+this.$parent.random(2,6);for(let i=e;i<=n;i++)t.push({id:i,name:"节点"+i,pId:0,leaf:this.$parent.random(0,9)>6});this.$refs.tree.insertRoot(t)}}}},qe=Ve,Ye=d(qe,We,je,!1,null,"3dac96a0",null),Xe=Ye.exports,Ge=function(){var t=this,e=t._self._c;return e("div",[e("div",[e("c-steps",{attrs:{steps:t.stepsList,active:"2"}})],1),e("div",{staticClass:"doc",domProps:{innerHTML:t._s(t.$parent.loadDoc("steps"))}})])},Ze=[],Qe={data(){return{stepsList:[{name:"步骤一"},{name:"步骤二",message:"步骤描述"},{name:"步骤三",message:"步骤描述"},{name:"步骤四"}]}},mounted(){},methods:{}},Je=Qe,tn=d(Je,Ge,Ze,!1,null,"852e07c0",null),en=tn.exports,nn=function(){var t=this,e=t._self._c;return e("div",[e("div",{staticStyle:{width:"200px"}},[e("c-progress",{attrs:{type:"line",rate:[5,10],decimal:"1"}}),e("br"),e("br"),e("c-progress",{attrs:{type:"circle",rate:"44,111",decimal:"2"}})],1),e("div",{staticClass:"doc",domProps:{innerHTML:t._s(t.$parent.loadDoc("progress"))}})])},rn=[],on={data(){return{}},mounted(){},methods:{}},an=on,sn=d(an,nn,rn,!1,null,"7fc615f7",null),ln=sn.exports,cn=function(){var t=this,e=t._self._c;return e("div",[e("div",{staticStyle:{padding:"20px",background:"#FAFAFA"}},[e("c-qrcode",{attrs:{value:"qweqwqwe",margin:"20"}})],1),e("div",{staticClass:"doc",domProps:{innerHTML:t._s(t.$parent.loadDoc("qrcode"))}})])},un=[],dn={data(){return{}},mounted(){},methods:{}},hn=dn,pn=d(hn,cn,un,!1,null,"77da1f1b",null),fn=pn.exports,mn=function(){var t=this,e=t._self._c;return e("div",[e("div",[e("p",[e("c-countdown",{ref:"cd",attrs:{icon:"",sec:"86400"},on:{end:t.endHandle}})],1),e("br"),e("c-button",{on:{click:function(e){return t.$refs.cd.setSec(10)}}},[t._v("10S")])],1),e("div",{staticClass:"doc",domProps:{innerHTML:t._s(t.$parent.loadDoc("countdown"))}})])},gn=[],vn={data(){return{}},mounted(){},methods:{endHandle(){console.log("end")}}},bn=vn,_n=d(bn,mn,gn,!1,null,"2e48d6ac",null),yn=_n.exports,wn=n("7c5c"),xn=n.n(wn),kn={name:"vueComponentLibrary",components:{apiButton:p,apiInput:_,apiOptions:D,apiSelector:F,apiSwitch:N,apiFile:K,apiEditor:X,apiLink:et,apiTooltip:st,apiTitle:pt,apiPagination:_t,apiTable:Dt,apiForm:Ft,apiDetail:Nt,apiPopup:Kt,apiDialog:Xt,apiWindow:ee,apiPreview:se,apiTab:pe,apiLayout:_e,apiModule:De,apiDragSort:Fe,apiDropdown:Ne,apiRightMenu:Ke,apiTree:Xe,apiSteps:en,apiProgress:ln,apiQrcode:fn,apiCountdown:yn},data(){return{marked:xn.a,docTab:["按钮","输入框","单复选框","选择器","开关","文件","编辑器","链接","提示信息","标题","分页栏","表格","表单","详情","消息弹窗","会话弹窗","悬浮窗口","媒体预览","选项卡","布局","模块","拖拽排序","下拉菜单","右键菜单","树","步骤条","进度条","二维码","倒计时"],tabColor:["main","lesser","red","green","blue","yellow"],crtTab:Xf.get("crt_tab")||"按钮"}},computed:{crtTabColor(){return this.crtTab,this.tabColor[Math.floor(Math.random()*this.tabColor.length)]},loadDoc(){return t=>xn.a.parse(n("5aa3")(`./${t}.md`).default)}},watch:{crtTab(t){Xf.set("crt_tab",t)}},mounted(){window.$app=this},methods:{random(t,e){return Math.floor(Math.random()*(e-t+1)+t)}}},Sn=kn,Dn=(n("5af5"),d(Sn,o,a,!1,null,null,null)),Cn=Dn.exports,En=function(){var t=this,e=t._self._c;return e("button",{staticClass:"c-button",style:t.compStyle,attrs:{color:t.color,hollow:t.hollow,disabled:!!t.disabled},on:{click:function(e){return t.$emit("click")},mouseenter:function(e){t.hoverState=!0},mouseleave:function(e){t.hoverState=!1}}},[e("div",{staticClass:"flex-center"},[t.prependIcon?e("i",{staticClass:"icon",class:t.prependIcon}):t._e(),e("span",[t._t("default")],2),t.appendIcon?e("i",{staticClass:"icon",class:t.appendIcon}):t._e()])])},An=[],Tn={name:"cButton",props:{size:{type:String,default:"normal"},color:{type:String,default:"normal"},hollow:Boolean,disabled:Boolean,prependIcon:String,appendIcon:String},data(){return{hoverState:!1}},computed:{sizeStyle(){return this.$compsConfig.style.buttonSize[this.size]||{}},colorStyle(){let t=this.$compsConfig.color[this.color];if(!t)return{};let e=t[this.hoverState?1:0];return{"border-color":e,color:this.hollow?e:"#fff",background:this.hollow?"#fff":e}},compStyle(){return Object.assign({},this.sizeStyle,this.colorStyle)}}},Bn=Tn,Fn=(n("25f9"),d(Bn,En,An,!1,null,"ff8f74d6",null)),$n=Fn.exports,Ln=function(){var t=this,e=t._self._c;return e("div",{directives:[{name:"show",rawName:"v-show",value:"hidden"!=t.type,expression:"type != 'hidden'"}],staticClass:"c-input",class:{"c-textarea":"textarea"==t.type,"z-dis":t.disabled},attrs:{warn:!!t.name&&t.warnState},on:{mouseenter:function(e){t.active=!0},mouseleave:function(e){t.active=!1}}},["textarea"==t.type?[e("textarea",{directives:[{name:"model",rawName:"v-model",value:t.valueData,expression:"valueData"}],ref:"input",style:{resize:!0===t.heightResize?"vertical":"none"},attrs:{rows:"1",placeholder:t.$t(t.placeholder),maxlength:t.maxlength,disabled:t.disabled,readonly:t.readonly},domProps:{value:t.valueData},on:{input:[function(e){e.target.composing||(t.valueData=e.target.value)},t.inputHandle],focus:t.inputHandle,blur:t.inputHandle,change:t.inputHandle}}),t.maxlength?e("span",{staticClass:"c-input-length",style:{right:!0===t.heightResize?"20px":"5px"}},[t._v(t._s(t.valueData.length)+" / "+t._s(t.maxlength))]):t._e()]:e("div",{staticClass:"flex"},[t.$scopedSlots.prependText||t.prependText?e("div",{staticClass:"c-input-text flex-center"},[t._t("prependText"),e("span",[t._v(t._s(t.$t(t.prependText)))])],2):t._e(),"stepper"==t.type&&"both"==t.stepControls?e("button",{staticClass:"c-input-step flex-center",class:{"z-dis":""!==t.valueData&&!1!==t.minRange&&t.minRange==t.valueData},on:{click:function(e){return t.stepHandle(-1)}}},[e("i",{staticClass:"c-icon-minus"})]):t._e(),e("div",{staticClass:"flex-center flex-grow"},[t.$scopedSlots.prepend?e("div",{staticClass:"c-input-content"},[t._t("prepend")],2):t._e(),t.$scopedSlots.prependIcon?e("span",{staticClass:"c-input-icon flex-center"},[t._t("prependIcon")],2):t._e(),"checkbox"===t.compType?e("input",{directives:[{name:"model",rawName:"v-model",value:t.valueData,expression:"valueData"}],ref:"input",staticClass:"flex-grow",style:{"text-align":t.alignCenter?"center":"left"},attrs:{placeholder:t.$t(t.placeholder),maxlength:t.maxlength,disabled:t.disabled,readonly:t.readonly,autocomplete:"off",type:"checkbox"},domProps:{checked:Array.isArray(t.valueData)?t._i(t.valueData,null)>-1:t.valueData},on:{input:t.inputHandle,focus:t.inputHandle,blur:t.inputHandle,change:[function(e){var n=t.valueData,i=e.target,r=!!i.checked;if(Array.isArray(n)){var o=null,a=t._i(n,o);i.checked?a<0&&(t.valueData=n.concat([o])):a>-1&&(t.valueData=n.slice(0,a).concat(n.slice(a+1)))}else t.valueData=r},t.inputHandle],keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.enterHandle.apply(null,arguments)}}}):"radio"===t.compType?e("input",{directives:[{name:"model",rawName:"v-model",value:t.valueData,expression:"valueData"}],ref:"input",staticClass:"flex-grow",style:{"text-align":t.alignCenter?"center":"left"},attrs:{placeholder:t.$t(t.placeholder),maxlength:t.maxlength,disabled:t.disabled,readonly:t.readonly,autocomplete:"off",type:"radio"},domProps:{checked:t._q(t.valueData,null)},on:{input:t.inputHandle,focus:t.inputHandle,blur:t.inputHandle,change:[function(e){t.valueData=null},t.inputHandle],keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.enterHandle.apply(null,arguments)}}}):e("input",{directives:[{name:"model",rawName:"v-model",value:t.valueData,expression:"valueData"}],ref:"input",staticClass:"flex-grow",style:{"text-align":t.alignCenter?"center":"left"},attrs:{placeholder:t.$t(t.placeholder),maxlength:t.maxlength,disabled:t.disabled,readonly:t.readonly,autocomplete:"off",type:t.compType},domProps:{value:t.valueData},on:{input:[function(e){e.target.composing||(t.valueData=e.target.value)},t.inputHandle],focus:t.inputHandle,blur:t.inputHandle,change:t.inputHandle,keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.enterHandle.apply(null,arguments)}}}),t.clear&&t.valueData&&!t.readonly?e("a",{staticClass:"c-input-icon clear flex-center",on:{click:t.clearHandle}},[e("i",{staticClass:"c-icon-clear"})]):t._e(),t.visible?e("a",{staticClass:"c-input-icon flex-center",on:{click:function(e){t.visibleState=!t.visibleState}}},[e("i",{staticClass:"c-icon-eyes",class:{"c-icon-eyes-close":t.visibleState}})]):t._e(),t.$scopedSlots.appendIcon?e("span",{staticClass:"c-input-icon flex-center"},[t._t("appendIcon")],2):t._e(),t.$scopedSlots.append?e("div",{staticClass:"c-input-content"},[t._t("append")],2):t._e()]),e("div",{staticClass:"flex-column"},["stepper"==t.type?e("button",{staticClass:"c-input-step flex-center flex-grow",class:{"z-dis":""!==t.valueData&&!1!==t.maxRange&&t.maxRange==t.valueData},on:{click:function(e){return t.stepHandle(1)}}},[e("i",{staticClass:"c-icon-plus"})]):t._e(),"stepper"==t.type&&"side"==t.stepControls?e("button",{staticClass:"c-input-step flex-center flex-grow",class:{"z-dis":""!==t.valueData&&!1!==t.minRange&&t.minRange==t.valueData},on:{click:function(e){return t.stepHandle(-1)}}},[e("i",{staticClass:"c-icon-minus"})]):t._e()]),t.$scopedSlots.appendText||t.appendText||t.unit?e("div",{staticClass:"c-input-text flex-center"},[t._t("appendText"),e("span",[t._v(t._s(t.$t(t.appendText||t.unit)))])],2):t._e()]),t._events.suggest?e("div",{directives:[{name:"show",rawName:"v-show",value:t.listPosition&&t.suggestList.length,expression:"listPosition && suggestList.length"}],ref:"list",staticClass:"c-input-suggest",style:t.listPosition,on:{mouseenter:function(e){t.active=!0},mouseleave:function(e){t.active=!1}}},[e("select-list",{ref:"options",attrs:{options:t.suggestList},on:{click:t.set}})],1):t._e()],2)},Mn=[];function In(t,e){var n=window.getComputedStyle(t,null);return n[e]}function Pn(t,e){var n=t.parentNode;if(n)return n===window.document?window.document.body.scrollTop||window.document.body.scrollLeft?e(window.document.body):e(window):((["scroll","auto"].includes(In(n,"overflow"))||["scroll","auto"].includes(In(n,"overflow-x"))||["scroll","auto"].includes(In(n,"overflow-y")))&&e(n),Pn(t.parentNode,e))}var Nn=n("8bbf"),Hn=n.n(Nn);function On(t,e={}){let{computed:n,watch:i,methods:r}=e;const o="function"==typeof t?t:Hn.a.extend({data(){return t},computed:n,watch:i,methods:{...r,commit(t,e){this[t]=e}}});return new o({i18n:Wf})}function Rn(t,e="store"){let n;return function t(i){i&&(i[e]?n=i[e]:t(i.$parent))}(t),{[e]:n||{commit:function(){}}}}function zn(t,e){"string"!=typeof t&&(e=t,t="store");const n={};if(e.constructor==Array)e.forEach(e=>{n[e]={get(){try{return this[t][e]}catch(n){return}},set(){}}});else for(let i in e)n[i]={get(){return e[i](this[t])},set(){}};return n}const Un={render(t){return t("div",[this.options.map(e=>[t("div",{class:"flex-center-cross c-input-suggest-item flex-center-cross",attrs:{title:this.$t(e)},on:{click:()=>this.clickHandle(e)}},[t("p",{class:"ellipsis flex-grow"},[this.$t(e)])])])])},props:{options:Array},methods:{clickHandle(t){this.$emit("click",t),this.$parent.blurHandle()}}};var Kn={name:"cInput",components:{selectList:Un},props:{type:{type:String,default:"text"},value:[Number,String],name:String,placeholder:String,maxlength:[Number,String],decimal:[Number,String],range:[String,Array],disabled:Boolean,readonly:Boolean,alignCenter:Boolean,prependText:String,appendText:String,unit:String,visible:Boolean,clear:{type:Boolean,default:!0},step:{type:[String,Number],default:1},stepControls:{type:String,default:"both"},heightResize:{type:[Boolean,String],default(){return this.$compsConfig.config.input.heightResize}}},data(){return{...Rn(this,"cFormStore"),...Rn(this,"cFormItemStore"),valueData:"",visibleState:!1,listPosition:!1,suggestList:[],active:!1}},computed:{...zn("cFormStore",["submitHandle"]),...zn("cFormItemStore",["warnState"]),compType(){return"number"==this.type||this.visibleState?"text":this.type},compRange(){return!!this.range&&("string"==typeof this.range?this.range.split(","):this.range)},minRange(){return"object"==typeof this.compRange&&2==this.compRange.length&&parseFloat(this.compRange[0])},maxRange(){return!1!==this.compRange&&parseFloat(this.compRange[1])},compDecimal(){return!!["number","stepper"].includes(this.type)&&(parseInt(this.decimal)||0)}},watch:{value(t){this.set(t)},valueData(){this.$emit("input",this.get()),this.$nextTick(this.updateHeight)},compDecimal(){this.inputHandle({type:"blur"})}},mounted(){this.set(this.value),this._events.suggest&&document.body.appendChild(this.$refs.list)},beforeDestroy(){this._events.suggest&&document.body.removeChild(this.$refs.list)},methods:{set(t=""){t=t||0===t?t:"",this.valueData=t.toString().trim(),this.valueData&&this.cFormItemStore.commit("warnState",!1)},get(){return this.valueData.toString().trim()},focus(){this.$refs.input.focus()},select(){this.$refs.input.select()},inputHandle(t){if(this.cFormItemStore.commit("warnState",!1),!1!==this.compDecimal){var e=[["^(-?)0?(\\d+)$","$1$2"],["^(-?)\\.$","$1"],["\\.(\\d*)\\.+",".$1"],["^(\\d+\\.?\\d*)-+","$1"],["^(-\\d*\\.?\\d*)-+","$1"],["^(-?\\d+\\.\\d{"+this.compDecimal+"}).+","$1"],[this.compDecimal?"[^-\\d\\.]+$":"[^-\\d]+$",""]];e.forEach(t=>{this.valueData=this.valueData.toString().replace(new RegExp(t[0]),t[1])}),""!==this.valueData&&"blur"==t.type&&(this.valueData=this.valueData.toString().replace(this.compDecimal?/[^-\d\.]+/g:/[^-\d]+/g,""),!1!==this.minRange&&this.valueData<this.minRange&&(this.valueData=this.minRange),!1!==this.maxRange&&this.valueData>this.maxRange&&(this.valueData=this.maxRange))}"input"!=t.type?(this.$emit("input",this.get()),this.$emit(t.type,this.get()),"focus"==t.type?this._events.suggest&&(this.suggestHandle(),this.listPosition=!0,this.$nextTick(this.updatePosition),window.addEventListener("click",this.blurHandle,!0),Pn(this.$el,t=>{t.addEventListener("scroll",this.updatePosition)})):"blur"==t.type&&(this.changeHandle(),this.blurHandle(t))):this.suggestHandle()},blurHandle(t){t&&this.active||(this.listPosition=!1,this.suggestList=[],window.removeEventListener("click",this.blurHandle,!0),Pn(this.$el,t=>{t.removeEventListener("scroll",this.updatePosition)}))},changeHandle(){this.$emit("change",this.get()),this.cFormStore.commit("editState",!0)},clearHandle(){this.valueData="",this.suggestHandle(),this.focus(),this.changeHandle()},enterHandle(){this.$emit("enter",this.get()),this.submitHandle&&this.submitHandle()},suggestHandle(){this.valueData?this.$emit("suggest",this.valueData,t=>{this.suggestList=t,this.$nextTick(this.updatePosition)}):this.suggestList=[]},stepHandle(t){let e=this.valueData.toString().split(".")[1]||"",n=this.step.toString().split(".")[1]||"",i=n.length>e.length?n.length:e.length;this.valueData=parseFloat(((parseFloat(this.valueData)||0)+t*parseFloat(this.step)).toFixed(i)),this.inputHandle({type:"blur"}),this.changeHandle()},updatePosition(){let t=this.$el.getBoundingClientRect(),e=this.$refs.list.offsetHeight<300?this.$refs.list.offsetHeight:300,n=window.innerHeight-t.bottom<e;this.listPosition={left:t.left+"px",top:window.scrollY+(n?t.top-e+1:t.top+this.$el.offsetHeight-1)+"px",width:this.$el.offsetWidth+"px","max-height":this.parsePixel(300,!0)}},updateHeight(){"textarea"==this.type&&"auto"==this.heightResize&&(this.$refs.input.style.height="auto",this.$refs.input.style.height=this.$refs.input.scrollHeight+"px")}}},Wn=Kn,jn=(n("5b1c"),d(Wn,Ln,Mn,!1,null,"240ce892",null)),Vn=jn.exports,qn=function(){var t=this,e=t._self._c;return e("div",{staticClass:"c-radio",class:{"z-chk":t.checkState,"z-dis":t.disabledState},on:{click:t.checkHandle}},[e("div",{staticClass:"c-radio-check"}),t.$slots.default?e("div",{staticClass:"c-radio-content"},[t._t("default")],2):t._e()])},Yn=[],Xn={name:"cRadio",props:{value:[Number,String],disabled:Boolean},data(){return{store:this.$parent.store}},computed:{...zn(["valueData","groupDisabled"]),checkState(){return this.valueData==this.value},disabledState(){return this.groupDisabled||this.disabled}},methods:{checkHandle(){this.disabledState||this.checkState||this.$parent.changeHandle(this.value)},changeHandle(t){this.$emit("change",t)}}},Gn=Xn,Zn=(n("647a"),d(Gn,qn,Yn,!1,null,"1ef111e6",null)),Qn=Zn.exports,Jn=function(){var t=this,e=t._self._c;return e("div",{staticClass:"c-radio-group",attrs:{warn:!!t.name&&t.warnState},on:{click:function(e){return t.cFormItemStore.commit("warnState",!1)}}},[t.$slots.default?t._t("default"):t._l(t.options,(function(n,i){return e("c-radio",{key:i,attrs:{value:n.value}},[t._v(t._s(t.$t(n.name)))])}))],2)},ti=[],ei={name:"cRadioGroup",props:{value:[String,Number],name:String,disabled:Boolean,options:Array},data(){return{...Rn(this,"cFormStore"),...Rn(this,"cFormItemStore"),store:On({valueData:this.value,groupDisabled:this.disabled})}},computed:{...zn("cFormItemStore",["warnState"]),...zn(["valueData"])},watch:{value(t){this.set(t)},valueData(){this.$emit("input",this.get())},disabled(t){this.store.commit("groupDisabled",t)}},methods:{set(t=""){this.store.commit("valueData",t),this.valueData&&this.cFormItemStore.commit("warnState",!1)},get(){return this.valueData},changeHandle(t){this.$children.forEach(e=>{(e.checkState||e.value==t)&&e.changeHandle(e.value==t)}),this.store.commit("valueData",t),this.$emit("change",this.get()),this.cFormStore.commit("editState",!0)}}},ni=ei,ii=(n("0a75"),d(ni,Jn,ti,!1,null,"1345d698",null)),ri=ii.exports,oi=function(){var t=this,e=t._self._c;return e("div",{staticClass:"c-checkbox",class:{"z-chk":t.checkState,"z-dis":t.disabledState},style:{height:t.parsePixel(t.size,!0)},on:{click:function(e){return t.checkHandle(!t.checkState)}}},[e("div",{staticClass:"c-checkbox-check",style:{width:t.parsePixel(t.size,!0),height:t.parsePixel(t.size,!0),"line-height":t.parsePixel(t.size,!0),"font-size":t.parsePixel(t.iconSize,!0)}},[t.half?e("i",{staticClass:"c-icon-check-half"}):t.checkState?e("i",{staticClass:"c-icon-check"}):t._e()]),t.$slots.default?e("div",{staticClass:"c-checkbox-content"},[t._t("default")],2):t._e()])},ai=[],si={name:"cCheckbox",props:{value:[Number,String,Boolean],disabled:Boolean,half:Boolean,size:{type:[Number,String],default:20}},data(){let t="cCheckboxGroup"==this.$parent.$options.name;return{selfChecked:!!this.value,inGroup:t,store:t?this.$parent.store:void 0}},computed:{...zn(["valueData","limit","groupDisabled"]),parseValueData(){return"object"==typeof this.valueData?Array.from(this.valueData,t=>t.toString()):this.valueData.toString()?this.valueData.toString().split(","):[]},checkState(){return this.inGroup?this.parseValueData.includes(this.value.toString()):this.selfChecked},disabledState(){return this.inGroup&&this.groupDisabled||this.disabled},overflow(){return!this.checkState&&this.limit>0&&this.parseValueData.length>=this.limit},iconSize(){return parseInt(this.size)<20?12:13}},watch:{value(t){this.selfChecked=!!t,this.store&&this.store.updateValueData()}},mounted(){this.store&&this.store.updateValueData()},beforeDestroy(){this.store&&this.store.updateValueData()},methods:{checkHandle(t){if(!this.disabledState){if(this.inGroup){if(this.overflow)return void this.$message({message:this.$t("_t.select.upperLimit",{count:this.limit})});let e;t?e=this.parseValueData.concat([this.value.toString()]):(e=this.parseValueData.join(",").split(","),e.splice(e.indexOf(this.value.toString()),1)),this.store.commit("valueData","object"==typeof this.valueData?e:e.join(",")),this.$parent.changeHandle()}else this.selfChecked=t,this.$emit("input",t);this.$emit("change",t)}}}},li=si,ci=(n("5d56"),d(li,oi,ai,!1,null,"2b8f077c",null)),ui=ci.exports,di=function(){var t=this,e=t._self._c;return e("div",{staticClass:"c-checkbox-group",attrs:{warn:!!t.name&&t.warnState},on:{click:function(e){return t.cFormItemStore.commit("warnState",!1)}}},[t.$slots.default?t._t("default"):t._l(t.options,(function(n,i){return e("c-checkbox",{key:i,attrs:{value:n.value}},[t._v(t._s(t.$t(n.name)))])}))],2)},hi=[],pi={name:"cCheckboxGroup",props:{value:{type:[String,Number,Array],default:""},name:String,disabled:Boolean,limit:[String,Number],options:Array},data(){return{...Rn(this,"cFormStore"),...Rn(this,"cFormItemStore"),store:On({updateValueData:Vf(()=>{this.set(this.valueData.filter(t=>!!this.$children.find(e=>"cCheckbox"==e.$options.name&&e.value.toString()==t.toString())))},10),valueData:[],limit:parseInt(this.limit),groupDisabled:this.disabled})}},computed:{...zn("cFormItemStore",["warnState"]),...zn(["valueData"])},watch:{value(t){this.set(t)},valueData(){this.$emit("input",this.get())},limit(t){this.store.commit("limit",t)},disabled(t){this.store.commit("groupDisabled",t)}},mounted(){this.set(this.value)},methods:{set(t){t||(t=[]),"string"==typeof t&&(t=t.split(",")),this.store.commit("valueData",t),this.valueData.length&&this.cFormItemStore.commit("warnState",!1)},get(){return this.valueData},changeHandle(){this.$emit("change",this.get()),this.cFormStore.commit("editState",!0)}}},fi=pi,mi=(n("830f"),d(fi,di,hi,!1,null,"cca96b80",null)),gi=mi.exports,vi=function(){var t=this,e=t._self._c;return e("div",{staticClass:"c-select",class:{"z-active":t.listPosition,"z-dis":t.disabled},attrs:{warn:!!t.name&&t.warnState,"auto-height":t.multiple&&t.multipleConfig.linefeed&&!t.emptyState},on:{click:t.developHandle,mouseenter:function(e){t.active=!0},mouseleave:function(e){t.active=!1}}},[e("div",{staticClass:"c-select-main flex-between-center"},[e("div",{ref:"value",staticClass:"flex-grow flex-center-cross",class:{"flex-wrap":t.multipleConfig.linefeed,"c-select-tag":t.multiple&&!t.emptyState}},[t.multiple&&!t.emptyState?t._l(t.currentData,(function(n,i){return e("div",{key:i,staticClass:"c-select-tag-item flex-center"},[e("span",{staticClass:"ellipsis",attrs:{title:t.$t(n.name)}},[t._v(t._s(t.$t(n.name)))]),t.disabled?t._e():e("a",{staticClass:"c-icon-cross",on:{click:function(e){return e.stopPropagation(),t.deleteValue(n)}}})])})):t._e(),t.searchConfig?e("input",{directives:[{name:"model",rawName:"v-model",value:t.searchValue,expression:"searchValue"}],ref:"input",staticClass:"c-select-input flex-grow",attrs:{disabled:t.disabled,placeholder:t.emptyState?t.$t(t.placeholder):t.multiple?"":t.valueName,autocomplete:"off"},domProps:{value:t.searchValue},on:{input:[function(e){e.target.composing||(t.searchValue=e.target.value)},t.asyncSearchDebounceHandle],keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.addHandle(t.searchValue,"enter")},blur:function(e){return t.addHandle(t.searchValue,"blur")}}}):t._e(),!t.emptyState&&t.multiple||t.searchConfig?t._e():e("span",{staticClass:"c-select-current flex-grow ellipsis",class:{"z-empty":t.emptyState},attrs:{title:t.emptyState?t.$t(t.placeholder):t.valueName}},[t._v(t._s(t.emptyState?t.$t(t.placeholder):t.valueName))])],2),t.clear&&!t.emptyState?e("a",{staticClass:"c-select-clear flex-center",on:{click:function(e){return e.stopPropagation(),t.clearHandle.apply(null,arguments)}}},[e("i",{staticClass:"c-icon-clear"})]):t._e(),e("span",{staticClass:"c-select-icon flex-center"},[t.$scopedSlots.icon?t._t("icon"):e("i",{staticClass:"c-icon-angle-down"})],2)]),e("div",{directives:[{name:"show",rawName:"v-show",value:t.listPosition,expression:"listPosition"}],ref:"list",staticClass:"c-select-options",style:t.listPosition,on:{click:t=>t.stopPropagation(),mouseenter:function(e){t.active=!0},mouseleave:function(e){t.active=!1}}},[e("select-list",{ref:"options",attrs:{async:t.asyncState,options:t.optionsList,disableOptions:t.disableOptions,multiple:!!t.multiple,add:t.searchConfig.add&&t.searchConfig.addEvents.includes("option")},on:{search:t.searchFocus},model:{value:t.searchValue,callback:function(e){t.searchValue=e},expression:"searchValue"}})],1)])},bi=[];function _i(t,e,n=0){var i=[];return e&&e.map(e=>{(this.async||!this.keyword||this.$t(e.name).toLocaleLowerCase().includes(this.keyword.toLocaleLowerCase()))&&(i=i.concat(this.$parent.$scopedSlots.option?[t("div",{class:"c-select-options-custom",on:{click:()=>this.clickHandle(e)}},[this.$parent.$scopedSlots.option({data:e,selected:this.currentDataValue.includes(e.value.toString()),disabled:-1!=this.disableOptions.findIndex(t=>t==e.value)})])]:[t("div",{class:"flex-center-cross c-select-options-item "+(this.currentDataValue.includes(e.value.toString())?"z-crt":""),attrs:{title:this.$t(e.name),disabled:-1!=this.disableOptions.findIndex(t=>t==e.value)},on:{click:()=>this.clickHandle(e)}},[n?[t("div",{class:"c-select-options-item-level c-icon-level-line",style:`margin-left: ${20*(n-1)}px;`})]:[],t("p",{class:"ellipsis flex-grow"},[this.$t(e.name)]),this.multiple?[t("i",{class:"c-select-options-item-check c-icon-check"})]:[]])])),i=i.concat(_i.call(this,t,e.children,n+1))}),i}const yi={render(t){return t("div",[this.undefinedOption?[t("div",{class:"flex-center-cross c-select-options-item c-select-options-add",on:{click:()=>this.addHandle()}},[t("i",{class:"c-select-options-add-icon c-icon-add"}),t("span",[this.$t("_t.select.add")])])]:[],_i.call(this,t,this.options)])},props:{async:Boolean,options:Array,disableOptions:Array,multiple:Boolean,add:Boolean,value:String},data(){return{store:this.$parent.store}},computed:{...zn(["currentValue","currentData"]),keyword(){return this.value.trim()},currentDataValue(){return this.currentData.map(t=>t.value.toString())},undefinedOption(){if(this.add&&this.keyword)return!this.options.find(t=>this.$t(t.name)==this.keyword)}},watch:{currentValue(){this.updateCurrentData()},options(){this.async||this.updateCurrentData()}},mounted(){this.updateCurrentData()},methods:{updateCurrentData(){let t=[],e="object"==typeof this.currentValue?this.currentValue.map(t=>t.toString()):this.currentValue.toString().split(",");e.length&&function n(i){i.forEach(i=>{e.includes(i.value.toString())&&t.push(i),i.children&&n(i.children)})}(this.async?this.currentData:this.options),this.store.commit("currentData",t)},clickHandle(t,e){if(-1==this.disableOptions.findIndex(e=>e==t.value))if(this.multiple){let n,i=this.currentData.findIndex(e=>e.value==t.value);if(-1!=i)n=this.currentData.map(t=>t),!e&&n.splice(i,1);else{if(this.currentData.length>=this.$parent.multipleConfig.limit)return void this.$message({message:this.$t("_t.select.upperLimit",{count:this.$parent.multipleConfig.limit})});n=this.currentData.concat([t])}this.store.commit("currentData",n);let r=n.map(t=>t.value);this.store.commit("currentValue","object"==typeof this.currentValue?r:r.join(",")),this.$parent.changeHandle(),this.$emit("input",""),this.$emit("search")}else this.currentDataValue.includes(t.value.toString())||(this.store.commit("currentData",[t]),this.store.commit("currentValue",t.value),this.$parent.changeHandle()),this.$parent.foldHandle()},addHandle(){this.$parent.addHandle(this.keyword,"option")}}};var wi={name:"cSelect",components:{selectList:yi},props:{async:Boolean,value:{type:[String,Number,Array],default:""},valueData:Array,name:String,placeholder:{type:String,default:"_t.select.placeholder"},options:{type:[Array,String],default:()=>[]},disableOptions:{type:Array,default(){return[]}},listWidth:[Number,String],listHeight:{type:[Number,String],default:300},disabled:Boolean,clear:{type:Boolean,default:!0},multiple:[Boolean,Object],search:{type:[Boolean,Object],default(){return this.$compsConfig.config.select.search}}},data(){return{...Rn(this,"cFormStore"),...Rn(this,"cFormItemStore"),store:On({currentValue:this.multiple?[]:"",currentData:[]}),optionsList:[],listPosition:!1,active:!1,searchValue:""}},computed:{...zn("cFormItemStore",["warnState"]),...zn(["currentValue","currentData"]),multipleConfig(){return!!this.multiple&&Object.assign({limit:1/0,linefeed:!1},"object"==typeof this.multiple?this.multiple:{})},searchConfig(){return!(!this.asyncState&&!this.search)&&Object.assign({empty:!0,add:!1,addEvents:["option"]},"object"==typeof this.search?this.search:{})},valueName(){return this.currentData[0]?this.$t(this.currentData[0].name):""},emptyState(){return!this.currentValue&&0!==this.currentValue||this.multiple&&!this.currentValue.length},asyncState(){return this.async||!!this._events.customEvent}},watch:{value(t){this.set(t)},currentValue(){this.$emit("input",this.get())},currentData(){this.multipleConfig&&this.multipleConfig.linefeed&&this.listPosition&&this.updatePosition()},valueName(t){this.searchConfig&&!this.multiple&&(this.searchValue=t)},valueData(t){this.asyncState&&this.setValueData(t)},options(){this.asyncState||this.getOptionsList()},optionsList(t,e){if(!this.asyncState&&e.length){let e=Array.isArray(this.currentValue)?this.currentValue:[this.currentValue];e=e.filter(e=>t.find(t=>t.value==e)),this.set(e.join(","))}},searchValue(){this.$nextTick(()=>{this.listPosition&&this.updatePosition()})}},mounted(){this.asyncState?this.setValueData(this.valueData):(this.set(this.value),this.getOptionsList()),document.body.appendChild(this.$refs.list)},beforeDestroy(){document.body.removeChild(this.$refs.list)},methods:{set(t){t||0===t||(t=this.multiple?[]:""),this.multiple&&!Array.isArray(t)&&(t=t.toString().split(",")),this.store.commit("currentValue",t),Array.isArray(this.currentValue)?this.currentValue.length&&this.cFormItemStore.commit("warnState",!1):this.currentValue&&this.cFormItemStore.commit("warnState",!1)},get(){return this.currentValue},getData(){return this.multiple?this.currentData:this.currentData[0]||{}},setValueData(t){t&&(this.store.commit("currentData",t),this.set(this.multiple?t.map(t=>t.value):t[0]?t[0].value:""))},getOptionsList(){Array.isArray(this.options)?this.optionsList=JSON.parse(JSON.stringify(this.options)):this.$compsConfig.data.options[this.options]&&this.$compsConfig.data.options[this.options]("",t=>{this.optionsList=t})},developHandle(){this.cFormItemStore.commit("warnState",!1),this.disabled||(this.searchFocus(),this.$refs.value.scrollLeft=9999,window.addEventListener("click",this.foldHandle,!0),this._events.customEvent?this.$emit("customEvent",this.currentData,t=>{this.multiple?this.setValueData(t):this.setValueData(Array.isArray(t)?[t[0]]:[t]),this.changeHandle()}):this.listPosition?this.foldHandle():(this.listPosition=!0,this.$nextTick(this.updatePosition),Pn(this.$el,t=>{t.addEventListener("scroll",this.updatePosition)}),this.asyncState&&this.searchConfig.empty&&this.asyncSearchHandle()))},foldHandle(t){t&&this.active||(this.searchFocus(!1),this.searchValue=this.searchConfig&&!this.multiple?this.valueName:"",this.$refs.value.scrollLeft=0,window.removeEventListener("click",this.foldHandle,!0),t&&this._events.customEvent||(this.listPosition=!1,Pn(this.$el,t=>{t.removeEventListener("scroll",this.updatePosition)}),this.asyncState&&(this.optionsList=[])))},searchFocus(t=!0){this.searchValue="",this.$nextTick(()=>{this.$refs.input&&this.$refs.input[t?"focus":"blur"]()})},asyncSearchHandle(){this.asyncState&&(this.searchConfig.empty||this.searchValue.trim()?this.searchConfig.options?this.$compsConfig.data.options[this.searchConfig.options](this.searchValue.trim(),t=>{this.optionsList=t||[],this.listPosition&&this.$nextTick(this.updatePosition)}):this.$emit("search",this.searchValue.trim(),t=>{this.optionsList=JSON.parse(JSON.stringify(t))||[],this.listPosition&&this.$nextTick(this.updatePosition)}):this.optionsList=[])},asyncSearchDebounceHandle:Vf((function(){this.asyncSearchHandle()}),300),deleteValue(t){this.currentValue.splice(this.currentValue.findIndex(e=>e==t.value),1),this.changeHandle(),this.searchFocus()},clearHandle(){this.set("object"==typeof this.currentValue?[]:""),this.changeHandle(),this.listPosition&&this.searchFocus()},changeHandle(){this.$nextTick(()=>{this.$emit("change",this.getData()),this.cFormStore.commit("editState",!0)})},addHandle(t,e){t&&this.searchConfig.addEvents.includes(e)&&this.$emit("add",t,t=>{t&&(this.optionsList.push(t),this.$refs.options.clickHandle(t,!0))})},updatePosition(){let t=this.$el.getBoundingClientRect(),e=this.$refs.list.offsetHeight<this.listHeight?this.$refs.list.offsetHeight:this.listHeight,n=window.innerHeight-t.bottom<e;this.listPosition={left:t.left+"px",top:window.scrollY+(n?t.top-e+1:t.top+t.height-1)+"px",width:(this.listWidth||t.width)+"px","max-height":this.parsePixel(this.listHeight,!0)}}}},xi=wi,ki=(n("cb82"),d(xi,vi,bi,!1,null,"1def3566",null)),Si=ki.exports,Di=function(){var t=this,e=t._self._c;return e("div",{staticClass:"c-region",attrs:{warn:!!t.provinceName&&t.warnState}},[e("div",{staticClass:"flex"},[t.level>=1?e("c-select",{ref:"province",staticClass:"flex-grow",attrs:{options:t.provinceOptions,placeholder:"_t.region.province",search:"",disabled:t.disabled},on:{change:function(e){return t.changeHandle(e,"province")}},model:{value:t.valueData.province,callback:function(e){t.$set(t.valueData,"province",e)},expression:"valueData.province"}}):t._e(),t.level>=2?e("c-select",{ref:"city",staticClass:"flex-grow",attrs:{options:t.cityOptions,placeholder:"_t.region.city",search:"",disabled:t.disabled},on:{change:function(e){return t.changeHandle(e,"city")}},model:{value:t.valueData.city,callback:function(e){t.$set(t.valueData,"city",e)},expression:"valueData.city"}}):t._e(),t.level>=3?e("c-select",{ref:"county",staticClass:"flex-grow",attrs:{options:t.countyOptions,placeholder:"_t.region.county",search:"",disabled:t.disabled},on:{change:function(e){return t.changeHandle(e,"county")}},model:{value:t.valueData.county,callback:function(e){t.$set(t.valueData,"county",e)},expression:"valueData.county"}}):t._e()],1),4==t.level?e("c-input",{attrs:{placeholder:"_t.region.address",disabled:t.disabled},on:{change:function(e){return t.changeHandle(e,"address")}},model:{value:t.valueData.address,callback:function(e){t.$set(t.valueData,"address",e)},expression:"valueData.address"}}):t._e()],1)},Ci=[],Ei={name:"cRegion",props:{value:{type:Object,default:()=>({})},provinceName:String,cityName:String,countyName:String,addressName:String,level:{type:[Number,String],default:3},disabled:Boolean,immediate:{type:Boolean,default:!0}},data(){return{...Rn(this,"cFormItemStore"),valueData:{province:"",city:"",county:"",address:""},provinceOptions:[],cityOptions:[],countyOptions:[]}},computed:{...zn("cFormItemStore",["warnState"])},watch:{value(t){this.set(t)}},async mounted(){this.immediate&&await this.updateOptions("province"),this.set(this.value)},methods:{async set(t={}){this.valueData.province=t.province,await this.updateOptions("city",t.province,t.city),await this.updateOptions("county",t.city,t.county),this.valueData.address=t.address||""},get(){return this.valueData},getData(){return{province:this.$refs.province.getData(),city:this.$refs.city&&this.$refs.city.getData(),county:this.$refs.county&&this.$refs.county.getData(),address:this.valueData.address}},async resetOptions(t){this.cityOptions=[],this.countyOptions=[],await this.updateOptions("province",t),this.set(this.valueData)},updateOptions(t,e,n){return new Promise(async i=>{("province"==t||"city"==t&&this.level>1||"county"==t&&this.level>2)&&(this[t+"Options"]=[],(e||"province"==t)&&(this[t+"Options"]=await new Promise(n=>{let i;i="province"!=t?this[("county"==t?"city":"province")+"Options"].find(t=>t.value==e)||{value:e}:e,this.$compsConfig.data.region(t,i,n)})),"province"!=t&&(this.valueData[t]=n),(1==this.level||2==this.level&&"city"==t||3==this.level&&"county"==t)&&this.$emit("input",this.get())),i()})},changeHandle(t,e){"province"==e?(this.updateOptions("city",t.value),this.updateOptions("county")):"city"==e?this.updateOptions("county",t.value):this.$emit("input",this.get()),this.$emit("change",this.get())}}},Ai=Ei,Ti=(n("8def"),d(Ai,Di,Ci,!1,null,"586236aa",null)),Bi=Ti.exports,Fi=function(){var t=this,e=t._self._c;return e("div",{staticClass:"c-datetime",class:{"z-active":t.pickerPosition,"z-dis":t.disabled},attrs:{warn:!!(t.name||t.startName||t.endName)&&t.warnState},on:{click:function(e){return t.cFormItemStore.commit("warnState",!1)},mouseenter:function(e){t.active=!0},mouseleave:function(e){t.active=!1}}},[e("div",{staticClass:"c-datetime-main flex-center"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.inputStart,expression:"inputStart"}],ref:"start",staticClass:"flex-grow",attrs:{placeholder:t.$t(t.range?t.placeholder[0]:t.placeholder),disabled:t.disabled},domProps:{value:t.inputStart},on:{change:function(e){return t.inputHandle("start")},click:function(e){return t.developHandle("start")},blur:t.blurHandle,input:function(e){e.target.composing||(t.inputStart=e.target.value)}}}),t.range?e("span",{staticClass:"c-datetime-line"},[t._v("-")]):t._e(),t.range?e("input",{directives:[{name:"model",rawName:"v-model",value:t.inputEnd,expression:"inputEnd"}],ref:"end",staticClass:"flex-grow",attrs:{placeholder:t.$t(t.placeholder[1]),disabled:t.disabled},domProps:{value:t.inputEnd},on:{change:function(e){return t.inputHandle("end")},click:function(e){return t.developHandle("end")},blur:t.blurHandle,input:function(e){e.target.composing||(t.inputEnd=e.target.value)}}}):t._e(),t.clear&&(t.start||t.end)?e("a",{staticClass:"c-datetime-clear flex-center",on:{click:function(e){return e.stopPropagation(),t.clearHandle.apply(null,arguments)}}},[e("i",{staticClass:"c-icon-clear"})]):t._e(),t._m(0)]),e("div",{directives:[{name:"show",rawName:"v-show",value:t.pickerPosition,expression:"pickerPosition"}],ref:"pickerBox",staticClass:"c-datetime-selector",style:t.pickerPosition,on:{click:t=>t.stopPropagation(),mouseenter:function(e){t.active=!0},mouseleave:function(e){t.active=!1}}},[e("c-datetime-picker",{ref:"picker",attrs:{type:t.type,timeAccuracy:t.timeAccuracy,start:"end"==t.inputType?t.start:"",end:"start"==t.inputType?t.end:"","min-date":t.compMinDate,"max-date":t.compMaxDate,format:t.format},on:{input:t.setDate}})],1)])},$i=[function(){var t=this,e=t._self._c;return e("span",{staticClass:"c-datetime-icon flex-center"},[e("i",{staticClass:"c-icon-calendar"})])}],Li={name:"cDatetime",props:{value:[String,Array],name:String,startName:String,endName:String,type:{type:String,default:"datetime"},timeAccuracy:{type:String,default:"sec"},range:[Boolean,Object],disabled:Boolean,placeholder:{type:[String,Array],default(){return this.range?["_t.datetime.placeholderStart","_t.datetime.placeholderEnd"]:"_t.datetime.placeholder"}},defaultTime:{type:[String,Array],default(){return this.range?["00:00:00","23:59:59"]:"00:00:00"}},format:{type:String,default(){return{datetime:"yyyy-MM-dd hh:mm:ss",date:"yyyy-MM-dd",time:"hh:mm:ss"}[this.type]}},clear:{type:Boolean,default:!0},minDate:{type:String},maxDate:{type:String}},data(){return{...Rn(this,"cFormStore"),...Rn(this,"cFormItemStore"),start:"",end:"",inputType:"",inputStart:"",inputEnd:"",pickerPosition:!1,active:!1}},computed:{...zn("cFormItemStore",["warnState"]),valueData(){return this.range?[this.start,this.end]:this.start},rangeOpt(){return!!this.range&&Object.assign({limit:!1},"object"==typeof this.range?this.range:{})},compMinDate(){if(this.rangeOpt&&this.rangeOpt.limit&&"start"==this.inputType&&this.end){let t=new Date(this.end);return t=new Date(t.setDate(t.getDate()-parseInt(this.rangeOpt.limit)+1)).format("yyyy-MM-dd 00:00:00"),!this.minDate||t>this.minDate?t:this.minDate}return this.minDate},compMaxDate(){if(this.rangeOpt&&this.rangeOpt.limit&&"end"==this.inputType&&this.start){let t=new Date(this.start);return t=new Date(t.setDate(t.getDate()+parseInt(this.rangeOpt.limit)-1)).format("yyyy-MM-dd 23:59:59"),!this.maxDate||t<this.maxDate?t:this.maxDate}return this.maxDate}},watch:{value(t){this.set(t)},valueData(){this.$emit("input",this.get())},inputType(t,e){t?(this.blurHandle(),this.updatePosition()):this.$refs[e].blur()}},mounted(){this.set(this.value),document.body.appendChild(this.$refs.pickerBox)},beforeDestroy(){document.body.removeChild(this.$refs.pickerBox)},methods:{set(t=""){this.range?(this.inputStart=this.start=t&&t[0]||"",this.inputEnd=this.end=t&&t[1]||"",(this.start||this.end)&&this.cFormItemStore.commit("warnState",!1)):(this.inputStart=this.start=t,this.start&&this.cFormItemStore.commit("warnState",!1))},get(){return this.valueData},changeHandle(){this.$emit("change",this.get()),this.cFormStore.commit("editState",!0)},developHandle(t){this.disabled||(this.inputType=t,this.listPosition=!0,this.$nextTick(this.updatePosition),window.addEventListener("click",this.foldHandle,!0),Pn(this.$el,t=>{t.addEventListener("scroll",this.updatePosition)}),this.$refs.picker.set(this[this.inputType]||(new Date).format("yyyy-MM-dd "+(this.range?this.defaultTime["end"==t?1:0]:this.defaultTime))))},foldHandle(t){t&&this.active||(this.inputType="",this.pickerPosition=!1,window.removeEventListener("click",this.foldHandle,!0),Pn(this.$el,t=>{t.removeEventListener("scroll",this.updatePosition)}))},updatePosition(){let t=this.$el.getBoundingClientRect(),e=this.range?this.$refs.end.getBoundingClientRect():null,n=this.$refs.pickerBox.getBoundingClientRect(),i="end"==this.inputType?e.left-8:t.left,r=window.innerWidth-i-20,o=window.innerHeight-t.bottom<n.height;this.pickerPosition={left:(r<n.width?i+r-n.width:i)+"px",top:window.scrollY+(o?t.top-n.height+1:t.top+t.height-1)+"px"}},blurHandle(){this.inputType&&this.$refs[this.inputType].focus()},inputHandle(t){let e="end"==t?"inputEnd":"inputStart",n=this.$refs.picker.parseDate(this[e])||[],i=new Date(`${n[0]}-${n[1]}-${n[2]} ${n[3]}:${n[4]}:${n[5]}`);this[e]="Invalid Date"==i?this[t]:this[t]=new Date(`${n[0]}-${n[1]}-${n[2]} ${n[3]}:${n[4]}:${n[5]}`).format(this.format)},clearHandle(){this.set(""),this.changeHandle()},setDate(t){"start"==this.inputType?(this.start=t,this.inputStart=t,this.range&&!this.end?this.developHandle("end"):(this.inputType="",this.foldHandle())):(this.end=t,this.inputEnd=t,this.start?(this.inputType="",this.foldHandle()):this.developHandle("start")),this.changeHandle()}}},Mi=Li,Ii=(n("0a1d"),d(Mi,Fi,$i,!1,null,"2e4157e4",null)),Pi=Ii.exports,Ni=function(){var t=this,e=t._self._c;return e("div",{staticClass:"c-color",class:{"z-active":t.pickerPosition,"z-dis":t.disabled},attrs:{warn:!!t.name&&t.warnState},on:{click:function(e){return t.cFormItemStore.commit("warnState",!1)},mouseenter:function(e){t.active=!0},mouseleave:function(e){t.active=!1}}},[e("div",{staticClass:"c-color-main flex-center",on:{click:t.developHandle}},[e("div",{staticClass:"c-color-preview",style:{background:t.valueData}}),e("input",{directives:[{name:"model",rawName:"v-model",value:t.valueData,expression:"valueData"}],staticClass:"flex-grow",attrs:{disabled:t.disabled},domProps:{value:t.valueData},on:{blur:function(e){return t.set(t.valueData)},input:function(e){e.target.composing||(t.valueData=e.target.value)}}}),t.clear&&t.valueData?e("a",{staticClass:"c-color-clear flex-center",on:{click:function(e){return e.stopPropagation(),t.clearHandle.apply(null,arguments)}}},[e("i",{staticClass:"c-icon-clear"})]):t._e()]),e("div",{directives:[{name:"show",rawName:"v-show",value:t.pickerPosition,expression:"pickerPosition"}],ref:"pickerBox",staticClass:"c-color-selector",style:t.pickerPosition,on:{click:t=>t.stopPropagation(),mouseenter:function(e){t.active=!0},mouseleave:function(e){t.active=!1}}},[e("c-color-picker",{ref:"picker",on:{input:t.pickerHandle}})],1)])},Hi=[],Oi={name:"cColor",props:{value:String,name:String,disabled:Boolean,clear:{type:Boolean,default:!0}},data(){return{...Rn(this,"cFormStore"),...Rn(this,"cFormItemStore"),valueData:this.value,pickerPosition:!1,active:!1}},computed:{...zn("cFormItemStore",["warnState"])},watch:{value(t){this.set(t)}},mounted(){this.set(this.value),document.body.appendChild(this.$refs.pickerBox)},beforeDestroy(){document.body.removeChild(this.$refs.pickerBox)},methods:{set(t){t?(this.$refs.picker.set(t),this.cFormItemStore.commit("warnState",!1)):this.valueData=""},get(){return this.valueData},changeHandle(){this.$emit("change",this.get()),this.cFormStore.commit("editState",!0)},clearHandle(){this.set("")},developHandle(t){this.disabled||(this.listPosition=!0,this.$nextTick(this.updatePosition),window.addEventListener("click",this.foldHandle,!0),Pn(this.$el,t=>{t.addEventListener("scroll",this.updatePosition)}))},foldHandle(t){t&&this.active||(this.pickerPosition=!1,window.removeEventListener("click",this.foldHandle,!0),Pn(this.$el,t=>{t.removeEventListener("scroll",this.updatePosition)}))},updatePosition(){let t=this.$el.getBoundingClientRect(),e=this.$refs.pickerBox.getBoundingClientRect(),n=window.innerWidth-t.left-20,i=window.innerHeight-t.bottom<e.height;this.pickerPosition={left:(n<e.width?t.left+n-e.width:t.left)+"px",top:window.scrollY+(i?t.top-e.height+1:t.top+t.height-1)+"px"}},pickerHandle(t){this.valueData=t,this.$emit("input",this.get()),this.changeHandle()}}},Ri=Oi,zi=(n("c21e"),d(Ri,Ni,Hi,!1,null,"5470b092",null)),Ui=zi.exports,Ki=function(){var t=this,e=t._self._c;return e("div",{staticClass:"c-transfer flex-center-cross"},[e("dl",{staticClass:"flex-column flex-grow",style:{height:t.parsePixel(t.height,!0)},attrs:{warn:!!t.name&&t.warnState}},[e("dt",[t._v(t._s(t.compTitle[0]))]),t.searchConfig?e("dd",[e("div",{staticClass:"c-transfer-search flex-center"},[e("c-input",{staticClass:"flex-grow",attrs:{type:"text",placeholder:t.$t(t.searchConfig.placeholder)},on:{input:t.searchDebounceHandle},scopedSlots:t._u([{key:"appendIcon",fn:function(){return[e("i",{staticClass:"c-icon-search"})]},proxy:!0}],null,!1,2573559812),model:{value:t.keyword,callback:function(e){t.keyword=e},expression:"keyword"}})],1)]):t._e(),e("dd",{staticClass:"flex-grow"},[t._l(t.options,(function(n,i){return[e("div",{directives:[{name:"show",rawName:"v-show",value:t.async||!t.keyword||t.$t(n.name).toLocaleLowerCase().includes(t.keyword.toLocaleLowerCase()),expression:"async || !keyword || $t(item.name).toLocaleLowerCase().includes(keyword.toLocaleLowerCase())"}],key:i,staticClass:"c-transfer-option flex-center",attrs:{title:t.$t(n.name)},on:{click:function(e){return t.transferHandle(n)}}},[e("c-checkbox",{attrs:{value:!!t.currentOptions.find(t=>t.value==n.value),readonly:""}}),e("p",{staticClass:"flex-grow ellipsis"},[t._v(t._s(t.$t(n.name)))])],1)]}))],2)]),e("dl",{staticClass:"flex-column flex-grow",style:{height:t.parsePixel(t.height,!0)},attrs:{warn:!!t.name&&t.warnState}},[e("dt",[t._v(t._s(t.compTitle[1]))]),e("dd",{staticClass:"flex-grow"},[e("c-drag-sort",{attrs:{disabled:!t.sort},on:{sort:t.sortHandle},scopedSlots:t._u([{key:"default",fn:function({item:n,id:i}){return[e("c-drag-item",{key:i,staticClass:"c-transfer-option flex-center",attrs:{title:t.$t(n.name)}},[e("c-drag-handle",[e("i",{staticClass:"c-transfer-option-drag c-icon-sort-drag"})]),e("p",{staticClass:"flex-grow ellipsis"},[t._v(t._s(t.$t(n.name)))]),e("a",{staticClass:"c-transfer-option-delete",on:{click:function(e){return t.transferHandle(n)}}},[e("i",{staticClass:"c-icon-cross"})])],1)]}}]),model:{value:t.currentOptions,callback:function(e){t.currentOptions=e},expression:"currentOptions"}})],1)])])},Wi=[],ji={name:"cTransfer",props:{async:Boolean,value:Array,valueData:Array,name:String,data:Array,title:{type:[String,Array],default:"_t.transfer.title"},search:[Boolean,Object],height:{type:[String,Number],default:300},sort:Boolean},data(){return{...Rn(this,"cFormStore"),...Rn(this,"cFormItemStore"),options:[],currentOptions:[],currentValue:[],keyword:""}},computed:{...zn("cFormItemStore",["warnState"]),searchConfig(){return!(!this.async&&!this.search)&&Object.assign({placeholder:"_t.transfer.searchPlaceholder",immediate:!0},"object"==typeof this.search?this.search:{})},compTitle(){return"string"==typeof this.title?[this.$t("_t.transfer.titleLeft",{name:this.$t(this.title)}),this.$t("_t.transfer.titleRight",{name:this.$t(this.title)})]:[this.$t(this.title[0]),this.$t(this.title[1])]}},watch:{value(t){this.set(t)},currentValue(){this.async||this.updateCurrentOption(),this.$emit("input",this.get())},options(){this.async||this.updateCurrentOption()},valueData(t){this.async&&this.setValueData(t)},data(t,e){this.async||(this.updateOption(t),Array.isArray(t)&&e.length&&this.set(""))}},mounted(){this.async?(this.setValueData(this.valueData),this.searchConfig.immediate&&this.searchHandle()):(this.updateOption(this.data),this.set(this.value))},methods:{set(t){this.currentValue=t||[],this.currentValue.length&&this.cFormItemStore.commit("warnState",!1)},get(){return this.currentValue},getData(){return this.currentOptions},setValueData(t){t&&(this.currentOptions=t,this.set(t.map(t=>t.value)))},updateOption(t){this.options=JSON.parse(JSON.stringify(t))},updateCurrentOption(){this.currentOptions=this.currentValue.map(t=>this.options.find(e=>e.value==t)).filter(t=>t)},transferHandle(t){this.cFormItemStore.commit("warnState",!1);let e=this.currentValue.findIndex(e=>e==t.value);-1==e?this.currentValue.push(t.value):this.currentValue.splice(e,1),this.async&&(-1==e?this.currentOptions.push(t):this.currentOptions.splice(e,1)),this.$emit("change",this.getData()),this.cFormStore.commit("editState",!0)},sortHandle(t,e,n,i){this.async||i(),this.currentValue.splice(n,0,this.currentValue.splice(e,1)[0])},searchHandle(){this.async&&this.$emit("search",this.keyword.trim(),this.updateOption)},searchDebounceHandle:Vf((function(){this.searchHandle()}),300)}},Vi=ji,qi=(n("7185"),d(Vi,Ki,Wi,!1,null,"1ca8c1c7",null)),Yi=qi.exports,Xi=function(){var t=this,e=t._self._c;return e("div",{staticClass:"c-switch",class:t.state?"z-open":"",style:{width:t.compWidth+"px",background:t.stateColor[t.state?0:1]},on:{click:t.switchHandle}},[e("div",{staticClass:"text flex-center",style:t.textStyle},[t._v(t._s(t.$t(t.stateText[t.state?0:1])))]),e("div",{staticClass:"handle",style:{left:t.handleSeat,width:t.handleSize+"px",height:t.handleSize+"px"}})])},Gi=[],Zi={name:"cSwitch",props:{value:[Boolean,Number,String],stateValue:{type:Array,default(){return[!0,!1]}},stateText:{type:Array,default(){return["_t.switch.open","_t.switch.close"]}},stateColor:{type:Array,default(){return["#00B578","#eee"]}},name:String},data(){return{...Rn(this,"cFormStore"),handleSize:22,valueData:this.value||this.stateValue[1]}},computed:{state(){return!this.stateValue.indexOf(this.valueData)},compWidth(){let t=Math.max(this.$t(this.stateText[0]).length,this.$t(this.stateText[1]).length);return 3+this.handleSize+4+t*("zh"==this.$i18n.locale?1:.5)*13+10},handleSeat(){return this.state?this.compWidth-this.handleSize-3+"px":"3px"},textStyle(){return this.state?{left:0}:{right:0}}},watch:{value(t){this.set(t)},valueData(){this.$emit("input",this.get())}},methods:{set(t=this.stateValue[1]){this.valueData=t},get(){return this.valueData},switchHandle(){this._events.beforeChange?this.$emit("beforeChange",this.state,()=>{this.switch()}):this.switch()},switch(t=this.state){this.valueData=this.stateValue[t?1:0],this.$emit("change",this.get()),this.cFormStore.commit("editState",!0)}}},Qi=Zi,Ji=(n("f67f"),d(Qi,Xi,Gi,!1,null,"13c36189",null)),tr=Ji.exports,er=function(){var t=this,e=t._self._c;return e("div",{staticClass:"c-upload",class:{"flex-start-end":t.media},attrs:{media:t.media}},[t.media?e("c-drag-sort",{staticClass:"c-upload-media flex-wrap",attrs:{disabled:!t.multiple||!t.sort},scopedSlots:t._u([{key:"default",fn:function({item:n,id:i,index:r}){return[e("c-drag-item",{key:i,staticClass:"c-upload-media-item flex-center"},[e("c-file",{attrs:{src:n,media:""}}),e("a",{staticClass:"flex-center",on:{click:function(e){return e.stopPropagation(),t.removeHandle(r)}}},[e("i",{staticClass:"c-icon-cross"})])],1)]}},{key:"append",fn:function(){return[t.upperLimit||t.parseValueData.length&&t.button?t._e():e("div",{staticClass:"c-upload-media-item c-upload-media-upload flex-center",on:{click:t.uploadHandle}},[e("i",{class:t.mediaIcon})])]},proxy:!0}],null,!1,3604882091),model:{value:t.parseValueData,callback:function(e){t.parseValueData=e},expression:"parseValueData"}}):t._e(),e("div",{staticClass:"c-upload-handle",class:{"flex-column":t.media,"flex-center-cross":!t.media}},[t.button?e("c-button",{style:{"align-self":t.media?"flex-start":""},attrs:{size:"upload","prepend-icon":t.icon,hollow:"",warn:!!t.name&&t.warnState},on:{click:t.uploadHandle}},[t._v(t._s(t.$t(t.button)))]):t._e(),t.type||t.tip||t.$slots.tip?e("div",{staticClass:"c-upload-tip"},[t._t("tip",null,{type:t.fileTypeTip}),t.$scopedSlots.tip?t._e():e("div",{class:{"flex-center":!t.media}},[t.tip?e("p",[t._v(t._s(t.tip))]):t._e(),t.fileTypeTip?e("p",[t._v(t._s(t.tip&&!t.media?",":"")+t._s(t.fileTypeTip))]):t._e()])],2):t._e()],1),t.media?t._e():e("ul",{directives:[{name:"show",rawName:"v-show",value:t.parseValueData.length,expression:"parseValueData.length"}],staticClass:"c-upload-list"},t._l(t.parseValueData,(function(n,i){return e("li",{key:i,staticClass:"flex-center-cross"},[e("c-file",{staticClass:"ellipsis",attrs:{src:n}}),e("a",{on:{click:function(e){return t.removeHandle(i)}}},[t._v(t._s(t.$t("_t.upload.delete")))])],1)})),0)],1)},nr=[],ir={name:"cUploadFile",props:{value:{type:[String,Array],default:""},name:String,type:String,size:[String,Number],media:Boolean,sort:{type:Boolean,default:!0},icon:{type:String,default:"c-icon-upload"},mediaIcon:{type:String,default:"c-icon-media"},button:{type:[String,Boolean],default:"_t.upload.button"},tip:String,multiple:{type:[Boolean,Number,String],default:!1}},data(){return{...Rn(this,"cFormStore"),...Rn(this,"cFormItemStore"),valueData:this.multiple?[]:""}},computed:{...zn("cFormItemStore",["warnState"]),parseValueData:{get(){return this.valueData?"object"==typeof this.valueData?this.valueData:this.valueData.toString().split(","):[]},set(t){this.multiple&&(this.valueData=t.join(",").split(","))}},fileTypeTip(){if(this.type){let t=[];return this.type.split(",").forEach(e=>{t=t.concat({image:[this.$t("_t.upload.type.image")],video:["mp4"],word:["doc(x)"],excel:["xls(x)"],zip:[this.$t("_t.upload.type.zip")]}[e]||[e])}),this.$t("_t.upload.tip",{type:t.join(",")})}return""},upperLimit(){return this.multiple?"boolean"!=typeof this.multiple&&this.parseValueData.length>=parseInt(this.multiple):this.parseValueData.length>0}},watch:{value(t){this.set(t)},valueData(){this.$emit("input",this.get())}},mounted(){this.set(this.value)},methods:{set(t){t||(t=this.multiple?[]:""),this.multiple&&"string"==typeof t&&(t=t.split(",")),this.valueData=t,Array.isArray(this.valueData)?this.valueData.length&&this.cFormItemStore.commit("warnState",!1):this.valueData&&this.cFormItemStore.commit("warnState",!1)},get(){return this.valueData},removeHandle(t){let e=this.parseValueData.join(",").split(",");e.splice(t,1),this.set(this.multiple?e:e.join(",")),this.changeHandle()},uploadHandle(){this.cFormItemStore.commit("warnState",!1),this.upperLimit&&this.multiple?this.$message({message:this.$t("_t.upload.message.limit",{limit:this.multiple})}):this._events.click?this.$emit("click",{type:this.type,size:this.size,count:this.multiple?"boolean"!=typeof this.multiple?parseInt(this.multiple)-this.parseValueData.length:"":1,success:t=>{this.multiple?this.set(this.parseValueData.concat(Array.from(t,t=>t.path))):this.set(t[0].path),this.changeHandle()}}):this.$upload({type:this.type,size:this.size,multiple:this.multiple,loading:!0,success:t=>{this.multiple?this.set(this.parseValueData.concat(Array.from(t,t=>t.path))):(Array.isArray(t)&&(t=t[0]),this.set(t.path)),this.changeHandle()}})},changeHandle(){this.$emit("change",this.get()),this.cFormStore.commit("editState",!0)}}},rr=ir,or=(n("fb1c"),d(rr,er,nr,!1,null,"66fcf5e0",null)),ar=or.exports,sr=function(){var t=this,e=t._self._c;return t.media?e("div",{staticClass:"c-file-media flex-center",attrs:{title:`${t.info.name}${t.info.suffix?".":""}${t.info.suffix}`},on:{click:t.previewHandle}},["video"==t.info.media?e("video",{attrs:{src:t.src}}):"image"==t.info.media?e("img",{attrs:{src:t.src}}):e("i",{staticClass:"c-file-icon c-icon-file",class:"c-icon-file-"+t.info.suffix})]):e("div",{staticClass:"c-file flex-center-cross",on:{click:t.download}},[e("i",{staticClass:"c-file-icon c-icon-fw c-icon-file",class:"c-icon-file-"+t.info.suffix}),e("a",{staticClass:"ellipsis"},[t._v(t._s(t.info.name)+t._s(t.info.suffix?".":"")+t._s(t.info.suffix))])])},lr=[],cr={name:"cFile",props:{src:String,media:Boolean,preview:{type:Boolean,default:!0}},computed:{info(){return this.parseFile(this.src)}},methods:{download(){window.open(this.src)},previewHandle(){this.preview&&(this.info.media?this.$preview({src:this.src}):this.download())}}},ur=cr,dr=(n("ad6e"),d(ur,sr,lr,!1,null,"b510596e",null)),hr=dr.exports,pr=function(){var t=this,e=t._self._c;return e("div",{staticClass:"c-editor"},[e("div",{ref:"div",attrs:{id:t.id}})])},fr=[],mr=(n("79d9"),n("5a08"),{name:"cEditor",props:{value:String,name:String,height:{type:[String,Number],default:300},autoHeight:Boolean},data(){return{id:"KindEditor"+this._uid}},watch:{value(t){this.editor.html(t)}},mounted(){setTimeout(()=>{this.editor||this.create(),this.set(this.value)})},activated(){this.destroy(),this.create()},beforeDestroy(){this.destroy()},methods:{set(t=""){this.editor.html(t)},get(){return this.editor.html()},create(){this.editor=KindEditor.create("#"+this.id,{width:"100%",height:this.height,resizeType:1,autoHeightMode:!!this.autoHeight,afterBlur:()=>{this.$emit("input",this.get())}})},destroy(){this.editor&&this.editor.remove()}}}),gr=mr,vr=(n("6286"),d(gr,pr,fr,!1,null,"cbdbd666",null)),br=vr.exports,_r=function(){var t=this,e=t._self._c;return e("div",{directives:[{name:"show",rawName:"v-show",value:t.show,expression:"show"}]},[t.mask?e("div",t._g({staticClass:"c-popup-mask an an-fadein",class:{"an-fadeout":!t.active},style:{"z-index":t.zIndex}},t.maskEvent)):t._e(),e("div",{ref:"wrapper",staticClass:"c-dialog-wrapper",class:{"z-max":t.max},style:{...t.position,"z-index":t.zIndex,width:t.parsePixel(t.compWidth,!0)},attrs:{mode:t.mode}},[e("div",{staticClass:"c-dialog flex-column an",class:{"z-shadow":!t.mask,[t.animateClass]:t.active,"an-fadeout":!t.active},attrs:{mode:t.mode,confirm:t.confirm}},[!1!==t.options.title?e("div",{staticClass:"c-dialog-head flex-center-cross",attrs:{move:!!t.move},on:{mousedown:t.moveHandle}},[e("p",[t._v(t._s(t.$t(t.options.title)))]),t._t("head")],2):t._e(),e("div",{staticClass:"flex c-dialog-handle"},[t.compResizeButton?[t.compResizeButton.includes("min")?e("div",{staticClass:"c-dialog-handle-item flex-center",on:{click:t.minimize}},[e("i",{staticClass:"c-icon-dialog-min"})]):t._e(),t.compResizeButton.includes("max")?e("div",{staticClass:"c-dialog-handle-item flex-center",on:{click:function(e){t.max=!t.max}}},[e("i",{class:[t.max?"c-icon-dialog-normal":"c-icon-dialog-max"]})]):t._e()]:t._e(),t.closeButton?e("div",{staticClass:"c-dialog-handle-item close flex-center",on:{click:t.close}},[e("i",{staticClass:"c-icon-cross"})]):t._e()],2),e("div",{class:{"flex-grow":"slide"==t.mode||t.max,"flex-column":t.enableFlex},style:{height:t.compHeight,overflow:"auto"==t.compHeight?"":"auto"}},[t._t("default")],2),t.options.button?e("div",{staticClass:"c-dialog-button flex-center-cross flex-end-center"},[t.$slots.button?t._t("button"):[e("c-button",{attrs:{size:"dialog",color:"main"},on:{click:function(e){return t.buttonHandle("resolve")}}},[t._v(t._s(t.$t(t.options.buttonName)))]),t.options.cancelButton?e("c-button",{attrs:{size:"dialog"},on:{click:function(e){return t.buttonHandle("cancel")}}},[t._v(t._s(t.$t(t.options.cancelButtonName)))]):t._e()]],2):t._e()])])])},yr=[],wr={name:"cDialog",props:{mode:{type:String,default:"popup"},confirm:Boolean,title:{type:[String,Boolean],default:""},width:[Number,String],height:{type:[Number,String],default:"auto"},resizeButton:[Boolean,Array],closeButton:{type:Boolean,default:!0},move:{type:Boolean,default:!0},moveLimit:{type:Boolean,default:!0},button:{type:Boolean,default:!0},buttonName:{type:String,default:"_t.popup.button"},cancelButton:{type:Boolean,default:!0},cancelButtonName:{type:String,default:"_t.popup.cancelButton"},enableFlex:Boolean,maskClose:{type:Boolean,default(){return this.$compsConfig.config.dialog.maskClose}},mask:{type:Boolean,default:!0}},data(){return{zIndex:1001,animate:!1,show:!1,active:!1,position:{},actualWidth:0,actualHeight:0,openOptions:{},max:!1,min:!1,maskEvent:{[this.$compsConfig.config.dialog.maskCloseEvent]:()=>{this.maskClose&&this.closeButton&&this.close()}}}},computed:{compWidth(){return this.show,this.max?"100%":this.actualWidth||this.parsePixel(this.width+"+0")||{popup:750,slide:600}[this.mode]},compHeight(){return this.show,"slide"==this.mode?"100%":this.parsePixel(this.actualHeight||this.height+"+0",!0)},propsOptions(){return{title:this.title,button:this.button,buttonName:this.buttonName,cancelButton:this.cancelButton,cancelButtonName:this.cancelButtonName}},options(){return Object.assign({},this.propsOptions,this.openOptions)},animateClass(){return this.animate?{popup:"an-popup",slide:"an-slidein"}[this.mode]:""},compResizeButton(){return Array.isArray(this.resizeButton)?this.resizeButton:!!this.resizeButton&&["min","max"]}},watch:{max(t){t?(this._lastPosition=this.position,this.position={left:0,top:0,right:0,bottom:0}):this.position=this._lastPosition}},mounted(){(function t(e){e&&("cDialog"==e.$options.name?this.zIndex=e.zIndex+1:t.call(this,e.$parent))}).call(this,this.$parent)},activated(){this._min&&this._min.show()},deactivated(){this._min&&this._min.hide()},beforeDestroy(){this._min&&this._min.remove()},methods:{updatePosition(t){this.show&&this.$nextTick(()=>{let e=this.$refs.wrapper.getBoundingClientRect();if(e.width>document.body.clientWidth-80?e.width=this.actualWidth=document.body.clientWidth-80:this.actualWidth=0,"popup"==this.mode){let t=(!1!==this.options.title?61:0)+(this.options.button?61:0);e.height>window.innerHeight-80?(this.actualHeight=window.innerHeight-80-t,e.height=this.actualHeight+t):this.actualHeight=0}"slide"==this.mode?this.position={right:0,top:0}:this.position=t?{left:parseInt(t.left)+"px",top:parseInt(t.top)+"px"}:{left:(document.body.clientWidth-e.width)/2+"px",top:(window.innerHeight-e.height)/2+"px"}})},open(t={}){if(!this._min)return t.zIndex&&(this.zIndex=t.zIndex),this.openOptions=t,this.openHandle(),this.updatePosition(t.position),new Promise(t=>{this._resolve=t});this.openHandle()},minimize(){this.active&&(this._min=this.$minDialog(this,{title:this.options.title||"",closeButton:this.closeButton,back:this.openHandle}),this.outHandle())},close(){let t=!1;(function(t,e){this.$emit("close",t,e),this.openOptions.close&&this.openOptions.close(t,e)}).call(this,()=>{t=!0},this.closeHandle),setTimeout(()=>{!t&&this.closeHandle()})},openHandle(){this._min&&this._min.remove(),delete this._min,this.animate=!0,this.active=!0,this.show=!0,setTimeout(()=>{this.animate=!1},450)},closeHandle(){this._min&&this._min.remove(),delete this._min,this.outHandle(),setTimeout(()=>{this.actualWidth=this.actualHeight=0,this.max=this.min=!1},250)},outHandle(){this.active=!1,setTimeout(()=>{this.show=!1},250)},buttonHandle(t){let e=!1;(function(e,n){this.$emit(t,e,n),this._resolve({type:t,stop:e,next:n}),this.openOptions[t]&&this.openOptions[t](e,n)}).call(this,()=>{e=!0},this.closeHandle),setTimeout(()=>{!e&&this.closeHandle()})},moveHandle(t){if(this.max)return;this.moveEnd();let e="slide"==this.mode,n=this.$refs.wrapper.getBoundingClientRect(),i={x:e?document.body.clientWidth-n.right:n.left,y:n.top},r={x:t.clientX,y:t.clientY};this._mousemoveEvent=t=>{let o={x:t.clientX<0?0:t.clientX>document.body.clientWidth?document.body.clientWidth:t.clientX,y:t.clientY<0?0:t.clientY>window.innerHeight?window.innerHeight:t.clientY},a={x:i.x+(o.x-r.x)*(e?-1:1),y:i.y+o.y-r.y};if(this.moveLimit){let t={x:document.body.clientWidth-n.width,y:window.innerHeight-n.height};a.x=a.x<0?0:a.x>t.x?t.x:a.x,a.y=a.y<0?0:a.y>t.y?t.y:a.y}this.position={[e?"right":"left"]:a.x+"px",top:e?0:a.y+"px"}},document.addEventListener("mousemove",this._mousemoveEvent),document.addEventListener("mouseup",this.moveEnd)},moveEnd(){document.removeEventListener("mousemove",this._mousemoveEvent),document.removeEventListener("mouseup",this.moveEnd)}}},xr=wr,kr=(n("1ba6"),d(xr,_r,yr,!1,null,"b6c0bb64",null)),Sr=kr.exports,Dr=function(){var t=this,e=t._self._c;return e("dl",{directives:[{name:"show",rawName:"v-show",value:t.active,expression:"active"}],staticClass:"c-window",style:t.compStyle},[e("dt",{staticClass:"flex-between-center"},[e("p",[t._v(t._s(t.$t(t.title)))]),e("a",{on:{click:t.hideHandle}},[e("i",{staticClass:"c-icon-cross"})])]),e("dd",{ref:"content",style:{height:t.parsePixel(this.height,!0)}},[t._t("default")],2),t.$scopedSlots.button?e("dd",{staticClass:"flex-between-center"},[e("div",[t._t("beforeButton")],2),e("div",{staticClass:"c-window-button flex"},[t._t("button")],2)]):t._e()])},Cr=[],Er={name:"cWindow",props:{title:String,width:{type:[Number,String],default:400},height:{type:[Number,String],default:"auto"},position:{type:String,default:"bottom"},align:{type:String,default:"start"}},data(){return{active:!1,positionStyle:{}}},computed:{compStyle(){return Object.assign({width:this.parsePixel(this.width,!0)},this.positionStyle)}},deactivated(){this.hide()},methods:{show(t,e=this.position,n=this.align){if(this.active=!0,this.$nextTick(()=>{this.$refs.content.scrollTop=0}),t){t=t.$options?t.$el:t;let i=["left","right"].includes(e);this._updatePosition=()=>{let r=t.getBoundingClientRect(),o=r.top+({top:-this.$el.offsetHeight,bottom:r.height}[e]||0)+(i&&"start"!=n?r.height-this.$el.offsetHeight:0);this.positionStyle={left:r.left+({left:-this.$el.offsetWidth,right:r.width}[e]||0)+(["top","bottom"].includes(e)&&"start"!=n?r.width-this.$el.offsetWidth:0)+"px",top:Math.max(Math.min(o,window.innerHeight-this.$el.offsetHeight),0)+"px"}},this._removeEvent=()=>{Pn(t,t=>{t.removeEventListener("scroll",this._updatePosition)})},Pn(t,t=>{t.addEventListener("scroll",this._updatePosition)}),this.$nextTick(this._updatePosition)}else this.positionStyle={position:"static"}},hide(){this._removeEvent&&this._removeEvent(),this.active=!1},hideHandle(){this.hide(),this.$emit("close")}}},Ar=Er,Tr=(n("6cf1"),d(Ar,Dr,Cr,!1,null,"3d87fc16",null)),Br=Tr.exports,Fr=function(){var t=this,e=t._self._c;return e("div",{staticClass:"c-table flex-column flex-grow-auto",style:{height:t.compHeight,"user-select":t.widthResizePosition?"none":"auto"},attrs:{border:t.border}},[e("div",{staticClass:"c-table-main flex-column flex-grow-auto",attrs:{"fixed-width":t.fixedWidth,"left-shadow":t.leftShadow,"right-shadow":t.rightShadow}},[e("c-tbody",{ref:"tbody",attrs:{"auto-height":"auto"==t.height},scopedSlots:t._u([{key:"head",fn:function(){return[e("c-thead")]},proxy:!0},t.$scopedSlots.empty?{key:"empty",fn:function(){return[t._t("empty")]},proxy:!0}:null,t.$scopedSlots.custom?{key:"custom",fn:function({data:e,index:n}){return[t._t("custom",null,{data:e,index:n})]}}:null,t.summedRow?{key:"summed",fn:function(){return[e("c-summed")]},proxy:!0}:null],null,!0)})],1),!t.data&&t.pageBar?e("div",{staticClass:"c-table-foot"},[e("c-pagination",{staticClass:"c-table-page",attrs:{value:t.pageIndex,total:t.total,"page-size":t.pagingConfig.size,"page-size-select":t.pagingConfig.select},on:{handle:t.pageHandle}})],1):t._e(),t.widthResizePosition?e("div",{staticClass:"c-table-head-drag-line",style:{left:t.widthResizePosition+"px"}}):t._e(),e("div",{ref:"hidden",staticStyle:{display:"none"}},[t._t("default")],2)])},$r=[];function Lr(t,e){switch(e.type){case"selector":return e.multiple?[t("div",{class:"flex-center-cross"},[t("c-checkbox",{attrs:{value:this.allSelected},on:{change:t=>{this.store.selectHandle("all",t)}}})])]:"";default:return[t("div",{class:e.isParent||e.alignCenter?"flex-center":"flex-center-cross"},[e.required?[t("b",{class:"c-table-head-required"},["*"])]:[],e.$scopedSlots.head?[t("div",{class:"ellipsis"},[e.$scopedSlots.head()])]:[t("p",{class:e.ellipsis?"ellipsis":"",attrs:{title:this.$t(e.label)}},[this.$t(e.label)])],e.$scopedSlots.tip?[t("div",{class:"c-table-head-tip"},[e.$scopedSlots.tip()])]:[]])]}}var Mr={render(t){return t("div",{class:"c-table-head",style:`min-width: ${this.columnsWidth}px;`},[t("table",{style:this.fixedWidth},[t("colgroup",[this.columns.map(e=>t("col",{attrs:{width:`${e.resizeWidth}${e.widthResize?"%":"px"}`}}))]),t("thead",[this.header.map(e=>[t("tr",[e.map(e=>[t("th",{attrs:{rowspan:e.isParent?1:this.header.length-e.headLevel,colspan:e.colspan,parent:e.isParent,fixed:e.fixed,last:e._last},style:void 0!==e._position?`z-index: 10; position: sticky; ${e.fixed}: ${e._position}px`:""},[Lr.call(this,t,e),this.widthResize&&!e.isParent&&e.widthResize?[t("div",{class:"c-table-head-drag",attrs:{type:"right"==e.fixed?"left":"right"},on:{mousedown:t=>this.dragHandle(t,e,"right"==e.fixed?"left":"right")}})]:[]])])])])])])])},data(){return{store:this.$parent.store}},computed:{...zn(["header","columns","fixedWidth","columnsWidth","allSelected","widthResize"])},methods:{dragHandle(t,e,n){let i=t.target.getBoundingClientRect().left-this.store.table.$el.getBoundingClientRect().left,r=t.clientX,o=0,a="right"==n?1/0:e.resizeWidth-20,s="left"==n?-1/0:20-e.resizeWidth;this.store.commit("widthResizePosition",i);const l=qf(t=>{o=t.clientX-r,this.store.commit("widthResizePosition",i+o)},20,!1),c=()=>{o=(o>a?a:o<s?s:o)*("right"==n?1:-1),e.resizeWidth+=o,document.removeEventListener("mousemove",l),document.removeEventListener("mouseup",c),this.store.commit("widthResizePosition",null),this.store.table.$emit("widthResize",{type:e.type,name:e.name,width:e.resizeWidth})};document.addEventListener("mousemove",l),document.addEventListener("mouseup",c)}}},Ir=function(){var t=this,e=t._self._c;return e("div",{staticClass:"c-table-button flex-wrap"},[t._l(t.buttonList.list,(function(n,i){return[n.disabled&&n.disabled.tip?e("c-tooltip",{key:i,attrs:{tip:n.disabled.tip,position:"top",align:n.disabledConfig.tipAlign,width:n.disabledConfig.tipWidth}},[e("item-button",{attrs:{data:n},nativeOn:{click:function(e){return e.stopPropagation(),t.buttonHadnle(n)}}},[t._v(t._s(t.$t(n.$slots.default[0].text)))])],1):e("item-button",{key:i,attrs:{data:n},nativeOn:{click:function(e){return e.stopPropagation(),t.buttonHadnle(n)}}},[t._v(t._s(t.$t(n.$slots.default[0].text)))])]})),t.buttonList.more?e("div",{ref:"more",staticClass:"c-table-button-item ellipsis flex-center",on:{click:function(t){t.stopPropagation()},mouseenter:function(e){return t.moreHandle(!0)},mouseleave:function(e){return t.moreHandle(!1)}}},[t._v(" "+t._s(t.$t("_t.table.more"))),e("i",{staticClass:"c-table-button-tri c-icon-tri-down"})]):t._e(),t.buttonList.more?e("div",{directives:[{name:"show",rawName:"v-show",value:t.listPosition,expression:"listPosition"}],ref:"list",staticClass:"c-table-button-more",style:t.listPosition,on:{mouseenter:function(e){return t.moreHandle(!0)},mouseleave:function(e){return t.moreHandle(!1)}}},[e("ul",{attrs:{up:t.listPosition.up}},[t._l(t.buttonList.more,(function(n,i){return[n.disabled&&n.disabled.tip?e("c-tooltip",{key:i,staticStyle:{display:"block"},attrs:{tip:n.disabled.tip,position:"left",align:n.disabledConfig.tipAlign,width:n.disabledConfig.tipWidth}},[e("more-button",{attrs:{data:n},nativeOn:{click:function(e){return e.stopPropagation(),t.buttonHadnle(n)}}},[t._v(t._s(t.$t(n.$slots.default[0].text)))])],1):e("more-button",{key:i,attrs:{data:n},nativeOn:{click:function(e){return e.stopPropagation(),t.buttonHadnle(n)}}},[t._v(t._s(t.$t(n.$slots.default[0].text)))])]}))],2)]):t._e(),e("div",{ref:"hidden",staticStyle:{display:"none"}},[t._t("default")],2)],2)},Pr=[];const Nr={render(t){return t("div",{class:"c-table-button-item ellipsis flex-center",attrs:{title:this.$t(this.data.$slots.default[0].text),disabled:this.data.disabled,attr:this.data.attr}},[this.data.icon?[t("i",{class:"c-table-button-icon "+this.data.icon})]:[],t("span",[this.$t(this.$slots.default[0].text)])])},props:{data:Object}},Hr={render(t){return t("li",{class:"ellipsis flex-center-cross",attrs:{title:this.$t(this.data.$slots.default[0].text),disabled:this.data.disabled,attr:this.data.attr}},[this.data.icon?[t("i",{class:"c-table-button-icon "+this.data.icon})]:[],t("span",[this.$t(this.$slots.default[0].text)])])},props:{data:Object}};var Or={name:"cTableButtonGroup",components:{itemButton:Nr,moreButton:Hr},props:{limit:Number},data(){return{store:this.$parent.store,buttons:[],listPosition:!1}},computed:{buttonList(){var t=Array.from(this.buttons,t=>t),e="";return t.length>this.limit&&(e=t.splice(this.limit-1)),{list:t,more:e}}},watch:{buttonList(t){t.more&&this.$nextTick(()=>{this.$refs.list&&document.body.appendChild(this.$refs.list)})}},mounted(){this.update(),this.$refs.list&&document.body.appendChild(this.$refs.list)},beforeDestroy(){this.$refs.list&&document.body.removeChild(this.$refs.list)},methods:{update(){this.$nextTick(()=>{this.buttons=Array.from(this.$refs.hidden?this.$refs.hidden.children:[],t=>this.$children.find(e=>e.$el==t))})},buttonHadnle(t){t.disabled?t.$emit("disabledClick"):(this.moreHandle(!1),t.$emit("click"))},moreHandle(t){t?this._moreTimer?clearTimeout(this._moreTimer):(this.listPosition=!0,Pn(this.$refs.more,t=>{t.addEventListener("scroll",this.updatePosition)}),this.$nextTick(this.updatePosition)):this._moreTimer=setTimeout(()=>{delete this._moreTimer,Pn(this.$el,t=>{t.removeEventListener("scroll",this.updatePosition)}),this.listPosition=!1},20)},updatePosition(){let t=this.$refs.more.getBoundingClientRect(),e=this.$refs.list.offsetHeight,n=window.innerHeight-t.bottom<e;this.listPosition={up:n,right:document.body.offsetWidth-t.right+"px",top:(n?t.top-e:t.bottom)+"px"}}}},Rr=Or,zr=d(Rr,Ir,Pr,!1,null,null,null),Ur=zr.exports;
|
|
19
19
|
/**!
|
|
20
20
|
* Sortable 1.15.2
|
|
21
21
|
* @author RubaXa <trash@rubaxa.org>
|