diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..b163ca8 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/unpackage diff --git a/.idea/.gitignore b/.idea/.gitignore index 35410ca..cc36487 100644 --- a/.idea/.gitignore +++ b/.idea/.gitignore @@ -6,3 +6,4 @@ # Datasource local storage ignored files /dataSources/ /dataSources.local.xml +unpackage\ \ No newline at end of file diff --git a/pages/index/index.vue b/pages/index/index.vue index e743be1..560de43 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -1,21 +1,18 @@ - +.content { + display: flex; + flex-direction: column; + align-items: center; + justify-content: center; +} +.logo { + height: 200rpx; + width: 200rpx; + margin-top: 200rpx; + margin-left: auto; + margin-right: auto; + margin-bottom: 50rpx; +} +.text-area { + display: flex; + justify-content: center; +} +.title { + font-size: 36rpx; + color: $uni-color-primary; +} +.icon { + width: 36rpx; + height: 36rpx; +} + \ No newline at end of file diff --git a/unpackage/dist/cache/.vite/deps/_metadata.json b/unpackage/dist/cache/.vite/deps/_metadata.json deleted file mode 100644 index b840ca3..0000000 --- a/unpackage/dist/cache/.vite/deps/_metadata.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "hash": "243d1fe4", - "configHash": "3b48a99b", - "lockfileHash": "e3b0c442", - "browserHash": "7adb1bbc", - "optimized": {}, - "chunks": {} -} \ No newline at end of file diff --git a/unpackage/dist/cache/.vite/deps/package.json b/unpackage/dist/cache/.vite/deps/package.json deleted file mode 100644 index 3dbc1ca..0000000 --- a/unpackage/dist/cache/.vite/deps/package.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "type": "module" -} diff --git a/unpackage/dist/dev/.nvue/app.css.js b/unpackage/dist/dev/.nvue/app.css.js deleted file mode 100644 index c5ba808..0000000 --- a/unpackage/dist/dev/.nvue/app.css.js +++ /dev/null @@ -1,11 +0,0 @@ -var __getOwnPropNames = Object.getOwnPropertyNames; -var __commonJS = (cb, mod) => function __require() { - return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports; -}; -var require_app_css = __commonJS({ - "app.css.js"(exports) { - const _style_0 = {}; - exports.styles = [_style_0]; - } -}); -export default require_app_css(); diff --git a/unpackage/dist/dev/.nvue/app.js b/unpackage/dist/dev/.nvue/app.js deleted file mode 100644 index 8236d9e..0000000 --- a/unpackage/dist/dev/.nvue/app.js +++ /dev/null @@ -1,2 +0,0 @@ -Promise.resolve("./app.css.js").then(() => { -}); diff --git a/unpackage/dist/dev/app-plus/__uniappautomator.js b/unpackage/dist/dev/app-plus/__uniappautomator.js deleted file mode 100644 index 0f9252f..0000000 --- a/unpackage/dist/dev/app-plus/__uniappautomator.js +++ /dev/null @@ -1,16 +0,0 @@ -var n; -/*! ***************************************************************************** -Copyright (c) Microsoft Corporation. - -Permission to use, copy, modify, and/or distribute this software for any -purpose with or without fee is hereby granted. - -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH -REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY -AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, -INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM -LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR -OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR -PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */ -function __spreadArrays(){for(var s=0,i=0,il=arguments.length;in;n++)r(e,e._deferreds[n]);e._deferreds=null}function c(e,n){var t=!1;try{e((function(e){t||(t=!0,i(n,e))}),(function(e){t||(t=!0,f(n,e))}))}catch(o){if(t)return;t=!0,f(n,o)}}var a=setTimeout;o.prototype.catch=function(e){return this.then(null,e)},o.prototype.then=function(e,n){var o=new this.constructor(t);return r(this,new function(e,n,t){this.onFulfilled="function"==typeof e?e:null,this.onRejected="function"==typeof n?n:null,this.promise=t}(e,n,o)),o},o.prototype.finally=e,o.all=function(e){return new o((function(t,o){function r(e,n){try{if(n&&("object"==typeof n||"function"==typeof n)){var u=n.then;if("function"==typeof u)return void u.call(n,(function(n){r(e,n)}),o)}i[e]=n,0==--f&&t(i)}catch(c){o(c)}}if(!n(e))return o(new TypeError("Promise.all accepts an array"));var i=Array.prototype.slice.call(e);if(0===i.length)return t([]);for(var f=i.length,u=0;i.length>u;u++)r(u,i[u])}))},o.resolve=function(e){return e&&"object"==typeof e&&e.constructor===o?e:new o((function(n){n(e)}))},o.reject=function(e){return new o((function(n,t){t(e)}))},o.race=function(e){return new o((function(t,r){if(!n(e))return r(new TypeError("Promise.race accepts an array"));for(var i=0,f=e.length;f>i;i++)o.resolve(e[i]).then(t,r)}))},o._immediateFn="function"==typeof setImmediate&&function(e){setImmediate(e)}||function(e){a(e,0)},o._unhandledRejectionFn=function(e){void 0!==console&&console&&console.warn("Possible Unhandled Promise Rejection:",e)};var l=function(){if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw Error("unable to locate global object")}();"Promise"in l?l.Promise.prototype.finally||(l.Promise.prototype.finally=e):l.Promise=o},"object"==typeof exports&&"undefined"!=typeof module?n():"function"==typeof define&&define.amd?define(n):n();var getRandomValues="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto),rnds8=new Uint8Array(16);function rng(){if(!getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return getRandomValues(rnds8)}for(var byteToHex=[],i=0;i<256;++i)byteToHex[i]=(i+256).toString(16).substr(1);function v4(options,buf,offset){var i=buf&&offset||0;"string"==typeof options&&(buf="binary"===options?new Array(16):null,options=null);var rnds=(options=options||{}).random||(options.rng||rng)();if(rnds[6]=15&rnds[6]|64,rnds[8]=63&rnds[8]|128,buf)for(var ii=0;ii<16;++ii)buf[i+ii]=rnds[ii];return buf||function(buf,offset){var i=offset||0,bth=byteToHex;return[bth[buf[i++]],bth[buf[i++]],bth[buf[i++]],bth[buf[i++]],"-",bth[buf[i++]],bth[buf[i++]],"-",bth[buf[i++]],bth[buf[i++]],"-",bth[buf[i++]],bth[buf[i++]],"-",bth[buf[i++]],bth[buf[i++]],bth[buf[i++]],bth[buf[i++]],bth[buf[i++]],bth[buf[i++]]].join("")}(rnds)}var hasOwnProperty=Object.prototype.hasOwnProperty,isArray=Array.isArray,PATH_RE=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;function getPaths(path,data){if(isArray(path))return path;if(data&&(val=data,key=path,hasOwnProperty.call(val,key)))return[path];var val,key,res=[];return path.replace(PATH_RE,(function(match,p1,offset,string){return res.push(offset?string.replace(/\\(\\)?/g,"$1"):p1||match),string})),res}function getDataByPath(data,path){var dataPath,paths=getPaths(path,data);for(dataPath=paths.shift();null!=dataPath;){if(null==(data=data[dataPath]))return;dataPath=paths.shift()}return data}var elementMap=new Map;function transEl(el){var _a;if(!function(el){if(el){var tagName=el.tagName;return 0===tagName.indexOf("UNI-")||"BODY"===tagName||0===tagName.indexOf("V-UNI-")||el.__isUniElement}return!1}(el))throw Error("no such element");var element,elementId,elem={elementId:(element=el,elementId=element._id,elementId||(elementId=v4(),element._id=elementId,elementMap.set(elementId,{id:elementId,element:element})),elementId),tagName:el.tagName.toLocaleLowerCase().replace("uni-","")};if(el.__vue__)(vm=el.__vue__)&&(vm.$parent&&vm.$parent.$el===el&&(vm=vm.$parent),vm&&!(null===(_a=vm.$options)||void 0===_a?void 0:_a.isReserved)&&(elem.nodeId=function(vm){if(vm._$weex)return vm._uid;if(vm._$id)return vm._$id;if(vm.uid)return vm.uid;var parent_1=function(vm){for(var parent=vm.$parent;parent;){if(parent._$id)return parent;parent=parent.$parent}}(vm);if(!vm.$parent)return"-1";var vnode=vm.$vnode,context=vnode.context;return context&&context!==parent_1&&context._$id?context._$id+";"+parent_1._$id+","+vnode.data.attrs._i:parent_1._$id+","+vnode.data.attrs._i}(vm)));else var vm;return"video"===elem.tagName&&(elem.videoId=elem.nodeId),elem}function getVm(el){return el.__vue__?{isVue3:!1,vm:el.__vue__}:{isVue3:!0,vm:el.__vueParentComponent}}function getScrollViewMain(el){var _a=getVm(el),isVue3=_a.isVue3,vm=_a.vm;return isVue3?vm.exposed.$getMain():vm.$refs.main}var FUNCTIONS={input:{input:function(el,value){var _a=getVm(el),isVue3=_a.isVue3,vm=_a.vm;isVue3?vm.exposed&&vm.exposed.$triggerInput({value:value}):(vm.valueSync=value,vm.$triggerInput({},{value:value}))}},textarea:{input:function(el,value){var _a=getVm(el),isVue3=_a.isVue3,vm=_a.vm;isVue3?vm.exposed&&vm.exposed.$triggerInput({value:value}):(vm.valueSync=value,vm.$triggerInput({},{value:value}))}},"scroll-view":{scrollTo:function(el,x,y){var main=getScrollViewMain(el);main.scrollLeft=x,main.scrollTop=y},scrollTop:function(el){return getScrollViewMain(el).scrollTop},scrollLeft:function(el){return getScrollViewMain(el).scrollLeft},scrollWidth:function(el){return getScrollViewMain(el).scrollWidth},scrollHeight:function(el){return getScrollViewMain(el).scrollHeight}},swiper:{swipeTo:function(el,index){el.__vue__.current=index}},"movable-view":{moveTo:function(el,x,y){el.__vue__._animationTo(x,y)}},switch:{tap:function(el){el.click()}},slider:{slideTo:function(el,value){var vm=el.__vue__,slider=vm.$refs["uni-slider"],offsetWidth=slider.offsetWidth,boxLeft=slider.getBoundingClientRect().left;vm.value=value,vm._onClick({x:(value-vm.min)*offsetWidth/(vm.max-vm.min)+boxLeft})}}};function createTouchList(touchInits){var _a,touches=touchInits.map((function(touch){return function(touch){if(document.createTouch)return document.createTouch(window,touch.target,touch.identifier,touch.pageX,touch.pageY,touch.screenX,touch.screenY,touch.clientX,touch.clientY);return new Touch(touch)}(touch)}));return document.createTouchList?(_a=document).createTouchList.apply(_a,touches):touches}var WebAdapter={getWindow:function(pageId){return window},getDocument:function(pageId){return document},getEl:function(elementId){var element=elementMap.get(elementId);if(!element)throw Error("element destroyed");return element.element},getOffset:function(node){var rect=node.getBoundingClientRect();return Promise.resolve({left:rect.left+window.pageXOffset,top:rect.top+window.pageYOffset})},querySelector:function(context,selector){return"page"===selector&&(selector="body"),Promise.resolve(transEl(context.querySelector(selector)))},querySelectorAll:function(context,selector){var elements=[],nodeList=document.querySelectorAll(selector);return[].forEach.call(nodeList,(function(node){try{elements.push(transEl(node))}catch(e){}})),Promise.resolve({elements:elements})},queryProperties:function(context,names){return Promise.resolve({properties:names.map((function(name){var value=getDataByPath(context,name.replace(/-([a-z])/g,(function(g){return g[1].toUpperCase()})));return"document.documentElement.scrollTop"===name&&0===value&&(value=getDataByPath(context,"document.body.scrollTop")),value}))})},queryAttributes:function(context,names){return Promise.resolve({attributes:names.map((function(name){return String(context.getAttribute(name))}))})},queryStyles:function(context,names){var style=getComputedStyle(context);return Promise.resolve({styles:names.map((function(name){return style[name]}))})},queryHTML:function(context,type){return Promise.resolve({html:(html="outer"===type?context.outerHTML:context.innerHTML,html.replace(/\n/g,"").replace(/(]*>)(]*>[^<]*<\/span>)(.*?<\/uni-text>)/g,"$1$3").replace(/<\/?[^>]*>/g,(function(replacement){return-1":""===replacement?"":0!==replacement.indexOf(" promise.resolve(callback()).then(() => value), - reason => promise.resolve(callback()).then(() => { - throw reason - }) - ) - } -}; - -if (typeof uni !== 'undefined' && uni && uni.requireGlobal) { - const global = uni.requireGlobal() - ArrayBuffer = global.ArrayBuffer - Int8Array = global.Int8Array - Uint8Array = global.Uint8Array - Uint8ClampedArray = global.Uint8ClampedArray - Int16Array = global.Int16Array - Uint16Array = global.Uint16Array - Int32Array = global.Int32Array - Uint32Array = global.Uint32Array - Float32Array = global.Float32Array - Float64Array = global.Float64Array - BigInt64Array = global.BigInt64Array - BigUint64Array = global.BigUint64Array -}; - - -(()=>{var S=Object.create;var u=Object.defineProperty;var I=Object.getOwnPropertyDescriptor;var C=Object.getOwnPropertyNames;var E=Object.getPrototypeOf,_=Object.prototype.hasOwnProperty;var y=(A,t)=>()=>(t||A((t={exports:{}}).exports,t),t.exports);var G=(A,t,s,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of C(t))!_.call(A,a)&&a!==s&&u(A,a,{get:()=>t[a],enumerable:!(r=I(t,a))||r.enumerable});return A};var k=(A,t,s)=>(s=A!=null?S(E(A)):{},G(t||!A||!A.__esModule?u(s,"default",{value:A,enumerable:!0}):s,A));var B=y((q,D)=>{D.exports=Vue});var Q=Object.prototype.toString,f=A=>Q.call(A),p=A=>f(A).slice(8,-1);function N(){return typeof __channelId__=="string"&&__channelId__}function P(A,t){switch(p(t)){case"Function":return"function() { [native code] }";default:return t}}function j(A,t,s){return N()?(s.push(t.replace("at ","uni-app:///")),console[A].apply(console,s)):s.map(function(a){let o=f(a).toLowerCase();if(["[object object]","[object array]","[object module]"].indexOf(o)!==-1)try{a="---BEGIN:JSON---"+JSON.stringify(a,P)+"---END:JSON---"}catch(i){a=o}else if(a===null)a="---NULL---";else if(a===void 0)a="---UNDEFINED---";else{let i=p(a).toUpperCase();i==="NUMBER"||i==="BOOLEAN"?a="---BEGIN:"+i+"---"+a+"---END:"+i+"---":a=String(a)}return a}).join("---COMMA---")+" "+t}function h(A,t,...s){let r=j(A,t,s);r&&console[A](r)}var m={data(){return{locale:"en",fallbackLocale:"en",localization:{en:{done:"OK",cancel:"Cancel"},zh:{done:"\u5B8C\u6210",cancel:"\u53D6\u6D88"},"zh-hans":{},"zh-hant":{},messages:{}},localizationTemplate:{}}},onLoad(){this.initLocale()},created(){this.initLocale()},methods:{initLocale(){if(this.__initLocale)return;this.__initLocale=!0;let A=(plus.webview.currentWebview().extras||{}).data||{};if(A.messages&&(this.localization.messages=A.messages),A.locale){this.locale=A.locale.toLowerCase();return}let t={chs:"hans",cn:"hans",sg:"hans",cht:"hant",tw:"hant",hk:"hant",mo:"hant"},s=plus.os.language.toLowerCase().split("/")[0].replace("_","-").split("-"),r=s[1];r&&(s[1]=t[r]||r),s.length=s.length>2?2:s.length,this.locale=s.join("-")},localize(A){let t=this.locale,s=t.split("-")[0],r=this.fallbackLocale,a=o=>Object.assign({},this.localization[o],(this.localizationTemplate||{})[o]);return a("messages")[A]||a(t)[A]||a(s)[A]||a(r)[A]||A}}},w={onLoad(){this.initMessage()},methods:{initMessage(){let{from:A,callback:t,runtime:s,data:r={},useGlobalEvent:a}=plus.webview.currentWebview().extras||{};this.__from=A,this.__runtime=s,this.__page=plus.webview.currentWebview().id,this.__useGlobalEvent=a,this.data=JSON.parse(JSON.stringify(r)),plus.key.addEventListener("backbutton",()=>{typeof this.onClose=="function"?this.onClose():plus.webview.currentWebview().close("auto")});let o=this,i=function(n){let l=n.data&&n.data.__message;!l||o.__onMessageCallback&&o.__onMessageCallback(l.data)};if(this.__useGlobalEvent)weex.requireModule("globalEvent").addEventListener("plusMessage",i);else{let n=new BroadcastChannel(this.__page);n.onmessage=i}},postMessage(A={},t=!1){let s=JSON.parse(JSON.stringify({__message:{__page:this.__page,data:A,keep:t}})),r=this.__from;if(this.__runtime==="v8")this.__useGlobalEvent?plus.webview.postMessageToUniNView(s,r):new BroadcastChannel(r).postMessage(s);else{let a=plus.webview.getWebviewById(r);a&&a.evalJS(`__plusMessage&&__plusMessage(${JSON.stringify({data:s})})`)}},onMessage(A){this.__onMessageCallback=A}}};var e=k(B());var b=(A,t)=>{let s=A.__vccOpts||A;for(let[r,a]of t)s[r]=a;return s};var F=Object.defineProperty,T=Object.defineProperties,O=Object.getOwnPropertyDescriptors,v=Object.getOwnPropertySymbols,M=Object.prototype.hasOwnProperty,U=Object.prototype.propertyIsEnumerable,L=(A,t,s)=>t in A?F(A,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):A[t]=s,R=(A,t)=>{for(var s in t||(t={}))M.call(t,s)&&L(A,s,t[s]);if(v)for(var s of v(t))U.call(t,s)&&L(A,s,t[s]);return A},z=(A,t)=>T(A,O(t)),H={map_center_marker_container:{"":{alignItems:"flex-start",width:22,height:70}},map_center_marker:{"":{width:22,height:35}},"unichooselocation-icons":{"":{fontFamily:"unichooselocation",textDecoration:"none",textAlign:"center"}},page:{"":{flex:1,position:"relative"}},"flex-r":{"":{flexDirection:"row",flexWrap:"nowrap"}},"flex-c":{"":{flexDirection:"column",flexWrap:"nowrap"}},"flex-fill":{"":{flex:1}},"a-i-c":{"":{alignItems:"center"}},"j-c-c":{"":{justifyContent:"center"}},"nav-cover":{"":{position:"absolute",left:0,top:0,right:0,height:100,backgroundImage:"linear-gradient(to bottom, rgba(0, 0, 0, .3), rgba(0, 0, 0, 0))"}},statusbar:{"":{height:22}},"title-view":{"":{paddingTop:5,paddingRight:15,paddingBottom:5,paddingLeft:15}},"btn-cancel":{"":{paddingTop:0,paddingRight:0,paddingBottom:0,paddingLeft:0}},"btn-cancel-text":{"":{fontSize:30,color:"#ffffff"}},"btn-done":{"":{backgroundColor:"#007AFF",borderRadius:3,paddingTop:5,paddingRight:12,paddingBottom:5,paddingLeft:12}},"btn-done-disabled":{"":{backgroundColor:"#62abfb"}},"text-done":{"":{color:"#ffffff",fontSize:15,fontWeight:"bold",lineHeight:15,height:15}},"text-done-disabled":{"":{color:"#c0ddfe"}},"map-view":{"":{flex:2,position:"relative"}},map:{"":{width:"750rpx",justifyContent:"center",alignItems:"center"}},"map-location":{"":{position:"absolute",right:20,bottom:25,width:44,height:44,backgroundColor:"#ffffff",borderRadius:40,boxShadow:"0 2px 4px rgba(100, 100, 100, 0.2)"}},"map-location-text":{"":{fontSize:20}},"map-location-text-active":{"":{color:"#007AFF"}},"result-area":{"":{flex:2,position:"relative"}},"search-bar":{"":{paddingTop:12,paddingRight:15,paddingBottom:12,paddingLeft:15,backgroundColor:"#ffffff"}},"search-area":{"":{backgroundColor:"#ebebeb",borderRadius:5,height:30,paddingLeft:8}},"search-text":{"":{fontSize:14,lineHeight:16,color:"#b4b4b4"}},"search-icon":{"":{fontSize:16,color:"#b4b4b4",marginRight:4}},"search-tab":{"":{flexDirection:"row",paddingTop:2,paddingRight:16,paddingBottom:2,paddingLeft:16,marginTop:-10,backgroundColor:"#FFFFFF"}},"search-tab-item":{"":{marginTop:0,marginRight:5,marginBottom:0,marginLeft:5,textAlign:"center",fontSize:14,lineHeight:32,color:"#333333",borderBottomStyle:"solid",borderBottomWidth:2,borderBottomColor:"rgba(0,0,0,0)"}},"search-tab-item-active":{"":{borderBottomColor:"#0079FF"}},"no-data":{"":{color:"#808080"}},"no-data-search":{"":{marginTop:50}},"list-item":{"":{position:"relative",paddingTop:12,paddingRight:15,paddingBottom:12,paddingLeft:15}},"list-line":{"":{position:"absolute",left:15,right:0,bottom:0,height:.5,backgroundColor:"#d3d3d3"}},"list-name":{"":{fontSize:14,lines:1,textOverflow:"ellipsis"}},"list-address":{"":{fontSize:12,color:"#808080",lines:1,textOverflow:"ellipsis",marginTop:5}},"list-icon-area":{"":{paddingLeft:10,paddingRight:10}},"list-selected-icon":{"":{fontSize:20,color:"#007AFF"}},"search-view":{"":{position:"absolute",left:0,top:0,right:0,bottom:0,backgroundColor:"#f6f6f6"}},"searching-area":{"":{flex:5}},"search-input":{"":{fontSize:14,height:30,paddingLeft:6}},"search-cancel":{"":{color:"#0079FF",marginLeft:10}},"loading-view":{"":{paddingTop:15,paddingRight:15,paddingBottom:15,paddingLeft:15}},"loading-icon":{"":{width:28,height:28,color:"#808080"}}},Y=weex.requireModule("dom");Y.addRule("fontFace",{fontFamily:"unichooselocation",src:"url('data:font/truetype;charset=utf-8;base64,AAEAAAALAIAAAwAwR1NVQrD+s+0AAAE4AAAAQk9TLzI8gE4kAAABfAAAAFZjbWFw4nGd6QAAAegAAAGyZ2x5Zn61L/EAAAOoAAACJGhlYWQXJ/zZAAAA4AAAADZoaGVhB94DhgAAALwAAAAkaG10eBQAAAAAAAHUAAAAFGxvY2EBUAGyAAADnAAAAAxtYXhwARMAZgAAARgAAAAgbmFtZWs+cdAAAAXMAAAC2XBvc3SV1XYLAAAIqAAAAE4AAQAAA4D/gABcBAAAAAAABAAAAQAAAAAAAAAAAAAAAAAAAAUAAQAAAAEAAFP+qyxfDzz1AAsEAAAAAADaBFxuAAAAANoEXG4AAP+gBAADYAAAAAgAAgAAAAAAAAABAAAABQBaAAQAAAAAAAIAAAAKAAoAAAD/AAAAAAAAAAEAAAAKAB4ALAABREZMVAAIAAQAAAAAAAAAAQAAAAFsaWdhAAgAAAABAAAAAQAEAAQAAAABAAgAAQAGAAAAAQAAAAAAAQQAAZAABQAIAokCzAAAAI8CiQLMAAAB6wAyAQgAAAIABQMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUGZFZABA5grsMgOA/4AAXAOAAIAAAAABAAAAAAAABAAAAAQAAAAEAAAABAAAAAQAAAAAAAAFAAAAAwAAACwAAAAEAAABcgABAAAAAABsAAMAAQAAACwAAwAKAAABcgAEAEAAAAAKAAgAAgAC5grmHOZR7DL//wAA5grmHOZR7DL//wAAAAAAAAAAAAEACgAKAAoACgAAAAQAAwACAAEAAAEGAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAwAAAAAAEAAAAAAAAAABAAA5goAAOYKAAAABAAA5hwAAOYcAAAAAwAA5lEAAOZRAAAAAgAA7DIAAOwyAAAAAQAAAAAAAAB+AKAA0gESAAQAAP+gA+ADYAAAAAkAMQBZAAABIx4BMjY0JiIGBSMuASc1NCYiBh0BDgEHIyIGFBY7AR4BFxUUFjI2PQE+ATczMjY0JgE1NCYiBh0BLgEnMzI2NCYrAT4BNxUUFjI2PQEeARcjIgYUFjsBDgECAFABLUQtLUQtAg8iD9OcEhwSnNMPIg4SEg4iD9OcEhwSnNMPIg4SEv5SEhwSga8OPg4SEg4+Dq+BEhwSga8OPg4SEg4+Dq8BgCItLUQtLQKc0w8iDhISDiIP05wSHBKc0w8iDhISDiIP05wSHBL+gj4OEhIOPg6vgRIcEoGvDj4OEhIOPg6vgRIcEoGvAAEAAAAAA4ECgQAQAAABPgEeAQcBDgEvASY0NhYfAQM2DCIbAgz+TA0kDfcMGiIN1wJyDQIZIg3+IQ4BDf4NIhoBDd0AAQAAAAADAgKCAB0AAAE3PgEuAgYPAScmIgYUHwEHBhQWMj8BFxYyNjQnAjy4CAYGEBcWCLe3DSIaDLi4DBkjDbe3DSMZDAGAtwgWFxAGBgi4uAwaIg23tw0jGQy4uAwZIw0AAAIAAP/fA6EDHgAVACYAACUnPgE3LgEnDgEHHgEXMjY3FxYyNjQlBiIuAjQ+AjIeAhQOAQOX2CcsAQTCkpLCAwPCkj5uLdkJGRH+ijV0Z08rK09ndGdPLCxPE9MtckGSwgQEwpKSwgMoJdQIEhi3FixOaHNnTywsT2dzaE4AAAAAAAASAN4AAQAAAAAAAAAVAAAAAQAAAAAAAQARABUAAQAAAAAAAgAHACYAAQAAAAAAAwARAC0AAQAAAAAABAARAD4AAQAAAAAABQALAE8AAQAAAAAABgARAFoAAQAAAAAACgArAGsAAQAAAAAACwATAJYAAwABBAkAAAAqAKkAAwABBAkAAQAiANMAAwABBAkAAgAOAPUAAwABBAkAAwAiAQMAAwABBAkABAAiASUAAwABBAkABQAWAUcAAwABBAkABgAiAV0AAwABBAkACgBWAX8AAwABBAkACwAmAdUKQ3JlYXRlZCBieSBpY29uZm9udAp1bmljaG9vc2Vsb2NhdGlvblJlZ3VsYXJ1bmljaG9vc2Vsb2NhdGlvbnVuaWNob29zZWxvY2F0aW9uVmVyc2lvbiAxLjB1bmljaG9vc2Vsb2NhdGlvbkdlbmVyYXRlZCBieSBzdmcydHRmIGZyb20gRm9udGVsbG8gcHJvamVjdC5odHRwOi8vZm9udGVsbG8uY29tAAoAQwByAGUAYQB0AGUAZAAgAGIAeQAgAGkAYwBvAG4AZgBvAG4AdAAKAHUAbgBpAGMAaABvAG8AcwBlAGwAbwBjAGEAdABpAG8AbgBSAGUAZwB1AGwAYQByAHUAbgBpAGMAaABvAG8AcwBlAGwAbwBjAGEAdABpAG8AbgB1AG4AaQBjAGgAbwBvAHMAZQBsAG8AYwBhAHQAaQBvAG4AVgBlAHIAcwBpAG8AbgAgADEALgAwAHUAbgBpAGMAaABvAG8AcwBlAGwAbwBjAGEAdABpAG8AbgBHAGUAbgBlAHIAYQB0AGUAZAAgAGIAeQAgAHMAdgBnADIAdAB0AGYAIABmAHIAbwBtACAARgBvAG4AdABlAGwAbABvACAAcAByAG8AagBlAGMAdAAuAGgAdAB0AHAAOgAvAC8AZgBvAG4AdABlAGwAbABvAC4AYwBvAG0AAAAAAgAAAAAAAAAKAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAQIBAwEEAQUBBgAKbXlsb2NhdGlvbgZ4dWFuemUFY2xvc2UGc291c3VvAAAAAA==')"});var d=weex.requireModule("mapSearch"),K=16,x="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGAAAACcCAMAAAC3Fl5oAAAB3VBMVEVMaXH/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/EhL/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/Dw//AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/GRn/NTX/Dw//Fhb/AAD/AAD/AAD/GRn/GRn/Y2P/AAD/AAD/ExP/Ghr/AAD/AAD/MzP/GRn/AAD/Hh7/AAD/RUX/AAD/AAD/AAD/AAD/AAD/AAD/Dg7/AAD/HR3/Dw//FRX/SUn/AAD/////kJD/DQ3/Zmb/+/v/wMD/mJj/6en/vb3/1NT//Pz/ODj/+fn/3Nz/nJz/j4//9/f/7e3/9vb/7Oz/2Nj/x8f/Ozv/+Pj/3d3/nZ3/2dn//f3/6Oj/2tr/v7//09P/vr7/mZn/l5cdSvP3AAAAe3RSTlMAAhLiZgTb/vztB/JMRhlp6lQW86g8mQ4KFPs3UCH5U8huwlesWtTYGI7RsdVeJGfTW5rxnutLsvXWF8vQNdo6qQbuz7D4hgVIx2xtw8GC1TtZaIw0i84P98tU0/fsj7PKaAgiZZxeVfo8Z52eg1P0nESrENnjXVPUgw/uuSmDAAADsUlEQVR42u3aZ3cTRxgF4GtbYleSLdnGcsENG2ODjbExEHrvhAQCIb1Bem+QdkeuuFMNBBJIfmuOckzZI8/srHYmH3Lm+QNXK632LTvQ03Tu/IWeU/tTGTKT2n+q58L5c00wpXJd47DHEt5w47pKxLbhdLdPKb/7dBYxVLxw1GcI/2h1BcpzKNFHLX2JQ4gumaiitqpEEhEdOMJI9h5AFC3feYzI+7IF2tpSLEOqDXpObPRYFm/jCWho/4Ble7MdoT7fzhhq9yHEz28wltU1UPrJZ0wd66HwicfYvEFIfePTAP8tSLTupBHvtGJFH9bSkNrNWEHzERrT34xSH9Ogr1CijkbVAUH1KRqVqkdQAw07iIAaGlcTqI+/0LjeJJ5J0IIEnkpXMdzs4sTtW9dnZq7fuj2xOMtwVWk88RHDjBYejYvnjD8qjOpfQsUqhvj7oSjxcJIhVj3pyKqpNjYvVjQ/RrXq5YABKi3MCYm5BSrtWO5v11DlmlC4RpU1WRS9SJU7QukOVbpQ9JLu549+Dd0AUOlTbkGEuk85vxLAK5QbuytC3R2j3HoAjZSbFxrmKTcCoJdSk0LLJKV6gSaPMqNTQsvUKGW8JrxKqUWhaZFSeWyh1LTQNE2pHF6mzOy40DQ+S5mLimJcENoKlOnBWsr8KbRNUGYt5LXgd6HtD3lNQIoyN4S2G5RJIUOZm0LbTcqsBqVmhLYZSlkPsP4VWf+Rrd+m1v9o9h8Vv5p42C1R5qL1x7WRglOgVN52yfwNOBu76P+lLPoYidu23KPciIHGa07ZeIW1jvcNtI7q5vexCPGYCmf+m/Y9a3sAwQ5bI9T7ukPgPcn9GToEao+xk1OixJT+GIsvNAbx6eAgPq0xiF+KtkpYKhRXCQ8eFFcJhSWGu3rZ8jJkCM8kz9K4TUnrC6mAgzTsB9tLwQ2W15qfosQ2GrQNpZr7aczbzVjBZsvLcaC1g0bsbIVEnU8DOr6H1KDH2LwtUBi0/JII6Dxm9zUXkH+XMWzfh1Dte1i2Pe3QkC77Zel7aehpO8wyHG6Dtt0NjKxhN6I4uSli/TqJiJJDUQ4NDCURXTrXRy1XcumyD24M+AzhD1RXIIZsl/LoyZmurJHDM7s8lvB2FQ/PmPJ6PseAXP5HGMYAAC7ABbgAF+ACXIALcAEuwAW4ABfgAlyAC3ABLsAFuID/d8Cx4NEt8/byOf0wLnis8zjMq9/Kp7bWw4JOj8u8TlhRl+G/Mp2wpOX48GffvvZ1CyL4B53LAS6zb08EAAAAAElFTkSuQmCC",V={mixins:[w,m],data(){return{positionIcon:x,mapScale:K,userKeyword:"",showLocation:!0,latitude:39.908692,longitude:116.397477,nearList:[],nearSelectedIndex:-1,nearLoading:!1,nearLoadingEnd:!1,noNearData:!1,isUserLocation:!1,statusBarHeight:20,mapHeight:250,markers:[{id:"location",latitude:39.908692,longitude:116.397477,zIndex:"1",iconPath:x,width:26,height:36}],showSearch:!1,searchList:[],searchSelectedIndex:-1,searchLoading:!1,searchEnd:!1,noSearchData:!1,localizationTemplate:{en:{search_tips:"Search for a place",no_found:"No results found",nearby:"Nearby",more:"More"},zh:{search_tips:"\u641C\u7D22\u5730\u70B9",no_found:"\u5BF9\u4E0D\u8D77\uFF0C\u6CA1\u6709\u641C\u7D22\u5230\u76F8\u5173\u6570\u636E",nearby:"\u9644\u8FD1",more:"\u66F4\u591A"}},searchNearFlag:!0,searchMethod:"poiSearchNearBy"}},computed:{disableOK(){return this.nearSelectedIndex<0&&this.searchSelectedIndex<0},searchMethods(){return[{title:this.localize("nearby"),method:"poiSearchNearBy"},{title:this.localize("more"),method:"poiKeywordsSearch"}]}},filters:{distance(A){return A>100?`${A>1e3?(A/1e3).toFixed(1)+"k":A.toFixed(0)}m | `:A>0?"100m\u5185 | ":""}},watch:{searchMethod(){this._searchPageIndex=1,this.searchEnd=!1,this.searchList=[],this._searchKeyword&&this.search()}},onLoad(){this.statusBarHeight=plus.navigator.getStatusbarHeight(),this.mapHeight=plus.screen.resolutionHeight/2;let A=this.data;this.userKeyword=A.keyword||"",this._searchInputTimer=null,this._searchPageIndex=1,this._searchKeyword="",this._nearPageIndex=1,this._hasUserLocation=!1,this._userLatitude=0,this._userLongitude=0},onReady(){this.mapContext=this.$refs.map1,this.data.latitude&&this.data.longitude?(this._hasUserLocation=!0,this.moveToCenter({latitude:this.data.latitude,longitude:this.data.longitude})):this.getUserLocation()},onUnload(){this.clearSearchTimer()},methods:{cancelClick(){this.postMessage({event:"cancel"})},doneClick(){if(this.disableOK)return;let A=this.showSearch&&this.searchSelectedIndex>=0?this.searchList[this.searchSelectedIndex]:this.nearList[this.nearSelectedIndex],t={name:A.name,address:A.address,latitude:A.location.latitude,longitude:A.location.longitude};this.postMessage({event:"selected",detail:t})},getUserLocation(){plus.geolocation.getCurrentPosition(({coordsType:A,coords:t})=>{false?this.wgs84togcjo2(t,s=>{this.getUserLocationSuccess(s)}):this.getUserLocationSuccess(t)},A=>{this._hasUserLocation=!0,h("log","at template/__uniappchooselocation.nvue:292","Gelocation Error: code - "+A.code+"; message - "+A.message)},{geocode:!1,coordsType:"gcj02"})},getUserLocationSuccess(A){this._userLatitude=A.latitude,this._userLongitude=A.longitude,this._hasUserLocation=!0,this.moveToCenter({latitude:A.latitude,longitude:A.longitude})},searchclick(A){this.showSearch=A,A===!1&&plus.key.hideSoftKeybord()},showSearchView(){this.searchList=[],this.showSearch=!0},hideSearchView(){this.showSearch=!1,plus.key.hideSoftKeybord(),this.noSearchData=!1,this.searchSelectedIndex=-1,this._searchKeyword=""},onregionchange(A){var t=A.detail,s=t.type||A.type,r=t.causedBy||A.causedBy;r!=="drag"||s!=="end"||this.mapContext.getCenterLocation(a=>{if(!this.searchNearFlag){this.searchNearFlag=!this.searchNearFlag;return}this.moveToCenter({latitude:a.latitude,longitude:a.longitude})})},onItemClick(A,t){this.searchNearFlag=!1,t.stopPropagation&&t.stopPropagation(),this.nearSelectedIndex!==A&&(this.nearSelectedIndex=A),this.moveToLocation(this.nearList[A]&&this.nearList[A].location)},moveToCenter(A){this.latitude===A.latitude&&this.longitude===A.longitude||(this.latitude=A.latitude,this.longitude=A.longitude,this.updateCenter(A),this.moveToLocation(A),this.isUserLocation=this._userLatitude===A.latitude&&this._userLongitude===A.longitude)},updateCenter(A){this.nearSelectedIndex=-1,this.nearList=[],this._hasUserLocation&&(this._nearPageIndex=1,this.nearLoadingEnd=!1,this.reverseGeocode(A),this.searchNearByPoint(A),this.onItemClick(0,{stopPropagation:()=>{this.searchNearFlag=!0}}),this.$refs.nearListLoadmore.resetLoadmore())},searchNear(){this.nearLoadingEnd||this.searchNearByPoint({latitude:this.latitude,longitude:this.longitude})},searchNearByPoint(A){this.noNearData=!1,this.nearLoading=!0,d.poiSearchNearBy({point:{latitude:A.latitude,longitude:A.longitude},key:this.userKeyword,sortrule:1,index:this._nearPageIndex,radius:1e3},t=>{this.nearLoading=!1,this._nearPageIndex=t.pageIndex+1,this.nearLoadingEnd=t.pageIndex===t.pageNumber,t.poiList&&t.poiList.length?(this.fixPois(t.poiList),this.nearList=this.nearList.concat(t.poiList),this.fixNearList()):this.noNearData=this.nearList.length===0})},moveToLocation(A){!A||this.mapContext.moveToLocation(z(R({},A),{fail:t=>{h("error","at template/__uniappchooselocation.nvue:419","chooseLocation_moveToLocation",t)}}))},reverseGeocode(A){d.reverseGeocode({point:A},t=>{t.type==="success"&&this._nearPageIndex<=2&&(this.nearList.splice(0,0,{code:t.code,location:A,name:"\u5730\u56FE\u4F4D\u7F6E",address:t.address||""}),this.fixNearList())})},fixNearList(){let A=this.nearList;if(A.length>=2&&A[0].name==="\u5730\u56FE\u4F4D\u7F6E"){let t=this.getAddressStart(A[1]),s=A[0].address;s.startsWith(t)&&(A[0].name=s.substring(t.length))}},onsearchinput(A){var t=A.detail.value.replace(/^\s+|\s+$/g,"");this.clearSearchTimer(),this._searchInputTimer=setTimeout(()=>{clearTimeout(this._searchInputTimer),this._searchPageIndex=1,this.searchEnd=!1,this._searchKeyword=t,this.searchList=[],this.search()},300)},clearSearchTimer(){this._searchInputTimer&&clearTimeout(this._searchInputTimer)},search(){this._searchKeyword.length===0||this._searchEnd||this.searchLoading||(this.searchLoading=!0,this.noSearchData=!1,d[this.searchMethod]({point:{latitude:this.latitude,longitude:this.longitude},key:this._searchKeyword,sortrule:1,index:this._searchPageIndex,radius:5e4},A=>{this.searchLoading=!1,this._searchPageIndex=A.pageIndex+1,this.searchEnd=A.pageIndex===A.pageNumber,A.poiList&&A.poiList.length?(this.fixPois(A.poiList),this.searchList=this.searchList.concat(A.poiList)):this.noSearchData=this.searchList.length===0}))},onSearchListTouchStart(){plus.key.hideSoftKeybord()},onSearchItemClick(A,t){t.stopPropagation(),this.searchSelectedIndex!==A&&(this.searchSelectedIndex=A),this.moveToLocation(this.searchList[A]&&this.searchList[A].location)},getAddressStart(A){let t=A.addressOrigin||A.address;return A.province+(A.province===A.city?"":A.city)+(/^\d+$/.test(A.district)||t.startsWith(A.district)?"":A.district)},fixPois(A){for(var t=0;t{if(a.ok){let o=a.data.detail.points[0];t({latitude:o.lat,longitude:o.lng})}})},formatDistance(A){return A>100?`${A>1e3?(A/1e3).toFixed(1)+"k":A.toFixed(0)}m | `:A>0?"100m\u5185 | ":""}}};function Z(A,t,s,r,a,o){return(0,e.openBlock)(),(0,e.createElementBlock)("scroll-view",{scrollY:!0,showScrollbar:!0,enableBackToTop:!0,bubble:"true",style:{flexDirection:"column"}},[(0,e.createElementVNode)("view",{class:"page flex-c"},[(0,e.createElementVNode)("view",{class:"flex-r map-view"},[(0,e.createElementVNode)("map",{class:"map flex-fill",ref:"map1",scale:a.mapScale,showLocation:a.showLocation,longitude:a.longitude,latitude:a.latitude,onRegionchange:t[0]||(t[0]=(...i)=>o.onregionchange&&o.onregionchange(...i)),style:(0,e.normalizeStyle)("height:"+a.mapHeight+"px")},[(0,e.createElementVNode)("div",{class:"map_center_marker_container"},[(0,e.createElementVNode)("u-image",{class:"map_center_marker",src:a.positionIcon},null,8,["src"])])],44,["scale","showLocation","longitude","latitude"]),(0,e.createElementVNode)("view",{class:"map-location flex-c a-i-c j-c-c",onClick:t[1]||(t[1]=i=>o.getUserLocation())},[(0,e.createElementVNode)("u-text",{class:(0,e.normalizeClass)(["unichooselocation-icons map-location-text",{"map-location-text-active":a.isUserLocation}])},"\uEC32",2)]),(0,e.createElementVNode)("view",{class:"nav-cover"},[(0,e.createElementVNode)("view",{class:"statusbar",style:(0,e.normalizeStyle)("height:"+a.statusBarHeight+"px")},null,4),(0,e.createElementVNode)("view",{class:"title-view flex-r"},[(0,e.createElementVNode)("view",{class:"btn-cancel",onClick:t[2]||(t[2]=(...i)=>o.cancelClick&&o.cancelClick(...i))},[(0,e.createElementVNode)("u-text",{class:"unichooselocation-icons btn-cancel-text"},"\uE61C")]),(0,e.createElementVNode)("view",{class:"flex-fill"}),(0,e.createElementVNode)("view",{class:(0,e.normalizeClass)(["btn-done flex-r a-i-c j-c-c",{"btn-done-disabled":o.disableOK}]),onClick:t[3]||(t[3]=(...i)=>o.doneClick&&o.doneClick(...i))},[(0,e.createElementVNode)("u-text",{class:(0,e.normalizeClass)(["text-done",{"text-done-disabled":o.disableOK}])},(0,e.toDisplayString)(A.localize("done")),3)],2)])])]),(0,e.createElementVNode)("view",{class:(0,e.normalizeClass)(["flex-c result-area",{"searching-area":a.showSearch}])},[(0,e.createElementVNode)("view",{class:"search-bar"},[(0,e.createElementVNode)("view",{class:"search-area flex-r a-i-c",onClick:t[4]||(t[4]=(...i)=>o.showSearchView&&o.showSearchView(...i))},[(0,e.createElementVNode)("u-text",{class:"search-icon unichooselocation-icons"},"\uE60A"),(0,e.createElementVNode)("u-text",{class:"search-text"},(0,e.toDisplayString)(A.localize("search_tips")),1)])]),a.noNearData?(0,e.createCommentVNode)("v-if",!0):((0,e.openBlock)(),(0,e.createElementBlock)("list",{key:0,ref:"nearListLoadmore",class:"flex-fill list-view",loadmoreoffset:"5",scrollY:!0,onLoadmore:t[5]||(t[5]=i=>o.searchNear())},[((0,e.openBlock)(!0),(0,e.createElementBlock)(e.Fragment,null,(0,e.renderList)(a.nearList,(i,n)=>((0,e.openBlock)(),(0,e.createElementBlock)("cell",{key:i.uid},[(0,e.createElementVNode)("view",{class:"list-item",onClick:l=>o.onItemClick(n,l)},[(0,e.createElementVNode)("view",{class:"flex-r"},[(0,e.createElementVNode)("view",{class:"list-text-area flex-fill flex-c"},[(0,e.createElementVNode)("u-text",{class:"list-name"},(0,e.toDisplayString)(i.name),1),(0,e.createElementVNode)("u-text",{class:"list-address"},(0,e.toDisplayString)(o.formatDistance(i.distance))+(0,e.toDisplayString)(i.address),1)]),n===a.nearSelectedIndex?((0,e.openBlock)(),(0,e.createElementBlock)("view",{key:0,class:"list-icon-area flex-r a-i-c j-c-c"},[(0,e.createElementVNode)("u-text",{class:"unichooselocation-icons list-selected-icon"},"\uE651")])):(0,e.createCommentVNode)("v-if",!0)]),(0,e.createElementVNode)("view",{class:"list-line"})],8,["onClick"])]))),128)),a.nearLoading?((0,e.openBlock)(),(0,e.createElementBlock)("cell",{key:0},[(0,e.createElementVNode)("view",{class:"loading-view flex-c a-i-c j-c-c"},[(0,e.createElementVNode)("loading-indicator",{class:"loading-icon",animating:!0,arrow:"false"})])])):(0,e.createCommentVNode)("v-if",!0)],544)),a.noNearData?((0,e.openBlock)(),(0,e.createElementBlock)("view",{key:1,class:"flex-fill flex-r a-i-c j-c-c"},[(0,e.createElementVNode)("u-text",{class:"no-data"},(0,e.toDisplayString)(A.localize("no_found")),1)])):(0,e.createCommentVNode)("v-if",!0),a.showSearch?((0,e.openBlock)(),(0,e.createElementBlock)("view",{key:2,class:"search-view flex-c"},[(0,e.createElementVNode)("view",{class:"search-bar flex-r a-i-c"},[(0,e.createElementVNode)("view",{class:"search-area flex-fill flex-r"},[(0,e.createElementVNode)("u-input",{focus:!0,onInput:t[6]||(t[6]=(...i)=>o.onsearchinput&&o.onsearchinput(...i)),class:"search-input flex-fill",placeholder:A.localize("search_tips")},null,40,["placeholder"])]),(0,e.createElementVNode)("u-text",{class:"search-cancel",onClick:t[7]||(t[7]=(...i)=>o.hideSearchView&&o.hideSearchView(...i))},(0,e.toDisplayString)(A.localize("cancel")),1)]),(0,e.createElementVNode)("view",{class:"search-tab"},[((0,e.openBlock)(!0),(0,e.createElementBlock)(e.Fragment,null,(0,e.renderList)(o.searchMethods,(i,n)=>((0,e.openBlock)(),(0,e.createElementBlock)("u-text",{onClick:l=>a.searchMethod=a.searchLoading?a.searchMethod:i.method,key:n,class:(0,e.normalizeClass)([{"search-tab-item-active":i.method===a.searchMethod},"search-tab-item"])},(0,e.toDisplayString)(i.title),11,["onClick"]))),128))]),a.noSearchData?(0,e.createCommentVNode)("v-if",!0):((0,e.openBlock)(),(0,e.createElementBlock)("list",{key:0,class:"flex-fill list-view",enableBackToTop:!0,scrollY:!0,onLoadmore:t[8]||(t[8]=i=>o.search()),onTouchstart:t[9]||(t[9]=(...i)=>o.onSearchListTouchStart&&o.onSearchListTouchStart(...i))},[((0,e.openBlock)(!0),(0,e.createElementBlock)(e.Fragment,null,(0,e.renderList)(a.searchList,(i,n)=>((0,e.openBlock)(),(0,e.createElementBlock)("cell",{key:i.uid},[(0,e.createElementVNode)("view",{class:"list-item",onClick:l=>o.onSearchItemClick(n,l)},[(0,e.createElementVNode)("view",{class:"flex-r"},[(0,e.createElementVNode)("view",{class:"list-text-area flex-fill flex-c"},[(0,e.createElementVNode)("u-text",{class:"list-name"},(0,e.toDisplayString)(i.name),1),(0,e.createElementVNode)("u-text",{class:"list-address"},(0,e.toDisplayString)(o.formatDistance(i.distance))+(0,e.toDisplayString)(i.address),1)]),n===a.searchSelectedIndex?((0,e.openBlock)(),(0,e.createElementBlock)("view",{key:0,class:"list-icon-area flex-r a-i-c j-c-c"},[(0,e.createElementVNode)("u-text",{class:"unichooselocation-icons list-selected-icon"},"\uE651")])):(0,e.createCommentVNode)("v-if",!0)]),(0,e.createElementVNode)("view",{class:"list-line"})],8,["onClick"])]))),128)),a.searchLoading?((0,e.openBlock)(),(0,e.createElementBlock)("cell",{key:0},[(0,e.createElementVNode)("view",{class:"loading-view flex-c a-i-c j-c-c"},[(0,e.createElementVNode)("loading-indicator",{class:"loading-icon",animating:!0})])])):(0,e.createCommentVNode)("v-if",!0)],32)),a.noSearchData?((0,e.openBlock)(),(0,e.createElementBlock)("view",{key:1,class:"flex-fill flex-r j-c-c"},[(0,e.createElementVNode)("u-text",{class:"no-data no-data-search"},(0,e.toDisplayString)(A.localize("no_found")),1)])):(0,e.createCommentVNode)("v-if",!0)])):(0,e.createCommentVNode)("v-if",!0)],2)])])}var c=b(V,[["render",Z],["styles",[H]]]);var g=plus.webview.currentWebview();if(g){let A=parseInt(g.id),t="template/__uniappchooselocation",s={};try{s=JSON.parse(g.__query__)}catch(a){}c.mpType="page";let r=Vue.createPageApp(c,{$store:getApp({allowDefault:!0}).$store,__pageId:A,__pagePath:t,__pageQuery:s});r.provide("__globalStyles",Vue.useCssStyles([...__uniConfig.styles,...c.styles||[]])),r.mount("#root")}})(); diff --git a/unpackage/dist/dev/app-plus/__uniapperror.png b/unpackage/dist/dev/app-plus/__uniapperror.png deleted file mode 100644 index 4743b25..0000000 Binary files a/unpackage/dist/dev/app-plus/__uniapperror.png and /dev/null differ diff --git a/unpackage/dist/dev/app-plus/__uniappopenlocation.js b/unpackage/dist/dev/app-plus/__uniappopenlocation.js deleted file mode 100644 index cd98190..0000000 --- a/unpackage/dist/dev/app-plus/__uniappopenlocation.js +++ /dev/null @@ -1,32 +0,0 @@ -"use weex:vue"; - -if (typeof Promise !== 'undefined' && !Promise.prototype.finally) { - Promise.prototype.finally = function(callback) { - const promise = this.constructor - return this.then( - value => promise.resolve(callback()).then(() => value), - reason => promise.resolve(callback()).then(() => { - throw reason - }) - ) - } -}; - -if (typeof uni !== 'undefined' && uni && uni.requireGlobal) { - const global = uni.requireGlobal() - ArrayBuffer = global.ArrayBuffer - Int8Array = global.Int8Array - Uint8Array = global.Uint8Array - Uint8ClampedArray = global.Uint8ClampedArray - Int16Array = global.Int16Array - Uint16Array = global.Uint16Array - Int32Array = global.Int32Array - Uint32Array = global.Uint32Array - Float32Array = global.Float32Array - Float64Array = global.Float64Array - BigInt64Array = global.BigInt64Array - BigUint64Array = global.BigUint64Array -}; - - -(()=>{var B=Object.create;var m=Object.defineProperty;var b=Object.getOwnPropertyDescriptor;var w=Object.getOwnPropertyNames;var P=Object.getPrototypeOf,Q=Object.prototype.hasOwnProperty;var I=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var E=(e,t,a,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of w(t))!Q.call(e,o)&&o!==a&&m(e,o,{get:()=>t[o],enumerable:!(n=b(t,o))||n.enumerable});return e};var O=(e,t,a)=>(a=e!=null?B(P(e)):{},E(t||!e||!e.__esModule?m(a,"default",{value:e,enumerable:!0}):a,e));var f=I((L,C)=>{C.exports=Vue});var d={data(){return{locale:"en",fallbackLocale:"en",localization:{en:{done:"OK",cancel:"Cancel"},zh:{done:"\u5B8C\u6210",cancel:"\u53D6\u6D88"},"zh-hans":{},"zh-hant":{},messages:{}},localizationTemplate:{}}},onLoad(){this.initLocale()},created(){this.initLocale()},methods:{initLocale(){if(this.__initLocale)return;this.__initLocale=!0;let e=(plus.webview.currentWebview().extras||{}).data||{};if(e.messages&&(this.localization.messages=e.messages),e.locale){this.locale=e.locale.toLowerCase();return}let t={chs:"hans",cn:"hans",sg:"hans",cht:"hant",tw:"hant",hk:"hant",mo:"hant"},a=plus.os.language.toLowerCase().split("/")[0].replace("_","-").split("-"),n=a[1];n&&(a[1]=t[n]||n),a.length=a.length>2?2:a.length,this.locale=a.join("-")},localize(e){let t=this.locale,a=t.split("-")[0],n=this.fallbackLocale,o=s=>Object.assign({},this.localization[s],(this.localizationTemplate||{})[s]);return o("messages")[e]||o(t)[e]||o(a)[e]||o(n)[e]||e}}},h={onLoad(){this.initMessage()},methods:{initMessage(){let{from:e,callback:t,runtime:a,data:n={},useGlobalEvent:o}=plus.webview.currentWebview().extras||{};this.__from=e,this.__runtime=a,this.__page=plus.webview.currentWebview().id,this.__useGlobalEvent=o,this.data=JSON.parse(JSON.stringify(n)),plus.key.addEventListener("backbutton",()=>{typeof this.onClose=="function"?this.onClose():plus.webview.currentWebview().close("auto")});let s=this,r=function(l){let A=l.data&&l.data.__message;!A||s.__onMessageCallback&&s.__onMessageCallback(A.data)};if(this.__useGlobalEvent)weex.requireModule("globalEvent").addEventListener("plusMessage",r);else{let l=new BroadcastChannel(this.__page);l.onmessage=r}},postMessage(e={},t=!1){let a=JSON.parse(JSON.stringify({__message:{__page:this.__page,data:e,keep:t}})),n=this.__from;if(this.__runtime==="v8")this.__useGlobalEvent?plus.webview.postMessageToUniNView(a,n):new BroadcastChannel(n).postMessage(a);else{let o=plus.webview.getWebviewById(n);o&&o.evalJS(`__plusMessage&&__plusMessage(${JSON.stringify({data:a})})`)}},onMessage(e){this.__onMessageCallback=e}}};var i=O(f());var v=(e,t)=>{let a=e.__vccOpts||e;for(let[n,o]of t)a[n]=o;return a};var x={page:{"":{flex:1}},"flex-r":{"":{flexDirection:"row",flexWrap:"nowrap"}},"flex-c":{"":{flexDirection:"column",flexWrap:"nowrap"}},"flex-fill":{"":{flex:1}},"a-i-c":{"":{alignItems:"center"}},"j-c-c":{"":{justifyContent:"center"}},target:{"":{paddingTop:10,paddingBottom:10}},"text-area":{"":{paddingLeft:10,paddingRight:10,flex:1}},name:{"":{fontSize:16,lines:1,textOverflow:"ellipsis"}},address:{"":{fontSize:14,color:"#808080",lines:1,textOverflow:"ellipsis",marginTop:2}},"goto-area":{"":{width:50,height:50,paddingTop:8,paddingRight:8,paddingBottom:8,paddingLeft:8,backgroundColor:"#007aff",borderRadius:50,marginRight:10}},"goto-icon":{"":{width:34,height:34}},"goto-text":{"":{fontSize:14,color:"#FFFFFF"}}},z={mixins:[h,d],data(){return{bottom:"0px",longitude:"",latitude:"",markers:[],name:"",address:"",localizationTemplate:{en:{"map.title.amap":"AutoNavi Maps","map.title.baidu":"Baidu Maps","map.title.tencent":"Tencent Maps","map.title.apple":"Apple Maps","map.title.google":"Google Maps","location.title":"My Location","select.cancel":"Cancel"},zh:{"map.title.amap":"\u9AD8\u5FB7\u5730\u56FE","map.title.baidu":"\u767E\u5EA6\u5730\u56FE","map.title.tencent":"\u817E\u8BAF\u5730\u56FE","map.title.apple":"\u82F9\u679C\u5730\u56FE","map.title.google":"\u8C37\u6B4C\u5730\u56FE","location.title":"\u6211\u7684\u4F4D\u7F6E","select.cancel":"\u53D6\u6D88"}},android:weex.config.env.platform.toLowerCase()==="android"}},onLoad(){let e=this.data;if(this.latitude=e.latitude,this.longitude=e.longitude,this.name=e.name||"",this.address=e.address||"",!this.android){let t=plus.webview.currentWebview().getSafeAreaInsets();this.bottom=t.bottom+"px"}},onReady(){this.mapContext=this.$refs.map1,this.markers=[{id:"location",latitude:this.latitude,longitude:this.longitude,title:this.name,zIndex:"1",iconPath:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADQAAABICAMAAACORiZjAAAByFBMVEUAAAD/PyL/PyL/PyL/PyL/PyL/PyL/PyL/PyL/PiL/PyL/PyL/PyP/PyL/PyL/PyL/PyL/PiL/PyL8PiP/PyL4OyP/PyL3OyX9Pyb0RUP0RkPzOiXsPj3YLi7TKSnQJiX0RkTgMCj0QjvkNC3vPDPwOy/9PyXsNSTyRUTgNDPdMjHrPTzuQD7iNTTxQ0HTJyTZKyf1RULlNjDZKyTfLSLeLSX0Qzz3Qzv8PSTMJCTmOjnPJSXLIiLzRkXWLCvgNDPZLyzVKijRJSTtPzvcMS7jNjPZLCnyREHpOzjiNDDtPzvzQz/VKSXkNTDsPDXyQjz2RT7pMyTxOinjMST5QjTmOjnPJSLdLyr0RD//YF7/////R0b/Tk3/XVv/WFb/VVP/S0v/Pz//W1n/UVD/REP/Xlz/Ojr/QUH/Skn/U1L/ODf7VlX5UU/oOzrqNzf/+/v5UlHvQUD2TEv0SUj3Tk3/2dn8W1r6TEv7R0b7REPvPTzzPDvwNjXkMjLnMDDjLS3dKir/xcX/vr7/qqn/pqX/mZn/fn7/ZWT/8PD/4eH/3t3/zs7/ra3/kpL/iIj/e3r5PDz4NjbxMTHsMTDlLCz/9vb/6ej/ubjhOGVRAAAAWXRSTlMABQ4TFgoIHhApI0RAGhgzJi89Ozg2LVEg4s5c/v366tmZiYl2X0pE/vn08eTe1sWvqqiOgXVlUE399/b08u3n4tzZ1dTKyMTDvLmzqqKal35taFxH6sC3oms+ongAAAOtSURBVEjHjZV3W9pQGMXJzQACQRARxVF3HdVW26od7q111NqhdbRSbQVElnvvbV1tv25Jgpr3kpCcP+/7/J5z8p57QScr4l46jSJohEhKEGlANKGBYBA1NFDpyklPz3FV5tWwHKnGEbShprIuFPAujEW14A2E6nqqWYshEcYYqnNC3mEgbyh9wMgZGCUbZHZFFobjtODLKWQpRMgyhrxiiQtwK/6SqpczY/QdvqlhJflcZpZk4hiryzecQIH0IitFY0xaBWDkqCEr9CLIDsDIJqywswbpNlB/ZEpVkZ4kPZKEqwmOTakrXGCk6IdwFYExDfI+SX4ISBeExjQp0m/jUMyIeuLVBo2Xma0kIRpVhyc1Kpxn42hxdd2BuOnv3Z2d3YO4Y29LCitcQiItcxxH5kcEncRhmc5UiofowuJxqPO5kZjm9rFROC9JWAXqC8HBgciI1AWcRbqj+fgX0emDg+MRif5OglmgJdlIEvzCJ8D5xQjQORhOlJlTKR4qmwD6B6FtOJ012yyMjrHMwuNTCM1jUG2SHDQPoWMMciZxdBR6PQOOtyF0ikEmEfrom5FqH0J7YOh+LUAE1bbolmrqj5SZOwTDxXJTdBFRqCrsBtoHRnAW7hRXThYE3VA7koVjo2CfUK4O2WdHodx7c7FsZ25sNDtotxp4SF++OIrpcHf+6Ojk7BA/X2wwOfRIeLj5wVGNClYJF4K/sY4SrVBJhj323hHXG/ymScEu091PH0HaS5e0MEslGeLuBCt9fqYWKLNXNIpZGcuXfqlqqaHWLhrFrLpWvqpqpU1ixFs9Ll1WY5ZLo19ECUb3X+VXg/y5wEj4qtYVlXCtRdIvErtyZi0nDJc1aLZxCPtrZ3P9PxLIX2Vy8P8zQAxla1xVZlYba6NbYAAi7KIwSxnKKjDHtoAHfOb/qSD/Z1OKEA4XbXHUr8ozq/XOZKOFxgkx4Mv177Jaz4fhQFnWdr8c4283pVhBRSDg4+zLeOYyu9CcCsIBK5T2fF0mXK7JkYaAEaAoY9Mazqw1FdnBRcWFuA/ZGDOd/R7eH7my3m1MA208k60I3ibHozUps/bICe+PQllbUmjrBaxIqaynG5JwT5UrgmW9ubpjrt5kJMOKlMvavIM2o08cVqRcVvONyNw0Y088YVmvPIJeqVUEy9rkmU31imBZ1x7PNV6RelkeD16Relmfbm81VQTLevs2A74iDWXpXzznwwEj9YCszcbCcOqiSY4jYTh1Jx1B04o+/wH6/wOSPFj1xgAAAABJRU5ErkJggg==",width:26,height:36}],this.updateMarker()},methods:{goto(){var e=weex.config.env.platform==="iOS";this.openSysMap(this.latitude,this.longitude,this.name,e)},updateMarker(){this.mapContext.moveToLocation(),this.mapContext.translateMarker({markerId:"location",destination:{latitude:this.latitude,longitude:this.longitude},duration:0},e=>{})},openSysMap(e,t,a,n){let o=weex.requireModule("mapSearch");var s=[{title:this.localize("map.title.tencent"),getUrl:function(){var A;return A="https://apis.map.qq.com/uri/v1/routeplan?type=drive&to="+encodeURIComponent(a)+"&tocoord="+encodeURIComponent(e+","+t)+"&referer=APP",A}},{title:this.localize("map.title.google"),getUrl:function(){var A;return A="https://www.google.com/maps/?daddr="+encodeURIComponent(a)+"&sll="+encodeURIComponent(e+","+t),A}}],r=[{title:this.localize("map.title.amap"),pname:"com.autonavi.minimap",action:n?"iosamap://":"amapuri://",getUrl:function(){var A;return n?A="iosamap://path":A="amapuri://route/plan/",A+="?sourceApplication=APP&dname="+encodeURIComponent(a)+"&dlat="+e+"&dlon="+t+"&dev=0",A}},{title:this.localize("map.title.baidu"),pname:"com.baidu.BaiduMap",action:"baidumap://",getUrl:function(){var A="baidumap://map/direction?destination="+encodeURIComponent("latlng:"+e+","+t+"|name:"+a)+"&mode=driving&src=APP&coord_type=gcj02";return A}},{title:this.localize("map.title.tencent"),pname:"com.tencent.map",action:"qqmap://",getUrl:()=>{var A;return A="qqmap://map/routeplan?type=drive"+(n?"&from="+encodeURIComponent(this.localize("location.title")):"")+"&to="+encodeURIComponent(a)+"&tocoord="+encodeURIComponent(e+","+t)+"&referer=APP",A}},{title:this.localize("map.title.google"),pname:"com.google.android.apps.maps",action:"comgooglemapsurl://",getUrl:function(){var A;return n?A="comgooglemapsurl://maps.google.com/":A="https://www.google.com/maps/",A+="?daddr="+encodeURIComponent(a)+"&sll="+encodeURIComponent(e+","+t),A}}],l=[];r.forEach(function(A){var g=plus.runtime.isApplicationExist({pname:A.pname,action:A.action});g&&l.push(A)}),n&&l.unshift({title:this.localize("map.title.apple"),navigateTo:function(){o.openSystemMapNavigation({longitude:t,latitude:e,name:a})}}),l.length===0&&(l=l.concat(s)),plus.nativeUI.actionSheet({cancel:this.localize("select.cancel"),buttons:l},function(A){var g=A.index,c;g>0&&(c=l[g-1],c.navigateTo?c.navigateTo():plus.runtime.openURL(c.getUrl(),function(){},c.pname))})}}};function R(e,t,a,n,o,s){return(0,i.openBlock)(),(0,i.createElementBlock)("scroll-view",{scrollY:!0,showScrollbar:!0,enableBackToTop:!0,bubble:"true",style:{flexDirection:"column"}},[(0,i.createElementVNode)("view",{class:"page flex-c",style:(0,i.normalizeStyle)({paddingBottom:o.bottom})},[(0,i.createElementVNode)("map",{class:"flex-fill map",ref:"map1",longitude:o.longitude,latitude:o.latitude,markers:o.markers},null,8,["longitude","latitude","markers"]),(0,i.createElementVNode)("view",{class:"flex-r a-i-c target"},[(0,i.createElementVNode)("view",{class:"text-area"},[(0,i.createElementVNode)("u-text",{class:"name"},(0,i.toDisplayString)(o.name),1),(0,i.createElementVNode)("u-text",{class:"address"},(0,i.toDisplayString)(o.address),1)]),(0,i.createElementVNode)("view",{class:"goto-area",onClick:t[0]||(t[0]=(...r)=>s.goto&&s.goto(...r))},[(0,i.createElementVNode)("u-image",{class:"goto-icon",src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADIEAYAAAD9yHLdAAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAAZiS0dEAAAAAAAA+UO7fwAAAAlwSFlzAAAASAAAAEgARslrPgAADzVJREFUeNrt3WmMFMUfxvGqRREjEhXxIAooUQTFGPGIeLAcshoxRhM1Eu+YjZGIJh4vTIzHC1GJiiCeiUckEkWDVzxQxHgRvNB4LYiigshyxFXYg4Bb/xfPv1YbFpjtnZmq7v5+3vxSs8vOr4vpfqZ6pmeMAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMKwoRtAtjnnnHN77KHR2LGqhx327y8YZ9zSpcYaa+z8+dZaa21LS+i+AQCBKDgmTVJdv96VZN06/+9C9w8AqBId+K1Vfeih0gJjZ/zfsayEASBvksExbVp5gmNrjz5KkABATlQnOAgSAMiNMMFBkABAZsURHAQJAGRGnMFBkABAtLIRHAQJAEQjm8FBkABAMPkIDoIEAKomn8FBkABAxRQjOAgSACibYgYHQQIAqREcnSFIAGC7/AFSleDoHEECAB38AVGV4CgNQQKgwPwBUJXgSIcgAVAg/oCnSnCUB0ECIMf8AU6V4KgMggRAjvgDmirBUR0ECYAM8wcw1ViCY/PmfN3Pzvh5J0gAZIA/YCUPYKE1NqpOmlSd+6uvV/3999BbLqxIAETMH6BUYwuOI49Ura2tzv36+xkyRJUgAYBt+AOSanzBkeyzegGSvF+CBAA6+AOQarzBkey3+gGSvH+CBECB+QOOavzBkew7XIAk+yBIABSIP8CoZic4kv2HD5BkPwQJgBzzBxTV7AVHcjviCZBkXwQJgBzxBxDV7AZHcnviC5BkfwQJgAzzBwzV7AdHcrviDZBknwQJgAzxBwjV/ARHcvviD5BkvwQJgIj5A4Jq/oIjuZ3ZCZBk3wQJgIj4A4BqfoMjub3ZC5Bk/wQJgID8Dq+a/+BIbnd2AyS5HQQJgCryO7hqcYIjuf3ZD5Dk9hAkACrI79CqxQuO5DzkJ0CS20WQACgjvwOrFjc4kvORvwBJbh9BAqAb/A6rSnAk5yW/AZLcToIEQBf4HVSV4Oh8fvIfIMntJUgA7IDfIVUJjh3PU3ECJLndBAmA//A7oCrBUdp8FS9AkttPkACF5nc4VYKja/NW3ABJzgNBAhSK38FUCY5080eAJOeDIAFyze9QqgRH9+aRAOl8XggSIFf8DqRKcJRnPgmQHc8PQQJkmt9hVAmO8s4rAVLaPBEkQKb4HUSV4KjM/BIgXZsvggSImt8hVAmOys4zAZJu3ggSICp+B1AlOKoz3wRI9+aPIAGC8g94VYKjuvNOgJRnHgkSoKr8A1yV4Agz/wRIeeeTIAGqQg/su+8OvYvJH3+oDh0ael6qO/8ESGXmdejQ5OMqtClTQs8LUBau3bW79rPPDr1LSfGCo+P/wTlHgFR6fiMKknbX7tonTAg9L8iGmtANbJc11tjbbw/bxOrVqmPGWGuttT/8EHpakC/Jx9WYMar+cRfKbbeFvX9kRXQBoqdB/ftrdOyxYbogOFBd0QSJNdbYESO0Hx5wQOh5QdyiCxAZMCDM/RIcCCuOIPEvpg8aFHo+ELf4AsQZZ1xra3XvlOBAXIIHiTPOuObm0POAuMUXIMYYYxoaVDdsqOz9rFmjOm4cwYEYJR+X/k0Gq1ZV9l43blRdujT09iNu0QWIrbE1tmbTJo1mz67MvfhncrW12kG/+y70dgM7osfpkiUajRunWqkVyaxZyf0QyBj/Ip7qypXleY9icd+Om5Z/e2113kNavLfxpuUfx8nHdXetXKm38e6/f+jtQzZEtwLx9IzLP8Oqq1NdvrzLf8gZZ1xDg+ppp3GqCnnQ8Tj+/+Nat/oVShc444z7+WcN6uq08mhsDL19QFnpmVHv3nqmdPPNGn/2merGjbp9wwbVTz5Rve461d13D91/VrECyQb/OFe9/nrtFwsXduwXif1k0SKNb7pJ4z32CN0/gBwiQABsT7SnsAAAcSNAAACpECAAgFQIEABAKgQIACAVAgQAkAoBAgBIhQABAKRCgAAAUiFAAACpECAAgFQIEABAKgQIACAVAgQAkAoBAgBIhQABAKRCgAAAUiFAAACpECAAgFQIEABAKgQIACAVAgQAkAoBAgBIhQABAKRCgAAAUiFAAACpECAAgFQIEABAKgQIACAVAgQAkMouoRsAgFBcu2t37b17a9S3r7HGGtu3r3HGGbfvvsnxf35ujDFmn31Ue/VK/tU+ffT7PXro963VeK+9On7FGmtsW5tub2jQjc8/b2tsja35/PPQ81IqAgRAZjnnnHN7760D8eDBunXQIB2gBw7U2NdDDun4eeL2Pffc5g9bY43dwXhnSv331lhjJ0zQ4MYbtT3PPadxfb211lrb3Bx6nreHAAEQDa0IevbUgXXYMAXDUUdpPHy4xsOHa3zUUfpXBx/c5QN81CZOVD3wQM1HXZ1WJps3h+5sawQIgKrRM+zBgxUEI0fqwD9ypH7q67Bhqrvs0u2VQKaNHq3tnTxZ4/vuC93R1ggQAN2mYKipUTCMGKFbR43SAfDkkzU+6STV/fcvVhB01/XXa37vv1+ntJwL3ZFHgAAomU6p9OunABg/Xreeeabq+PG6vV+/0H3my0EHJV/jWbYsdEceAQJgG3rGe8wxGp13nuoZZ6j6FUYNlwFUSyKYCRAAEVBQHHmkRhdcoHrhhapDhoTuD/+1Zk3oDrZGgAAF0PHitTHm33f5+MDw72ZCnFasUP3559CdbI0AAXJEQdGjh86Zjx6tW+vrVf2pqB49QveJrnjggdhePPcIECDDFBiHHqrAuOoq3XrFFTpnfsABoftDSs444957T4MZM0K3sz0ECJAhCozaWh1gbr5Zt9bVKTB4UTvb/Apj1iz9f159tVYeW7aE7mx7CBAgQh3XVRhjjDn3XFUfGCecwHUUgTnjjGtu1v9Dc7PGGzdq/Oefnf++D4imJv1ea6vG33+vOmeOAuOLL0JvXqkIECACur5it900uvRS1RtvVD388ND9ZVtbm+qvv3ZUZ5xxv/2mA/mKFRqvWqXx2rX6vbVrdfu6dcnbm5r00SLxvSZRbQQIEEDHi93GGGMuu0z19ttVDz44dH9xa2xU/fpr1R9+UF2ypKM644xbulQH+pUrQ3ecVwQIUEUKjnPO0eiuu1T9Zz8Vnb/OYeFC1U8/VV28WPWrr3SK548/QncKIUCACtKpqVNP1SmQe+7Rrf4zoQrEGWfcTz9pHubP1/ijj/TDhQu1UojnCmuUhgABykgrjP79Nbr/flV/ZXfeNTWpzpungHjnHR8YCojly0N3iPIiQIBu0ArDf+z4pEm69c47Vfv0Cd1fZSxbpoB47TVt9+uva/zhh7F+bwUqgwABUtBKw3+o4COPqB5/fOi+yst/hMbcuQqIOXMUEP7UE4qOAAFKoMDYfXeN7r1X9ZprVLN+Ad9ff6nOnq36zDOqixbF+hEaiAMBAuxAcqXx7LOqQ4eG7ivt1qi+/75WFE8+qVNQL72koPAXtgGlIUCA/0heAX7ttap+xdGzZ+j+usZfQDdnjgJj6lSdgvrmm9CdIR8IEMD4F8MHDtRo1izVU04J3VfXrFqloJg2TSuLJ57QysK/OwooLwIEhaYVx6hRGr3wgup++4XuqzT+bbEPPqj6+ONaYXAqCtVBgKBQFBjW6pn6DTfo1rvvVo34ezKcccb5LxS67TatMGbP1grjn39Ct4diIkBQCAqOXr00euwxHYD9hxbGyn943333qU6bphXGpk2hOwOMIUCQc3ptw3844euvqx59dOi+OudPPU2dqnrPPVphtLSE7gzoDAGCXNKK44gjNHr7bdUBA0L31TkfbJMnKzD4yA9kAwGCXNGK47jjNHrjDdV+/UL3lbR8uV7TuPpqnZKaNy90R0AaGb+CFhCtOMaM0Wsb/rukYwkO/5Wk06crOI4+muBAHrACQaYpOM47TyP/URyxXPC3dKkC45JLFBj++y2AfGAFgkzSqarTT9fouedUYwmOZ59VcIwYQXAgz1iBIFO04qit1eiVV1T9d4mH8uefCozLLlNgvPZa2H6A6iBAkAlacZx4okavvqrqPx03REPGGbd4sV5zOf98BcdPP4WeJ6CaOIWFqCk4hg/XgfrNN3XrnnuG7eqpp9TPyJF62y3BgWIiQBAlnarq21ejuXNV9947VDeqd9yhwLjySlX/abdAMXEKC1HRimPXXXWK6MUX9Ux/8ODqN2Kccc3Nuv+LL1ZgvPxy6PkBYkKAIC7WWGP9p8v6F8urralJfUyYoOD4+OPQ0wLEiABBROrrVS+6KMz9r1mjWlen4Pjqq9AzAsSMAEFEQgVHY6Nqba2Co6Eh9EwAWcCL6Cgw/019Z55JcABdR4CggHxwjB2r4Fi8OHRHQBYRICiQzZv17qrzz1dwfPll6I6ALCNAUCD19bpi/N13Q3cC5AEBgnxzxhk3ZYpWHE8/HbodIE8IEOTYggW6nuPWW0N3AuQRAYIcWr1adeJErTz++Sd0R0AeESDIkfZ21YsuUnD4IAFQCQQIcmTGDAXH+++H7gQoAgIEOfDjj6q33BK6E6BICBDkwOTJWnm0tITuBCgSAgQZ9uKLCo633grdCVBEBAgyqLVV13fccEPoToAiI0CQLc4442bO1BXlv/0Wuh2gyAgQZIP/hkBjjDFTp4ZuBwABgkx5+GGtPPwXPwEIiQBBBmzZojp9euhOAPyLAEHcnHHGzZ2rlcfKlaHbAfAvAgRxs8YaO3Nm6DYAbIsAQcRWrFD94IPQnQDYFgGCiM2erQsFnQvdCYBtESCIkzPOuDlzQrcBYPsIEMTFGWfcunV67YPvLAdiRoAgLtZYY+fN06kr//0eAGJEgCBC8+eH7gDAzhEgiNCiRaE7ALBzBAgi0tam10CWLAndCYCdI0AQB2eccd9+qyvO/UeXAIgZAYI4WGON9V9NCyALCBBExF95DiALCBDEwRlnHAECZAkBgjhYY41dvz50GwBKR4AgIi0toTsAUDoCBHFwxhnX2hq6DQClI0BQgk2bKn4X1lhj//479JYCKB0BghL8+mtl/77/uPZffgm9pQCAMnPOOec+/9yVW7trd+2ffRZ6+wAAFaID/dlnlz1AnHPOnXVW6O0DAFSYDvhTppRn5XHXXaG3BwBQZUqBK65QbWwsLTVWr1a9/PLQ/QPoPhu6AWSbAqFXL43GjFEdMiT5Ww0NqgsW6Iui2tpC9w0AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAyK7/ATO6t9N2I5PTAAAAJXRFWHRkYXRlOmNyZWF0ZQAyMDIyLTAzLTAxVDExOjQ1OjU1KzA4OjAw5vcxUwAAACV0RVh0ZGF0ZTptb2RpZnkAMjAyMi0wMy0wMVQxMTo0NTo1NSswODowMJeqie8AAABSdEVYdHN2ZzpiYXNlLXVyaQBmaWxlOi8vL2hvbWUvYWRtaW4vaWNvbi1mb250L3RtcC9pY29uX2lnaGV6d2JubWhiL25hdmlnYXRpb25fbGluZS5zdmc29Ka/AAAAAElFTkSuQmCC"})])])],4)])}var p=v(z,[["render",R],["styles",[x]]]);var u=plus.webview.currentWebview();if(u){let e=parseInt(u.id),t="template/__uniappopenlocation",a={};try{a=JSON.parse(u.__query__)}catch(o){}p.mpType="page";let n=Vue.createPageApp(p,{$store:getApp({allowDefault:!0}).$store,__pageId:e,__pagePath:t,__pageQuery:a});n.provide("__globalStyles",Vue.useCssStyles([...__uniConfig.styles,...p.styles||[]])),n.mount("#root")}})(); diff --git a/unpackage/dist/dev/app-plus/__uniapppicker.js b/unpackage/dist/dev/app-plus/__uniapppicker.js deleted file mode 100644 index a654783..0000000 --- a/unpackage/dist/dev/app-plus/__uniapppicker.js +++ /dev/null @@ -1,33 +0,0 @@ -"use weex:vue"; - -if (typeof Promise !== 'undefined' && !Promise.prototype.finally) { - Promise.prototype.finally = function(callback) { - const promise = this.constructor - return this.then( - value => promise.resolve(callback()).then(() => value), - reason => promise.resolve(callback()).then(() => { - throw reason - }) - ) - } -}; - -if (typeof uni !== 'undefined' && uni && uni.requireGlobal) { - const global = uni.requireGlobal() - ArrayBuffer = global.ArrayBuffer - Int8Array = global.Int8Array - Uint8Array = global.Uint8Array - Uint8ClampedArray = global.Uint8ClampedArray - Int16Array = global.Int16Array - Uint16Array = global.Uint16Array - Int32Array = global.Int32Array - Uint32Array = global.Uint32Array - Float32Array = global.Float32Array - Float64Array = global.Float64Array - BigInt64Array = global.BigInt64Array - BigUint64Array = global.BigUint64Array -}; - - -(()=>{var D=Object.create;var b=Object.defineProperty;var C=Object.getOwnPropertyDescriptor;var x=Object.getOwnPropertyNames;var M=Object.getPrototypeOf,I=Object.prototype.hasOwnProperty;var V=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var L=(e,t,a,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of x(t))!I.call(e,r)&&r!==a&&b(e,r,{get:()=>t[r],enumerable:!(i=C(t,r))||i.enumerable});return e};var N=(e,t,a)=>(a=e!=null?D(M(e)):{},L(t||!e||!e.__esModule?b(a,"default",{value:e,enumerable:!0}):a,e));var A=V((U,v)=>{v.exports=Vue});var _={data(){return{locale:"en",fallbackLocale:"en",localization:{en:{done:"OK",cancel:"Cancel"},zh:{done:"\u5B8C\u6210",cancel:"\u53D6\u6D88"},"zh-hans":{},"zh-hant":{},messages:{}},localizationTemplate:{}}},onLoad(){this.initLocale()},created(){this.initLocale()},methods:{initLocale(){if(this.__initLocale)return;this.__initLocale=!0;let e=(plus.webview.currentWebview().extras||{}).data||{};if(e.messages&&(this.localization.messages=e.messages),e.locale){this.locale=e.locale.toLowerCase();return}let t={chs:"hans",cn:"hans",sg:"hans",cht:"hant",tw:"hant",hk:"hant",mo:"hant"},a=plus.os.language.toLowerCase().split("/")[0].replace("_","-").split("-"),i=a[1];i&&(a[1]=t[i]||i),a.length=a.length>2?2:a.length,this.locale=a.join("-")},localize(e){let t=this.locale,a=t.split("-")[0],i=this.fallbackLocale,r=n=>Object.assign({},this.localization[n],(this.localizationTemplate||{})[n]);return r("messages")[e]||r(t)[e]||r(a)[e]||r(i)[e]||e}}},k={onLoad(){this.initMessage()},methods:{initMessage(){let{from:e,callback:t,runtime:a,data:i={},useGlobalEvent:r}=plus.webview.currentWebview().extras||{};this.__from=e,this.__runtime=a,this.__page=plus.webview.currentWebview().id,this.__useGlobalEvent=r,this.data=JSON.parse(JSON.stringify(i)),plus.key.addEventListener("backbutton",()=>{typeof this.onClose=="function"?this.onClose():plus.webview.currentWebview().close("auto")});let n=this,c=function(o){let u=o.data&&o.data.__message;!u||n.__onMessageCallback&&n.__onMessageCallback(u.data)};if(this.__useGlobalEvent)weex.requireModule("globalEvent").addEventListener("plusMessage",c);else{let o=new BroadcastChannel(this.__page);o.onmessage=c}},postMessage(e={},t=!1){let a=JSON.parse(JSON.stringify({__message:{__page:this.__page,data:e,keep:t}})),i=this.__from;if(this.__runtime==="v8")this.__useGlobalEvent?plus.webview.postMessageToUniNView(a,i):new BroadcastChannel(i).postMessage(a);else{let r=plus.webview.getWebviewById(i);r&&r.evalJS(`__plusMessage&&__plusMessage(${JSON.stringify({data:a})})`)}},onMessage(e){this.__onMessageCallback=e}}};var s=N(A());var m=(e,t)=>{let a=e.__vccOpts||e;for(let[i,r]of t)a[i]=r;return a};var d=e=>e>9?e:"0"+e;function w({date:e=new Date,mode:t="date"}){return t==="time"?d(e.getHours())+":"+d(e.getMinutes()):e.getFullYear()+"-"+d(e.getMonth()+1)+"-"+d(e.getDate())}var O={data(){return{darkmode:!1,theme:"light"}},onLoad(){this.initDarkmode()},created(){this.initDarkmode()},computed:{isDark(){return this.theme==="dark"}},methods:{initDarkmode(){if(this.__init)return;this.__init=!0;let e=(plus.webview.currentWebview().extras||{}).data||{};this.darkmode=e.darkmode||!1,this.darkmode&&(this.theme=e.theme||"light")}}},z={data(){return{safeAreaInsets:{left:0,right:0,top:0,bottom:0}}},onLoad(){this.initSafeAreaInsets()},created(){this.initSafeAreaInsets()},methods:{initSafeAreaInsets(){if(this.__initSafeAreaInsets)return;this.__initSafeAreaInsets=!0;let e=plus.webview.currentWebview();e.addEventListener("resize",()=>{setTimeout(()=>{this.updateSafeAreaInsets(e)},20)}),this.updateSafeAreaInsets(e)},updateSafeAreaInsets(e){let t=e.getSafeAreaInsets(),a=this.safeAreaInsets;Object.keys(a).forEach(i=>{a[i]=t[i]})}}},Y={content:{"":{position:"absolute",top:0,left:0,bottom:0,right:0}},"uni-mask":{"":{position:"absolute",top:0,left:0,bottom:0,right:0,backgroundColor:"rgba(0,0,0,0.4)",opacity:0,transitionProperty:"opacity",transitionDuration:200,transitionTimingFunction:"linear"}},"uni-mask-visible":{"":{opacity:1}},"uni-picker":{"":{position:"absolute",left:0,bottom:0,right:0,backgroundColor:"#ffffff",color:"#000000",flexDirection:"column",transform:"translateY(295px)"}},"uni-picker-header":{"":{height:45,borderBottomWidth:.5,borderBottomColor:"#C8C9C9",backgroundColor:"#FFFFFF",fontSize:20}},"uni-picker-action":{"":{position:"absolute",textAlign:"center",top:0,height:45,paddingTop:0,paddingRight:14,paddingBottom:0,paddingLeft:14,fontSize:17,lineHeight:45}},"uni-picker-action-cancel":{"":{left:0,color:"#888888"}},"uni-picker-action-confirm":{"":{right:0,color:"#007aff"}},"uni-picker-content":{"":{flex:1}},"uni-picker-dark":{"":{backgroundColor:"#232323"}},"uni-picker-header-dark":{"":{backgroundColor:"#232323",borderBottomColor:"rgba(255,255,255,0.05)"}},"uni-picker-action-cancel-dark":{"":{color:"rgba(255,255,255,0.8)"}},"@TRANSITION":{"uni-mask":{property:"opacity",duration:200,timingFunction:"linear"}}};function S(){if(this.mode===l.TIME)return"00:00";if(this.mode===l.DATE){let e=new Date().getFullYear()-61;switch(this.fields){case h.YEAR:return e;case h.MONTH:return e+"-01";default:return e+"-01-01"}}return""}function E(){if(this.mode===l.TIME)return"23:59";if(this.mode===l.DATE){let e=new Date().getFullYear()+61;switch(this.fields){case h.YEAR:return e;case h.MONTH:return e+"-12";default:return e+"-12-31"}}return""}function F(e){let t=new Date().getFullYear(),a=t-61,i=t+61;if(e.start){let r=new Date(e.start).getFullYear();!isNaN(r)&&ri&&(i=r)}return{start:a,end:i}}var T=weex.requireModule("animation"),l={SELECTOR:"selector",MULTISELECTOR:"multiSelector",TIME:"time",DATE:"date",REGION:"region"},h={YEAR:"year",MONTH:"month",DAY:"day"},g=!1,R={name:"Picker",mixins:[_,z,O],props:{pageId:{type:Number,default:0},range:{type:Array,default(){return[]}},rangeKey:{type:String,default:""},value:{type:[Number,String,Array],default:0},mode:{type:String,default:l.SELECTOR},fields:{type:String,default:h.DAY},start:{type:String,default:S},end:{type:String,default:E},disabled:{type:[Boolean,String],default:!1},visible:{type:Boolean,default:!1}},data(){return{valueSync:null,timeArray:[],dateArray:[],valueArray:[],oldValueArray:[],fontSize:16,height:261,android:weex.config.env.platform.toLowerCase()==="android"}},computed:{rangeArray(){var e=this.range;switch(this.mode){case l.SELECTOR:return[e];case l.MULTISELECTOR:return e;case l.TIME:return this.timeArray;case l.DATE:{let t=this.dateArray;switch(this.fields){case h.YEAR:return[t[0]];case h.MONTH:return[t[0],t[1]];default:return[t[0],t[1],t[2]]}}}return[]},startArray(){return this._getDateValueArray(this.start,S.bind(this)())},endArray(){return this._getDateValueArray(this.end,E.bind(this)())},textMaxLength(){return Math.floor(Math.min(weex.config.env.deviceWidth,weex.config.env.deviceHeight)/(this.fontSize*weex.config.env.scale+1)/this.rangeArray.length)},maskStyle(){return{opacity:this.visible?1:0,"background-color":this.android?"rgba(0, 0, 0, 0.6)":"rgba(0, 0, 0, 0.4)"}},pickerViewIndicatorStyle(){return`height: 34px;border-color:${this.isDark?"rgba(255, 255, 255, 0.05)":"#C8C9C9"};border-top-width:0.5px;border-bottom-width:0.5px;`},pickerViewColumnTextStyle(){return{fontSize:this.fontSize+"px","line-height":"34px","text-align":"center",color:this.isDark?"rgba(255, 255, 255, 0.8)":"#000"}},pickerViewMaskTopStyle(){return this.isDark?"background-image: linear-gradient(to bottom, rgba(35, 35, 35, 0.95), rgba(35, 35, 35, 0.6));":""},pickerViewMaskBottomStyle(){return this.isDark?"background-image: linear-gradient(to top,rgba(35, 35, 35, 0.95), rgba(35, 35, 35, 0.6));":""}},watch:{value(){this._setValueSync()},mode(){this._setValueSync()},range(){this._setValueSync()},valueSync(){this._setValueArray(),g=!0},valueArray(e){if(this.mode===l.TIME||this.mode===l.DATE){let t=this.mode===l.TIME?this._getTimeValue:this._getDateValue,a=this.valueArray,i=this.startArray,r=this.endArray;if(this.mode===l.DATE){let n=this.dateArray,c=n[2].length,o=Number(n[2][a[2]])||1,u=new Date(`${n[0][a[0]]}/${n[1][a[1]]}/${o}`).getDate();ut(r)&&this._cloneArray(a,r)}e.forEach((t,a)=>{t!==this.oldValueArray[a]&&(this.oldValueArray[a]=t,this.mode===l.MULTISELECTOR&&this.$emit("columnchange",{column:a,value:t}))})},visible(e){e?setTimeout(()=>{T.transition(this.$refs.picker,{styles:{transform:"translateY(0)"},duration:200})},20):T.transition(this.$refs.picker,{styles:{transform:`translateY(${283+this.safeAreaInsets.bottom}px)`},duration:200})}},created(){this._createTime(),this._createDate(),this._setValueSync()},methods:{getTexts(e,t){let a=this.textMaxLength;return e.map(i=>{let r=String(typeof i=="object"?i[this.rangeKey]||"":this._l10nItem(i,t));if(a>0&&r.length>a){let n=0,c=0;for(let o=0;o127||u===94?n+=1:n+=.65,n<=a-1&&(c=o),n>=a)return o===r.length-1?r:r.substr(0,c+1)+"\u2026"}}return r||" "}).join(` -`)},_createTime(){var e=[],t=[];e.splice(0,e.length);for(let a=0;a<24;a++)e.push((a<10?"0":"")+a);t.splice(0,t.length);for(let a=0;a<60;a++)t.push((a<10?"0":"")+a);this.timeArray.push(e,t)},_createDate(){var e=[],t=F(this);for(let r=t.start,n=t.end;r<=n;r++)e.push(String(r));var a=[];for(let r=1;r<=12;r++)a.push((r<10?"0":"")+r);var i=[];for(let r=1;r<=31;r++)i.push((r<10?"0":"")+r);this.dateArray.push(e,a,i)},_getTimeValue(e){return e[0]*60+e[1]},_getDateValue(e){return e[0]*31*12+(e[1]||0)*31+(e[2]||0)},_cloneArray(e,t){for(let a=0;ac?0:n)}break;case l.TIME:case l.DATE:this.valueSync=String(e);break;default:{let a=Number(e);this.valueSync=a<0?0:a;break}}this.$nextTick(()=>{!g&&this._setValueArray()})},_setValueArray(){g=!0;var e=this.valueSync,t;switch(this.mode){case l.MULTISELECTOR:t=[...e];break;case l.TIME:t=this._getDateValueArray(e,w({mode:l.TIME}));break;case l.DATE:t=this._getDateValueArray(e,w({mode:l.DATE}));break;default:t=[e];break}this.oldValueArray=[...t],this.valueArray=[...t]},_getValue(){var e=this.valueArray;switch(this.mode){case l.SELECTOR:return e[0];case l.MULTISELECTOR:return e.map(t=>t);case l.TIME:return this.valueArray.map((t,a)=>this.timeArray[a][t]).join(":");case l.DATE:return this.valueArray.map((t,a)=>this.dateArray[a][t]).join("-")}},_getDateValueArray(e,t){let a=this.mode===l.DATE?"-":":",i=this.mode===l.DATE?this.dateArray:this.timeArray,r=3;switch(this.fields){case h.YEAR:r=1;break;case h.MONTH:r=2;break}let n=String(e).split(a),c=[];for(let o=0;o=0&&(c=t?this._getDateValueArray(t):c.map(()=>0)),c},_change(){this.$emit("change",{value:this._getValue()})},_cancel(){this.$emit("cancel")},_pickerViewChange(e){this.valueArray=this._l10nColumn(e.detail.value,!0)},_l10nColumn(e,t){if(this.mode===l.DATE){let a=this.locale;if(!a.startsWith("zh"))switch(this.fields){case h.YEAR:return e;case h.MONTH:return[e[1],e[0]];default:switch(a){case"es":case"fr":return[e[2],e[1],e[0]];default:return t?[e[2],e[0],e[1]]:[e[1],e[2],e[0]]}}}return e},_l10nItem(e,t){if(this.mode===l.DATE){let a=this.locale;if(a.startsWith("zh"))return e+["\u5E74","\u6708","\u65E5"][t];if(this.fields!==h.YEAR&&t===(this.fields!==h.MONTH&&(a==="es"||a==="fr")?1:0)){let i;switch(a){case"es":i=["enero","febrero","marzo","abril","mayo","junio","\u200B\u200Bjulio","agosto","septiembre","octubre","noviembre","diciembre"];break;case"fr":i=["janvier","f\xE9vrier","mars","avril","mai","juin","juillet","ao\xFBt","septembre","octobre","novembre","d\xE9cembre"];break;default:i=["January","February","March","April","May","June","July","August","September","October","November","December"];break}return i[Number(e)-1]}}return e}}};function B(e,t,a,i,r,n){let c=(0,s.resolveComponent)("picker-view-column"),o=(0,s.resolveComponent)("picker-view");return(0,s.openBlock)(),(0,s.createElementBlock)("div",{class:(0,s.normalizeClass)(["content",{dark:e.isDark}])},[(0,s.createElementVNode)("div",{ref:"mask",style:(0,s.normalizeStyle)(n.maskStyle),class:"uni-mask",onClick:t[0]||(t[0]=(...u)=>n._cancel&&n._cancel(...u))},null,4),(0,s.createElementVNode)("div",{style:(0,s.normalizeStyle)(`padding-bottom:${e.safeAreaInsets.bottom}px;height:${r.height+e.safeAreaInsets.bottom}px;`),ref:"picker",class:(0,s.normalizeClass)(["uni-picker",{"uni-picker-dark":e.isDark}])},[(0,s.createElementVNode)("div",{class:(0,s.normalizeClass)(["uni-picker-header",{"uni-picker-header-dark":e.isDark}])},[(0,s.createElementVNode)("u-text",{style:(0,s.normalizeStyle)(`left:${e.safeAreaInsets.left}px`),class:(0,s.normalizeClass)(["uni-picker-action uni-picker-action-cancel",{"uni-picker-action-cancel-dark":e.isDark}]),onClick:t[1]||(t[1]=(...u)=>n._cancel&&n._cancel(...u))},(0,s.toDisplayString)(e.localize("cancel")),7),(0,s.createElementVNode)("u-text",{style:(0,s.normalizeStyle)(`right:${e.safeAreaInsets.right}px`),class:"uni-picker-action uni-picker-action-confirm",onClick:t[2]||(t[2]=(...u)=>n._change&&n._change(...u))},(0,s.toDisplayString)(e.localize("done")),5)],2),a.visible?((0,s.openBlock)(),(0,s.createBlock)(o,{key:0,style:(0,s.normalizeStyle)(`margin-left:${e.safeAreaInsets.left}px`),height:"216","indicator-style":n.pickerViewIndicatorStyle,"mask-top-style":n.pickerViewMaskTopStyle,"mask-bottom-style":n.pickerViewMaskBottomStyle,value:n._l10nColumn(r.valueArray),class:"uni-picker-content",onChange:n._pickerViewChange},{default:(0,s.withCtx)(()=>[((0,s.openBlock)(!0),(0,s.createElementBlock)(s.Fragment,null,(0,s.renderList)(n._l10nColumn(n.rangeArray),(u,y)=>((0,s.openBlock)(),(0,s.createBlock)(c,{length:u.length,key:y},{default:(0,s.withCtx)(()=>[(0,s.createCommentVNode)(" iOS\u6E32\u67D3\u901F\u5EA6\u6709\u95EE\u9898\u4F7F\u7528\u5355\u4E2Atext\u4F18\u5316 "),(0,s.createElementVNode)("u-text",{class:"uni-picker-item",style:(0,s.normalizeStyle)(n.pickerViewColumnTextStyle)},(0,s.toDisplayString)(n.getTexts(u,y)),5),(0,s.createCommentVNode)(` {{ typeof item==='object'?item[rangeKey]||'':_l10nItem(item) }} `)]),_:2},1032,["length"]))),128))]),_:1},8,["style","indicator-style","mask-top-style","mask-bottom-style","value","onChange"])):(0,s.createCommentVNode)("v-if",!0)],6)],2)}var j=m(R,[["render",B],["styles",[Y]]]),W={page:{"":{flex:1}}},H={mixins:[k],components:{picker:j},data(){return{range:[],rangeKey:"",value:0,mode:"selector",fields:"day",start:"",end:"",disabled:!1,visible:!1}},onLoad(){this.data===null?this.postMessage({event:"created"},!0):this.showPicker(this.data),this.onMessage(e=>{this.showPicker(e)})},onReady(){this.$nextTick(()=>{this.visible=!0})},methods:{showPicker(e={}){let t=e.column;for(let a in e)a!=="column"&&(typeof t=="number"?this.$set(this.$data[a],t,e[a]):this.$data[a]=e[a])},close(e,{value:t=-1}={}){this.visible=!1,setTimeout(()=>{this.postMessage({event:e,value:t})},210)},onClose(){this.close("cancel")},columnchange({column:e,value:t}){this.$set(this.value,e,t),this.postMessage({event:"columnchange",column:e,value:t},!0)}}};function J(e,t,a,i,r,n){let c=(0,s.resolveComponent)("picker");return(0,s.openBlock)(),(0,s.createElementBlock)("scroll-view",{scrollY:!0,showScrollbar:!0,enableBackToTop:!0,bubble:"true",style:{flexDirection:"column"}},[(0,s.createElementVNode)("view",{class:"page"},[(0,s.createVNode)(c,{range:r.range,rangeKey:r.rangeKey,value:r.value,mode:r.mode,fields:r.fields,start:r.start,end:r.end,disabled:r.disabled,visible:r.visible,onChange:t[0]||(t[0]=o=>n.close("change",o)),onCancel:t[1]||(t[1]=o=>n.close("cancel",o)),onColumnchange:n.columnchange},null,8,["range","rangeKey","value","mode","fields","start","end","disabled","visible","onColumnchange"])])])}var f=m(H,[["render",J],["styles",[W]]]);var p=plus.webview.currentWebview();if(p){let e=parseInt(p.id),t="template/__uniapppicker",a={};try{a=JSON.parse(p.__query__)}catch(r){}f.mpType="page";let i=Vue.createPageApp(f,{$store:getApp({allowDefault:!0}).$store,__pageId:e,__pagePath:t,__pageQuery:a});i.provide("__globalStyles",Vue.useCssStyles([...__uniConfig.styles,...f.styles||[]])),i.mount("#root")}})(); diff --git a/unpackage/dist/dev/app-plus/__uniappquill.js b/unpackage/dist/dev/app-plus/__uniappquill.js deleted file mode 100644 index d9f46b8..0000000 --- a/unpackage/dist/dev/app-plus/__uniappquill.js +++ /dev/null @@ -1,8 +0,0 @@ -/*! - * Quill Editor v1.3.7 - * https://quilljs.com/ - * Copyright (c) 2014, Jason Chen - * Copyright (c) 2013, salesforce.com - */ -!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.Quill=e():t.Quill=e()}("undefined"!=typeof self?self:this,function(){return function(t){function e(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,e),o.l=!0,o.exports}var n={};return e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:r})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=45)}([function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(17),o=n(18),i=n(19),l=n(48),a=n(49),s=n(50),u=n(51),c=n(52),f=n(11),h=n(29),p=n(30),d=n(28),y=n(1),v={Scope:y.Scope,create:y.create,find:y.find,query:y.query,register:y.register,Container:r.default,Format:o.default,Leaf:i.default,Embed:u.default,Scroll:l.default,Block:s.default,Inline:a.default,Text:c.default,Attributor:{Attribute:f.default,Class:h.default,Style:p.default,Store:d.default}};e.default=v},function(t,e,n){"use strict";function r(t,e){var n=i(t);if(null==n)throw new s("Unable to create "+t+" blot");var r=n;return new r(t instanceof Node||t.nodeType===Node.TEXT_NODE?t:r.create(e),e)}function o(t,n){return void 0===n&&(n=!1),null==t?null:null!=t[e.DATA_KEY]?t[e.DATA_KEY].blot:n?o(t.parentNode,n):null}function i(t,e){void 0===e&&(e=p.ANY);var n;if("string"==typeof t)n=h[t]||u[t];else if(t instanceof Text||t.nodeType===Node.TEXT_NODE)n=h.text;else if("number"==typeof t)t&p.LEVEL&p.BLOCK?n=h.block:t&p.LEVEL&p.INLINE&&(n=h.inline);else if(t instanceof HTMLElement){var r=(t.getAttribute("class")||"").split(/\s+/);for(var o in r)if(n=c[r[o]])break;n=n||f[t.tagName]}return null==n?null:e&p.LEVEL&n.scope&&e&p.TYPE&n.scope?n:null}function l(){for(var t=[],e=0;e1)return t.map(function(t){return l(t)});var n=t[0];if("string"!=typeof n.blotName&&"string"!=typeof n.attrName)throw new s("Invalid definition");if("abstract"===n.blotName)throw new s("Cannot register abstract class");if(h[n.blotName||n.attrName]=n,"string"==typeof n.keyName)u[n.keyName]=n;else if(null!=n.className&&(c[n.className]=n),null!=n.tagName){Array.isArray(n.tagName)?n.tagName=n.tagName.map(function(t){return t.toUpperCase()}):n.tagName=n.tagName.toUpperCase();var r=Array.isArray(n.tagName)?n.tagName:[n.tagName];r.forEach(function(t){null!=f[t]&&null!=n.className||(f[t]=n)})}return n}var a=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var s=function(t){function e(e){var n=this;return e="[Parchment] "+e,n=t.call(this,e)||this,n.message=e,n.name=n.constructor.name,n}return a(e,t),e}(Error);e.ParchmentError=s;var u={},c={},f={},h={};e.DATA_KEY="__blot";var p;!function(t){t[t.TYPE=3]="TYPE",t[t.LEVEL=12]="LEVEL",t[t.ATTRIBUTE=13]="ATTRIBUTE",t[t.BLOT=14]="BLOT",t[t.INLINE=7]="INLINE",t[t.BLOCK=11]="BLOCK",t[t.BLOCK_BLOT=10]="BLOCK_BLOT",t[t.INLINE_BLOT=6]="INLINE_BLOT",t[t.BLOCK_ATTRIBUTE=9]="BLOCK_ATTRIBUTE",t[t.INLINE_ATTRIBUTE=5]="INLINE_ATTRIBUTE",t[t.ANY=15]="ANY"}(p=e.Scope||(e.Scope={})),e.create=r,e.find=o,e.query=i,e.register=l},function(t,e){"use strict";var n=Object.prototype.hasOwnProperty,r=Object.prototype.toString,o=Object.defineProperty,i=Object.getOwnPropertyDescriptor,l=function(t){return"function"==typeof Array.isArray?Array.isArray(t):"[object Array]"===r.call(t)},a=function(t){if(!t||"[object Object]"!==r.call(t))return!1;var e=n.call(t,"constructor"),o=t.constructor&&t.constructor.prototype&&n.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!e&&!o)return!1;var i;for(i in t);return void 0===i||n.call(t,i)},s=function(t,e){o&&"__proto__"===e.name?o(t,e.name,{enumerable:!0,configurable:!0,value:e.newValue,writable:!0}):t[e.name]=e.newValue},u=function(t,e){if("__proto__"===e){if(!n.call(t,e))return;if(i)return i(t,e).value}return t[e]};t.exports=function t(){var e,n,r,o,i,c,f=arguments[0],h=1,p=arguments.length,d=!1;for("boolean"==typeof f&&(d=f,f=arguments[1]||{},h=2),(null==f||"object"!=typeof f&&"function"!=typeof f)&&(f={});h1&&void 0!==arguments[1]?arguments[1]:{};return null==t?e:("function"==typeof t.formats&&(e=(0,f.default)(e,t.formats())),null==t.parent||"scroll"==t.parent.blotName||t.parent.statics.scope!==t.statics.scope?e:a(t.parent,e))}Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.BlockEmbed=e.bubbleFormats=void 0;var s=function(){function t(t,e){for(var n=0;n0&&(t1&&void 0!==arguments[1]&&arguments[1];if(n&&(0===t||t>=this.length()-1)){var r=this.clone();return 0===t?(this.parent.insertBefore(r,this),this):(this.parent.insertBefore(r,this.next),r)}var o=u(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"split",this).call(this,t,n);return this.cache={},o}}]),e}(y.default.Block);x.blotName="block",x.tagName="P",x.defaultChild="break",x.allowedChildren=[m.default,y.default.Embed,O.default],e.bubbleFormats=a,e.BlockEmbed=w,e.default=x},function(t,e,n){var r=n(54),o=n(12),i=n(2),l=n(20),a=String.fromCharCode(0),s=function(t){Array.isArray(t)?this.ops=t:null!=t&&Array.isArray(t.ops)?this.ops=t.ops:this.ops=[]};s.prototype.insert=function(t,e){var n={};return 0===t.length?this:(n.insert=t,null!=e&&"object"==typeof e&&Object.keys(e).length>0&&(n.attributes=e),this.push(n))},s.prototype.delete=function(t){return t<=0?this:this.push({delete:t})},s.prototype.retain=function(t,e){if(t<=0)return this;var n={retain:t};return null!=e&&"object"==typeof e&&Object.keys(e).length>0&&(n.attributes=e),this.push(n)},s.prototype.push=function(t){var e=this.ops.length,n=this.ops[e-1];if(t=i(!0,{},t),"object"==typeof n){if("number"==typeof t.delete&&"number"==typeof n.delete)return this.ops[e-1]={delete:n.delete+t.delete},this;if("number"==typeof n.delete&&null!=t.insert&&(e-=1,"object"!=typeof(n=this.ops[e-1])))return this.ops.unshift(t),this;if(o(t.attributes,n.attributes)){if("string"==typeof t.insert&&"string"==typeof n.insert)return this.ops[e-1]={insert:n.insert+t.insert},"object"==typeof t.attributes&&(this.ops[e-1].attributes=t.attributes),this;if("number"==typeof t.retain&&"number"==typeof n.retain)return this.ops[e-1]={retain:n.retain+t.retain},"object"==typeof t.attributes&&(this.ops[e-1].attributes=t.attributes),this}}return e===this.ops.length?this.ops.push(t):this.ops.splice(e,0,t),this},s.prototype.chop=function(){var t=this.ops[this.ops.length-1];return t&&t.retain&&!t.attributes&&this.ops.pop(),this},s.prototype.filter=function(t){return this.ops.filter(t)},s.prototype.forEach=function(t){this.ops.forEach(t)},s.prototype.map=function(t){return this.ops.map(t)},s.prototype.partition=function(t){var e=[],n=[];return this.forEach(function(r){(t(r)?e:n).push(r)}),[e,n]},s.prototype.reduce=function(t,e){return this.ops.reduce(t,e)},s.prototype.changeLength=function(){return this.reduce(function(t,e){return e.insert?t+l.length(e):e.delete?t-e.delete:t},0)},s.prototype.length=function(){return this.reduce(function(t,e){return t+l.length(e)},0)},s.prototype.slice=function(t,e){t=t||0,"number"!=typeof e&&(e=1/0);for(var n=[],r=l.iterator(this.ops),o=0;o0&&n.next(i.retain-a)}for(var u=new s(r);e.hasNext()||n.hasNext();)if("insert"===n.peekType())u.push(n.next());else if("delete"===e.peekType())u.push(e.next());else{var c=Math.min(e.peekLength(),n.peekLength()),f=e.next(c),h=n.next(c);if("number"==typeof h.retain){var p={};"number"==typeof f.retain?p.retain=c:p.insert=f.insert;var d=l.attributes.compose(f.attributes,h.attributes,"number"==typeof f.retain);if(d&&(p.attributes=d),u.push(p),!n.hasNext()&&o(u.ops[u.ops.length-1],p)){var y=new s(e.rest());return u.concat(y).chop()}}else"number"==typeof h.delete&&"number"==typeof f.retain&&u.push(h)}return u.chop()},s.prototype.concat=function(t){var e=new s(this.ops.slice());return t.ops.length>0&&(e.push(t.ops[0]),e.ops=e.ops.concat(t.ops.slice(1))),e},s.prototype.diff=function(t,e){if(this.ops===t.ops)return new s;var n=[this,t].map(function(e){return e.map(function(n){if(null!=n.insert)return"string"==typeof n.insert?n.insert:a;var r=e===t?"on":"with";throw new Error("diff() called "+r+" non-document")}).join("")}),i=new s,u=r(n[0],n[1],e),c=l.iterator(this.ops),f=l.iterator(t.ops);return u.forEach(function(t){for(var e=t[1].length;e>0;){var n=0;switch(t[0]){case r.INSERT:n=Math.min(f.peekLength(),e),i.push(f.next(n));break;case r.DELETE:n=Math.min(e,c.peekLength()),c.next(n),i.delete(n);break;case r.EQUAL:n=Math.min(c.peekLength(),f.peekLength(),e);var a=c.next(n),s=f.next(n);o(a.insert,s.insert)?i.retain(n,l.attributes.diff(a.attributes,s.attributes)):i.push(s).delete(n)}e-=n}}),i.chop()},s.prototype.eachLine=function(t,e){e=e||"\n";for(var n=l.iterator(this.ops),r=new s,o=0;n.hasNext();){if("insert"!==n.peekType())return;var i=n.peek(),a=l.length(i)-n.peekLength(),u="string"==typeof i.insert?i.insert.indexOf(e,a)-a:-1;if(u<0)r.push(n.next());else if(u>0)r.push(n.next(u));else{if(!1===t(r,n.next(1).attributes||{},o))return;o+=1,r=new s}}r.length()>0&&t(r,{},o)},s.prototype.transform=function(t,e){if(e=!!e,"number"==typeof t)return this.transformPosition(t,e);for(var n=l.iterator(this.ops),r=l.iterator(t.ops),o=new s;n.hasNext()||r.hasNext();)if("insert"!==n.peekType()||!e&&"insert"===r.peekType())if("insert"===r.peekType())o.push(r.next());else{var i=Math.min(n.peekLength(),r.peekLength()),a=n.next(i),u=r.next(i);if(a.delete)continue;u.delete?o.push(u):o.retain(i,l.attributes.transform(a.attributes,u.attributes,e))}else o.retain(l.length(n.next()));return o.chop()},s.prototype.transformPosition=function(t,e){e=!!e;for(var n=l.iterator(this.ops),r=0;n.hasNext()&&r<=t;){var o=n.peekLength(),i=n.peekType();n.next(),"delete"!==i?("insert"===i&&(r0){var n=this.parent.isolate(this.offset(),this.length());this.moveChildren(n),n.wrap(this)}}}],[{key:"compare",value:function(t,n){var r=e.order.indexOf(t),o=e.order.indexOf(n);return r>=0||o>=0?r-o:t===n?0:t0){var a,s=[g.default.events.TEXT_CHANGE,l,i,e];if((a=this.emitter).emit.apply(a,[g.default.events.EDITOR_CHANGE].concat(s)),e!==g.default.sources.SILENT){var c;(c=this.emitter).emit.apply(c,s)}}return l}function s(t,e,n,r,o){var i={};return"number"==typeof t.index&&"number"==typeof t.length?"number"!=typeof e?(o=r,r=n,n=e,e=t.length,t=t.index):(e=t.length,t=t.index):"number"!=typeof e&&(o=r,r=n,n=e,e=0),"object"===(void 0===n?"undefined":c(n))?(i=n,o=r):"string"==typeof n&&(null!=r?i[n]=r:o=n),o=o||g.default.sources.API,[t,e,i,o]}function u(t,e,n,r){if(null==t)return null;var o=void 0,i=void 0;if(e instanceof d.default){var l=[t.index,t.index+t.length].map(function(t){return e.transformPosition(t,r!==g.default.sources.USER)}),a=f(l,2);o=a[0],i=a[1]}else{var s=[t.index,t.index+t.length].map(function(t){return t=0?t+n:Math.max(e,t+n)}),u=f(s,2);o=u[0],i=u[1]}return new x.Range(o,i-o)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.overload=e.expandConfig=void 0;var c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},f=function(){function t(t,e){var n=[],r=!0,o=!1,i=void 0;try{for(var l,a=t[Symbol.iterator]();!(r=(l=a.next()).done)&&(n.push(l.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{!r&&a.return&&a.return()}finally{if(o)throw i}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),h=function(){function t(t,e){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:{};if(i(this,t),this.options=l(e,r),this.container=this.options.container,null==this.container)return P.error("Invalid Quill container",e);this.options.debug&&t.debug(this.options.debug);var o=this.container.innerHTML.trim();this.container.classList.add("ql-container"),this.container.innerHTML="",this.container.__quill=this,this.root=this.addContainer("ql-editor"),this.root.classList.add("ql-blank"),this.root.setAttribute("data-gramm",!1),this.scrollingContainer=this.options.scrollingContainer||this.root,this.emitter=new g.default,this.scroll=w.default.create(this.root,{emitter:this.emitter,whitelist:this.options.formats}),this.editor=new v.default(this.scroll),this.selection=new k.default(this.scroll,this.emitter),this.theme=new this.options.theme(this,this.options),this.keyboard=this.theme.addModule("keyboard"),this.clipboard=this.theme.addModule("clipboard"),this.history=this.theme.addModule("history"),this.theme.init(),this.emitter.on(g.default.events.EDITOR_CHANGE,function(t){t===g.default.events.TEXT_CHANGE&&n.root.classList.toggle("ql-blank",n.editor.isBlank())}),this.emitter.on(g.default.events.SCROLL_UPDATE,function(t,e){var r=n.selection.lastRange,o=r&&0===r.length?r.index:void 0;a.call(n,function(){return n.editor.update(null,e,o)},t)});var s=this.clipboard.convert("
"+o+"


");this.setContents(s),this.history.clear(),this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder),this.options.readOnly&&this.disable()}return h(t,null,[{key:"debug",value:function(t){!0===t&&(t="log"),A.default.level(t)}},{key:"find",value:function(t){return t.__quill||w.default.find(t)}},{key:"import",value:function(t){return null==this.imports[t]&&P.error("Cannot import "+t+". Are you sure it was registered?"),this.imports[t]}},{key:"register",value:function(t,e){var n=this,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if("string"!=typeof t){var o=t.attrName||t.blotName;"string"==typeof o?this.register("formats/"+o,t,e):Object.keys(t).forEach(function(r){n.register(r,t[r],e)})}else null==this.imports[t]||r||P.warn("Overwriting "+t+" with",e),this.imports[t]=e,(t.startsWith("blots/")||t.startsWith("formats/"))&&"abstract"!==e.blotName?w.default.register(e):t.startsWith("modules")&&"function"==typeof e.register&&e.register()}}]),h(t,[{key:"addContainer",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if("string"==typeof t){var n=t;t=document.createElement("div"),t.classList.add(n)}return this.container.insertBefore(t,e),t}},{key:"blur",value:function(){this.selection.setRange(null)}},{key:"deleteText",value:function(t,e,n){var r=this,o=s(t,e,n),i=f(o,4);return t=i[0],e=i[1],n=i[3],a.call(this,function(){return r.editor.deleteText(t,e)},n,t,-1*e)}},{key:"disable",value:function(){this.enable(!1)}},{key:"enable",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.scroll.enable(t),this.container.classList.toggle("ql-disabled",!t)}},{key:"focus",value:function(){var t=this.scrollingContainer.scrollTop;this.selection.focus(),this.scrollingContainer.scrollTop=t,this.scrollIntoView()}},{key:"format",value:function(t,e){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:g.default.sources.API;return a.call(this,function(){var r=n.getSelection(!0),i=new d.default;if(null==r)return i;if(w.default.query(t,w.default.Scope.BLOCK))i=n.editor.formatLine(r.index,r.length,o({},t,e));else{if(0===r.length)return n.selection.format(t,e),i;i=n.editor.formatText(r.index,r.length,o({},t,e))}return n.setSelection(r,g.default.sources.SILENT),i},r)}},{key:"formatLine",value:function(t,e,n,r,o){var i=this,l=void 0,u=s(t,e,n,r,o),c=f(u,4);return t=c[0],e=c[1],l=c[2],o=c[3],a.call(this,function(){return i.editor.formatLine(t,e,l)},o,t,0)}},{key:"formatText",value:function(t,e,n,r,o){var i=this,l=void 0,u=s(t,e,n,r,o),c=f(u,4);return t=c[0],e=c[1],l=c[2],o=c[3],a.call(this,function(){return i.editor.formatText(t,e,l)},o,t,0)}},{key:"getBounds",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=void 0;n="number"==typeof t?this.selection.getBounds(t,e):this.selection.getBounds(t.index,t.length);var r=this.container.getBoundingClientRect();return{bottom:n.bottom-r.top,height:n.height,left:n.left-r.left,right:n.right-r.left,top:n.top-r.top,width:n.width}}},{key:"getContents",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getLength()-t,n=s(t,e),r=f(n,2);return t=r[0],e=r[1],this.editor.getContents(t,e)}},{key:"getFormat",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getSelection(!0),e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return"number"==typeof t?this.editor.getFormat(t,e):this.editor.getFormat(t.index,t.length)}},{key:"getIndex",value:function(t){return t.offset(this.scroll)}},{key:"getLength",value:function(){return this.scroll.length()}},{key:"getLeaf",value:function(t){return this.scroll.leaf(t)}},{key:"getLine",value:function(t){return this.scroll.line(t)}},{key:"getLines",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE;return"number"!=typeof t?this.scroll.lines(t.index,t.length):this.scroll.lines(t,e)}},{key:"getModule",value:function(t){return this.theme.modules[t]}},{key:"getSelection",value:function(){return arguments.length>0&&void 0!==arguments[0]&&arguments[0]&&this.focus(),this.update(),this.selection.getRange()[0]}},{key:"getText",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getLength()-t,n=s(t,e),r=f(n,2);return t=r[0],e=r[1],this.editor.getText(t,e)}},{key:"hasFocus",value:function(){return this.selection.hasFocus()}},{key:"insertEmbed",value:function(e,n,r){var o=this,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:t.sources.API;return a.call(this,function(){return o.editor.insertEmbed(e,n,r)},i,e)}},{key:"insertText",value:function(t,e,n,r,o){var i=this,l=void 0,u=s(t,0,n,r,o),c=f(u,4);return t=c[0],l=c[2],o=c[3],a.call(this,function(){return i.editor.insertText(t,e,l)},o,t,e.length)}},{key:"isEnabled",value:function(){return!this.container.classList.contains("ql-disabled")}},{key:"off",value:function(){return this.emitter.off.apply(this.emitter,arguments)}},{key:"on",value:function(){return this.emitter.on.apply(this.emitter,arguments)}},{key:"once",value:function(){return this.emitter.once.apply(this.emitter,arguments)}},{key:"pasteHTML",value:function(t,e,n){this.clipboard.dangerouslyPasteHTML(t,e,n)}},{key:"removeFormat",value:function(t,e,n){var r=this,o=s(t,e,n),i=f(o,4);return t=i[0],e=i[1],n=i[3],a.call(this,function(){return r.editor.removeFormat(t,e)},n,t)}},{key:"scrollIntoView",value:function(){this.selection.scrollIntoView(this.scrollingContainer)}},{key:"setContents",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:g.default.sources.API;return a.call(this,function(){t=new d.default(t);var n=e.getLength(),r=e.editor.deleteText(0,n),o=e.editor.applyDelta(t),i=o.ops[o.ops.length-1];return null!=i&&"string"==typeof i.insert&&"\n"===i.insert[i.insert.length-1]&&(e.editor.deleteText(e.getLength()-1,1),o.delete(1)),r.compose(o)},n)}},{key:"setSelection",value:function(e,n,r){if(null==e)this.selection.setRange(null,n||t.sources.API);else{var o=s(e,n,r),i=f(o,4);e=i[0],n=i[1],r=i[3],this.selection.setRange(new x.Range(e,n),r),r!==g.default.sources.SILENT&&this.selection.scrollIntoView(this.scrollingContainer)}}},{key:"setText",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:g.default.sources.API,n=(new d.default).insert(t);return this.setContents(n,e)}},{key:"update",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:g.default.sources.USER,e=this.scroll.update(t);return this.selection.update(t),e}},{key:"updateContents",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:g.default.sources.API;return a.call(this,function(){return t=new d.default(t),e.editor.applyDelta(t,n)},n,!0)}}]),t}();S.DEFAULTS={bounds:null,formats:null,modules:{},placeholder:"",readOnly:!1,scrollingContainer:null,strict:!0,theme:"default"},S.events=g.default.events,S.sources=g.default.sources,S.version="1.3.7",S.imports={delta:d.default,parchment:w.default,"core/module":_.default,"core/theme":T.default},e.expandConfig=l,e.overload=s,e.default=S},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});var o=function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};r(this,t),this.quill=e,this.options=n};o.DEFAULTS={},e.default=o},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var l=n(0),a=function(t){return t&&t.__esModule?t:{default:t}}(l),s=function(t){function e(){return r(this,e),o(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return i(e,t),e}(a.default.Text);e.default=s},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function l(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var a=function(){function t(t,e){for(var n=0;n1?e-1:0),r=1;r1?n-1:0),o=1;o-1:this.whitelist.indexOf(e)>-1))},t.prototype.remove=function(t){t.removeAttribute(this.keyName)},t.prototype.value=function(t){var e=t.getAttribute(this.keyName);return this.canAdd(t,e)&&e?e:""},t}();e.default=o},function(t,e,n){function r(t){return null===t||void 0===t}function o(t){return!(!t||"object"!=typeof t||"number"!=typeof t.length)&&("function"==typeof t.copy&&"function"==typeof t.slice&&!(t.length>0&&"number"!=typeof t[0]))}function i(t,e,n){var i,c;if(r(t)||r(e))return!1;if(t.prototype!==e.prototype)return!1;if(s(t))return!!s(e)&&(t=l.call(t),e=l.call(e),u(t,e,n));if(o(t)){if(!o(e))return!1;if(t.length!==e.length)return!1;for(i=0;i=0;i--)if(f[i]!=h[i])return!1;for(i=f.length-1;i>=0;i--)if(c=f[i],!u(t[c],e[c],n))return!1;return typeof t==typeof e}var l=Array.prototype.slice,a=n(55),s=n(56),u=t.exports=function(t,e,n){return n||(n={}),t===e||(t instanceof Date&&e instanceof Date?t.getTime()===e.getTime():!t||!e||"object"!=typeof t&&"object"!=typeof e?n.strict?t===e:t==e:i(t,e,n))}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function l(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.Code=void 0;var a=function(){function t(t,e){var n=[],r=!0,o=!1,i=void 0;try{for(var l,a=t[Symbol.iterator]();!(r=(l=a.next()).done)&&(n.push(l.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{!r&&a.return&&a.return()}finally{if(o)throw i}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),s=function(){function t(t,e){for(var n=0;n=t+n)){var l=this.newlineIndex(t,!0)+1,a=i-l+1,s=this.isolate(l,a),u=s.next;s.format(r,o),u instanceof e&&u.formatAt(0,t-l+n-a,r,o)}}}},{key:"insertAt",value:function(t,e,n){if(null==n){var r=this.descendant(m.default,t),o=a(r,2),i=o[0],l=o[1];i.insertAt(l,e)}}},{key:"length",value:function(){var t=this.domNode.textContent.length;return this.domNode.textContent.endsWith("\n")?t:t+1}},{key:"newlineIndex",value:function(t){if(arguments.length>1&&void 0!==arguments[1]&&arguments[1])return this.domNode.textContent.slice(0,t).lastIndexOf("\n");var e=this.domNode.textContent.slice(t).indexOf("\n");return e>-1?t+e:-1}},{key:"optimize",value:function(t){this.domNode.textContent.endsWith("\n")||this.appendChild(p.default.create("text","\n")),u(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"optimize",this).call(this,t);var n=this.next;null!=n&&n.prev===this&&n.statics.blotName===this.statics.blotName&&this.statics.formats(this.domNode)===n.statics.formats(n.domNode)&&(n.optimize(t),n.moveChildren(this),n.remove())}},{key:"replace",value:function(t){u(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"replace",this).call(this,t),[].slice.call(this.domNode.querySelectorAll("*")).forEach(function(t){var e=p.default.find(t);null==e?t.parentNode.removeChild(t):e instanceof p.default.Embed?e.remove():e.unwrap()})}}],[{key:"create",value:function(t){var n=u(e.__proto__||Object.getPrototypeOf(e),"create",this).call(this,t);return n.setAttribute("spellcheck",!1),n}},{key:"formats",value:function(){return!0}}]),e}(y.default);O.blotName="code-block",O.tagName="PRE",O.TAB=" ",e.Code=_,e.default=O},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var l=function(){function t(t,e){for(var n=0;n-1}Object.defineProperty(e,"__esModule",{value:!0}),e.sanitize=e.default=void 0;var a=function(){function t(t,e){for(var n=0;n1&&void 0!==arguments[1]&&arguments[1],n=this.container.querySelector(".ql-selected");if(t!==n&&(null!=n&&n.classList.remove("ql-selected"),null!=t&&(t.classList.add("ql-selected"),this.select.selectedIndex=[].indexOf.call(t.parentNode.children,t),t.hasAttribute("data-value")?this.label.setAttribute("data-value",t.getAttribute("data-value")):this.label.removeAttribute("data-value"),t.hasAttribute("data-label")?this.label.setAttribute("data-label",t.getAttribute("data-label")):this.label.removeAttribute("data-label"),e))){if("function"==typeof Event)this.select.dispatchEvent(new Event("change"));else if("object"===("undefined"==typeof Event?"undefined":l(Event))){var r=document.createEvent("Event");r.initEvent("change",!0,!0),this.select.dispatchEvent(r)}this.close()}}},{key:"update",value:function(){var t=void 0;if(this.select.selectedIndex>-1){var e=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];t=this.select.options[this.select.selectedIndex],this.selectItem(e)}else this.selectItem(null);var n=null!=t&&t!==this.select.querySelector("option[selected]");this.label.classList.toggle("ql-active",n)}}]),t}();e.default=p},function(t,e,n){"use strict";function r(t){var e=a.find(t);if(null==e)try{e=a.create(t)}catch(n){e=a.create(a.Scope.INLINE),[].slice.call(t.childNodes).forEach(function(t){e.domNode.appendChild(t)}),t.parentNode&&t.parentNode.replaceChild(e.domNode,t),e.attach()}return e}var o=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var i=n(47),l=n(27),a=n(1),s=function(t){function e(e){var n=t.call(this,e)||this;return n.build(),n}return o(e,t),e.prototype.appendChild=function(t){this.insertBefore(t)},e.prototype.attach=function(){t.prototype.attach.call(this),this.children.forEach(function(t){t.attach()})},e.prototype.build=function(){var t=this;this.children=new i.default,[].slice.call(this.domNode.childNodes).reverse().forEach(function(e){try{var n=r(e);t.insertBefore(n,t.children.head||void 0)}catch(t){if(t instanceof a.ParchmentError)return;throw t}})},e.prototype.deleteAt=function(t,e){if(0===t&&e===this.length())return this.remove();this.children.forEachAt(t,e,function(t,e,n){t.deleteAt(e,n)})},e.prototype.descendant=function(t,n){var r=this.children.find(n),o=r[0],i=r[1];return null==t.blotName&&t(o)||null!=t.blotName&&o instanceof t?[o,i]:o instanceof e?o.descendant(t,i):[null,-1]},e.prototype.descendants=function(t,n,r){void 0===n&&(n=0),void 0===r&&(r=Number.MAX_VALUE);var o=[],i=r;return this.children.forEachAt(n,r,function(n,r,l){(null==t.blotName&&t(n)||null!=t.blotName&&n instanceof t)&&o.push(n),n instanceof e&&(o=o.concat(n.descendants(t,r,i))),i-=l}),o},e.prototype.detach=function(){this.children.forEach(function(t){t.detach()}),t.prototype.detach.call(this)},e.prototype.formatAt=function(t,e,n,r){this.children.forEachAt(t,e,function(t,e,o){t.formatAt(e,o,n,r)})},e.prototype.insertAt=function(t,e,n){var r=this.children.find(t),o=r[0],i=r[1];if(o)o.insertAt(i,e,n);else{var l=null==n?a.create("text",e):a.create(e,n);this.appendChild(l)}},e.prototype.insertBefore=function(t,e){if(null!=this.statics.allowedChildren&&!this.statics.allowedChildren.some(function(e){return t instanceof e}))throw new a.ParchmentError("Cannot insert "+t.statics.blotName+" into "+this.statics.blotName);t.insertInto(this,e)},e.prototype.length=function(){return this.children.reduce(function(t,e){return t+e.length()},0)},e.prototype.moveChildren=function(t,e){this.children.forEach(function(n){t.insertBefore(n,e)})},e.prototype.optimize=function(e){if(t.prototype.optimize.call(this,e),0===this.children.length)if(null!=this.statics.defaultChild){var n=a.create(this.statics.defaultChild);this.appendChild(n),n.optimize(e)}else this.remove()},e.prototype.path=function(t,n){void 0===n&&(n=!1);var r=this.children.find(t,n),o=r[0],i=r[1],l=[[this,t]];return o instanceof e?l.concat(o.path(i,n)):(null!=o&&l.push([o,i]),l)},e.prototype.removeChild=function(t){this.children.remove(t)},e.prototype.replace=function(n){n instanceof e&&n.moveChildren(this),t.prototype.replace.call(this,n)},e.prototype.split=function(t,e){if(void 0===e&&(e=!1),!e){if(0===t)return this;if(t===this.length())return this.next}var n=this.clone();return this.parent.insertBefore(n,this.next),this.children.forEachAt(t,this.length(),function(t,r,o){t=t.split(r,e),n.appendChild(t)}),n},e.prototype.unwrap=function(){this.moveChildren(this.parent,this.next),this.remove()},e.prototype.update=function(t,e){var n=this,o=[],i=[];t.forEach(function(t){t.target===n.domNode&&"childList"===t.type&&(o.push.apply(o,t.addedNodes),i.push.apply(i,t.removedNodes))}),i.forEach(function(t){if(!(null!=t.parentNode&&"IFRAME"!==t.tagName&&document.body.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)){var e=a.find(t);null!=e&&(null!=e.domNode.parentNode&&e.domNode.parentNode!==n.domNode||e.detach())}}),o.filter(function(t){return t.parentNode==n.domNode}).sort(function(t,e){return t===e?0:t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1}).forEach(function(t){var e=null;null!=t.nextSibling&&(e=a.find(t.nextSibling));var o=r(t);o.next==e&&null!=o.next||(null!=o.parent&&o.parent.removeChild(n),n.insertBefore(o,e||void 0))})},e}(l.default);e.default=s},function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(11),i=n(28),l=n(17),a=n(1),s=function(t){function e(e){var n=t.call(this,e)||this;return n.attributes=new i.default(n.domNode),n}return r(e,t),e.formats=function(t){return"string"==typeof this.tagName||(Array.isArray(this.tagName)?t.tagName.toLowerCase():void 0)},e.prototype.format=function(t,e){var n=a.query(t);n instanceof o.default?this.attributes.attribute(n,e):e&&(null==n||t===this.statics.blotName&&this.formats()[t]===e||this.replaceWith(t,e))},e.prototype.formats=function(){var t=this.attributes.values(),e=this.statics.formats(this.domNode);return null!=e&&(t[this.statics.blotName]=e),t},e.prototype.replaceWith=function(e,n){var r=t.prototype.replaceWith.call(this,e,n);return this.attributes.copy(r),r},e.prototype.update=function(e,n){var r=this;t.prototype.update.call(this,e,n),e.some(function(t){return t.target===r.domNode&&"attributes"===t.type})&&this.attributes.build()},e.prototype.wrap=function(n,r){var o=t.prototype.wrap.call(this,n,r);return o instanceof e&&o.statics.scope===this.statics.scope&&this.attributes.move(o),o},e}(l.default);e.default=s},function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(27),i=n(1),l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.value=function(t){return!0},e.prototype.index=function(t,e){return this.domNode===t||this.domNode.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(e,1):-1},e.prototype.position=function(t,e){var n=[].indexOf.call(this.parent.domNode.childNodes,this.domNode);return t>0&&(n+=1),[this.parent.domNode,n]},e.prototype.value=function(){var t;return t={},t[this.statics.blotName]=this.statics.value(this.domNode)||!0,t},e.scope=i.Scope.INLINE_BLOT,e}(o.default);e.default=l},function(t,e,n){function r(t){this.ops=t,this.index=0,this.offset=0}var o=n(12),i=n(2),l={attributes:{compose:function(t,e,n){"object"!=typeof t&&(t={}),"object"!=typeof e&&(e={});var r=i(!0,{},e);n||(r=Object.keys(r).reduce(function(t,e){return null!=r[e]&&(t[e]=r[e]),t},{}));for(var o in t)void 0!==t[o]&&void 0===e[o]&&(r[o]=t[o]);return Object.keys(r).length>0?r:void 0},diff:function(t,e){"object"!=typeof t&&(t={}),"object"!=typeof e&&(e={});var n=Object.keys(t).concat(Object.keys(e)).reduce(function(n,r){return o(t[r],e[r])||(n[r]=void 0===e[r]?null:e[r]),n},{});return Object.keys(n).length>0?n:void 0},transform:function(t,e,n){if("object"!=typeof t)return e;if("object"==typeof e){if(!n)return e;var r=Object.keys(e).reduce(function(n,r){return void 0===t[r]&&(n[r]=e[r]),n},{});return Object.keys(r).length>0?r:void 0}}},iterator:function(t){return new r(t)},length:function(t){return"number"==typeof t.delete?t.delete:"number"==typeof t.retain?t.retain:"string"==typeof t.insert?t.insert.length:1}};r.prototype.hasNext=function(){return this.peekLength()<1/0},r.prototype.next=function(t){t||(t=1/0);var e=this.ops[this.index];if(e){var n=this.offset,r=l.length(e);if(t>=r-n?(t=r-n,this.index+=1,this.offset=0):this.offset+=t,"number"==typeof e.delete)return{delete:t};var o={};return e.attributes&&(o.attributes=e.attributes),"number"==typeof e.retain?o.retain=t:"string"==typeof e.insert?o.insert=e.insert.substr(n,t):o.insert=e.insert,o}return{retain:1/0}},r.prototype.peek=function(){return this.ops[this.index]},r.prototype.peekLength=function(){return this.ops[this.index]?l.length(this.ops[this.index])-this.offset:1/0},r.prototype.peekType=function(){return this.ops[this.index]?"number"==typeof this.ops[this.index].delete?"delete":"number"==typeof this.ops[this.index].retain?"retain":"insert":"retain"},r.prototype.rest=function(){if(this.hasNext()){if(0===this.offset)return this.ops.slice(this.index);var t=this.offset,e=this.index,n=this.next(),r=this.ops.slice(this.index);return this.offset=t,this.index=e,[n].concat(r)}return[]},t.exports=l},function(t,e){var n=function(){"use strict";function t(t,e){return null!=e&&t instanceof e}function e(n,r,o,i,c){function f(n,o){if(null===n)return null;if(0===o)return n;var y,v;if("object"!=typeof n)return n;if(t(n,a))y=new a;else if(t(n,s))y=new s;else if(t(n,u))y=new u(function(t,e){n.then(function(e){t(f(e,o-1))},function(t){e(f(t,o-1))})});else if(e.__isArray(n))y=[];else if(e.__isRegExp(n))y=new RegExp(n.source,l(n)),n.lastIndex&&(y.lastIndex=n.lastIndex);else if(e.__isDate(n))y=new Date(n.getTime());else{if(d&&Buffer.isBuffer(n))return y=Buffer.allocUnsafe?Buffer.allocUnsafe(n.length):new Buffer(n.length),n.copy(y),y;t(n,Error)?y=Object.create(n):void 0===i?(v=Object.getPrototypeOf(n),y=Object.create(v)):(y=Object.create(i),v=i)}if(r){var b=h.indexOf(n);if(-1!=b)return p[b];h.push(n),p.push(y)}t(n,a)&&n.forEach(function(t,e){var n=f(e,o-1),r=f(t,o-1);y.set(n,r)}),t(n,s)&&n.forEach(function(t){var e=f(t,o-1);y.add(e)});for(var g in n){var m;v&&(m=Object.getOwnPropertyDescriptor(v,g)),m&&null==m.set||(y[g]=f(n[g],o-1))}if(Object.getOwnPropertySymbols)for(var _=Object.getOwnPropertySymbols(n),g=0;g<_.length;g++){var O=_[g],w=Object.getOwnPropertyDescriptor(n,O);(!w||w.enumerable||c)&&(y[O]=f(n[O],o-1),w.enumerable||Object.defineProperty(y,O,{enumerable:!1}))}if(c)for(var x=Object.getOwnPropertyNames(n),g=0;g1&&void 0!==arguments[1]?arguments[1]:0;i(this,t),this.index=e,this.length=n},O=function(){function t(e,n){var r=this;i(this,t),this.emitter=n,this.scroll=e,this.composing=!1,this.mouseDown=!1,this.root=this.scroll.domNode,this.cursor=c.default.create("cursor",this),this.lastRange=this.savedRange=new _(0,0),this.handleComposition(),this.handleDragging(),this.emitter.listenDOM("selectionchange",document,function(){r.mouseDown||setTimeout(r.update.bind(r,v.default.sources.USER),1)}),this.emitter.on(v.default.events.EDITOR_CHANGE,function(t,e){t===v.default.events.TEXT_CHANGE&&e.length()>0&&r.update(v.default.sources.SILENT)}),this.emitter.on(v.default.events.SCROLL_BEFORE_UPDATE,function(){if(r.hasFocus()){var t=r.getNativeRange();null!=t&&t.start.node!==r.cursor.textNode&&r.emitter.once(v.default.events.SCROLL_UPDATE,function(){try{r.setNativeRange(t.start.node,t.start.offset,t.end.node,t.end.offset)}catch(t){}})}}),this.emitter.on(v.default.events.SCROLL_OPTIMIZE,function(t,e){if(e.range){var n=e.range,o=n.startNode,i=n.startOffset,l=n.endNode,a=n.endOffset;r.setNativeRange(o,i,l,a)}}),this.update(v.default.sources.SILENT)}return s(t,[{key:"handleComposition",value:function(){var t=this;this.root.addEventListener("compositionstart",function(){t.composing=!0}),this.root.addEventListener("compositionend",function(){if(t.composing=!1,t.cursor.parent){var e=t.cursor.restore();if(!e)return;setTimeout(function(){t.setNativeRange(e.startNode,e.startOffset,e.endNode,e.endOffset)},1)}})}},{key:"handleDragging",value:function(){var t=this;this.emitter.listenDOM("mousedown",document.body,function(){t.mouseDown=!0}),this.emitter.listenDOM("mouseup",document.body,function(){t.mouseDown=!1,t.update(v.default.sources.USER)})}},{key:"focus",value:function(){this.hasFocus()||(this.root.focus(),this.setRange(this.savedRange))}},{key:"format",value:function(t,e){if(null==this.scroll.whitelist||this.scroll.whitelist[t]){this.scroll.update();var n=this.getNativeRange();if(null!=n&&n.native.collapsed&&!c.default.query(t,c.default.Scope.BLOCK)){if(n.start.node!==this.cursor.textNode){var r=c.default.find(n.start.node,!1);if(null==r)return;if(r instanceof c.default.Leaf){var o=r.split(n.start.offset);r.parent.insertBefore(this.cursor,o)}else r.insertBefore(this.cursor,n.start.node);this.cursor.attach()}this.cursor.format(t,e),this.scroll.optimize(),this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length),this.update()}}}},{key:"getBounds",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=this.scroll.length();t=Math.min(t,n-1),e=Math.min(t+e,n-1)-t;var r=void 0,o=this.scroll.leaf(t),i=a(o,2),l=i[0],s=i[1];if(null==l)return null;var u=l.position(s,!0),c=a(u,2);r=c[0],s=c[1];var f=document.createRange();if(e>0){f.setStart(r,s);var h=this.scroll.leaf(t+e),p=a(h,2);if(l=p[0],s=p[1],null==l)return null;var d=l.position(s,!0),y=a(d,2);return r=y[0],s=y[1],f.setEnd(r,s),f.getBoundingClientRect()}var v="left",b=void 0;return r instanceof Text?(s0&&(v="right")),{bottom:b.top+b.height,height:b.height,left:b[v],right:b[v],top:b.top,width:0}}},{key:"getNativeRange",value:function(){var t=document.getSelection();if(null==t||t.rangeCount<=0)return null;var e=t.getRangeAt(0);if(null==e)return null;var n=this.normalizeNative(e);return m.info("getNativeRange",n),n}},{key:"getRange",value:function(){var t=this.getNativeRange();return null==t?[null,null]:[this.normalizedToRange(t),t]}},{key:"hasFocus",value:function(){return document.activeElement===this.root}},{key:"normalizedToRange",value:function(t){var e=this,n=[[t.start.node,t.start.offset]];t.native.collapsed||n.push([t.end.node,t.end.offset]);var r=n.map(function(t){var n=a(t,2),r=n[0],o=n[1],i=c.default.find(r,!0),l=i.offset(e.scroll);return 0===o?l:i instanceof c.default.Container?l+i.length():l+i.index(r,o)}),i=Math.min(Math.max.apply(Math,o(r)),this.scroll.length()-1),l=Math.min.apply(Math,[i].concat(o(r)));return new _(l,i-l)}},{key:"normalizeNative",value:function(t){if(!l(this.root,t.startContainer)||!t.collapsed&&!l(this.root,t.endContainer))return null;var e={start:{node:t.startContainer,offset:t.startOffset},end:{node:t.endContainer,offset:t.endOffset},native:t};return[e.start,e.end].forEach(function(t){for(var e=t.node,n=t.offset;!(e instanceof Text)&&e.childNodes.length>0;)if(e.childNodes.length>n)e=e.childNodes[n],n=0;else{if(e.childNodes.length!==n)break;e=e.lastChild,n=e instanceof Text?e.data.length:e.childNodes.length+1}t.node=e,t.offset=n}),e}},{key:"rangeToNative",value:function(t){var e=this,n=t.collapsed?[t.index]:[t.index,t.index+t.length],r=[],o=this.scroll.length();return n.forEach(function(t,n){t=Math.min(o-1,t);var i=void 0,l=e.scroll.leaf(t),s=a(l,2),u=s[0],c=s[1],f=u.position(c,0!==n),h=a(f,2);i=h[0],c=h[1],r.push(i,c)}),r.length<2&&(r=r.concat(r)),r}},{key:"scrollIntoView",value:function(t){var e=this.lastRange;if(null!=e){var n=this.getBounds(e.index,e.length);if(null!=n){var r=this.scroll.length()-1,o=this.scroll.line(Math.min(e.index,r)),i=a(o,1),l=i[0],s=l;if(e.length>0){var u=this.scroll.line(Math.min(e.index+e.length,r));s=a(u,1)[0]}if(null!=l&&null!=s){var c=t.getBoundingClientRect();n.topc.bottom&&(t.scrollTop+=n.bottom-c.bottom)}}}}},{key:"setNativeRange",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e,o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(m.info("setNativeRange",t,e,n,r),null==t||null!=this.root.parentNode&&null!=t.parentNode&&null!=n.parentNode){var i=document.getSelection();if(null!=i)if(null!=t){this.hasFocus()||this.root.focus();var l=(this.getNativeRange()||{}).native;if(null==l||o||t!==l.startContainer||e!==l.startOffset||n!==l.endContainer||r!==l.endOffset){"BR"==t.tagName&&(e=[].indexOf.call(t.parentNode.childNodes,t),t=t.parentNode),"BR"==n.tagName&&(r=[].indexOf.call(n.parentNode.childNodes,n),n=n.parentNode);var a=document.createRange();a.setStart(t,e),a.setEnd(n,r),i.removeAllRanges(),i.addRange(a)}}else i.removeAllRanges(),this.root.blur(),document.body.focus()}}},{key:"setRange",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:v.default.sources.API;if("string"==typeof e&&(n=e,e=!1),m.info("setRange",t),null!=t){var r=this.rangeToNative(t);this.setNativeRange.apply(this,o(r).concat([e]))}else this.setNativeRange(null);this.update(n)}},{key:"update",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:v.default.sources.USER,e=this.lastRange,n=this.getRange(),r=a(n,2),o=r[0],i=r[1];if(this.lastRange=o,null!=this.lastRange&&(this.savedRange=this.lastRange),!(0,d.default)(e,this.lastRange)){var l;!this.composing&&null!=i&&i.native.collapsed&&i.start.node!==this.cursor.textNode&&this.cursor.restore();var s=[v.default.events.SELECTION_CHANGE,(0,h.default)(this.lastRange),(0,h.default)(e),t];if((l=this.emitter).emit.apply(l,[v.default.events.EDITOR_CHANGE].concat(s)),t!==v.default.sources.SILENT){var u;(u=this.emitter).emit.apply(u,s)}}}}]),t}();e.Range=_,e.default=O},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function l(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var a=n(0),s=r(a),u=n(3),c=r(u),f=function(t){function e(){return o(this,e),i(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return l(e,t),e}(s.default.Container);f.allowedChildren=[c.default,u.BlockEmbed,f],e.default=f},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0}),e.ColorStyle=e.ColorClass=e.ColorAttributor=void 0;var l=function(){function t(t,e){for(var n=0;n1){var u=o.formats(),c=this.quill.getFormat(t.index-1,1);i=A.default.attributes.diff(u,c)||{}}}var f=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(e.prefix)?2:1;this.quill.deleteText(t.index-f,f,S.default.sources.USER),Object.keys(i).length>0&&this.quill.formatLine(t.index-f,f,i,S.default.sources.USER),this.quill.focus()}}function c(t,e){var n=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(e.suffix)?2:1;if(!(t.index>=this.quill.getLength()-n)){var r={},o=0,i=this.quill.getLine(t.index),l=b(i,1),a=l[0];if(e.offset>=a.length()-1){var s=this.quill.getLine(t.index+1),u=b(s,1),c=u[0];if(c){var f=a.formats(),h=this.quill.getFormat(t.index,1);r=A.default.attributes.diff(f,h)||{},o=c.length()}}this.quill.deleteText(t.index,n,S.default.sources.USER),Object.keys(r).length>0&&this.quill.formatLine(t.index+o-1,n,r,S.default.sources.USER)}}function f(t){var e=this.quill.getLines(t),n={};if(e.length>1){var r=e[0].formats(),o=e[e.length-1].formats();n=A.default.attributes.diff(o,r)||{}}this.quill.deleteText(t,S.default.sources.USER),Object.keys(n).length>0&&this.quill.formatLine(t.index,1,n,S.default.sources.USER),this.quill.setSelection(t.index,S.default.sources.SILENT),this.quill.focus()}function h(t,e){var n=this;t.length>0&&this.quill.scroll.deleteAt(t.index,t.length);var r=Object.keys(e.format).reduce(function(t,n){return T.default.query(n,T.default.Scope.BLOCK)&&!Array.isArray(e.format[n])&&(t[n]=e.format[n]),t},{});this.quill.insertText(t.index,"\n",r,S.default.sources.USER),this.quill.setSelection(t.index+1,S.default.sources.SILENT),this.quill.focus(),Object.keys(e.format).forEach(function(t){null==r[t]&&(Array.isArray(e.format[t])||"link"!==t&&n.quill.format(t,e.format[t],S.default.sources.USER))})}function p(t){return{key:D.keys.TAB,shiftKey:!t,format:{"code-block":!0},handler:function(e){var n=T.default.query("code-block"),r=e.index,o=e.length,i=this.quill.scroll.descendant(n,r),l=b(i,2),a=l[0],s=l[1];if(null!=a){var u=this.quill.getIndex(a),c=a.newlineIndex(s,!0)+1,f=a.newlineIndex(u+s+o),h=a.domNode.textContent.slice(c,f).split("\n");s=0,h.forEach(function(e,i){t?(a.insertAt(c+s,n.TAB),s+=n.TAB.length,0===i?r+=n.TAB.length:o+=n.TAB.length):e.startsWith(n.TAB)&&(a.deleteAt(c+s,n.TAB.length),s-=n.TAB.length,0===i?r-=n.TAB.length:o-=n.TAB.length),s+=e.length+1}),this.quill.update(S.default.sources.USER),this.quill.setSelection(r,o,S.default.sources.SILENT)}}}}function d(t){return{key:t[0].toUpperCase(),shortKey:!0,handler:function(e,n){this.quill.format(t,!n.format[t],S.default.sources.USER)}}}function y(t){if("string"==typeof t||"number"==typeof t)return y({key:t});if("object"===(void 0===t?"undefined":v(t))&&(t=(0,_.default)(t,!1)),"string"==typeof t.key)if(null!=D.keys[t.key.toUpperCase()])t.key=D.keys[t.key.toUpperCase()];else{if(1!==t.key.length)return null;t.key=t.key.toUpperCase().charCodeAt(0)}return t.shortKey&&(t[B]=t.shortKey,delete t.shortKey),t}Object.defineProperty(e,"__esModule",{value:!0}),e.SHORTKEY=e.default=void 0;var v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},b=function(){function t(t,e){var n=[],r=!0,o=!1,i=void 0;try{for(var l,a=t[Symbol.iterator]();!(r=(l=a.next()).done)&&(n.push(l.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{!r&&a.return&&a.return()}finally{if(o)throw i}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),g=function(){function t(t,e){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=y(t);if(null==r||null==r.key)return I.warn("Attempted to add invalid keyboard binding",r);"function"==typeof e&&(e={handler:e}),"function"==typeof n&&(n={handler:n}),r=(0,k.default)(r,e,n),this.bindings[r.key]=this.bindings[r.key]||[],this.bindings[r.key].push(r)}},{key:"listen",value:function(){var t=this;this.quill.root.addEventListener("keydown",function(n){if(!n.defaultPrevented){var r=n.which||n.keyCode,o=(t.bindings[r]||[]).filter(function(t){return e.match(n,t)});if(0!==o.length){var i=t.quill.getSelection();if(null!=i&&t.quill.hasFocus()){var l=t.quill.getLine(i.index),a=b(l,2),s=a[0],u=a[1],c=t.quill.getLeaf(i.index),f=b(c,2),h=f[0],p=f[1],d=0===i.length?[h,p]:t.quill.getLeaf(i.index+i.length),y=b(d,2),g=y[0],m=y[1],_=h instanceof T.default.Text?h.value().slice(0,p):"",O=g instanceof T.default.Text?g.value().slice(m):"",x={collapsed:0===i.length,empty:0===i.length&&s.length()<=1,format:t.quill.getFormat(i),offset:u,prefix:_,suffix:O};o.some(function(e){if(null!=e.collapsed&&e.collapsed!==x.collapsed)return!1;if(null!=e.empty&&e.empty!==x.empty)return!1;if(null!=e.offset&&e.offset!==x.offset)return!1;if(Array.isArray(e.format)){if(e.format.every(function(t){return null==x.format[t]}))return!1}else if("object"===v(e.format)&&!Object.keys(e.format).every(function(t){return!0===e.format[t]?null!=x.format[t]:!1===e.format[t]?null==x.format[t]:(0,w.default)(e.format[t],x.format[t])}))return!1;return!(null!=e.prefix&&!e.prefix.test(x.prefix))&&(!(null!=e.suffix&&!e.suffix.test(x.suffix))&&!0!==e.handler.call(t,i,x))})&&n.preventDefault()}}}})}}]),e}(R.default);D.keys={BACKSPACE:8,TAB:9,ENTER:13,ESCAPE:27,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46},D.DEFAULTS={bindings:{bold:d("bold"),italic:d("italic"),underline:d("underline"),indent:{key:D.keys.TAB,format:["blockquote","indent","list"],handler:function(t,e){if(e.collapsed&&0!==e.offset)return!0;this.quill.format("indent","+1",S.default.sources.USER)}},outdent:{key:D.keys.TAB,shiftKey:!0,format:["blockquote","indent","list"],handler:function(t,e){if(e.collapsed&&0!==e.offset)return!0;this.quill.format("indent","-1",S.default.sources.USER)}},"outdent backspace":{key:D.keys.BACKSPACE,collapsed:!0,shiftKey:null,metaKey:null,ctrlKey:null,altKey:null,format:["indent","list"],offset:0,handler:function(t,e){null!=e.format.indent?this.quill.format("indent","-1",S.default.sources.USER):null!=e.format.list&&this.quill.format("list",!1,S.default.sources.USER)}},"indent code-block":p(!0),"outdent code-block":p(!1),"remove tab":{key:D.keys.TAB,shiftKey:!0,collapsed:!0,prefix:/\t$/,handler:function(t){this.quill.deleteText(t.index-1,1,S.default.sources.USER)}},tab:{key:D.keys.TAB,handler:function(t){this.quill.history.cutoff();var e=(new N.default).retain(t.index).delete(t.length).insert("\t");this.quill.updateContents(e,S.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(t.index+1,S.default.sources.SILENT)}},"list empty enter":{key:D.keys.ENTER,collapsed:!0,format:["list"],empty:!0,handler:function(t,e){this.quill.format("list",!1,S.default.sources.USER),e.format.indent&&this.quill.format("indent",!1,S.default.sources.USER)}},"checklist enter":{key:D.keys.ENTER,collapsed:!0,format:{list:"checked"},handler:function(t){var e=this.quill.getLine(t.index),n=b(e,2),r=n[0],o=n[1],i=(0,k.default)({},r.formats(),{list:"checked"}),l=(new N.default).retain(t.index).insert("\n",i).retain(r.length()-o-1).retain(1,{list:"unchecked"});this.quill.updateContents(l,S.default.sources.USER),this.quill.setSelection(t.index+1,S.default.sources.SILENT),this.quill.scrollIntoView()}},"header enter":{key:D.keys.ENTER,collapsed:!0,format:["header"],suffix:/^$/,handler:function(t,e){var n=this.quill.getLine(t.index),r=b(n,2),o=r[0],i=r[1],l=(new N.default).retain(t.index).insert("\n",e.format).retain(o.length()-i-1).retain(1,{header:null});this.quill.updateContents(l,S.default.sources.USER),this.quill.setSelection(t.index+1,S.default.sources.SILENT),this.quill.scrollIntoView()}},"list autofill":{key:" ",collapsed:!0,format:{list:!1},prefix:/^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,handler:function(t,e){var n=e.prefix.length,r=this.quill.getLine(t.index),o=b(r,2),i=o[0],l=o[1];if(l>n)return!0;var a=void 0;switch(e.prefix.trim()){case"[]":case"[ ]":a="unchecked";break;case"[x]":a="checked";break;case"-":case"*":a="bullet";break;default:a="ordered"}this.quill.insertText(t.index," ",S.default.sources.USER),this.quill.history.cutoff();var s=(new N.default).retain(t.index-l).delete(n+1).retain(i.length()-2-l).retain(1,{list:a});this.quill.updateContents(s,S.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(t.index-n,S.default.sources.SILENT)}},"code exit":{key:D.keys.ENTER,collapsed:!0,format:["code-block"],prefix:/\n\n$/,suffix:/^\s+$/,handler:function(t){var e=this.quill.getLine(t.index),n=b(e,2),r=n[0],o=n[1],i=(new N.default).retain(t.index+r.length()-o-2).retain(1,{"code-block":null}).delete(1);this.quill.updateContents(i,S.default.sources.USER)}},"embed left":s(D.keys.LEFT,!1),"embed left shift":s(D.keys.LEFT,!0),"embed right":s(D.keys.RIGHT,!1),"embed right shift":s(D.keys.RIGHT,!0)}},e.default=D,e.SHORTKEY=B},function(t,e,n){"use strict";t.exports={align:{"":n(75),center:n(76),right:n(77),justify:n(78)},background:n(79),blockquote:n(80),bold:n(81),clean:n(82),code:n(40),"code-block":n(40),color:n(83),direction:{"":n(84),rtl:n(85)},float:{center:n(86),full:n(87),left:n(88),right:n(89)},formula:n(90),header:{1:n(91),2:n(92)},italic:n(93),image:n(94),indent:{"+1":n(95),"-1":n(96)},link:n(97),list:{ordered:n(98),bullet:n(99),check:n(100)},script:{sub:n(101),super:n(102)},strike:n(103),underline:n(104),video:n(105)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),o=function(){function t(t){this.domNode=t,this.domNode[r.DATA_KEY]={blot:this}}return Object.defineProperty(t.prototype,"statics",{get:function(){return this.constructor},enumerable:!0,configurable:!0}),t.create=function(t){if(null==this.tagName)throw new r.ParchmentError("Blot definition missing tagName");var e;return Array.isArray(this.tagName)?("string"==typeof t&&(t=t.toUpperCase(),parseInt(t).toString()===t&&(t=parseInt(t))),e="number"==typeof t?document.createElement(this.tagName[t-1]):this.tagName.indexOf(t)>-1?document.createElement(t):document.createElement(this.tagName[0])):e=document.createElement(this.tagName),this.className&&e.classList.add(this.className),e},t.prototype.attach=function(){null!=this.parent&&(this.scroll=this.parent.scroll)},t.prototype.clone=function(){var t=this.domNode.cloneNode(!1);return r.create(t)},t.prototype.detach=function(){null!=this.parent&&this.parent.removeChild(this),delete this.domNode[r.DATA_KEY]},t.prototype.deleteAt=function(t,e){this.isolate(t,e).remove()},t.prototype.formatAt=function(t,e,n,o){var i=this.isolate(t,e);if(null!=r.query(n,r.Scope.BLOT)&&o)i.wrap(n,o);else if(null!=r.query(n,r.Scope.ATTRIBUTE)){var l=r.create(this.statics.scope);i.wrap(l),l.format(n,o)}},t.prototype.insertAt=function(t,e,n){var o=null==n?r.create("text",e):r.create(e,n),i=this.split(t);this.parent.insertBefore(o,i)},t.prototype.insertInto=function(t,e){void 0===e&&(e=null),null!=this.parent&&this.parent.children.remove(this);var n=null;t.children.insertBefore(this,e),null!=e&&(n=e.domNode),this.domNode.parentNode==t.domNode&&this.domNode.nextSibling==n||t.domNode.insertBefore(this.domNode,n),this.parent=t,this.attach()},t.prototype.isolate=function(t,e){var n=this.split(t);return n.split(e),n},t.prototype.length=function(){return 1},t.prototype.offset=function(t){return void 0===t&&(t=this.parent),null==this.parent||this==t?0:this.parent.children.offset(this)+this.parent.offset(t)},t.prototype.optimize=function(t){null!=this.domNode[r.DATA_KEY]&&delete this.domNode[r.DATA_KEY].mutations},t.prototype.remove=function(){null!=this.domNode.parentNode&&this.domNode.parentNode.removeChild(this.domNode),this.detach()},t.prototype.replace=function(t){null!=t.parent&&(t.parent.insertBefore(this,t.next),t.remove())},t.prototype.replaceWith=function(t,e){var n="string"==typeof t?r.create(t,e):t;return n.replace(this),n},t.prototype.split=function(t,e){return 0===t?this:this.next},t.prototype.update=function(t,e){},t.prototype.wrap=function(t,e){var n="string"==typeof t?r.create(t,e):t;return null!=this.parent&&this.parent.insertBefore(n,this.next),n.appendChild(this),n},t.blotName="abstract",t}();e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(11),o=n(29),i=n(30),l=n(1),a=function(){function t(t){this.attributes={},this.domNode=t,this.build()}return t.prototype.attribute=function(t,e){e?t.add(this.domNode,e)&&(null!=t.value(this.domNode)?this.attributes[t.attrName]=t:delete this.attributes[t.attrName]):(t.remove(this.domNode),delete this.attributes[t.attrName])},t.prototype.build=function(){var t=this;this.attributes={};var e=r.default.keys(this.domNode),n=o.default.keys(this.domNode),a=i.default.keys(this.domNode);e.concat(n).concat(a).forEach(function(e){var n=l.query(e,l.Scope.ATTRIBUTE);n instanceof r.default&&(t.attributes[n.attrName]=n)})},t.prototype.copy=function(t){var e=this;Object.keys(this.attributes).forEach(function(n){var r=e.attributes[n].value(e.domNode);t.format(n,r)})},t.prototype.move=function(t){var e=this;this.copy(t),Object.keys(this.attributes).forEach(function(t){e.attributes[t].remove(e.domNode)}),this.attributes={}},t.prototype.values=function(){var t=this;return Object.keys(this.attributes).reduce(function(e,n){return e[n]=t.attributes[n].value(t.domNode),e},{})},t}();e.default=a},function(t,e,n){"use strict";function r(t,e){return(t.getAttribute("class")||"").split(/\s+/).filter(function(t){return 0===t.indexOf(e+"-")})}var o=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var i=n(11),l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.keys=function(t){return(t.getAttribute("class")||"").split(/\s+/).map(function(t){return t.split("-").slice(0,-1).join("-")})},e.prototype.add=function(t,e){return!!this.canAdd(t,e)&&(this.remove(t),t.classList.add(this.keyName+"-"+e),!0)},e.prototype.remove=function(t){r(t,this.keyName).forEach(function(e){t.classList.remove(e)}),0===t.classList.length&&t.removeAttribute("class")},e.prototype.value=function(t){var e=r(t,this.keyName)[0]||"",n=e.slice(this.keyName.length+1);return this.canAdd(t,n)?n:""},e}(i.default);e.default=l},function(t,e,n){"use strict";function r(t){var e=t.split("-"),n=e.slice(1).map(function(t){return t[0].toUpperCase()+t.slice(1)}).join("");return e[0]+n}var o=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var i=n(11),l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.keys=function(t){return(t.getAttribute("style")||"").split(";").map(function(t){return t.split(":")[0].trim()})},e.prototype.add=function(t,e){return!!this.canAdd(t,e)&&(t.style[r(this.keyName)]=e,!0)},e.prototype.remove=function(t){t.style[r(this.keyName)]="",t.getAttribute("style")||t.removeAttribute("style")},e.prototype.value=function(t){var e=t.style[r(this.keyName)];return this.canAdd(t,e)?e:""},e}(i.default);e.default=l},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function l(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var a=function(){function t(t,e){var n=[],r=!0,o=!1,i=void 0;try{for(var l,a=t[Symbol.iterator]();!(r=(l=a.next()).done)&&(n.push(l.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{!r&&a.return&&a.return()}finally{if(o)throw i}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),s=function t(e,n,r){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,n);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,r)}if("value"in o)return o.value;var l=o.get;if(void 0!==l)return l.call(r)},u=function(){function t(t,e){for(var n=0;n '},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var l=function(){function t(t,e){for(var n=0;nr.right&&(i=r.right-o.right,this.root.style.left=e+i+"px"),o.leftr.bottom){var l=o.bottom-o.top,a=t.bottom-t.top+l;this.root.style.top=n-a+"px",this.root.classList.add("ql-flip")}return i}},{key:"show",value:function(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}}]),t}();e.default=i},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function l(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function a(t){var e=t.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||t.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);return e?(e[1]||"https")+"://www.youtube.com/embed/"+e[2]+"?showinfo=0":(e=t.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))?(e[1]||"https")+"://player.vimeo.com/video/"+e[2]+"/":t}function s(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];e.forEach(function(e){var r=document.createElement("option");e===n?r.setAttribute("selected","selected"):r.setAttribute("value",e),t.appendChild(r)})}Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.BaseTooltip=void 0;var u=function(){function t(t,e){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:"link",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.root.classList.remove("ql-hidden"),this.root.classList.add("ql-editing"),null!=e?this.textbox.value=e:t!==this.root.getAttribute("data-mode")&&(this.textbox.value=""),this.position(this.quill.getBounds(this.quill.selection.savedRange)),this.textbox.select(),this.textbox.setAttribute("placeholder",this.textbox.getAttribute("data-"+t)||""),this.root.setAttribute("data-mode",t)}},{key:"restoreFocus",value:function(){var t=this.quill.scrollingContainer.scrollTop;this.quill.focus(),this.quill.scrollingContainer.scrollTop=t}},{key:"save",value:function(){var t=this.textbox.value;switch(this.root.getAttribute("data-mode")){case"link":var e=this.quill.root.scrollTop;this.linkRange?(this.quill.formatText(this.linkRange,"link",t,v.default.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",t,v.default.sources.USER)),this.quill.root.scrollTop=e;break;case"video":t=a(t);case"formula":if(!t)break;var n=this.quill.getSelection(!0);if(null!=n){var r=n.index+n.length;this.quill.insertEmbed(r,this.root.getAttribute("data-mode"),t,v.default.sources.USER),"formula"===this.root.getAttribute("data-mode")&&this.quill.insertText(r+1," ",v.default.sources.USER),this.quill.setSelection(r+2,v.default.sources.USER)}}this.textbox.value="",this.hide()}}]),e}(A.default);e.BaseTooltip=M,e.default=L},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var o=n(46),i=r(o),l=n(34),a=n(36),s=n(62),u=n(63),c=r(u),f=n(64),h=r(f),p=n(65),d=r(p),y=n(35),v=n(24),b=n(37),g=n(38),m=n(39),_=r(m),O=n(66),w=r(O),x=n(15),k=r(x),E=n(67),N=r(E),j=n(68),A=r(j),q=n(69),T=r(q),P=n(70),S=r(P),C=n(71),L=r(C),M=n(13),R=r(M),I=n(72),B=r(I),D=n(73),U=r(D),F=n(74),H=r(F),K=n(26),z=r(K),V=n(16),Z=r(V),W=n(41),G=r(W),Y=n(42),X=r(Y),$=n(43),Q=r($),J=n(107),tt=r(J),et=n(108),nt=r(et);i.default.register({"attributors/attribute/direction":a.DirectionAttribute,"attributors/class/align":l.AlignClass,"attributors/class/background":y.BackgroundClass,"attributors/class/color":v.ColorClass,"attributors/class/direction":a.DirectionClass,"attributors/class/font":b.FontClass,"attributors/class/size":g.SizeClass,"attributors/style/align":l.AlignStyle,"attributors/style/background":y.BackgroundStyle,"attributors/style/color":v.ColorStyle,"attributors/style/direction":a.DirectionStyle,"attributors/style/font":b.FontStyle,"attributors/style/size":g.SizeStyle},!0),i.default.register({"formats/align":l.AlignClass,"formats/direction":a.DirectionClass,"formats/indent":s.IndentClass,"formats/background":y.BackgroundStyle,"formats/color":v.ColorStyle,"formats/font":b.FontClass,"formats/size":g.SizeClass,"formats/blockquote":c.default,"formats/code-block":R.default,"formats/header":h.default,"formats/list":d.default,"formats/bold":_.default,"formats/code":M.Code,"formats/italic":w.default,"formats/link":k.default,"formats/script":N.default,"formats/strike":A.default,"formats/underline":T.default,"formats/image":S.default,"formats/video":L.default,"formats/list/item":p.ListItem,"modules/formula":B.default,"modules/syntax":U.default,"modules/toolbar":H.default,"themes/bubble":tt.default,"themes/snow":nt.default,"ui/icons":z.default,"ui/picker":Z.default,"ui/icon-picker":X.default,"ui/color-picker":G.default,"ui/tooltip":Q.default},!0),e.default=i.default},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var o=n(0),i=r(o),l=n(6),a=r(l),s=n(3),u=r(s),c=n(14),f=r(c),h=n(23),p=r(h),d=n(31),y=r(d),v=n(33),b=r(v),g=n(5),m=r(g),_=n(59),O=r(_),w=n(8),x=r(w),k=n(60),E=r(k),N=n(61),j=r(N),A=n(25),q=r(A);a.default.register({"blots/block":u.default,"blots/block/embed":s.BlockEmbed,"blots/break":f.default,"blots/container":p.default,"blots/cursor":y.default,"blots/embed":b.default,"blots/inline":m.default,"blots/scroll":O.default,"blots/text":x.default,"modules/clipboard":E.default,"modules/history":j.default,"modules/keyboard":q.default}),i.default.register(u.default,f.default,y.default,m.default,O.default,x.default),e.default=a.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(){this.head=this.tail=null,this.length=0}return t.prototype.append=function(){for(var t=[],e=0;e1&&this.append.apply(this,t.slice(1))},t.prototype.contains=function(t){for(var e,n=this.iterator();e=n();)if(e===t)return!0;return!1},t.prototype.insertBefore=function(t,e){t&&(t.next=e,null!=e?(t.prev=e.prev,null!=e.prev&&(e.prev.next=t),e.prev=t,e===this.head&&(this.head=t)):null!=this.tail?(this.tail.next=t,t.prev=this.tail,this.tail=t):(t.prev=null,this.head=this.tail=t),this.length+=1)},t.prototype.offset=function(t){for(var e=0,n=this.head;null!=n;){if(n===t)return e;e+=n.length(),n=n.next}return-1},t.prototype.remove=function(t){this.contains(t)&&(null!=t.prev&&(t.prev.next=t.next),null!=t.next&&(t.next.prev=t.prev),t===this.head&&(this.head=t.next),t===this.tail&&(this.tail=t.prev),this.length-=1)},t.prototype.iterator=function(t){return void 0===t&&(t=this.head),function(){var e=t;return null!=t&&(t=t.next),e}},t.prototype.find=function(t,e){void 0===e&&(e=!1);for(var n,r=this.iterator();n=r();){var o=n.length();if(ta?n(r,t-a,Math.min(e,a+u-t)):n(r,0,Math.min(u,t+e-a)),a+=u}},t.prototype.map=function(t){return this.reduce(function(e,n){return e.push(t(n)),e},[])},t.prototype.reduce=function(t,e){for(var n,r=this.iterator();n=r();)e=t(e,n);return e},t}();e.default=r},function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(17),i=n(1),l={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},a=function(t){function e(e){var n=t.call(this,e)||this;return n.scroll=n,n.observer=new MutationObserver(function(t){n.update(t)}),n.observer.observe(n.domNode,l),n.attach(),n}return r(e,t),e.prototype.detach=function(){t.prototype.detach.call(this),this.observer.disconnect()},e.prototype.deleteAt=function(e,n){this.update(),0===e&&n===this.length()?this.children.forEach(function(t){t.remove()}):t.prototype.deleteAt.call(this,e,n)},e.prototype.formatAt=function(e,n,r,o){this.update(),t.prototype.formatAt.call(this,e,n,r,o)},e.prototype.insertAt=function(e,n,r){this.update(),t.prototype.insertAt.call(this,e,n,r)},e.prototype.optimize=function(e,n){var r=this;void 0===e&&(e=[]),void 0===n&&(n={}),t.prototype.optimize.call(this,n);for(var l=[].slice.call(this.observer.takeRecords());l.length>0;)e.push(l.pop());for(var a=function(t,e){void 0===e&&(e=!0),null!=t&&t!==r&&null!=t.domNode.parentNode&&(null==t.domNode[i.DATA_KEY].mutations&&(t.domNode[i.DATA_KEY].mutations=[]),e&&a(t.parent))},s=function(t){null!=t.domNode[i.DATA_KEY]&&null!=t.domNode[i.DATA_KEY].mutations&&(t instanceof o.default&&t.children.forEach(s),t.optimize(n))},u=e,c=0;u.length>0;c+=1){if(c>=100)throw new Error("[Parchment] Maximum optimize iterations reached");for(u.forEach(function(t){var e=i.find(t.target,!0);null!=e&&(e.domNode===t.target&&("childList"===t.type?(a(i.find(t.previousSibling,!1)),[].forEach.call(t.addedNodes,function(t){var e=i.find(t,!1);a(e,!1),e instanceof o.default&&e.children.forEach(function(t){a(t,!1)})})):"attributes"===t.type&&a(e.prev)),a(e))}),this.children.forEach(s),u=[].slice.call(this.observer.takeRecords()),l=u.slice();l.length>0;)e.push(l.pop())}},e.prototype.update=function(e,n){var r=this;void 0===n&&(n={}),e=e||this.observer.takeRecords(),e.map(function(t){var e=i.find(t.target,!0);return null==e?null:null==e.domNode[i.DATA_KEY].mutations?(e.domNode[i.DATA_KEY].mutations=[t],e):(e.domNode[i.DATA_KEY].mutations.push(t),null)}).forEach(function(t){null!=t&&t!==r&&null!=t.domNode[i.DATA_KEY]&&t.update(t.domNode[i.DATA_KEY].mutations||[],n)}),null!=this.domNode[i.DATA_KEY].mutations&&t.prototype.update.call(this,this.domNode[i.DATA_KEY].mutations,n),this.optimize(e,n)},e.blotName="scroll",e.defaultChild="block",e.scope=i.Scope.BLOCK_BLOT,e.tagName="DIV",e}(o.default);e.default=a},function(t,e,n){"use strict";function r(t,e){if(Object.keys(t).length!==Object.keys(e).length)return!1;for(var n in t)if(t[n]!==e[n])return!1;return!0}var o=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var i=n(18),l=n(1),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.formats=function(n){if(n.tagName!==e.tagName)return t.formats.call(this,n)},e.prototype.format=function(n,r){var o=this;n!==this.statics.blotName||r?t.prototype.format.call(this,n,r):(this.children.forEach(function(t){t instanceof i.default||(t=t.wrap(e.blotName,!0)),o.attributes.copy(t)}),this.unwrap())},e.prototype.formatAt=function(e,n,r,o){if(null!=this.formats()[r]||l.query(r,l.Scope.ATTRIBUTE)){this.isolate(e,n).format(r,o)}else t.prototype.formatAt.call(this,e,n,r,o)},e.prototype.optimize=function(n){t.prototype.optimize.call(this,n);var o=this.formats();if(0===Object.keys(o).length)return this.unwrap();var i=this.next;i instanceof e&&i.prev===this&&r(o,i.formats())&&(i.moveChildren(this),i.remove())},e.blotName="inline",e.scope=l.Scope.INLINE_BLOT,e.tagName="SPAN",e}(i.default);e.default=a},function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(18),i=n(1),l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.formats=function(n){var r=i.query(e.blotName).tagName;if(n.tagName!==r)return t.formats.call(this,n)},e.prototype.format=function(n,r){null!=i.query(n,i.Scope.BLOCK)&&(n!==this.statics.blotName||r?t.prototype.format.call(this,n,r):this.replaceWith(e.blotName))},e.prototype.formatAt=function(e,n,r,o){null!=i.query(r,i.Scope.BLOCK)?this.format(r,o):t.prototype.formatAt.call(this,e,n,r,o)},e.prototype.insertAt=function(e,n,r){if(null==r||null!=i.query(n,i.Scope.INLINE))t.prototype.insertAt.call(this,e,n,r);else{var o=this.split(e),l=i.create(n,r);o.parent.insertBefore(l,o)}},e.prototype.update=function(e,n){navigator.userAgent.match(/Trident/)?this.build():t.prototype.update.call(this,e,n)},e.blotName="block",e.scope=i.Scope.BLOCK_BLOT,e.tagName="P",e}(o.default);e.default=l},function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(19),i=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.formats=function(t){},e.prototype.format=function(e,n){t.prototype.formatAt.call(this,0,this.length(),e,n)},e.prototype.formatAt=function(e,n,r,o){0===e&&n===this.length()?this.format(r,o):t.prototype.formatAt.call(this,e,n,r,o)},e.prototype.formats=function(){return this.statics.formats(this.domNode)},e}(o.default);e.default=i},function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(19),i=n(1),l=function(t){function e(e){var n=t.call(this,e)||this;return n.text=n.statics.value(n.domNode),n}return r(e,t),e.create=function(t){return document.createTextNode(t)},e.value=function(t){var e=t.data;return e.normalize&&(e=e.normalize()),e},e.prototype.deleteAt=function(t,e){this.domNode.data=this.text=this.text.slice(0,t)+this.text.slice(t+e)},e.prototype.index=function(t,e){return this.domNode===t?e:-1},e.prototype.insertAt=function(e,n,r){null==r?(this.text=this.text.slice(0,e)+n+this.text.slice(e),this.domNode.data=this.text):t.prototype.insertAt.call(this,e,n,r)},e.prototype.length=function(){return this.text.length},e.prototype.optimize=function(n){t.prototype.optimize.call(this,n),this.text=this.statics.value(this.domNode),0===this.text.length?this.remove():this.next instanceof e&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())},e.prototype.position=function(t,e){return void 0===e&&(e=!1),[this.domNode,t]},e.prototype.split=function(t,e){if(void 0===e&&(e=!1),!e){if(0===t)return this;if(t===this.length())return this.next}var n=i.create(this.domNode.splitText(t));return this.parent.insertBefore(n,this.next),this.text=this.statics.value(this.domNode),n},e.prototype.update=function(t,e){var n=this;t.some(function(t){return"characterData"===t.type&&t.target===n.domNode})&&(this.text=this.statics.value(this.domNode))},e.prototype.value=function(){return this.text},e.blotName="text",e.scope=i.Scope.INLINE_BLOT,e}(o.default);e.default=l},function(t,e,n){"use strict";var r=document.createElement("div");if(r.classList.toggle("test-class",!1),r.classList.contains("test-class")){var o=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(t,e){return arguments.length>1&&!this.contains(t)==!e?e:o.call(this,t)}}String.prototype.startsWith||(String.prototype.startsWith=function(t,e){return e=e||0,this.substr(e,t.length)===t}),String.prototype.endsWith||(String.prototype.endsWith=function(t,e){var n=this.toString();("number"!=typeof e||!isFinite(e)||Math.floor(e)!==e||e>n.length)&&(e=n.length),e-=t.length;var r=n.indexOf(t,e);return-1!==r&&r===e}),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(t){if(null===this)throw new TypeError("Array.prototype.find called on null or undefined");if("function"!=typeof t)throw new TypeError("predicate must be a function");for(var e,n=Object(this),r=n.length>>>0,o=arguments[1],i=0;ie.length?t:e,l=t.length>e.length?e:t,a=i.indexOf(l);if(-1!=a)return r=[[y,i.substring(0,a)],[v,l],[y,i.substring(a+l.length)]],t.length>e.length&&(r[0][0]=r[2][0]=d),r;if(1==l.length)return[[d,t],[y,e]];var u=s(t,e);if(u){var c=u[0],f=u[1],h=u[2],p=u[3],b=u[4],g=n(c,h),m=n(f,p);return g.concat([[v,b]],m)}return o(t,e)}function o(t,e){for(var n=t.length,r=e.length,o=Math.ceil((n+r)/2),l=o,a=2*o,s=new Array(a),u=new Array(a),c=0;cn)v+=2;else if(x>r)p+=2;else if(h){var k=l+f-_;if(k>=0&&k=E)return i(t,e,O,x)}}}for(var N=-m+b;N<=m-g;N+=2){var E,k=l+N;E=N==-m||N!=m&&u[k-1]n)g+=2;else if(j>r)b+=2;else if(!h){var w=l+f-N;if(w>=0&&w=E)return i(t,e,O,x)}}}}return[[d,t],[y,e]]}function i(t,e,r,o){var i=t.substring(0,r),l=e.substring(0,o),a=t.substring(r),s=e.substring(o),u=n(i,l),c=n(a,s);return u.concat(c)}function l(t,e){if(!t||!e||t.charAt(0)!=e.charAt(0))return 0;for(var n=0,r=Math.min(t.length,e.length),o=r,i=0;n=t.length?[r,o,i,s,f]:null}var r=t.length>e.length?t:e,o=t.length>e.length?e:t;if(r.length<4||2*o.lengthu[4].length?s:u:s;var c,f,h,p;return t.length>e.length?(c=i[0],f=i[1],h=i[2],p=i[3]):(h=i[0],p=i[1],c=i[2],f=i[3]),[c,f,h,p,i[4]]}function u(t){t.push([v,""]);for(var e,n=0,r=0,o=0,i="",s="";n1?(0!==r&&0!==o&&(e=l(s,i),0!==e&&(n-r-o>0&&t[n-r-o-1][0]==v?t[n-r-o-1][1]+=s.substring(0,e):(t.splice(0,0,[v,s.substring(0,e)]),n++),s=s.substring(e),i=i.substring(e)),0!==(e=a(s,i))&&(t[n][1]=s.substring(s.length-e)+t[n][1],s=s.substring(0,s.length-e),i=i.substring(0,i.length-e))),0===r?t.splice(n-o,r+o,[y,s]):0===o?t.splice(n-r,r+o,[d,i]):t.splice(n-r-o,r+o,[d,i],[y,s]),n=n-r-o+(r?1:0)+(o?1:0)+1):0!==n&&t[n-1][0]==v?(t[n-1][1]+=t[n][1],t.splice(n,1)):n++,o=0,r=0,i="",s=""}""===t[t.length-1][1]&&t.pop();var c=!1;for(n=1;n0&&r.splice(o+2,0,[l[0],a]),p(r,o,3)}return t}function h(t){for(var e=!1,n=function(t){return t.charCodeAt(0)>=56320&&t.charCodeAt(0)<=57343},r=2;r=55296&&t.charCodeAt(t.length-1)<=56319}(t[r-2][1])&&t[r-1][0]===d&&n(t[r-1][1])&&t[r][0]===y&&n(t[r][1])&&(e=!0,t[r-1][1]=t[r-2][1].slice(-1)+t[r-1][1],t[r][1]=t[r-2][1].slice(-1)+t[r][1],t[r-2][1]=t[r-2][1].slice(0,-1));if(!e)return t;for(var o=[],r=0;r0&&o.push(t[r]);return o}function p(t,e,n){for(var r=e+n-1;r>=0&&r>=e-1;r--)if(r+1=r&&!a.endsWith("\n")&&(n=!0),e.scroll.insertAt(t,a);var c=e.scroll.line(t),f=u(c,2),h=f[0],p=f[1],y=(0,T.default)({},(0,O.bubbleFormats)(h));if(h instanceof w.default){var b=h.descendant(v.default.Leaf,p),g=u(b,1),m=g[0];y=(0,T.default)(y,(0,O.bubbleFormats)(m))}l=d.default.attributes.diff(y,l)||{}}else if("object"===s(o.insert)){var _=Object.keys(o.insert)[0];if(null==_)return t;e.scroll.insertAt(t,_,o.insert[_])}r+=i}return Object.keys(l).forEach(function(n){e.scroll.formatAt(t,i,n,l[n])}),t+i},0),t.reduce(function(t,n){return"number"==typeof n.delete?(e.scroll.deleteAt(t,n.delete),t):t+(n.retain||n.insert.length||1)},0),this.scroll.batchEnd(),this.update(t)}},{key:"deleteText",value:function(t,e){return this.scroll.deleteAt(t,e),this.update((new h.default).retain(t).delete(e))}},{key:"formatLine",value:function(t,e){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.scroll.update(),Object.keys(r).forEach(function(o){if(null==n.scroll.whitelist||n.scroll.whitelist[o]){var i=n.scroll.lines(t,Math.max(e,1)),l=e;i.forEach(function(e){var i=e.length();if(e instanceof g.default){var a=t-e.offset(n.scroll),s=e.newlineIndex(a+l)-a+1;e.formatAt(a,s,o,r[o])}else e.format(o,r[o]);l-=i})}}),this.scroll.optimize(),this.update((new h.default).retain(t).retain(e,(0,N.default)(r)))}},{key:"formatText",value:function(t,e){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Object.keys(r).forEach(function(o){n.scroll.formatAt(t,e,o,r[o])}),this.update((new h.default).retain(t).retain(e,(0,N.default)(r)))}},{key:"getContents",value:function(t,e){return this.delta.slice(t,t+e)}},{key:"getDelta",value:function(){return this.scroll.lines().reduce(function(t,e){return t.concat(e.delta())},new h.default)}},{key:"getFormat",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=[],r=[];0===e?this.scroll.path(t).forEach(function(t){var e=u(t,1),o=e[0];o instanceof w.default?n.push(o):o instanceof v.default.Leaf&&r.push(o)}):(n=this.scroll.lines(t,e),r=this.scroll.descendants(v.default.Leaf,t,e));var o=[n,r].map(function(t){if(0===t.length)return{};for(var e=(0,O.bubbleFormats)(t.shift());Object.keys(e).length>0;){var n=t.shift();if(null==n)return e;e=l((0,O.bubbleFormats)(n),e)}return e});return T.default.apply(T.default,o)}},{key:"getText",value:function(t,e){return this.getContents(t,e).filter(function(t){return"string"==typeof t.insert}).map(function(t){return t.insert}).join("")}},{key:"insertEmbed",value:function(t,e,n){return this.scroll.insertAt(t,e,n),this.update((new h.default).retain(t).insert(o({},e,n)))}},{key:"insertText",value:function(t,e){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return e=e.replace(/\r\n/g,"\n").replace(/\r/g,"\n"),this.scroll.insertAt(t,e),Object.keys(r).forEach(function(o){n.scroll.formatAt(t,e.length,o,r[o])}),this.update((new h.default).retain(t).insert(e,(0,N.default)(r)))}},{key:"isBlank",value:function(){if(0==this.scroll.children.length)return!0;if(this.scroll.children.length>1)return!1;var t=this.scroll.children.head;return t.statics.blotName===w.default.blotName&&(!(t.children.length>1)&&t.children.head instanceof k.default)}},{key:"removeFormat",value:function(t,e){var n=this.getText(t,e),r=this.scroll.line(t+e),o=u(r,2),i=o[0],l=o[1],a=0,s=new h.default;null!=i&&(a=i instanceof g.default?i.newlineIndex(l)-l+1:i.length()-l,s=i.delta().slice(l,l+a-1).insert("\n"));var c=this.getContents(t,e+a),f=c.diff((new h.default).insert(n).concat(s)),p=(new h.default).retain(t).concat(f);return this.applyDelta(p)}},{key:"update",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,r=this.delta;if(1===e.length&&"characterData"===e[0].type&&e[0].target.data.match(P)&&v.default.find(e[0].target)){var o=v.default.find(e[0].target),i=(0,O.bubbleFormats)(o),l=o.offset(this.scroll),a=e[0].oldValue.replace(_.default.CONTENTS,""),s=(new h.default).insert(a),u=(new h.default).insert(o.value());t=(new h.default).retain(l).concat(s.diff(u,n)).reduce(function(t,e){return e.insert?t.insert(e.insert,i):t.push(e)},new h.default),this.delta=r.compose(t)}else this.delta=this.getDelta(),t&&(0,A.default)(r.compose(t),this.delta)||(t=r.diff(this.delta,n));return t}}]),t}();e.default=S},function(t,e){"use strict";function n(){}function r(t,e,n){this.fn=t,this.context=e,this.once=n||!1}function o(){this._events=new n,this._eventsCount=0}var i=Object.prototype.hasOwnProperty,l="~";Object.create&&(n.prototype=Object.create(null),(new n).__proto__||(l=!1)),o.prototype.eventNames=function(){var t,e,n=[];if(0===this._eventsCount)return n;for(e in t=this._events)i.call(t,e)&&n.push(l?e.slice(1):e);return Object.getOwnPropertySymbols?n.concat(Object.getOwnPropertySymbols(t)):n},o.prototype.listeners=function(t,e){var n=l?l+t:t,r=this._events[n];if(e)return!!r;if(!r)return[];if(r.fn)return[r.fn];for(var o=0,i=r.length,a=new Array(i);o0){if(i instanceof y.BlockEmbed||f instanceof y.BlockEmbed)return void this.optimize();if(i instanceof _.default){var h=i.newlineIndex(i.length(),!0);if(h>-1&&(i=i.split(h+1))===f)return void this.optimize()}else if(f instanceof _.default){var p=f.newlineIndex(0);p>-1&&f.split(p+1)}var d=f.children.head instanceof g.default?null:f.children.head;i.moveChildren(f,d),i.remove()}this.optimize()}},{key:"enable",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.domNode.setAttribute("contenteditable",t)}},{key:"formatAt",value:function(t,n,r,o){(null==this.whitelist||this.whitelist[r])&&(c(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"formatAt",this).call(this,t,n,r,o),this.optimize())}},{key:"insertAt",value:function(t,n,r){if(null==r||null==this.whitelist||this.whitelist[n]){if(t>=this.length())if(null==r||null==h.default.query(n,h.default.Scope.BLOCK)){var o=h.default.create(this.statics.defaultChild);this.appendChild(o),null==r&&n.endsWith("\n")&&(n=n.slice(0,-1)),o.insertAt(0,n,r)}else{var i=h.default.create(n,r);this.appendChild(i)}else c(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"insertAt",this).call(this,t,n,r);this.optimize()}}},{key:"insertBefore",value:function(t,n){if(t.statics.scope===h.default.Scope.INLINE_BLOT){var r=h.default.create(this.statics.defaultChild);r.appendChild(t),t=r}c(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"insertBefore",this).call(this,t,n)}},{key:"leaf",value:function(t){return this.path(t).pop()||[null,-1]}},{key:"line",value:function(t){return t===this.length()?this.line(t-1):this.descendant(a,t)}},{key:"lines",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE;return function t(e,n,r){var o=[],i=r;return e.children.forEachAt(n,r,function(e,n,r){a(e)?o.push(e):e instanceof h.default.Container&&(o=o.concat(t(e,n,i))),i-=r}),o}(this,t,e)}},{key:"optimize",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!0!==this.batch&&(c(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"optimize",this).call(this,t,n),t.length>0&&this.emitter.emit(d.default.events.SCROLL_OPTIMIZE,t,n))}},{key:"path",value:function(t){return c(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"path",this).call(this,t).slice(1)}},{key:"update",value:function(t){if(!0!==this.batch){var n=d.default.sources.USER;"string"==typeof t&&(n=t),Array.isArray(t)||(t=this.observer.takeRecords()),t.length>0&&this.emitter.emit(d.default.events.SCROLL_BEFORE_UPDATE,n,t),c(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"update",this).call(this,t.concat([])),t.length>0&&this.emitter.emit(d.default.events.SCROLL_UPDATE,n,t)}}}]),e}(h.default.Scroll);x.blotName="scroll",x.className="ql-editor",x.tagName="DIV",x.defaultChild="block",x.allowedChildren=[v.default,y.BlockEmbed,w.default],e.default=x},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function l(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function s(t,e,n){return"object"===(void 0===e?"undefined":x(e))?Object.keys(e).reduce(function(t,n){return s(t,n,e[n])},t):t.reduce(function(t,r){return r.attributes&&r.attributes[e]?t.push(r):t.insert(r.insert,(0,j.default)({},o({},e,n),r.attributes))},new q.default)}function u(t){if(t.nodeType!==Node.ELEMENT_NODE)return{};return t["__ql-computed-style"]||(t["__ql-computed-style"]=window.getComputedStyle(t))}function c(t,e){for(var n="",r=t.ops.length-1;r>=0&&n.length-1}function h(t,e,n){return t.nodeType===t.TEXT_NODE?n.reduce(function(e,n){return n(t,e)},new q.default):t.nodeType===t.ELEMENT_NODE?[].reduce.call(t.childNodes||[],function(r,o){var i=h(o,e,n);return o.nodeType===t.ELEMENT_NODE&&(i=e.reduce(function(t,e){return e(o,t)},i),i=(o[W]||[]).reduce(function(t,e){return e(o,t)},i)),r.concat(i)},new q.default):new q.default}function p(t,e,n){return s(n,t,!0)}function d(t,e){var n=P.default.Attributor.Attribute.keys(t),r=P.default.Attributor.Class.keys(t),o=P.default.Attributor.Style.keys(t),i={};return n.concat(r).concat(o).forEach(function(e){var n=P.default.query(e,P.default.Scope.ATTRIBUTE);null!=n&&(i[n.attrName]=n.value(t),i[n.attrName])||(n=Y[e],null==n||n.attrName!==e&&n.keyName!==e||(i[n.attrName]=n.value(t)||void 0),null==(n=X[e])||n.attrName!==e&&n.keyName!==e||(n=X[e],i[n.attrName]=n.value(t)||void 0))}),Object.keys(i).length>0&&(e=s(e,i)),e}function y(t,e){var n=P.default.query(t);if(null==n)return e;if(n.prototype instanceof P.default.Embed){var r={},o=n.value(t);null!=o&&(r[n.blotName]=o,e=(new q.default).insert(r,n.formats(t)))}else"function"==typeof n.formats&&(e=s(e,n.blotName,n.formats(t)));return e}function v(t,e){return c(e,"\n")||e.insert("\n"),e}function b(){return new q.default}function g(t,e){var n=P.default.query(t);if(null==n||"list-item"!==n.blotName||!c(e,"\n"))return e;for(var r=-1,o=t.parentNode;!o.classList.contains("ql-clipboard");)"list"===(P.default.query(o)||{}).blotName&&(r+=1),o=o.parentNode;return r<=0?e:e.compose((new q.default).retain(e.length()-1).retain(1,{indent:r}))}function m(t,e){return c(e,"\n")||(f(t)||e.length()>0&&t.nextSibling&&f(t.nextSibling))&&e.insert("\n"),e}function _(t,e){if(f(t)&&null!=t.nextElementSibling&&!c(e,"\n\n")){var n=t.offsetHeight+parseFloat(u(t).marginTop)+parseFloat(u(t).marginBottom);t.nextElementSibling.offsetTop>t.offsetTop+1.5*n&&e.insert("\n")}return e}function O(t,e){var n={},r=t.style||{};return r.fontStyle&&"italic"===u(t).fontStyle&&(n.italic=!0),r.fontWeight&&(u(t).fontWeight.startsWith("bold")||parseInt(u(t).fontWeight)>=700)&&(n.bold=!0),Object.keys(n).length>0&&(e=s(e,n)),parseFloat(r.textIndent||0)>0&&(e=(new q.default).insert("\t").concat(e)),e}function w(t,e){var n=t.data;if("O:P"===t.parentNode.tagName)return e.insert(n.trim());if(0===n.trim().length&&t.parentNode.classList.contains("ql-clipboard"))return e;if(!u(t.parentNode).whiteSpace.startsWith("pre")){var r=function(t,e){return e=e.replace(/[^\u00a0]/g,""),e.length<1&&t?" ":e};n=n.replace(/\r\n/g," ").replace(/\n/g," "),n=n.replace(/\s\s+/g,r.bind(r,!0)),(null==t.previousSibling&&f(t.parentNode)||null!=t.previousSibling&&f(t.previousSibling))&&(n=n.replace(/^\s+/,r.bind(r,!1))),(null==t.nextSibling&&f(t.parentNode)||null!=t.nextSibling&&f(t.nextSibling))&&(n=n.replace(/\s+$/,r.bind(r,!1)))}return e.insert(n)}Object.defineProperty(e,"__esModule",{value:!0}),e.matchText=e.matchSpacing=e.matchNewline=e.matchBlot=e.matchAttributor=e.default=void 0;var x="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},k=function(){function t(t,e){var n=[],r=!0,o=!1,i=void 0;try{for(var l,a=t[Symbol.iterator]();!(r=(l=a.next()).done)&&(n.push(l.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{!r&&a.return&&a.return()}finally{if(o)throw i}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),E=function(){function t(t,e){for(var n=0;n\r?\n +\<"),this.convert();var e=this.quill.getFormat(this.quill.selection.savedRange.index);if(e[F.default.blotName]){var n=this.container.innerText;return this.container.innerHTML="",(new q.default).insert(n,o({},F.default.blotName,e[F.default.blotName]))}var r=this.prepareMatching(),i=k(r,2),l=i[0],a=i[1],s=h(this.container,l,a);return c(s,"\n")&&null==s.ops[s.ops.length-1].attributes&&(s=s.compose((new q.default).retain(s.length()-1).delete(1))),Z.log("convert",this.container.innerHTML,s),this.container.innerHTML="",s}},{key:"dangerouslyPasteHTML",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:C.default.sources.API;if("string"==typeof t)this.quill.setContents(this.convert(t),e),this.quill.setSelection(0,C.default.sources.SILENT);else{var r=this.convert(e);this.quill.updateContents((new q.default).retain(t).concat(r),n),this.quill.setSelection(t+r.length(),C.default.sources.SILENT)}}},{key:"onPaste",value:function(t){var e=this;if(!t.defaultPrevented&&this.quill.isEnabled()){var n=this.quill.getSelection(),r=(new q.default).retain(n.index),o=this.quill.scrollingContainer.scrollTop;this.container.focus(),this.quill.selection.update(C.default.sources.SILENT),setTimeout(function(){r=r.concat(e.convert()).delete(n.length),e.quill.updateContents(r,C.default.sources.USER),e.quill.setSelection(r.length()-n.length,C.default.sources.SILENT),e.quill.scrollingContainer.scrollTop=o,e.quill.focus()},1)}}},{key:"prepareMatching",value:function(){var t=this,e=[],n=[];return this.matchers.forEach(function(r){var o=k(r,2),i=o[0],l=o[1];switch(i){case Node.TEXT_NODE:n.push(l);break;case Node.ELEMENT_NODE:e.push(l);break;default:[].forEach.call(t.container.querySelectorAll(i),function(t){t[W]=t[W]||[],t[W].push(l)})}}),[e,n]}}]),e}(I.default);$.DEFAULTS={matchers:[],matchVisual:!0},e.default=$,e.matchAttributor=d,e.matchBlot=y,e.matchNewline=m,e.matchSpacing=_,e.matchText=w},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function l(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function a(t){var e=t.ops[t.ops.length-1];return null!=e&&(null!=e.insert?"string"==typeof e.insert&&e.insert.endsWith("\n"):null!=e.attributes&&Object.keys(e.attributes).some(function(t){return null!=f.default.query(t,f.default.Scope.BLOCK)}))}function s(t){var e=t.reduce(function(t,e){return t+=e.delete||0},0),n=t.length()-e;return a(t)&&(n-=1),n}Object.defineProperty(e,"__esModule",{value:!0}),e.getLastChangeIndex=e.default=void 0;var u=function(){function t(t,e){for(var n=0;nr&&this.stack.undo.length>0){var o=this.stack.undo.pop();n=n.compose(o.undo),t=o.redo.compose(t)}else this.lastRecorded=r;this.stack.undo.push({redo:t,undo:n}),this.stack.undo.length>this.options.maxStack&&this.stack.undo.shift()}}},{key:"redo",value:function(){this.change("redo","undo")}},{key:"transform",value:function(t){this.stack.undo.forEach(function(e){e.undo=t.transform(e.undo,!0),e.redo=t.transform(e.redo,!0)}),this.stack.redo.forEach(function(e){e.undo=t.transform(e.undo,!0),e.redo=t.transform(e.redo,!0)})}},{key:"undo",value:function(){this.change("undo","redo")}}]),e}(y.default);v.DEFAULTS={delay:1e3,maxStack:100,userOnly:!1},e.default=v,e.getLastChangeIndex=s},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0}),e.IndentClass=void 0;var l=function(){function t(t,e){for(var n=0;n0&&this.children.tail.format(t,e)}},{key:"formats",value:function(){return o({},this.statics.blotName,this.statics.formats(this.domNode))}},{key:"insertBefore",value:function(t,n){if(t instanceof v)u(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"insertBefore",this).call(this,t,n);else{var r=null==n?this.length():n.offset(this),o=this.split(r);o.parent.insertBefore(t,o)}}},{key:"optimize",value:function(t){u(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"optimize",this).call(this,t);var n=this.next;null!=n&&n.prev===this&&n.statics.blotName===this.statics.blotName&&n.domNode.tagName===this.domNode.tagName&&n.domNode.getAttribute("data-checked")===this.domNode.getAttribute("data-checked")&&(n.moveChildren(this),n.remove())}},{key:"replace",value:function(t){if(t.statics.blotName!==this.statics.blotName){var n=f.default.create(this.statics.defaultChild);t.moveChildren(n),this.appendChild(n)}u(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"replace",this).call(this,t)}}]),e}(y.default);b.blotName="list",b.scope=f.default.Scope.BLOCK_BLOT,b.tagName=["OL","UL"],b.defaultChild="list-item",b.allowedChildren=[v],e.ListItem=v,e.default=b},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var l=n(39),a=function(t){return t&&t.__esModule?t:{default:t}}(l),s=function(t){function e(){return r(this,e),o(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return i(e,t),e}(a.default);s.blotName="italic",s.tagName=["EM","I"],e.default=s},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var l=function(){function t(t,e){for(var n=0;n-1?n?this.domNode.setAttribute(t,n):this.domNode.removeAttribute(t):a(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"format",this).call(this,t,n)}}],[{key:"create",value:function(t){var n=a(e.__proto__||Object.getPrototypeOf(e),"create",this).call(this,t);return"string"==typeof t&&n.setAttribute("src",this.sanitize(t)),n}},{key:"formats",value:function(t){return f.reduce(function(e,n){return t.hasAttribute(n)&&(e[n]=t.getAttribute(n)),e},{})}},{key:"match",value:function(t){return/\.(jpe?g|gif|png)$/.test(t)||/^data:image\/.+;base64/.test(t)}},{key:"sanitize",value:function(t){return(0,c.sanitize)(t,["http","https","data"])?t:"//:0"}},{key:"value",value:function(t){return t.getAttribute("src")}}]),e}(u.default.Embed);h.blotName="image",h.tagName="IMG",e.default=h},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var l=function(){function t(t,e){for(var n=0;n-1?n?this.domNode.setAttribute(t,n):this.domNode.removeAttribute(t):a(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"format",this).call(this,t,n)}}],[{key:"create",value:function(t){var n=a(e.__proto__||Object.getPrototypeOf(e),"create",this).call(this,t);return n.setAttribute("frameborder","0"),n.setAttribute("allowfullscreen",!0),n.setAttribute("src",this.sanitize(t)),n}},{key:"formats",value:function(t){return f.reduce(function(e,n){return t.hasAttribute(n)&&(e[n]=t.getAttribute(n)),e},{})}},{key:"sanitize",value:function(t){return c.default.sanitize(t)}},{key:"value",value:function(t){return t.getAttribute("src")}}]),e}(s.BlockEmbed);h.blotName="video",h.className="ql-video",h.tagName="IFRAME",e.default=h},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function l(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.FormulaBlot=void 0;var a=function(){function t(t,e){for(var n=0;n0||null==this.cachedText)&&(this.domNode.innerHTML=t(e),this.domNode.normalize(),this.attach()),this.cachedText=e)}}]),e}(v.default);b.className="ql-syntax";var g=new c.default.Attributor.Class("token","hljs",{scope:c.default.Scope.INLINE}),m=function(t){function e(t,n){o(this,e);var r=i(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));if("function"!=typeof r.options.highlight)throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");var l=null;return r.quill.on(h.default.events.SCROLL_OPTIMIZE,function(){clearTimeout(l),l=setTimeout(function(){r.highlight(),l=null},r.options.interval)}),r.highlight(),r}return l(e,t),a(e,null,[{key:"register",value:function(){h.default.register(g,!0),h.default.register(b,!0)}}]),a(e,[{key:"highlight",value:function(){var t=this;if(!this.quill.selection.composing){this.quill.update(h.default.sources.USER);var e=this.quill.getSelection();this.quill.scroll.descendants(b).forEach(function(e){e.highlight(t.options.highlight)}),this.quill.update(h.default.sources.SILENT),null!=e&&this.quill.setSelection(e,h.default.sources.SILENT)}}}]),e}(d.default);m.DEFAULTS={highlight:function(){return null==window.hljs?null:function(t){return window.hljs.highlightAuto(t).value}}(),interval:1e3},e.CodeBlock=b,e.CodeToken=g,e.default=m},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function l(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function s(t,e,n){var r=document.createElement("button");r.setAttribute("type","button"),r.classList.add("ql-"+e),null!=n&&(r.value=n),t.appendChild(r)}function u(t,e){Array.isArray(e[0])||(e=[e]),e.forEach(function(e){var n=document.createElement("span");n.classList.add("ql-formats"),e.forEach(function(t){if("string"==typeof t)s(n,t);else{var e=Object.keys(t)[0],r=t[e];Array.isArray(r)?c(n,e,r):s(n,e,r)}}),t.appendChild(n)})}function c(t,e,n){var r=document.createElement("select");r.classList.add("ql-"+e),n.forEach(function(t){var e=document.createElement("option");!1!==t?e.setAttribute("value",t):e.setAttribute("selected","selected"),r.appendChild(e)}),t.appendChild(r)}Object.defineProperty(e,"__esModule",{value:!0}),e.addControls=e.default=void 0;var f=function(){function t(t,e){var n=[],r=!0,o=!1,i=void 0;try{for(var l,a=t[Symbol.iterator]();!(r=(l=a.next()).done)&&(n.push(l.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{!r&&a.return&&a.return()}finally{if(o)throw i}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),h=function(){function t(t,e){for(var n=0;n '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function l(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.BubbleTooltip=void 0;var a=function t(e,n,r){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,n);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,r)}if("value"in o)return o.value;var l=o.get;if(void 0!==l)return l.call(r)},s=function(){function t(t,e){for(var n=0;n0&&o===h.default.sources.USER){r.show(),r.root.style.left="0px",r.root.style.width="",r.root.style.width=r.root.offsetWidth+"px";var i=r.quill.getLines(e.index,e.length);if(1===i.length)r.position(r.quill.getBounds(e));else{var l=i[i.length-1],a=r.quill.getIndex(l),s=Math.min(l.length()-1,e.index+e.length-a),u=r.quill.getBounds(new y.Range(a,s));r.position(u)}}else document.activeElement!==r.textbox&&r.quill.hasFocus()&&r.hide()}),r}return l(e,t),s(e,[{key:"listen",value:function(){var t=this;a(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"listen",this).call(this),this.root.querySelector(".ql-close").addEventListener("click",function(){t.root.classList.remove("ql-editing")}),this.quill.on(h.default.events.SCROLL_OPTIMIZE,function(){setTimeout(function(){if(!t.root.classList.contains("ql-hidden")){var e=t.quill.getSelection();null!=e&&t.position(t.quill.getBounds(e))}},1)})}},{key:"cancel",value:function(){this.show()}},{key:"position",value:function(t){var n=a(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"position",this).call(this,t),r=this.root.querySelector(".ql-tooltip-arrow");if(r.style.marginLeft="",0===n)return n;r.style.marginLeft=-1*n-r.offsetWidth/2+"px"}}]),e}(p.BaseTooltip);_.TEMPLATE=['','
','','',"
"].join(""),e.BubbleTooltip=_,e.default=m},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function l(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var a=function(){function t(t,e){var n=[],r=!0,o=!1,i=void 0;try{for(var l,a=t[Symbol.iterator]();!(r=(l=a.next()).done)&&(n.push(l.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{!r&&a.return&&a.return()}finally{if(o)throw i}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),s=function t(e,n,r){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,n);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,r)}if("value"in o)return o.value;var l=o.get;if(void 0!==l)return l.call(r)},u=function(){function t(t,e){for(var n=0;n','','',''].join(""),e.default=w}]).default}); -//# sourceMappingURL=quill.min.js.map \ No newline at end of file diff --git a/unpackage/dist/dev/app-plus/__uniappquillimageresize.js b/unpackage/dist/dev/app-plus/__uniappquillimageresize.js deleted file mode 100644 index 725289b..0000000 --- a/unpackage/dist/dev/app-plus/__uniappquillimageresize.js +++ /dev/null @@ -1 +0,0 @@ -!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.ImageResize=e():t.ImageResize=e()}(this,function(){return function(t){function e(o){if(n[o])return n[o].exports;var r=n[o]={i:o,l:!1,exports:{}};return t[o].call(r.exports,r,r.exports,e),r.l=!0,r.exports}var n={};return e.m=t,e.c=n,e.i=function(t){return t},e.d=function(t,n,o){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:o})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=39)}([function(t,e){function n(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}t.exports=n},function(t,e,n){var o=n(22),r="object"==typeof self&&self&&self.Object===Object&&self,i=o||r||Function("return this")();t.exports=i},function(t,e){function n(t){return null!=t&&"object"==typeof t}t.exports=n},function(t,e,n){function o(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e-1&&t%1==0&&t-1&&t%1==0&&t<=o}var o=9007199254740991;t.exports=n},function(t,e,n){var o=n(50),r=n(55),i=n(87),u=i&&i.isTypedArray,c=u?r(u):o;t.exports=c},function(t,e,n){function o(t){return u(t)?r(t,!0):i(t)}var r=n(44),i=n(51),u=n(12);t.exports=o},function(t,e,n){"use strict";e.a={modules:["DisplaySize","Toolbar","Resize"]}},function(t,e,n){"use strict";function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}n.d(e,"a",function(){return c});var u=n(9),c=function(t){function e(){var t,n,i,u;o(this,e);for(var c=arguments.length,a=Array(c),s=0;s1&&void 0!==arguments[1]?arguments[1]:{};o(this,t),this.initializeModules=function(){n.removeModules(),n.modules=n.moduleClasses.map(function(t){return new(f[t]||t)(n)}),n.modules.forEach(function(t){t.onCreate()}),n.onUpdate()},this.onUpdate=function(){n.repositionElements(),n.modules.forEach(function(t){t.onUpdate()})},this.removeModules=function(){n.modules.forEach(function(t){t.onDestroy()}),n.modules=[]},this.handleClick=function(t){if(t.target&&t.target.tagName&&"IMG"===t.target.tagName.toUpperCase()){if(n.img===t.target)return;n.img&&n.hide(),n.show(t.target)}else n.img&&n.hide()},this.show=function(t){n.img=t,n.showOverlay(),n.initializeModules()},this.showOverlay=function(){n.overlay&&n.hideOverlay(),n.quill.setSelection(null),n.setUserSelect("none"),document.addEventListener("keyup",n.checkImage,!0),n.quill.root.addEventListener("input",n.checkImage,!0),n.overlay=document.createElement("div"),n.overlay.classList.add("ql-image-overlay"),n.quill.root.parentNode.appendChild(n.overlay),n.repositionElements()},this.hideOverlay=function(){n.overlay&&(n.quill.root.parentNode.removeChild(n.overlay),n.overlay=void 0,document.removeEventListener("keyup",n.checkImage),n.quill.root.removeEventListener("input",n.checkImage),n.setUserSelect(""))},this.repositionElements=function(){if(n.overlay&&n.img){var t=n.quill.root.parentNode,e=n.img.getBoundingClientRect(),o=t.getBoundingClientRect();Object.assign(n.overlay.style,{left:e.left-o.left-1+t.scrollLeft+"px",top:e.top-o.top+t.scrollTop+"px",width:e.width+"px",height:e.height+"px"})}},this.hide=function(){n.hideOverlay(),n.removeModules(),n.img=void 0},this.setUserSelect=function(t){["userSelect","mozUserSelect","webkitUserSelect","msUserSelect"].forEach(function(e){n.quill.root.style[e]=t,document.documentElement.style[e]=t})},this.checkImage=function(t){n.img&&(46!=t.keyCode&&8!=t.keyCode||window.Quill.find(n.img).deleteAt(0),n.hide())},this.quill=e;var c=!1;r.modules&&(c=r.modules.slice()),this.options=i()({},r,u.a),!1!==c&&(this.options.modules=c),document.execCommand("enableObjectResizing",!1,"false"),this.quill.root.addEventListener("click",this.handleClick,!1),this.quill.root.parentNode.style.position=this.quill.root.parentNode.style.position||"relative",this.moduleClasses=this.options.modules,this.modules=[]};e.default=p,window.Quill&&window.Quill.register("modules/imageResize",p)},function(t,e,n){function o(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e1?n[r-1]:void 0,c=r>2?n[2]:void 0;for(u=t.length>3&&"function"==typeof u?(r--,u):void 0,c&&i(n[0],n[1],c)&&(u=r<3?void 0:u,r=1),e=Object(e);++o-1}var r=n(4);t.exports=o},function(t,e,n){function o(t,e){var n=this.__data__,o=r(n,t);return o<0?(++this.size,n.push([t,e])):n[o][1]=e,this}var r=n(4);t.exports=o},function(t,e,n){function o(){this.size=0,this.__data__={hash:new r,map:new(u||i),string:new r}}var r=n(40),i=n(3),u=n(15);t.exports=o},function(t,e,n){function o(t){var e=r(this,t).delete(t);return this.size-=e?1:0,e}var r=n(6);t.exports=o},function(t,e,n){function o(t){return r(this,t).get(t)}var r=n(6);t.exports=o},function(t,e,n){function o(t){return r(this,t).has(t)}var r=n(6);t.exports=o},function(t,e,n){function o(t,e){var n=r(this,t),o=n.size;return n.set(t,e),this.size+=n.size==o?0:1,this}var r=n(6);t.exports=o},function(t,e){function n(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e}t.exports=n},function(t,e,n){(function(t){var o=n(22),r="object"==typeof e&&e&&!e.nodeType&&e,i=r&&"object"==typeof t&&t&&!t.nodeType&&t,u=i&&i.exports===r,c=u&&o.process,a=function(){try{var t=i&&i.require&&i.require("util").types;return t||c&&c.binding&&c.binding("util")}catch(t){}}();t.exports=a}).call(e,n(14)(t))},function(t,e){function n(t){return r.call(t)}var o=Object.prototype,r=o.toString;t.exports=n},function(t,e){function n(t,e){return function(n){return t(e(n))}}t.exports=n},function(t,e,n){function o(t,e,n){return e=i(void 0===e?t.length-1:e,0),function(){for(var o=arguments,u=-1,c=i(o.length-e,0),a=Array(c);++u0){if(++e>=o)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}var o=800,r=16,i=Date.now;t.exports=n},function(t,e,n){function o(){this.__data__=new r,this.size=0}var r=n(3);t.exports=o},function(t,e){function n(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n}t.exports=n},function(t,e){function n(t){return this.__data__.get(t)}t.exports=n},function(t,e){function n(t){return this.__data__.has(t)}t.exports=n},function(t,e,n){function o(t,e){var n=this.__data__;if(n instanceof r){var o=n.__data__;if(!i||o.length promise.resolve(callback()).then(() => value), - reason => promise.resolve(callback()).then(() => { - throw reason - }) - ) - } -}; - -if (typeof uni !== 'undefined' && uni && uni.requireGlobal) { - const global = uni.requireGlobal() - ArrayBuffer = global.ArrayBuffer - Int8Array = global.Int8Array - Uint8Array = global.Uint8Array - Uint8ClampedArray = global.Uint8ClampedArray - Int16Array = global.Int16Array - Uint16Array = global.Uint16Array - Int32Array = global.Int32Array - Uint32Array = global.Uint32Array - Float32Array = global.Float32Array - Float64Array = global.Float64Array - BigInt64Array = global.BigInt64Array - BigUint64Array = global.BigUint64Array -}; - - -(()=>{var E=Object.create;var g=Object.defineProperty;var _=Object.getOwnPropertyDescriptor;var D=Object.getOwnPropertyNames;var w=Object.getPrototypeOf,v=Object.prototype.hasOwnProperty;var y=(e,a)=>()=>(a||e((a={exports:{}}).exports,a),a.exports);var S=(e,a,s,o)=>{if(a&&typeof a=="object"||typeof a=="function")for(let l of D(a))!v.call(e,l)&&l!==s&&g(e,l,{get:()=>a[l],enumerable:!(o=_(a,l))||o.enumerable});return e};var B=(e,a,s)=>(s=e!=null?E(w(e)):{},S(a||!e||!e.__esModule?g(s,"default",{value:e,enumerable:!0}):s,e));var b=y((N,m)=>{m.exports=Vue});var d={data(){return{locale:"en",fallbackLocale:"en",localization:{en:{done:"OK",cancel:"Cancel"},zh:{done:"\u5B8C\u6210",cancel:"\u53D6\u6D88"},"zh-hans":{},"zh-hant":{},messages:{}},localizationTemplate:{}}},onLoad(){this.initLocale()},created(){this.initLocale()},methods:{initLocale(){if(this.__initLocale)return;this.__initLocale=!0;let e=(plus.webview.currentWebview().extras||{}).data||{};if(e.messages&&(this.localization.messages=e.messages),e.locale){this.locale=e.locale.toLowerCase();return}let a={chs:"hans",cn:"hans",sg:"hans",cht:"hant",tw:"hant",hk:"hant",mo:"hant"},s=plus.os.language.toLowerCase().split("/")[0].replace("_","-").split("-"),o=s[1];o&&(s[1]=a[o]||o),s.length=s.length>2?2:s.length,this.locale=s.join("-")},localize(e){let a=this.locale,s=a.split("-")[0],o=this.fallbackLocale,l=n=>Object.assign({},this.localization[n],(this.localizationTemplate||{})[n]);return l("messages")[e]||l(a)[e]||l(s)[e]||l(o)[e]||e}}},p={onLoad(){this.initMessage()},methods:{initMessage(){let{from:e,callback:a,runtime:s,data:o={},useGlobalEvent:l}=plus.webview.currentWebview().extras||{};this.__from=e,this.__runtime=s,this.__page=plus.webview.currentWebview().id,this.__useGlobalEvent=l,this.data=JSON.parse(JSON.stringify(o)),plus.key.addEventListener("backbutton",()=>{typeof this.onClose=="function"?this.onClose():plus.webview.currentWebview().close("auto")});let n=this,r=function(c){let f=c.data&&c.data.__message;!f||n.__onMessageCallback&&n.__onMessageCallback(f.data)};if(this.__useGlobalEvent)weex.requireModule("globalEvent").addEventListener("plusMessage",r);else{let c=new BroadcastChannel(this.__page);c.onmessage=r}},postMessage(e={},a=!1){let s=JSON.parse(JSON.stringify({__message:{__page:this.__page,data:e,keep:a}})),o=this.__from;if(this.__runtime==="v8")this.__useGlobalEvent?plus.webview.postMessageToUniNView(s,o):new BroadcastChannel(o).postMessage(s);else{let l=plus.webview.getWebviewById(o);l&&l.evalJS(`__plusMessage&&__plusMessage(${JSON.stringify({data:s})})`)}},onMessage(e){this.__onMessageCallback=e}}};var i=B(b());var C=(e,a)=>{let s=e.__vccOpts||e;for(let[o,l]of a)s[o]=l;return s};var k={content:{"":{flex:1,alignItems:"center",justifyContent:"center",backgroundColor:"#000000"}},barcode:{"":{position:"absolute",left:0,top:0,right:0,bottom:0,zIndex:1}},"set-flash":{"":{alignItems:"center",justifyContent:"center",transform:"translateY(80px)",zIndex:2}},"image-flash":{"":{width:26,height:26,marginBottom:2}},"image-flash-text":{"":{fontSize:10,color:"#FFFFFF"}}},t=plus.barcode,A={qrCode:[t.QR,t.AZTEC,t.MAXICODE],barCode:[t.EAN13,t.EAN8,t.UPCA,t.UPCE,t.CODABAR,t.CODE128,t.CODE39,t.CODE93,t.ITF,t.RSS14,t.RSSEXPANDED],datamatrix:[t.DATAMATRIX],pdf417:[t.PDF417]},O={[t.QR]:"QR_CODE",[t.EAN13]:"EAN_13",[t.EAN8]:"EAN_8",[t.DATAMATRIX]:"DATA_MATRIX",[t.UPCA]:"UPC_A",[t.UPCE]:"UPC_E",[t.CODABAR]:"CODABAR",[t.CODE39]:"CODE_39",[t.CODE93]:"CODE_93",[t.CODE128]:"CODE_128",[t.ITF]:"CODE_25",[t.PDF417]:"PDF_417",[t.AZTEC]:"AZTEC",[t.RSS14]:"RSS_14",[t.RSSEXPANDED]:"RSSEXPANDED"},M={mixins:[p,d],data:{filters:[0,2,1],backgroud:"#000000",frameColor:"#118ce9",scanbarColor:"#118ce9",enabledFlash:!1,flashImage0:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAABjklEQVRoQ+1ZbVHEQAx9TwE4ABTcOQAknANQAKcAUAAOAAXgAHAACsDCKQiTmbYDzJZtNt2bFrJ/m6+Xl2yyU2LmhzOPH/8PgIjcADirxNyapNoffMwMiMgzgMPBHmyCLySPLCoBwJKtAbJbYaBmD1yRvBwAtBMxl5DF+DZkiwCIyBLAzsgBbki+Wm2WAlCaL6zOMvKnJO+sNksB7ALQbO1ZHfbIv5FUVs2nCIB6EZETALdmj2mFY5I6X8ynGEADQllYmL1+VzBfnV/VvQB0aj45ARyQ/Ci14QLQsOBZLe5JaikWnzEA7AN4L4hgA2Dpyb76dANwsOCq/TZhASAYKGie0a7R1lDPI0ebtF0NUi+4yfdAtxr3PEMnD6BbD0QkNfACQO05EAwMuaBqDrIVycdmTpwDuP4R0OR7QFftVRP0g+49cwOQq4DJMxAAchmofY3m/EcJBQOZbTRKKJeBKKEoIePvpFRJ1VzmciUccyCa+C81cerBkuuB7sGTE/zt+yhN7AnAqxsAvBn06n8CkyPwMZKwm+UAAAAASUVORK5CYII=",flashImage1:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAMFBMVEUAAAA3kvI3lfY2k/VAl+43k/U3k/Q4k/M3kvI3k/M4k/Q4lPU2lPU2k/Vdq843k/WWSpNKAAAAD3RSTlMAwD+QINCAcPBgUDDgoBAE044kAAAAdklEQVQ4y2OgOrD/DwffUSTkERIfyZXAtOMbca7iVoKDDSgSbAijJqBI8J2HiX9FM2s+TOITmgQrTEIATYIJJuEA5mJ68S+Gg/0hEi0YEoxQK2gs0WyPQyKBGYeEAhPtJRaw45AIccXpwVEJekuwQyQWMFAfAACeDBJY9aXa3QAAAABJRU5ErkJggg==",autoDecodeCharSet:!1,autoZoom:!0,localizationTemplate:{en:{fail:"Recognition failure","flash.on":"Tap to turn light on","flash.off":"Tap to turn light off"},zh:{fail:"\u8BC6\u522B\u5931\u8D25","flash.on":"\u8F7B\u89E6\u7167\u4EAE","flash.off":"\u8F7B\u89E6\u5173\u95ED"}}},onLoad(){let e=this.data,a=e.scanType;this.autoDecodeCharSet=e.autoDecodeCharSet,this.autoZoom=e.autoZoom;let s=[];Array.isArray(a)&&a.length&&a.forEach(o=>{let l=A[o];l&&(s=s.concat(l))}),s.length||(s=s.concat(A.qrCode).concat(A.barCode).concat(A.datamatrix).concat(A.pdf417)),this.filters=s,this.onMessage(o=>{this.gallery()})},onUnload(){this.cancel()},onReady(){setTimeout(()=>{this.cancel(),this.start()},50)},methods:{start(){this.$refs.barcode.start({sound:this.data.sound})},scan(e){t.scan(e,(a,s,o,l)=>{this.scanSuccess(a,s,o,l)},()=>{plus.nativeUI.toast(this.localize("fail"))},this.filters,this.autoDecodeCharSet)},cancel(){this.$refs.barcode.cancel()},gallery(){plus.gallery.pick(e=>{this.scan(e)},e=>{e.code!==(weex.config.env.platform.toLowerCase()==="android"?12:-2)&&plus.nativeUI.toast(this.localize("fail"))},{multiple:!1,system:!1,filename:"_doc/uniapp_temp/gallery/",permissionAlert:!0})},onmarked(e){var a=e.detail;this.scanSuccess(a.code,a.message,a.file,a.charSet)},scanSuccess(e,a,s,o){this.postMessage({event:"marked",detail:{scanType:O[e],result:a,charSet:o||"utf8",path:s||""}})},onerror(e){this.postMessage({event:"fail",message:JSON.stringify(e)})},setFlash(){this.enabledFlash=!this.enabledFlash,this.$refs.barcode.setFlash(this.enabledFlash)}}};function I(e,a,s,o,l,n){return(0,i.openBlock)(),(0,i.createElementBlock)("scroll-view",{scrollY:!0,showScrollbar:!0,enableBackToTop:!0,bubble:"true",style:{flexDirection:"column"}},[(0,i.createElementVNode)("view",{class:"content"},[(0,i.createElementVNode)("barcode",{class:"barcode",ref:"barcode",autostart:"false",backgroud:e.backgroud,frameColor:e.frameColor,scanbarColor:e.scanbarColor,filters:e.filters,autoDecodeCharset:e.autoDecodeCharSet,autoZoom:e.autoZoom,onMarked:a[0]||(a[0]=(...r)=>n.onmarked&&n.onmarked(...r)),onError:a[1]||(a[1]=(...r)=>n.onerror&&n.onerror(...r))},null,40,["backgroud","frameColor","scanbarColor","filters","autoDecodeCharset","autoZoom"]),(0,i.createElementVNode)("view",{class:"set-flash",onClick:a[2]||(a[2]=(...r)=>n.setFlash&&n.setFlash(...r))},[(0,i.createElementVNode)("u-image",{class:"image-flash",src:e.enabledFlash?e.flashImage1:e.flashImage0,resize:"stretch"},null,8,["src"]),(0,i.createElementVNode)("u-text",{class:"image-flash-text"},(0,i.toDisplayString)(e.enabledFlash?e.localize("flash.off"):e.localize("flash.on")),1)])])])}var h=C(M,[["render",I],["styles",[k]]]);var u=plus.webview.currentWebview();if(u){let e=parseInt(u.id),a="template/__uniappscan",s={};try{s=JSON.parse(u.__query__)}catch(l){}h.mpType="page";let o=Vue.createPageApp(h,{$store:getApp({allowDefault:!0}).$store,__pageId:e,__pagePath:a,__pageQuery:s});o.provide("__globalStyles",Vue.useCssStyles([...__uniConfig.styles,...h.styles||[]])),o.mount("#root")}})(); diff --git a/unpackage/dist/dev/app-plus/__uniappsuccess.png b/unpackage/dist/dev/app-plus/__uniappsuccess.png deleted file mode 100644 index c1f5bd7..0000000 Binary files a/unpackage/dist/dev/app-plus/__uniappsuccess.png and /dev/null differ diff --git a/unpackage/dist/dev/app-plus/__uniappview.html b/unpackage/dist/dev/app-plus/__uniappview.html deleted file mode 100644 index 7751e72..0000000 --- a/unpackage/dist/dev/app-plus/__uniappview.html +++ /dev/null @@ -1,24 +0,0 @@ - - - - - View - - - - - - -
- - - - - - diff --git a/unpackage/dist/dev/app-plus/app-config-service.js b/unpackage/dist/dev/app-plus/app-config-service.js deleted file mode 100644 index 82138a0..0000000 --- a/unpackage/dist/dev/app-plus/app-config-service.js +++ /dev/null @@ -1,11 +0,0 @@ - - ;(function(){ - let u=void 0,isReady=false,onReadyCallbacks=[],isServiceReady=false,onServiceReadyCallbacks=[]; - const __uniConfig = {"pages":[],"globalStyle":{"backgroundColor":"#F8F8F8","navigationBar":{"backgroundColor":"#F8F8F8","titleText":"uni-app","type":"default","titleColor":"#000000"},"isNVue":false},"nvue":{"compiler":"uni-app","styleCompiler":"uni-app","flex-direction":"column"},"renderer":"auto","appname":"OfficeSystem","splashscreen":{"alwaysShowBeforeRender":true,"autoclose":true},"compilerVersion":"4.75","entryPagePath":"pages/index/index","entryPageQuery":"","realEntryPagePath":"","networkTimeout":{"request":60000,"connectSocket":60000,"uploadFile":60000,"downloadFile":60000},"locales":{},"darkmode":false,"themeConfig":{}}; - const __uniRoutes = [{"path":"pages/index/index","meta":{"isQuit":true,"isEntry":true,"navigationBar":{"titleText":"首页","type":"default"},"isNVue":false}}].map(uniRoute=>(uniRoute.meta.route=uniRoute.path,__uniConfig.pages.push(uniRoute.path),uniRoute.path='/'+uniRoute.path,uniRoute)); - __uniConfig.styles=[];//styles - __uniConfig.onReady=function(callback){if(__uniConfig.ready){callback()}else{onReadyCallbacks.push(callback)}};Object.defineProperty(__uniConfig,"ready",{get:function(){return isReady},set:function(val){isReady=val;if(!isReady){return}const callbacks=onReadyCallbacks.slice(0);onReadyCallbacks.length=0;callbacks.forEach(function(callback){callback()})}}); - __uniConfig.onServiceReady=function(callback){if(__uniConfig.serviceReady){callback()}else{onServiceReadyCallbacks.push(callback)}};Object.defineProperty(__uniConfig,"serviceReady",{get:function(){return isServiceReady},set:function(val){isServiceReady=val;if(!isServiceReady){return}const callbacks=onServiceReadyCallbacks.slice(0);onServiceReadyCallbacks.length=0;callbacks.forEach(function(callback){callback()})}}); - service.register("uni-app-config",{create(a,b,c){if(!__uniConfig.viewport){var d=b.weex.config.env.scale,e=b.weex.config.env.deviceWidth,f=Math.ceil(e/d);Object.assign(__uniConfig,{viewport:f,defaultFontSize:16})}return{instance:{__uniConfig:__uniConfig,__uniRoutes:__uniRoutes,global:u,window:u,document:u,frames:u,self:u,location:u,navigator:u,localStorage:u,history:u,Caches:u,screen:u,alert:u,confirm:u,prompt:u,fetch:u,XMLHttpRequest:u,WebSocket:u,webkit:u,print:u}}}}); - })(); - \ No newline at end of file diff --git a/unpackage/dist/dev/app-plus/app-config.js b/unpackage/dist/dev/app-plus/app-config.js deleted file mode 100644 index c5168cc..0000000 --- a/unpackage/dist/dev/app-plus/app-config.js +++ /dev/null @@ -1 +0,0 @@ -(function(){})(); \ No newline at end of file diff --git a/unpackage/dist/dev/app-plus/app-service.js b/unpackage/dist/dev/app-plus/app-service.js deleted file mode 100644 index 1033f95..0000000 --- a/unpackage/dist/dev/app-plus/app-service.js +++ /dev/null @@ -1,6622 +0,0 @@ -if (typeof Promise !== "undefined" && !Promise.prototype.finally) { - Promise.prototype.finally = function(callback) { - const promise = this.constructor; - return this.then( - (value) => promise.resolve(callback()).then(() => value), - (reason) => promise.resolve(callback()).then(() => { - throw reason; - }) - ); - }; -} -; -if (typeof uni !== "undefined" && uni && uni.requireGlobal) { - const global = uni.requireGlobal(); - ArrayBuffer = global.ArrayBuffer; - Int8Array = global.Int8Array; - Uint8Array = global.Uint8Array; - Uint8ClampedArray = global.Uint8ClampedArray; - Int16Array = global.Int16Array; - Uint16Array = global.Uint16Array; - Int32Array = global.Int32Array; - Uint32Array = global.Uint32Array; - Float32Array = global.Float32Array; - Float64Array = global.Float64Array; - BigInt64Array = global.BigInt64Array; - BigUint64Array = global.BigUint64Array; -} -; -if (uni.restoreGlobal) { - uni.restoreGlobal(Vue, weex, plus, setTimeout, clearTimeout, setInterval, clearInterval); -} -(function(vue) { - "use strict"; - var _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x; - function formatAppLog(type, filename, ...args) { - if (uni.__log__) { - uni.__log__(type, filename, ...args); - } else { - console[type].apply(console, [...args, filename]); - } - } - function resolveEasycom(component, easycom) { - return typeof component === "string" ? easycom : component; - } - const mpMixin = {}; - function email(value) { - return /^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/.test(value); - } - function mobile(value) { - return /^1([3589]\d|4[5-9]|6[1-2,4-7]|7[0-8])\d{8}$/.test(value); - } - function url(value) { - return /^((https|http|ftp|rtsp|mms):\/\/)(([0-9a-zA-Z_!~*'().&=+$%-]+: )?[0-9a-zA-Z_!~*'().&=+$%-]+@)?(([0-9]{1,3}.){3}[0-9]{1,3}|([0-9a-zA-Z_!~*'()-]+.)*([0-9a-zA-Z][0-9a-zA-Z-]{0,61})?[0-9a-zA-Z].[a-zA-Z]{2,6})(:[0-9]{1,4})?((\/?)|(\/[0-9a-zA-Z_!~*'().;?:@&=+$,%#-]+)+\/?)$/.test(value); - } - function date(value) { - if (!value) - return false; - if (number(value)) - value = +value; - return !/Invalid|NaN/.test(new Date(value).toString()); - } - function dateISO(value) { - return /^\d{4}[\/\-](0?[1-9]|1[012])[\/\-](0?[1-9]|[12][0-9]|3[01])$/.test(value); - } - function number(value) { - return /^[\+-]?(\d+\.?\d*|\.\d+|\d\.\d+e\+\d+)$/.test(value); - } - function string(value) { - return typeof value === "string"; - } - function digits(value) { - return /^\d+$/.test(value); - } - function idCard(value) { - return /^[1-9]\d{5}[1-9]\d{3}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])\d{3}([0-9]|X)$/.test( - value - ); - } - function carNo(value) { - const xreg = /^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}(([0-9]{5}[DF]$)|([DF][A-HJ-NP-Z0-9][0-9]{4}$))/; - const creg = /^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}[A-HJ-NP-Z0-9]{4}[A-HJ-NP-Z0-9挂学警港澳]{1}$/; - if (value.length === 7) { - return creg.test(value); - } - if (value.length === 8) { - return xreg.test(value); - } - return false; - } - function amount(value) { - return /^[1-9]\d*(,\d{3})*(\.\d{1,2})?$|^0\.\d{1,2}$/.test(value); - } - function chinese(value) { - const reg = /^[\u4e00-\u9fa5]+$/gi; - return reg.test(value); - } - function letter(value) { - return /^[a-zA-Z]*$/.test(value); - } - function enOrNum(value) { - const reg = /^[0-9a-zA-Z]*$/g; - return reg.test(value); - } - function contains(value, param) { - return value.indexOf(param) >= 0; - } - function range$1(value, param) { - return value >= param[0] && value <= param[1]; - } - function rangeLength(value, param) { - return value.length >= param[0] && value.length <= param[1]; - } - function landline(value) { - const reg = /^\d{3,4}-\d{7,8}(-\d{3,4})?$/; - return reg.test(value); - } - function empty(value) { - switch (typeof value) { - case "undefined": - return true; - case "string": - if (value.replace(/(^[ \t\n\r]*)|([ \t\n\r]*$)/g, "").length == 0) - return true; - break; - case "boolean": - if (!value) - return true; - break; - case "number": - if (value === 0 || isNaN(value)) - return true; - break; - case "object": - if (value === null || value.length === 0) - return true; - for (const i in value) { - return false; - } - return true; - } - return false; - } - function jsonString(value) { - if (typeof value === "string") { - try { - const obj = JSON.parse(value); - if (typeof obj === "object" && obj) { - return true; - } - return false; - } catch (e) { - return false; - } - } - return false; - } - function array(value) { - if (typeof Array.isArray === "function") { - return Array.isArray(value); - } - return Object.prototype.toString.call(value) === "[object Array]"; - } - function object(value) { - return Object.prototype.toString.call(value) === "[object Object]"; - } - function code(value, len = 6) { - return new RegExp(`^\\d{${len}}$`).test(value); - } - function func(value) { - return typeof value === "function"; - } - function promise(value) { - return object(value) && func(value.then) && func(value.catch); - } - function image(value) { - const newValue = value.split("?")[0]; - const IMAGE_REGEXP = /\.(jpeg|jpg|gif|png|svg|webp|jfif|bmp|dpg)/i; - return IMAGE_REGEXP.test(newValue); - } - function video(value) { - const VIDEO_REGEXP = /\.(mp4|mpg|mpeg|dat|asf|avi|rm|rmvb|mov|wmv|flv|mkv|m3u8)/i; - return VIDEO_REGEXP.test(value); - } - function regExp(o) { - return o && Object.prototype.toString.call(o) === "[object RegExp]"; - } - const test = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ - __proto__: null, - amount, - array, - carNo, - chinese, - code, - contains, - date, - dateISO, - digits, - email, - empty, - enOrNum, - func, - idCard, - image, - jsonString, - landline, - letter, - mobile, - number, - object, - promise, - range: range$1, - rangeLength, - regExp, - string, - url, - video - }, Symbol.toStringTag, { value: "Module" })); - function strip(num, precision = 15) { - return +parseFloat(Number(num).toPrecision(precision)); - } - function digitLength(num) { - const eSplit = num.toString().split(/[eE]/); - const len = (eSplit[0].split(".")[1] || "").length - +(eSplit[1] || 0); - return len > 0 ? len : 0; - } - function float2Fixed(num) { - if (num.toString().indexOf("e") === -1) { - return Number(num.toString().replace(".", "")); - } - const dLen = digitLength(num); - return dLen > 0 ? strip(Number(num) * Math.pow(10, dLen)) : Number(num); - } - function checkBoundary(num) { - { - if (num > Number.MAX_SAFE_INTEGER || num < Number.MIN_SAFE_INTEGER) { - formatAppLog("warn", "at node_modules/@climblee/uv-ui/libs/function/digit.js:45", `${num} 超出了精度限制,结果可能不正确`); - } - } - } - function iteratorOperation(arr, operation) { - const [num1, num2, ...others] = arr; - let res = operation(num1, num2); - others.forEach((num) => { - res = operation(res, num); - }); - return res; - } - function times(...nums) { - if (nums.length > 2) { - return iteratorOperation(nums, times); - } - const [num1, num2] = nums; - const num1Changed = float2Fixed(num1); - const num2Changed = float2Fixed(num2); - const baseNum = digitLength(num1) + digitLength(num2); - const leftValue = num1Changed * num2Changed; - checkBoundary(leftValue); - return leftValue / Math.pow(10, baseNum); - } - function divide(...nums) { - if (nums.length > 2) { - return iteratorOperation(nums, divide); - } - const [num1, num2] = nums; - const num1Changed = float2Fixed(num1); - const num2Changed = float2Fixed(num2); - checkBoundary(num1Changed); - checkBoundary(num2Changed); - return times(num1Changed / num2Changed, strip(Math.pow(10, digitLength(num2) - digitLength(num1)))); - } - function round(num, ratio) { - const base = Math.pow(10, ratio); - let result = divide(Math.round(Math.abs(times(num, base))), base); - if (num < 0 && result !== 0) { - result = times(result, -1); - } - return result; - } - function range(min = 0, max = 0, value = 0) { - return Math.max(min, Math.min(max, Number(value))); - } - function getPx(value, unit = false) { - if (number(value)) { - return unit ? `${value}px` : Number(value); - } - if (/(rpx|upx)$/.test(value)) { - return unit ? `${uni.upx2px(parseInt(value))}px` : Number(uni.upx2px(parseInt(value))); - } - return unit ? `${parseInt(value)}px` : parseInt(value); - } - function sleep(value = 30) { - return new Promise((resolve) => { - setTimeout(() => { - resolve(); - }, value); - }); - } - function os() { - return uni.getSystemInfoSync().platform.toLowerCase(); - } - function sys() { - return uni.getSystemInfoSync(); - } - function random(min, max) { - if (min >= 0 && max > 0 && max >= min) { - const gab = max - min + 1; - return Math.floor(Math.random() * gab + min); - } - return 0; - } - function guid(len = 32, firstU = true, radix = null) { - const chars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split(""); - const uuid = []; - radix = radix || chars.length; - if (len) { - for (let i = 0; i < len; i++) - uuid[i] = chars[0 | Math.random() * radix]; - } else { - let r; - uuid[8] = uuid[13] = uuid[18] = uuid[23] = "-"; - uuid[14] = "4"; - for (let i = 0; i < 36; i++) { - if (!uuid[i]) { - r = 0 | Math.random() * 16; - uuid[i] = chars[i == 19 ? r & 3 | 8 : r]; - } - } - } - if (firstU) { - uuid.shift(); - return `u${uuid.join("")}`; - } - return uuid.join(""); - } - function $parent(name = void 0) { - let parent = this.$parent; - while (parent) { - if (parent.$options && parent.$options.name !== name) { - parent = parent.$parent; - } else { - return parent; - } - } - return false; - } - function addStyle(customStyle, target = "object") { - if (empty(customStyle) || typeof customStyle === "object" && target === "object" || target === "string" && typeof customStyle === "string") { - return customStyle; - } - if (target === "object") { - customStyle = trim(customStyle); - const styleArray = customStyle.split(";"); - const style = {}; - for (let i = 0; i < styleArray.length; i++) { - if (styleArray[i]) { - const item = styleArray[i].split(":"); - style[trim(item[0])] = trim(item[1]); - } - } - return style; - } - let string2 = ""; - for (const i in customStyle) { - const key = i.replace(/([A-Z])/g, "-$1").toLowerCase(); - string2 += `${key}:${customStyle[i]};`; - } - return trim(string2); - } - function addUnit(value = "auto", unit = ((_b) => (_b = ((_a) => (_a = uni == null ? void 0 : uni.$uv) == null ? void 0 : _a.config)()) == null ? void 0 : _b.unit)() ? ((_d) => (_d = ((_c) => (_c = uni == null ? void 0 : uni.$uv) == null ? void 0 : _c.config)()) == null ? void 0 : _d.unit)() : "px") { - value = String(value); - return number(value) ? `${value}${unit}` : value; - } - function deepClone(obj, cache = /* @__PURE__ */ new WeakMap()) { - if (obj === null || typeof obj !== "object") - return obj; - if (cache.has(obj)) - return cache.get(obj); - let clone2; - if (obj instanceof Date) { - clone2 = new Date(obj.getTime()); - } else if (obj instanceof RegExp) { - clone2 = new RegExp(obj); - } else if (obj instanceof Map) { - clone2 = new Map(Array.from(obj, ([key, value]) => [key, deepClone(value, cache)])); - } else if (obj instanceof Set) { - clone2 = new Set(Array.from(obj, (value) => deepClone(value, cache))); - } else if (Array.isArray(obj)) { - clone2 = obj.map((value) => deepClone(value, cache)); - } else if (Object.prototype.toString.call(obj) === "[object Object]") { - clone2 = Object.create(Object.getPrototypeOf(obj)); - cache.set(obj, clone2); - for (const [key, value] of Object.entries(obj)) { - clone2[key] = deepClone(value, cache); - } - } else { - clone2 = Object.assign({}, obj); - } - cache.set(obj, clone2); - return clone2; - } - function deepMerge$1(target = {}, source = {}) { - target = deepClone(target); - if (typeof target !== "object" || target === null || typeof source !== "object" || source === null) - return target; - const merged = Array.isArray(target) ? target.slice() : Object.assign({}, target); - for (const prop in source) { - if (!source.hasOwnProperty(prop)) - continue; - const sourceValue = source[prop]; - const targetValue = merged[prop]; - if (sourceValue instanceof Date) { - merged[prop] = new Date(sourceValue); - } else if (sourceValue instanceof RegExp) { - merged[prop] = new RegExp(sourceValue); - } else if (sourceValue instanceof Map) { - merged[prop] = new Map(sourceValue); - } else if (sourceValue instanceof Set) { - merged[prop] = new Set(sourceValue); - } else if (typeof sourceValue === "object" && sourceValue !== null) { - merged[prop] = deepMerge$1(targetValue, sourceValue); - } else { - merged[prop] = sourceValue; - } - } - return merged; - } - function error(err) { - { - formatAppLog("error", "at node_modules/@climblee/uv-ui/libs/function/index.js:250", `uvui提示:${err}`); - } - } - function randomArray(array2 = []) { - return array2.sort(() => Math.random() - 0.5); - } - if (!String.prototype.padStart) { - String.prototype.padStart = function(maxLength, fillString = " ") { - if (Object.prototype.toString.call(fillString) !== "[object String]") { - throw new TypeError( - "fillString must be String" - ); - } - const str = this; - if (str.length >= maxLength) - return String(str); - const fillLength = maxLength - str.length; - let times2 = Math.ceil(fillLength / fillString.length); - while (times2 >>= 1) { - fillString += fillString; - if (times2 === 1) { - fillString += fillString; - } - } - return fillString.slice(0, fillLength) + str; - }; - } - function timeFormat(dateTime = null, formatStr = "yyyy-mm-dd") { - let date2; - if (!dateTime) { - date2 = /* @__PURE__ */ new Date(); - } else if (/^\d{10}$/.test(dateTime == null ? void 0 : dateTime.toString().trim())) { - date2 = new Date(dateTime * 1e3); - } else if (typeof dateTime === "string" && /^\d+$/.test(dateTime.trim())) { - date2 = new Date(Number(dateTime)); - } else if (typeof dateTime === "string" && dateTime.includes("-") && !dateTime.includes("T")) { - date2 = new Date(dateTime.replace(/-/g, "/")); - } else { - date2 = new Date(dateTime); - } - const timeSource = { - "y": date2.getFullYear().toString(), - // 年 - "m": (date2.getMonth() + 1).toString().padStart(2, "0"), - // 月 - "d": date2.getDate().toString().padStart(2, "0"), - // 日 - "h": date2.getHours().toString().padStart(2, "0"), - // 时 - "M": date2.getMinutes().toString().padStart(2, "0"), - // 分 - "s": date2.getSeconds().toString().padStart(2, "0") - // 秒 - // 有其他格式化字符需求可以继续添加,必须转化成字符串 - }; - for (const key in timeSource) { - const [ret] = new RegExp(`${key}+`).exec(formatStr) || []; - if (ret) { - const beginIndex = key === "y" && ret.length === 2 ? 2 : 0; - formatStr = formatStr.replace(ret, timeSource[key].slice(beginIndex)); - } - } - return formatStr; - } - function timeFrom(timestamp = null, format = "yyyy-mm-dd") { - if (timestamp == null) - timestamp = Number(/* @__PURE__ */ new Date()); - timestamp = parseInt(timestamp); - if (timestamp.toString().length == 10) - timestamp *= 1e3; - let timer = (/* @__PURE__ */ new Date()).getTime() - timestamp; - timer = parseInt(timer / 1e3); - let tips = ""; - switch (true) { - case timer < 300: - tips = "刚刚"; - break; - case (timer >= 300 && timer < 3600): - tips = `${parseInt(timer / 60)}分钟前`; - break; - case (timer >= 3600 && timer < 86400): - tips = `${parseInt(timer / 3600)}小时前`; - break; - case (timer >= 86400 && timer < 2592e3): - tips = `${parseInt(timer / 86400)}天前`; - break; - default: - if (format === false) { - if (timer >= 2592e3 && timer < 365 * 86400) { - tips = `${parseInt(timer / (86400 * 30))}个月前`; - } else { - tips = `${parseInt(timer / (86400 * 365))}年前`; - } - } else { - tips = timeFormat(timestamp, format); - } - } - return tips; - } - function trim(str, pos = "both") { - str = String(str); - if (pos == "both") { - return str.replace(/^\s+|\s+$/g, ""); - } - if (pos == "left") { - return str.replace(/^\s*/, ""); - } - if (pos == "right") { - return str.replace(/(\s*$)/g, ""); - } - if (pos == "all") { - return str.replace(/\s+/g, ""); - } - return str; - } - function queryParams(data = {}, isPrefix = true, arrayFormat = "brackets") { - const prefix = isPrefix ? "?" : ""; - const _result = []; - if (["indices", "brackets", "repeat", "comma"].indexOf(arrayFormat) == -1) - arrayFormat = "brackets"; - for (const key in data) { - const value = data[key]; - if (["", void 0, null].indexOf(value) >= 0) { - continue; - } - if (value.constructor === Array) { - switch (arrayFormat) { - case "indices": - for (let i = 0; i < value.length; i++) { - _result.push(`${key}[${i}]=${value[i]}`); - } - break; - case "brackets": - value.forEach((_value) => { - _result.push(`${key}[]=${_value}`); - }); - break; - case "repeat": - value.forEach((_value) => { - _result.push(`${key}=${_value}`); - }); - break; - case "comma": - let commaStr = ""; - value.forEach((_value) => { - commaStr += (commaStr ? "," : "") + _value; - }); - _result.push(`${key}=${commaStr}`); - break; - default: - value.forEach((_value) => { - _result.push(`${key}[]=${_value}`); - }); - } - } else { - _result.push(`${key}=${value}`); - } - } - return _result.length ? prefix + _result.join("&") : ""; - } - function toast(title, duration = 2e3) { - uni.showToast({ - title: String(title), - icon: "none", - duration - }); - } - function type2icon(type = "success", fill = false) { - if (["primary", "info", "error", "warning", "success"].indexOf(type) == -1) - type = "success"; - let iconName = ""; - switch (type) { - case "primary": - iconName = "info-circle"; - break; - case "info": - iconName = "info-circle"; - break; - case "error": - iconName = "close-circle"; - break; - case "warning": - iconName = "error-circle"; - break; - case "success": - iconName = "checkmark-circle"; - break; - default: - iconName = "checkmark-circle"; - } - if (fill) - iconName += "-fill"; - return iconName; - } - function priceFormat(number2, decimals = 0, decimalPoint = ".", thousandsSeparator = ",") { - number2 = `${number2}`.replace(/[^0-9+-Ee.]/g, ""); - const n = !isFinite(+number2) ? 0 : +number2; - const prec = !isFinite(+decimals) ? 0 : Math.abs(decimals); - const sep = typeof thousandsSeparator === "undefined" ? "," : thousandsSeparator; - const dec = typeof decimalPoint === "undefined" ? "." : decimalPoint; - let s = ""; - s = (prec ? round(n, prec) + "" : `${Math.round(n)}`).split("."); - const re = /(-?\d+)(\d{3})/; - while (re.test(s[0])) { - s[0] = s[0].replace(re, `$1${sep}$2`); - } - if ((s[1] || "").length < prec) { - s[1] = s[1] || ""; - s[1] += new Array(prec - s[1].length + 1).join("0"); - } - return s.join(dec); - } - function getDuration(value, unit = true) { - const valueNum = parseInt(value); - if (unit) { - if (/s$/.test(value)) - return value; - return value > 30 ? `${value}ms` : `${value}s`; - } - if (/ms$/.test(value)) - return valueNum; - if (/s$/.test(value)) - return valueNum > 30 ? valueNum : valueNum * 1e3; - return valueNum; - } - function padZero(value) { - return `00${value}`.slice(-2); - } - function formValidate(instance, event) { - const formItem = $parent.call(instance, "uv-form-item"); - const form = $parent.call(instance, "uv-form"); - if (formItem && form) { - form.validateField(formItem.prop, () => { - }, event); - } - } - function getProperty(obj, key) { - if (!obj) { - return; - } - if (typeof key !== "string" || key === "") { - return ""; - } - if (key.indexOf(".") !== -1) { - const keys = key.split("."); - let firstObj = obj[keys[0]] || {}; - for (let i = 1; i < keys.length; i++) { - if (firstObj) { - firstObj = firstObj[keys[i]]; - } - } - return firstObj; - } - return obj[key]; - } - function setProperty(obj, key, value) { - if (!obj) { - return; - } - const inFn = function(_obj, keys, v) { - if (keys.length === 1) { - _obj[keys[0]] = v; - return; - } - while (keys.length > 1) { - const k = keys[0]; - if (!_obj[k] || typeof _obj[k] !== "object") { - _obj[k] = {}; - } - keys.shift(); - inFn(_obj[k], keys, v); - } - }; - if (typeof key !== "string" || key === "") - ; - else if (key.indexOf(".") !== -1) { - const keys = key.split("."); - inFn(obj, keys, value); - } else { - obj[key] = value; - } - } - function page() { - var _a; - const pages2 = getCurrentPages(); - const route2 = (_a = pages2[pages2.length - 1]) == null ? void 0 : _a.route; - return `/${route2 ? route2 : ""}`; - } - function pages() { - const pages2 = getCurrentPages(); - return pages2; - } - function getHistoryPage(back = 0) { - const pages2 = getCurrentPages(); - const len = pages2.length; - return pages2[len - 1 + back]; - } - function setConfig({ - props: props2 = {}, - config: config2 = {}, - color = {}, - zIndex = {} - }) { - const { - deepMerge: deepMerge2 - } = uni.$uv; - uni.$uv.config = deepMerge2(uni.$uv.config, config2); - uni.$uv.props = deepMerge2(uni.$uv.props, props2); - uni.$uv.color = deepMerge2(uni.$uv.color, color); - uni.$uv.zIndex = deepMerge2(uni.$uv.zIndex, zIndex); - } - const index = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ - __proto__: null, - $parent, - addStyle, - addUnit, - deepClone, - deepMerge: deepMerge$1, - error, - formValidate, - getDuration, - getHistoryPage, - getProperty, - getPx, - guid, - os, - padZero, - page, - pages, - priceFormat, - queryParams, - random, - randomArray, - range, - setConfig, - setProperty, - sleep, - sys, - timeFormat, - timeFrom, - toast, - trim, - type2icon - }, Symbol.toStringTag, { value: "Module" })); - class Router { - constructor() { - this.config = { - type: "navigateTo", - url: "", - delta: 1, - // navigateBack页面后退时,回退的层数 - params: {}, - // 传递的参数 - animationType: "pop-in", - // 窗口动画,只在APP有效 - animationDuration: 300, - // 窗口动画持续时间,单位毫秒,只在APP有效 - intercept: false, - // 是否需要拦截 - events: {} - // 页面间通信接口,用于监听被打开页面发送到当前页面的数据。hbuilderx 2.8.9+ 开始支持。 - }; - this.route = this.route.bind(this); - } - // 判断url前面是否有"/",如果没有则加上,否则无法跳转 - addRootPath(url2) { - return url2[0] === "/" ? url2 : `/${url2}`; - } - // 整合路由参数 - mixinParam(url2, params) { - url2 = url2 && this.addRootPath(url2); - let query = ""; - if (/.*\/.*\?.*=.*/.test(url2)) { - query = queryParams(params, false); - return url2 += `&${query}`; - } - query = queryParams(params); - return url2 += query; - } - // 对外的方法名称 - async route(options = {}, params = {}) { - let mergeConfig2 = {}; - if (typeof options === "string") { - mergeConfig2.url = this.mixinParam(options, params); - mergeConfig2.type = "navigateTo"; - } else { - mergeConfig2 = deepMerge$1(this.config, options); - mergeConfig2.url = this.mixinParam(options.url, options.params); - } - if (mergeConfig2.url === page()) - return; - if (params.intercept) { - mergeConfig2.intercept = params.intercept; - } - mergeConfig2.params = params; - mergeConfig2 = deepMerge$1(this.config, mergeConfig2); - if (typeof mergeConfig2.intercept === "function") { - const isNext = await new Promise((resolve, reject) => { - mergeConfig2.intercept(mergeConfig2, resolve); - }); - isNext && this.openPage(mergeConfig2); - } else { - this.openPage(mergeConfig2); - } - } - // 执行路由跳转 - openPage(config2) { - const { - url: url2, - type, - delta, - animationType, - animationDuration, - events - } = config2; - if (config2.type == "navigateTo" || config2.type == "to") { - uni.navigateTo({ - url: url2, - animationType, - animationDuration, - events - }); - } - if (config2.type == "redirectTo" || config2.type == "redirect") { - uni.redirectTo({ - url: url2 - }); - } - if (config2.type == "switchTab" || config2.type == "tab") { - uni.switchTab({ - url: url2 - }); - } - if (config2.type == "reLaunch" || config2.type == "launch") { - uni.reLaunch({ - url: url2 - }); - } - if (config2.type == "navigateBack" || config2.type == "back") { - uni.navigateBack({ - delta - }); - } - } - } - const route = new Router().route; - let timeout = null; - function debounce(func2, wait = 500, immediate = false) { - if (timeout !== null) - clearTimeout(timeout); - if (immediate) { - const callNow = !timeout; - timeout = setTimeout(() => { - timeout = null; - }, wait); - if (callNow) - typeof func2 === "function" && func2(); - } else { - timeout = setTimeout(() => { - typeof func2 === "function" && func2(); - }, wait); - } - } - let flag; - function throttle(func2, wait = 500, immediate = true) { - if (immediate) { - if (!flag) { - flag = true; - typeof func2 === "function" && func2(); - setTimeout(() => { - flag = false; - }, wait); - } - } else if (!flag) { - flag = true; - setTimeout(() => { - flag = false; - typeof func2 === "function" && func2(); - }, wait); - } - } - const mixin = { - // 定义每个组件都可能需要用到的外部样式以及类名 - props: { - // 每个组件都有的父组件传递的样式,可以为字符串或者对象形式 - customStyle: { - type: [Object, String], - default: () => ({}) - }, - customClass: { - type: String, - default: "" - }, - // 跳转的页面路径 - url: { - type: String, - default: "" - }, - // 页面跳转的类型 - linkType: { - type: String, - default: "navigateTo" - } - }, - data() { - return {}; - }, - onLoad() { - this.$uv.getRect = this.$uvGetRect; - }, - created() { - this.$uv.getRect = this.$uvGetRect; - }, - computed: { - $uv() { - var _a, _b; - return { - ...index, - test, - route, - debounce, - throttle, - unit: (_b = (_a = uni == null ? void 0 : uni.$uv) == null ? void 0 : _a.config) == null ? void 0 : _b.unit - }; - }, - /** - * 生成bem规则类名 - * 由于微信小程序,H5,nvue之间绑定class的差异,无法通过:class="[bem()]"的形式进行同用 - * 故采用如下折中做法,最后返回的是数组(一般平台)或字符串(支付宝和字节跳动平台),类似['a', 'b', 'c']或'a b c'的形式 - * @param {String} name 组件名称 - * @param {Array} fixed 一直会存在的类名 - * @param {Array} change 会根据变量值为true或者false而出现或者隐藏的类名 - * @returns {Array|string} - */ - bem() { - return function(name, fixed, change) { - const prefix = `uv-${name}--`; - const classes = {}; - if (fixed) { - fixed.map((item) => { - classes[prefix + this[item]] = true; - }); - } - if (change) { - change.map((item) => { - this[item] ? classes[prefix + item] = this[item] : delete classes[prefix + item]; - }); - } - return Object.keys(classes); - }; - } - }, - methods: { - // 跳转某一个页面 - openPage(urlKey = "url") { - const url2 = this[urlKey]; - if (url2) { - uni[this.linkType]({ - url: url2 - }); - } - }, - // 查询节点信息 - // 目前此方法在支付宝小程序中无法获取组件跟接点的尺寸,为支付宝的bug(2020-07-21) - // 解决办法为在组件根部再套一个没有任何作用的view元素 - $uvGetRect(selector, all) { - return new Promise((resolve) => { - uni.createSelectorQuery().in(this)[all ? "selectAll" : "select"](selector).boundingClientRect((rect) => { - if (all && Array.isArray(rect) && rect.length) { - resolve(rect); - } - if (!all && rect) { - resolve(rect); - } - }).exec(); - }); - }, - getParentData(parentName = "") { - if (!this.parent) - this.parent = {}; - this.parent = this.$uv.$parent.call(this, parentName); - if (this.parent.children) { - this.parent.children.indexOf(this) === -1 && this.parent.children.push(this); - } - if (this.parent && this.parentData) { - Object.keys(this.parentData).map((key) => { - this.parentData[key] = this.parent[key]; - }); - } - }, - // 阻止事件冒泡 - preventEvent(e) { - e && typeof e.stopPropagation === "function" && e.stopPropagation(); - }, - // 空操作 - noop(e) { - this.preventEvent(e); - } - }, - onReachBottom() { - uni.$emit("uvOnReachBottom"); - }, - beforeDestroy() { - if (this.parent && array(this.parent.children)) { - const childrenList = this.parent.children; - childrenList.map((child, index2) => { - if (child === this) { - childrenList.splice(index2, 1); - } - }); - } - }, - // 兼容vue3 - unmounted() { - if (this.parent && array(this.parent.children)) { - const childrenList = this.parent.children; - childrenList.map((child, index2) => { - if (child === this) { - childrenList.splice(index2, 1); - } - }); - } - } - }; - const uvBadgeProps = { - props: { - // 是否显示圆点 - isDot: { - type: Boolean, - default: false - }, - // 显示的内容 - value: { - type: [Number, String], - default: "" - }, - // 是否显示 - show: { - type: Boolean, - default: true - }, - // 最大值,超过最大值会显示 '{max}+' - max: { - type: [Number, String], - default: 999 - }, - // 主题类型,error|warning|success|primary - type: { - type: [String, void 0, null], - default: "error" - }, - // 当数值为 0 时,是否展示 Badge - showZero: { - type: Boolean, - default: false - }, - // 背景颜色,优先级比type高,如设置,type参数会失效 - bgColor: { - type: [String, null], - default: null - }, - // 字体颜色 - color: { - type: [String, null], - default: null - }, - // 徽标形状,circle-四角均为圆角,horn-左下角为直角 - shape: { - type: [String, void 0, null], - default: "circle" - }, - // 设置数字的显示方式,overflow|ellipsis|limit - // overflow会根据max字段判断,超出显示`${max}+` - // ellipsis会根据max判断,超出显示`${max}...` - // limit会依据1000作为判断条件,超出1000,显示`${value/1000}K`,比如2.2k、3.34w,最多保留2位小数 - numberType: { - type: [String, void 0, null], - default: "overflow" - }, - // 设置badge的位置偏移,格式为 [x, y],也即设置的为top和right的值,absolute为true时有效 - offset: { - type: Array, - default: () => [] - }, - // 是否反转背景和字体颜色 - inverted: { - type: Boolean, - default: false - }, - // 是否绝对定位 - absolute: { - type: Boolean, - default: false - }, - ...(_f = (_e = uni.$uv) == null ? void 0 : _e.props) == null ? void 0 : _f.badge - } - }; - const _export_sfc = (sfc, props2) => { - const target = sfc.__vccOpts || sfc; - for (const [key, val] of props2) { - target[key] = val; - } - return target; - }; - const _sfc_main$g = { - name: "uv-badge", - mixins: [mpMixin, mixin, uvBadgeProps], - computed: { - // 是否将badge中心与父组件右上角重合 - boxStyle() { - let style = {}; - return style; - }, - // 整个组件的样式 - badgeStyle() { - const style = {}; - if (this.color) { - style.color = this.color; - } - if (this.bgColor && !this.inverted) { - style.backgroundColor = this.bgColor; - } - if (this.absolute) { - style.position = "absolute"; - if (this.offset.length) { - const top = this.offset[0]; - const right = this.offset[1] || top; - style.top = this.$uv.addUnit(top); - style.right = this.$uv.addUnit(right); - } - } - return style; - }, - showValue() { - switch (this.numberType) { - case "overflow": - return Number(this.value) > Number(this.max) ? this.max + "+" : this.value; - case "ellipsis": - return Number(this.value) > Number(this.max) ? "..." : this.value; - case "limit": - return Number(this.value) > 999 ? Number(this.value) >= 9999 ? Math.floor(this.value / 1e4 * 100) / 100 + "w" : Math.floor(this.value / 1e3 * 100) / 100 + "k" : this.value; - default: - return Number(this.value); - } - }, - propsType() { - return this.type || "error"; - } - } - }; - function _sfc_render$f(_ctx, _cache, $props, $setup, $data, $options) { - return _ctx.show && ((Number(_ctx.value) === 0 ? _ctx.showZero : true) || _ctx.isDot) ? (vue.openBlock(), vue.createElementBlock( - "text", - { - key: 0, - class: vue.normalizeClass([[_ctx.isDot ? "uv-badge--dot" : "uv-badge--not-dot", _ctx.inverted && "uv-badge--inverted", _ctx.shape === "horn" && "uv-badge--horn", `uv-badge--${$options.propsType}${_ctx.inverted ? "--inverted" : ""}`], "uv-badge"]), - style: vue.normalizeStyle([_ctx.$uv.addStyle(_ctx.customStyle), $options.badgeStyle]) - }, - vue.toDisplayString(_ctx.isDot ? "" : $options.showValue), - 7 - /* TEXT, CLASS, STYLE */ - )) : vue.createCommentVNode("v-if", true); - } - const __easycom_1$3 = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["render", _sfc_render$f], ["__scopeId", "data-v-747d4365"], ["__file", "D:/frontDev/project/OfficeSystem/node_modules/@climblee/uv-ui/components/uv-badge/uv-badge.vue"]]); - const props$8 = { - props: { - // 滑块的移动过渡时间,单位ms - duration: { - type: Number, - default: 300 - }, - // tabs标签数组 - list: { - type: Array, - default: () => [] - }, - // 滑块颜色 - lineColor: { - type: String, - default: "#3c9cff" - }, - // 菜单选择中时的样式 - activeStyle: { - type: [String, Object], - default: () => ({ - color: "#303133" - }) - }, - // 菜单非选中时的样式 - inactiveStyle: { - type: [String, Object], - default: () => ({ - color: "#606266" - }) - }, - // 滑块长度 - lineWidth: { - type: [String, Number], - default: 20 - }, - // 滑块高度 - lineHeight: { - type: [String, Number], - default: 3 - }, - // 滑块背景显示大小,当滑块背景设置为图片时使用 - lineBgSize: { - type: String, - default: "cover" - }, - // 菜单item的样式 - itemStyle: { - type: [String, Object], - default: () => ({ - height: "44px" - }) - }, - // 菜单是否可滚动 - scrollable: { - type: Boolean, - default: true - }, - // 当前选中标签的索引 - current: { - type: [Number, String], - default: 0 - }, - // 默认读取的键名 - keyName: { - type: String, - default: "name" - }, - ...(_h = (_g = uni.$uv) == null ? void 0 : _g.props) == null ? void 0 : _h.tabs - } - }; - const _sfc_main$f = { - name: "uv-tabs", - emits: ["click", "change"], - mixins: [mpMixin, mixin, props$8], - data() { - return { - firstTime: true, - scrollLeft: 0, - scrollViewWidth: 0, - lineOffsetLeft: 0, - tabsRect: { - left: 0 - }, - innerCurrent: 0, - moving: false - }; - }, - watch: { - current: { - immediate: true, - handler(newValue, oldValue) { - if (newValue !== this.innerCurrent) { - this.innerCurrent = newValue; - this.$nextTick(() => { - this.resize(); - }); - } - } - }, - // list变化时,重新渲染list各项信息 - list() { - this.$nextTick(() => { - this.resize(); - }); - } - }, - computed: { - textStyle() { - return (index2) => { - const style = {}; - const customeStyle = index2 == this.innerCurrent ? this.$uv.addStyle(this.activeStyle) : this.$uv.addStyle( - this.inactiveStyle - ); - if (this.list[index2].disabled) { - style.color = "#c8c9cc"; - } - return this.$uv.deepMerge(customeStyle, style); - }; - }, - propsBadge() { - return uvBadgeProps; - } - }, - async mounted() { - this.init(); - }, - methods: { - setLineLeft() { - const tabItem = this.list[this.innerCurrent]; - if (!tabItem) { - return; - } - let lineOffsetLeft = this.list.slice(0, this.innerCurrent).reduce((total, curr) => total + curr.rect.width, 0); - let lineWidth = this.$uv.getPx(this.lineWidth); - if (this.$uv.test.number(this.lineWidth) && this.$uv.unit) { - lineWidth = this.$uv.getPx(`${this.lineWidth}${this.$uv.unit}`); - } - this.lineOffsetLeft = lineOffsetLeft + (tabItem.rect.width - lineWidth) / 2; - if (this.firstTime) { - setTimeout(() => { - this.firstTime = false; - }, 20); - } - }, - // nvue下设置滑块的位置 - animation(x, duration = 0) { - }, - // 点击某一个标签 - clickHandler(item, index2) { - this.$emit("click", { - ...item, - index: index2 - }); - if (item.disabled) - return; - if (this.innerCurrent != index2) { - this.$emit("change", { - ...item, - index: index2 - }); - } - this.innerCurrent = index2; - this.$nextTick(() => { - this.resize(); - }); - }, - init() { - this.$uv.sleep().then(() => { - this.resize(); - }); - }, - setScrollLeft() { - const tabRect = this.list[this.innerCurrent]; - const offsetLeft = this.list.slice(0, this.innerCurrent).reduce((total, curr) => { - return total + curr.rect.width; - }, 0); - const windowWidth = this.$uv.sys().windowWidth; - let scrollLeft = offsetLeft - (this.tabsRect.width - tabRect.rect.width) / 2 - (windowWidth - this.tabsRect.right) / 2 + this.tabsRect.left / 2; - scrollLeft = Math.min(scrollLeft, this.scrollViewWidth - this.tabsRect.width); - this.scrollLeft = Math.max(0, scrollLeft); - }, - // 获取所有标签的尺寸 - resize() { - if (this.list.length === 0) { - return; - } - Promise.all([this.getTabsRect(), this.getAllItemRect()]).then(([tabsRect, itemRect = []]) => { - this.tabsRect = tabsRect; - this.scrollViewWidth = 0; - itemRect.map((item, index2) => { - this.scrollViewWidth += item.width; - this.list[index2].rect = item; - }); - this.setLineLeft(); - this.setScrollLeft(); - }); - }, - // 获取导航菜单的尺寸 - getTabsRect() { - return new Promise((resolve) => { - this.queryRect("uv-tabs__wrapper__scroll-view").then((size) => resolve(size)); - }); - }, - // 获取所有标签的尺寸 - getAllItemRect() { - return new Promise((resolve) => { - const promiseAllArr = this.list.map((item, index2) => this.queryRect( - `uv-tabs__wrapper__nav__item-${index2}`, - true - )); - Promise.all(promiseAllArr).then((sizes) => resolve(sizes)); - }); - }, - // 获取各个标签的尺寸 - queryRect(el, item) { - return new Promise((resolve) => { - this.$uvGetRect(`.${el}`).then((size) => { - resolve(size); - }); - }); - } - } - }; - function _sfc_render$e(_ctx, _cache, $props, $setup, $data, $options) { - const _component_uv_badge = resolveEasycom(vue.resolveDynamicComponent("uv-badge"), __easycom_1$3); - return vue.openBlock(), vue.createElementBlock( - "view", - { - class: "uv-tabs", - style: vue.normalizeStyle([_ctx.$uv.addStyle(_ctx.customStyle)]) - }, - [ - vue.createElementVNode("view", { class: "uv-tabs__wrapper" }, [ - vue.renderSlot(_ctx.$slots, "left", {}, void 0, true), - vue.createElementVNode("view", { class: "uv-tabs__wrapper__scroll-view-wrapper" }, [ - vue.createElementVNode("scroll-view", { - "scroll-x": _ctx.scrollable, - "scroll-left": $data.scrollLeft, - "scroll-with-animation": "", - class: "uv-tabs__wrapper__scroll-view", - "show-scrollbar": false, - ref: "uv-tabs__wrapper__scroll-view" - }, [ - vue.createElementVNode( - "view", - { - class: "uv-tabs__wrapper__nav", - ref: "uv-tabs__wrapper__nav", - style: vue.normalizeStyle({ - flex: _ctx.scrollable ? "" : 1 - }) - }, - [ - (vue.openBlock(true), vue.createElementBlock( - vue.Fragment, - null, - vue.renderList(_ctx.list, (item, index2) => { - return vue.openBlock(), vue.createElementBlock("view", { - class: vue.normalizeClass(["uv-tabs__wrapper__nav__item", [`uv-tabs__wrapper__nav__item-${index2}`, item.disabled && "uv-tabs__wrapper__nav__item--disabled"]]), - key: index2, - onClick: ($event) => $options.clickHandler(item, index2), - ref_for: true, - ref: `uv-tabs__wrapper__nav__item-${index2}`, - style: vue.normalizeStyle([{ flex: _ctx.scrollable ? "" : 1 }, _ctx.$uv.addStyle(_ctx.itemStyle)]) - }, [ - vue.createElementVNode( - "text", - { - class: vue.normalizeClass([[item.disabled && "uv-tabs__wrapper__nav__item__text--disabled"], "uv-tabs__wrapper__nav__item__text"]), - style: vue.normalizeStyle([$options.textStyle(index2)]) - }, - vue.toDisplayString(item[_ctx.keyName]), - 7 - /* TEXT, CLASS, STYLE */ - ), - vue.createVNode(_component_uv_badge, { - show: !!(item.badge && (item.badge.show || item.badge.isDot || item.badge.value)), - isDot: item.badge && item.badge.isDot || $options.propsBadge.isDot, - value: item.badge && item.badge.value || $options.propsBadge.value, - max: item.badge && item.badge.max || $options.propsBadge.max, - type: item.badge && item.badge.type || $options.propsBadge.type, - showZero: item.badge && item.badge.showZero || $options.propsBadge.showZero, - bgColor: item.badge && item.badge.bgColor || $options.propsBadge.bgColor, - color: item.badge && item.badge.color || $options.propsBadge.color, - shape: item.badge && item.badge.shape || $options.propsBadge.shape, - numberType: item.badge && item.badge.numberType || $options.propsBadge.numberType, - inverted: item.badge && item.badge.inverted || $options.propsBadge.inverted, - customStyle: "margin-left: 4px;" - }, null, 8, ["show", "isDot", "value", "max", "type", "showZero", "bgColor", "color", "shape", "numberType", "inverted"]) - ], 14, ["onClick"]); - }), - 128 - /* KEYED_FRAGMENT */ - )), - vue.createElementVNode( - "view", - { - class: "uv-tabs__wrapper__nav__line", - ref: "uv-tabs__wrapper__nav__line", - style: vue.normalizeStyle([{ - width: _ctx.$uv.addUnit(_ctx.lineWidth), - transform: `translate(${$data.lineOffsetLeft}px)`, - transitionDuration: `${$data.firstTime ? 0 : _ctx.duration}ms`, - height: $data.firstTime ? 0 : _ctx.$uv.addUnit(_ctx.lineHeight), - background: _ctx.lineColor, - backgroundSize: _ctx.lineBgSize - }]) - }, - null, - 4 - /* STYLE */ - ) - ], - 4 - /* STYLE */ - ) - ], 8, ["scroll-x", "scroll-left"]) - ]), - vue.renderSlot(_ctx.$slots, "right", {}, void 0, true) - ]) - ], - 4 - /* STYLE */ - ); - } - const __easycom_0$4 = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["render", _sfc_render$e], ["__scopeId", "data-v-0f3b9fa1"], ["__file", "D:/frontDev/project/OfficeSystem/node_modules/@climblee/uv-ui/components/uv-tabs/uv-tabs.vue"]]); - const icons = { - "uvicon-level": "e68f", - "uvicon-checkbox-mark": "e659", - "uvicon-folder": "e694", - "uvicon-movie": "e67c", - "uvicon-star-fill": "e61e", - "uvicon-star": "e618", - "uvicon-phone-fill": "e6ac", - "uvicon-phone": "e6ba", - "uvicon-apple-fill": "e635", - "uvicon-backspace": "e64d", - "uvicon-attach": "e640", - "uvicon-empty-data": "e671", - "uvicon-empty-address": "e68a", - "uvicon-empty-favor": "e662", - "uvicon-empty-car": "e657", - "uvicon-empty-order": "e66b", - "uvicon-empty-list": "e672", - "uvicon-empty-search": "e677", - "uvicon-empty-permission": "e67d", - "uvicon-empty-news": "e67e", - "uvicon-empty-history": "e685", - "uvicon-empty-coupon": "e69b", - "uvicon-empty-page": "e60e", - "uvicon-empty-wifi-off": "e6cc", - "uvicon-reload": "e627", - "uvicon-order": "e695", - "uvicon-server-man": "e601", - "uvicon-search": "e632", - "uvicon-more-dot-fill": "e66f", - "uvicon-scan": "e631", - "uvicon-map": "e665", - "uvicon-map-fill": "e6a8", - "uvicon-tags": "e621", - "uvicon-tags-fill": "e613", - "uvicon-eye": "e664", - "uvicon-eye-fill": "e697", - "uvicon-eye-off": "e69c", - "uvicon-eye-off-outline": "e688", - "uvicon-mic": "e66d", - "uvicon-mic-off": "e691", - "uvicon-calendar": "e65c", - "uvicon-trash": "e623", - "uvicon-trash-fill": "e6ce", - "uvicon-play-left": "e6bf", - "uvicon-play-right": "e6b3", - "uvicon-minus": "e614", - "uvicon-plus": "e625", - "uvicon-info-circle": "e69f", - "uvicon-info-circle-fill": "e6a7", - "uvicon-question-circle": "e622", - "uvicon-question-circle-fill": "e6bc", - "uvicon-close": "e65a", - "uvicon-checkmark": "e64a", - "uvicon-checkmark-circle": "e643", - "uvicon-checkmark-circle-fill": "e668", - "uvicon-setting": "e602", - "uvicon-setting-fill": "e6d0", - "uvicon-heart": "e6a2", - "uvicon-heart-fill": "e68b", - "uvicon-camera": "e642", - "uvicon-camera-fill": "e650", - "uvicon-more-circle": "e69e", - "uvicon-more-circle-fill": "e684", - "uvicon-chat": "e656", - "uvicon-chat-fill": "e63f", - "uvicon-bag": "e647", - "uvicon-error-circle": "e66e", - "uvicon-error-circle-fill": "e655", - "uvicon-close-circle": "e64e", - "uvicon-close-circle-fill": "e666", - "uvicon-share": "e629", - "uvicon-share-fill": "e6bb", - "uvicon-share-square": "e6c4", - "uvicon-shopping-cart": "e6cb", - "uvicon-shopping-cart-fill": "e630", - "uvicon-bell": "e651", - "uvicon-bell-fill": "e604", - "uvicon-list": "e690", - "uvicon-list-dot": "e6a9", - "uvicon-zhifubao-circle-fill": "e617", - "uvicon-weixin-circle-fill": "e6cd", - "uvicon-weixin-fill": "e620", - "uvicon-qq-fill": "e608", - "uvicon-qq-circle-fill": "e6b9", - "uvicon-moments-circel-fill": "e6c2", - "uvicon-moments": "e6a0", - "uvicon-car": "e64f", - "uvicon-car-fill": "e648", - "uvicon-warning-fill": "e6c7", - "uvicon-warning": "e6c1", - "uvicon-clock-fill": "e64b", - "uvicon-clock": "e66c", - "uvicon-edit-pen": "e65d", - "uvicon-edit-pen-fill": "e679", - "uvicon-email": "e673", - "uvicon-email-fill": "e683", - "uvicon-minus-circle": "e6a5", - "uvicon-plus-circle": "e603", - "uvicon-plus-circle-fill": "e611", - "uvicon-file-text": "e687", - "uvicon-file-text-fill": "e67f", - "uvicon-pushpin": "e6d1", - "uvicon-pushpin-fill": "e6b6", - "uvicon-grid": "e68c", - "uvicon-grid-fill": "e698", - "uvicon-play-circle": "e6af", - "uvicon-play-circle-fill": "e62a", - "uvicon-pause-circle-fill": "e60c", - "uvicon-pause": "e61c", - "uvicon-pause-circle": "e696", - "uvicon-gift-fill": "e6b0", - "uvicon-gift": "e680", - "uvicon-kefu-ermai": "e660", - "uvicon-server-fill": "e610", - "uvicon-coupon-fill": "e64c", - "uvicon-coupon": "e65f", - "uvicon-integral": "e693", - "uvicon-integral-fill": "e6b1", - "uvicon-home-fill": "e68e", - "uvicon-home": "e67b", - "uvicon-account": "e63a", - "uvicon-account-fill": "e653", - "uvicon-thumb-down-fill": "e628", - "uvicon-thumb-down": "e60a", - "uvicon-thumb-up": "e612", - "uvicon-thumb-up-fill": "e62c", - "uvicon-lock-fill": "e6a6", - "uvicon-lock-open": "e68d", - "uvicon-lock-opened-fill": "e6a1", - "uvicon-lock": "e69d", - "uvicon-red-packet": "e6c3", - "uvicon-photo-fill": "e6b4", - "uvicon-photo": "e60d", - "uvicon-volume-off-fill": "e6c8", - "uvicon-volume-off": "e6bd", - "uvicon-volume-fill": "e624", - "uvicon-volume": "e605", - "uvicon-download": "e670", - "uvicon-arrow-up-fill": "e636", - "uvicon-arrow-down-fill": "e638", - "uvicon-play-left-fill": "e6ae", - "uvicon-play-right-fill": "e6ad", - "uvicon-arrow-downward": "e634", - "uvicon-arrow-leftward": "e63b", - "uvicon-arrow-rightward": "e644", - "uvicon-arrow-upward": "e641", - "uvicon-arrow-down": "e63e", - "uvicon-arrow-right": "e63c", - "uvicon-arrow-left": "e646", - "uvicon-arrow-up": "e633", - "uvicon-skip-back-left": "e6c5", - "uvicon-skip-forward-right": "e61f", - "uvicon-arrow-left-double": "e637", - "uvicon-man": "e675", - "uvicon-woman": "e626", - "uvicon-en": "e6b8", - "uvicon-twitte": "e607", - "uvicon-twitter-circle-fill": "e6cf" - }; - const props$7 = { - props: { - // 图标类名 - name: { - type: String, - default: "" - }, - // 图标颜色,可接受主题色 - color: { - type: String, - default: "#606266" - }, - // 字体大小,单位px - size: { - type: [String, Number], - default: "16px" - }, - // 是否显示粗体 - bold: { - type: Boolean, - default: false - }, - // 点击图标的时候传递事件出去的index(用于区分点击了哪一个) - index: { - type: [String, Number], - default: null - }, - // 触摸图标时的类名 - hoverClass: { - type: String, - default: "" - }, - // 自定义扩展前缀,方便用户扩展自己的图标库 - customPrefix: { - type: String, - default: "uvicon" - }, - // 图标右边或者下面的文字 - label: { - type: [String, Number], - default: "" - }, - // label的位置,只能右边或者下边 - labelPos: { - type: String, - default: "right" - }, - // label的大小 - labelSize: { - type: [String, Number], - default: "15px" - }, - // label的颜色 - labelColor: { - type: String, - default: "#606266" - }, - // label与图标的距离 - space: { - type: [String, Number], - default: "3px" - }, - // 图片的mode - imgMode: { - type: String, - default: "aspectFit" - }, - // 用于显示图片小图标时,图片的宽度 - width: { - type: [String, Number], - default: "" - }, - // 用于显示图片小图标时,图片的高度 - height: { - type: [String, Number], - default: "" - }, - // 用于解决某些情况下,让图标垂直居中的用途 - top: { - type: [String, Number], - default: 0 - }, - // 是否阻止事件传播 - stop: { - type: Boolean, - default: false - }, - ...(_j = (_i = uni.$uv) == null ? void 0 : _i.props) == null ? void 0 : _j.icon - } - }; - const _sfc_main$e = { - name: "uv-icon", - emits: ["click"], - mixins: [mpMixin, mixin, props$7], - data() { - return { - colorType: [ - "primary", - "success", - "info", - "error", - "warning" - ] - }; - }, - computed: { - uClasses() { - let classes = []; - classes.push(this.customPrefix); - classes.push(this.customPrefix + "-" + this.name); - if (this.color && this.colorType.includes(this.color)) - classes.push("uv-icon__icon--" + this.color); - return classes; - }, - iconStyle() { - let style = {}; - style = { - fontSize: this.$uv.addUnit(this.size), - lineHeight: this.$uv.addUnit(this.size), - fontWeight: this.bold ? "bold" : "normal", - // 某些特殊情况需要设置一个到顶部的距离,才能更好的垂直居中 - top: this.$uv.addUnit(this.top) - }; - if (this.color && !this.colorType.includes(this.color)) - style.color = this.color; - return style; - }, - // 判断传入的name属性,是否图片路径,只要带有"/"均认为是图片形式 - isImg() { - const isBase64 = this.name.indexOf("data:") > -1 && this.name.indexOf("base64") > -1; - return this.name.indexOf("/") !== -1 || isBase64; - }, - imgStyle() { - let style = {}; - style.width = this.width ? this.$uv.addUnit(this.width) : this.$uv.addUnit(this.size); - style.height = this.height ? this.$uv.addUnit(this.height) : this.$uv.addUnit(this.size); - return style; - }, - // 通过图标名,查找对应的图标 - icon() { - const code2 = icons["uvicon-" + this.name]; - return code2 ? unescape(`%u${code2}`) : ["uvicon"].indexOf(this.customPrefix) > -1 ? this.name : ""; - } - }, - methods: { - clickHandler(e) { - this.$emit("click", this.index); - this.stop && this.preventEvent(e); - } - } - }; - function _sfc_render$d(_ctx, _cache, $props, $setup, $data, $options) { - return vue.openBlock(), vue.createElementBlock( - "view", - { - class: vue.normalizeClass(["uv-icon", ["uv-icon--" + _ctx.labelPos]]), - onClick: _cache[0] || (_cache[0] = (...args) => $options.clickHandler && $options.clickHandler(...args)) - }, - [ - $options.isImg ? (vue.openBlock(), vue.createElementBlock("image", { - key: 0, - class: "uv-icon__img", - src: _ctx.name, - mode: _ctx.imgMode, - style: vue.normalizeStyle([$options.imgStyle, _ctx.$uv.addStyle(_ctx.customStyle)]) - }, null, 12, ["src", "mode"])) : (vue.openBlock(), vue.createElementBlock("text", { - key: 1, - class: vue.normalizeClass(["uv-icon__icon", $options.uClasses]), - style: vue.normalizeStyle([$options.iconStyle, _ctx.$uv.addStyle(_ctx.customStyle)]), - "hover-class": _ctx.hoverClass - }, vue.toDisplayString($options.icon), 15, ["hover-class"])), - vue.createCommentVNode(' 这里进行空字符串判断,如果仅仅是v-if="label",可能会出现传递0的时候,结果也无法显示 '), - _ctx.label !== "" ? (vue.openBlock(), vue.createElementBlock( - "text", - { - key: 2, - class: "uv-icon__label", - style: vue.normalizeStyle({ - color: _ctx.labelColor, - fontSize: _ctx.$uv.addUnit(_ctx.labelSize), - marginLeft: _ctx.labelPos == "right" ? _ctx.$uv.addUnit(_ctx.space) : 0, - marginTop: _ctx.labelPos == "bottom" ? _ctx.$uv.addUnit(_ctx.space) : 0, - marginRight: _ctx.labelPos == "left" ? _ctx.$uv.addUnit(_ctx.space) : 0, - marginBottom: _ctx.labelPos == "top" ? _ctx.$uv.addUnit(_ctx.space) : 0 - }) - }, - vue.toDisplayString(_ctx.label), - 5 - /* TEXT, STYLE */ - )) : vue.createCommentVNode("v-if", true) - ], - 2 - /* CLASS */ - ); - } - const __easycom_1$2 = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["render", _sfc_render$d], ["__scopeId", "data-v-7cc7ad3f"], ["__file", "D:/frontDev/project/OfficeSystem/node_modules/@climblee/uv-ui/components/uv-icon/uv-icon.vue"]]); - function colorGradient(startColor = "rgb(0, 0, 0)", endColor = "rgb(255, 255, 255)", step = 10) { - const startRGB = hexToRgb(startColor, false); - const startR = startRGB[0]; - const startG = startRGB[1]; - const startB = startRGB[2]; - const endRGB = hexToRgb(endColor, false); - const endR = endRGB[0]; - const endG = endRGB[1]; - const endB = endRGB[2]; - const sR = (endR - startR) / step; - const sG = (endG - startG) / step; - const sB = (endB - startB) / step; - const colorArr = []; - for (let i = 0; i < step; i++) { - let hex = rgbToHex(`rgb(${Math.round(sR * i + startR)},${Math.round(sG * i + startG)},${Math.round(sB * i + startB)})`); - if (i === 0) - hex = rgbToHex(startColor); - if (i === step - 1) - hex = rgbToHex(endColor); - colorArr.push(hex); - } - return colorArr; - } - function hexToRgb(sColor, str = true) { - const reg = /^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/; - sColor = String(sColor).toLowerCase(); - if (sColor && reg.test(sColor)) { - if (sColor.length === 4) { - let sColorNew = "#"; - for (let i = 1; i < 4; i += 1) { - sColorNew += sColor.slice(i, i + 1).concat(sColor.slice(i, i + 1)); - } - sColor = sColorNew; - } - const sColorChange = []; - for (let i = 1; i < 7; i += 2) { - sColorChange.push(parseInt(`0x${sColor.slice(i, i + 2)}`)); - } - if (!str) { - return sColorChange; - } - return `rgb(${sColorChange[0]},${sColorChange[1]},${sColorChange[2]})`; - } - if (/^(rgb|RGB)/.test(sColor)) { - const arr = sColor.replace(/(?:\(|\)|rgb|RGB)*/g, "").split(","); - return arr.map((val) => Number(val)); - } - return sColor; - } - function rgbToHex(rgb) { - const _this = rgb; - const reg = /^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/; - if (/^(rgb|RGB)/.test(_this)) { - const aColor = _this.replace(/(?:\(|\)|rgb|RGB)*/g, "").split(","); - let strHex = "#"; - for (let i = 0; i < aColor.length; i++) { - let hex = Number(aColor[i]).toString(16); - hex = String(hex).length == 1 ? `${0}${hex}` : hex; - if (hex === "0") { - hex += hex; - } - strHex += hex; - } - if (strHex.length !== 7) { - strHex = _this; - } - return strHex; - } - if (reg.test(_this)) { - const aNum = _this.replace(/#/, "").split(""); - if (aNum.length === 6) { - return _this; - } - if (aNum.length === 3) { - let numHex = "#"; - for (let i = 0; i < aNum.length; i += 1) { - numHex += aNum[i] + aNum[i]; - } - return numHex; - } - } else { - return _this; - } - } - function colorToRgba(color, alpha) { - color = rgbToHex(color); - const reg = /^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/; - let sColor = String(color).toLowerCase(); - if (sColor && reg.test(sColor)) { - if (sColor.length === 4) { - let sColorNew = "#"; - for (let i = 1; i < 4; i += 1) { - sColorNew += sColor.slice(i, i + 1).concat(sColor.slice(i, i + 1)); - } - sColor = sColorNew; - } - const sColorChange = []; - for (let i = 1; i < 7; i += 2) { - sColorChange.push(parseInt(`0x${sColor.slice(i, i + 2)}`)); - } - return `rgba(${sColorChange.join(",")},${alpha})`; - } - return sColor; - } - const props$6 = { - props: { - // 是否显示组件 - show: { - type: Boolean, - default: true - }, - // 颜色 - color: { - type: String, - default: "#909193" - }, - // 提示文字颜色 - textColor: { - type: String, - default: "#909193" - }, - // 文字和图标是否垂直排列 - vertical: { - type: Boolean, - default: false - }, - // 模式选择,circle-圆形,spinner-花朵形,semicircle-半圆形 - mode: { - type: String, - default: "spinner" - }, - // 图标大小,单位默认px - size: { - type: [String, Number], - default: 24 - }, - // 文字大小 - textSize: { - type: [String, Number], - default: 15 - }, - // 文字样式 - textStyle: { - type: Object, - default() { - return {}; - } - }, - // 文字内容 - text: { - type: [String, Number], - default: "" - }, - // 动画模式 https://www.runoob.com/cssref/css3-pr-animation-timing-function.html - timingFunction: { - type: String, - default: "linear" - }, - // 动画执行周期时间 - duration: { - type: [String, Number], - default: 1200 - }, - // mode=circle时的暗边颜色 - inactiveColor: { - type: String, - default: "" - }, - ...(_l = (_k = uni.$uv) == null ? void 0 : _k.props) == null ? void 0 : _l.loadingIcon - } - }; - const _sfc_main$d = { - name: "uv-loading-icon", - mixins: [mpMixin, mixin, props$6], - data() { - return { - // Array.form可以通过一个伪数组对象创建指定长度的数组 - // https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Array/from - array12: Array.from({ - length: 12 - }), - // 这里需要设置默认值为360,否则在安卓nvue上,会延迟一个duration周期后才执行 - // 在iOS nvue上,则会一开始默认执行两个周期的动画 - aniAngel: 360, - // 动画旋转角度 - webviewHide: false, - // 监听webview的状态,如果隐藏了页面,则停止动画,以免性能消耗 - loading: false - // 是否运行中,针对nvue使用 - }; - }, - computed: { - // 当为circle类型时,给其另外三边设置一个更轻一些的颜色 - // 之所以需要这么做的原因是,比如父组件传了color为红色,那么需要另外的三个边为浅红色 - // 而不能是固定的某一个其他颜色(因为这个固定的颜色可能浅蓝,导致效果没有那么细腻良好) - otherBorderColor() { - const lightColor = colorGradient(this.color, "#ffffff", 100)[80]; - if (this.mode === "circle") { - return this.inactiveColor ? this.inactiveColor : lightColor; - } else { - return "transparent"; - } - } - }, - watch: { - show(n) { - } - }, - mounted() { - this.init(); - }, - methods: { - init() { - setTimeout(() => { - this.show && this.addEventListenerToWebview(); - }, 20); - }, - // 监听webview的显示与隐藏 - addEventListenerToWebview() { - const pages2 = getCurrentPages(); - const page2 = pages2[pages2.length - 1]; - const currentWebview = page2.$getAppWebview(); - currentWebview.addEventListener("hide", () => { - this.webviewHide = true; - }); - currentWebview.addEventListener("show", () => { - this.webviewHide = false; - }); - } - } - }; - function _sfc_render$c(_ctx, _cache, $props, $setup, $data, $options) { - return _ctx.show ? (vue.openBlock(), vue.createElementBlock( - "view", - { - key: 0, - class: vue.normalizeClass(["uv-loading-icon", [_ctx.vertical && "uv-loading-icon--vertical"]]), - style: vue.normalizeStyle([_ctx.$uv.addStyle(_ctx.customStyle)]) - }, - [ - !$data.webviewHide ? (vue.openBlock(), vue.createElementBlock( - "view", - { - key: 0, - class: vue.normalizeClass(["uv-loading-icon__spinner", [`uv-loading-icon__spinner--${_ctx.mode}`]]), - ref: "ani", - style: vue.normalizeStyle({ - color: _ctx.color, - width: _ctx.$uv.addUnit(_ctx.size), - height: _ctx.$uv.addUnit(_ctx.size), - borderTopColor: _ctx.color, - borderBottomColor: $options.otherBorderColor, - borderLeftColor: $options.otherBorderColor, - borderRightColor: $options.otherBorderColor, - "animation-duration": `${_ctx.duration}ms`, - "animation-timing-function": _ctx.mode === "semicircle" || _ctx.mode === "circle" ? _ctx.timingFunction : "" - }) - }, - [ - _ctx.mode === "spinner" ? (vue.openBlock(true), vue.createElementBlock( - vue.Fragment, - { key: 0 }, - vue.renderList($data.array12, (item, index2) => { - return vue.openBlock(), vue.createElementBlock("view", { - key: index2, - class: "uv-loading-icon__dot" - }); - }), - 128 - /* KEYED_FRAGMENT */ - )) : vue.createCommentVNode("v-if", true) - ], - 6 - /* CLASS, STYLE */ - )) : vue.createCommentVNode("v-if", true), - _ctx.text ? (vue.openBlock(), vue.createElementBlock( - "text", - { - key: 1, - class: "uv-loading-icon__text", - style: vue.normalizeStyle([{ - fontSize: _ctx.$uv.addUnit(_ctx.textSize), - color: _ctx.textColor - }, _ctx.$uv.addStyle(_ctx.textStyle)]) - }, - vue.toDisplayString(_ctx.text), - 5 - /* TEXT, STYLE */ - )) : vue.createCommentVNode("v-if", true) - ], - 6 - /* CLASS, STYLE */ - )) : vue.createCommentVNode("v-if", true); - } - const __easycom_0$3 = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["render", _sfc_render$c], ["__scopeId", "data-v-daf2e960"], ["__file", "D:/frontDev/project/OfficeSystem/node_modules/@climblee/uv-ui/components/uv-loading-icon/uv-loading-icon.vue"]]); - const props$5 = { - props: { - // 是否细边框 - hairline: { - type: Boolean, - default: true - }, - // 按钮的预置样式,info,primary,error,warning,success - type: { - type: String, - default: "info" - }, - // 按钮尺寸,large,normal,small,mini - size: { - type: String, - default: "normal" - }, - // 按钮形状,circle(两边为半圆),square(带圆角) - shape: { - type: String, - default: "square" - }, - // 按钮是否镂空 - plain: { - type: Boolean, - default: false - }, - // 是否禁止状态 - disabled: { - type: Boolean, - default: false - }, - // 是否加载中 - loading: { - type: Boolean, - default: false - }, - // 加载中提示文字 - loadingText: { - type: [String, Number], - default: "" - }, - // 加载状态图标类型 - loadingMode: { - type: String, - default: "spinner" - }, - // 加载图标大小 - loadingSize: { - type: [String, Number], - default: 14 - }, - // 开放能力,具体请看uniapp稳定关于button组件部分说明 - // https://uniapp.dcloud.io/component/button - openType: { - type: String, - default: "" - }, - // 用于
组件,点击分别会触发 组件的 submit/reset 事件 - // 取值为submit(提交表单),reset(重置表单) - formType: { - type: String, - default: "" - }, - // 打开 APP 时,向 APP 传递的参数,open-type=launchApp时有效 - // 只微信小程序、QQ小程序有效 - appParameter: { - type: String, - default: "" - }, - // 指定是否阻止本节点的祖先节点出现点击态,微信小程序有效 - hoverStopPropagation: { - type: Boolean, - default: true - }, - // 指定返回用户信息的语言,zh_CN 简体中文,zh_TW 繁体中文,en 英文。只微信小程序有效 - lang: { - type: String, - default: "en" - }, - // 会话来源,open-type="contact"时有效。只微信小程序有效 - sessionFrom: { - type: String, - default: "" - }, - // 会话内消息卡片标题,open-type="contact"时有效 - // 默认当前标题,只微信小程序有效 - sendMessageTitle: { - type: String, - default: "" - }, - // 会话内消息卡片点击跳转小程序路径,open-type="contact"时有效 - // 默认当前分享路径,只微信小程序有效 - sendMessagePath: { - type: String, - default: "" - }, - // 会话内消息卡片图片,open-type="contact"时有效 - // 默认当前页面截图,只微信小程序有效 - sendMessageImg: { - type: String, - default: "" - }, - // 是否显示会话内消息卡片,设置此参数为 true,用户进入客服会话会在右下角显示"可能要发送的小程序"提示, - // 用户点击后可以快速发送小程序消息,open-type="contact"时有效 - showMessageCard: { - type: Boolean, - default: true - }, - // 额外传参参数,用于小程序的data-xxx属性,通过target.dataset.name获取 - dataName: { - type: String, - default: "" - }, - // 节流,一定时间内只能触发一次 - throttleTime: { - type: [String, Number], - default: 0 - }, - // 按住后多久出现点击态,单位毫秒 - hoverStartTime: { - type: [String, Number], - default: 0 - }, - // 手指松开后点击态保留时间,单位毫秒 - hoverStayTime: { - type: [String, Number], - default: 200 - }, - // 按钮文字,之所以通过props传入,是因为slot传入的话 - // nvue中无法控制文字的样式 - text: { - type: [String, Number], - default: "" - }, - // 按钮图标 - icon: { - type: String, - default: "" - }, - // 按钮图标大小 - iconSize: { - type: [String, Number], - default: "" - }, - // 按钮图标颜色 - iconColor: { - type: String, - default: "#000000" - }, - // 按钮颜色,支持传入linear-gradient渐变色 - color: { - type: String, - default: "" - }, - // 自定义按钮文本样式 - customTextStyle: { - type: [Object, String], - default: "" - }, - ...(_n = (_m = uni.$uv) == null ? void 0 : _m.props) == null ? void 0 : _n.button - } - }; - const _sfc_main$c = { - name: "uv-button", - mixins: [mpMixin, mixin, props$5], - emits: ["click"], - data() { - return {}; - }, - computed: { - // 生成bem风格的类名 - bemClass() { - if (!this.color) { - return this.bem( - "button", - ["type", "shape", "size"], - ["disabled", "plain", "hairline"] - ); - } else { - return this.bem( - "button", - ["shape", "size"], - ["disabled", "plain", "hairline"] - ); - } - }, - loadingColor() { - if (this.plain) { - return this.color ? this.color : "#3c9cff"; - } - if (this.type === "info") { - return "#c9c9c9"; - } - return "rgb(200, 200, 200)"; - }, - iconColorCom() { - if (this.iconColor) - return this.iconColor; - if (this.plain) { - return this.color ? this.color : this.type; - } else { - return this.type === "info" ? "#000000" : "#ffffff"; - } - }, - baseColor() { - let style = {}; - if (this.color) { - style.color = this.plain ? this.color : "white"; - if (!this.plain) { - style["background-color"] = this.color; - } - if (this.color.indexOf("gradient") !== -1) { - style.borderTopWidth = 0; - style.borderRightWidth = 0; - style.borderBottomWidth = 0; - style.borderLeftWidth = 0; - if (!this.plain) { - style.backgroundImage = this.color; - } - } else { - style.borderColor = this.color; - style.borderWidth = "1px"; - style.borderStyle = "solid"; - } - } - return style; - }, - // nvue版本按钮的字体不会继承父组件的颜色,需要对每一个text组件进行单独的设置 - nvueTextStyle() { - let style = {}; - if (this.type === "info") { - style.color = "#323233"; - } - if (this.color) { - style.color = this.plain ? this.color : "white"; - } - style.fontSize = this.textSize + "px"; - return style; - }, - // 字体大小 - textSize() { - let fontSize = 14, { size } = this; - if (size === "large") - fontSize = 16; - if (size === "normal") - fontSize = 14; - if (size === "small") - fontSize = 12; - if (size === "mini") - fontSize = 10; - return fontSize; - }, - // 设置图标大小 - getIconSize() { - const size = this.iconSize ? this.iconSize : this.textSize * 1.35; - return this.$uv.addUnit(size); - }, - // 设置外层盒子的宽度,其他样式不需要 - btnWrapperStyle() { - const style = {}; - const customStyle = this.$uv.addStyle(this.customStyle); - if (customStyle.width) - style.width = customStyle.width; - return style; - } - }, - methods: { - clickHandler() { - if (!this.disabled && !this.loading) { - throttle(() => { - this.$emit("click"); - }, this.throttleTime); - } - } - } - }; - function _sfc_render$b(_ctx, _cache, $props, $setup, $data, $options) { - const _component_uv_loading_icon = resolveEasycom(vue.resolveDynamicComponent("uv-loading-icon"), __easycom_0$3); - const _component_uv_icon = resolveEasycom(vue.resolveDynamicComponent("uv-icon"), __easycom_1$2); - return vue.openBlock(), vue.createElementBlock( - "view", - { - class: "uv-button-wrapper", - style: vue.normalizeStyle([$options.btnWrapperStyle]) - }, - [ - vue.createElementVNode("button", { - "hover-start-time": Number(_ctx.hoverStartTime), - "hover-stay-time": Number(_ctx.hoverStayTime), - "form-type": _ctx.formType, - "open-type": _ctx.openType, - "app-parameter": _ctx.appParameter, - "hover-stop-propagation": _ctx.hoverStopPropagation, - "send-message-title": _ctx.sendMessageTitle, - "send-message-path": _ctx.sendMessagePath, - lang: _ctx.lang, - "data-name": _ctx.dataName, - "session-from": _ctx.sessionFrom, - "send-message-img": _ctx.sendMessageImg, - "show-message-card": _ctx.showMessageCard, - "hover-class": !_ctx.disabled && !_ctx.loading ? "uv-button--active" : "", - class: vue.normalizeClass(["uv-button uv-reset-button", $options.bemClass]), - style: vue.normalizeStyle([$options.baseColor, _ctx.$uv.addStyle(_ctx.customStyle)]), - onClick: _cache[0] || (_cache[0] = (...args) => $options.clickHandler && $options.clickHandler(...args)) - }, [ - _ctx.loading ? (vue.openBlock(), vue.createElementBlock( - vue.Fragment, - { key: 0 }, - [ - vue.createVNode(_component_uv_loading_icon, { - mode: _ctx.loadingMode, - size: _ctx.loadingSize * 1.15, - color: $options.loadingColor - }, null, 8, ["mode", "size", "color"]), - vue.createElementVNode( - "text", - { - class: "uv-button__loading-text", - style: vue.normalizeStyle([ - { fontSize: $options.textSize + "px" }, - _ctx.$uv.addStyle(_ctx.customTextStyle) - ]) - }, - vue.toDisplayString(_ctx.loadingText || _ctx.text), - 5 - /* TEXT, STYLE */ - ) - ], - 64 - /* STABLE_FRAGMENT */ - )) : (vue.openBlock(), vue.createElementBlock( - vue.Fragment, - { key: 1 }, - [ - _ctx.icon ? (vue.openBlock(), vue.createBlock(_component_uv_icon, { - key: 0, - name: _ctx.icon, - color: $options.iconColorCom, - size: $options.getIconSize, - customStyle: { marginRight: "2px" } - }, null, 8, ["name", "color", "size"])) : vue.createCommentVNode("v-if", true), - vue.renderSlot(_ctx.$slots, "default", {}, () => [ - vue.createElementVNode( - "text", - { - class: "uv-button__text", - style: vue.normalizeStyle([ - { fontSize: $options.textSize + "px" }, - _ctx.$uv.addStyle(_ctx.customTextStyle) - ]) - }, - vue.toDisplayString(_ctx.text), - 5 - /* TEXT, STYLE */ - ) - ], true), - vue.renderSlot(_ctx.$slots, "suffix", {}, void 0, true) - ], - 64 - /* STABLE_FRAGMENT */ - )) - ], 14, ["hover-start-time", "hover-stay-time", "form-type", "open-type", "app-parameter", "hover-stop-propagation", "send-message-title", "send-message-path", "lang", "data-name", "session-from", "send-message-img", "show-message-card", "hover-class"]) - ], - 4 - /* STYLE */ - ); - } - const __easycom_0$2 = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["render", _sfc_render$b], ["__scopeId", "data-v-1ac9ef43"], ["__file", "D:/frontDev/project/OfficeSystem/node_modules/@climblee/uv-ui/components/uv-button/uv-button.vue"]]); - class MPAnimation { - constructor(options, _this) { - this.options = options; - this.animation = uni.createAnimation({ - ...options - }); - this.currentStepAnimates = {}; - this.next = 0; - this.$ = _this; - } - _nvuePushAnimates(type, args) { - let aniObj = this.currentStepAnimates[this.next]; - let styles = {}; - if (!aniObj) { - styles = { - styles: {}, - config: {} - }; - } else { - styles = aniObj; - } - if (animateTypes1.includes(type)) { - if (!styles.styles.transform) { - styles.styles.transform = ""; - } - let unit = ""; - if (type === "rotate") { - unit = "deg"; - } - styles.styles.transform += `${type}(${args + unit}) `; - } else { - styles.styles[type] = `${args}`; - } - this.currentStepAnimates[this.next] = styles; - } - _animateRun(styles = {}, config2 = {}) { - let ref = this.$.$refs["ani"].ref; - if (!ref) - return; - return new Promise((resolve, reject) => { - nvueAnimation.transition(ref, { - styles, - ...config2 - }, (res) => { - resolve(); - }); - }); - } - _nvueNextAnimate(animates, step = 0, fn) { - let obj = animates[step]; - if (obj) { - let { - styles, - config: config2 - } = obj; - this._animateRun(styles, config2).then(() => { - step += 1; - this._nvueNextAnimate(animates, step, fn); - }); - } else { - this.currentStepAnimates = {}; - typeof fn === "function" && fn(); - this.isEnd = true; - } - } - step(config2 = {}) { - this.animation.step(config2); - return this; - } - run(fn) { - this.$.animationData = this.animation.export(); - this.$.timer = setTimeout(() => { - typeof fn === "function" && fn(); - }, this.$.durationTime); - } - } - const animateTypes1 = [ - "matrix", - "matrix3d", - "rotate", - "rotate3d", - "rotateX", - "rotateY", - "rotateZ", - "scale", - "scale3d", - "scaleX", - "scaleY", - "scaleZ", - "skew", - "skewX", - "skewY", - "translate", - "translate3d", - "translateX", - "translateY", - "translateZ" - ]; - const animateTypes2 = ["opacity", "backgroundColor"]; - const animateTypes3 = ["width", "height", "left", "right", "top", "bottom"]; - animateTypes1.concat(animateTypes2, animateTypes3).forEach((type) => { - MPAnimation.prototype[type] = function(...args) { - this.animation[type](...args); - return this; - }; - }); - function createAnimation(option, _this) { - if (!_this) - return; - clearTimeout(_this.timer); - return new MPAnimation(option, _this); - } - const _sfc_main$b = { - name: "uv-transition", - mixins: [mpMixin, mixin], - emits: ["click", "change"], - props: { - // 是否展示组件 - show: { - type: Boolean, - default: false - }, - // 使用的动画模式 - mode: { - type: [Array, String, null], - default() { - return "fade"; - } - }, - // 动画的执行时间,单位ms - duration: { - type: [String, Number], - default: 300 - }, - // 使用的动画过渡函数 - timingFunction: { - type: String, - default: "ease-out" - }, - customClass: { - type: String, - default: "" - }, - // nvue模式下 是否直接显示,在uv-list等cell下面使用就需要设置 - cellChild: { - type: Boolean, - default: false - } - }, - data() { - return { - isShow: false, - transform: "", - opacity: 1, - animationData: {}, - durationTime: 300, - config: {} - }; - }, - watch: { - show: { - handler(newVal) { - if (newVal) { - this.open(); - } else { - if (this.isShow) { - this.close(); - } - } - }, - immediate: true - } - }, - computed: { - // 初始化动画条件 - transformStyles() { - const style = { - transform: this.transform, - opacity: this.opacity, - ...this.$uv.addStyle(this.customStyle), - "transition-duration": `${this.duration / 1e3}s` - }; - return this.$uv.addStyle(style, "string"); - } - }, - created() { - this.config = { - duration: this.duration, - timingFunction: this.timingFunction, - transformOrigin: "50% 50%", - delay: 0 - }; - this.durationTime = this.duration; - }, - methods: { - /** - * ref 触发 初始化动画 - */ - init(obj = {}) { - if (obj.duration) { - this.durationTime = obj.duration; - } - this.animation = createAnimation(Object.assign(this.config, obj), this); - }, - /** - * 点击组件触发回调 - */ - onClick() { - this.$emit("click", { - detail: this.isShow - }); - }, - /** - * ref 触发 动画分组 - * @param {Object} obj - */ - step(obj, config2 = {}) { - if (!this.animation) - return; - for (let i in obj) { - try { - if (typeof obj[i] === "object") { - this.animation[i](...obj[i]); - } else { - this.animation[i](obj[i]); - } - } catch (e) { - formatAppLog("error", "at node_modules/@climblee/uv-ui/components/uv-transition/uv-transition.vue:166", `方法 ${i} 不存在`); - } - } - this.animation.step(config2); - return this; - }, - /** - * ref 触发 执行动画 - */ - run(fn) { - if (!this.animation) - return; - this.animation.run(fn); - }, - // 开始过度动画 - open() { - clearTimeout(this.timer); - this.transform = ""; - this.isShow = true; - let { opacity, transform } = this.styleInit(false); - if (typeof opacity !== "undefined") { - this.opacity = opacity; - } - this.transform = transform; - this.$nextTick(() => { - this.timer = setTimeout(() => { - this.animation = createAnimation(this.config, this); - this.tranfromInit(false).step(); - this.animation.run(); - this.$emit("change", { - detail: this.isShow - }); - }, 20); - }); - }, - // 关闭过渡动画 - close(type) { - if (!this.animation) - return; - this.tranfromInit(true).step().run(() => { - this.isShow = false; - this.animationData = null; - this.animation = null; - let { opacity, transform } = this.styleInit(false); - this.opacity = opacity || 1; - this.transform = transform; - this.$emit("change", { - detail: this.isShow - }); - }); - }, - // 处理动画开始前的默认样式 - styleInit(type) { - let styles = { - transform: "" - }; - let buildStyle = (type2, mode) => { - if (mode === "fade") { - styles.opacity = this.animationType(type2)[mode]; - } else { - styles.transform += this.animationType(type2)[mode] + " "; - } - }; - if (typeof this.mode === "string") { - buildStyle(type, this.mode); - } else { - this.mode.forEach((mode) => { - buildStyle(type, mode); - }); - } - return styles; - }, - // 处理内置组合动画 - tranfromInit(type) { - let buildTranfrom = (type2, mode) => { - let aniNum = null; - if (mode === "fade") { - aniNum = type2 ? 0 : 1; - } else { - aniNum = type2 ? "-100%" : "0"; - if (mode === "zoom-in") { - aniNum = type2 ? 0.8 : 1; - } - if (mode === "zoom-out") { - aniNum = type2 ? 1.2 : 1; - } - if (mode === "slide-right") { - aniNum = type2 ? "100%" : "0"; - } - if (mode === "slide-bottom") { - aniNum = type2 ? "100%" : "0"; - } - } - this.animation[this.animationMode()[mode]](aniNum); - }; - if (typeof this.mode === "string") { - buildTranfrom(type, this.mode); - } else { - this.mode.forEach((mode) => { - buildTranfrom(type, mode); - }); - } - return this.animation; - }, - animationType(type) { - return { - fade: type ? 1 : 0, - "slide-top": `translateY(${type ? "0" : "-100%"})`, - "slide-right": `translateX(${type ? "0" : "100%"})`, - "slide-bottom": `translateY(${type ? "0" : "100%"})`, - "slide-left": `translateX(${type ? "0" : "-100%"})`, - "zoom-in": `scaleX(${type ? 1 : 0.8}) scaleY(${type ? 1 : 0.8})`, - "zoom-out": `scaleX(${type ? 1 : 1.2}) scaleY(${type ? 1 : 1.2})` - }; - }, - // 内置动画类型与实际动画对应字典 - animationMode() { - return { - fade: "opacity", - "slide-top": "translateY", - "slide-right": "translateX", - "slide-bottom": "translateY", - "slide-left": "translateX", - "zoom-in": "scale", - "zoom-out": "scale" - }; - }, - // 驼峰转中横线 - toLine(name) { - return name.replace(/([A-Z])/g, "-$1").toLowerCase(); - } - } - }; - function _sfc_render$a(_ctx, _cache, $props, $setup, $data, $options) { - return $data.isShow ? (vue.openBlock(), vue.createElementBlock("view", { - key: 0, - ref: "ani", - animation: $data.animationData, - class: vue.normalizeClass($props.customClass), - style: vue.normalizeStyle($options.transformStyles), - onClick: _cache[0] || (_cache[0] = (...args) => $options.onClick && $options.onClick(...args)) - }, [ - vue.renderSlot(_ctx.$slots, "default") - ], 14, ["animation"])) : vue.createCommentVNode("v-if", true); - } - const __easycom_4$1 = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["render", _sfc_render$a], ["__file", "D:/frontDev/project/OfficeSystem/node_modules/@climblee/uv-ui/components/uv-transition/uv-transition.vue"]]); - const props$4 = { - props: { - // 是否显示遮罩 - show: { - type: Boolean, - default: false - }, - // 层级z-index - zIndex: { - type: [String, Number], - default: 10070 - }, - // 遮罩的过渡时间,单位为ms - duration: { - type: [String, Number], - default: 300 - }, - // 不透明度值,当做rgba的第四个参数 - opacity: { - type: [String, Number], - default: 0.5 - }, - ...(_p = (_o = uni.$uv) == null ? void 0 : _o.props) == null ? void 0 : _p.overlay - } - }; - const _sfc_main$a = { - name: "uv-overlay", - emits: ["click"], - mixins: [mpMixin, mixin, props$4], - watch: { - show(newVal) { - } - }, - computed: { - overlayStyle() { - const style = { - position: "fixed", - top: 0, - left: 0, - right: 0, - zIndex: this.zIndex, - bottom: 0, - "background-color": `rgba(0, 0, 0, ${this.opacity})` - }; - return this.$uv.deepMerge(style, this.$uv.addStyle(this.customStyle)); - } - }, - methods: { - clickHandler() { - this.$emit("click"); - }, - clear() { - } - } - }; - function _sfc_render$9(_ctx, _cache, $props, $setup, $data, $options) { - const _component_uv_transition = resolveEasycom(vue.resolveDynamicComponent("uv-transition"), __easycom_4$1); - return vue.openBlock(), vue.createBlock(_component_uv_transition, { - show: _ctx.show, - mode: "fade", - "custom-class": "uv-overlay", - duration: _ctx.duration, - "custom-style": $options.overlayStyle, - onClick: $options.clickHandler, - onTouchmove: vue.withModifiers($options.clear, ["stop", "prevent"]) - }, { - default: vue.withCtx(() => [ - vue.renderSlot(_ctx.$slots, "default", {}, void 0, true) - ]), - _: 3 - /* FORWARDED */ - }, 8, ["show", "duration", "custom-style", "onClick", "onTouchmove"]); - } - const __easycom_0$1 = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["render", _sfc_render$9], ["__scopeId", "data-v-b1e8b0c8"], ["__file", "D:/frontDev/project/OfficeSystem/node_modules/@climblee/uv-ui/components/uv-overlay/uv-overlay.vue"]]); - const props$3 = { - props: { - bgColor: { - type: String, - default: "transparent" - } - } - }; - const _sfc_main$9 = { - name: "uv-status-bar", - mixins: [mpMixin, mixin, props$3], - data() { - return {}; - }, - computed: { - style() { - const style = {}; - style.height = this.$uv.addUnit(this.$uv.sys().statusBarHeight, "px"); - if (this.bgColor) { - if (this.bgColor.indexOf("gradient") > -1) { - style.backgroundImage = this.bgColor; - } else { - style.background = this.bgColor; - } - } - return this.$uv.deepMerge(style, this.$uv.addStyle(this.customStyle)); - } - } - }; - function _sfc_render$8(_ctx, _cache, $props, $setup, $data, $options) { - return vue.openBlock(), vue.createElementBlock( - "view", - { - style: vue.normalizeStyle([$options.style]), - class: "uv-status-bar" - }, - [ - vue.renderSlot(_ctx.$slots, "default", {}, void 0, true) - ], - 4 - /* STYLE */ - ); - } - const __easycom_1$1 = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["render", _sfc_render$8], ["__scopeId", "data-v-4ff5a0d7"], ["__file", "D:/frontDev/project/OfficeSystem/node_modules/@climblee/uv-ui/components/uv-status-bar/uv-status-bar.vue"]]); - const _sfc_main$8 = { - name: "uv-safe-bottom", - mixins: [mpMixin, mixin], - data() { - return { - safeAreaBottomHeight: 0, - isNvue: false - }; - }, - computed: { - style() { - const style = {}; - return this.$uv.deepMerge(style, this.$uv.addStyle(this.customStyle)); - } - }, - mounted() { - } - }; - function _sfc_render$7(_ctx, _cache, $props, $setup, $data, $options) { - return vue.openBlock(), vue.createElementBlock( - "view", - { - class: vue.normalizeClass(["uv-safe-bottom", [!$data.isNvue && "uv-safe-area-inset-bottom"]]), - style: vue.normalizeStyle([$options.style]) - }, - null, - 6 - /* CLASS, STYLE */ - ); - } - const __easycom_0 = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["render", _sfc_render$7], ["__scopeId", "data-v-a55db101"], ["__file", "D:/frontDev/project/OfficeSystem/node_modules/@climblee/uv-ui/components/uv-safe-bottom/uv-safe-bottom.vue"]]); - const _sfc_main$7 = { - name: "uv-popup", - components: {}, - mixins: [mpMixin, mixin], - emits: ["change", "maskClick"], - props: { - // 弹出层类型,可选值,top: 顶部弹出层;bottom:底部弹出层;center:全屏弹出层 - // message: 消息提示 ; dialog : 对话框 - mode: { - type: String, - default: "center" - }, - // 动画时长,单位ms - duration: { - type: [String, Number], - default: 300 - }, - // 层级 - zIndex: { - type: [String, Number], - default: 10075 - }, - bgColor: { - type: String, - default: "#ffffff" - }, - safeArea: { - type: Boolean, - default: true - }, - // 是否显示遮罩 - overlay: { - type: Boolean, - default: true - }, - // 点击遮罩是否关闭弹窗 - closeOnClickOverlay: { - type: Boolean, - default: true - }, - // 遮罩的透明度,0-1之间 - overlayOpacity: { - type: [Number, String], - default: 0.4 - }, - // 自定义遮罩的样式 - overlayStyle: { - type: [Object, String], - default: "" - }, - // 是否为iPhoneX留出底部安全距离 - safeAreaInsetBottom: { - type: Boolean, - default: true - }, - // 是否留出顶部安全距离(状态栏高度) - safeAreaInsetTop: { - type: Boolean, - default: false - }, - // 是否显示关闭图标 - closeable: { - type: Boolean, - default: false - }, - // 自定义关闭图标位置,top-left为左上角,top-right为右上角,bottom-left为左下角,bottom-right为右下角 - closeIconPos: { - type: String, - default: "top-right" - }, - // mode=center,也即中部弹出时,是否使用缩放模式 - zoom: { - type: Boolean, - default: true - }, - round: { - type: [Number, String], - default: 0 - }, - ...(_r = (_q = uni.$uv) == null ? void 0 : _q.props) == null ? void 0 : _r.popup - }, - watch: { - /** - * 监听type类型 - */ - type: { - handler: function(type) { - if (!this.config[type]) - return; - this[this.config[type]](true); - }, - immediate: true - }, - isDesktop: { - handler: function(newVal) { - if (!this.config[newVal]) - return; - this[this.config[this.mode]](true); - }, - immediate: true - }, - // H5 下禁止底部滚动 - showPopup(show) { - } - }, - data() { - return { - ani: [], - showPopup: false, - showTrans: false, - popupWidth: 0, - popupHeight: 0, - config: { - top: "top", - bottom: "bottom", - center: "center", - left: "left", - right: "right", - message: "top", - dialog: "center", - share: "bottom" - }, - transitionStyle: { - position: "fixed", - left: 0, - right: 0 - }, - maskShow: true, - mkclick: true, - popupClass: this.isDesktop ? "fixforpc-top" : "top", - direction: "" - }; - }, - computed: { - isDesktop() { - return this.popupWidth >= 500 && this.popupHeight >= 500; - }, - bg() { - if (this.bgColor === "" || this.bgColor === "none" || this.$uv.getPx(this.round) > 0) { - return "transparent"; - } - return this.bgColor; - }, - contentStyle() { - const style = {}; - if (this.bgColor) { - style.backgroundColor = this.bg; - } - if (this.round) { - const value = this.$uv.addUnit(this.round); - const mode = this.direction ? this.direction : this.mode; - style.backgroundColor = this.bgColor; - if (mode === "top") { - style.borderBottomLeftRadius = value; - style.borderBottomRightRadius = value; - } else if (mode === "bottom") { - style.borderTopLeftRadius = value; - style.borderTopRightRadius = value; - } else if (mode === "center") { - style.borderRadius = value; - } - } - return this.$uv.deepMerge(style, this.$uv.addStyle(this.customStyle)); - } - }, - // TODO vue3 - unmounted() { - this.setH5Visible(); - }, - created() { - this.messageChild = null; - this.clearPropagation = false; - }, - methods: { - setH5Visible() { - }, - /** - * 公用方法,不显示遮罩层 - */ - closeMask() { - this.maskShow = false; - }, - // TODO nvue 取消冒泡 - clear(e) { - e.stopPropagation(); - this.clearPropagation = true; - }, - open(direction) { - if (this.showPopup) { - return; - } - let innerType = ["top", "center", "bottom", "left", "right", "message", "dialog", "share"]; - if (!(direction && innerType.indexOf(direction) !== -1)) { - direction = this.mode; - } else { - this.direction = direction; - } - if (!this.config[direction]) { - return this.$uv.error(`缺少类型:${direction}`); - } - this[this.config[direction]](); - this.$emit("change", { - show: true, - type: direction - }); - }, - close(type) { - this.showTrans = false; - this.$emit("change", { - show: false, - type: this.mode - }); - clearTimeout(this.timer); - this.timer = setTimeout(() => { - this.showPopup = false; - }, 300); - }, - // TODO 处理冒泡事件,头条的冒泡事件有问题 ,先这样兼容 - touchstart() { - this.clearPropagation = false; - }, - onTap() { - if (this.clearPropagation) { - this.clearPropagation = false; - return; - } - this.$emit("maskClick"); - if (!this.closeOnClickOverlay) - return; - this.close(); - }, - /** - * 顶部弹出样式处理 - */ - top(type) { - this.popupClass = this.isDesktop ? "fixforpc-top" : "top"; - this.ani = ["slide-top"]; - this.transitionStyle = { - position: "fixed", - zIndex: this.zIndex, - left: 0, - right: 0, - backgroundColor: this.bg - }; - if (type) - return; - this.showPopup = true; - this.showTrans = true; - this.$nextTick(() => { - if (this.messageChild && this.mode === "message") { - this.messageChild.timerClose(); - } - }); - }, - /** - * 底部弹出样式处理 - */ - bottom(type) { - this.popupClass = "bottom"; - this.ani = ["slide-bottom"]; - this.transitionStyle = { - position: "fixed", - zIndex: this.zIndex, - left: 0, - right: 0, - bottom: 0, - backgroundColor: this.bg - }; - if (type) - return; - this.showPopup = true; - this.showTrans = true; - }, - /** - * 中间弹出样式处理 - */ - center(type) { - this.popupClass = "center"; - this.ani = this.zoom ? ["zoom-in", "fade"] : ["fade"]; - this.transitionStyle = { - position: "fixed", - zIndex: this.zIndex, - display: "flex", - flexDirection: "column", - bottom: 0, - left: 0, - right: 0, - top: 0, - justifyContent: "center", - alignItems: "center" - }; - if (type) - return; - this.showPopup = true; - this.showTrans = true; - }, - left(type) { - this.popupClass = "left"; - this.ani = ["slide-left"]; - this.transitionStyle = { - position: "fixed", - zIndex: this.zIndex, - left: 0, - bottom: 0, - top: 0, - backgroundColor: this.bg, - display: "flex", - flexDirection: "column" - }; - if (type) - return; - this.showPopup = true; - this.showTrans = true; - }, - right(type) { - this.popupClass = "right"; - this.ani = ["slide-right"]; - this.transitionStyle = { - position: "fixed", - zIndex: this.zIndex, - bottom: 0, - right: 0, - top: 0, - backgroundColor: this.bg, - display: "flex", - flexDirection: "column" - }; - if (type) - return; - this.showPopup = true; - this.showTrans = true; - } - } - }; - function _sfc_render$6(_ctx, _cache, $props, $setup, $data, $options) { - const _component_uv_overlay = resolveEasycom(vue.resolveDynamicComponent("uv-overlay"), __easycom_0$1); - const _component_uv_status_bar = resolveEasycom(vue.resolveDynamicComponent("uv-status-bar"), __easycom_1$1); - const _component_uv_safe_bottom = resolveEasycom(vue.resolveDynamicComponent("uv-safe-bottom"), __easycom_0); - const _component_uv_icon = resolveEasycom(vue.resolveDynamicComponent("uv-icon"), __easycom_1$2); - const _component_uv_transition = resolveEasycom(vue.resolveDynamicComponent("uv-transition"), __easycom_4$1); - return $data.showPopup ? (vue.openBlock(), vue.createElementBlock( - "view", - { - key: 0, - class: vue.normalizeClass(["uv-popup", [$data.popupClass, $options.isDesktop ? "fixforpc-z-index" : ""]]), - style: vue.normalizeStyle([{ zIndex: $props.zIndex }]) - }, - [ - vue.createElementVNode( - "view", - { - onTouchstart: _cache[2] || (_cache[2] = (...args) => $options.touchstart && $options.touchstart(...args)) - }, - [ - vue.createCommentVNode(" 遮罩层 "), - $data.maskShow && $props.overlay ? (vue.openBlock(), vue.createBlock(_component_uv_overlay, { - key: "1", - show: $data.showTrans, - duration: $props.duration, - "custom-style": $props.overlayStyle, - opacity: $props.overlayOpacity, - zIndex: $props.zIndex, - onClick: $options.onTap - }, null, 8, ["show", "duration", "custom-style", "opacity", "zIndex", "onClick"])) : vue.createCommentVNode("v-if", true), - vue.createVNode(_component_uv_transition, { - key: "2", - mode: $data.ani, - name: "content", - "custom-style": $data.transitionStyle, - duration: $props.duration, - show: $data.showTrans, - onClick: $options.onTap - }, { - default: vue.withCtx(() => [ - vue.createElementVNode( - "view", - { - class: vue.normalizeClass(["uv-popup__content", [$data.popupClass]]), - style: vue.normalizeStyle([$options.contentStyle]), - onClick: _cache[1] || (_cache[1] = (...args) => $options.clear && $options.clear(...args)) - }, - [ - $props.safeAreaInsetTop ? (vue.openBlock(), vue.createBlock(_component_uv_status_bar, { key: 0 })) : vue.createCommentVNode("v-if", true), - vue.renderSlot(_ctx.$slots, "default", {}, void 0, true), - $props.safeAreaInsetBottom ? (vue.openBlock(), vue.createBlock(_component_uv_safe_bottom, { key: 1 })) : vue.createCommentVNode("v-if", true), - $props.closeable ? (vue.openBlock(), vue.createElementBlock( - "view", - { - key: 2, - onClick: _cache[0] || (_cache[0] = vue.withModifiers((...args) => $options.close && $options.close(...args), ["stop"])), - class: vue.normalizeClass(["uv-popup__content__close", ["uv-popup__content__close--" + $props.closeIconPos]]), - "hover-class": "uv-popup__content__close--hover", - "hover-stay-time": "150" - }, - [ - vue.createVNode(_component_uv_icon, { - name: "close", - color: "#909399", - size: "18", - bold: "" - }) - ], - 2 - /* CLASS */ - )) : vue.createCommentVNode("v-if", true) - ], - 6 - /* CLASS, STYLE */ - ) - ]), - _: 3 - /* FORWARDED */ - }, 8, ["mode", "custom-style", "duration", "show", "onClick"]) - ], - 32 - /* NEED_HYDRATION */ - ) - ], - 6 - /* CLASS, STYLE */ - )) : vue.createCommentVNode("v-if", true); - } - const __easycom_1 = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render$6], ["__scopeId", "data-v-c66d5e79"], ["__file", "D:/frontDev/project/OfficeSystem/node_modules/@climblee/uv-ui/components/uv-popup/uv-popup.vue"]]); - const _sfc_main$6 = { - name: "uv-calendar-header", - mixins: [mpMixin, mixin], - props: { - // 标题 - title: { - type: String, - default: "" - }, - // 副标题 - subtitle: { - type: [String, null], - default: "" - }, - // 是否显示标题 - showTitle: { - type: Boolean, - default: true - }, - // 是否显示副标题 - showSubtitle: { - type: Boolean, - default: true - } - }, - data() { - return {}; - }, - methods: { - name() { - } - } - }; - function _sfc_render$5(_ctx, _cache, $props, $setup, $data, $options) { - return vue.openBlock(), vue.createElementBlock("view", { class: "uv-calendar-header uv-border-bottom" }, [ - $props.showTitle ? (vue.openBlock(), vue.createElementBlock( - "text", - { - key: 0, - class: "uv-calendar-header__title" - }, - vue.toDisplayString($props.title), - 1 - /* TEXT */ - )) : vue.createCommentVNode("v-if", true), - $props.showSubtitle ? (vue.openBlock(), vue.createElementBlock( - "text", - { - key: 1, - class: "uv-calendar-header__subtitle" - }, - vue.toDisplayString($props.subtitle), - 1 - /* TEXT */ - )) : vue.createCommentVNode("v-if", true), - vue.createElementVNode("view", { class: "uv-calendar-header__weekdays" }, [ - vue.createElementVNode("text", { class: "uv-calendar-header__weekdays__weekday" }, "一"), - vue.createElementVNode("text", { class: "uv-calendar-header__weekdays__weekday" }, "二"), - vue.createElementVNode("text", { class: "uv-calendar-header__weekdays__weekday" }, "三"), - vue.createElementVNode("text", { class: "uv-calendar-header__weekdays__weekday" }, "四"), - vue.createElementVNode("text", { class: "uv-calendar-header__weekdays__weekday" }, "五"), - vue.createElementVNode("text", { class: "uv-calendar-header__weekdays__weekday" }, "六"), - vue.createElementVNode("text", { class: "uv-calendar-header__weekdays__weekday" }, "日") - ]) - ]); - } - const uvHeader = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["render", _sfc_render$5], ["__scopeId", "data-v-de7aec68"], ["__file", "D:/frontDev/project/OfficeSystem/node_modules/@climblee/uv-ui/components/uv-calendar/header.vue"]]); - var __getOwnPropNames = Object.getOwnPropertyNames; - var __commonJS = (cb, mod) => function __require() { - return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports; - }; - var require_dayjs_min = __commonJS({ - "uvuidayjs"(exports, module) { - !function(t, e) { - "object" == typeof exports && "undefined" != typeof module ? module.exports = e() : "function" == typeof define && define.amd ? define(e) : (t = "undefined" != typeof globalThis ? globalThis : t || self).dayjs = e(); - }(exports, function() { - var t = 1e3, e = 6e4, n = 36e5, r = "millisecond", i = "second", s = "minute", u = "hour", a = "day", o = "week", f = "month", h = "quarter", c = "year", d = "date", l = "Invalid Date", $ = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, y = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, M = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(t2) { - var e2 = ["th", "st", "nd", "rd"], n2 = t2 % 100; - return "[" + t2 + (e2[(n2 - 20) % 10] || e2[n2] || e2[0]) + "]"; - } }, m = function(t2, e2, n2) { - var r2 = String(t2); - return !r2 || r2.length >= e2 ? t2 : "" + Array(e2 + 1 - r2.length).join(n2) + t2; - }, v = { s: m, z: function(t2) { - var e2 = -t2.utcOffset(), n2 = Math.abs(e2), r2 = Math.floor(n2 / 60), i2 = n2 % 60; - return (e2 <= 0 ? "+" : "-") + m(r2, 2, "0") + ":" + m(i2, 2, "0"); - }, m: function t2(e2, n2) { - if (e2.date() < n2.date()) - return -t2(n2, e2); - var r2 = 12 * (n2.year() - e2.year()) + (n2.month() - e2.month()), i2 = e2.clone().add(r2, f), s2 = n2 - i2 < 0, u2 = e2.clone().add(r2 + (s2 ? -1 : 1), f); - return +(-(r2 + (n2 - i2) / (s2 ? i2 - u2 : u2 - i2)) || 0); - }, a: function(t2) { - return t2 < 0 ? Math.ceil(t2) || 0 : Math.floor(t2); - }, p: function(t2) { - return { M: f, y: c, w: o, d: a, D: d, h: u, m: s, s: i, ms: r, Q: h }[t2] || String(t2 || "").toLowerCase().replace(/s$/, ""); - }, u: function(t2) { - return void 0 === t2; - } }, g = "en", D = {}; - D[g] = M; - var p = function(t2) { - return t2 instanceof _; - }, S = function t2(e2, n2, r2) { - var i2; - if (!e2) - return g; - if ("string" == typeof e2) { - var s2 = e2.toLowerCase(); - D[s2] && (i2 = s2), n2 && (D[s2] = n2, i2 = s2); - var u2 = e2.split("-"); - if (!i2 && u2.length > 1) - return t2(u2[0]); - } else { - var a2 = e2.name; - D[a2] = e2, i2 = a2; - } - return !r2 && i2 && (g = i2), i2 || !r2 && g; - }, w = function(t2, e2) { - if (p(t2)) - return t2.clone(); - var n2 = "object" == typeof e2 ? e2 : {}; - return n2.date = t2, n2.args = arguments, new _(n2); - }, O = v; - O.l = S, O.i = p, O.w = function(t2, e2) { - return w(t2, { locale: e2.$L, utc: e2.$u, x: e2.$x, $offset: e2.$offset }); - }; - var _ = function() { - function M2(t2) { - this.$L = S(t2.locale, null, true), this.parse(t2); - } - var m2 = M2.prototype; - return m2.parse = function(t2) { - this.$d = function(t3) { - var e2 = t3.date, n2 = t3.utc; - if (null === e2) - return /* @__PURE__ */ new Date(NaN); - if (O.u(e2)) - return /* @__PURE__ */ new Date(); - if (e2 instanceof Date) - return new Date(e2); - if ("string" == typeof e2 && !/Z$/i.test(e2)) { - var r2 = e2.match($); - if (r2) { - var i2 = r2[2] - 1 || 0, s2 = (r2[7] || "0").substring(0, 3); - return n2 ? new Date(Date.UTC(r2[1], i2, r2[3] || 1, r2[4] || 0, r2[5] || 0, r2[6] || 0, s2)) : new Date(r2[1], i2, r2[3] || 1, r2[4] || 0, r2[5] || 0, r2[6] || 0, s2); - } - } - return new Date(e2); - }(t2), this.$x = t2.x || {}, this.init(); - }, m2.init = function() { - var t2 = this.$d; - this.$y = t2.getFullYear(), this.$M = t2.getMonth(), this.$D = t2.getDate(), this.$W = t2.getDay(), this.$H = t2.getHours(), this.$m = t2.getMinutes(), this.$s = t2.getSeconds(), this.$ms = t2.getMilliseconds(); - }, m2.$utils = function() { - return O; - }, m2.isValid = function() { - return !(this.$d.toString() === l); - }, m2.isSame = function(t2, e2) { - var n2 = w(t2); - return this.startOf(e2) <= n2 && n2 <= this.endOf(e2); - }, m2.isAfter = function(t2, e2) { - return w(t2) < this.startOf(e2); - }, m2.isBefore = function(t2, e2) { - return this.endOf(e2) < w(t2); - }, m2.$g = function(t2, e2, n2) { - return O.u(t2) ? this[e2] : this.set(n2, t2); - }, m2.unix = function() { - return Math.floor(this.valueOf() / 1e3); - }, m2.valueOf = function() { - return this.$d.getTime(); - }, m2.startOf = function(t2, e2) { - var n2 = this, r2 = !!O.u(e2) || e2, h2 = O.p(t2), l2 = function(t3, e3) { - var i2 = O.w(n2.$u ? Date.UTC(n2.$y, e3, t3) : new Date(n2.$y, e3, t3), n2); - return r2 ? i2 : i2.endOf(a); - }, $2 = function(t3, e3) { - return O.w(n2.toDate()[t3].apply(n2.toDate("s"), (r2 ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(e3)), n2); - }, y2 = this.$W, M3 = this.$M, m3 = this.$D, v2 = "set" + (this.$u ? "UTC" : ""); - switch (h2) { - case c: - return r2 ? l2(1, 0) : l2(31, 11); - case f: - return r2 ? l2(1, M3) : l2(0, M3 + 1); - case o: - var g2 = this.$locale().weekStart || 0, D2 = (y2 < g2 ? y2 + 7 : y2) - g2; - return l2(r2 ? m3 - D2 : m3 + (6 - D2), M3); - case a: - case d: - return $2(v2 + "Hours", 0); - case u: - return $2(v2 + "Minutes", 1); - case s: - return $2(v2 + "Seconds", 2); - case i: - return $2(v2 + "Milliseconds", 3); - default: - return this.clone(); - } - }, m2.endOf = function(t2) { - return this.startOf(t2, false); - }, m2.$set = function(t2, e2) { - var n2, o2 = O.p(t2), h2 = "set" + (this.$u ? "UTC" : ""), l2 = (n2 = {}, n2[a] = h2 + "Date", n2[d] = h2 + "Date", n2[f] = h2 + "Month", n2[c] = h2 + "FullYear", n2[u] = h2 + "Hours", n2[s] = h2 + "Minutes", n2[i] = h2 + "Seconds", n2[r] = h2 + "Milliseconds", n2)[o2], $2 = o2 === a ? this.$D + (e2 - this.$W) : e2; - if (o2 === f || o2 === c) { - var y2 = this.clone().set(d, 1); - y2.$d[l2]($2), y2.init(), this.$d = y2.set(d, Math.min(this.$D, y2.daysInMonth())).$d; - } else - l2 && this.$d[l2]($2); - return this.init(), this; - }, m2.set = function(t2, e2) { - return this.clone().$set(t2, e2); - }, m2.get = function(t2) { - return this[O.p(t2)](); - }, m2.add = function(r2, h2) { - var d2, l2 = this; - r2 = Number(r2); - var $2 = O.p(h2), y2 = function(t2) { - var e2 = w(l2); - return O.w(e2.date(e2.date() + Math.round(t2 * r2)), l2); - }; - if ($2 === f) - return this.set(f, this.$M + r2); - if ($2 === c) - return this.set(c, this.$y + r2); - if ($2 === a) - return y2(1); - if ($2 === o) - return y2(7); - var M3 = (d2 = {}, d2[s] = e, d2[u] = n, d2[i] = t, d2)[$2] || 1, m3 = this.$d.getTime() + r2 * M3; - return O.w(m3, this); - }, m2.subtract = function(t2, e2) { - return this.add(-1 * t2, e2); - }, m2.format = function(t2) { - var e2 = this, n2 = this.$locale(); - if (!this.isValid()) - return n2.invalidDate || l; - var r2 = t2 || "YYYY-MM-DDTHH:mm:ssZ", i2 = O.z(this), s2 = this.$H, u2 = this.$m, a2 = this.$M, o2 = n2.weekdays, f2 = n2.months, h2 = function(t3, n3, i3, s3) { - return t3 && (t3[n3] || t3(e2, r2)) || i3[n3].slice(0, s3); - }, c2 = function(t3) { - return O.s(s2 % 12 || 12, t3, "0"); - }, d2 = n2.meridiem || function(t3, e3, n3) { - var r3 = t3 < 12 ? "AM" : "PM"; - return n3 ? r3.toLowerCase() : r3; - }, $2 = { YY: String(this.$y).slice(-2), YYYY: this.$y, M: a2 + 1, MM: O.s(a2 + 1, 2, "0"), MMM: h2(n2.monthsShort, a2, f2, 3), MMMM: h2(f2, a2), D: this.$D, DD: O.s(this.$D, 2, "0"), d: String(this.$W), dd: h2(n2.weekdaysMin, this.$W, o2, 2), ddd: h2(n2.weekdaysShort, this.$W, o2, 3), dddd: o2[this.$W], H: String(s2), HH: O.s(s2, 2, "0"), h: c2(1), hh: c2(2), a: d2(s2, u2, true), A: d2(s2, u2, false), m: String(u2), mm: O.s(u2, 2, "0"), s: String(this.$s), ss: O.s(this.$s, 2, "0"), SSS: O.s(this.$ms, 3, "0"), Z: i2 }; - return r2.replace(y, function(t3, e3) { - return e3 || $2[t3] || i2.replace(":", ""); - }); - }, m2.utcOffset = function() { - return 15 * -Math.round(this.$d.getTimezoneOffset() / 15); - }, m2.diff = function(r2, d2, l2) { - var $2, y2 = O.p(d2), M3 = w(r2), m3 = (M3.utcOffset() - this.utcOffset()) * e, v2 = this - M3, g2 = O.m(this, M3); - return g2 = ($2 = {}, $2[c] = g2 / 12, $2[f] = g2, $2[h] = g2 / 3, $2[o] = (v2 - m3) / 6048e5, $2[a] = (v2 - m3) / 864e5, $2[u] = v2 / n, $2[s] = v2 / e, $2[i] = v2 / t, $2)[y2] || v2, l2 ? g2 : O.a(g2); - }, m2.daysInMonth = function() { - return this.endOf(f).$D; - }, m2.$locale = function() { - return D[this.$L]; - }, m2.locale = function(t2, e2) { - if (!t2) - return this.$L; - var n2 = this.clone(), r2 = S(t2, e2, true); - return r2 && (n2.$L = r2), n2; - }, m2.clone = function() { - return O.w(this.$d, this); - }, m2.toDate = function() { - return new Date(this.valueOf()); - }, m2.toJSON = function() { - return this.isValid() ? this.toISOString() : null; - }, m2.toISOString = function() { - return this.$d.toISOString(); - }, m2.toString = function() { - return this.$d.toUTCString(); - }, M2; - }(), T = _.prototype; - return w.prototype = T, [["$ms", r], ["$s", i], ["$m", s], ["$H", u], ["$W", a], ["$M", f], ["$y", c], ["$D", d]].forEach(function(t2) { - T[t2[1]] = function(e2) { - return this.$g(e2, t2[0], t2[1]); - }; - }), w.extend = function(t2, e2) { - return t2.$i || (t2(e2, _, w), t2.$i = true), w; - }, w.locale = S, w.isDayjs = p, w.unix = function(t2) { - return w(1e3 * t2); - }, w.en = D[g], w.Ls = D, w.p = {}, w; - }); - } - }); - const dayjs = require_dayjs_min(); - const _sfc_main$5 = { - name: "uv-calendar-month", - emits: ["monthSelected", "updateMonthTop", "change"], - mixins: [mpMixin, mixin], - props: { - // 是否显示月份背景色 - showMark: { - type: Boolean, - default: true - }, - // 主题色,对底部按钮和选中日期有效 - color: { - type: String, - default: "#3c9cff" - }, - // 月份数据 - months: { - type: Array, - default: () => [] - }, - // 日期选择类型 - mode: { - type: String, - default: "single" - }, - // 日期行高 - rowHeight: { - type: [String, Number], - default: 58 - }, - // mode=multiple时,最多可选多少个日期 - maxCount: { - type: [String, Number], - default: Infinity - }, - // mode=range时,第一个日期底部的提示文字 - startText: { - type: String, - default: "开始" - }, - // mode=range时,最后一个日期底部的提示文字 - endText: { - type: String, - default: "结束" - }, - // 默认选中的日期,mode为multiple或range是必须为数组格式 - defaultDate: { - type: [Array, String, Date], - default: null - }, - // 最小的可选日期 - minDate: { - type: [String, Number], - default: 0 - }, - // 最大可选日期 - maxDate: { - type: [String, Number], - default: 0 - }, - // 如果没有设置maxDate,则往后推多少个月 - maxMonth: { - type: [String, Number], - default: 2 - }, - // 是否为只读状态,只读状态下禁止选择日期 - readonly: { - type: Boolean, - default: false - }, - // 日期区间最多可选天数,默认无限制,mode = range时有效 - maxRange: { - type: [Number, String], - default: Infinity - }, - // 范围选择超过最多可选天数时的提示文案,mode = range时有效 - rangePrompt: { - type: String, - default: "" - }, - // 范围选择超过最多可选天数时,是否展示提示文案,mode = range时有效 - showRangePrompt: { - type: Boolean, - default: true - }, - // 是否允许日期范围的起止时间为同一天,mode = range时有效 - allowSameDay: { - type: Boolean, - default: false - } - }, - data() { - return { - // 每个日期的宽度 - width: 0, - // 当前选中的日期item - item: {}, - selected: [] - }; - }, - watch: { - selectedChange: { - immediate: true, - handler(n) { - this.setDefaultDate(); - } - } - }, - computed: { - // 多个条件的变化,会引起选中日期的变化,这里统一管理监听 - selectedChange() { - return [this.minDate, this.maxDate, this.defaultDate]; - }, - dayStyle(index1, index2, item) { - return (index12, index22, item2) => { - const style = {}; - let week = item2.week; - const dayWidth = Number(parseFloat(this.width / 7).toFixed(3).slice(0, -1)); - style.height = this.$uv.addUnit(this.rowHeight); - if (index22 === 0) { - week = (week === 0 ? 7 : week) - 1; - style.marginLeft = this.$uv.addUnit(week * dayWidth); - } - if (this.mode === "range") { - style.paddingLeft = 0; - style.paddingRight = 0; - style.paddingBottom = 0; - style.paddingTop = 0; - } - return style; - }; - }, - daySelectStyle() { - return (index1, index2, item) => { - let date2 = dayjs(item.date).format("YYYY-MM-DD"), style = {}; - if (this.selected.some((item2) => this.dateSame(item2, date2))) { - style.backgroundColor = this.color; - } - if (this.mode === "single") { - if (date2 === this.selected[0]) { - style.borderTopLeftRadius = "3px"; - style.borderBottomLeftRadius = "3px"; - style.borderTopRightRadius = "3px"; - style.borderBottomRightRadius = "3px"; - } - } else if (this.mode === "range") { - if (this.selected.length >= 2) { - const len = this.selected.length - 1; - if (this.dateSame(date2, this.selected[0])) { - style.borderTopLeftRadius = "3px"; - style.borderBottomLeftRadius = "3px"; - } - if (this.dateSame(date2, this.selected[len])) { - style.borderTopRightRadius = "3px"; - style.borderBottomRightRadius = "3px"; - } - if (dayjs(date2).isAfter(dayjs(this.selected[0])) && dayjs(date2).isBefore(dayjs(this.selected[len]))) { - style.backgroundColor = colorGradient(this.color, "#ffffff", 100)[90]; - style.opacity = 0.7; - } - } else if (this.selected.length === 1) { - style.borderTopLeftRadius = "3px"; - style.borderBottomLeftRadius = "3px"; - } - } else { - if (this.selected.some((item2) => this.dateSame(item2, date2))) { - style.borderTopLeftRadius = "3px"; - style.borderBottomLeftRadius = "3px"; - style.borderTopRightRadius = "3px"; - style.borderBottomRightRadius = "3px"; - } - } - return style; - }; - }, - // 某个日期是否被选中 - textStyle() { - return (item) => { - const date2 = dayjs(item.date).format("YYYY-MM-DD"), style = {}; - if (this.selected.some((item2) => this.dateSame(item2, date2))) { - style.color = "#ffffff"; - } - if (this.mode === "range") { - const len = this.selected.length - 1; - if (dayjs(date2).isAfter(dayjs(this.selected[0])) && dayjs(date2).isBefore(dayjs(this.selected[len]))) { - style.color = this.color; - } - } - return style; - }; - }, - // 获取顶部的提示文字 - getTopInfo() { - return (index1, index2, item) => { - return item.topInfo; - }; - }, - // 获取底部的提示文字 - getBottomInfo() { - return (index1, index2, item) => { - const date2 = dayjs(item.date).format("YYYY-MM-DD"); - const bottomInfo = item.bottomInfo; - if (this.mode === "range" && this.selected.length > 0) { - if (this.selected.length === 1) { - if (this.dateSame(date2, this.selected[0])) - return this.startText; - else - return bottomInfo; - } else { - const len = this.selected.length - 1; - if (this.dateSame(date2, this.selected[0]) && this.dateSame(date2, this.selected[1]) && len === 1) { - return `${this.startText}/${this.endText}`; - } else if (this.dateSame(date2, this.selected[0])) { - return this.startText; - } else if (this.dateSame(date2, this.selected[len])) { - return this.endText; - } else { - return bottomInfo; - } - } - } else { - return bottomInfo; - } - }; - } - }, - mounted() { - this.init(); - }, - methods: { - init() { - this.$emit("monthSelected", this.selected); - this.$nextTick(() => { - this.$uv.sleep(10).then(() => { - this.getWrapperWidth(); - this.getMonthRect(); - }); - }); - }, - // 判断两个日期是否相等 - dateSame(date1, date2) { - return dayjs(date1).isSame(dayjs(date2)); - }, - // 获取月份数据区域的宽度,因为nvue不支持百分比,所以无法通过css设置每个日期item的宽度 - getWrapperWidth() { - this.$uvGetRect(".uv-calendar-month-wrapper").then((size) => { - this.width = size.width; - }); - }, - getMonthRect() { - const promiseAllArr = this.months.map((item, index2) => this.getMonthRectByPromise( - `uv-calendar-month-${index2}` - )); - Promise.all(promiseAllArr).then( - (sizes) => { - let height = 1; - const topArr = []; - for (let i = 0; i < this.months.length; i++) { - topArr[i] = height; - height += sizes[i].height; - } - this.$emit("updateMonthTop", topArr); - } - ); - }, - // 获取每个月份区域的尺寸 - getMonthRectByPromise(el) { - return new Promise((resolve) => { - this.$uvGetRect(`.${el}`).then((size) => { - resolve(size); - }); - }); - }, - // 点击某一个日期 - clickHandler(index1, index2, item) { - if (this.readonly) { - return; - } - this.item = item; - const date2 = dayjs(item.date).format("YYYY-MM-DD"); - if (item.disabled) - return; - let selected = this.$uv.deepClone(this.selected); - if (this.mode === "single") { - selected = [date2]; - } else if (this.mode === "multiple") { - if (selected.some((item2) => this.dateSame(item2, date2))) { - const itemIndex = selected.findIndex((item2) => dayjs(item2).format("YYYY-MM-DD") === dayjs(date2).format("YYYY-MM-DD")); - selected.splice(itemIndex, 1); - } else { - if (selected.length < this.maxCount) - selected.push(date2); - } - } else { - if (selected.length === 0 || selected.length >= 2) { - selected = [date2]; - } else if (selected.length === 1) { - const existsDate = selected[0]; - if (dayjs(date2).isBefore(existsDate)) { - selected = [date2]; - } else if (dayjs(date2).isAfter(existsDate)) { - if (dayjs(dayjs(date2).subtract(this.maxRange, "day")).isAfter(dayjs(selected[0])) && this.showRangePrompt) { - if (this.rangePrompt) { - this.$uv.toast(this.rangePrompt); - } else { - this.$uv.toast(`选择天数不能超过 ${this.maxRange} 天`); - } - return; - } - selected.push(date2); - const startDate = selected[0]; - const endDate = selected[1]; - const arr = []; - let i = 0; - do { - arr.push(dayjs(startDate).add(i, "day").format("YYYY-MM-DD")); - i++; - } while (dayjs(startDate).add(i, "day").isBefore(dayjs(endDate))); - arr.push(endDate); - selected = arr; - } else { - if (selected[0] === date2 && !this.allowSameDay) - return; - selected.push(date2); - } - } - } - this.setSelected(selected); - this.$emit("change", { - day: date2, - selected - }); - }, - // 设置默认日期 - setDefaultDate() { - if (!this.defaultDate) { - const selected = [dayjs().format("YYYY-MM-DD")]; - return this.setSelected(selected, false); - } - let defaultDate = []; - const minDate = this.minDate || dayjs().format("YYYY-MM-DD"); - const maxDate = this.maxDate || dayjs(minDate).add(this.maxMonth - 1, "month").format("YYYY-MM-DD"); - if (this.mode === "single") { - if (!this.$uv.test.array(this.defaultDate)) { - defaultDate = [dayjs(this.defaultDate).format("YYYY-MM-DD")]; - } else { - defaultDate = [this.defaultDate[0]]; - } - } else { - if (!this.$uv.test.array(this.defaultDate)) - return; - defaultDate = this.defaultDate; - } - defaultDate = defaultDate.filter((item) => { - return dayjs(item).isAfter(dayjs(minDate).subtract(1, "day")) && dayjs(item).isBefore(dayjs( - maxDate - ).add(1, "day")); - }); - this.setSelected(defaultDate, false); - }, - setSelected(selected, event = true) { - this.selected = selected; - event && this.$emit("monthSelected", this.selected); - } - } - }; - function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) { - return vue.openBlock(), vue.createElementBlock( - "view", - { - class: "uv-calendar-month-wrapper", - ref: "uv-calendar-month-wrapper" - }, - [ - (vue.openBlock(true), vue.createElementBlock( - vue.Fragment, - null, - vue.renderList($props.months, (item, index2) => { - return vue.openBlock(), vue.createElementBlock("view", { - key: index2, - class: vue.normalizeClass([`uv-calendar-month-${index2}`]), - ref_for: true, - ref: `uv-calendar-month-${index2}`, - id: `month-${index2}` - }, [ - index2 !== 0 ? (vue.openBlock(), vue.createElementBlock( - "text", - { - key: 0, - class: "uv-calendar-month__title" - }, - vue.toDisplayString(item.year) + "年" + vue.toDisplayString(item.month) + "月", - 1 - /* TEXT */ - )) : vue.createCommentVNode("v-if", true), - vue.createElementVNode("view", { class: "uv-calendar-month__days" }, [ - $props.showMark ? (vue.openBlock(), vue.createElementBlock("view", { - key: 0, - class: "uv-calendar-month__days__month-mark-wrapper" - }, [ - vue.createElementVNode( - "text", - { class: "uv-calendar-month__days__month-mark-wrapper__text" }, - vue.toDisplayString(item.month), - 1 - /* TEXT */ - ) - ])) : vue.createCommentVNode("v-if", true), - (vue.openBlock(true), vue.createElementBlock( - vue.Fragment, - null, - vue.renderList(item.date, (item1, index1) => { - return vue.openBlock(), vue.createElementBlock("view", { - class: vue.normalizeClass(["uv-calendar-month__days__day", [item1.selected && "uv-calendar-month__days__day__select--selected"]]), - key: index1, - style: vue.normalizeStyle([$options.dayStyle(index2, index1, item1)]), - onClick: ($event) => $options.clickHandler(index2, index1, item1) - }, [ - vue.createElementVNode( - "view", - { - class: "uv-calendar-month__days__day__select", - style: vue.normalizeStyle([$options.daySelectStyle(index2, index1, item1)]) - }, - [ - $options.getTopInfo(index2, index1, item1) ? (vue.openBlock(), vue.createElementBlock( - "text", - { - key: 0, - class: vue.normalizeClass(["uv-calendar-month__days__day__select__top-info", [item1.disabled && "uv-calendar-month__days__day__select__top-info--disabled"]]), - style: vue.normalizeStyle([$options.textStyle(item1)]) - }, - vue.toDisplayString($options.getTopInfo(index2, index1, item1)), - 7 - /* TEXT, CLASS, STYLE */ - )) : vue.createCommentVNode("v-if", true), - vue.createElementVNode( - "text", - { - class: vue.normalizeClass(["uv-calendar-month__days__day__select__info", [item1.disabled && "uv-calendar-month__days__day__select__info--disabled"]]), - style: vue.normalizeStyle([$options.textStyle(item1)]) - }, - vue.toDisplayString(item1.day), - 7 - /* TEXT, CLASS, STYLE */ - ), - $options.getBottomInfo(index2, index1, item1) ? (vue.openBlock(), vue.createElementBlock( - "text", - { - key: 1, - class: vue.normalizeClass(["uv-calendar-month__days__day__select__buttom-info", [item1.disabled && "uv-calendar-month__days__day__select__buttom-info--disabled"]]), - style: vue.normalizeStyle([$options.textStyle(item1)]) - }, - vue.toDisplayString($options.getBottomInfo(index2, index1, item1)), - 7 - /* TEXT, CLASS, STYLE */ - )) : vue.createCommentVNode("v-if", true), - item1.dot ? (vue.openBlock(), vue.createElementBlock("text", { - key: 2, - class: "uv-calendar-month__days__day__select__dot" - })) : vue.createCommentVNode("v-if", true) - ], - 4 - /* STYLE */ - ) - ], 14, ["onClick"]); - }), - 128 - /* KEYED_FRAGMENT */ - )) - ]) - ], 10, ["id"]); - }), - 128 - /* KEYED_FRAGMENT */ - )) - ], - 512 - /* NEED_PATCH */ - ); - } - const uvMonth = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["render", _sfc_render$4], ["__scopeId", "data-v-b2cf4ec4"], ["__file", "D:/frontDev/project/OfficeSystem/node_modules/@climblee/uv-ui/components/uv-calendar/month.vue"]]); - const props$2 = { - props: { - // 日历顶部标题 - title: { - type: String, - default: "日期选择" - }, - // 是否显示标题 - showTitle: { - type: Boolean, - default: true - }, - // 是否显示副标题 - showSubtitle: { - type: Boolean, - default: true - }, - // 日期类型选择,single-选择单个日期,multiple-可以选择多个日期,range-选择日期范围 - mode: { - type: String, - default: "single" - }, - // mode=range时,第一个日期底部的提示文字 - startText: { - type: String, - default: "开始" - }, - // mode=range时,最后一个日期底部的提示文字 - endText: { - type: String, - default: "结束" - }, - // 自定义列表 - customList: { - type: Array, - default: () => [] - }, - // 主题色,对底部按钮和选中日期有效 - color: { - type: String, - default: "#3c9cff" - }, - // 最小的可选日期 - minDate: { - type: [String, Number], - default: 0 - }, - // 最大可选日期 - maxDate: { - type: [String, Number], - default: 0 - }, - // 默认选中的日期,mode为multiple或range是必须为数组格式 - defaultDate: { - type: [Array, String, Date, null], - default: null - }, - // mode=multiple时,最多可选多少个日期 - maxCount: { - type: [String, Number], - default: Number.MAX_SAFE_INTEGER - }, - // 日期行高 - rowHeight: { - type: [String, Number], - default: 56 - }, - // 日期格式化函数 - formatter: { - type: [Function, null], - default: null - }, - // 是否显示农历 - showLunar: { - type: Boolean, - default: false - }, - // 是否显示月份背景色 - showMark: { - type: Boolean, - default: true - }, - // 确定按钮的文字 - confirmText: { - type: String, - default: "确定" - }, - // 确认按钮处于禁用状态时的文字 - confirmDisabledText: { - type: String, - default: "确定" - }, - // 是否允许点击遮罩关闭日历 - closeOnClickOverlay: { - type: Boolean, - default: false - }, - // 是否允许点击确认按钮关闭日历 - closeOnClickConfirm: { - type: Boolean, - default: true - }, - // 是否为只读状态,只读状态下禁止选择日期 - readonly: { - type: Boolean, - default: false - }, - // 是否展示确认按钮 - showConfirm: { - type: Boolean, - default: true - }, - // 日期区间最多可选天数,默认无限制,mode = range时有效 Infinity - maxRange: { - type: [Number, String], - default: Number.MAX_SAFE_INTEGER - }, - // 范围选择超过最多可选天数时的提示文案,mode = range时有效 - rangePrompt: { - type: String, - default: "" - }, - // 范围选择超过最多可选天数时,是否展示提示文案,mode = range时有效 - showRangePrompt: { - type: Boolean, - default: true - }, - // 是否允许日期范围的起止时间为同一天,mode = range时有效 - allowSameDay: { - type: Boolean, - default: false - }, - // 圆角值 - round: { - type: [Boolean, String, Number], - default: 0 - }, - // 最多展示月份数量 - monthNum: { - type: [Number, String], - default: 3 - }, - ...(_t = (_s = uni.$uv) == null ? void 0 : _s.props) == null ? void 0 : _t.calendar - } - }; - var calendar = { - /** - * 农历1900-2100的润大小信息表 - * @Array Of Property - * @return Hex - */ - lunarInfo: [ - 19416, - 19168, - 42352, - 21717, - 53856, - 55632, - 91476, - 22176, - 39632, - 21970, - // 1900-1909 - 19168, - 42422, - 42192, - 53840, - 119381, - 46400, - 54944, - 44450, - 38320, - 84343, - // 1910-1919 - 18800, - 42160, - 46261, - 27216, - 27968, - 109396, - 11104, - 38256, - 21234, - 18800, - // 1920-1929 - 25958, - 54432, - 59984, - 28309, - 23248, - 11104, - 100067, - 37600, - 116951, - 51536, - // 1930-1939 - 54432, - 120998, - 46416, - 22176, - 107956, - 9680, - 37584, - 53938, - 43344, - 46423, - // 1940-1949 - 27808, - 46416, - 86869, - 19872, - 42416, - 83315, - 21168, - 43432, - 59728, - 27296, - // 1950-1959 - 44710, - 43856, - 19296, - 43748, - 42352, - 21088, - 62051, - 55632, - 23383, - 22176, - // 1960-1969 - 38608, - 19925, - 19152, - 42192, - 54484, - 53840, - 54616, - 46400, - 46752, - 103846, - // 1970-1979 - 38320, - 18864, - 43380, - 42160, - 45690, - 27216, - 27968, - 44870, - 43872, - 38256, - // 1980-1989 - 19189, - 18800, - 25776, - 29859, - 59984, - 27480, - 23232, - 43872, - 38613, - 37600, - // 1990-1999 - 51552, - 55636, - 54432, - 55888, - 30034, - 22176, - 43959, - 9680, - 37584, - 51893, - // 2000-2009 - 43344, - 46240, - 47780, - 44368, - 21977, - 19360, - 42416, - 86390, - 21168, - 43312, - // 2010-2019 - 31060, - 27296, - 44368, - 23378, - 19296, - 42726, - 42208, - 53856, - 60005, - 54576, - // 2020-2029 - 23200, - 30371, - 38608, - 19195, - 19152, - 42192, - 118966, - 53840, - 54560, - 56645, - // 2030-2039 - 46496, - 22224, - 21938, - 18864, - 42359, - 42160, - 43600, - 111189, - 27936, - 44448, - // 2040-2049 - /** Add By JJonline@JJonline.Cn**/ - 84835, - 37744, - 18936, - 18800, - 25776, - 92326, - 59984, - 27424, - 108228, - 43744, - // 2050-2059 - 41696, - 53987, - 51552, - 54615, - 54432, - 55888, - 23893, - 22176, - 42704, - 21972, - // 2060-2069 - 21200, - 43448, - 43344, - 46240, - 46758, - 44368, - 21920, - 43940, - 42416, - 21168, - // 2070-2079 - 45683, - 26928, - 29495, - 27296, - 44368, - 84821, - 19296, - 42352, - 21732, - 53600, - // 2080-2089 - 59752, - 54560, - 55968, - 92838, - 22224, - 19168, - 43476, - 41680, - 53584, - 62034, - // 2090-2099 - 54560 - ], - // 2100 - /** - * 公历每个月份的天数普通表 - * @Array Of Property - * @return Number - */ - solarMonth: [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], - /** - * 天干地支之天干速查表 - * @Array Of Property trans["甲","乙","丙","丁","戊","己","庚","辛","壬","癸"] - * @return Cn string - */ - Gan: ["甲", "乙", "丙", "丁", "戊", "己", "庚", "辛", "壬", "癸"], - /** - * 天干地支之地支速查表 - * @Array Of Property - * @trans["子","丑","寅","卯","辰","巳","午","未","申","酉","戌","亥"] - * @return Cn string - */ - Zhi: ["子", "丑", "寅", "卯", "辰", "巳", "午", "未", "申", "酉", "戌", "亥"], - /** - * 天干地支之地支速查表<=>生肖 - * @Array Of Property - * @trans["鼠","牛","虎","兔","龙","蛇","马","羊","猴","鸡","狗","猪"] - * @return Cn string - */ - Animals: ["鼠", "牛", "虎", "兔", "龙", "蛇", "马", "羊", "猴", "鸡", "狗", "猪"], - /** - * 24节气速查表 - * @Array Of Property - * @trans["小寒","大寒","立春","雨水","惊蛰","春分","清明","谷雨","立夏","小满","芒种","夏至","小暑","大暑","立秋","处暑","白露","秋分","寒露","霜降","立冬","小雪","大雪","冬至"] - * @return Cn string - */ - solarTerm: ["小寒", "大寒", "立春", "雨水", "惊蛰", "春分", "清明", "谷雨", "立夏", "小满", "芒种", "夏至", "小暑", "大暑", "立秋", "处暑", "白露", "秋分", "寒露", "霜降", "立冬", "小雪", "大雪", "冬至"], - /** - * 1900-2100各年的24节气日期速查表 - * @Array Of Property - * @return 0x string For splice - */ - sTermInfo: [ - "9778397bd097c36b0b6fc9274c91aa", - "97b6b97bd19801ec9210c965cc920e", - "97bcf97c3598082c95f8c965cc920f", - "97bd0b06bdb0722c965ce1cfcc920f", - "b027097bd097c36b0b6fc9274c91aa", - "97b6b97bd19801ec9210c965cc920e", - "97bcf97c359801ec95f8c965cc920f", - "97bd0b06bdb0722c965ce1cfcc920f", - "b027097bd097c36b0b6fc9274c91aa", - "97b6b97bd19801ec9210c965cc920e", - "97bcf97c359801ec95f8c965cc920f", - "97bd0b06bdb0722c965ce1cfcc920f", - "b027097bd097c36b0b6fc9274c91aa", - "9778397bd19801ec9210c965cc920e", - "97b6b97bd19801ec95f8c965cc920f", - "97bd09801d98082c95f8e1cfcc920f", - "97bd097bd097c36b0b6fc9210c8dc2", - "9778397bd197c36c9210c9274c91aa", - "97b6b97bd19801ec95f8c965cc920e", - "97bd09801d98082c95f8e1cfcc920f", - "97bd097bd097c36b0b6fc9210c8dc2", - "9778397bd097c36c9210c9274c91aa", - "97b6b97bd19801ec95f8c965cc920e", - "97bcf97c3598082c95f8e1cfcc920f", - "97bd097bd097c36b0b6fc9210c8dc2", - "9778397bd097c36c9210c9274c91aa", - "97b6b97bd19801ec9210c965cc920e", - "97bcf97c3598082c95f8c965cc920f", - "97bd097bd097c35b0b6fc920fb0722", - "9778397bd097c36b0b6fc9274c91aa", - "97b6b97bd19801ec9210c965cc920e", - "97bcf97c3598082c95f8c965cc920f", - "97bd097bd097c35b0b6fc920fb0722", - "9778397bd097c36b0b6fc9274c91aa", - "97b6b97bd19801ec9210c965cc920e", - "97bcf97c359801ec95f8c965cc920f", - "97bd097bd097c35b0b6fc920fb0722", - "9778397bd097c36b0b6fc9274c91aa", - "97b6b97bd19801ec9210c965cc920e", - "97bcf97c359801ec95f8c965cc920f", - "97bd097bd097c35b0b6fc920fb0722", - "9778397bd097c36b0b6fc9274c91aa", - "97b6b97bd19801ec9210c965cc920e", - "97bcf97c359801ec95f8c965cc920f", - "97bd097bd07f595b0b6fc920fb0722", - "9778397bd097c36b0b6fc9210c8dc2", - "9778397bd19801ec9210c9274c920e", - "97b6b97bd19801ec95f8c965cc920f", - "97bd07f5307f595b0b0bc920fb0722", - "7f0e397bd097c36b0b6fc9210c8dc2", - "9778397bd097c36c9210c9274c920e", - "97b6b97bd19801ec95f8c965cc920f", - "97bd07f5307f595b0b0bc920fb0722", - "7f0e397bd097c36b0b6fc9210c8dc2", - "9778397bd097c36c9210c9274c91aa", - "97b6b97bd19801ec9210c965cc920e", - "97bd07f1487f595b0b0bc920fb0722", - "7f0e397bd097c36b0b6fc9210c8dc2", - "9778397bd097c36b0b6fc9274c91aa", - "97b6b97bd19801ec9210c965cc920e", - "97bcf7f1487f595b0b0bb0b6fb0722", - "7f0e397bd097c35b0b6fc920fb0722", - "9778397bd097c36b0b6fc9274c91aa", - "97b6b97bd19801ec9210c965cc920e", - "97bcf7f1487f595b0b0bb0b6fb0722", - "7f0e397bd097c35b0b6fc920fb0722", - "9778397bd097c36b0b6fc9274c91aa", - "97b6b97bd19801ec9210c965cc920e", - "97bcf7f1487f531b0b0bb0b6fb0722", - "7f0e397bd097c35b0b6fc920fb0722", - "9778397bd097c36b0b6fc9274c91aa", - "97b6b97bd19801ec9210c965cc920e", - "97bcf7f1487f531b0b0bb0b6fb0722", - "7f0e397bd07f595b0b6fc920fb0722", - "9778397bd097c36b0b6fc9274c91aa", - "97b6b97bd19801ec9210c9274c920e", - "97bcf7f0e47f531b0b0bb0b6fb0722", - "7f0e397bd07f595b0b0bc920fb0722", - "9778397bd097c36b0b6fc9210c91aa", - "97b6b97bd197c36c9210c9274c920e", - "97bcf7f0e47f531b0b0bb0b6fb0722", - "7f0e397bd07f595b0b0bc920fb0722", - "9778397bd097c36b0b6fc9210c8dc2", - "9778397bd097c36c9210c9274c920e", - "97b6b7f0e47f531b0723b0b6fb0722", - "7f0e37f5307f595b0b0bc920fb0722", - "7f0e397bd097c36b0b6fc9210c8dc2", - "9778397bd097c36b0b70c9274c91aa", - "97b6b7f0e47f531b0723b0b6fb0721", - "7f0e37f1487f595b0b0bb0b6fb0722", - "7f0e397bd097c35b0b6fc9210c8dc2", - "9778397bd097c36b0b6fc9274c91aa", - "97b6b7f0e47f531b0723b0b6fb0721", - "7f0e27f1487f595b0b0bb0b6fb0722", - "7f0e397bd097c35b0b6fc920fb0722", - "9778397bd097c36b0b6fc9274c91aa", - "97b6b7f0e47f531b0723b0b6fb0721", - "7f0e27f1487f531b0b0bb0b6fb0722", - "7f0e397bd097c35b0b6fc920fb0722", - "9778397bd097c36b0b6fc9274c91aa", - "97b6b7f0e47f531b0723b0b6fb0721", - "7f0e27f1487f531b0b0bb0b6fb0722", - "7f0e397bd097c35b0b6fc920fb0722", - "9778397bd097c36b0b6fc9274c91aa", - "97b6b7f0e47f531b0723b0b6fb0721", - "7f0e27f1487f531b0b0bb0b6fb0722", - "7f0e397bd07f595b0b0bc920fb0722", - "9778397bd097c36b0b6fc9274c91aa", - "97b6b7f0e47f531b0723b0787b0721", - "7f0e27f0e47f531b0b0bb0b6fb0722", - "7f0e397bd07f595b0b0bc920fb0722", - "9778397bd097c36b0b6fc9210c91aa", - "97b6b7f0e47f149b0723b0787b0721", - "7f0e27f0e47f531b0723b0b6fb0722", - "7f0e397bd07f595b0b0bc920fb0722", - "9778397bd097c36b0b6fc9210c8dc2", - "977837f0e37f149b0723b0787b0721", - "7f07e7f0e47f531b0723b0b6fb0722", - "7f0e37f5307f595b0b0bc920fb0722", - "7f0e397bd097c35b0b6fc9210c8dc2", - "977837f0e37f14998082b0787b0721", - "7f07e7f0e47f531b0723b0b6fb0721", - "7f0e37f1487f595b0b0bb0b6fb0722", - "7f0e397bd097c35b0b6fc9210c8dc2", - "977837f0e37f14998082b0787b06bd", - "7f07e7f0e47f531b0723b0b6fb0721", - "7f0e27f1487f531b0b0bb0b6fb0722", - "7f0e397bd097c35b0b6fc920fb0722", - "977837f0e37f14998082b0787b06bd", - "7f07e7f0e47f531b0723b0b6fb0721", - "7f0e27f1487f531b0b0bb0b6fb0722", - "7f0e397bd097c35b0b6fc920fb0722", - "977837f0e37f14998082b0787b06bd", - "7f07e7f0e47f531b0723b0b6fb0721", - "7f0e27f1487f531b0b0bb0b6fb0722", - "7f0e397bd07f595b0b0bc920fb0722", - "977837f0e37f14998082b0787b06bd", - "7f07e7f0e47f531b0723b0b6fb0721", - "7f0e27f1487f531b0b0bb0b6fb0722", - "7f0e397bd07f595b0b0bc920fb0722", - "977837f0e37f14998082b0787b06bd", - "7f07e7f0e47f149b0723b0787b0721", - "7f0e27f0e47f531b0b0bb0b6fb0722", - "7f0e397bd07f595b0b0bc920fb0722", - "977837f0e37f14998082b0723b06bd", - "7f07e7f0e37f149b0723b0787b0721", - "7f0e27f0e47f531b0723b0b6fb0722", - "7f0e397bd07f595b0b0bc920fb0722", - "977837f0e37f14898082b0723b02d5", - "7ec967f0e37f14998082b0787b0721", - "7f07e7f0e47f531b0723b0b6fb0722", - "7f0e37f1487f595b0b0bb0b6fb0722", - "7f0e37f0e37f14898082b0723b02d5", - "7ec967f0e37f14998082b0787b0721", - "7f07e7f0e47f531b0723b0b6fb0722", - "7f0e37f1487f531b0b0bb0b6fb0722", - "7f0e37f0e37f14898082b0723b02d5", - "7ec967f0e37f14998082b0787b06bd", - "7f07e7f0e47f531b0723b0b6fb0721", - "7f0e37f1487f531b0b0bb0b6fb0722", - "7f0e37f0e37f14898082b072297c35", - "7ec967f0e37f14998082b0787b06bd", - "7f07e7f0e47f531b0723b0b6fb0721", - "7f0e27f1487f531b0b0bb0b6fb0722", - "7f0e37f0e37f14898082b072297c35", - "7ec967f0e37f14998082b0787b06bd", - "7f07e7f0e47f531b0723b0b6fb0721", - "7f0e27f1487f531b0b0bb0b6fb0722", - "7f0e37f0e366aa89801eb072297c35", - "7ec967f0e37f14998082b0787b06bd", - "7f07e7f0e47f149b0723b0787b0721", - "7f0e27f1487f531b0b0bb0b6fb0722", - "7f0e37f0e366aa89801eb072297c35", - "7ec967f0e37f14998082b0723b06bd", - "7f07e7f0e47f149b0723b0787b0721", - "7f0e27f0e47f531b0723b0b6fb0722", - "7f0e37f0e366aa89801eb072297c35", - "7ec967f0e37f14998082b0723b06bd", - "7f07e7f0e37f14998083b0787b0721", - "7f0e27f0e47f531b0723b0b6fb0722", - "7f0e37f0e366aa89801eb072297c35", - "7ec967f0e37f14898082b0723b02d5", - "7f07e7f0e37f14998082b0787b0721", - "7f07e7f0e47f531b0723b0b6fb0722", - "7f0e36665b66aa89801e9808297c35", - "665f67f0e37f14898082b0723b02d5", - "7ec967f0e37f14998082b0787b0721", - "7f07e7f0e47f531b0723b0b6fb0722", - "7f0e36665b66a449801e9808297c35", - "665f67f0e37f14898082b0723b02d5", - "7ec967f0e37f14998082b0787b06bd", - "7f07e7f0e47f531b0723b0b6fb0721", - "7f0e36665b66a449801e9808297c35", - "665f67f0e37f14898082b072297c35", - "7ec967f0e37f14998082b0787b06bd", - "7f07e7f0e47f531b0723b0b6fb0721", - "7f0e26665b66a449801e9808297c35", - "665f67f0e37f1489801eb072297c35", - "7ec967f0e37f14998082b0787b06bd", - "7f07e7f0e47f531b0723b0b6fb0721", - "7f0e27f1487f531b0b0bb0b6fb0722" - ], - /** - * 数字转中文速查表 - * @Array Of Property - * @trans ['日','一','二','三','四','五','六','七','八','九','十'] - * @return Cn string - */ - nStr1: ["日", "一", "二", "三", "四", "五", "六", "七", "八", "九", "十"], - /** - * 日期转农历称呼速查表 - * @Array Of Property - * @trans ['初','十','廿','卅'] - * @return Cn string - */ - nStr2: ["初", "十", "廿", "卅"], - /** - * 月份转农历称呼速查表 - * @Array Of Property - * @trans ['正','一','二','三','四','五','六','七','八','九','十','冬','腊'] - * @return Cn string - */ - nStr3: ["正", "二", "三", "四", "五", "六", "七", "八", "九", "十", "冬", "腊"], - /** - * 返回农历y年一整年的总天数 - * @param lunar Year - * @return Number - * @eg:var count = calendar.lYearDays(1987) ;//count=387 - */ - lYearDays: function(y) { - var i; - var sum = 348; - for (i = 32768; i > 8; i >>= 1) { - sum += this.lunarInfo[y - 1900] & i ? 1 : 0; - } - return sum + this.leapDays(y); - }, - /** - * 返回农历y年闰月是哪个月;若y年没有闰月 则返回0 - * @param lunar Year - * @return Number (0-12) - * @eg:var leapMonth = calendar.leapMonth(1987) ;//leapMonth=6 - */ - leapMonth: function(y) { - return this.lunarInfo[y - 1900] & 15; - }, - /** - * 返回农历y年闰月的天数 若该年没有闰月则返回0 - * @param lunar Year - * @return Number (0、29、30) - * @eg:var leapMonthDay = calendar.leapDays(1987) ;//leapMonthDay=29 - */ - leapDays: function(y) { - if (this.leapMonth(y)) { - return this.lunarInfo[y - 1900] & 65536 ? 30 : 29; - } - return 0; - }, - /** - * 返回农历y年m月(非闰月)的总天数,计算m为闰月时的天数请使用leapDays方法 - * @param lunar Year - * @return Number (-1、29、30) - * @eg:var MonthDay = calendar.monthDays(1987,9) ;//MonthDay=29 - */ - monthDays: function(y, m) { - if (m > 12 || m < 1) { - return -1; - } - return this.lunarInfo[y - 1900] & 65536 >> m ? 30 : 29; - }, - /** - * 返回公历(!)y年m月的天数 - * @param solar Year - * @return Number (-1、28、29、30、31) - * @eg:var solarMonthDay = calendar.leapDays(1987) ;//solarMonthDay=30 - */ - solarDays: function(y, m) { - if (m > 12 || m < 1) { - return -1; - } - var ms = m - 1; - if (ms == 1) { - return y % 4 == 0 && y % 100 != 0 || y % 400 == 0 ? 29 : 28; - } else { - return this.solarMonth[ms]; - } - }, - /** - * 农历年份转换为干支纪年 - * @param lYear 农历年的年份数 - * @return Cn string - */ - toGanZhiYear: function(lYear) { - var ganKey = (lYear - 3) % 10; - var zhiKey = (lYear - 3) % 12; - if (ganKey == 0) - ganKey = 10; - if (zhiKey == 0) - zhiKey = 12; - return this.Gan[ganKey - 1] + this.Zhi[zhiKey - 1]; - }, - /** - * 公历月、日判断所属星座 - * @param cMonth [description] - * @param cDay [description] - * @return Cn string - */ - toAstro: function(cMonth, cDay) { - var s = "魔羯水瓶双鱼白羊金牛双子巨蟹狮子处女天秤天蝎射手魔羯"; - var arr = [20, 19, 21, 21, 21, 22, 23, 23, 23, 23, 22, 22]; - return s.substr(cMonth * 2 - (cDay < arr[cMonth - 1] ? 2 : 0), 2) + "座"; - }, - /** - * 传入offset偏移量返回干支 - * @param offset 相对甲子的偏移量 - * @return Cn string - */ - toGanZhi: function(offset) { - return this.Gan[offset % 10] + this.Zhi[offset % 12]; - }, - /** - * 传入公历(!)y年获得该年第n个节气的公历日期 - * @param y公历年(1900-2100);n二十四节气中的第几个节气(1~24);从n=1(小寒)算起 - * @return day Number - * @eg:var _24 = calendar.getTerm(1987,3) ;//_24=4;意即1987年2月4日立春 - */ - getTerm: function(y, n) { - if (y < 1900 || y > 2100) { - return -1; - } - if (n < 1 || n > 24) { - return -1; - } - var _table = this.sTermInfo[y - 1900]; - var _info = [ - parseInt("0x" + _table.substr(0, 5)).toString(), - parseInt("0x" + _table.substr(5, 5)).toString(), - parseInt("0x" + _table.substr(10, 5)).toString(), - parseInt("0x" + _table.substr(15, 5)).toString(), - parseInt("0x" + _table.substr(20, 5)).toString(), - parseInt("0x" + _table.substr(25, 5)).toString() - ]; - var _calday = [ - _info[0].substr(0, 1), - _info[0].substr(1, 2), - _info[0].substr(3, 1), - _info[0].substr(4, 2), - _info[1].substr(0, 1), - _info[1].substr(1, 2), - _info[1].substr(3, 1), - _info[1].substr(4, 2), - _info[2].substr(0, 1), - _info[2].substr(1, 2), - _info[2].substr(3, 1), - _info[2].substr(4, 2), - _info[3].substr(0, 1), - _info[3].substr(1, 2), - _info[3].substr(3, 1), - _info[3].substr(4, 2), - _info[4].substr(0, 1), - _info[4].substr(1, 2), - _info[4].substr(3, 1), - _info[4].substr(4, 2), - _info[5].substr(0, 1), - _info[5].substr(1, 2), - _info[5].substr(3, 1), - _info[5].substr(4, 2) - ]; - return parseInt(_calday[n - 1]); - }, - /** - * 传入农历数字月份返回汉语通俗表示法 - * @param lunar month - * @return Cn string - * @eg:var cnMonth = calendar.toChinaMonth(12) ;//cnMonth='腊月' - */ - toChinaMonth: function(m) { - if (m > 12 || m < 1) { - return -1; - } - var s = this.nStr3[m - 1]; - s += "月"; - return s; - }, - /** - * 传入农历日期数字返回汉字表示法 - * @param lunar day - * @return Cn string - * @eg:var cnDay = calendar.toChinaDay(21) ;//cnMonth='廿一' - */ - toChinaDay: function(d) { - var s; - switch (d) { - case 10: - s = "初十"; - break; - case 20: - s = "二十"; - break; - case 30: - s = "三十"; - break; - default: - s = this.nStr2[Math.floor(d / 10)]; - s += this.nStr1[d % 10]; - } - return s; - }, - /** - * 年份转生肖[!仅能大致转换] => 精确划分生肖分界线是“立春” - * @param y year - * @return Cn string - * @eg:var animal = calendar.getAnimal(1987) ;//animal='兔' - */ - getAnimal: function(y) { - return this.Animals[(y - 4) % 12]; - }, - /** - * 传入阳历年月日获得详细的公历、农历object信息 <=>JSON - * @param y solar year - * @param m solar month - * @param d solar day - * @return JSON object - * @eg:__f__('log','at node_modules/@climblee/uv-ui/components/uv-calendar/calendar.js:381',calendar.solar2lunar(1987,11,01)); - */ - solar2lunar: function(y, m, d) { - if (y < 1900 || y > 2100) { - return -1; - } - if (y == 1900 && m == 1 && d < 31) { - return -1; - } - if (!y) { - var objDate = /* @__PURE__ */ new Date(); - } else { - var objDate = new Date(y, parseInt(m) - 1, d); - } - var i; - var leap = 0; - var temp = 0; - var y = objDate.getFullYear(); - var m = objDate.getMonth() + 1; - var d = objDate.getDate(); - var offset = (Date.UTC(objDate.getFullYear(), objDate.getMonth(), objDate.getDate()) - Date.UTC(1900, 0, 31)) / 864e5; - for (i = 1900; i < 2101 && offset > 0; i++) { - temp = this.lYearDays(i); - offset -= temp; - } - if (offset < 0) { - offset += temp; - i--; - } - var isTodayObj = /* @__PURE__ */ new Date(); - var isToday = false; - if (isTodayObj.getFullYear() == y && isTodayObj.getMonth() + 1 == m && isTodayObj.getDate() == d) { - isToday = true; - } - var nWeek = objDate.getDay(); - var cWeek = this.nStr1[nWeek]; - if (nWeek == 0) { - nWeek = 7; - } - var year = i; - var leap = this.leapMonth(i); - var isLeap = false; - for (i = 1; i < 13 && offset > 0; i++) { - if (leap > 0 && i == leap + 1 && isLeap == false) { - --i; - isLeap = true; - temp = this.leapDays(year); - } else { - temp = this.monthDays(year, i); - } - if (isLeap == true && i == leap + 1) { - isLeap = false; - } - offset -= temp; - } - if (offset == 0 && leap > 0 && i == leap + 1) { - if (isLeap) { - isLeap = false; - } else { - isLeap = true; - --i; - } - } - if (offset < 0) { - offset += temp; - --i; - } - var month = i; - var day = offset + 1; - var sm = m - 1; - var gzY = this.toGanZhiYear(year); - var firstNode = this.getTerm(y, m * 2 - 1); - var secondNode = this.getTerm(y, m * 2); - var gzM = this.toGanZhi((y - 1900) * 12 + m + 11); - if (d >= firstNode) { - gzM = this.toGanZhi((y - 1900) * 12 + m + 12); - } - var isTerm = false; - var Term = null; - if (firstNode == d) { - isTerm = true; - Term = this.solarTerm[m * 2 - 2]; - } - if (secondNode == d) { - isTerm = true; - Term = this.solarTerm[m * 2 - 1]; - } - var dayCyclical = Date.UTC(y, sm, 1, 0, 0, 0, 0) / 864e5 + 25567 + 10; - var gzD = this.toGanZhi(dayCyclical + d - 1); - var astro = this.toAstro(m, d); - return { "lYear": year, "lMonth": month, "lDay": day, "Animal": this.getAnimal(year), "IMonthCn": (isLeap ? "闰" : "") + this.toChinaMonth(month), "IDayCn": this.toChinaDay(day), "cYear": y, "cMonth": m, "cDay": d, "gzYear": gzY, "gzMonth": gzM, "gzDay": gzD, "isToday": isToday, "isLeap": isLeap, "nWeek": nWeek, "ncWeek": "星期" + cWeek, "isTerm": isTerm, "Term": Term, "astro": astro }; - }, - /** - * 传入农历年月日以及传入的月份是否闰月获得详细的公历、农历object信息 <=>JSON - * @param y lunar year - * @param m lunar month - * @param d lunar day - * @param isLeapMonth lunar month is leap or not.[如果是农历闰月第四个参数赋值true即可] - * @return JSON object - * @eg:__f__('log','at node_modules/@climblee/uv-ui/components/uv-calendar/calendar.js:500',calendar.lunar2solar(1987,9,10)); - */ - lunar2solar: function(y, m, d, isLeapMonth) { - var isLeapMonth = !!isLeapMonth; - var leapMonth = this.leapMonth(y); - this.leapDays(y); - if (isLeapMonth && leapMonth != m) { - return -1; - } - if (y == 2100 && m == 12 && d > 1 || y == 1900 && m == 1 && d < 31) { - return -1; - } - var day = this.monthDays(y, m); - var _day = day; - if (isLeapMonth) { - _day = this.leapDays(y, m); - } - if (y < 1900 || y > 2100 || d > _day) { - return -1; - } - var offset = 0; - for (var i = 1900; i < y; i++) { - offset += this.lYearDays(i); - } - var leap = 0; - var isAdd = false; - for (var i = 1; i < m; i++) { - leap = this.leapMonth(y); - if (!isAdd) { - if (leap <= i && leap > 0) { - offset += this.leapDays(y); - isAdd = true; - } - } - offset += this.monthDays(y, i); - } - if (isLeapMonth) { - offset += day; - } - var stmap = Date.UTC(1900, 1, 30, 0, 0, 0); - var calObj = new Date((offset + d - 31) * 864e5 + stmap); - var cY = calObj.getUTCFullYear(); - var cM = calObj.getUTCMonth() + 1; - var cD = calObj.getUTCDate(); - return this.solar2lunar(cY, cM, cD); - } - }; - const _sfc_main$4 = { - name: "uv-calendar", - emits: ["confirm", "close", "change"], - mixins: [mpMixin, mixin, props$2], - components: { - uvHeader, - uvMonth - }, - data() { - return { - // 需要显示的月份的数组 - months: [], - // 在月份滚动区域中,当前视图中月份的index索引 - monthIndex: 0, - // 月份滚动区域的高度 - listHeight: 0, - // month组件中选择的日期数组 - selected: [], - scrollIntoView: "", - scrollTop: 0, - // 过滤处理方法 - innerFormatter: (value) => value - }; - }, - watch: { - selectedChange: { - immediate: true, - handler(n) { - this.setMonth(); - } - } - }, - computed: { - // 由于maxDate和minDate可以为字符串(2021-10-10),或者数值(时间戳),但是dayjs如果接受字符串形式的时间戳会有问题,这里进行处理 - innerMaxDate() { - return this.$uv.test.number(this.maxDate) ? Number(this.maxDate) : this.maxDate; - }, - innerMinDate() { - return this.$uv.test.number(this.minDate) ? Number(this.minDate) : this.minDate; - }, - // 多个条件的变化,会引起选中日期的变化,这里统一管理监听 - selectedChange() { - return [this.innerMinDate, this.innerMaxDate, this.defaultDate]; - }, - subtitle() { - if (this.months.length) { - return `${this.months[this.monthIndex].year}年${this.months[this.monthIndex].month}月`; - } else { - return ""; - } - }, - buttonDisabled() { - if (this.mode === "range") { - if (this.selected.length <= 1) { - return true; - } else { - return false; - } - } else { - return false; - } - } - }, - mounted() { - this.start = Date.now(); - this.init(); - }, - methods: { - // 在微信小程序中,不支持将函数当做props参数,故只能通过ref形式调用 - setFormatter(e) { - this.innerFormatter = e; - }, - // 点击日期框触发 - changeDay(e) { - this.$emit("change", e); - }, - // month组件内部选择日期后,通过事件通知给父组件 - monthSelected(e) { - this.selected = e; - if (!this.showConfirm) { - if (this.mode === "multiple" || this.mode === "single" || this.mode === "range" && this.selected.length >= 2) { - this.$emit("confirm", this.selected); - } - } - }, - init() { - if (this.innerMaxDate && this.innerMinDate && new Date(this.innerMaxDate).getTime() < new Date(this.innerMinDate).getTime()) { - return this.$uv.error("maxDate不能小于minDate"); - } - this.listHeight = this.rowHeight * 5 + 30; - this.setMonth(); - }, - open() { - this.setMonth(); - this.$refs.calendarPopup.open(); - }, - popupChange(e) { - if (!e.show) { - this.$emit("close"); - } - }, - // 点击确定按钮 - confirm() { - if (!this.buttonDisabled) { - this.$emit("confirm", this.selected); - } - if (this.closeOnClickConfirm) { - this.$refs.calendarPopup.close(); - } - }, - // 获得两个日期之间的月份数 - getMonths(minDate, maxDate) { - const minYear = dayjs(minDate).year(); - const minMonth = dayjs(minDate).month() + 1; - const maxYear = dayjs(maxDate).year(); - const maxMonth = dayjs(maxDate).month() + 1; - return (maxYear - minYear) * 12 + (maxMonth - minMonth) + 1; - }, - // 设置月份数据 - setMonth() { - const minDate = this.innerMinDate || dayjs().valueOf(); - const maxDate = this.innerMaxDate || dayjs(minDate).add(this.monthNum - 1, "month").valueOf(); - const months = this.$uv.range( - 1, - this.monthNum, - this.getMonths(minDate, maxDate) - ); - this.months = []; - for (let i = 0; i < months; i++) { - this.months.push({ - date: new Array( - dayjs(minDate).add(i, "month").daysInMonth() - ).fill(1).map((item, index2) => { - let day = index2 + 1; - const week = dayjs(minDate).add(i, "month").date(day).day(); - const date2 = dayjs(minDate).add(i, "month").date(day).format("YYYY-MM-DD"); - let topInfo = ""; - let bottomInfo = ""; - if (this.showLunar) { - const lunar = calendar.solar2lunar( - dayjs(date2).year(), - dayjs(date2).month() + 1, - dayjs(date2).date() - ); - bottomInfo = lunar.IDayCn; - } - let config2 = { - day, - week, - // 小于最小允许的日期,或者大于最大的日期,则设置为disabled状态 - disabled: dayjs(date2).isBefore( - dayjs(minDate).format("YYYY-MM-DD") - ) || dayjs(date2).isAfter( - dayjs(maxDate).format("YYYY-MM-DD") - ), - // 返回一个日期对象,供外部的formatter获取当前日期的年月日等信息,进行加工处理 - date: new Date(date2), - topInfo, - bottomInfo, - dot: false, - month: dayjs(minDate).add(i, "month").month() + 1 - }; - const formatter = this.formatter || this.innerFormatter; - return formatter(config2); - }), - // 当前所属的月份 - month: dayjs(minDate).add(i, "month").month() + 1, - // 当前年份 - year: dayjs(minDate).add(i, "month").year() - }); - } - }, - // 滚动到默认设置的月份 - scrollIntoDefaultMonth(selected) { - const _index = this.months.findIndex(({ - year, - month - }) => { - month = this.$uv.padZero(month); - return `${year}-${month}` === selected; - }); - if (_index !== -1) { - this.$nextTick(() => { - this.scrollIntoView = `month-${_index}`; - }); - } - }, - // scroll-view滚动监听 - onScroll(event) { - const scrollTop = Math.max(0, event.detail.scrollTop); - for (let i = 0; i < this.months.length; i++) { - if (scrollTop >= (this.months[i].top || this.listHeight)) { - this.monthIndex = i; - } - } - }, - // 更新月份的top值 - updateMonthTop(topArr = []) { - topArr.map((item, index2) => { - this.months[index2].top = item; - }); - if (!this.defaultDate) { - const selected2 = dayjs().format("YYYY-MM"); - this.scrollIntoDefaultMonth(selected2); - return; - } - let selected = dayjs().format("YYYY-MM"); - if (!this.$uv.test.array(this.defaultDate)) { - selected = dayjs(this.defaultDate).format("YYYY-MM"); - } else { - selected = dayjs(this.defaultDate[0]).format("YYYY-MM"); - } - this.scrollIntoDefaultMonth(selected); - } - } - }; - function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) { - const _component_uvHeader = vue.resolveComponent("uvHeader"); - const _component_uvMonth = vue.resolveComponent("uvMonth"); - const _component_uv_button = resolveEasycom(vue.resolveDynamicComponent("uv-button"), __easycom_0$2); - const _component_uv_popup = resolveEasycom(vue.resolveDynamicComponent("uv-popup"), __easycom_1); - return vue.openBlock(), vue.createBlock(_component_uv_popup, { - ref: "calendarPopup", - mode: "bottom", - closeable: "", - round: _ctx.round, - closeOnClickOverlay: _ctx.closeOnClickOverlay, - onChange: $options.popupChange - }, { - default: vue.withCtx(() => [ - vue.createElementVNode("view", { class: "uv-calendar" }, [ - vue.createVNode(_component_uvHeader, { - title: _ctx.title, - subtitle: $options.subtitle, - showSubtitle: _ctx.showSubtitle, - showTitle: _ctx.showTitle - }, null, 8, ["title", "subtitle", "showSubtitle", "showTitle"]), - vue.createElementVNode("scroll-view", { - style: vue.normalizeStyle({ height: _ctx.$uv.addUnit($data.listHeight) }), - "scroll-y": "", - onScroll: _cache[0] || (_cache[0] = (...args) => $options.onScroll && $options.onScroll(...args)), - "scroll-top": $data.scrollTop, - scrollIntoView: $data.scrollIntoView - }, [ - vue.createVNode(_component_uvMonth, { - color: _ctx.color, - rowHeight: _ctx.rowHeight, - showMark: _ctx.showMark, - months: $data.months, - mode: _ctx.mode, - maxCount: _ctx.maxCount, - startText: _ctx.startText, - endText: _ctx.endText, - defaultDate: _ctx.defaultDate, - minDate: $options.innerMinDate, - maxDate: $options.innerMaxDate, - maxMonth: _ctx.monthNum, - readonly: _ctx.readonly, - maxRange: _ctx.maxRange, - rangePrompt: _ctx.rangePrompt, - showRangePrompt: _ctx.showRangePrompt, - allowSameDay: _ctx.allowSameDay, - ref: "month", - onMonthSelected: $options.monthSelected, - onUpdateMonthTop: $options.updateMonthTop, - onChange: $options.changeDay - }, null, 8, ["color", "rowHeight", "showMark", "months", "mode", "maxCount", "startText", "endText", "defaultDate", "minDate", "maxDate", "maxMonth", "readonly", "maxRange", "rangePrompt", "showRangePrompt", "allowSameDay", "onMonthSelected", "onUpdateMonthTop", "onChange"]) - ], 44, ["scroll-top", "scrollIntoView"]), - _ctx.showConfirm ? vue.renderSlot(_ctx.$slots, "footer", { key: 0 }, () => [ - vue.createElementVNode("view", { class: "uv-calendar__confirm" }, [ - vue.createVNode(_component_uv_button, { - shape: "circle", - text: $options.buttonDisabled ? _ctx.confirmDisabledText : _ctx.confirmText, - color: _ctx.color, - onClick: $options.confirm, - disabled: $options.buttonDisabled - }, null, 8, ["text", "color", "onClick", "disabled"]) - ]) - ], true) : vue.createCommentVNode("v-if", true) - ]) - ]), - _: 3 - /* FORWARDED */ - }, 8, ["round", "closeOnClickOverlay", "onChange"]); - } - const __easycom_2 = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["render", _sfc_render$3], ["__scopeId", "data-v-225ec0b9"], ["__file", "D:/frontDev/project/OfficeSystem/node_modules/@climblee/uv-ui/components/uv-calendar/uv-calendar.vue"]]); - const props$1 = { - props: { - // item标签的名称,作为与uv-tabbar的value参数匹配的标识符 - name: { - type: [String, Number, null], - default: null - }, - // uv-ui内置图标或者绝对路径的图片 - icon: { - icon: String, - default: "" - }, - // 图标大小,默认uv-tabbar的iconSize=20 - iconSize: { - type: [String, Number], - default: "" - }, - // 右上角的角标提示信息 - badge: { - type: [String, Number, null], - default: null - }, - // 是否显示圆点,将会覆盖badge参数 - dot: { - type: Boolean, - default: false - }, - // 描述文本 - text: { - type: String, - default: "" - }, - // 控制徽标的位置,对象或者字符串形式,可以设置top和right属性 - badgeStyle: { - type: [Object, String], - default: "top: 6px;right:2px;" - }, - ...(_v = (_u = uni.$uv) == null ? void 0 : _u.props) == null ? void 0 : _v.tabbarItem - } - }; - const _sfc_main$3 = { - name: "uv-tabbar-item", - mixins: [mpMixin, mixin, props$1], - emits: ["click", "change"], - data() { - return { - isActive: false, - // 是否处于激活状态 - parentData: { - value: null, - activeColor: "", - inactiveColor: "", - iconSize: 20 - } - }; - }, - created() { - this.init(); - }, - methods: { - init() { - this.updateParentData(); - if (!this.parent) { - this.$uv.error("uv-tabbar-item必须搭配uv-tabbar组件使用"); - } - const index2 = this.parent.children.indexOf(this); - this.isActive = (this.name || index2) === this.parentData.value; - }, - updateParentData() { - this.getParentData("uv-tabbar"); - }, - // 此方法将会被父组件uv-tabbar调用 - updateFromParent() { - this.init(); - }, - clickHandler() { - this.$nextTick(() => { - const index2 = this.parent.children.indexOf(this); - const name = this.name || index2; - if (name !== this.parent.value) { - this.parent.$emit("change", name); - } - this.$emit("click", name); - }); - } - } - }; - function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) { - const _component_uv_icon = resolveEasycom(vue.resolveDynamicComponent("uv-icon"), __easycom_1$2); - const _component_uv_badge = resolveEasycom(vue.resolveDynamicComponent("uv-badge"), __easycom_1$3); - return vue.openBlock(), vue.createElementBlock( - "view", - { - class: "uv-tabbar-item", - style: vue.normalizeStyle([_ctx.$uv.addStyle(_ctx.customStyle)]), - onClick: _cache[0] || (_cache[0] = (...args) => $options.clickHandler && $options.clickHandler(...args)) - }, - [ - vue.createElementVNode("view", { class: "uv-tabbar-item__icon" }, [ - _ctx.icon ? (vue.openBlock(), vue.createBlock(_component_uv_icon, { - key: 0, - name: _ctx.icon, - color: $data.isActive ? $data.parentData.activeColor : $data.parentData.inactiveColor, - size: _ctx.iconSize ? _ctx.iconSize : $data.parentData.iconSize - }, null, 8, ["name", "color", "size"])) : (vue.openBlock(), vue.createElementBlock( - vue.Fragment, - { key: 1 }, - [ - $data.isActive ? vue.renderSlot(_ctx.$slots, "active-icon", { key: 0 }, void 0, true) : vue.renderSlot(_ctx.$slots, "inactive-icon", { key: 1 }, void 0, true) - ], - 64 - /* STABLE_FRAGMENT */ - )), - vue.createVNode(_component_uv_badge, { - absolute: "", - offset: [0, _ctx.dot ? "34rpx" : _ctx.badge > 9 ? "14rpx" : "20rpx"], - customStyle: _ctx.badgeStyle, - isDot: _ctx.dot, - value: _ctx.badge || (_ctx.dot ? 1 : null), - show: _ctx.dot || _ctx.badge > 0 - }, null, 8, ["offset", "customStyle", "isDot", "value", "show"]) - ]), - vue.renderSlot(_ctx.$slots, "text", {}, () => [ - vue.createElementVNode( - "text", - { - class: "uv-tabbar-item__text", - style: vue.normalizeStyle({ - color: $data.isActive ? $data.parentData.activeColor : $data.parentData.inactiveColor - }) - }, - vue.toDisplayString(_ctx.text), - 5 - /* TEXT, STYLE */ - ) - ], true) - ], - 4 - /* STYLE */ - ); - } - const __easycom_3 = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["render", _sfc_render$2], ["__scopeId", "data-v-095eeec5"], ["__file", "D:/frontDev/project/OfficeSystem/node_modules/@climblee/uv-ui/components/uv-tabbar-item/uv-tabbar-item.vue"]]); - const props = { - props: { - // 当前匹配项的name - value: { - type: [String, Number, null], - default: null - }, - // 是否为iPhoneX留出底部安全距离 - safeAreaInsetBottom: { - type: Boolean, - default: true - }, - // 是否显示上方边框 - border: { - type: Boolean, - default: true - }, - // 元素层级z-index - zIndex: { - type: [String, Number], - default: 9 - }, - // 选中标签的颜色 - activeColor: { - type: String, - default: "#1989fa" - }, - // 未选中标签的颜色 - inactiveColor: { - type: String, - default: "#7d7e80" - }, - // 是否固定在底部 - fixed: { - type: Boolean, - default: true - }, - // fixed定位固定在底部时,是否生成一个等高元素防止塌陷 - placeholder: { - type: Boolean, - default: true - }, - // 图标大小 - iconSize: { - type: [String, Number], - default: 20 - }, - ...(_x = (_w = uni.$uv) == null ? void 0 : _w.props) == null ? void 0 : _x.tabbar - } - }; - const _sfc_main$2 = { - name: "uv-tabbar", - mixins: [mpMixin, mixin, props], - data() { - return { - placeholderHeight: 0 - }; - }, - computed: { - tabbarStyle() { - const style = { - zIndex: this.zIndex - }; - return this.$uv.deepMerge(style, this.$uv.addStyle(this.customStyle)); - }, - // 监听多个参数的变化,通过在computed执行对应的操作 - updateChild() { - return [this.value, this.activeColor, this.inactiveColor]; - }, - updatePlaceholder() { - return [this.fixed, this.placeholder]; - } - }, - watch: { - updateChild() { - this.updateChildren(); - }, - updatePlaceholder() { - this.setPlaceholderHeight(); - } - }, - created() { - this.children = []; - }, - mounted() { - this.setPlaceholderHeight(); - }, - methods: { - updateChildren() { - this.children.length && this.children.map((child) => child.updateFromParent()); - }, - // 设置用于防止塌陷元素的高度 - async setPlaceholderHeight() { - if (!this.fixed || !this.placeholder) - return; - await this.$uv.sleep(20); - this.$uvGetRect(".uv-tabbar__content").then(({ height = 50 }) => { - this.placeholderHeight = height; - }); - } - } - }; - function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) { - const _component_uv_safe_bottom = resolveEasycom(vue.resolveDynamicComponent("uv-safe-bottom"), __easycom_0); - return vue.openBlock(), vue.createElementBlock("view", { class: "uv-tabbar" }, [ - vue.createElementVNode( - "view", - { - class: vue.normalizeClass(["uv-tabbar__content", [_ctx.border && "uv-border-top", _ctx.fixed && "uv-tabbar--fixed"]]), - ref: "uv-tabbar__content", - onTouchmove: _cache[0] || (_cache[0] = vue.withModifiers((...args) => _ctx.noop && _ctx.noop(...args), ["stop", "prevent"])), - style: vue.normalizeStyle([$options.tabbarStyle]) - }, - [ - vue.createElementVNode("view", { class: "uv-tabbar__content__item-wrapper" }, [ - vue.renderSlot(_ctx.$slots, "default", {}, void 0, true) - ]), - _ctx.safeAreaInsetBottom ? (vue.openBlock(), vue.createBlock(_component_uv_safe_bottom, { key: 0 })) : vue.createCommentVNode("v-if", true) - ], - 38 - /* CLASS, STYLE, NEED_HYDRATION */ - ), - _ctx.placeholder ? (vue.openBlock(), vue.createElementBlock( - "view", - { - key: 0, - class: "uv-tabbar__placeholder", - style: vue.normalizeStyle({ - height: $data.placeholderHeight + "px" - }) - }, - null, - 4 - /* STYLE */ - )) : vue.createCommentVNode("v-if", true) - ]); - } - const __easycom_4 = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["render", _sfc_render$1], ["__scopeId", "data-v-20102e86"], ["__file", "D:/frontDev/project/OfficeSystem/node_modules/@climblee/uv-ui/components/uv-tabbar/uv-tabbar.vue"]]); - const _sfc_main$1 = { - data() { - return { - title: "Hello UNI", - value: 0, - list: [{ - name: "关注" - }, { - name: "推荐" - }, { - name: "电影" - }, { - name: "科技" - }, { - name: "音乐" - }, { - name: "美食" - }, { - name: "文化" - }, { - name: "财经" - }, { - name: "手工" - }] - }; - }, - onLoad() { - formatAppLog("log", "at pages/index/index.vue:58", uni.$uv.os()); - }, - methods: { - click(item) { - formatAppLog("log", "at pages/index/index.vue:62", "item", item); - }, - open() { - this.$refs.calendar.open(); - }, - confirm(e) { - formatAppLog("log", "at pages/index/index.vue:68", "日历选择:", e); - } - } - }; - function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) { - const _component_uv_tabs = resolveEasycom(vue.resolveDynamicComponent("uv-tabs"), __easycom_0$4); - const _component_uv_icon = resolveEasycom(vue.resolveDynamicComponent("uv-icon"), __easycom_1$2); - const _component_uv_calendar = resolveEasycom(vue.resolveDynamicComponent("uv-calendar"), __easycom_2); - const _component_uv_tabbar_item = resolveEasycom(vue.resolveDynamicComponent("uv-tabbar-item"), __easycom_3); - const _component_uv_tabbar = resolveEasycom(vue.resolveDynamicComponent("uv-tabbar"), __easycom_4); - return vue.openBlock(), vue.createElementBlock( - vue.Fragment, - null, - [ - vue.createVNode(_component_uv_tabs, { - list: $data.list, - onClick: $options.click - }, null, 8, ["list", "onClick"]), - vue.createElementVNode("view", { class: "content" }, [ - vue.createElementVNode("view", { class: "text-area" }, [ - vue.createElementVNode( - "text", - { class: "title" }, - vue.toDisplayString($data.title), - 1 - /* TEXT */ - ) - ]), - vue.createVNode(_component_uv_icon, { - name: "photo", - size: "30", - color: "#909399" - }), - vue.createElementVNode("button", { class: "uv-reset-button" }, "点击登录"), - vue.createElementVNode("button", null, "点击登录"), - vue.createElementVNode("view", null, [ - vue.createVNode(_component_uv_calendar, { - ref: "calendar", - mode: "single", - onConfirm: $options.confirm - }, null, 8, ["onConfirm"]), - vue.createElementVNode("button", { - onClick: _cache[0] || (_cache[0] = (...args) => $options.open && $options.open(...args)) - }, "打开") - ]) - ]), - vue.createVNode(_component_uv_tabbar, { - value: $data.value, - onChange: _cache[1] || (_cache[1] = (index2) => $data.value = index2) - }, { - default: vue.withCtx(() => [ - vue.createVNode(_component_uv_tabbar_item, { - text: "首页", - icon: "home", - dot: "" - }), - vue.createVNode(_component_uv_tabbar_item, { - text: "放映厅", - icon: "photo", - badge: "3" - }), - vue.createVNode(_component_uv_tabbar_item, { - text: "直播", - icon: "play-right" - }), - vue.createVNode(_component_uv_tabbar_item, { - text: "我的", - icon: "account" - }) - ]), - _: 1 - /* STABLE */ - }, 8, ["value"]) - ], - 64 - /* STABLE_FRAGMENT */ - ); - } - const PagesIndexIndex = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render], ["__scopeId", "data-v-1cf27b2a"], ["__file", "D:/frontDev/project/OfficeSystem/pages/index/index.vue"]]); - __definePage("pages/index/index", PagesIndexIndex); - const _sfc_main = { - onLaunch: function() { - formatAppLog("log", "at App.vue:4", "App Launch"); - }, - onShow: function() { - formatAppLog("log", "at App.vue:7", "App Show"); - }, - onHide: function() { - formatAppLog("log", "at App.vue:10", "App Hide"); - } - }; - const App = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "D:/frontDev/project/OfficeSystem/App.vue"]]); - var toString = Object.prototype.toString; - function isArray(val) { - return toString.call(val) === "[object Array]"; - } - function isObject(val) { - return val !== null && typeof val === "object"; - } - function isDate(val) { - return toString.call(val) === "[object Date]"; - } - function isURLSearchParams(val) { - return typeof URLSearchParams !== "undefined" && val instanceof URLSearchParams; - } - function forEach(obj, fn) { - if (obj === null || typeof obj === "undefined") { - return; - } - if (typeof obj !== "object") { - obj = [obj]; - } - if (isArray(obj)) { - for (var i = 0, l = obj.length; i < l; i++) { - fn.call(null, obj[i], i, obj); - } - } else { - for (var key in obj) { - if (Object.prototype.hasOwnProperty.call(obj, key)) { - fn.call(null, obj[key], key, obj); - } - } - } - } - function isPlainObject(obj) { - return Object.prototype.toString.call(obj) === "[object Object]"; - } - function deepMerge() { - let result = {}; - function assignValue(val, key) { - if (typeof result[key] === "object" && typeof val === "object") { - result[key] = deepMerge(result[key], val); - } else if (typeof val === "object") { - result[key] = deepMerge({}, val); - } else { - result[key] = val; - } - } - for (let i = 0, l = arguments.length; i < l; i++) { - forEach(arguments[i], assignValue); - } - return result; - } - function isUndefined(val) { - return typeof val === "undefined"; - } - function encode(val) { - return encodeURIComponent(val).replace(/%40/gi, "@").replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]"); - } - function buildURL(url2, params, paramsSerializer) { - if (!params) { - return url2; - } - var serializedParams; - if (paramsSerializer) { - serializedParams = paramsSerializer(params); - } else if (isURLSearchParams(params)) { - serializedParams = params.toString(); - } else { - var parts = []; - forEach(params, function serialize(val, key) { - if (val === null || typeof val === "undefined") { - return; - } - if (isArray(val)) { - key = key + "[]"; - } else { - val = [val]; - } - forEach(val, function parseValue(v) { - if (isDate(v)) { - v = v.toISOString(); - } else if (isObject(v)) { - v = JSON.stringify(v); - } - parts.push(encode(key) + "=" + encode(v)); - }); - }); - serializedParams = parts.join("&"); - } - if (serializedParams) { - var hashmarkIndex = url2.indexOf("#"); - if (hashmarkIndex !== -1) { - url2 = url2.slice(0, hashmarkIndex); - } - url2 += (url2.indexOf("?") === -1 ? "?" : "&") + serializedParams; - } - return url2; - } - function isAbsoluteURL(url2) { - return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(url2); - } - function combineURLs(baseURL, relativeURL) { - return relativeURL ? baseURL.replace(/\/+$/, "") + "/" + relativeURL.replace(/^\/+/, "") : baseURL; - } - function buildFullPath(baseURL, requestedURL) { - if (baseURL && !isAbsoluteURL(requestedURL)) { - return combineURLs(baseURL, requestedURL); - } - return requestedURL; - } - function settle(resolve, reject, response) { - const validateStatus = response.config.validateStatus; - const status = response.statusCode; - if (status && (!validateStatus || validateStatus(status))) { - resolve(response); - } else { - reject(response); - } - } - const mergeKeys$1 = (keys, config2) => { - let config3 = {}; - keys.forEach((prop) => { - if (!isUndefined(config2[prop])) { - config3[prop] = config2[prop]; - } - }); - return config3; - }; - const adapter = (config2) => { - return new Promise((resolve, reject) => { - let fullPath = buildURL(buildFullPath(config2.baseURL, config2.url), config2.params, config2.paramsSerializer); - const _config = { - url: fullPath, - header: config2.header, - complete: (response) => { - config2.fullPath = fullPath; - response.config = config2; - response.rawData = response.data; - try { - let jsonParseHandle = false; - const forcedJSONParsingType = typeof config2.forcedJSONParsing; - if (forcedJSONParsingType === "boolean") { - jsonParseHandle = config2.forcedJSONParsing; - } else if (forcedJSONParsingType === "object") { - const includesMethod = config2.forcedJSONParsing.include || []; - jsonParseHandle = includesMethod.includes(config2.method); - } - if (jsonParseHandle && typeof response.data === "string") { - response.data = JSON.parse(response.data); - } - } catch (e) { - } - settle(resolve, reject, response); - } - }; - let requestTask; - if (config2.method === "UPLOAD") { - delete _config.header["content-type"]; - delete _config.header["Content-Type"]; - let otherConfig = { - filePath: config2.filePath, - name: config2.name - }; - const optionalKeys = [ - "files", - "timeout", - "formData" - ]; - requestTask = uni.uploadFile({ ..._config, ...otherConfig, ...mergeKeys$1(optionalKeys, config2) }); - } else if (config2.method === "DOWNLOAD") { - const optionalKeys = [ - "timeout" - ]; - requestTask = uni.downloadFile({ ..._config, ...mergeKeys$1(optionalKeys, config2) }); - } else { - const optionalKeys = [ - "data", - "method", - "timeout", - "dataType", - "responseType", - "sslVerify", - "firstIpv4" - ]; - requestTask = uni.request({ ..._config, ...mergeKeys$1(optionalKeys, config2) }); - } - if (config2.getTask) { - config2.getTask(requestTask, config2); - } - }); - }; - const dispatchRequest = (config2) => { - return adapter(config2); - }; - function InterceptorManager() { - this.handlers = []; - } - InterceptorManager.prototype.use = function use(fulfilled, rejected) { - this.handlers.push({ - fulfilled, - rejected - }); - return this.handlers.length - 1; - }; - InterceptorManager.prototype.eject = function eject(id) { - if (this.handlers[id]) { - this.handlers[id] = null; - } - }; - InterceptorManager.prototype.forEach = function forEach2(fn) { - this.handlers.forEach((h) => { - if (h !== null) { - fn(h); - } - }); - }; - const mergeKeys = (keys, globalsConfig, config2) => { - let config3 = {}; - keys.forEach((prop) => { - if (!isUndefined(config2[prop])) { - config3[prop] = config2[prop]; - } else if (!isUndefined(globalsConfig[prop])) { - config3[prop] = globalsConfig[prop]; - } - }); - return config3; - }; - const mergeConfig = (globalsConfig, config2 = {}) => { - const method = config2.method || globalsConfig.method || "GET"; - let config3 = { - baseURL: config2.baseURL || globalsConfig.baseURL || "", - method, - url: config2.url || "", - params: config2.params || {}, - custom: { ...globalsConfig.custom || {}, ...config2.custom || {} }, - header: deepMerge(globalsConfig.header || {}, config2.header || {}) - }; - const defaultToConfig2Keys = ["getTask", "validateStatus", "paramsSerializer", "forcedJSONParsing"]; - config3 = { ...config3, ...mergeKeys(defaultToConfig2Keys, globalsConfig, config2) }; - if (method === "DOWNLOAD") { - const downloadKeys = [ - "timeout" - ]; - config3 = { ...config3, ...mergeKeys(downloadKeys, globalsConfig, config2) }; - } else if (method === "UPLOAD") { - delete config3.header["content-type"]; - delete config3.header["Content-Type"]; - const uploadKeys = [ - "files", - "filePath", - "name", - "timeout", - "formData" - ]; - uploadKeys.forEach((prop) => { - if (!isUndefined(config2[prop])) { - config3[prop] = config2[prop]; - } - }); - if (isUndefined(config3.timeout) && !isUndefined(globalsConfig.timeout)) { - config3["timeout"] = globalsConfig["timeout"]; - } - } else { - const defaultsKeys = [ - "data", - "timeout", - "dataType", - "responseType", - "sslVerify", - "firstIpv4" - ]; - config3 = { ...config3, ...mergeKeys(defaultsKeys, globalsConfig, config2) }; - } - return config3; - }; - const defaults = { - baseURL: "", - header: {}, - method: "GET", - dataType: "json", - paramsSerializer: null, - responseType: "text", - custom: {}, - timeout: 6e4, - sslVerify: true, - firstIpv4: false, - validateStatus: function validateStatus(status) { - return status >= 200 && status < 300; - }, - // 是否尝试将响应数据json化 - forcedJSONParsing: true - }; - var clone = function() { - function _instanceof(obj, type) { - return type != null && obj instanceof type; - } - var nativeMap; - try { - nativeMap = Map; - } catch (_) { - nativeMap = function() { - }; - } - var nativeSet; - try { - nativeSet = Set; - } catch (_) { - nativeSet = function() { - }; - } - var nativePromise; - try { - nativePromise = Promise; - } catch (_) { - nativePromise = function() { - }; - } - function clone2(parent, circular, depth, prototype, includeNonEnumerable) { - if (typeof circular === "object") { - depth = circular.depth; - prototype = circular.prototype; - includeNonEnumerable = circular.includeNonEnumerable; - circular = circular.circular; - } - var allParents = []; - var allChildren = []; - var useBuffer = typeof Buffer != "undefined"; - if (typeof circular == "undefined") - circular = true; - if (typeof depth == "undefined") - depth = Infinity; - function _clone(parent2, depth2) { - if (parent2 === null) - return null; - if (depth2 === 0) - return parent2; - var child; - var proto; - if (typeof parent2 != "object") { - return parent2; - } - if (_instanceof(parent2, nativeMap)) { - child = new nativeMap(); - } else if (_instanceof(parent2, nativeSet)) { - child = new nativeSet(); - } else if (_instanceof(parent2, nativePromise)) { - child = new nativePromise(function(resolve, reject) { - parent2.then(function(value) { - resolve(_clone(value, depth2 - 1)); - }, function(err) { - reject(_clone(err, depth2 - 1)); - }); - }); - } else if (clone2.__isArray(parent2)) { - child = []; - } else if (clone2.__isRegExp(parent2)) { - child = new RegExp(parent2.source, __getRegExpFlags(parent2)); - if (parent2.lastIndex) - child.lastIndex = parent2.lastIndex; - } else if (clone2.__isDate(parent2)) { - child = new Date(parent2.getTime()); - } else if (useBuffer && Buffer.isBuffer(parent2)) { - if (Buffer.from) { - child = Buffer.from(parent2); - } else { - child = new Buffer(parent2.length); - parent2.copy(child); - } - return child; - } else if (_instanceof(parent2, Error)) { - child = Object.create(parent2); - } else { - if (typeof prototype == "undefined") { - proto = Object.getPrototypeOf(parent2); - child = Object.create(proto); - } else { - child = Object.create(prototype); - proto = prototype; - } - } - if (circular) { - var index2 = allParents.indexOf(parent2); - if (index2 != -1) { - return allChildren[index2]; - } - allParents.push(parent2); - allChildren.push(child); - } - if (_instanceof(parent2, nativeMap)) { - parent2.forEach(function(value, key) { - var keyChild = _clone(key, depth2 - 1); - var valueChild = _clone(value, depth2 - 1); - child.set(keyChild, valueChild); - }); - } - if (_instanceof(parent2, nativeSet)) { - parent2.forEach(function(value) { - var entryChild = _clone(value, depth2 - 1); - child.add(entryChild); - }); - } - for (var i in parent2) { - var attrs = Object.getOwnPropertyDescriptor(parent2, i); - if (attrs) { - child[i] = _clone(parent2[i], depth2 - 1); - } - try { - var objProperty = Object.getOwnPropertyDescriptor(parent2, i); - if (objProperty.set === "undefined") { - continue; - } - child[i] = _clone(parent2[i], depth2 - 1); - } catch (e) { - if (e instanceof TypeError) { - continue; - } else if (e instanceof ReferenceError) { - continue; - } - } - } - if (Object.getOwnPropertySymbols) { - var symbols = Object.getOwnPropertySymbols(parent2); - for (var i = 0; i < symbols.length; i++) { - var symbol = symbols[i]; - var descriptor = Object.getOwnPropertyDescriptor(parent2, symbol); - if (descriptor && !descriptor.enumerable && !includeNonEnumerable) { - continue; - } - child[symbol] = _clone(parent2[symbol], depth2 - 1); - Object.defineProperty(child, symbol, descriptor); - } - } - if (includeNonEnumerable) { - var allPropertyNames = Object.getOwnPropertyNames(parent2); - for (var i = 0; i < allPropertyNames.length; i++) { - var propertyName = allPropertyNames[i]; - var descriptor = Object.getOwnPropertyDescriptor(parent2, propertyName); - if (descriptor && descriptor.enumerable) { - continue; - } - child[propertyName] = _clone(parent2[propertyName], depth2 - 1); - Object.defineProperty(child, propertyName, descriptor); - } - } - return child; - } - return _clone(parent, depth); - } - clone2.clonePrototype = function clonePrototype(parent) { - if (parent === null) - return null; - var c = function() { - }; - c.prototype = parent; - return new c(); - }; - function __objToStr(o) { - return Object.prototype.toString.call(o); - } - clone2.__objToStr = __objToStr; - function __isDate(o) { - return typeof o === "object" && __objToStr(o) === "[object Date]"; - } - clone2.__isDate = __isDate; - function __isArray(o) { - return typeof o === "object" && __objToStr(o) === "[object Array]"; - } - clone2.__isArray = __isArray; - function __isRegExp(o) { - return typeof o === "object" && __objToStr(o) === "[object RegExp]"; - } - clone2.__isRegExp = __isRegExp; - function __getRegExpFlags(re) { - var flags = ""; - if (re.global) - flags += "g"; - if (re.ignoreCase) - flags += "i"; - if (re.multiline) - flags += "m"; - return flags; - } - clone2.__getRegExpFlags = __getRegExpFlags; - return clone2; - }(); - class Request { - /** - * @param {Object} arg - 全局配置 - * @param {String} arg.baseURL - 全局根路径 - * @param {Object} arg.header - 全局header - * @param {String} arg.method = [GET|POST|PUT|DELETE|CONNECT|HEAD|OPTIONS|TRACE] - 全局默认请求方式 - * @param {String} arg.dataType = [json] - 全局默认的dataType - * @param {String} arg.responseType = [text|arraybuffer] - 全局默认的responseType。支付宝小程序不支持 - * @param {Object} arg.custom - 全局默认的自定义参数 - * @param {Number} arg.timeout - 全局默认的超时时间,单位 ms。默认60000。H5(HBuilderX 2.9.9+)、APP(HBuilderX 2.9.9+)、微信小程序(2.10.0)、支付宝小程序 - * @param {Boolean} arg.sslVerify - 全局默认的是否验证 ssl 证书。默认true.仅App安卓端支持(HBuilderX 2.3.3+) - * @param {Boolean} arg.withCredentials - 全局默认的跨域请求时是否携带凭证(cookies)。默认false。仅H5支持(HBuilderX 2.6.15+) - * @param {Boolean} arg.firstIpv4 - 全DNS解析时优先使用ipv4。默认false。仅 App-Android 支持 (HBuilderX 2.8.0+) - * @param {Function(statusCode):Boolean} arg.validateStatus - 全局默认的自定义验证器。默认statusCode >= 200 && statusCode < 300 - */ - constructor(arg = {}) { - if (!isPlainObject(arg)) { - arg = {}; - formatAppLog("warn", "at node_modules/@climblee/uv-ui/libs/luch-request/core/Request.js:37", "设置全局参数必须接收一个Object"); - } - this.config = clone({ ...defaults, ...arg }); - this.interceptors = { - request: new InterceptorManager(), - response: new InterceptorManager() - }; - } - /** - * @Function - * @param {Request~setConfigCallback} f - 设置全局默认配置 - */ - setConfig(f) { - this.config = f(this.config); - } - middleware(config2) { - config2 = mergeConfig(this.config, config2); - let chain = [dispatchRequest, void 0]; - let promise2 = Promise.resolve(config2); - this.interceptors.request.forEach(function unshiftRequestInterceptors(interceptor) { - chain.unshift(interceptor.fulfilled, interceptor.rejected); - }); - this.interceptors.response.forEach(function pushResponseInterceptors(interceptor) { - chain.push(interceptor.fulfilled, interceptor.rejected); - }); - while (chain.length) { - promise2 = promise2.then(chain.shift(), chain.shift()); - } - return promise2; - } - /** - * @Function - * @param {Object} config - 请求配置项 - * @prop {String} options.url - 请求路径 - * @prop {Object} options.data - 请求参数 - * @prop {Object} [options.responseType = config.responseType] [text|arraybuffer] - 响应的数据类型 - * @prop {Object} [options.dataType = config.dataType] - 如果设为 json,会尝试对返回的数据做一次 JSON.parse - * @prop {Object} [options.header = config.header] - 请求header - * @prop {Object} [options.method = config.method] - 请求方法 - * @returns {Promise} - */ - request(config2 = {}) { - return this.middleware(config2); - } - get(url2, options = {}) { - return this.middleware({ - url: url2, - method: "GET", - ...options - }); - } - post(url2, data, options = {}) { - return this.middleware({ - url: url2, - data, - method: "POST", - ...options - }); - } - put(url2, data, options = {}) { - return this.middleware({ - url: url2, - data, - method: "PUT", - ...options - }); - } - delete(url2, data, options = {}) { - return this.middleware({ - url: url2, - data, - method: "DELETE", - ...options - }); - } - options(url2, data, options = {}) { - return this.middleware({ - url: url2, - data, - method: "OPTIONS", - ...options - }); - } - upload(url2, config2 = {}) { - config2.url = url2; - config2.method = "UPLOAD"; - return this.middleware(config2); - } - download(url2, config2 = {}) { - config2.url = url2; - config2.method = "DOWNLOAD"; - return this.middleware(config2); - } - get version() { - return "3.1.0"; - } - } - const version = "1.1.20"; - { - formatAppLog("log", "at node_modules/@climblee/uv-ui/libs/config/config.js:6", ` - %c uvui V${version} https://www.uvui.cn/ - -`, "color: #ffffff; background: #3c9cff; padding:5px 0; border-radius: 5px;"); - } - const config = { - v: version, - version, - // 主题名称 - type: [ - "primary", - "success", - "info", - "error", - "warning" - ], - // 颜色部分,本来可以通过scss的:export导出供js使用,但是奈何nvue不支持 - color: { - "uv-primary": "#2979ff", - "uv-warning": "#ff9900", - "uv-success": "#19be6b", - "uv-error": "#fa3534", - "uv-info": "#909399", - "uv-main-color": "#303133", - "uv-content-color": "#606266", - "uv-tips-color": "#909399", - "uv-light-color": "#c0c4cc" - }, - // 默认单位,可以通过配置为rpx,那么在用于传入组件大小参数为数值时,就默认为rpx - unit: "px" - }; - let platform = "none"; - platform = "vue3"; - platform = "plus"; - const platform$1 = platform; - const $uv = { - route, - config, - test, - date: timeFormat, - // 另名date - ...index, - colorGradient, - hexToRgb, - rgbToHex, - colorToRgba, - http: new Request(), - debounce, - throttle, - platform: platform$1, - mixin, - mpMixin - }; - uni.$uv = $uv; - const install = (Vue2, options = {}) => { - var _a, _b; - const cloneMixin = deepClone(mixin); - (_a = cloneMixin == null ? void 0 : cloneMixin.props) == null ? true : delete _a.customClass; - (_b = cloneMixin == null ? void 0 : cloneMixin.props) == null ? true : delete _b.customStyle; - Vue2.mixin(cloneMixin); - Vue2.config.globalProperties.$uv = $uv; - }; - const uvUI = { - install - }; - function createApp() { - const app = vue.createVueApp(App); - app.use(uvUI); - uni.$uv.setConfig({ - // 修改$uv.config对象的属性 - // 修改$uv.props对象的属性 - props: { - // 修改uv-text组件的size参数的默认值,注意:默认值都要用default声明 - text: { - color: { - default: "red" - } - } - // 其他组件属性配置,具体的参数名称可以去每个组件的props.js中进行查看 - // ...... - } - }); - return { - app - }; - } - const { app: __app__, Vuex: __Vuex__, Pinia: __Pinia__ } = createApp(); - uni.Vuex = __Vuex__; - uni.Pinia = __Pinia__; - __app__.provide("__globalStyles", __uniConfig.styles); - __app__._component.mpType = "app"; - __app__._component.render = () => { - }; - __app__.mount("#app"); -})(Vue); diff --git a/unpackage/dist/dev/app-plus/app.css b/unpackage/dist/dev/app-plus/app.css deleted file mode 100644 index 7341183..0000000 --- a/unpackage/dist/dev/app-plus/app.css +++ /dev/null @@ -1,171 +0,0 @@ -*{margin:0;-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-tap-highlight-color:transparent}html,body{-webkit-user-select:none;user-select:none;width:100%}html{height:100%;height:100vh;width:100%;width:100vw}body{overflow-x:hidden;background-color:#fff;height:100%}#app{height:100%}input[type=search]::-webkit-search-cancel-button{display:none}.uni-loading,uni-button[loading]:before{background:transparent url(data:image/svg+xml;base64,\ PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMjAiIGhlaWdodD0iMTIwIiB2aWV3Qm94PSIwIDAgMTAwIDEwMCI+PHBhdGggZmlsbD0ibm9uZSIgZD0iTTAgMGgxMDB2MTAwSDB6Ii8+PHJlY3Qgd2lkdGg9IjciIGhlaWdodD0iMjAiIHg9IjQ2LjUiIHk9IjQwIiBmaWxsPSIjRTlFOUU5IiByeD0iNSIgcnk9IjUiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDAgLTMwKSIvPjxyZWN0IHdpZHRoPSI3IiBoZWlnaHQ9IjIwIiB4PSI0Ni41IiB5PSI0MCIgZmlsbD0iIzk4OTY5NyIgcng9IjUiIHJ5PSI1IiB0cmFuc2Zvcm09InJvdGF0ZSgzMCAxMDUuOTggNjUpIi8+PHJlY3Qgd2lkdGg9IjciIGhlaWdodD0iMjAiIHg9IjQ2LjUiIHk9IjQwIiBmaWxsPSIjOUI5OTlBIiByeD0iNSIgcnk9IjUiIHRyYW5zZm9ybT0icm90YXRlKDYwIDc1Ljk4IDY1KSIvPjxyZWN0IHdpZHRoPSI3IiBoZWlnaHQ9IjIwIiB4PSI0Ni41IiB5PSI0MCIgZmlsbD0iI0EzQTFBMiIgcng9IjUiIHJ5PSI1IiB0cmFuc2Zvcm09InJvdGF0ZSg5MCA2NSA2NSkiLz48cmVjdCB3aWR0aD0iNyIgaGVpZ2h0PSIyMCIgeD0iNDYuNSIgeT0iNDAiIGZpbGw9IiNBQkE5QUEiIHJ4PSI1IiByeT0iNSIgdHJhbnNmb3JtPSJyb3RhdGUoMTIwIDU4LjY2IDY1KSIvPjxyZWN0IHdpZHRoPSI3IiBoZWlnaHQ9IjIwIiB4PSI0Ni41IiB5PSI0MCIgZmlsbD0iI0IyQjJCMiIgcng9IjUiIHJ5PSI1IiB0cmFuc2Zvcm09InJvdGF0ZSgxNTAgNTQuMDIgNjUpIi8+PHJlY3Qgd2lkdGg9IjciIGhlaWdodD0iMjAiIHg9IjQ2LjUiIHk9IjQwIiBmaWxsPSIjQkFCOEI5IiByeD0iNSIgcnk9IjUiIHRyYW5zZm9ybT0icm90YXRlKDE4MCA1MCA2NSkiLz48cmVjdCB3aWR0aD0iNyIgaGVpZ2h0PSIyMCIgeD0iNDYuNSIgeT0iNDAiIGZpbGw9IiNDMkMwQzEiIHJ4PSI1IiByeT0iNSIgdHJhbnNmb3JtPSJyb3RhdGUoLTE1MCA0NS45OCA2NSkiLz48cmVjdCB3aWR0aD0iNyIgaGVpZ2h0PSIyMCIgeD0iNDYuNSIgeT0iNDAiIGZpbGw9IiNDQkNCQ0IiIHJ4PSI1IiByeT0iNSIgdHJhbnNmb3JtPSJyb3RhdGUoLTEyMCA0MS4zNCA2NSkiLz48cmVjdCB3aWR0aD0iNyIgaGVpZ2h0PSIyMCIgeD0iNDYuNSIgeT0iNDAiIGZpbGw9IiNEMkQyRDIiIHJ4PSI1IiByeT0iNSIgdHJhbnNmb3JtPSJyb3RhdGUoLTkwIDM1IDY1KSIvPjxyZWN0IHdpZHRoPSI3IiBoZWlnaHQ9IjIwIiB4PSI0Ni41IiB5PSI0MCIgZmlsbD0iI0RBREFEQSIgcng9IjUiIHJ5PSI1IiB0cmFuc2Zvcm09InJvdGF0ZSgtNjAgMjQuMDIgNjUpIi8+PHJlY3Qgd2lkdGg9IjciIGhlaWdodD0iMjAiIHg9IjQ2LjUiIHk9IjQwIiBmaWxsPSIjRTJFMkUyIiByeD0iNSIgcnk9IjUiIHRyYW5zZm9ybT0icm90YXRlKC0zMCAtNS45OCA2NSkiLz48L3N2Zz4=) no-repeat}.uni-loading{width:20px;height:20px;display:inline-block;vertical-align:middle;animation:uni-loading 1s steps(12,end) infinite;background-size:100%}@keyframes uni-loading{0%{transform:rotate3d(0,0,1,0)}to{transform:rotate3d(0,0,1,360deg)}}@media (prefers-color-scheme: dark){html{--UI-BG-COLOR-ACTIVE: #373737;--UI-BORDER-COLOR-1: #373737;--UI-BG: #000;--UI-BG-0: #191919;--UI-BG-1: #1f1f1f;--UI-BG-2: #232323;--UI-BG-3: #2f2f2f;--UI-BG-4: #606060;--UI-BG-5: #2c2c2c;--UI-FG: #fff;--UI-FG-0: hsla(0, 0%, 100%, .8);--UI-FG-HALF: hsla(0, 0%, 100%, .6);--UI-FG-1: hsla(0, 0%, 100%, .5);--UI-FG-2: hsla(0, 0%, 100%, .3);--UI-FG-3: hsla(0, 0%, 100%, .05)}body{background-color:var(--UI-BG-0);color:var(--UI-FG-0)}}[nvue] uni-view,[nvue] uni-label,[nvue] uni-swiper-item,[nvue] uni-scroll-view{display:flex;flex-shrink:0;flex-grow:0;flex-basis:auto;align-items:stretch;align-content:flex-start}[nvue] uni-button{margin:0}[nvue-dir-row] uni-view,[nvue-dir-row] uni-label,[nvue-dir-row] uni-swiper-item{flex-direction:row}[nvue-dir-column] uni-view,[nvue-dir-column] uni-label,[nvue-dir-column] uni-swiper-item{flex-direction:column}[nvue-dir-row-reverse] uni-view,[nvue-dir-row-reverse] uni-label,[nvue-dir-row-reverse] uni-swiper-item{flex-direction:row-reverse}[nvue-dir-column-reverse] uni-view,[nvue-dir-column-reverse] uni-label,[nvue-dir-column-reverse] uni-swiper-item{flex-direction:column-reverse}[nvue] uni-view,[nvue] uni-image,[nvue] uni-input,[nvue] uni-scroll-view,[nvue] uni-swiper,[nvue] uni-swiper-item,[nvue] uni-text,[nvue] uni-textarea,[nvue] uni-video{position:relative;border:0px solid #000000;box-sizing:border-box}[nvue] uni-swiper-item{position:absolute}@keyframes once-show{0%{top:0}}uni-resize-sensor,uni-resize-sensor>div{position:absolute;left:0;top:0;right:0;bottom:0;overflow:hidden}uni-resize-sensor{display:block;z-index:-1;visibility:hidden;animation:once-show 1ms}uni-resize-sensor>div>div{position:absolute;left:0;top:0}uni-resize-sensor>div:first-child>div{width:100000px;height:100000px}uni-resize-sensor>div:last-child>div{width:200%;height:200%}uni-text[selectable]{cursor:auto;-webkit-user-select:text;user-select:text}uni-text{white-space:pre-line}uni-view{display:block}uni-view[hidden]{display:none}uni-button{position:relative;display:block;margin-left:auto;margin-right:auto;padding-left:14px;padding-right:14px;box-sizing:border-box;font-size:18px;text-align:center;text-decoration:none;line-height:2.55555556;border-radius:5px;-webkit-tap-highlight-color:transparent;overflow:hidden;color:#000;background-color:#f8f8f8;cursor:pointer}uni-button[hidden]{display:none!important}uni-button:after{content:" ";width:200%;height:200%;position:absolute;top:0;left:0;border:1px solid rgba(0,0,0,.2);transform:scale(.5);transform-origin:0 0;box-sizing:border-box;border-radius:10px}uni-button[native]{padding-left:0;padding-right:0}uni-button[native] .uni-button-cover-view-wrapper{border:inherit;border-color:inherit;border-radius:inherit;background-color:inherit}uni-button[native] .uni-button-cover-view-inner{padding-left:14px;padding-right:14px}uni-button uni-cover-view{line-height:inherit;white-space:inherit}uni-button[type=default]{color:#000;background-color:#f8f8f8}uni-button[type=primary]{color:#fff;background-color:#007aff}uni-button[type=warn]{color:#fff;background-color:#e64340}uni-button[disabled]{color:rgba(255,255,255,.6);cursor:not-allowed}uni-button[disabled][type=default],uni-button[disabled]:not([type]){color:rgba(0,0,0,.3);background-color:#f7f7f7}uni-button[disabled][type=primary]{background-color:rgba(0,122,255,.6)}uni-button[disabled][type=warn]{background-color:#ec8b89}uni-button[type=primary][plain]{color:#007aff;border:1px solid #007aff;background-color:transparent}uni-button[type=primary][plain][disabled]{color:rgba(0,0,0,.2);border-color:rgba(0,0,0,.2)}uni-button[type=primary][plain]:after{border-width:0}uni-button[type=default][plain]{color:#353535;border:1px solid #353535;background-color:transparent}uni-button[type=default][plain][disabled]{color:rgba(0,0,0,.2);border-color:rgba(0,0,0,.2)}uni-button[type=default][plain]:after{border-width:0}uni-button[plain]{color:#353535;border:1px solid #353535;background-color:transparent}uni-button[plain][disabled]{color:rgba(0,0,0,.2);border-color:rgba(0,0,0,.2)}uni-button[plain]:after{border-width:0}uni-button[plain][native] .uni-button-cover-view-inner{padding:0}uni-button[type=warn][plain]{color:#e64340;border:1px solid #e64340;background-color:transparent}uni-button[type=warn][plain][disabled]{color:rgba(0,0,0,.2);border-color:rgba(0,0,0,.2)}uni-button[type=warn][plain]:after{border-width:0}uni-button[size=mini]{display:inline-block;line-height:2.3;font-size:13px;padding:0 1.34em}uni-button[size=mini][native]{padding:0}uni-button[size=mini][native] .uni-button-cover-view-inner{padding:0 1.34em}uni-button[loading]:not([disabled]){cursor:progress}uni-button[loading]:before{content:" ";display:inline-block;width:18px;height:18px;vertical-align:middle;animation:uni-loading 1s steps(12,end) infinite;background-size:100%}uni-button[loading][type=primary]{color:rgba(255,255,255,.6);background-color:#0062cc}uni-button[loading][type=primary][plain]{color:#007aff;background-color:transparent}uni-button[loading][type=default]{color:rgba(0,0,0,.6);background-color:#dedede}uni-button[loading][type=default][plain]{color:#353535;background-color:transparent}uni-button[loading][type=warn]{color:rgba(255,255,255,.6);background-color:#ce3c39}uni-button[loading][type=warn][plain]{color:#e64340;background-color:transparent}uni-button[loading][native]:before{content:none}.button-hover{color:rgba(0,0,0,.6);background-color:#dedede}.button-hover[plain]{color:rgba(53,53,53,.6);border-color:rgba(53,53,53,.6);background-color:transparent}.button-hover[type=primary]{color:rgba(255,255,255,.6);background-color:#0062cc}.button-hover[type=primary][plain]{color:rgba(0,122,255,.6);border-color:rgba(0,122,255,.6);background-color:transparent}.button-hover[type=default]{color:rgba(0,0,0,.6);background-color:#dedede}.button-hover[type=default][plain]{color:rgba(53,53,53,.6);border-color:rgba(53,53,53,.6);background-color:transparent}.button-hover[type=warn]{color:rgba(255,255,255,.6);background-color:#ce3c39}.button-hover[type=warn][plain]{color:rgba(230,67,64,.6);border-color:rgba(230,67,64,.6);background-color:transparent}@media (prefers-color-scheme: dark){uni-button,uni-button[type=default]{color:#d6d6d6;background-color:#343434}.button-hover,.button-hover[type=default]{color:#d6d6d6;background-color:rgba(255,255,255,.1)}uni-button[disabled][type=default],uni-button[disabled]:not([type]){color:rgba(255,255,255,.2);background-color:rgba(255,255,255,.08)}uni-button[type=primary][plain][disabled]{color:rgba(255,255,255,.2);border-color:rgba(255,255,255,.2)}uni-button[type=default][plain]{color:#d6d6d6;border:1px solid #d6d6d6}.button-hover[type=default][plain]{color:rgba(150,150,150,.6);border-color:rgba(150,150,150,.6);background-color:rgba(50,50,50,.2)}uni-button[type=default][plain][disabled]{border-color:rgba(255,255,255,.2);color:rgba(255,255,255,.2)}}uni-canvas{width:300px;height:150px;display:block;position:relative}uni-canvas>.uni-canvas-canvas{position:absolute;top:0;left:0;width:100%;height:100%}uni-checkbox{-webkit-tap-highlight-color:transparent;display:inline-block;cursor:pointer}uni-checkbox[hidden]{display:none}uni-checkbox[disabled]{cursor:not-allowed}.uni-checkbox-wrapper{display:inline-flex;align-items:center;vertical-align:middle}.uni-checkbox-input{margin-right:5px;-webkit-appearance:none;appearance:none;outline:0;border:1px solid #d1d1d1;background-color:#fff;border-radius:3px;width:22px;height:22px;position:relative}.uni-checkbox-input svg{color:#007aff;font-size:22px;position:absolute;top:50%;left:50%;transform:translate(-50%,-48%) scale(.73)}@media (hover: hover){uni-checkbox:not([disabled]) .uni-checkbox-input:hover{border-color:var(--HOVER-BD-COLOR, #007aff)!important}}uni-checkbox-group{display:block}uni-checkbox-group[hidden]{display:none}uni-cover-image{display:block;line-height:1.2;overflow:hidden;height:100%;width:100%;pointer-events:auto}uni-cover-image[hidden]{display:none}uni-cover-image .uni-cover-image{width:100%;height:100%}uni-cover-view{display:block;line-height:1.2;overflow:hidden;white-space:nowrap;pointer-events:auto}uni-cover-view[hidden]{display:none}uni-cover-view .uni-cover-view{width:100%;height:100%;visibility:hidden;text-overflow:inherit;white-space:inherit;align-items:inherit;justify-content:inherit;flex-direction:inherit;flex-wrap:inherit;display:inherit;overflow:inherit}.ql-container{display:block;position:relative;box-sizing:border-box;-webkit-user-select:text;user-select:text;outline:none;overflow:hidden;width:100%;height:200px;min-height:200px}.ql-container[hidden]{display:none}.ql-container .ql-editor{position:relative;font-size:inherit;line-height:inherit;font-family:inherit;min-height:inherit;width:100%;height:100%;padding:0;overflow-x:hidden;overflow-y:auto;-webkit-tap-highlight-color:transparent;-webkit-touch-callout:none;-webkit-overflow-scrolling:touch}.ql-container .ql-editor::-webkit-scrollbar{width:0!important}.ql-container .ql-editor.scroll-disabled{overflow:hidden}.ql-container .ql-image-overlay{display:flex;position:absolute;box-sizing:border-box;border:1px dashed #ccc;justify-content:center;align-items:center;-webkit-user-select:none;user-select:none}.ql-container .ql-image-overlay .ql-image-size{position:absolute;padding:4px 8px;text-align:center;background-color:#fff;color:#888;border:1px solid #ccc;box-sizing:border-box;opacity:.8;right:4px;top:4px;font-size:12px;display:inline-block;width:auto}.ql-container .ql-image-overlay .ql-image-toolbar{position:relative;text-align:center;box-sizing:border-box;background:#000;border-radius:5px;color:#fff;font-size:0;min-height:24px;z-index:100}.ql-container .ql-image-overlay .ql-image-toolbar span{display:inline-block;cursor:pointer;padding:5px;font-size:12px;border-right:1px solid #fff}.ql-container .ql-image-overlay .ql-image-toolbar span:last-child{border-right:0}.ql-container .ql-image-overlay .ql-image-toolbar span.triangle-up{padding:0;position:absolute;top:-12px;left:50%;transform:translate(-50%);width:0;height:0;border-width:6px;border-style:solid;border-color:transparent transparent black transparent}.ql-container .ql-image-overlay .ql-image-handle{position:absolute;height:12px;width:12px;border-radius:50%;border:1px solid #ccc;box-sizing:border-box;background:#fff}.ql-container img{display:inline-block;max-width:100%}.ql-clipboard p{margin:0;padding:0}.ql-editor{box-sizing:border-box;height:100%;outline:none;overflow-y:auto;tab-size:4;-moz-tab-size:4;text-align:left;white-space:pre-wrap;word-wrap:break-word}.ql-editor>*{cursor:text}.ql-editor p,.ql-editor ol,.ql-editor ul,.ql-editor pre,.ql-editor blockquote,.ql-editor h1,.ql-editor h2,.ql-editor h3,.ql-editor h4,.ql-editor h5,.ql-editor h6{margin:0;padding:0;counter-reset:list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9}.ql-editor ol>li,.ql-editor ul>li{list-style-type:none}.ql-editor ul>li:before{content:"•"}.ql-editor ul[data-checked=true],.ql-editor ul[data-checked=false]{pointer-events:none}.ql-editor ul[data-checked=true]>li *,.ql-editor ul[data-checked=false]>li *{pointer-events:all}.ql-editor ul[data-checked=true]>li:before,.ql-editor ul[data-checked=false]>li:before{color:#777;cursor:pointer;pointer-events:all}.ql-editor ul[data-checked=true]>li:before{content:"☑"}.ql-editor ul[data-checked=false]>li:before{content:"☐"}.ql-editor ol,.ql-editor ul{padding-left:1.5em}.ql-editor li:not(.ql-direction-rtl):before{margin-left:-1.5em}.ql-editor li.ql-direction-rtl:before{margin-right:-1.5em}.ql-editor li:before{display:inline-block;white-space:nowrap;width:2em}.ql-editor ol li{counter-reset:list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9;counter-increment:list-0}.ql-editor ol li:before{content:counter(list-0,decimal) ". "}.ql-editor ol li.ql-indent-1{counter-increment:list-1}.ql-editor ol li.ql-indent-1:before{content:counter(list-1,lower-alpha) ". "}.ql-editor ol li.ql-indent-1{counter-reset:list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9}.ql-editor ol li.ql-indent-2{counter-increment:list-2}.ql-editor ol li.ql-indent-2:before{content:counter(list-2,lower-roman) ". "}.ql-editor ol li.ql-indent-2{counter-reset:list-3 list-4 list-5 list-6 list-7 list-8 list-9}.ql-editor ol li.ql-indent-3{counter-increment:list-3}.ql-editor ol li.ql-indent-3:before{content:counter(list-3,decimal) ". "}.ql-editor ol li.ql-indent-3{counter-reset:list-4 list-5 list-6 list-7 list-8 list-9}.ql-editor ol li.ql-indent-4{counter-increment:list-4}.ql-editor ol li.ql-indent-4:before{content:counter(list-4,lower-alpha) ". "}.ql-editor ol li.ql-indent-4{counter-reset:list-5 list-6 list-7 list-8 list-9}.ql-editor ol li.ql-indent-5{counter-increment:list-5}.ql-editor ol li.ql-indent-5:before{content:counter(list-5,lower-roman) ". "}.ql-editor ol li.ql-indent-5{counter-reset:list-6 list-7 list-8 list-9}.ql-editor ol li.ql-indent-6{counter-increment:list-6}.ql-editor ol li.ql-indent-6:before{content:counter(list-6,decimal) ". "}.ql-editor ol li.ql-indent-6{counter-reset:list-7 list-8 list-9}.ql-editor ol li.ql-indent-7{counter-increment:list-7}.ql-editor ol li.ql-indent-7:before{content:counter(list-7,lower-alpha) ". "}.ql-editor ol li.ql-indent-7{counter-reset:list-8 list-9}.ql-editor ol li.ql-indent-8{counter-increment:list-8}.ql-editor ol li.ql-indent-8:before{content:counter(list-8,lower-roman) ". "}.ql-editor ol li.ql-indent-8{counter-reset:list-9}.ql-editor ol li.ql-indent-9{counter-increment:list-9}.ql-editor ol li.ql-indent-9:before{content:counter(list-9,decimal) ". "}.ql-editor .ql-indent-1:not(.ql-direction-rtl){padding-left:2em}.ql-editor li.ql-indent-1:not(.ql-direction-rtl){padding-left:2em}.ql-editor .ql-indent-1.ql-direction-rtl.ql-align-right,.ql-editor li.ql-indent-1.ql-direction-rtl.ql-align-right{padding-right:2em}.ql-editor .ql-indent-2:not(.ql-direction-rtl){padding-left:4em}.ql-editor li.ql-indent-2:not(.ql-direction-rtl){padding-left:4em}.ql-editor .ql-indent-2.ql-direction-rtl.ql-align-right,.ql-editor li.ql-indent-2.ql-direction-rtl.ql-align-right{padding-right:4em}.ql-editor .ql-indent-3:not(.ql-direction-rtl){padding-left:6em}.ql-editor li.ql-indent-3:not(.ql-direction-rtl){padding-left:6em}.ql-editor .ql-indent-3.ql-direction-rtl.ql-align-right,.ql-editor li.ql-indent-3.ql-direction-rtl.ql-align-right{padding-right:6em}.ql-editor .ql-indent-4:not(.ql-direction-rtl){padding-left:8em}.ql-editor li.ql-indent-4:not(.ql-direction-rtl){padding-left:8em}.ql-editor .ql-indent-4.ql-direction-rtl.ql-align-right,.ql-editor li.ql-indent-4.ql-direction-rtl.ql-align-right{padding-right:8em}.ql-editor .ql-indent-5:not(.ql-direction-rtl){padding-left:10em}.ql-editor li.ql-indent-5:not(.ql-direction-rtl){padding-left:10em}.ql-editor .ql-indent-5.ql-direction-rtl.ql-align-right,.ql-editor li.ql-indent-5.ql-direction-rtl.ql-align-right{padding-right:10em}.ql-editor .ql-indent-6:not(.ql-direction-rtl){padding-left:12em}.ql-editor li.ql-indent-6:not(.ql-direction-rtl){padding-left:12em}.ql-editor .ql-indent-6.ql-direction-rtl.ql-align-right,.ql-editor li.ql-indent-6.ql-direction-rtl.ql-align-right{padding-right:12em}.ql-editor .ql-indent-7:not(.ql-direction-rtl){padding-left:14em}.ql-editor li.ql-indent-7:not(.ql-direction-rtl){padding-left:14em}.ql-editor .ql-indent-7.ql-direction-rtl.ql-align-right,.ql-editor li.ql-indent-7.ql-direction-rtl.ql-align-right{padding-right:14em}.ql-editor .ql-indent-8:not(.ql-direction-rtl){padding-left:16em}.ql-editor li.ql-indent-8:not(.ql-direction-rtl){padding-left:16em}.ql-editor .ql-indent-8.ql-direction-rtl.ql-align-right,.ql-editor li.ql-indent-8.ql-direction-rtl.ql-align-right{padding-right:16em}.ql-editor .ql-indent-9:not(.ql-direction-rtl){padding-left:18em}.ql-editor li.ql-indent-9:not(.ql-direction-rtl){padding-left:18em}.ql-editor .ql-indent-9.ql-direction-rtl.ql-align-right,.ql-editor li.ql-indent-9.ql-direction-rtl.ql-align-right{padding-right:18em}.ql-editor .ql-direction-rtl{direction:rtl;text-align:inherit}.ql-editor .ql-align-center{text-align:center}.ql-editor .ql-align-justify{text-align:justify}.ql-editor .ql-align-right{text-align:right}.ql-editor.ql-blank:before{color:rgba(0,0,0,.6);content:attr(data-placeholder);font-style:italic;pointer-events:none;position:absolute}.ql-container.ql-disabled .ql-editor ul[data-checked]>li:before{pointer-events:none}.ql-clipboard{left:-100000px;height:1px;overflow-y:hidden;position:absolute;top:50%}uni-icon{display:inline-block;font-size:0;box-sizing:border-box}uni-icon[hidden]{display:none}uni-image{width:320px;height:240px;display:inline-block;overflow:hidden;position:relative}uni-image[hidden]{display:none}uni-image>div{width:100%;height:100%;background-repeat:no-repeat}uni-image>img{-webkit-touch-callout:none;-webkit-user-select:none;user-select:none;display:block;position:absolute;top:0;left:0;width:100%;height:100%;opacity:0}uni-image>.uni-image-will-change{will-change:transform}uni-input{display:block;font-size:16px;line-height:1.4em;height:1.4em;min-height:1.4em;overflow:hidden}uni-input[hidden]{display:none}.uni-input-wrapper,.uni-input-placeholder,.uni-input-form,.uni-input-input{outline:none;border:none;padding:0;margin:0;text-decoration:inherit}.uni-input-wrapper,.uni-input-form{display:flex;position:relative;width:100%;height:100%;flex-direction:column;justify-content:center}.uni-input-placeholder,.uni-input-input{width:100%}.uni-input-placeholder{position:absolute;top:auto!important;left:0;color:gray;overflow:hidden;text-overflow:clip;white-space:pre;word-break:keep-all;pointer-events:none;line-height:inherit}.uni-input-input{position:relative;display:block;height:100%;background:none;color:inherit;opacity:1;font:inherit;line-height:inherit;letter-spacing:inherit;text-align:inherit;text-indent:inherit;text-transform:inherit;text-shadow:inherit}.uni-input-input[type=search]::-webkit-search-cancel-button,.uni-input-input[type=search]::-webkit-search-decoration{display:none}.uni-input-input::-webkit-outer-spin-button,.uni-input-input::-webkit-inner-spin-button{-webkit-appearance:none;appearance:none;margin:0}.uni-input-input[type=number]{-moz-appearance:textfield}.uni-input-input:disabled{-webkit-text-fill-color:currentcolor}.uni-label-pointer{cursor:pointer}uni-live-pusher{width:320px;height:240px;display:inline-block;line-height:0;overflow:hidden;position:relative}uni-live-pusher[hidden]{display:none}.uni-live-pusher-container{width:100%;height:100%;position:absolute;top:0;left:0;overflow:hidden;background-color:#000}.uni-live-pusher-slot{position:absolute;top:0;width:100%;height:100%;overflow:hidden;pointer-events:none}uni-map{width:300px;height:225px;display:inline-block;line-height:0;overflow:hidden;position:relative}uni-map[hidden]{display:none}.uni-map-container{width:100%;height:100%;position:absolute;top:0;left:0;overflow:hidden;background-color:transparent}.uni-map-slot{position:absolute;top:0;width:100%;height:100%;overflow:hidden;pointer-events:none}uni-map.web{position:relative;width:300px;height:150px;display:block}uni-map.web[hidden]{display:none}uni-map.web .amap-marker-label{padding:0;border:none;background-color:transparent}uni-map.web .amap-marker>.amap-icon>img{left:0!important;top:0!important}uni-map.web .uni-map-control{position:absolute;width:0;height:0;top:0;left:0;z-index:999}uni-map.web .uni-map-control-icon{position:absolute;max-width:initial}.uni-system-choose-location{display:block;position:fixed;left:0;top:0;width:100%;height:100%;background:#f8f8f8;z-index:999}.uni-system-choose-location .map{position:absolute;top:0;left:0;width:100%;height:300px}.uni-system-choose-location .map-location{position:absolute;left:50%;bottom:50%;width:32px;height:52px;margin-left:-16px;cursor:pointer;background-size:100%}.uni-system-choose-location .map-move{position:absolute;bottom:50px;right:10px;width:40px;height:40px;box-sizing:border-box;line-height:40px;background-color:#fff;border-radius:50%;pointer-events:auto;cursor:pointer;box-shadow:0 0 5px 1px rgba(0,0,0,.3)}.uni-system-choose-location .map-move>svg{display:block;width:100%;height:100%;box-sizing:border-box;padding:8px}.uni-system-choose-location .nav{position:absolute;top:0;left:0;width:100%;height:calc(44px + var(--status-bar-height));background-color:transparent;background-image:linear-gradient(to bottom,rgba(0,0,0,.3),rgba(0,0,0,0))}.uni-system-choose-location .nav-btn{position:absolute;box-sizing:border-box;top:var(--status-bar-height);left:0;width:60px;height:44px;padding:6px;line-height:32px;font-size:26px;color:#fff;text-align:center;cursor:pointer}.uni-system-choose-location .nav-btn.confirm{left:auto;right:0}.uni-system-choose-location .nav-btn.disable{opacity:.4}.uni-system-choose-location .nav-btn>svg{display:block;width:100%;height:100%;border-radius:2px;box-sizing:border-box;padding:3px}.uni-system-choose-location .nav-btn.confirm>svg{background-color:#007aff;padding:5px}.uni-system-choose-location .menu{position:absolute;top:300px;left:0;width:100%;bottom:0;background-color:#fff}.uni-system-choose-location .search{display:flex;flex-direction:row;height:50px;padding:8px;line-height:34px;box-sizing:border-box;background-color:#fff}.uni-system-choose-location .search-input{flex:1;height:100%;border-radius:5px;padding:0 5px;background:#ebebeb}.uni-system-choose-location .search-btn{margin-left:5px;color:#007aff;font-size:17px;text-align:center}.uni-system-choose-location .list{position:absolute;top:50px;left:0;width:100%;bottom:0;padding-bottom:10px}.uni-system-choose-location .list-loading{display:flex;height:50px;justify-content:center;align-items:center}.uni-system-choose-location .list-item{position:relative;padding:10px 40px 10px 10px;cursor:pointer}.uni-system-choose-location .list-item>svg{display:none;position:absolute;top:50%;right:10px;width:30px;height:30px;margin-top:-15px;box-sizing:border-box;padding:5px}.uni-system-choose-location .list-item.selected>svg{display:block}.uni-system-choose-location .list-item:not(:last-child):after{position:absolute;content:"";height:1px;left:10px;bottom:0;width:100%;background-color:#d3d3d3}.uni-system-choose-location .list-item-title{font-size:14px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.uni-system-choose-location .list-item-detail{font-size:12px;color:gray;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}@media screen and (min-width: 800px){.uni-system-choose-location .map{top:0;height:100%}.uni-system-choose-location .map-move{bottom:10px;right:320px}.uni-system-choose-location .menu{top:calc(54px + var(--status-bar-height));left:auto;right:10px;width:300px;bottom:10px;max-height:600px;box-shadow:0 0 20px 5px rgba(0,0,0,.3)}}.uni-system-open-location{display:block;position:fixed;left:0;top:0;width:100%;height:100%;background:#f8f8f8;z-index:999}.uni-system-open-location .map{position:absolute;top:0;left:0;width:100%;bottom:80px;height:auto}.uni-system-open-location .info{position:absolute;bottom:0;left:0;width:100%;height:80px;background-color:#fff;padding:15px;box-sizing:border-box;line-height:1.5}.uni-system-open-location .info>.name{font-size:17px;color:#111}.uni-system-open-location .info>.address{font-size:14px;color:#666}.uni-system-open-location .info>.nav{position:absolute;top:50%;right:15px;width:50px;height:50px;border-radius:50%;margin-top:-25px;background-color:#007aff}.uni-system-open-location .info>.nav>svg{display:block;width:100%;height:100%;padding:10px;box-sizing:border-box}.uni-system-open-location .map-move{position:absolute;bottom:50px;right:10px;width:40px;height:40px;box-sizing:border-box;line-height:40px;background-color:#fff;border-radius:50%;pointer-events:auto;cursor:pointer;box-shadow:0 0 5px 1px rgba(0,0,0,.3)}.uni-system-open-location .map-move>svg{display:block;width:100%;height:100%;box-sizing:border-box;padding:8px}.uni-system-open-location .nav-btn-back{position:absolute;box-sizing:border-box;top:var(--status-bar-height);left:0;width:44px;height:44px;padding:6px;cursor:pointer}.uni-system-open-location .nav-btn-back>svg{display:block;width:100%;height:100%;border-radius:50%;background-color:rgba(0,0,0,.5);padding:3px;box-sizing:border-box}.uni-system-open-location .map-content{position:absolute;left:0;top:0;width:100%;bottom:0;overflow:hidden}.uni-system-open-location .map-content.fix-position{top:-74px;bottom:-44px}.uni-system-open-location .map-content>iframe{width:100%;height:100%;border:none}.uni-system-open-location .actTonav{position:absolute;right:16px;bottom:56px;width:60px;height:60px;border-radius:60px}.uni-system-open-location .nav-view{position:absolute;left:0;top:0;width:100%;height:100%;display:flex;flex-direction:column}.uni-system-open-location .nav-view-top-placeholder{width:100%;height:var(--status-bar-height);background-color:#fff}.uni-system-open-location .nav-view-frame{width:100%;flex:1}uni-movable-area{display:block;position:relative;width:10px;height:10px}uni-movable-area[hidden]{display:none}uni-movable-view{display:inline-block;width:10px;height:10px;top:0;left:0;position:absolute;cursor:grab}uni-movable-view[hidden]{display:none}uni-navigator{height:auto;width:auto;display:block;cursor:pointer}uni-navigator[hidden]{display:none}.navigator-hover{background-color:rgba(0,0,0,.1);opacity:.7}.navigator-wrap,.navigator-wrap:link,.navigator-wrap:visited,.navigator-wrap:hover,.navigator-wrap:active{text-decoration:none;color:inherit;cursor:pointer}uni-picker-view{display:block}.uni-picker-view-wrapper{display:flex;position:relative;overflow:hidden;height:100%}uni-picker-view[hidden]{display:none}uni-picker-view-column{flex:1;position:relative;height:100%;overflow:hidden}uni-picker-view-column[hidden]{display:none}.uni-picker-view-group{height:100%;overflow:hidden}.uni-picker-view-mask{transform:translateZ(0)}.uni-picker-view-indicator,.uni-picker-view-mask{position:absolute;left:0;width:100%;z-index:3;pointer-events:none}.uni-picker-view-mask{top:0;height:100%;margin:0 auto;background-image:linear-gradient(180deg,rgba(255,255,255,.95),rgba(255,255,255,.6)),linear-gradient(0deg,rgba(255,255,255,.95),rgba(255,255,255,.6));background-position:top,bottom;background-size:100% 102px;background-repeat:no-repeat;transform:translateZ(0)}.uni-picker-view-indicator{height:34px;top:50%;transform:translateY(-50%)}.uni-picker-view-content{position:absolute;top:0;left:0;width:100%;will-change:transform;padding:102px 0;cursor:pointer}.uni-picker-view-content>*{height:var(--picker-view-column-indicator-height);overflow:hidden}.uni-picker-view-indicator:before{top:0;border-top:1px solid #e5e5e5;transform-origin:0 0;transform:scaleY(.5)}.uni-picker-view-indicator:after{bottom:0;border-bottom:1px solid #e5e5e5;transform-origin:0 100%;transform:scaleY(.5)}.uni-picker-view-indicator:after,.uni-picker-view-indicator:before{content:" ";position:absolute;left:0;right:0;height:1px;color:#e5e5e5}@media (prefers-color-scheme: dark){.uni-picker-view-indicator:before{border-top-color:var(--UI-FG-3)}.uni-picker-view-indicator:after{border-bottom-color:var(--UI-FG-3)}.uni-picker-view-mask{background-image:linear-gradient(180deg,rgba(35,35,35,.95),rgba(35,35,35,.6)),linear-gradient(0deg,rgba(35,35,35,.95),rgba(35,35,35,.6))}}uni-progress{display:flex;align-items:center}uni-progress[hidden]{display:none}.uni-progress-bar{flex:1}.uni-progress-inner-bar{width:0;height:100%}.uni-progress-info{margin-top:0;margin-bottom:0;min-width:2em;margin-left:15px;font-size:16px}uni-radio{-webkit-tap-highlight-color:transparent;display:inline-block;cursor:pointer}uni-radio[hidden]{display:none}uni-radio[disabled]{cursor:not-allowed}.uni-radio-wrapper{display:inline-flex;align-items:center;vertical-align:middle}.uni-radio-input{-webkit-appearance:none;appearance:none;margin-right:5px;outline:0;border:1px solid #d1d1d1;background-color:#fff;border-radius:50%;width:22px;height:22px;position:relative}@media (hover: hover){uni-radio:not([disabled]) .uni-radio-input:hover{border-color:var(--HOVER-BD-COLOR, #007aff)!important}}.uni-radio-input svg{color:#fff;font-size:18px;position:absolute;top:50%;left:50%;transform:translate(-50%,-48%) scale(.73)}.uni-radio-input.uni-radio-input-disabled{background-color:#e1e1e1;border-color:#d1d1d1}.uni-radio-input.uni-radio-input-disabled svg{color:#adadad}uni-radio-group{display:block}uni-radio-group[hidden]{display:none}uni-scroll-view{display:block;width:100%}uni-scroll-view[hidden]{display:none}.uni-scroll-view{position:relative;-webkit-overflow-scrolling:touch;width:100%;height:100%;max-height:inherit}.uni-scroll-view-scrollbar-hidden::-webkit-scrollbar{display:none}.uni-scroll-view-scrollbar-hidden{-moz-scrollbars:none;scrollbar-width:none}.uni-scroll-view-content{width:100%;height:100%}.uni-scroll-view-refresher{position:relative;overflow:hidden;flex-shrink:0}.uni-scroll-view-refresher-container{position:absolute;width:100%;bottom:0;display:flex;flex-direction:column-reverse}.uni-scroll-view-refresh{position:absolute;top:0;left:0;right:0;bottom:0;display:flex;flex-direction:row;justify-content:center;align-items:center}.uni-scroll-view-refresh-inner{display:flex;align-items:center;justify-content:center;line-height:0;width:40px;height:40px;border-radius:50%;background-color:#fff;box-shadow:0 1px 6px rgba(0,0,0,.118),0 1px 4px rgba(0,0,0,.118)}.uni-scroll-view-refresh__spinner{transform-origin:center center;animation:uni-scroll-view-refresh-rotate 2s linear infinite}.uni-scroll-view-refresh__spinner>circle{stroke:currentColor;stroke-linecap:round;animation:uni-scroll-view-refresh-dash 2s linear infinite}@keyframes uni-scroll-view-refresh-rotate{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes uni-scroll-view-refresh-dash{0%{stroke-dasharray:1,200;stroke-dashoffset:0}50%{stroke-dasharray:89,200;stroke-dashoffset:-35px}to{stroke-dasharray:89,200;stroke-dashoffset:-124px}}uni-slider{margin:10px 18px;padding:0;display:block}uni-slider[hidden]{display:none}uni-slider .uni-slider-wrapper{display:flex;align-items:center;min-height:16px}uni-slider .uni-slider-tap-area{flex:1;padding:8px 0}uni-slider .uni-slider-handle-wrapper{position:relative;height:2px;border-radius:5px;background-color:#e9e9e9;cursor:pointer;transition:background-color .3s ease;-webkit-tap-highlight-color:transparent}uni-slider .uni-slider-track{height:100%;border-radius:6px;background-color:#007aff;transition:background-color .3s ease}uni-slider .uni-slider-handle,uni-slider .uni-slider-thumb{position:absolute;left:50%;top:50%;cursor:pointer;border-radius:50%;transition:border-color .3s ease}uni-slider .uni-slider-handle{width:28px;height:28px;margin-top:-14px;margin-left:-14px;background-color:transparent;z-index:3;cursor:grab}uni-slider .uni-slider-thumb{z-index:2;box-shadow:0 0 4px rgba(0,0,0,.2)}uni-slider .uni-slider-step{position:absolute;width:100%;height:2px;background:transparent;z-index:1}uni-slider .uni-slider-value{width:3ch;color:#888;font-size:14px;margin-left:1em}uni-slider .uni-slider-disabled .uni-slider-track{background-color:#ccc}uni-slider .uni-slider-disabled .uni-slider-thumb{background-color:#fff;border-color:#ccc}uni-swiper{display:block;height:150px}uni-swiper[hidden]{display:none}.uni-swiper-wrapper{overflow:hidden;position:relative;width:100%;height:100%;transform:translateZ(0)}.uni-swiper-slides{position:absolute;left:0;top:0;right:0;bottom:0}.uni-swiper-slide-frame{position:absolute;left:0;top:0;width:100%;height:100%;will-change:transform}.uni-swiper-dots{position:absolute;font-size:0}.uni-swiper-dots-horizontal{left:50%;bottom:10px;text-align:center;white-space:nowrap;transform:translate(-50%)}.uni-swiper-dots-horizontal .uni-swiper-dot{margin-right:8px}.uni-swiper-dots-horizontal .uni-swiper-dot:last-child{margin-right:0}.uni-swiper-dots-vertical{right:10px;top:50%;text-align:right;transform:translateY(-50%)}.uni-swiper-dots-vertical .uni-swiper-dot{display:block;margin-bottom:9px}.uni-swiper-dots-vertical .uni-swiper-dot:last-child{margin-bottom:0}.uni-swiper-dot{display:inline-block;width:8px;height:8px;cursor:pointer;transition-property:background-color;transition-timing-function:ease;background:rgba(0,0,0,.3);border-radius:50%}.uni-swiper-dot-active{background-color:#000}.uni-swiper-navigation{width:26px;height:26px;cursor:pointer;position:absolute;top:50%;margin-top:-13px;display:flex;align-items:center;transition:all .2s;border-radius:50%;opacity:1}.uni-swiper-navigation-disabled{opacity:.35;cursor:not-allowed}.uni-swiper-navigation-hide{opacity:0;cursor:auto;pointer-events:none}.uni-swiper-navigation-prev{left:10px}.uni-swiper-navigation-prev svg{margin-left:-1px;left:10px}.uni-swiper-navigation-prev.uni-swiper-navigation-vertical{top:18px;left:50%;margin-left:-13px}.uni-swiper-navigation-prev.uni-swiper-navigation-vertical svg{transform:rotate(90deg);margin-left:auto;margin-top:-2px}.uni-swiper-navigation-next{right:10px}.uni-swiper-navigation-next svg{transform:rotate(180deg)}.uni-swiper-navigation-next.uni-swiper-navigation-vertical{top:auto;bottom:5px;left:50%;margin-left:-13px}.uni-swiper-navigation-next.uni-swiper-navigation-vertical svg{margin-top:2px;transform:rotate(270deg)}uni-swiper-item{display:block;overflow:hidden;will-change:transform;position:absolute;width:100%;height:100%;cursor:grab}uni-swiper-item[hidden]{display:none}uni-switch{-webkit-tap-highlight-color:transparent;display:inline-block;cursor:pointer}uni-switch[hidden]{display:none}uni-switch[disabled]{cursor:not-allowed}uni-switch[disabled] .uni-switch-input{opacity:.7}.uni-switch-wrapper{display:inline-flex;align-items:center;vertical-align:middle}.uni-switch-input{-webkit-appearance:none;appearance:none;position:relative;width:52px;height:32px;margin-right:5px;border:1px solid #dfdfdf;outline:0;border-radius:16px;box-sizing:border-box;background-color:#dfdfdf;transition:background-color .1s,border .1s}.uni-switch-input:before{content:" ";position:absolute;top:0;left:0;width:50px;height:30px;border-radius:15px;background-color:#fdfdfd;transition:transform .3s}.uni-switch-input:after{content:" ";position:absolute;top:0;left:0;width:30px;height:30px;border-radius:15px;background-color:#fff;box-shadow:0 1px 3px rgba(0,0,0,.4);transition:transform .3s}.uni-switch-input.uni-switch-input-checked{border-color:#007aff;background-color:#007aff}.uni-switch-input.uni-switch-input-checked:before{transform:scale(0)}.uni-switch-input.uni-switch-input-checked:after{transform:translate(20px)}uni-switch .uni-checkbox-input{margin-right:5px;-webkit-appearance:none;appearance:none;outline:0;border:1px solid #d1d1d1;background-color:#fff;border-radius:3px;width:22px;height:22px;position:relative;color:#007aff}uni-switch:not([disabled]) .uni-checkbox-input:hover{border-color:#007aff}uni-switch .uni-checkbox-input svg{fill:#007aff;font-size:22px;position:absolute;top:50%;left:50%;transform:translate(-50%,-48%) scale(.73)}.uni-checkbox-input.uni-checkbox-input-disabled{background-color:#e1e1e1}.uni-checkbox-input.uni-checkbox-input-disabled:before{color:#adadad}@media (prefers-color-scheme: dark){uni-switch .uni-switch-input{border-color:#3b3b3f}uni-switch .uni-switch-input,uni-switch .uni-switch-input:before{background-color:#3b3b3f}uni-switch .uni-switch-input:after{background-color:#fff;box-shadow:0 1px 3px rgba(0,0,0,.4)}uni-switch .uni-checkbox-input{background-color:#2c2c2c;border:1px solid #656565}}uni-textarea{width:300px;height:150px;display:block;position:relative;font-size:16px;line-height:normal;white-space:pre-wrap;word-break:break-all}uni-textarea[hidden]{display:none}uni-textarea[auto-height=true]{height:-webkit-fit-content!important;height:fit-content!important}.uni-textarea-wrapper,.uni-textarea-placeholder,.uni-textarea-line,.uni-textarea-compute,.uni-textarea-textarea{outline:none;border:none;padding:0;margin:0;text-decoration:inherit}.uni-textarea-wrapper{display:block;position:relative;width:100%;height:100%;min-height:inherit;overflow-y:hidden}.uni-textarea-placeholder,.uni-textarea-line,.uni-textarea-compute,.uni-textarea-textarea{position:absolute;width:100%;height:100%;left:0;top:0;white-space:inherit;word-break:inherit}.uni-textarea-placeholder{color:gray;overflow:hidden}.uni-textarea-line,.uni-textarea-compute{visibility:hidden;height:auto}.uni-textarea-line{width:1em}.uni-textarea-textarea{resize:none;background:none;color:inherit;opacity:1;font:inherit;line-height:inherit;letter-spacing:inherit;text-align:inherit;text-indent:inherit;text-transform:inherit;text-shadow:inherit}.uni-textarea-textarea-fix-margin{width:auto;right:0;margin:0 -3px}.uni-textarea-textarea:disabled{-webkit-text-fill-color:currentcolor}uni-video{width:300px;height:225px;display:inline-block;line-height:0;overflow:hidden;position:relative}uni-video[hidden]{display:none}.uni-video-container{width:100%;height:100%;position:absolute;top:0;left:0;overflow:hidden;background-color:#000}.uni-video-slot{position:absolute;top:0;width:100%;height:100%;overflow:hidden;pointer-events:none}uni-web-view{display:inline-block;position:absolute;left:0;right:0;top:0;bottom:0} - -/** - * 这里是uni-app内置的常用样式变量 - * - * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量 - * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App - * - */ -/** - * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能 - * - * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件 - */ -/* 颜色变量 */ -/* 行为相关颜色 */ -/* 文字基本颜色 */ -/* 背景颜色 */ -/* 边框颜色 */ -/* 尺寸变量 */ -/* 文字尺寸 */ -/* 图片尺寸 */ -/* Border Radius */ -/* 水平间距 */ -/* 垂直间距 */ -/* 透明度 */ -/* 文章场景相关 */ -.uv-line-1 { - - - - - - - - display: -webkit-box !important; - overflow: hidden; - text-overflow: ellipsis; - word-break: break-all; - -webkit-line-clamp: 1; - -webkit-box-orient: vertical !important; -} -.uv-line-2 { - - - - - - - - display: -webkit-box !important; - overflow: hidden; - text-overflow: ellipsis; - word-break: break-all; - -webkit-line-clamp: 2; - -webkit-box-orient: vertical !important; -} -.uv-line-3 { - - - - - - - - display: -webkit-box !important; - overflow: hidden; - text-overflow: ellipsis; - word-break: break-all; - -webkit-line-clamp: 3; - -webkit-box-orient: vertical !important; -} -.uv-line-4 { - - - - - - - - display: -webkit-box !important; - overflow: hidden; - text-overflow: ellipsis; - word-break: break-all; - -webkit-line-clamp: 4; - -webkit-box-orient: vertical !important; -} -.uv-line-5 { - - - - - - - - display: -webkit-box !important; - overflow: hidden; - text-overflow: ellipsis; - word-break: break-all; - -webkit-line-clamp: 5; - -webkit-box-orient: vertical !important; -} -.uv-border { - border-width: 0.5px !important; - border-color: #dadbde !important; - border-style: solid; -} -.uv-border-top { - border-top-width: 0.5px !important; - border-color: #dadbde !important; - border-top-style: solid; -} -.uv-border-left { - border-left-width: 0.5px !important; - border-color: #dadbde !important; - border-left-style: solid; -} -.uv-border-right { - border-right-width: 0.5px !important; - border-color: #dadbde !important; - border-right-style: solid; -} -.uv-border-bottom { - border-bottom-width: 0.5px !important; - border-color: #dadbde !important; - border-bottom-style: solid; -} -.uv-border-top-bottom { - border-top-width: 0.5px !important; - border-bottom-width: 0.5px !important; - border-color: #dadbde !important; - border-top-style: solid; - border-bottom-style: solid; -} -.uv-reset-button { - padding: 0; - background-color: transparent; -} -.uv-reset-button::after { - border: none; -} -.uv-hover-class { - opacity: 0.7; -} -.uv-safe-area-inset-top { - padding-top: 0; - padding-top: constant(safe-area-inset-top); - padding-top: env(safe-area-inset-top); -} -.uv-safe-area-inset-right { - padding-right: 0; - padding-right: constant(safe-area-inset-right); - padding-right: env(safe-area-inset-right); -} -.uv-safe-area-inset-bottom { - padding-bottom: 0; - padding-bottom: constant(safe-area-inset-bottom); - padding-bottom: env(safe-area-inset-bottom); -} -.uv-safe-area-inset-left { - padding-left: 0; - padding-left: constant(safe-area-inset-left); - padding-left: env(safe-area-inset-left); -} -::-webkit-scrollbar { - display: none; - width: 0 !important; - height: 0 !important; - -webkit-appearance: none; - background: transparent; -} \ No newline at end of file diff --git a/unpackage/dist/dev/app-plus/assets/uvicons.04d281cc.ttf b/unpackage/dist/dev/app-plus/assets/uvicons.04d281cc.ttf deleted file mode 100644 index 9aedef8..0000000 Binary files a/unpackage/dist/dev/app-plus/assets/uvicons.04d281cc.ttf and /dev/null differ diff --git a/unpackage/dist/dev/app-plus/manifest.json b/unpackage/dist/dev/app-plus/manifest.json deleted file mode 100644 index 4e8c285..0000000 --- a/unpackage/dist/dev/app-plus/manifest.json +++ /dev/null @@ -1,107 +0,0 @@ -{ - "@platforms": [ - "android", - "iPhone", - "iPad" - ], - "id": "__UNI__8C90D33", - "name": "OfficeSystem", - "version": { - "name": "1.0.0", - "code": "100" - }, - "description": "", - "developer": { - "name": "", - "email": "", - "url": "" - }, - "permissions": { - "UniNView": { - "description": "UniNView原生渲染" - } - }, - "plus": { - "useragent": { - "value": "uni-app", - "concatenate": true - }, - "splashscreen": { - "target": "id:1", - "autoclose": true, - "waiting": true, - "delay": 0 - }, - "popGesture": "close", - "launchwebview": { - "render": "always", - "id": "1", - "kernel": "WKWebview" - }, - "usingComponents": true, - "nvueStyleCompiler": "uni-app", - "compilerVersion": 3, - "distribute": { - "google": { - "permissions": [ - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "" - ] - }, - "apple": {}, - "plugins": { - "audio": { - "mp3": { - "description": "Android平台录音支持MP3格式文件" - } - } - } - }, - "statusbar": { - "immersed": "supportedDevice", - "style": "dark", - "background": "#F8F8F8" - }, - "uniStatistics": { - "enable": false - }, - "allowsInlineMediaPlayback": true, - "uni-app": { - "control": "uni-v3", - "vueVersion": "3", - "compilerVersion": "4.75", - "nvueCompiler": "uni-app", - "renderer": "auto", - "nvue": { - "flex-direction": "column" - }, - "nvueLaunchMode": "normal", - "webView": { - "minUserAgentVersion": "49.0" - } - } - }, - "app-harmony": { - "useragent": { - "value": "uni-app", - "concatenate": true - }, - "uniStatistics": { - "enable": false - } - }, - "launch_path": "__uniappview.html" -} \ No newline at end of file diff --git a/unpackage/dist/dev/app-plus/pages/index/index.css b/unpackage/dist/dev/app-plus/pages/index/index.css deleted file mode 100644 index bd9402a..0000000 --- a/unpackage/dist/dev/app-plus/pages/index/index.css +++ /dev/null @@ -1,1251 +0,0 @@ -/** - * 这里是uni-app内置的常用样式变量 - * - * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量 - * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App - * - */ -/** - * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能 - * - * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件 - */ -/* 颜色变量 */ -/* 行为相关颜色 */ -/* 文字基本颜色 */ -/* 背景颜色 */ -/* 边框颜色 */ -/* 尺寸变量 */ -/* 文字尺寸 */ -/* 图片尺寸 */ -/* Border Radius */ -/* 水平间距 */ -/* 垂直间距 */ -/* 透明度 */ -/* 文章场景相关 */ -uni-view[data-v-747d4365], uni-scroll-view[data-v-747d4365], uni-swiper-item[data-v-747d4365] { - display: flex; - flex-direction: column; - flex-shrink: 0; - flex-grow: 0; - flex-basis: auto; - align-items: stretch; - align-content: flex-start; -} -.uv-badge[data-v-747d4365] { - border-top-right-radius: 100px; - border-top-left-radius: 100px; - border-bottom-left-radius: 100px; - border-bottom-right-radius: 100px; - - display: flex; - - flex-direction: row; - line-height: 11px; - text-align: center; - font-size: 11px; - color: #FFFFFF; -} -.uv-badge--dot[data-v-747d4365] { - height: 8px; - width: 8px; -} -.uv-badge--inverted[data-v-747d4365] { - font-size: 13px; -} -.uv-badge--not-dot[data-v-747d4365] { - padding: 2px 5px; -} -.uv-badge--horn[data-v-747d4365] { - border-bottom-left-radius: 0; -} -.uv-badge--primary[data-v-747d4365] { - background-color: #3c9cff; -} -.uv-badge--primary--inverted[data-v-747d4365] { - color: #3c9cff; -} -.uv-badge--error[data-v-747d4365] { - background-color: #f56c6c; -} -.uv-badge--error--inverted[data-v-747d4365] { - color: #f56c6c; -} -.uv-badge--success[data-v-747d4365] { - background-color: #5ac725; -} -.uv-badge--success--inverted[data-v-747d4365] { - color: #5ac725; -} -.uv-badge--info[data-v-747d4365] { - background-color: #909399; -} -.uv-badge--info--inverted[data-v-747d4365] { - color: #909399; -} -.uv-badge--warning[data-v-747d4365] { - background-color: #f9ae3d; -} -.uv-badge--warning--inverted[data-v-747d4365] { - color: #f9ae3d; -} -/** - * 这里是uni-app内置的常用样式变量 - * - * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量 - * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App - * - */ -/** - * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能 - * - * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件 - */ -/* 颜色变量 */ -/* 行为相关颜色 */ -/* 文字基本颜色 */ -/* 背景颜色 */ -/* 边框颜色 */ -/* 尺寸变量 */ -/* 文字尺寸 */ -/* 图片尺寸 */ -/* Border Radius */ -/* 水平间距 */ -/* 垂直间距 */ -/* 透明度 */ -/* 文章场景相关 */ -uni-view[data-v-0f3b9fa1], uni-scroll-view[data-v-0f3b9fa1], uni-swiper-item[data-v-0f3b9fa1] { - display: flex; - flex-direction: column; - flex-shrink: 0; - flex-grow: 0; - flex-basis: auto; - align-items: stretch; - align-content: flex-start; -} -.uv-tabs__wrapper[data-v-0f3b9fa1] { - - display: flex; - - flex-direction: row; - align-items: center; -} -.uv-tabs__wrapper__scroll-view-wrapper[data-v-0f3b9fa1] { - flex: 1; - overflow: auto hidden; -} -.uv-tabs__wrapper__scroll-view[data-v-0f3b9fa1] { - - display: flex; - - flex-direction: row; - flex: 1; -} -.uv-tabs__wrapper__nav[data-v-0f3b9fa1] { - - display: flex; - - flex-direction: row; - position: relative; -} -.uv-tabs__wrapper__nav__item[data-v-0f3b9fa1] { - padding: 0 11px; - - display: flex; - - flex-direction: row; - align-items: center; - justify-content: center; -} -.uv-tabs__wrapper__nav__item--disabled[data-v-0f3b9fa1] { - cursor: not-allowed; -} -.uv-tabs__wrapper__nav__item__text[data-v-0f3b9fa1] { - font-size: 15px; - color: #606266; -} -.uv-tabs__wrapper__nav__item__text--disabled[data-v-0f3b9fa1] { - color: #c8c9cc !important; -} -.uv-tabs__wrapper__nav__line[data-v-0f3b9fa1] { - height: 3px; - background: #3c9cff; - width: 30px; - position: absolute; - bottom: 2px; - border-radius: 100px; - transition-property: transform; - transition-duration: 300ms; -} -/** - * 这里是uni-app内置的常用样式变量 - * - * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量 - * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App - * - */ -/** - * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能 - * - * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件 - */ -/* 颜色变量 */ -/* 行为相关颜色 */ -/* 文字基本颜色 */ -/* 背景颜色 */ -/* 边框颜色 */ -/* 尺寸变量 */ -/* 文字尺寸 */ -/* 图片尺寸 */ -/* Border Radius */ -/* 水平间距 */ -/* 垂直间距 */ -/* 透明度 */ -/* 文章场景相关 */ -uni-view[data-v-7cc7ad3f], uni-scroll-view[data-v-7cc7ad3f], uni-swiper-item[data-v-7cc7ad3f] { - display: flex; - flex-direction: column; - flex-shrink: 0; - flex-grow: 0; - flex-basis: auto; - align-items: stretch; - align-content: flex-start; -} -@font-face { - font-family: "uvicon-iconfont"; - src: url("../../assets/uvicons.04d281cc.ttf") format("truetype"); -} -.uv-icon[data-v-7cc7ad3f] { - display: flex; - align-items: center; -} -.uv-icon--left[data-v-7cc7ad3f] { - flex-direction: row-reverse; - align-items: center; -} -.uv-icon--right[data-v-7cc7ad3f] { - flex-direction: row; - align-items: center; -} -.uv-icon--top[data-v-7cc7ad3f] { - flex-direction: column-reverse; - justify-content: center; -} -.uv-icon--bottom[data-v-7cc7ad3f] { - flex-direction: column; - justify-content: center; -} -.uv-icon__icon[data-v-7cc7ad3f] { - font-family: uvicon-iconfont; - position: relative; - - display: flex; - - flex-direction: row; - align-items: center; -} -.uv-icon__icon--primary[data-v-7cc7ad3f] { - color: #3c9cff; -} -.uv-icon__icon--success[data-v-7cc7ad3f] { - color: #5ac725; -} -.uv-icon__icon--error[data-v-7cc7ad3f] { - color: #f56c6c; -} -.uv-icon__icon--warning[data-v-7cc7ad3f] { - color: #f9ae3d; -} -.uv-icon__icon--info[data-v-7cc7ad3f] { - color: #909399; -} -.uv-icon__img[data-v-7cc7ad3f] { - height: auto; - will-change: transform; -} -.uv-icon__label[data-v-7cc7ad3f] { - line-height: 1; -} -/** - * 这里是uni-app内置的常用样式变量 - * - * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量 - * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App - * - */ -/** - * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能 - * - * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件 - */ -/* 颜色变量 */ -/* 行为相关颜色 */ -/* 文字基本颜色 */ -/* 背景颜色 */ -/* 边框颜色 */ -/* 尺寸变量 */ -/* 文字尺寸 */ -/* 图片尺寸 */ -/* Border Radius */ -/* 水平间距 */ -/* 垂直间距 */ -/* 透明度 */ -/* 文章场景相关 */ -uni-view[data-v-daf2e960], uni-scroll-view[data-v-daf2e960], uni-swiper-item[data-v-daf2e960] { - display: flex; - flex-direction: column; - flex-shrink: 0; - flex-grow: 0; - flex-basis: auto; - align-items: stretch; - align-content: flex-start; -} -.uv-loading-icon[data-v-daf2e960] { - flex-direction: row; - align-items: center; - justify-content: center; - color: #c8c9cc; -} -.uv-loading-icon__text[data-v-daf2e960] { - margin-left: 4px; - color: #606266; - font-size: 14px; - line-height: 20px; -} -.uv-loading-icon__spinner[data-v-daf2e960] { - width: 30px; - height: 30px; - position: relative; - box-sizing: border-box; - max-width: 100%; - max-height: 100%; - animation: uv-rotate-daf2e960 1s linear infinite; -} -.uv-loading-icon__spinner--semicircle[data-v-daf2e960] { - border-width: 2px; - border-color: transparent; - border-top-right-radius: 100px; - border-top-left-radius: 100px; - border-bottom-left-radius: 100px; - border-bottom-right-radius: 100px; - border-style: solid; -} -.uv-loading-icon__spinner--circle[data-v-daf2e960] { - border-top-right-radius: 100px; - border-top-left-radius: 100px; - border-bottom-left-radius: 100px; - border-bottom-right-radius: 100px; - border-width: 2px; - border-top-color: #e5e5e5; - border-right-color: #e5e5e5; - border-bottom-color: #e5e5e5; - border-left-color: #e5e5e5; - border-style: solid; -} -.uv-loading-icon--vertical[data-v-daf2e960] { - flex-direction: column; -} -[data-v-daf2e960]:host { - font-size: 0px; - line-height: 1; -} -.uv-loading-icon__spinner--spinner[data-v-daf2e960] { - animation-timing-function: steps(12); -} -.uv-loading-icon__text[data-v-daf2e960]:empty { - display: none; -} -.uv-loading-icon--vertical .uv-loading-icon__text[data-v-daf2e960] { - margin: 6px 0 0; - color: #606266; -} -.uv-loading-icon__dot[data-v-daf2e960] { - position: absolute; - top: 0; - left: 0; - width: 100%; - height: 100%; -} -.uv-loading-icon__dot[data-v-daf2e960]:before { - display: block; - width: 2px; - height: 25%; - margin: 0 auto; - background-color: currentColor; - border-radius: 40%; - content: " "; -} -.uv-loading-icon__dot[data-v-daf2e960]:nth-of-type(1) { - transform: rotate(30deg); - opacity: 1; -} -.uv-loading-icon__dot[data-v-daf2e960]:nth-of-type(2) { - transform: rotate(60deg); - opacity: 0.9375; -} -.uv-loading-icon__dot[data-v-daf2e960]:nth-of-type(3) { - transform: rotate(90deg); - opacity: 0.875; -} -.uv-loading-icon__dot[data-v-daf2e960]:nth-of-type(4) { - transform: rotate(120deg); - opacity: 0.8125; -} -.uv-loading-icon__dot[data-v-daf2e960]:nth-of-type(5) { - transform: rotate(150deg); - opacity: 0.75; -} -.uv-loading-icon__dot[data-v-daf2e960]:nth-of-type(6) { - transform: rotate(180deg); - opacity: 0.6875; -} -.uv-loading-icon__dot[data-v-daf2e960]:nth-of-type(7) { - transform: rotate(210deg); - opacity: 0.625; -} -.uv-loading-icon__dot[data-v-daf2e960]:nth-of-type(8) { - transform: rotate(240deg); - opacity: 0.5625; -} -.uv-loading-icon__dot[data-v-daf2e960]:nth-of-type(9) { - transform: rotate(270deg); - opacity: 0.5; -} -.uv-loading-icon__dot[data-v-daf2e960]:nth-of-type(10) { - transform: rotate(300deg); - opacity: 0.4375; -} -.uv-loading-icon__dot[data-v-daf2e960]:nth-of-type(11) { - transform: rotate(330deg); - opacity: 0.375; -} -.uv-loading-icon__dot[data-v-daf2e960]:nth-of-type(12) { - transform: rotate(360deg); - opacity: 0.3125; -} -@keyframes uv-rotate-daf2e960 { -0% { - transform: rotate(0deg); -} -to { - transform: rotate(1turn); -} -} -/** - * 这里是uni-app内置的常用样式变量 - * - * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量 - * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App - * - */ -/** - * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能 - * - * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件 - */ -/* 颜色变量 */ -/* 行为相关颜色 */ -/* 文字基本颜色 */ -/* 背景颜色 */ -/* 边框颜色 */ -/* 尺寸变量 */ -/* 文字尺寸 */ -/* 图片尺寸 */ -/* Border Radius */ -/* 水平间距 */ -/* 垂直间距 */ -/* 透明度 */ -/* 文章场景相关 */ -.uv-reset-button[data-v-1ac9ef43] { - padding: 0; - background-color: transparent; -} -.uv-reset-button[data-v-1ac9ef43]::after { - border: none; -} -uni-view[data-v-1ac9ef43], uni-scroll-view[data-v-1ac9ef43], uni-swiper-item[data-v-1ac9ef43] { - display: flex; - flex-direction: column; - flex-shrink: 0; - flex-grow: 0; - flex-basis: auto; - align-items: stretch; - align-content: flex-start; -} -.uv-button-wrapper[data-v-1ac9ef43] { - position: relative; -} -.uv-button-wrapper--dis[data-v-1ac9ef43] { - position: absolute; - left: 0; - top: 0; - right: 0; - bottom: 0; - z-index: 9; -} -.uv-button[data-v-1ac9ef43] { - width: 100%; -} -.uv-button__text[data-v-1ac9ef43] { - white-space: nowrap; - line-height: 1; -} -.uv-button[data-v-1ac9ef43]:before { - position: absolute; - top: 50%; - left: 50%; - width: 100%; - height: 100%; - border: inherit; - border-radius: inherit; - transform: translate(-50%, -50%); - opacity: 0; - content: " "; - background-color: #000; - border-color: #000; -} -.uv-button--active[data-v-1ac9ef43]:before { - opacity: 0.15; -} -.uv-button__icon + .uv-button__text[data-v-1ac9ef43]:not(:empty), .uv-button__loading-text[data-v-1ac9ef43] { - margin-left: 4px; -} -.uv-button--plain.uv-button--primary[data-v-1ac9ef43] { - color: #3c9cff; -} -.uv-button--plain.uv-button--info[data-v-1ac9ef43] { - color: #909399; -} -.uv-button--plain.uv-button--success[data-v-1ac9ef43] { - color: #5ac725; -} -.uv-button--plain.uv-button--error[data-v-1ac9ef43] { - color: #f56c6c; -} -.uv-button--plain.uv-button--warning[data-v-1ac9ef43] { - color: #f9ae3d; -} -.uv-button[data-v-1ac9ef43] { - height: 40px; - position: relative; - align-items: center; - justify-content: center; - - display: flex; - - flex-direction: row; - box-sizing: border-box; - flex-direction: row; -} -.uv-button__text[data-v-1ac9ef43] { - font-size: 15px; -} -.uv-button__loading-text[data-v-1ac9ef43] { - font-size: 15px; - margin-left: 4px; -} -.uv-button--large[data-v-1ac9ef43] { - width: 100%; - height: 50px; - padding: 0 15px; -} -.uv-button--normal[data-v-1ac9ef43] { - padding: 0 12px; - font-size: 14px; -} -.uv-button--small[data-v-1ac9ef43] { - min-width: 60px; - height: 30px; - padding: 0px 8px; - font-size: 12px; -} -.uv-button--mini[data-v-1ac9ef43] { - height: 22px; - font-size: 10px; - min-width: 50px; - padding: 0px 8px; -} -.uv-button--disabled[data-v-1ac9ef43] { - opacity: 0.5; -} -.uv-button--info[data-v-1ac9ef43] { - color: #323233; - background-color: #fff; - border-color: #ebedf0; - border-width: 1px; - border-style: solid; -} -.uv-button--success[data-v-1ac9ef43] { - color: #fff; - background-color: #5ac725; - border-color: #5ac725; - border-width: 1px; - border-style: solid; -} -.uv-button--primary[data-v-1ac9ef43] { - color: #fff; - background-color: #3c9cff; - border-color: #3c9cff; - border-width: 1px; - border-style: solid; -} -.uv-button--error[data-v-1ac9ef43] { - color: #fff; - background-color: #f56c6c; - border-color: #f56c6c; - border-width: 1px; - border-style: solid; -} -.uv-button--warning[data-v-1ac9ef43] { - color: #fff; - background-color: #f9ae3d; - border-color: #f9ae3d; - border-width: 1px; - border-style: solid; -} -.uv-button--block[data-v-1ac9ef43] { - - display: flex; - - flex-direction: row; - width: 100%; -} -.uv-button--circle[data-v-1ac9ef43] { - border-top-right-radius: 100px; - border-top-left-radius: 100px; - border-bottom-left-radius: 100px; - border-bottom-right-radius: 100px; -} -.uv-button--square[data-v-1ac9ef43] { - border-bottom-left-radius: 3px; - border-bottom-right-radius: 3px; - border-top-left-radius: 3px; - border-top-right-radius: 3px; -} -.uv-button__icon[data-v-1ac9ef43] { - min-width: 1em; - line-height: inherit !important; - vertical-align: top; -} -.uv-button--plain[data-v-1ac9ef43] { - background-color: #fff; -} -.uv-button--hairline[data-v-1ac9ef43] { - border-width: 0.5px !important; -} -/** - * 这里是uni-app内置的常用样式变量 - * - * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量 - * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App - * - */ -/** - * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能 - * - * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件 - */ -/* 颜色变量 */ -/* 行为相关颜色 */ -/* 文字基本颜色 */ -/* 背景颜色 */ -/* 边框颜色 */ -/* 尺寸变量 */ -/* 文字尺寸 */ -/* 图片尺寸 */ -/* Border Radius */ -/* 水平间距 */ -/* 垂直间距 */ -/* 透明度 */ -/* 文章场景相关 */ -.uv-overlay[data-v-b1e8b0c8] { - position: fixed; - top: 0; - left: 0; - width: 100%; - height: 100%; - background-color: rgba(0, 0, 0, 0.7); -} -/** - * 这里是uni-app内置的常用样式变量 - * - * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量 - * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App - * - */ -/** - * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能 - * - * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件 - */ -/* 颜色变量 */ -/* 行为相关颜色 */ -/* 文字基本颜色 */ -/* 背景颜色 */ -/* 边框颜色 */ -/* 尺寸变量 */ -/* 文字尺寸 */ -/* 图片尺寸 */ -/* Border Radius */ -/* 水平间距 */ -/* 垂直间距 */ -/* 透明度 */ -/* 文章场景相关 */ -.uv-status-bar[data-v-4ff5a0d7] { - width: 100%; -} -/** - * 这里是uni-app内置的常用样式变量 - * - * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量 - * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App - * - */ -/** - * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能 - * - * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件 - */ -/* 颜色变量 */ -/* 行为相关颜色 */ -/* 文字基本颜色 */ -/* 背景颜色 */ -/* 边框颜色 */ -/* 尺寸变量 */ -/* 文字尺寸 */ -/* 图片尺寸 */ -/* Border Radius */ -/* 水平间距 */ -/* 垂直间距 */ -/* 透明度 */ -/* 文章场景相关 */ -.uv-safe-bottom[data-v-a55db101] { - width: 100%; -} -.uv-safe-area-inset-top[data-v-a55db101] { - padding-top: 0; - padding-top: constant(safe-area-inset-top); - padding-top: env(safe-area-inset-top); -} -.uv-safe-area-inset-right[data-v-a55db101] { - padding-right: 0; - padding-right: constant(safe-area-inset-right); - padding-right: env(safe-area-inset-right); -} -.uv-safe-area-inset-bottom[data-v-a55db101] { - padding-bottom: 0; - padding-bottom: constant(safe-area-inset-bottom); - padding-bottom: env(safe-area-inset-bottom); -} -.uv-safe-area-inset-left[data-v-a55db101] { - padding-left: 0; - padding-left: constant(safe-area-inset-left); - padding-left: env(safe-area-inset-left); -} -/** - * 这里是uni-app内置的常用样式变量 - * - * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量 - * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App - * - */ -/** - * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能 - * - * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件 - */ -/* 颜色变量 */ -/* 行为相关颜色 */ -/* 文字基本颜色 */ -/* 背景颜色 */ -/* 边框颜色 */ -/* 尺寸变量 */ -/* 文字尺寸 */ -/* 图片尺寸 */ -/* Border Radius */ -/* 水平间距 */ -/* 垂直间距 */ -/* 透明度 */ -/* 文章场景相关 */ -.uv-popup[data-v-c66d5e79] { - position: fixed; - z-index: 99; -} -.uv-popup.top[data-v-c66d5e79], .uv-popup.left[data-v-c66d5e79], .uv-popup.right[data-v-c66d5e79] { - top: 0; -} -.uv-popup .uv-popup__content[data-v-c66d5e79] { - display: block; - overflow: hidden; - position: relative; -} -.uv-popup .uv-popup__content.left[data-v-c66d5e79], .uv-popup .uv-popup__content.right[data-v-c66d5e79] { - padding-top: 0; - flex: 1; -} -.uv-popup .uv-popup__content__close[data-v-c66d5e79] { - position: absolute; -} -.uv-popup .uv-popup__content__close--hover[data-v-c66d5e79] { - opacity: 0.4; -} -.uv-popup .uv-popup__content__close--top-left[data-v-c66d5e79] { - top: 15px; - left: 15px; -} -.uv-popup .uv-popup__content__close--top-right[data-v-c66d5e79] { - top: 15px; - right: 15px; -} -.uv-popup .uv-popup__content__close--bottom-left[data-v-c66d5e79] { - bottom: 15px; - left: 15px; -} -.uv-popup .uv-popup__content__close--bottom-right[data-v-c66d5e79] { - right: 15px; - bottom: 15px; -} -.fixforpc-z-index[data-v-c66d5e79] { - z-index: 999; -} -.fixforpc-top[data-v-c66d5e79] { - top: 0; -} -/** - * 这里是uni-app内置的常用样式变量 - * - * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量 - * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App - * - */ -/** - * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能 - * - * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件 - */ -/* 颜色变量 */ -/* 行为相关颜色 */ -/* 文字基本颜色 */ -/* 背景颜色 */ -/* 边框颜色 */ -/* 尺寸变量 */ -/* 文字尺寸 */ -/* 图片尺寸 */ -/* Border Radius */ -/* 水平间距 */ -/* 垂直间距 */ -/* 透明度 */ -/* 文章场景相关 */ -.uv-border-bottom[data-v-de7aec68] { - border-bottom-width: 0.5px !important; - border-color: #dadbde !important; - border-bottom-style: solid; -} -uni-view[data-v-de7aec68], uni-scroll-view[data-v-de7aec68], uni-swiper-item[data-v-de7aec68] { - display: flex; - flex-direction: column; - flex-shrink: 0; - flex-grow: 0; - flex-basis: auto; - align-items: stretch; - align-content: flex-start; -} -.uv-calendar-header[data-v-de7aec68] { - padding-bottom: 4px; -} -.uv-calendar-header__title[data-v-de7aec68] { - font-size: 16px; - color: #303133; - text-align: center; - height: 42px; - line-height: 42px; - font-weight: bold; -} -.uv-calendar-header__subtitle[data-v-de7aec68] { - font-size: 14px; - color: #303133; - height: 40px; - text-align: center; - line-height: 40px; - font-weight: bold; -} -.uv-calendar-header__weekdays[data-v-de7aec68] { - - display: flex; - - flex-direction: row; - justify-content: space-between; -} -.uv-calendar-header__weekdays__weekday[data-v-de7aec68] { - font-size: 13px; - color: #303133; - line-height: 30px; - flex: 1; - text-align: center; -} -/** - * 这里是uni-app内置的常用样式变量 - * - * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量 - * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App - * - */ -/** - * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能 - * - * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件 - */ -/* 颜色变量 */ -/* 行为相关颜色 */ -/* 文字基本颜色 */ -/* 背景颜色 */ -/* 边框颜色 */ -/* 尺寸变量 */ -/* 文字尺寸 */ -/* 图片尺寸 */ -/* Border Radius */ -/* 水平间距 */ -/* 垂直间距 */ -/* 透明度 */ -/* 文章场景相关 */ -uni-view[data-v-b2cf4ec4], uni-scroll-view[data-v-b2cf4ec4], uni-swiper-item[data-v-b2cf4ec4] { - display: flex; - flex-direction: column; - flex-shrink: 0; - flex-grow: 0; - flex-basis: auto; - align-items: stretch; - align-content: flex-start; -} -.uv-calendar-month-wrapper[data-v-b2cf4ec4] { - margin-top: 4px; -} -.uv-calendar-month__title[data-v-b2cf4ec4] { - font-size: 14px; - line-height: 42px; - height: 42px; - color: #303133; - text-align: center; - font-weight: bold; -} -.uv-calendar-month__days[data-v-b2cf4ec4] { - position: relative; - - display: flex; - - flex-direction: row; - flex-wrap: wrap; -} -.uv-calendar-month__days__month-mark-wrapper[data-v-b2cf4ec4] { - position: absolute; - top: 0; - bottom: 0; - left: 0; - right: 0; - - display: flex; - - flex-direction: row; - justify-content: center; - align-items: center; -} -.uv-calendar-month__days__month-mark-wrapper__text[data-v-b2cf4ec4] { - font-size: 155px; - color: rgba(231, 232, 234, 0.83); -} -.uv-calendar-month__days__day[data-v-b2cf4ec4] { - - display: flex; - - flex-direction: row; - padding: 2px; - width: 14.2857142857%; - box-sizing: border-box; -} -.uv-calendar-month__days__day__select[data-v-b2cf4ec4] { - flex: 1; - - display: flex; - - flex-direction: row; - align-items: center; - justify-content: center; - position: relative; -} -.uv-calendar-month__days__day__select__dot[data-v-b2cf4ec4] { - width: 7px; - height: 7px; - border-radius: 100px; - background-color: #f56c6c; - position: absolute; - top: 12px; - right: 7px; -} -.uv-calendar-month__days__day__select__top-info[data-v-b2cf4ec4] { - color: #606266; - text-align: center; - position: absolute; - top: 2px; - font-size: 10px; - text-align: center; - left: 0; - right: 0; -} -.uv-calendar-month__days__day__select__top-info--selected[data-v-b2cf4ec4] { - color: #ffffff; -} -.uv-calendar-month__days__day__select__top-info--disabled[data-v-b2cf4ec4] { - color: #cacbcd; -} -.uv-calendar-month__days__day__select__buttom-info[data-v-b2cf4ec4] { - color: #606266; - text-align: center; - position: absolute; - bottom: 5px; - font-size: 10px; - text-align: center; - left: 0; - right: 0; -} -.uv-calendar-month__days__day__select__buttom-info--selected[data-v-b2cf4ec4] { - color: #ffffff; -} -.uv-calendar-month__days__day__select__buttom-info--disabled[data-v-b2cf4ec4] { - color: #cacbcd; -} -.uv-calendar-month__days__day__select__info[data-v-b2cf4ec4] { - text-align: center; - font-size: 16px; -} -.uv-calendar-month__days__day__select__info--selected[data-v-b2cf4ec4] { - color: #ffffff; -} -.uv-calendar-month__days__day__select__info--disabled[data-v-b2cf4ec4] { - color: #cacbcd; -} -.uv-calendar-month__days__day__select--selected[data-v-b2cf4ec4] { - background-color: #3c9cff; - - display: flex; - - flex-direction: row; - justify-content: center; - align-items: center; - flex: 1; - border-radius: 3px; -} -.uv-calendar-month__days__day__select--range-selected[data-v-b2cf4ec4] { - opacity: 0.3; - border-radius: 0; -} -.uv-calendar-month__days__day__select--range-start-selected[data-v-b2cf4ec4] { - border-top-right-radius: 0; - border-bottom-right-radius: 0; -} -.uv-calendar-month__days__day__select--range-end-selected[data-v-b2cf4ec4] { - border-top-left-radius: 0; - border-bottom-left-radius: 0; -} -/** - * 这里是uni-app内置的常用样式变量 - * - * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量 - * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App - * - */ -/** - * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能 - * - * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件 - */ -/* 颜色变量 */ -/* 行为相关颜色 */ -/* 文字基本颜色 */ -/* 背景颜色 */ -/* 边框颜色 */ -/* 尺寸变量 */ -/* 文字尺寸 */ -/* 图片尺寸 */ -/* Border Radius */ -/* 水平间距 */ -/* 垂直间距 */ -/* 透明度 */ -/* 文章场景相关 */ -.uv-calendar__confirm[data-v-225ec0b9] { - padding: 7px 18px; -} -/** - * 这里是uni-app内置的常用样式变量 - * - * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量 - * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App - * - */ -/** - * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能 - * - * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件 - */ -/* 颜色变量 */ -/* 行为相关颜色 */ -/* 文字基本颜色 */ -/* 背景颜色 */ -/* 边框颜色 */ -/* 尺寸变量 */ -/* 文字尺寸 */ -/* 图片尺寸 */ -/* Border Radius */ -/* 水平间距 */ -/* 垂直间距 */ -/* 透明度 */ -/* 文章场景相关 */ -uni-view[data-v-095eeec5], uni-scroll-view[data-v-095eeec5], uni-swiper-item[data-v-095eeec5] { - display: flex; - flex-direction: column; - flex-shrink: 0; - flex-grow: 0; - flex-basis: auto; - align-items: stretch; - align-content: flex-start; -} -.uv-tabbar-item[data-v-095eeec5] { - - display: flex; - - flex-direction: column; - align-items: center; - justify-content: center; - flex: 1; -} -.uv-tabbar-item__icon[data-v-095eeec5] { - - display: flex; - - flex-direction: row; - position: relative; - width: 4.6875rem; - justify-content: center; -} -.uv-tabbar-item__text[data-v-095eeec5] { - margin-top: 2px; - font-size: 12px; - color: #606266; -} -/** - * 这里是uni-app内置的常用样式变量 - * - * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量 - * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App - * - */ -/** - * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能 - * - * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件 - */ -/* 颜色变量 */ -/* 行为相关颜色 */ -/* 文字基本颜色 */ -/* 背景颜色 */ -/* 边框颜色 */ -/* 尺寸变量 */ -/* 文字尺寸 */ -/* 图片尺寸 */ -/* Border Radius */ -/* 水平间距 */ -/* 垂直间距 */ -/* 透明度 */ -/* 文章场景相关 */ -.uv-border-top[data-v-20102e86] { - border-top-width: 0.5px !important; - border-color: #dadbde !important; - border-top-style: solid; -} -uni-view[data-v-20102e86], uni-scroll-view[data-v-20102e86], uni-swiper-item[data-v-20102e86] { - display: flex; - flex-direction: column; - flex-shrink: 0; - flex-grow: 0; - flex-basis: auto; - align-items: stretch; - align-content: flex-start; -} -.uv-tabbar[data-v-20102e86] { - - display: flex; - - flex-direction: column; - flex: 1; - justify-content: center; -} -.uv-tabbar__content[data-v-20102e86] { - - display: flex; - - flex-direction: column; - background-color: #fff; -} -.uv-tabbar__content__item-wrapper[data-v-20102e86] { - height: 50px; - - display: flex; - - flex-direction: row; -} -.uv-tabbar--fixed[data-v-20102e86] { - position: fixed; - bottom: 0; - left: 0; - right: 0; -} -/** - * 这里是uni-app内置的常用样式变量 - * - * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量 - * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App - * - */ -/** - * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能 - * - * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件 - */ -/* 颜色变量 */ -/* 行为相关颜色 */ -/* 文字基本颜色 */ -/* 背景颜色 */ -/* 边框颜色 */ -/* 尺寸变量 */ -/* 文字尺寸 */ -/* 图片尺寸 */ -/* Border Radius */ -/* 水平间距 */ -/* 垂直间距 */ -/* 透明度 */ -/* 文章场景相关 */ -.content[data-v-1cf27b2a] { - display: flex; - flex-direction: column; - align-items: center; - justify-content: center; -} -.logo[data-v-1cf27b2a] { - height: 6.25rem; - width: 6.25rem; - margin-top: 6.25rem; - margin-left: auto; - margin-right: auto; - margin-bottom: 1.5625rem; -} -.text-area[data-v-1cf27b2a] { - display: flex; - justify-content: center; -} -.title[data-v-1cf27b2a] { - font-size: 1.125rem; - color: #007aff; -} -.icon[data-v-1cf27b2a] { - width: 1.125rem; - height: 1.125rem; -} \ No newline at end of file diff --git a/unpackage/dist/dev/app-plus/static/logo.png b/unpackage/dist/dev/app-plus/static/logo.png deleted file mode 100644 index b5771e2..0000000 Binary files a/unpackage/dist/dev/app-plus/static/logo.png and /dev/null differ diff --git a/unpackage/dist/dev/app-plus/uni-app-view.umd.js b/unpackage/dist/dev/app-plus/uni-app-view.umd.js deleted file mode 100644 index 7c7cc99..0000000 --- a/unpackage/dist/dev/app-plus/uni-app-view.umd.js +++ /dev/null @@ -1,7 +0,0 @@ -!function(e){"function"==typeof define&&define.amd?define(e):e()}((function(){"use strict";function e(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var t={exports:{}},n={exports:{}},r={exports:{}},i=r.exports={version:"2.6.12"};"number"==typeof __e&&(__e=i);var a=r.exports,o={exports:{}},s=o.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=s);var l=o.exports,u=a,c=l,d="__core-js_shared__",h=c[d]||(c[d]={});(n.exports=function(e,t){return h[e]||(h[e]=void 0!==t?t:{})})("versions",[]).push({version:u.version,mode:"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"});var f=n.exports,p=0,v=Math.random(),g=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++p+v).toString(36))},m=f("wks"),_=g,y=l.Symbol,b="function"==typeof y;(t.exports=function(e){return m[e]||(m[e]=b&&y[e]||(b?y:_)("Symbol."+e))}).store=m;var w,x,S=t.exports,k={},C=function(e){return"object"==typeof e?null!==e:"function"==typeof e},T=C,A=function(e){if(!T(e))throw TypeError(e+" is not an object!");return e},M=function(e){try{return!!e()}catch(t){return!0}},E=!M((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}));function O(){if(x)return w;x=1;var e=C,t=l.document,n=e(t)&&e(t.createElement);return w=function(e){return n?t.createElement(e):{}}}var L=!E&&!M((function(){return 7!=Object.defineProperty(O()("div"),"a",{get:function(){return 7}}).a})),z=C,N=A,I=L,P=function(e,t){if(!z(e))return e;var n,r;if(t&&"function"==typeof(n=e.toString)&&!z(r=n.call(e)))return r;if("function"==typeof(n=e.valueOf)&&!z(r=n.call(e)))return r;if(!t&&"function"==typeof(n=e.toString)&&!z(r=n.call(e)))return r;throw TypeError("Can't convert object to primitive value")},D=Object.defineProperty;k.f=E?Object.defineProperty:function(e,t,n){if(N(e),t=P(t,!0),N(n),I)try{return D(e,t,n)}catch(r){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e};var B=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},R=k,F=B,q=E?function(e,t,n){return R.f(e,t,F(1,n))}:function(e,t,n){return e[t]=n,e},j=S("unscopables"),V=Array.prototype;null==V[j]&&q(V,j,{});var $={},H={}.toString,W=function(e){return H.call(e).slice(8,-1)},U=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e},Y=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==W(e)?e.split(""):Object(e)},X=U,Z=function(e){return Y(X(e))},G={exports:{}},K={}.hasOwnProperty,J=function(e,t){return K.call(e,t)},Q=f("native-function-to-string",Function.toString),ee=l,te=q,ne=J,re=g("src"),ie=Q,ae="toString",oe=(""+ie).split(ae);a.inspectSource=function(e){return ie.call(e)},(G.exports=function(e,t,n,r){var i="function"==typeof n;i&&(ne(n,"name")||te(n,"name",t)),e[t]!==n&&(i&&(ne(n,re)||te(n,re,e[t]?""+e[t]:oe.join(String(t)))),e===ee?e[t]=n:r?e[t]?e[t]=n:te(e,t,n):(delete e[t],te(e,t,n)))})(Function.prototype,ae,(function(){return"function"==typeof this&&this[re]||ie.call(this)}));var se=G.exports,le=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e},ue=le,ce=l,de=a,he=q,fe=se,pe=function(e,t,n){if(ue(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,i){return e.call(t,n,r,i)}}return function(){return e.apply(t,arguments)}},ve="prototype",ge=function(e,t,n){var r,i,a,o,s=e&ge.F,l=e&ge.G,u=e&ge.S,c=e&ge.P,d=e&ge.B,h=l?ce:u?ce[t]||(ce[t]={}):(ce[t]||{})[ve],f=l?de:de[t]||(de[t]={}),p=f[ve]||(f[ve]={});for(r in l&&(n=t),n)a=((i=!s&&h&&void 0!==h[r])?h:n)[r],o=d&&i?pe(a,ce):c&&"function"==typeof a?pe(Function.call,a):a,h&&fe(h,r,a,e&ge.U),f[r]!=a&&he(f,r,o),c&&p[r]!=a&&(p[r]=a)};ce.core=de,ge.F=1,ge.G=2,ge.S=4,ge.P=8,ge.B=16,ge.W=32,ge.U=64,ge.R=128;var me,_e,ye,be=ge,we=Math.ceil,xe=Math.floor,Se=function(e){return isNaN(e=+e)?0:(e>0?xe:we)(e)},ke=Se,Ce=Math.min,Te=Se,Ae=Math.max,Me=Math.min,Ee=Z,Oe=function(e){return e>0?Ce(ke(e),9007199254740991):0},Le=function(e,t){return(e=Te(e))<0?Ae(e+t,0):Me(e,t)},ze=f("keys"),Ne=g,Ie=function(e){return ze[e]||(ze[e]=Ne(e))},Pe=J,De=Z,Be=(me=!1,function(e,t,n){var r,i=Ee(e),a=Oe(i.length),o=Le(n,a);if(me&&t!=t){for(;a>o;)if((r=i[o++])!=r)return!0}else for(;a>o;o++)if((me||o in i)&&i[o]===t)return me||o||0;return!me&&-1}),Re=Ie("IE_PROTO"),Fe="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(","),qe=function(e,t){var n,r=De(e),i=0,a=[];for(n in r)n!=Re&&Pe(r,n)&&a.push(n);for(;t.length>i;)Pe(r,n=t[i++])&&(~Be(a,n)||a.push(n));return a},je=Fe,Ve=Object.keys||function(e){return qe(e,je)},$e=k,He=A,We=Ve,Ue=E?Object.defineProperties:function(e,t){He(e);for(var n,r=We(t),i=r.length,a=0;i>a;)$e.f(e,n=r[a++],t[n]);return e};var Ye=A,Xe=Ue,Ze=Fe,Ge=Ie("IE_PROTO"),Ke=function(){},Je="prototype",Qe=function(){var e,t=O()("iframe"),n=Ze.length;for(t.style.display="none",function(){if(ye)return _e;ye=1;var e=l.document;return _e=e&&e.documentElement}().appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("