提交 95ed3300 编写于 作者: fxy060608's avatar fxy060608

chore(app): minify

上级 d5896d19
* {
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;
}
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, 0deg);
}
100% {
transform: rotate3d(0, 0, 1, 360deg);
}
}
[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 {
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-text[selectable] {
cursor: auto;
-webkit-user-select: text;
user-select: text;
}
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: #000000;
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, 0.2);
transform: scale(0.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: #000000;
background-color: #f8f8f8;
}
uni-button[type='primary'] {
color: #ffffff;
background-color: #007aff;
}
uni-button[type='warn'] {
color: #ffffff;
background-color: #e64340;
}
uni-button[disabled] {
color: rgba(255, 255, 255, 0.6);
cursor: not-allowed;
}
uni-button[disabled][type='default'],
uni-button[disabled]:not([type]) {
color: rgba(0, 0, 0, 0.3);
background-color: #f7f7f7;
}
uni-button[disabled][type='primary'] {
background-color: rgba(0, 122, 255, 0.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, 0.2);
border-color: rgba(0, 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, 0.2);
border-color: rgba(0, 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, 0.2);
border-color: rgba(0, 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, 0.2);
border-color: rgba(0, 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, 0.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, 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, 0.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, 0.6);
background-color: #dedede;
}
.button-hover[plain] {
color: rgba(53, 53, 53, 0.6);
border-color: rgba(53, 53, 53, 0.6);
background-color: transparent;
}
.button-hover[type='primary'] {
color: rgba(255, 255, 255, 0.6);
background-color: #0062cc;
}
.button-hover[type='primary'][plain] {
color: rgba(26, 173, 25, 0.6);
border-color: rgba(26, 173, 25, 0.6);
background-color: transparent;
}
.button-hover[type='default'] {
color: rgba(0, 0, 0, 0.6);
background-color: #dedede;
}
.button-hover[type='default'][plain] {
color: rgba(53, 53, 53, 0.6);
border-color: rgba(53, 53, 53, 0.6);
background-color: transparent;
}
.button-hover[type='warn'] {
color: rgba(255, 255, 255, 0.6);
background-color: #ce3c39;
}
.button-hover[type='warn'][plain] {
color: rgba(230, 67, 64, 0.6);
border-color: rgba(230, 67, 64, 0.6);
background-color: transparent;
}
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: #ffffff;
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(0.73);
}
uni-checkbox:not([disabled]) .uni-checkbox-input:hover {
border-color: #007aff;
}
.uni-checkbox-input.uni-checkbox-input-disabled {
background-color: #e1e1e1;
}
.uni-checkbox-input.uni-checkbox-input-disabled:before {
color: #adadad;
}
uni-checkbox-group {
display: block;
}
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%;
}
.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: 0.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: translatex(-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: '\2022';
}
.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: '\2611';
}
.ql-editor ul[data-checked=false] > li::before {
content: '\2610';
}
.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 {
padding-right: 2em;
}
.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 {
padding-right: 4em;
}
.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 {
padding-right: 6em;
}
.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 {
padding-right: 8em;
}
.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 {
padding-right: 10em;
}
.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 {
padding-right: 12em;
}
.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 {
padding-right: 14em;
}
.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 {
padding-right: 16em;
}
.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 {
padding-right: 18em;
}
.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, 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%;
}
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 {
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 {
/* 用于重置iOS14以下禁用状态文字颜色 */
-webkit-text-fill-color: currentcolor;
}
.uni-label-pointer {
cursor: pointer;
}
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: black;
}
.uni-map-slot {
position: absolute;
top: 0;
width: 100%;
height: 100%;
overflow: hidden;
pointer-events: none;
}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: 0px;
left: 0px;
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, 0.1);
opacity: 0.7;
}
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: linear-gradient(
180deg,
hsla(0, 0%, 100%, 0.95),
hsla(0, 0%, 100%, 0.6)
),
linear-gradient(0deg, hsla(0, 0%, 100%, 0.95), hsla(0, 0%, 100%, 0.6));
background-position: top, bottom;
background-size: 100% 102px;
background-repeat: no-repeat;
}
.uni-picker-view-indicator {
height: 34px;
/* top: 102px; */
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: 34px;
overflow: hidden;
}
.uni-picker-view-indicator:after,
.uni-picker-view-indicator:before {
content: ' ';
position: absolute;
left: 0;
right: 0;
height: 1px;
color: #e5e5e5;
}
.uni-picker-view-indicator:before {
top: 0;
border-top: 1px solid #e5e5e5;
transform-origin: 0 0;
transform: scaleY(0.5);
}
.uni-picker-view-indicator:after {
bottom: 0;
border-bottom: 1px solid #e5e5e5;
transform-origin: 0 100%;
transform: scaleY(0.5);
}
.uni-picker-view-indicator:after,
.uni-picker-view-indicator:before {
content: ' ';
position: absolute;
left: 0;
right: 0;
height: 1px;
color: #e5e5e5;
}
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: #ffffff;
border-radius: 50%;
width: 22px;
height: 22px;
position: relative;
}
uni-radio:not([disabled]) .uni-radio-input:hover {
border-color: #007aff;
}
.uni-radio-input svg {
color: #ffffff;
font-size: 18px;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -48%) scale(0.73);
}
.uni-radio-input.uni-radio-input-disabled {
background-color: #e1e1e1;
border-color: #d1d1d1;
}
.uni-radio-input.uni-radio-input-disabled:before {
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%;
/* display: flex; 时在安卓下会导致scrollWidth和offsetWidth一样 */
height: 100%;
max-height: inherit;
}
.uni-scroll-view-content {
width: 100%;
height: 100%;
}
.uni-scroll-view-refresher {
position: relative;
overflow: hidden;
}
.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, 0.117647),
0 1px 4px rgba(0, 0, 0, 0.117647);
}
.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(0deg);
}
100% {
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;
}
100% {
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 0.3s ease;
-webkit-tap-highlight-color: transparent;
}
uni-slider .uni-slider-track {
height: 100%;
border-radius: 6px;
background-color: #007aff;
transition: background-color 0.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 0.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, 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%, 0);
}
.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: translate(0, -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, 0.3);
border-radius: 50%;
}
.uni-swiper-dot-active {
background-color: #000000;
}
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-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 0.1s, border 0.1s;
}
uni-switch[disabled] .uni-switch-input {
opacity: 0.7;
}
.uni-switch-input:before {
content: ' ';
position: absolute;
top: 0;
left: 0;
width: 50px;
height: 30px;
border-radius: 15px;
background-color: #fdfdfd;
transition: transform 0.3s;
}
.uni-switch-input:after {
content: ' ';
position: absolute;
top: 0;
left: 0;
width: 30px;
height: 30px;
border-radius: 15px;
background-color: #ffffff;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
transition: transform 0.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: translateX(20px);
}
uni-switch .uni-checkbox-input {
margin-right: 5px;
-webkit-appearance: none;
appearance: none;
outline: 0;
border: 1px solid #d1d1d1;
background-color: #ffffff;
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 {
color: inherit;
font-size: 22px;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -48%) scale(0.73);
}
.uni-checkbox-input.uni-checkbox-input-disabled {
background-color: #e1e1e1;
}
.uni-checkbox-input.uni-checkbox-input-disabled:before {
color: #adadad;
}
uni-textarea {
width: 300px;
height: 150px;
display: block;
position: relative;
font-size: 16px;
line-height: normal;
white-space: pre-wrap;
word-break: break-all;
box-sizing: content-box !important;
}
uni-textarea[hidden] {
display: none;
}
.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;
}
.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: grey;
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;
}
/* 用于解决 iOS textarea 内部默认边距 */
.uni-textarea-textarea-fix-margin {
width: auto;
right: 0;
margin: 0 -3px;
}
.uni-textarea-textarea:disabled {
/* 用于重置iOS14以下禁用状态文字颜色 */
-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: black;
}
.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;
}
*{margin:0;-webkit-tap-highlight-color:transparent;-webkit-tap-highlight-color:transparent}body,html{-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}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,0deg)}100%{transform:rotate3d(0,0,1,360deg)}}[nvue] uni-label,[nvue] uni-scroll-view,[nvue] uni-swiper-item,[nvue] uni-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-label,[nvue-dir-row] uni-swiper-item,[nvue-dir-row] uni-view{flex-direction:row}[nvue-dir-column] uni-label,[nvue-dir-column] uni-swiper-item,[nvue-dir-column] uni-view{flex-direction:column}[nvue-dir-row-reverse] uni-label,[nvue-dir-row-reverse] uni-swiper-item,[nvue-dir-row-reverse] uni-view{flex-direction:row-reverse}[nvue-dir-column-reverse] uni-label,[nvue-dir-column-reverse] uni-swiper-item,[nvue-dir-column-reverse] uni-view{flex-direction:column-reverse}[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,[nvue] uni-view{position:relative;border:0 solid #000;box-sizing:border-box}[nvue] uni-swiper-item{position:absolute}@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-text[selectable]{cursor:auto;-webkit-user-select:text;user-select:text}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]:not([type]),uni-button[disabled][type=default]{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(26,173,25,.6);border-color:rgba(26,173,25,.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}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)}uni-checkbox:not([disabled]) .uni-checkbox-input:hover{border-color:#007aff}.uni-checkbox-input.uni-checkbox-input-disabled{background-color:#e1e1e1}.uni-checkbox-input.uni-checkbox-input-disabled:before{color:#adadad}uni-checkbox-group{display:block}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%}.ql-container{display:block;position:relative;box-sizing:border-box;-webkit-user-select:text;user-select:text;outline:0;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:translatex(-50%);width:0;height:0;border-width:6px;border-style:solid;border-color:transparent transparent #000 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:0;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 blockquote,.ql-editor h1,.ql-editor h2,.ql-editor h3,.ql-editor h4,.ql-editor h5,.ql-editor h6,.ql-editor ol,.ql-editor p,.ql-editor pre,.ql-editor ul{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:'\2022'}.ql-editor ul[data-checked=false],.ql-editor ul[data-checked=true]{pointer-events:none}.ql-editor ul[data-checked=false]>li *,.ql-editor ul[data-checked=true]>li *{pointer-events:all}.ql-editor ul[data-checked=false]>li::before,.ql-editor ul[data-checked=true]>li::before{color:#777;cursor:pointer;pointer-events:all}.ql-editor ul[data-checked=true]>li::before{content:'\2611'}.ql-editor ul[data-checked=false]>li::before{content:'\2610'}.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{padding-right:2em}.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{padding-right:4em}.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{padding-right:6em}.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{padding-right:8em}.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{padding-right:10em}.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{padding-right:12em}.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{padding-right:14em}.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{padding-right:16em}.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{padding-right:18em}.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%}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-form,.uni-input-input,.uni-input-placeholder,.uni-input-wrapper{outline:0;border:none;padding:0;margin:0;text-decoration:inherit}.uni-input-form,.uni-input-wrapper{display:flex;position:relative;width:100%;height:100%;flex-direction:column;justify-content:center}.uni-input-input,.uni-input-placeholder{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:0 0;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{display:none}.uni-input-input::-webkit-inner-spin-button,.uni-input-input::-webkit-outer-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-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:#000}.uni-map-slot{position:absolute;top:0;width:100%;height:100%;overflow:hidden;pointer-events:none}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}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:linear-gradient(180deg,hsla(0,0%,100%,.95),hsla(0,0%,100%,.6)),linear-gradient(0deg,hsla(0,0%,100%,.95),hsla(0,0%,100%,.6));background-position:top,bottom;background-size:100% 102px;background-repeat:no-repeat}.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:34px;overflow:hidden}.uni-picker-view-indicator:after,.uni-picker-view-indicator:before{content:' ';position:absolute;left:0;right:0;height:1px;color:#e5e5e5}.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}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}uni-radio:not([disabled]) .uni-radio-input:hover{border-color:#007aff}.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:before{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-content{width:100%;height:100%}.uni-scroll-view-refresher{position:relative;overflow:hidden}.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,.117647),0 1px 4px rgba(0,0,0,.117647)}.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)}100%{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}100%{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:0 0;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%,0)}.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:translate(0,-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-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-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[disabled] .uni-switch-input{opacity:.7}.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:translateX(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{color:inherit;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}uni-textarea{width:300px;height:150px;display:block;position:relative;font-size:16px;line-height:normal;white-space:pre-wrap;word-break:break-all;box-sizing:content-box!important}uni-textarea[hidden]{display:none}.uni-textarea-compute,.uni-textarea-line,.uni-textarea-placeholder,.uni-textarea-textarea,.uni-textarea-wrapper{outline:0;border:none;padding:0;margin:0;text-decoration:inherit}.uni-textarea-wrapper{display:block;position:relative;width:100%;height:100%;min-height:inherit}.uni-textarea-compute,.uni-textarea-line,.uni-textarea-placeholder,.uni-textarea-textarea{position:absolute;width:100%;height:100%;left:0;top:0;white-space:inherit;word-break:inherit}.uni-textarea-placeholder{color:grey;overflow:hidden}.uni-textarea-compute,.uni-textarea-line{visibility:hidden;height:auto}.uni-textarea-line{width:1em}.uni-textarea-textarea{resize:none;background:0 0;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}
\ No newline at end of file
因为 它太大了无法显示 source diff 。你可以改为 查看blob
......@@ -55,7 +55,7 @@ export default defineConfig({
root: __dirname,
define: {
global: 'window',
__DEV__: true,
__DEV__: false,
__TEST__: false,
__PLATFORM__: JSON.stringify('app'),
__NODE_JS__: false,
......@@ -119,7 +119,7 @@ export default defineConfig({
vueJsx({ optimize: true, isCustomElement }),
],
build: {
minify: false,
minify: true,
lib: {
name: 'uni-app-view',
fileName: 'uni-app-view',
......
......@@ -10,7 +10,7 @@ import { uniTemplatePlugin } from './plugins/template'
import { uniMainJsPlugin } from './plugins/mainJs'
import { uniManifestJsonPlugin } from './plugins/manifestJson'
import { uniPagesJsonPlugin } from './plugins/pagesJson'
import { uniResolveIdPlugin } from './plugins/resolveId'
// import { uniResolveIdPlugin } from './plugins/resolveId'
import { uniRenderjsPlugin } from './plugins/renderjs'
function initUniCssScopedPluginOptions() {
......@@ -29,7 +29,7 @@ function initUniCssScopedPluginOptions() {
}
const plugins = [
uniResolveIdPlugin(),
// uniResolveIdPlugin(),
uniMainJsPlugin(),
uniManifestJsonPlugin(),
uniPagesJsonPlugin(),
......
......@@ -20,9 +20,9 @@ export const UniAppPlugin: UniVitePlugin = {
}
},
configResolved,
resolveId(id) {
if (id === 'vue') {
return resolveBuiltIn('@dcloudio/uni-app-vue')
}
},
// resolveId(id) {
// if (id === 'vue') {
// return resolveBuiltIn('@dcloudio/uni-app-vue')
// }
// },
}
[
{
"input": {
"src/service/index.ts": ["dist/service.runtime.esm.js"]
"src/service/index.ts": ["dist/service.runtime.esm.dev.js"]
},
"output": {
"banner": "export default function vueFactory (exports) {\n",
......@@ -9,7 +9,24 @@
},
"replacements": {
"__VUE_OPTIONS_API__": "true",
"__VUE_PROD_DEVTOOLS__": "false"
"__VUE_PROD_DEVTOOLS__": "false",
"process.env.NODE_ENV": "\"development\""
},
"external": false,
"babel": true
},
{
"input": {
"src/service/index.ts": ["dist/service.runtime.esm.prod.js"]
},
"output": {
"banner": "export default function vueFactory (exports) {\n",
"footer": "}"
},
"replacements": {
"__VUE_OPTIONS_API__": "true",
"__VUE_PROD_DEVTOOLS__": "false",
"process.env.NODE_ENV": "\"production\""
},
"external": false,
"babel": true
......
......@@ -6,8 +6,8 @@ export default function vueFactory(exports) {
* \/\*#\_\_PURE\_\_\*\/
* So that rollup can tree-shake them if necessary.
*/
process.env.NODE_ENV !== 'production' ? Object.freeze({}) : {};
process.env.NODE_ENV !== 'production' ? Object.freeze([]) : [];
Object.freeze({});
Object.freeze([]);
var extend$1 = Object.assign;
var cacheStringFunction$1 = fn => {
......@@ -150,10 +150,9 @@ export default function vueFactory(exports) {
var listeners = this.listeners[evt.type];
if (!listeners) {
if (process.env.NODE_ENV !== 'production') {
{
console.error(formatLog('dispatchEvent', this.nodeId), evt.type, 'not found');
}
return false;
} // 格式化事件类型
......@@ -561,7 +560,7 @@ export default function vueFactory(exports) {
class UniCommentNode extends UniNode {
constructor(text, container) {
super(NODE_TYPE_COMMENT, '#comment', container);
this._text = process.env.NODE_ENV !== 'production' ? text : '';
this._text = text;
}
toJSON(opts = {}) {
......@@ -747,8 +746,8 @@ export default function vueFactory(exports) {
return val;
};
var EMPTY_OBJ = process.env.NODE_ENV !== 'production' ? Object.freeze({}) : {};
var EMPTY_ARR = process.env.NODE_ENV !== 'production' ? Object.freeze([]) : [];
var EMPTY_OBJ = Object.freeze({});
var EMPTY_ARR = Object.freeze([]);
var NOOP = () => {};
/**
......@@ -875,8 +874,8 @@ export default function vueFactory(exports) {
var targetMap = new WeakMap();
var effectStack = [];
var activeEffect;
var ITERATE_KEY = Symbol(process.env.NODE_ENV !== 'production' ? 'iterate' : '');
var MAP_KEY_ITERATE_KEY = Symbol(process.env.NODE_ENV !== 'production' ? 'Map key iterate' : '');
var ITERATE_KEY = Symbol('iterate');
var MAP_KEY_ITERATE_KEY = Symbol('Map key iterate');
function isEffect(fn) {
return fn && fn._isEffect === true;
......@@ -995,7 +994,7 @@ export default function vueFactory(exports) {
dep.add(activeEffect);
activeEffect.deps.push(dep);
if (process.env.NODE_ENV !== 'production' && activeEffect.options.onTrack) {
if (activeEffect.options.onTrack) {
activeEffect.options.onTrack({
effect: activeEffect,
target,
......@@ -1087,7 +1086,7 @@ export default function vueFactory(exports) {
}
var run = effect => {
if (process.env.NODE_ENV !== 'production' && effect.options.onTrigger) {
if (effect.options.onTrigger) {
effect.options.onTrigger({
effect,
target,
......@@ -1290,18 +1289,16 @@ export default function vueFactory(exports) {
get: readonlyGet,
set(target, key) {
if (process.env.NODE_ENV !== 'production') {
{
console.warn("Set operation on key \"".concat(String(key), "\" failed: target is readonly."), target);
}
return true;
},
deleteProperty(target, key) {
if (process.env.NODE_ENV !== 'production') {
{
console.warn("Delete operation on key \"".concat(String(key), "\" failed: target is readonly."), target);
}
return true;
}
......@@ -1416,7 +1413,7 @@ export default function vueFactory(exports) {
if (!hadKey) {
key = toRaw(key);
hadKey = has.call(target, key);
} else if (process.env.NODE_ENV !== 'production') {
} else {
checkIdentityKeys(target, has, key);
}
......@@ -1447,7 +1444,7 @@ export default function vueFactory(exports) {
if (!hadKey) {
key = toRaw(key);
hadKey = has.call(target, key);
} else if (process.env.NODE_ENV !== 'production') {
} else {
checkIdentityKeys(target, has, key);
}
......@@ -1467,7 +1464,7 @@ export default function vueFactory(exports) {
function clear() {
var target = toRaw(this);
var hadItems = target.size !== 0;
var oldTarget = process.env.NODE_ENV !== 'production' ? isMap(target) ? new Map(target) : new Set(target) : undefined; // forward the operation before queueing reactions
var oldTarget = isMap(target) ? new Map(target) : new Set(target); // forward the operation before queueing reactions
var result = target.clear();
......@@ -1543,11 +1540,10 @@ export default function vueFactory(exports) {
function createReadonlyMethod(type) {
return function (...args) {
if (process.env.NODE_ENV !== 'production') {
{
var key = args[0] ? "on key \"".concat(args[0], "\" ") : "";
console.warn("".concat(capitalize(type), " operation ").concat(key, "failed: target is readonly."), toRaw(this));
}
return type === "delete"
/* DELETE */
? false : this;
......@@ -1775,10 +1771,9 @@ export default function vueFactory(exports) {
function createReactiveObject(target, isReadonly, baseHandlers, collectionHandlers, proxyMap) {
if (!isObject(target)) {
if (process.env.NODE_ENV !== 'production') {
{
console.warn("value cannot be made reactive: ".concat(String(target)));
}
return target;
} // target is already a Proxy, return it.
// exception: calling readonly() on a reactive object
......@@ -1902,7 +1897,7 @@ export default function vueFactory(exports) {
function triggerRef(ref) {
trigger(toRaw(ref), "set"
/* SET */
, 'value', process.env.NODE_ENV !== 'production' ? ref.value : void 0);
, 'value', ref.value);
}
function unref(ref) {
......@@ -1957,7 +1952,7 @@ export default function vueFactory(exports) {
}
function toRefs(object) {
if (process.env.NODE_ENV !== 'production' && !isProxy(object)) {
if (!isProxy(object)) {
console.warn("toRefs() expects a reactive object but received a plain one.");
}
......@@ -2039,9 +2034,10 @@ export default function vueFactory(exports) {
if (isFunction(getterOrOptions)) {
getter = getterOrOptions;
setter = process.env.NODE_ENV !== 'production' ? () => {
setter = () => {
console.warn('Write operation failed: computed value is readonly');
} : NOOP;
};
} else {
getter = getterOrOptions.get;
setter = getterOrOptions.set;
......@@ -2308,7 +2304,7 @@ export default function vueFactory(exports) {
var exposedInstance = instance.proxy; // in production the hook receives only the error code
var errorInfo = process.env.NODE_ENV !== 'production' ? ErrorTypeStrings[type] : type;
var errorInfo = ErrorTypeStrings[type];
while (cur) {
var errorCapturedHooks = cur.ec;
......@@ -2339,7 +2335,7 @@ export default function vueFactory(exports) {
}
function logError(err, type, contextVNode, throwInDev = true) {
if (process.env.NODE_ENV !== 'production') {
{
var info = ErrorTypeStrings[type];
if (contextVNode) {
......@@ -2359,9 +2355,6 @@ export default function vueFactory(exports) {
} else {
console.error(err);
}
} else {
// recover in prod to reduce the impact on end-user
console.error(err);
}
}
......@@ -2475,13 +2468,12 @@ export default function vueFactory(exports) {
currentPreFlushParentJob = parentJob;
activePreFlushCbs = [...new Set(pendingPreFlushCbs)];
pendingPreFlushCbs.length = 0;
if (process.env.NODE_ENV !== 'production') {
{
seen = seen || new Map();
}
for (preFlushIndex = 0; preFlushIndex < activePreFlushCbs.length; preFlushIndex++) {
if (process.env.NODE_ENV !== 'production' && checkRecursiveUpdates(seen, activePreFlushCbs[preFlushIndex])) {
if (checkRecursiveUpdates(seen, activePreFlushCbs[preFlushIndex])) {
continue;
}
......@@ -2507,15 +2499,13 @@ export default function vueFactory(exports) {
}
activePostFlushCbs = deduped;
if (process.env.NODE_ENV !== 'production') {
{
seen = seen || new Map();
}
activePostFlushCbs.sort((a, b) => getId(a) - getId(b));
for (postFlushIndex = 0; postFlushIndex < activePostFlushCbs.length; postFlushIndex++) {
if (process.env.NODE_ENV !== 'production' && checkRecursiveUpdates(seen, activePostFlushCbs[postFlushIndex])) {
if (checkRecursiveUpdates(seen, activePostFlushCbs[postFlushIndex])) {
continue;
}
......@@ -2532,11 +2522,9 @@ export default function vueFactory(exports) {
function flushJobs(seen) {
isFlushPending = false;
isFlushing = true;
if (process.env.NODE_ENV !== 'production') {
{
seen = seen || new Map();
}
flushPreFlushCbs(seen); // Sort queue before flush.
// This ensures that:
// 1. Components are updated from parent to child. (because parent is always
......@@ -2552,7 +2540,7 @@ export default function vueFactory(exports) {
var job = queue[flushIndex];
if (job && job.active !== false) {
if (process.env.NODE_ENV !== 'production' && checkRecursiveUpdates(seen, job)) {
if ("development" !== 'production' && checkRecursiveUpdates(seen, job)) {
continue;
}
......@@ -2601,7 +2589,7 @@ export default function vueFactory(exports) {
// Note: for a component to be eligible for HMR it also needs the __hmrId option
// to be set so that its instances can be registered / removed.
if (process.env.NODE_ENV !== 'production') {
{
var globalObject = typeof window !== 'undefined' ? window : typeof self !== 'undefined' ? self : typeof window !== 'undefined' ? window : {};
globalObject.__VUE_HMR_RUNTIME__ = {
createRecord: tryWrap(createRecord),
......@@ -2609,7 +2597,6 @@ export default function vueFactory(exports) {
reload: tryWrap(reload)
};
}
var map = new Map();
function registerHMR(instance) {
......@@ -2820,8 +2807,7 @@ export default function vueFactory(exports) {
function emit(instance, event, ...rawArgs) {
var props = instance.vnode.props || EMPTY_OBJ;
if (process.env.NODE_ENV !== 'production') {
{
var {
emitsOptions,
propsOptions: [propsOptions]
......@@ -2845,7 +2831,6 @@ export default function vueFactory(exports) {
}
}
}
var args = rawArgs;
var isModelListener = event.startsWith('update:'); // for v-model update:xxx events, apply modifiers on args
......@@ -2865,18 +2850,16 @@ export default function vueFactory(exports) {
}
}
if (process.env.NODE_ENV !== 'production' || false) {
{
devtoolsComponentEmit(instance, event, args);
}
if (process.env.NODE_ENV !== 'production') {
{
var lowerCaseEvent = event.toLowerCase();
if (lowerCaseEvent !== event && props[toHandlerKey(lowerCaseEvent)]) {
warn("Event \"".concat(lowerCaseEvent, "\" is emitted in component ") + "".concat(formatComponentName(instance, instance.type), " but the handler is registered for \"").concat(event, "\". ") + "Note that HTML attributes are case-insensitive and you cannot use " + "v-on to listen to camelCase events when using in-DOM templates. " + "You should probably use \"".concat(hyphenate(event), "\" instead of \"").concat(event, "\"."));
}
}
var handlerName;
var handler = props[handlerName = toHandlerKey(event)] || // also try camelCase event handler (#2249)
props[handlerName = toHandlerKey(camelize(event))]; // for v-model update:xxx events, also trigger kebab-case equivalent
......@@ -3053,10 +3036,9 @@ export default function vueFactory(exports) {
setBlockTracking(1);
}
if (process.env.NODE_ENV !== 'production' || false) {
{
devtoolsComponentUpdated(ctx);
}
return res;
}; // mark normalized to avoid duplicated wrapping
......@@ -3103,8 +3085,7 @@ export default function vueFactory(exports) {
} = instance;
var result;
var prev = setCurrentRenderingInstance(instance);
if (process.env.NODE_ENV !== 'production') {
{
accessedAttrs = false;
}
......@@ -3123,11 +3104,11 @@ export default function vueFactory(exports) {
// functional
var _render = Component; // in dev, mark attrs accessed if optional props (attrs === props)
if (process.env.NODE_ENV !== 'production' && attrs === props) {
if ("development" !== 'production' && attrs === props) {
markAttrsAccessed();
}
result = normalizeVNode(_render.length > 1 ? _render(props, process.env.NODE_ENV !== 'production' ? {
result = normalizeVNode(_render.length > 1 ? _render(props, "development" !== 'production' ? {
get attrs() {
markAttrsAccessed();
return attrs;
......@@ -3151,7 +3132,7 @@ export default function vueFactory(exports) {
var root = result;
var setRoot = undefined;
if (process.env.NODE_ENV !== 'production' && result.patchFlag > 0 && result.patchFlag & 2048
if ("development" !== 'production' && result.patchFlag > 0 && result.patchFlag & 2048
/* DEV_ROOT_FRAGMENT */
) {
;
......@@ -3179,7 +3160,7 @@ export default function vueFactory(exports) {
}
root = cloneVNode(root, fallthroughAttrs);
} else if (process.env.NODE_ENV !== 'production' && !accessedAttrs && root.type !== Comment$1) {
} else if ("development" !== 'production' && !accessedAttrs && root.type !== Comment$1) {
var allAttrs = Object.keys(attrs);
var eventAttrs = [];
var extraAttrs = [];
......@@ -3221,7 +3202,7 @@ export default function vueFactory(exports) {
)) ; // inherit directives
if (vnode.dirs) {
if (process.env.NODE_ENV !== 'production' && !isElementRoot(root)) {
if ("development" !== 'production' && !isElementRoot(root)) {
warn("Runtime directive used on component with non-element root node. " + "The directives will not function as intended.");
}
......@@ -3230,14 +3211,14 @@ export default function vueFactory(exports) {
if (vnode.transition) {
if (process.env.NODE_ENV !== 'production' && !isElementRoot(root)) {
if ("development" !== 'production' && !isElementRoot(root)) {
warn("Component inside <Transition> renders non-element root node " + "that cannot be animated.");
}
root.transition = vnode.transition;
}
if (process.env.NODE_ENV !== 'production' && setRoot) {
if ("development" !== 'production' && setRoot) {
setRoot(root);
} else {
result = root;
......@@ -3360,7 +3341,7 @@ export default function vueFactory(exports) {
// caused the child component's slots content to have changed, we need to
// force the child to update as well.
if (process.env.NODE_ENV !== 'production' && (prevChildren || nextChildren) && isHmrUpdating) {
if ((prevChildren || nextChildren) && isHmrUpdating) {
return true;
} // force child update for runtime directive or transition on component vnode.
......@@ -3642,7 +3623,7 @@ export default function vueFactory(exports) {
function createSuspenseBoundary(vnode, parent, parentComponent, container, hiddenContainer, anchor, isSVG, slotScopeIds, optimized, rendererInternals, isHydrating = false) {
/* istanbul ignore if */
if (process.env.NODE_ENV !== 'production' && !false && !hasWarned) {
if (!hasWarned) {
hasWarned = true; // @ts-ignore `console.info` cannot be null error
console[console.info ? 'info' : 'log']("<Suspense> is an experimental feature and its API will likely change.");
......@@ -3678,7 +3659,7 @@ export default function vueFactory(exports) {
effects: [],
resolve(resume = false) {
if (process.env.NODE_ENV !== 'production') {
{
if (!resume && !suspense.pendingBranch) {
throw new Error("suspense.resolve() is called without a pending branch.");
}
......@@ -3687,7 +3668,6 @@ export default function vueFactory(exports) {
throw new Error("suspense.resolve() is called on an already unmounted suspense boundary.");
}
}
var {
vnode,
activeBranch,
......@@ -3840,11 +3820,9 @@ export default function vueFactory(exports) {
var {
vnode
} = instance;
if (process.env.NODE_ENV !== 'production') {
{
pushWarningContext(vnode);
}
handleSetupResult(instance, asyncSetupResult, false);
if (hydratedEl) {
......@@ -3866,12 +3844,10 @@ export default function vueFactory(exports) {
}
updateHOCHostEl(instance, vnode.el);
if (process.env.NODE_ENV !== 'production') {
{
popWarningContext();
} // only decrease deps count if suspense is not already resolved
if (isInPendingSuspense && --suspense.deps === 0) {
suspense.resolve();
}
......@@ -3953,7 +3929,7 @@ export default function vueFactory(exports) {
if (isArray(s)) {
var singleChild = filterSingleRoot(s);
if (process.env.NODE_ENV !== 'production' && !singleChild) {
if (!singleChild) {
warn("<Suspense> slots expect a single root node.");
}
......@@ -3998,7 +3974,7 @@ export default function vueFactory(exports) {
function provide(key, value) {
if (!currentInstance) {
if (process.env.NODE_ENV !== 'production') {
{
warn("provide() can only be used inside setup().");
}
} else {
......@@ -4035,10 +4011,10 @@ export default function vueFactory(exports) {
return provides[key];
} else if (arguments.length > 1) {
return treatDefaultAsFactory && isFunction(defaultValue) ? defaultValue.call(instance.proxy) : defaultValue;
} else if (process.env.NODE_ENV !== 'production') {
} else {
warn("injection \"".concat(String(key), "\" not found."));
}
} else if (process.env.NODE_ENV !== 'production') {
} else {
warn("inject() can only be used inside setup() or functional components.");
}
} // Simple effect.
......@@ -4052,7 +4028,7 @@ export default function vueFactory(exports) {
var INITIAL_WATCHER_VALUE = {}; // implementation
function watch(source, cb, options) {
if (process.env.NODE_ENV !== 'production' && !isFunction(cb)) {
if (!isFunction(cb)) {
warn("`watch(fn, options?)` signature has been moved to a separate API. " + "Use `watchEffect(fn, options?)` instead. `watch` now only " + "supports `watch(source, cb, options?) signature.");
}
......@@ -4066,7 +4042,7 @@ export default function vueFactory(exports) {
onTrack,
onTrigger
} = EMPTY_OBJ, instance = currentInstance) {
if (process.env.NODE_ENV !== 'production' && !cb) {
if (!cb) {
if (immediate !== undefined) {
warn("watch() \"immediate\" option is only respected when using the " + "watch(source, callback, options?) signature.");
}
......@@ -4106,7 +4082,7 @@ export default function vueFactory(exports) {
/* WATCH_GETTER */
);
} else {
process.env.NODE_ENV !== 'production' && warnInvalidSource(s);
warnInvalidSource(s);
}
});
} else if (isFunction(source)) {
......@@ -4133,7 +4109,7 @@ export default function vueFactory(exports) {
}
} else {
getter = NOOP;
process.env.NODE_ENV !== 'production' && warnInvalidSource(source);
warnInvalidSource(source);
}
if (cb && deep) {
......@@ -4343,7 +4319,7 @@ export default function vueFactory(exports) {
} // warn multiple elements
if (process.env.NODE_ENV !== 'production' && children.length > 1) {
if (children.length > 1) {
warn('<transition> can only be used on a single element or component. Use ' + '<transition-group> for lists.');
} // there's no need to track reactivity for these props so use the raw
// props for a bit better perf
......@@ -4354,7 +4330,7 @@ export default function vueFactory(exports) {
mode
} = rawProps; // check mode
if (process.env.NODE_ENV !== 'production' && mode && !['in-out', 'out-in', 'default'].includes(mode)) {
if (mode && !['in-out', 'out-in', 'default'].includes(mode)) {
warn("invalid <transition> mode: ".concat(mode));
} // at this point children has a guaranteed length of 1.
......@@ -4731,7 +4707,7 @@ export default function vueFactory(exports) {
return pendingRequest;
}
if (process.env.NODE_ENV !== 'production' && !comp) {
if (!comp) {
warn("Async component loader resolved to undefined. " + "If you are using retry(), make sure to return its return value.");
} // interop module default
......@@ -4740,7 +4716,7 @@ export default function vueFactory(exports) {
comp = comp.default;
}
if (process.env.NODE_ENV !== 'production' && comp && !isObject(comp) && !isFunction(comp)) {
if (comp && !isObject(comp) && !isFunction(comp)) {
throw new Error("Invalid async component load result: ".concat(comp));
}
......@@ -4879,11 +4855,9 @@ export default function vueFactory(exports) {
var cache = new Map();
var keys = new Set();
var current = null;
if (process.env.NODE_ENV !== 'production' || false) {
{
instance.__v_cache = cache;
}
var parentSuspense = instance.suspense;
var {
renderer: {
......@@ -4917,8 +4891,7 @@ export default function vueFactory(exports) {
invokeVNodeHook(vnodeHook, instance.parent, vnode);
}
}, parentSuspense);
if (process.env.NODE_ENV !== 'production' || false) {
{
// Update components tree
devtoolsComponentAdded(instance);
}
......@@ -4942,8 +4915,7 @@ export default function vueFactory(exports) {
instance.isDeactivated = true;
}, parentSuspense);
if (process.env.NODE_ENV !== 'production' || false) {
{
// Update components tree
devtoolsComponentAdded(instance);
}
......@@ -5033,10 +5005,9 @@ export default function vueFactory(exports) {
var rawVNode = children[0];
if (children.length > 1) {
if (process.env.NODE_ENV !== 'production') {
{
warn("KeepAlive should contain exactly one component child.");
}
current = null;
return children;
} else if (!isVNode(rawVNode) || !(rawVNode.shapeFlag & 4
......@@ -5270,7 +5241,7 @@ export default function vueFactory(exports) {
}
return wrappedHook;
} else if (process.env.NODE_ENV !== 'production') {
} else {
var apiName = toHandlerKey(ErrorTypeStrings[type].replace(/ hook$/, ''));
warn("".concat(apiName, " is called when there is no active component instance to be ") + "associated with. " + "Lifecycle injection APIs can only be used during execution of setup()." + (" If you are using async setup(), make sure to register lifecycle " + "hooks before the first await statement."));
}
......@@ -5375,9 +5346,8 @@ export default function vueFactory(exports) {
directives,
filters
} = options;
var checkDuplicateProperties = process.env.NODE_ENV !== 'production' ? createDuplicateChecker() : null;
if (process.env.NODE_ENV !== 'production') {
var checkDuplicateProperties = createDuplicateChecker();
{
var [propsOptions] = instance.propsOptions;
if (propsOptions) {
......@@ -5395,7 +5365,6 @@ export default function vueFactory(exports) {
// - computed
// - watch (deferred since it relies on `this` access)
if (injectOptions) {
resolveInjections(injectOptions, ctx, checkDuplicateProperties);
}
......@@ -5407,23 +5376,20 @@ export default function vueFactory(exports) {
if (isFunction(methodHandler)) {
// In dev mode, we use the `createRenderContext` function to define methods to the proxy target,
// and those are read-only but reconfigurable, so it needs to be redefined here
if (process.env.NODE_ENV !== 'production') {
{
Object.defineProperty(ctx, _key2, {
value: methodHandler.bind(publicThis),
configurable: true,
enumerable: true,
writable: true
});
} else {
ctx[_key2] = methodHandler.bind(publicThis);
}
if (process.env.NODE_ENV !== 'production') {
{
checkDuplicateProperties("Methods"
/* METHODS */
, _key2);
}
} else if (process.env.NODE_ENV !== 'production') {
} else {
warn("Method \"".concat(_key2, "\" has type \"").concat(typeof methodHandler, "\" in the component definition. ") + "Did you reference the function correctly?");
}
}
......@@ -5431,22 +5397,21 @@ export default function vueFactory(exports) {
if (dataOptions) {
(function () {
if (process.env.NODE_ENV !== 'production' && !isFunction(dataOptions)) {
if (!isFunction(dataOptions)) {
warn("The data option must be a function. " + "Plain object usage is no longer supported.");
}
var data = dataOptions.call(publicThis, publicThis);
if (process.env.NODE_ENV !== 'production' && isPromise(data)) {
if (isPromise(data)) {
warn("data() returned a Promise - note data() cannot be async; If you " + "intend to perform data fetching before component renders, use " + "async setup() + <Suspense>.");
}
if (!isObject(data)) {
process.env.NODE_ENV !== 'production' && warn("data() should return an object.");
warn("data() should return an object.");
} else {
instance.data = reactive(data);
if (process.env.NODE_ENV !== 'production') {
{
var _loop = function (_key3) {
checkDuplicateProperties("Data"
/* DATA */
......@@ -5478,13 +5443,13 @@ export default function vueFactory(exports) {
var opt = computedOptions[_key4];
var get = isFunction(opt) ? opt.bind(publicThis, publicThis) : isFunction(opt.get) ? opt.get.bind(publicThis, publicThis) : NOOP;
if (process.env.NODE_ENV !== 'production' && get === NOOP) {
if (get === NOOP) {
warn("Computed property \"".concat(_key4, "\" has no getter."));
}
var set = !isFunction(opt) && isFunction(opt.set) ? opt.set.bind(publicThis) : process.env.NODE_ENV !== 'production' ? () => {
var set = !isFunction(opt) && isFunction(opt.set) ? opt.set.bind(publicThis) : () => {
warn("Write operation failed: computed property \"".concat(_key4, "\" is readonly."));
} : NOOP;
};
var c = computed$1({
get,
set
......@@ -5495,8 +5460,7 @@ export default function vueFactory(exports) {
get: () => c.value,
set: v => c.value = v
});
if (process.env.NODE_ENV !== 'production') {
{
checkDuplicateProperties("Computed"
/* COMPUTED */
, _key4);
......@@ -5603,7 +5567,7 @@ export default function vueFactory(exports) {
ctx[key] = inject(opt);
}
if (process.env.NODE_ENV !== 'production') {
{
checkDuplicateProperties("Inject"
/* INJECT */
, key);
......@@ -5623,7 +5587,7 @@ export default function vueFactory(exports) {
if (isFunction(handler)) {
watch(getter, handler);
} else if (process.env.NODE_ENV !== 'production') {
} else {
warn("Invalid watch handler specified by key \"".concat(raw, "\""), handler);
}
} else if (isFunction(raw)) {
......@@ -5636,11 +5600,11 @@ export default function vueFactory(exports) {
if (isFunction(_handler)) {
watch(getter, _handler, raw);
} else if (process.env.NODE_ENV !== 'production') {
} else {
warn("Invalid watch handler specified by key \"".concat(raw.handler, "\""), _handler);
}
}
} else if (process.env.NODE_ENV !== 'production') {
} else {
warn("Invalid watch option: \"".concat(key, "\""), raw);
}
}
......@@ -5703,7 +5667,7 @@ export default function vueFactory(exports) {
for (var key in from) {
if (asMixin && key === 'expose') {
process.env.NODE_ENV !== 'production' && warn("\"expose\" option is ignored when declared in mixins or extends. " + "It should only be declared in the base component itself.");
warn("\"expose\" option is ignored when declared in mixins or extends. " + "It should only be declared in the base component itself.");
} else {
var strat = internalOptionMergeStrats[key] || strats && strats[key];
to[key] = strat ? strat(to[key], from[key]) : from[key];
......@@ -5810,7 +5774,7 @@ export default function vueFactory(exports) {
} // validation
if (process.env.NODE_ENV !== 'production') {
{
validateProps(rawProps || {}, props, instance);
}
......@@ -5845,7 +5809,7 @@ export default function vueFactory(exports) {
if ( // always force full diff in dev
// - #1942 if hmr is enabled with sfc component
// - vite#872 non-sfc component used by sfc component
!(process.env.NODE_ENV !== 'production' && (instance.type.__hmrId || instance.parent && instance.parent.type.__hmrId)) && (optimized || patchFlag > 0) && !(patchFlag & 16
!(instance.type.__hmrId || instance.parent && instance.parent.type.__hmrId) && (optimized || patchFlag > 0) && !(patchFlag & 16
/* FULL_PROPS */
)) {
if (patchFlag & 8
......@@ -5926,7 +5890,7 @@ export default function vueFactory(exports) {
, '$attrs');
}
if (process.env.NODE_ENV !== 'production') {
{
validateProps(rawProps || {}, props, instance);
}
}
......@@ -6061,7 +6025,7 @@ export default function vueFactory(exports) {
if (isArray(raw)) {
for (var i = 0; i < raw.length; i++) {
if (process.env.NODE_ENV !== 'production' && !isString(raw[i])) {
if (!isString(raw[i])) {
warn("props must be strings when using array syntax.", raw[i]);
}
......@@ -6072,7 +6036,7 @@ export default function vueFactory(exports) {
}
}
} else if (raw) {
if (process.env.NODE_ENV !== 'production' && !isObject(raw)) {
if (!isObject(raw)) {
warn("invalid props options", raw);
}
......@@ -6111,7 +6075,7 @@ export default function vueFactory(exports) {
function validatePropName(key) {
if (key[0] !== '$') {
return true;
} else if (process.env.NODE_ENV !== 'production') {
} else {
warn("Invalid prop name: \"".concat(key, "\" is a reserved property."));
}
......@@ -6293,7 +6257,7 @@ export default function vueFactory(exports) {
var normalizeSlot = (key, rawSlot, ctx) => {
var normalized = withCtx(props => {
if (process.env.NODE_ENV !== 'production' && currentInstance) {
if (currentInstance) {
warn("Slot \"".concat(key, "\" invoked outside of the render function: ") + "this will not track dependencies used in the slot. " + "Invoke the slot function inside the render function instead.");
}
......@@ -6314,10 +6278,9 @@ export default function vueFactory(exports) {
slots[key] = normalizeSlot(key, value, ctx);
} else if (value != null) {
(function () {
if (process.env.NODE_ENV !== 'production' && !false) {
{
warn("Non-function value encountered for slot \"".concat(key, "\". ") + "Prefer function slots for better performance.");
}
var normalized = normalizeSlotValue(value);
slots[key] = () => normalized;
......@@ -6327,7 +6290,7 @@ export default function vueFactory(exports) {
};
var normalizeVNodeSlots = (instance, children) => {
if (process.env.NODE_ENV !== 'production' && !isKeepAlive(instance.vnode) && !false) {
if (!isKeepAlive(instance.vnode) && !false) {
warn("Non-function value encountered for default slot. " + "Prefer function slots for better performance.");
}
......@@ -6377,7 +6340,7 @@ export default function vueFactory(exports) {
if (type) {
// compiled slots.
if (process.env.NODE_ENV !== 'production' && isHmrUpdating) {
if (isHmrUpdating) {
// Parent was HMR updated so slot content may have changed.
// force update slots and mark instance for hmr as well
extend(slots, children);
......@@ -6454,7 +6417,7 @@ export default function vueFactory(exports) {
var internalInstance = currentRenderingInstance;
if (internalInstance === null) {
process.env.NODE_ENV !== 'production' && warn("withDirectives can only be used inside render functions.");
warn("withDirectives can only be used inside render functions.");
return vnode;
}
......@@ -6536,7 +6499,7 @@ export default function vueFactory(exports) {
function createAppAPI(render, hydrate) {
return function createApp(rootComponent, rootProps = null) {
if (rootProps != null && !isObject(rootProps)) {
process.env.NODE_ENV !== 'production' && warn("root props passed to app.mount() must be an object.");
warn("root props passed to app.mount() must be an object.");
rootProps = null;
}
......@@ -6557,21 +6520,21 @@ export default function vueFactory(exports) {
},
set config(v) {
if (process.env.NODE_ENV !== 'production') {
{
warn("app.config cannot be replaced. Modify individual options instead.");
}
},
use(plugin, ...options) {
if (installedPlugins.has(plugin)) {
process.env.NODE_ENV !== 'production' && warn("Plugin has already been applied to target app.");
warn("Plugin has already been applied to target app.");
} else if (plugin && isFunction(plugin.install)) {
installedPlugins.add(plugin);
plugin.install(app, ...options);
} else if (isFunction(plugin)) {
installedPlugins.add(plugin);
plugin(app, ...options);
} else if (process.env.NODE_ENV !== 'production') {
} else {
warn("A plugin must either be a function or an object with an \"install\" " + "function.");
}
......@@ -6582,7 +6545,7 @@ export default function vueFactory(exports) {
{
if (!context.mixins.includes(mixin)) {
context.mixins.push(mixin);
} else if (process.env.NODE_ENV !== 'production') {
} else {
warn('Mixin has already been applied to target app' + (mixin.name ? ": ".concat(mixin.name) : ''));
}
}
......@@ -6590,7 +6553,7 @@ export default function vueFactory(exports) {
},
component(name, component) {
if (process.env.NODE_ENV !== 'production') {
{
validateComponentName(name, context.config);
}
......@@ -6598,7 +6561,7 @@ export default function vueFactory(exports) {
return context.components[name];
}
if (process.env.NODE_ENV !== 'production' && context.components[name]) {
if (context.components[name]) {
warn("Component \"".concat(name, "\" has already been registered in target app."));
}
......@@ -6607,7 +6570,7 @@ export default function vueFactory(exports) {
},
directive(name, directive) {
if (process.env.NODE_ENV !== 'production') {
{
validateDirectiveName(name);
}
......@@ -6615,7 +6578,7 @@ export default function vueFactory(exports) {
return context.directives[name];
}
if (process.env.NODE_ENV !== 'production' && context.directives[name]) {
if (context.directives[name]) {
warn("Directive \"".concat(name, "\" has already been registered in target app."));
}
......@@ -6630,7 +6593,7 @@ export default function vueFactory(exports) {
vnode.appContext = context; // HMR root reload
if (process.env.NODE_ENV !== 'production') {
{
context.reload = () => {
render(cloneVNode(vnode), rootContainer, isSVG);
};
......@@ -6645,14 +6608,12 @@ export default function vueFactory(exports) {
isMounted = true;
app._container = rootContainer;
rootContainer.__vue_app__ = app;
if (process.env.NODE_ENV !== 'production' || false) {
{
app._instance = vnode.component;
devtoolsInitApp(app, version);
}
return vnode.component.proxy;
} else if (process.env.NODE_ENV !== 'production') {
} else {
warn("App has already been mounted.\n" + "If you want to remount the same app, move your app creation logic " + "into a factory function and create fresh app instances for each " + "mount - e.g. `const createMyApp = () => createApp(App)`");
}
},
......@@ -6660,20 +6621,18 @@ export default function vueFactory(exports) {
unmount() {
if (isMounted) {
render(null, app._container);
if (process.env.NODE_ENV !== 'production' || false) {
{
app._instance = null;
devtoolsUnmountApp(app);
}
delete app._container.__vue_app__;
} else if (process.env.NODE_ENV !== 'production') {
} else {
warn("Cannot unmount an app that is not mounted.");
}
},
provide(key, value) {
if (process.env.NODE_ENV !== 'production' && key in context.provides) {
if (key in context.provides) {
warn("App already provides property with key \"".concat(String(key), "\". ") + "It will be overwritten with the new value.");
} // TypeScript doesn't allow symbols as index type
// https://github.com/Microsoft/TypeScript/issues/24587
......@@ -6717,7 +6676,7 @@ export default function vueFactory(exports) {
var hydrate = (vnode, container) => {
if (!container.hasChildNodes()) {
process.env.NODE_ENV !== 'production' && warn("Attempting to hydrate existing markup but container is empty. " + "Performing full mount instead.");
warn("Attempting to hydrate existing markup but container is empty. " + "Performing full mount instead.");
patch(null, vnode, container);
flushPostFlushCbs();
return;
......@@ -6756,7 +6715,7 @@ export default function vueFactory(exports) {
} else {
if (node.data !== vnode.children) {
hasMismatch = true;
process.env.NODE_ENV !== 'production' && warn("Hydration text mismatch:" + "\n- Client: ".concat(JSON.stringify(node.data)) + "\n- Server: ".concat(JSON.stringify(vnode.children)));
warn("Hydration text mismatch:" + "\n- Client: ".concat(JSON.stringify(node.data)) + "\n- Server: ".concat(JSON.stringify(vnode.children)));
node.data = vnode.children;
}
......@@ -6867,7 +6826,7 @@ export default function vueFactory(exports) {
/* SUSPENSE */
) {
nextNode = vnode.type.hydrate(node, vnode, parentComponent, parentSuspense, isSVGContainer(parentNode(node)), slotScopeIds, optimized, rendererInternals, hydrateNode);
} else if (process.env.NODE_ENV !== 'production') {
} else {
warn('Invalid HostVNode type:', type, "(".concat(typeof type, ")"));
}
......@@ -6948,7 +6907,7 @@ export default function vueFactory(exports) {
while (next) {
hasMismatch = true;
if (process.env.NODE_ENV !== 'production' && !_hasWarned) {
if (!_hasWarned) {
warn("Hydration children mismatch in <".concat(vnode.type, ">: ") + "server rendered element contains more child nodes than client vdom.");
_hasWarned = true;
} // The SSRed DOM contains more nodes than it should. Remove them.
......@@ -6963,7 +6922,7 @@ export default function vueFactory(exports) {
) {
if (el.textContent !== vnode.children) {
hasMismatch = true;
process.env.NODE_ENV !== 'production' && warn("Hydration text content mismatch in <".concat(vnode.type, ">:\n") + "- Client: ".concat(el.textContent, "\n") + "- Server: ".concat(vnode.children));
warn("Hydration text content mismatch in <".concat(vnode.type, ">:\n") + "- Client: ".concat(el.textContent, "\n") + "- Server: ".concat(vnode.children));
el.textContent = vnode.children;
}
}
......@@ -6988,7 +6947,7 @@ export default function vueFactory(exports) {
} else {
hasMismatch = true;
if (process.env.NODE_ENV !== 'production' && !hasWarned) {
if (!hasWarned) {
warn("Hydration children mismatch in <".concat(container.tagName.toLowerCase(), ">: ") + "server rendered element contains fewer child nodes than client vdom.");
hasWarned = true;
} // the SSRed DOM didn't contain enough nodes. Mount the missing ones.
......@@ -7028,7 +6987,7 @@ export default function vueFactory(exports) {
var handleMismatch = (node, vnode, parentComponent, parentSuspense, slotScopeIds, isFragment) => {
hasMismatch = true;
process.env.NODE_ENV !== 'production' && warn("Hydration node mismatch:\n- Client vnode:", vnode.type, "\n- Server rendered DOM:", node, node.nodeType === 3
warn("Hydration node mismatch:\n- Client vnode:", vnode.type, "\n- Server rendered DOM:", node, node.nodeType === 3
/* TEXT */
? "(text)" : isComment(node) && node.data === '[' ? "(start of fragment)" : "");
vnode.el = null;
......@@ -7088,7 +7047,7 @@ export default function vueFactory(exports) {
perf.mark("vue-".concat(type, "-").concat(instance.uid));
}
if (process.env.NODE_ENV !== 'production' || false) {
{
devtoolsPerfStart(instance, type, supported ? perf.now() : Date.now());
}
}
......@@ -7103,7 +7062,7 @@ export default function vueFactory(exports) {
perf.clearMarks(endTag);
}
if (process.env.NODE_ENV !== 'production' || false) {
{
devtoolsPerfEnd(instance, type, supported ? perf.now() : Date.now());
}
}
......@@ -7126,28 +7085,6 @@ export default function vueFactory(exports) {
return supported;
}
/**
* This is only called in esm-bundler builds.
* It is called when a renderer is created, in `baseCreateRenderer` so that
* importing runtime-core is side-effects free.
*
* istanbul-ignore-next
*/
function initFeatureFlags() {
var needWarn = false;
if (process.env.NODE_ENV !== 'production' && needWarn) {
console.warn("You are running the esm-bundler build of Vue. It is recommended to " + "configure your bundler to explicitly replace feature flag globals " + "with boolean literals to get proper tree-shaking in the final bundle. " + "See http://link.vuejs.org/feature-flags for more details.");
}
}
var prodEffectOptions = {
scheduler: queueJob,
// #1801, #2043 component render effects should allow recursive updates
allowRecurse: true
};
function createDevEffectOptions(instance) {
return {
......@@ -7181,7 +7118,7 @@ export default function vueFactory(exports) {
r: ref
} = rawRef;
if (process.env.NODE_ENV !== 'production' && !owner) {
if (!owner) {
warn("Missing ref owner context. ref cannot be used on hoisted vnodes. " + "A vnode with ref must be created inside the render function.");
return;
}
......@@ -7237,7 +7174,7 @@ export default function vueFactory(exports) {
callWithErrorHandling(ref, owner, 12
/* FUNCTION_REF */
, [value, refs]);
} else if (process.env.NODE_ENV !== 'production') {
} else {
warn('Invalid template ref type:', value, "(".concat(typeof value, ")"));
}
};
......@@ -7271,17 +7208,11 @@ export default function vueFactory(exports) {
function baseCreateRenderer(options, createHydrationFns) {
// compile-time feature flags check
{
initFeatureFlags();
}
if (process.env.NODE_ENV !== 'production' || false) {
var target = getGlobalThis();
target.__VUE__ = true;
setDevtoolsHook(target.__VUE_DEVTOOLS_GLOBAL_HOOK__);
}
var {
insert: hostInsert,
remove: hostRemove,
......@@ -7333,7 +7264,7 @@ export default function vueFactory(exports) {
case Static:
if (n1 == null) {
mountStaticNode(n2, container, anchor, isSVG);
} else if (process.env.NODE_ENV !== 'production') {
} else {
patchStaticNode(n1, n2, container, isSVG);
}
......@@ -7360,7 +7291,7 @@ export default function vueFactory(exports) {
/* SUSPENSE */
) {
type.process(n1, n2, container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized, internals);
} else if (process.env.NODE_ENV !== 'production') {
} else {
warn('Invalid VNode type:', type, "(".concat(typeof type, ")"));
}
......@@ -7479,16 +7410,7 @@ export default function vueFactory(exports) {
patchFlag,
dirs
} = vnode;
if (!(process.env.NODE_ENV !== 'production') && vnode.el && hostCloneNode !== undefined && patchFlag === -1
/* HOISTED */
) {
// If a vnode has non-null el, it means it's being reused.
// Only static vnodes can be reused, so its mounted DOM nodes should be
// exactly the same, and we can simply do a clone here.
// only do this in production since cloned trees cannot be HMR updated.
el = vnode.el = hostCloneNode(vnode.el);
} else {
{
el = vnode.el = hostCreateElement( // fixed by xxxxxx
vnode.type, container); // mount children first, since some props may rely on child content
// being already rendered, e.g. `<select value>`
......@@ -7523,8 +7445,7 @@ export default function vueFactory(exports) {
setScopeId(el, vnode, vnode.scopeId, slotScopeIds, parentComponent);
}
if (process.env.NODE_ENV !== 'production' || false) {
{
Object.defineProperty(el, '__vnode', {
value: vnode,
enumerable: false
......@@ -7572,7 +7493,7 @@ export default function vueFactory(exports) {
if (parentComponent) {
var subTree = parentComponent.subTree;
if (process.env.NODE_ENV !== 'production' && subTree.patchFlag > 0 && subTree.patchFlag & 2048
if (subTree.patchFlag > 0 && subTree.patchFlag & 2048
/* DEV_ROOT_FRAGMENT */
) {
subTree = filterSingleRoot(subTree.children) || subTree;
......@@ -7616,7 +7537,7 @@ export default function vueFactory(exports) {
invokeDirectiveHook(n2, n1, parentComponent, 'beforeUpdate');
}
if (process.env.NODE_ENV !== 'production' && isHmrUpdating) {
if (isHmrUpdating) {
// HMR updated, force full diff
patchFlag = 0;
optimized = false;
......@@ -7695,7 +7616,7 @@ export default function vueFactory(exports) {
if (dynamicChildren) {
patchBlockChildren(n1.dynamicChildren, dynamicChildren, el, parentComponent, parentSuspense, areChildrenSVG, slotScopeIds);
if (process.env.NODE_ENV !== 'production' && parentComponent && parentComponent.type.__hmrId) {
if (parentComponent && parentComponent.type.__hmrId) {
traverseStaticChildren(n1, n2);
}
} else if (!optimized) {
......@@ -7776,7 +7697,7 @@ export default function vueFactory(exports) {
slotScopeIds = slotScopeIds ? slotScopeIds.concat(fragmentSlotScopeIds) : fragmentSlotScopeIds;
}
if (process.env.NODE_ENV !== 'production' && isHmrUpdating) {
if (isHmrUpdating) {
// HMR updated, force full diff
patchFlag = 0;
optimized = false;
......@@ -7800,7 +7721,7 @@ export default function vueFactory(exports) {
// patch children order, but it may contain dynamicChildren.
patchBlockChildren(n1.dynamicChildren, dynamicChildren, container, parentComponent, parentSuspense, isSVG, slotScopeIds);
if (process.env.NODE_ENV !== 'production' && parentComponent && parentComponent.type.__hmrId) {
if (parentComponent && parentComponent.type.__hmrId) {
traverseStaticChildren(n1, n2);
} else if ( // #2080 if the stable fragment has a key, it's a <template v-for> that may
// get moved around. Make sure all root level vnodes inherit el.
......@@ -7840,29 +7761,26 @@ export default function vueFactory(exports) {
var mountComponent = (initialVNode, container, anchor, parentComponent, parentSuspense, isSVG, optimized) => {
var instance = initialVNode.component = createComponentInstance(initialVNode, parentComponent, parentSuspense);
if (process.env.NODE_ENV !== 'production' && instance.type.__hmrId) {
if (instance.type.__hmrId) {
registerHMR(instance);
}
if (process.env.NODE_ENV !== 'production') {
{
pushWarningContext(initialVNode);
startMeasure(instance, "mount");
} // inject renderer internals for keepAlive
if (isKeepAlive(initialVNode)) {
instance.ctx.renderer = internals;
} // resolve props and slots for setup context
{
if (process.env.NODE_ENV !== 'production') {
{
startMeasure(instance, "init");
}
setupComponent(instance);
if (process.env.NODE_ENV !== 'production') {
{
endMeasure(instance, "init");
}
} // setup() is async. This component relies on async logic to be resolved
......@@ -7894,7 +7812,7 @@ export default function vueFactory(exports) {
}
}
if (process.env.NODE_ENV !== 'production') {
{
popWarningContext();
endMeasure(instance, "mount");
}
......@@ -7907,16 +7825,13 @@ export default function vueFactory(exports) {
if (instance.asyncDep && !instance.asyncResolved) {
// async & still pending - just update props and slots
// since the component's reactive effect for render isn't set-up yet
if (process.env.NODE_ENV !== 'production') {
{
pushWarningContext(n2);
}
updateComponentPreRender(instance, n2, optimized);
if (process.env.NODE_ENV !== 'production') {
{
popWarningContext();
}
return;
} else {
// normal update
......@@ -7962,23 +7877,18 @@ export default function vueFactory(exports) {
if (el && hydrateNode) {
// vnode has adopted host node - perform hydration instead of mount.
var hydrateSubTree = () => {
if (process.env.NODE_ENV !== 'production') {
{
startMeasure(instance, "render");
}
instance.subTree = renderComponentRoot(instance);
if (process.env.NODE_ENV !== 'production') {
{
endMeasure(instance, "render");
}
if (process.env.NODE_ENV !== 'production') {
{
startMeasure(instance, "hydrate");
}
hydrateNode(el, instance.subTree, instance, parentSuspense, null);
if (process.env.NODE_ENV !== 'production') {
{
endMeasure(instance, "hydrate");
}
};
......@@ -7993,26 +7903,20 @@ export default function vueFactory(exports) {
hydrateSubTree();
}
} else {
if (process.env.NODE_ENV !== 'production') {
{
startMeasure(instance, "render");
}
var subTree = instance.subTree = renderComponentRoot(instance);
if (process.env.NODE_ENV !== 'production') {
{
endMeasure(instance, "render");
}
if (process.env.NODE_ENV !== 'production') {
{
startMeasure(instance, "patch");
}
patch(null, subTree, container, anchor, instance, parentSuspense, isSVG);
if (process.env.NODE_ENV !== 'production') {
{
endMeasure(instance, "patch");
}
initialVNode.el = subTree.el;
} // mounted hook
......@@ -8037,12 +7941,10 @@ export default function vueFactory(exports) {
}
instance.isMounted = true;
if (process.env.NODE_ENV !== 'production' || false) {
{
devtoolsComponentAdded(instance);
} // #2458: deference mount-only object parameters to prevent memleaks
initialVNode = container = anchor = null;
} else {
// updateComponent
......@@ -8059,7 +7961,7 @@ export default function vueFactory(exports) {
var _vnodeHook;
if (process.env.NODE_ENV !== 'production') {
{
pushWarningContext(next || instance.vnode);
}
......@@ -8081,31 +7983,24 @@ export default function vueFactory(exports) {
} // render
if (process.env.NODE_ENV !== 'production') {
{
startMeasure(instance, "render");
}
var nextTree = renderComponentRoot(instance);
if (process.env.NODE_ENV !== 'production') {
{
endMeasure(instance, "render");
}
var prevTree = instance.subTree;
instance.subTree = nextTree;
if (process.env.NODE_ENV !== 'production') {
{
startMeasure(instance, "patch");
}
patch(prevTree, nextTree, // parent may have changed if it's in a teleport
hostParentNode(prevTree.el), // anchor may have changed if it's in a fragment
getNextHostNode(prevTree), instance, parentSuspense, isSVG);
if (process.env.NODE_ENV !== 'production') {
{
endMeasure(instance, "patch");
}
next.el = nextTree.el;
if (originNext === null) {
......@@ -8125,17 +8020,15 @@ export default function vueFactory(exports) {
queuePostRenderEffect(() => invokeVNodeHook(_vnodeHook, _parent, next, vnode), parentSuspense);
}
if (process.env.NODE_ENV !== 'production' || false) {
{
devtoolsComponentUpdated(instance);
}
if (process.env.NODE_ENV !== 'production') {
{
popWarningContext();
}
}
}, process.env.NODE_ENV !== 'production' ? createDevEffectOptions(instance) : prodEffectOptions);
if (process.env.NODE_ENV !== 'production') {
}, createDevEffectOptions(instance));
{
// @ts-ignore
instance.update.ownerInstance = instance;
}
......@@ -8337,7 +8230,7 @@ export default function vueFactory(exports) {
var nextChild = c2[i] = optimized ? cloneIfMounted(c2[i]) : normalizeVNode(c2[i]);
if (nextChild.key != null) {
if (process.env.NODE_ENV !== 'production' && keyToNewIndexMap.has(nextChild.key)) {
if (keyToNewIndexMap.has(nextChild.key)) {
warn("Duplicate keys found during update:", JSON.stringify(nextChild.key), "Make sure keys are unique.");
}
......@@ -8662,7 +8555,7 @@ export default function vueFactory(exports) {
};
var unmountComponent = (instance, parentSuspense, doRemove) => {
if (process.env.NODE_ENV !== 'production' && instance.type.__hmrId) {
if (instance.type.__hmrId) {
unregisterHMR(instance);
}
......@@ -8710,7 +8603,7 @@ export default function vueFactory(exports) {
}
}
if (process.env.NODE_ENV !== 'production' || false) {
{
devtoolsComponentRemoved(instance);
}
};
......@@ -8820,7 +8713,7 @@ export default function vueFactory(exports) {
// would have received .el during block patch)
if (process.env.NODE_ENV !== 'production' && c2.type === Comment$1 && !c2.el) {
if (c2.type === Comment$1 && !c2.el) {
c2.el = c1.el;
}
}
......@@ -8891,19 +8784,19 @@ export default function vueFactory(exports) {
if (isString(targetSelector)) {
if (!select) {
process.env.NODE_ENV !== 'production' && warn("Current renderer does not support string target for Teleports. " + "(missing querySelector renderer option)");
warn("Current renderer does not support string target for Teleports. " + "(missing querySelector renderer option)");
return null;
} else {
var target = select(targetSelector);
if (!target) {
process.env.NODE_ENV !== 'production' && warn("Failed to locate Teleport target with selector \"".concat(targetSelector, "\". ") + "Note the target element must exist before the component is mounted - " + "i.e. the target cannot be rendered by the component itself, and " + "ideally should be outside of the entire Vue component tree.");
warn("Failed to locate Teleport target with selector \"".concat(targetSelector, "\". ") + "Note the target element must exist before the component is mounted - " + "i.e. the target cannot be rendered by the component itself, and " + "ideally should be outside of the entire Vue component tree.");
}
return target;
}
} else {
if (process.env.NODE_ENV !== 'production' && !targetSelector && !isTeleportDisabled(props)) {
if (!targetSelector && !isTeleportDisabled(props)) {
warn("Invalid Teleport target: ".concat(targetSelector));
}
......@@ -8934,18 +8827,18 @@ export default function vueFactory(exports) {
} = n2; // #3302
// HMR updated, force full diff
if (process.env.NODE_ENV !== 'production' && isHmrUpdating) {
if (isHmrUpdating) {
optimized = false;
dynamicChildren = null;
}
if (n1 == null) {
// insert anchors in the main view
var placeholder = n2.el = process.env.NODE_ENV !== 'production' ? createComment('teleport start', container) // fixed by xxxxxx
: createText('', container); // fixed by xxxxxx
var placeholder = n2.el = createComment('teleport start', container) // fixed by xxxxxx
; // fixed by xxxxxx
var mainAnchor = n2.anchor = process.env.NODE_ENV !== 'production' ? createComment('teleport end', container) // fixed by xxxxxx
: createText('', container); // fixed by xxxxxx
var mainAnchor = n2.anchor = createComment('teleport end', container) // fixed by xxxxxx
; // fixed by xxxxxx
insert(placeholder, container, anchor);
insert(mainAnchor, container, anchor);
......@@ -8956,7 +8849,7 @@ export default function vueFactory(exports) {
insert(targetAnchor, target); // #2652 we could be teleporting from a non-SVG tree into an SVG tree
isSVG = isSVG || isTargetSVG(target);
} else if (process.env.NODE_ENV !== 'production' && !disabled) {
} else if (!disabled) {
warn('Invalid Teleport target on mount:', target, "(".concat(typeof target, ")"));
}
......@@ -9018,7 +8911,7 @@ export default function vueFactory(exports) {
moveTeleport(n2, nextTarget, null, internals, 0
/* TARGET_CHANGE */
);
} else if (process.env.NODE_ENV !== 'production') {
} else {
warn('Invalid Teleport target on update:', _target, "(".concat(typeof _target, ")"));
}
} else if (wasDisabled) {
......@@ -9213,12 +9106,12 @@ export default function vueFactory(exports) {
return Component;
}
if (process.env.NODE_ENV !== 'production' && warnMissing && !res) {
if (warnMissing && !res) {
warn("Failed to resolve ".concat(type.slice(0, -1), ": ").concat(name));
}
return res;
} else if (process.env.NODE_ENV !== 'production') {
} else {
warn("resolve".concat(capitalize(type.slice(0, -1)), " ") + "can only be used in render() or setup().");
}
}
......@@ -9227,10 +9120,10 @@ export default function vueFactory(exports) {
return registry && (registry[name] || registry[camelize(name)] || registry[capitalize(camelize(name))]);
}
var Fragment = Symbol(process.env.NODE_ENV !== 'production' ? 'Fragment' : undefined);
var Text = Symbol(process.env.NODE_ENV !== 'production' ? 'Text' : undefined);
var Comment$1 = Symbol(process.env.NODE_ENV !== 'production' ? 'Comment' : undefined);
var Static = Symbol(process.env.NODE_ENV !== 'production' ? 'Static' : undefined); // Since v-if and v-for are the two possible ways node structure can dynamically
var Fragment = Symbol('Fragment');
var Text = Symbol('Text');
var Comment$1 = Symbol('Comment');
var Static = Symbol('Static'); // Since v-if and v-for are the two possible ways node structure can dynamically
// change, once we consider v-if branches and each v-for fragment a block, we
// can divide a template into nested blocks, and within each block the node
// structure would be stable. This allows us to skip most children diffing
......@@ -9320,7 +9213,7 @@ export default function vueFactory(exports) {
}
function isSameVNodeType(n1, n2) {
if (process.env.NODE_ENV !== 'production' && n2.shapeFlag & 6
if (n2.shapeFlag & 6
/* COMPONENT */
&& hmrDirtyComponents.has(n2.type)) {
// HMR only: if the component has been hot-updated, force a reload.
......@@ -9361,11 +9254,11 @@ export default function vueFactory(exports) {
} : ref : null;
};
var createVNode = process.env.NODE_ENV !== 'production' ? createVNodeWithArgsTransform : _createVNode;
var createVNode = createVNodeWithArgsTransform;
function _createVNode(type, props = null, children = null, patchFlag = 0, dynamicProps = null, isBlockNode = false) {
if (!type || type === NULL_DYNAMIC_COMPONENT) {
if (process.env.NODE_ENV !== 'production' && !type) {
if (!type) {
warn("Invalid vnode type when creating vnode: ".concat(type, "."));
}
......@@ -9432,7 +9325,7 @@ export default function vueFactory(exports) {
/* FUNCTIONAL_COMPONENT */
: 0;
if (process.env.NODE_ENV !== 'production' && shapeFlag & 4
if (shapeFlag & 4
/* STATEFUL_COMPONENT */
&& isProxy(type)) {
type = toRaw(type);
......@@ -9466,7 +9359,7 @@ export default function vueFactory(exports) {
appContext: null
}; // validate key
if (process.env.NODE_ENV !== 'production' && vnode.key !== vnode.key) {
if (vnode.key !== vnode.key) {
warn("VNode created with invalid key (NaN). VNode type:", vnode.type);
}
......@@ -9515,7 +9408,7 @@ export default function vueFactory(exports) {
mergeRef && ref ? isArray(ref) ? ref.concat(normalizeRef(extraProps)) : [ref, normalizeRef(extraProps)] : normalizeRef(extraProps) : ref,
scopeId: vnode.scopeId,
slotScopeIds: vnode.slotScopeIds,
children: process.env.NODE_ENV !== 'production' && patchFlag === -1
children: patchFlag === -1
/* HOISTED */
&& isArray(children) ? children.map(deepCloneVNode) : children,
target: vnode.target,
......@@ -9750,7 +9643,7 @@ export default function vueFactory(exports) {
ret[i] = renderItem(source[i], i);
}
} else if (typeof source === 'number') {
if (process.env.NODE_ENV !== 'production' && !Number.isInteger(source)) {
if (!Number.isInteger(source)) {
warn("The v-for range expect an integer value but got ".concat(source, "."));
return [];
}
......@@ -9811,7 +9704,7 @@ export default function vueFactory(exports) {
fallback, noSlotted) {
var slot = slots[name];
if (process.env.NODE_ENV !== 'production' && slot && slot.length > 1) {
if (slot && slot.length > 1) {
warn("SSR-optimized slot function detected in a non-SSR-optimized render " + "function. You need to mark this component with $dynamic-slots in the " + "parent template.");
slot = () => [];
......@@ -9865,7 +9758,7 @@ export default function vueFactory(exports) {
function toHandlers(obj) {
var ret = {};
if (process.env.NODE_ENV !== 'production' && !isObject(obj)) {
if (!isObject(obj)) {
warn("v-on with no argument expects an object value.");
return ret;
}
......@@ -9893,10 +9786,10 @@ export default function vueFactory(exports) {
$: i => i,
$el: i => i.vnode.el,
$data: i => i.data,
$props: i => process.env.NODE_ENV !== 'production' ? shallowReadonly(i.props) : i.props,
$attrs: i => process.env.NODE_ENV !== 'production' ? shallowReadonly(i.attrs) : i.attrs,
$slots: i => process.env.NODE_ENV !== 'production' ? shallowReadonly(i.slots) : i.slots,
$refs: i => process.env.NODE_ENV !== 'production' ? shallowReadonly(i.refs) : i.refs,
$props: i => shallowReadonly(i.props),
$attrs: i => shallowReadonly(i.attrs),
$slots: i => shallowReadonly(i.slots),
$refs: i => shallowReadonly(i.refs),
$parent: i => getPublicInstance(i.parent),
$root: i => getPublicInstance(i.root),
$emit: i => i.emit,
......@@ -9919,7 +9812,7 @@ export default function vueFactory(exports) {
appContext
} = instance; // for internal formatters to know that this is a Vue instance
if (process.env.NODE_ENV !== 'production' && key === '__isVue') {
if (key === '__isVue') {
return true;
} // prioritize <script setup> bindings during dev.
// this allows even properties that start with _ or $ to be used - so that
......@@ -9927,7 +9820,7 @@ export default function vueFactory(exports) {
// indeed has access to all declared variables.
if (process.env.NODE_ENV !== 'production' && setupState !== EMPTY_OBJ && setupState.__isScriptSetup && hasOwn(setupState, key)) {
if (setupState !== EMPTY_OBJ && setupState.__isScriptSetup && hasOwn(setupState, key)) {
return setupState[key];
} // data / props / ctx
// This getter gets called for every property access on the render context
......@@ -10002,7 +9895,7 @@ export default function vueFactory(exports) {
track(instance, "get"
/* GET */
, key);
process.env.NODE_ENV !== 'production' && markAttrsAccessed();
markAttrsAccessed();
}
return publicGetter(instance);
......@@ -10019,7 +9912,7 @@ export default function vueFactory(exports) {
{
return globalProperties[key];
}
} else if (process.env.NODE_ENV !== 'production' && currentRenderingInstance && (!isString(key) || // #1091 avoid internal isRef/isVNode checks on component instance leading
} else if (currentRenderingInstance && (!isString(key) || // #1091 avoid internal isRef/isVNode checks on component instance leading
// to infinite warning loop
key.indexOf('__v') !== 0)) {
if (data !== EMPTY_OBJ && (key[0] === '$' || key[0] === '_') && hasOwn(data, key)) {
......@@ -10044,15 +9937,15 @@ export default function vueFactory(exports) {
} else if (data !== EMPTY_OBJ && hasOwn(data, key)) {
data[key] = value;
} else if (hasOwn(instance.props, key)) {
process.env.NODE_ENV !== 'production' && warn("Attempting to mutate prop \"".concat(key, "\". Props are readonly."), instance);
warn("Attempting to mutate prop \"".concat(key, "\". Props are readonly."), instance);
return false;
}
if (key[0] === '$' && key.slice(1) in instance) {
process.env.NODE_ENV !== 'production' && warn("Attempting to mutate public property \"".concat(key, "\". ") + "Properties starting with $ are reserved and readonly.", instance);
warn("Attempting to mutate public property \"".concat(key, "\". ") + "Properties starting with $ are reserved and readonly.", instance);
return false;
} else {
if (process.env.NODE_ENV !== 'production' && key in instance.appContext.config.globalProperties) {
if (key in instance.appContext.config.globalProperties) {
Object.defineProperty(ctx, key, {
enumerable: true,
configurable: true,
......@@ -10081,14 +9974,12 @@ export default function vueFactory(exports) {
}
};
if (process.env.NODE_ENV !== 'production' && !false) {
{
PublicInstanceProxyHandlers.ownKeys = target => {
warn("Avoid app logic that relies on enumerating keys on a component instance. " + "The keys will be empty in production mode to avoid performance overhead.");
return Reflect.ownKeys(target);
};
}
var RuntimeCompiledPublicInstanceProxyHandlers = extend({}, PublicInstanceProxyHandlers, {
get(target, key) {
// fast path for unscopables when using `with` block
......@@ -10102,7 +9993,7 @@ export default function vueFactory(exports) {
has(_, key) {
var has = key[0] !== '_' && !isGloballyWhitelisted(key);
if (process.env.NODE_ENV !== 'production' && !has && PublicInstanceProxyHandlers.has(_, key)) {
if (!has && PublicInstanceProxyHandlers.has(_, key)) {
warn("Property ".concat(JSON.stringify(key), " should not start with _ which is a reserved prefix for Vue internals."));
}
......@@ -10248,15 +10139,9 @@ export default function vueFactory(exports) {
ec: null,
sp: null
};
if (process.env.NODE_ENV !== 'production') {
{
instance.ctx = createRenderContext(instance);
} else {
instance.ctx = {
_: instance
};
}
instance.root = parent ? parent.root : instance;
instance.emit = emit.bind(null, instance);
return instance;
......@@ -10304,8 +10189,7 @@ export default function vueFactory(exports) {
function setupStatefulComponent(instance, isSSR) {
var Component = instance.type;
if (process.env.NODE_ENV !== 'production') {
{
if (Component.name) {
validateComponentName(Component.name, instance.appContext.config);
}
......@@ -10331,17 +10215,14 @@ export default function vueFactory(exports) {
}
} // 0. create render proxy property access cache
instance.accessCache = Object.create(null); // 1. create public instance / render proxy
// also mark it raw so it's never observed
instance.proxy = markRaw(new Proxy(instance.ctx, PublicInstanceProxyHandlers));
if (process.env.NODE_ENV !== 'production') {
{
exposePropsOnRenderContext(instance);
} // 2. call setup()
var {
setup
} = Component;
......@@ -10352,7 +10233,7 @@ export default function vueFactory(exports) {
pauseTracking();
var setupResult = callWithErrorHandling(setup, instance, 0
/* SETUP_FUNCTION */
, [process.env.NODE_ENV !== 'production' ? shallowReadonly(instance.props) : instance.props, setupContext]);
, [shallowReadonly(instance.props), setupContext]);
resetTracking();
currentInstance = null;
......@@ -10392,22 +10273,20 @@ export default function vueFactory(exports) {
instance.render = setupResult;
}
} else if (isObject(setupResult)) {
if (process.env.NODE_ENV !== 'production' && isVNode(setupResult)) {
if (isVNode(setupResult)) {
warn("setup() should not return VNodes directly - " + "return a render function instead.");
} // setup returned bindings.
// assuming a render function compiled from template is present.
if (process.env.NODE_ENV !== 'production' || false) {
{
instance.devtoolsRawSetupState = setupResult;
}
instance.setupState = proxyRefs(setupResult);
if (process.env.NODE_ENV !== 'production') {
{
exposeSetupStateOnRenderContext(instance);
}
} else if (process.env.NODE_ENV !== 'production' && setupResult !== undefined) {
} else if (setupResult !== undefined) {
warn("setup() should return an object. Received: ".concat(setupResult === null ? 'null' : typeof setupResult));
}
......@@ -10436,10 +10315,9 @@ export default function vueFactory(exports) {
var template = Component.template;
if (template) {
if (process.env.NODE_ENV !== 'production') {
{
startMeasure(instance, "compile");
}
var {
isCustomElement,
compilerOptions
......@@ -10453,8 +10331,7 @@ export default function vueFactory(exports) {
delimiters
}, compilerOptions), componentCompilerOptions);
Component.render = compile(template, finalCompilerOptions);
if (process.env.NODE_ENV !== 'production') {
{
endMeasure(instance, "compile");
}
}
......@@ -10479,7 +10356,7 @@ export default function vueFactory(exports) {
} // warn missing template/render
// the runtime compilation of template in SSR is done by server-render
if (process.env.NODE_ENV !== 'production' && !Component.render && instance.render === NOOP && !isSSR) {
if (!Component.render && instance.render === NOOP && !isSSR) {
/* istanbul ignore if */
if (!compile && Component.template) {
warn("Component provided template option but " + "runtime compilation is not supported in this build of Vue." + " Configure your bundler to alias \"vue\" to \"vue/dist/vue.esm-bundler.js\"."
......@@ -10508,14 +10385,14 @@ export default function vueFactory(exports) {
function createSetupContext(instance) {
var expose = exposed => {
if (process.env.NODE_ENV !== 'production' && instance.exposed) {
if (instance.exposed) {
warn("expose() should be called only once per setup().");
}
instance.exposed = exposed || {};
};
if (process.env.NODE_ENV !== 'production') {
{
var attrs; // We use getters in dev in case libs like test-utils overwrite instance
// properties (overwrites should not be done in prod)
......@@ -10534,13 +10411,6 @@ export default function vueFactory(exports) {
expose
});
} else {
return {
attrs: instance.attrs,
slots: instance.slots,
emit: instance.emit,
expose
};
}
}
......@@ -10619,19 +10489,17 @@ export default function vueFactory(exports) {
function defineProps() {
if (process.env.NODE_ENV !== 'production') {
{
warnRuntimeUsage("defineProps");
}
return null;
} // implementation
function defineEmits() {
if (process.env.NODE_ENV !== 'production') {
{
warnRuntimeUsage("defineEmits");
}
return null;
}
/**
......@@ -10654,7 +10522,7 @@ export default function vueFactory(exports) {
*/
function defineExpose(exposed) {
if (process.env.NODE_ENV !== 'production') {
{
warnRuntimeUsage("defineExpose");
}
}
......@@ -10679,10 +10547,9 @@ export default function vueFactory(exports) {
function withDefaults(props, defaults) {
if (process.env.NODE_ENV !== 'production') {
{
warnRuntimeUsage("withDefaults");
}
return null;
}
/**
......@@ -10691,10 +10558,9 @@ export default function vueFactory(exports) {
function useContext() {
if (process.env.NODE_ENV !== 'production') {
{
warn("`useContext()` has been deprecated and will be removed in the " + "next minor release. Use `useSlots()` and `useAttrs()` instead.");
}
return getContext();
}
......@@ -10709,7 +10575,7 @@ export default function vueFactory(exports) {
function getContext() {
var i = getCurrentInstance();
if (process.env.NODE_ENV !== 'production' && !i) {
if (!i) {
warn("useContext() called without active instance.");
}
......@@ -10733,7 +10599,7 @@ export default function vueFactory(exports) {
props[key] = {
default: defaults[key]
};
} else if (process.env.NODE_ENV !== 'production') {
} else {
warn("props default key \"".concat(key, "\" has no corresponding declaration."));
}
}
......@@ -10750,7 +10616,7 @@ export default function vueFactory(exports) {
var ctx = getCurrentInstance();
setCurrentInstance(null); // unset after storing instance
if (process.env.NODE_ENV !== 'production' && !ctx) {
if (!ctx) {
warn("withAsyncContext() called when there is no active context instance.");
}
......@@ -10791,7 +10657,7 @@ export default function vueFactory(exports) {
}
}
var ssrContextKey = Symbol(process.env.NODE_ENV !== 'production' ? "ssrContext" : "");
var ssrContextKey = Symbol("ssrContext");
var useSSRContext = () => {
{
......@@ -10807,7 +10673,7 @@ export default function vueFactory(exports) {
function initCustomFormatter() {
/* eslint-disable no-restricted-globals */
if (!(process.env.NODE_ENV !== 'production') || typeof window === 'undefined') {
if (typeof window === 'undefined') {
return;
}
......@@ -11316,21 +11182,21 @@ export default function vueFactory(exports) {
var instance = getCurrentInstance();
if (!instance) {
process.env.NODE_ENV !== 'production' && warn("useCssModule must be called inside setup()");
warn("useCssModule must be called inside setup()");
return EMPTY_OBJ;
}
var modules = instance.type.__cssModules;
if (!modules) {
process.env.NODE_ENV !== 'production' && warn("Current instance does not have CSS modules injected.");
warn("Current instance does not have CSS modules injected.");
return EMPTY_OBJ;
}
var mod = modules[name];
if (!mod) {
process.env.NODE_ENV !== 'production' && warn("Current instance does not have CSS module named \"".concat(name, "\"."));
warn("Current instance does not have CSS module named \"".concat(name, "\"."));
return EMPTY_OBJ;
}
......@@ -11348,7 +11214,7 @@ export default function vueFactory(exports) {
/* istanbul ignore next */
if (!instance) {
process.env.NODE_ENV !== 'production' && warn("useCssVars is called without current active component instance.");
warn("useCssVars is called without current active component instance.");
return;
}
......@@ -11578,7 +11444,7 @@ export default function vueFactory(exports) {
function NumberOf(val) {
var res = toNumber(val);
if (process.env.NODE_ENV !== 'production') validateDuration(res);
validateDuration(res);
return res;
}
......@@ -11795,7 +11661,7 @@ export default function vueFactory(exports) {
if (child.key != null) {
setTransitionHooks(child, resolveTransitionHooks(child, cssTransitionProps, state, instance));
} else if (process.env.NODE_ENV !== 'production') {
} else {
warn("<TransitionGroup> children must be keyed.");
}
}
......@@ -12025,11 +11891,9 @@ export default function vueFactory(exports) {
var createApp = (...args) => {
var app = ensureRenderer().createApp(...args);
if (process.env.NODE_ENV !== 'production') {
{
injectNativeTagCheck(app);
}
var {
mount
} = app;
......
因为 它太大了无法显示 source diff 。你可以改为 查看blob
......@@ -2,8 +2,8 @@
"name": "@dcloudio/uni-app-vue",
"version": "3.0.0-alpha-3000020210813001",
"description": "@dcloudio/uni-app-vue",
"main": "dist/service.runtime.esm.js",
"module": "dist/service.runtime.esm.js",
"main": "dist/service.runtime.esm.dev.js",
"module": "dist/service.runtime.esm.dev.js",
"files": [
"dist"
],
......
......@@ -16,7 +16,9 @@ export default class WatchPlugin {
compiler.hooks.invalid.tap('WatchPlugin', () => {
if (!isCompiling) {
isCompiling = true
console.log(M['dev.watching.start'])
if (!isFirst) {
console.log(M['dev.watching.start'])
}
}
})
compiler.hooks.done.tap('WatchPlugin', (stats) => {
......
......@@ -15,8 +15,12 @@ export async function runDev(options: CliOptions & ServerOptions) {
await (options.ssr ? createSSRServer(options) : createServer(options))
} else {
const watcher = (await build(options)) as RollupWatcher
let isFirst = true
watcher.on('event', (event) => {
if (event.code === 'BUNDLE_START') {
if (isFirst) {
return (isFirst = false)
}
console.log(M['dev.watching.start'])
} else if (event.code === 'BUNDLE_END') {
event.result.close()
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册