diff --git a/packages/uni-app-harmony/dist/style.css b/packages/uni-app-harmony/dist/style.css index 217d62f9837..2c4b30d3b0b 100644 --- a/packages/uni-app-harmony/dist/style.css +++ b/packages/uni-app-harmony/dist/style.css @@ -1 +1,124 @@ -*{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+PHJlY3Qgd2lkdGg9IjciIGhlaWdodD0iMjAiIHg9IjQ2LjUiIHk9IjQwIiBmaWxsPSIjOUI5OTlBIiByeD0iNSIgcnk9IjUiIHRyYW5zZm9ybT0icm90YXRlKDYwIDc1Ljk4IDY1KSIvPjxyZWN0IHdpZHRoPSI3IiBoZWlnaHQ9IjIwIiB4PSI0Ni41IiB5PSI0MCIgZmlsbD0iI0EzQTFBMiIgcng9IjUiIHJ5PSI1IiB0cmFuc2Zvcm09InJvdGF0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dGg9IjciIGhlaWdodD0iMjAiIHg9IjQ2LjUiIHk9IjQwIiBmaWxsPSIjRTJFMkUyIiByeD0iNSIgcnk9IjUiIHRyYW5zZm9ybT0icm90YXRlKC0zMCAtNS45OCA2NSkiLz48L3N2Zz4=) 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)}}@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-view{display:block}uni-view[hidden]{display:none} +* { + 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: white; + height:100%; +} + +#app{ + height: 100%; +} + +input[type='search']::-webkit-search-cancel-button { + display: none; +} + +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gxNTAgNTQuMDIgNjUpIi8+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, 0deg); + } + + 100% { + transform: rotate3d(0, 0, 1, 360deg); + } +} + +@media (prefers-color-scheme: dark) { + html { + --UI-BG-COLOR-ACTIVE: #373737; + --UI-BORDER-COLOR-1: #373737; + /* UI */ + --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%, 0.8); + --UI-FG-HALF: hsla(0, 0%, 100%, 0.6); + --UI-FG-1: hsla(0, 0%, 100%, 0.5); + --UI-FG-2: hsla(0, 0%, 100%, 0.3); + --UI-FG-3: hsla(0, 0%, 100%, 0.05); + } + + body { + background-color: var(--UI-BG-0); + color: var(--UI-FG-0); + } +} +@keyframes once-show { + from { + 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-view { + display: block; +} +uni-view[hidden] { + display: none; +} diff --git a/packages/uni-app-harmony/dist/uni-app-view.umd.js b/packages/uni-app-harmony/dist/uni-app-view.umd.js index f1b09da94d3..b92aa0b3880 100644 --- a/packages/uni-app-harmony/dist/uni-app-view.umd.js +++ b/packages/uni-app-harmony/dist/uni-app-view.umd.js @@ -1,6 +1,13646 @@ -!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,h="__core-js_shared__",d=c[h]||(c[h]={});(n.exports=function(e,t){return d[e]||(d[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(),_=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++p+v).toString(36))},g=f("wks"),m=_,w=l.Symbol,b="function"==typeof w;(t.exports=function(e){return g[e]||(g[e]=b&&w[e]||(b?w:m)("Symbol."+e))}).store=g;var y,x,k=t.exports,S={},E=function(e){return"object"==typeof e?null!==e:"function"==typeof e},O=E,C=function(e){if(!O(e))throw TypeError(e+" is not an object!");return e},T=function(e){try{return!!e()}catch(t){return!0}},A=!T((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}));function L(){if(x)return y;x=1;var e=E,t=l.document,n=e(t)&&e(t.createElement);return y=function(e){return n?t.createElement(e):{}}}var $=!A&&!T((function(){return 7!=Object.defineProperty(L()("div"),"a",{get:function(){return 7}}).a})),I=E,R=C,z=$,M=function(e,t){if(!I(e))return e;var n,r;if(t&&"function"==typeof(n=e.toString)&&!I(r=n.call(e)))return r;if("function"==typeof(n=e.valueOf)&&!I(r=n.call(e)))return r;if(!t&&"function"==typeof(n=e.toString)&&!I(r=n.call(e)))return r;throw TypeError("Can't convert object to primitive value")},B=Object.defineProperty;S.f=A?Object.defineProperty:function(e,t,n){if(R(e),t=M(t,!0),R(n),z)try{return B(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 j=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},P=S,N=j,U=A?function(e,t,n){return P.f(e,t,N(1,n))}:function(e,t,n){return e[t]=n,e},F=k("unscopables"),D=Array.prototype;null==D[F]&&U(D,F,{});var V={},W={}.toString,H=function(e){return W.call(e).slice(8,-1)},Z=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e},q=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==H(e)?e.split(""):Object(e)},Y=Z,J=function(e){return q(Y(e))},K={exports:{}},X={}.hasOwnProperty,G=function(e,t){return X.call(e,t)},Q=f("native-function-to-string",Function.toString),ee=l,te=U,ne=G,re=_("src"),ie=Q,ae="toString",oe=(""+ie).split(ae);a.inspectSource=function(e){return ie.call(e)},(K.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=K.exports,le=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e},ue=le,ce=l,he=a,de=U,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",_e=function(e,t,n){var r,i,a,o,s=e&_e.F,l=e&_e.G,u=e&_e.S,c=e&_e.P,h=e&_e.B,d=l?ce:u?ce[t]||(ce[t]={}):(ce[t]||{})[ve],f=l?he:he[t]||(he[t]={}),p=f[ve]||(f[ve]={});for(r in l&&(n=t),n)a=((i=!s&&d&&void 0!==d[r])?d:n)[r],o=h&&i?pe(a,ce):c&&"function"==typeof a?pe(Function.call,a):a,d&&fe(d,r,a,e&_e.U),f[r]!=a&&de(f,r,o),c&&p[r]!=a&&(p[r]=a)};ce.core=he,_e.F=1,_e.G=2,_e.S=4,_e.P=8,_e.B=16,_e.W=32,_e.U=64,_e.R=128;var ge,me,we,be=_e,ye=Math.ceil,xe=Math.floor,ke=function(e){return isNaN(e=+e)?0:(e>0?xe:ye)(e)},Se=ke,Ee=Math.min,Oe=ke,Ce=Math.max,Te=Math.min,Ae=J,Le=function(e){return e>0?Ee(Se(e),9007199254740991):0},$e=function(e,t){return(e=Oe(e))<0?Ce(e+t,0):Te(e,t)},Ie=f("keys"),Re=_,ze=function(e){return Ie[e]||(Ie[e]=Re(e))},Me=G,Be=J,je=(ge=!1,function(e,t,n){var r,i=Ae(e),a=Le(i.length),o=$e(n,a);if(ge&&t!=t){for(;a>o;)if((r=i[o++])!=r)return!0}else for(;a>o;o++)if((ge||o in i)&&i[o]===t)return ge||o||0;return!ge&&-1}),Pe=ze("IE_PROTO"),Ne="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(","),Ue=function(e,t){var n,r=Be(e),i=0,a=[];for(n in r)n!=Pe&&Me(r,n)&&a.push(n);for(;t.length>i;)Me(r,n=t[i++])&&(~je(a,n)||a.push(n));return a},Fe=Ne,De=Object.keys||function(e){return Ue(e,Fe)},Ve=S,We=C,He=De,Ze=A?Object.defineProperties:function(e,t){We(e);for(var n,r=He(t),i=r.length,a=0;i>a;)Ve.f(e,n=r[a++],t[n]);return e};var qe=C,Ye=Ze,Je=Ne,Ke=ze("IE_PROTO"),Xe=function(){},Ge="prototype",Qe=function(){var e,t=L()("iframe"),n=Je.length;for(t.style.display="none",function(){if(we)return me;we=1;var e=l.document;return me=e&&e.documentElement}().appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("