@vue/compat 3.4.8 → 3.4.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/vue.cjs.js +77 -67
- package/dist/vue.cjs.prod.js +56 -51
- package/dist/vue.esm-browser.js +77 -67
- package/dist/vue.esm-browser.prod.js +4 -4
- package/dist/vue.esm-bundler.js +79 -69
- package/dist/vue.global.js +77 -67
- package/dist/vue.global.prod.js +4 -4
- package/dist/vue.runtime.esm-browser.js +77 -67
- package/dist/vue.runtime.esm-browser.prod.js +4 -4
- package/dist/vue.runtime.esm-bundler.js +79 -69
- package/dist/vue.runtime.global.js +77 -67
- package/dist/vue.runtime.global.prod.js +4 -4
- package/package.json +16 -2
package/dist/vue.esm-bundler.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vue/compat v3.4.
|
|
2
|
+
* @vue/compat v3.4.10
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -3266,6 +3266,10 @@ const SuspenseImpl = {
|
|
|
3266
3266
|
rendererInternals
|
|
3267
3267
|
);
|
|
3268
3268
|
} else {
|
|
3269
|
+
if (parentSuspense && parentSuspense.deps > 0) {
|
|
3270
|
+
n2.suspense = n1.suspense;
|
|
3271
|
+
return;
|
|
3272
|
+
}
|
|
3269
3273
|
patchSuspense(
|
|
3270
3274
|
n1,
|
|
3271
3275
|
n2,
|
|
@@ -5941,58 +5945,6 @@ function useSlots() {
|
|
|
5941
5945
|
function useAttrs() {
|
|
5942
5946
|
return getContext().attrs;
|
|
5943
5947
|
}
|
|
5944
|
-
function useModel(props, name, options = EMPTY_OBJ) {
|
|
5945
|
-
const i = getCurrentInstance();
|
|
5946
|
-
if (!!(process.env.NODE_ENV !== "production") && !i) {
|
|
5947
|
-
warn$1(`useModel() called without active instance.`);
|
|
5948
|
-
return ref();
|
|
5949
|
-
}
|
|
5950
|
-
if (!!(process.env.NODE_ENV !== "production") && !i.propsOptions[0][name]) {
|
|
5951
|
-
warn$1(`useModel() called with prop "${name}" which is not declared.`);
|
|
5952
|
-
return ref();
|
|
5953
|
-
}
|
|
5954
|
-
const camelizedName = camelize(name);
|
|
5955
|
-
const hyphenatedName = hyphenate(name);
|
|
5956
|
-
const res = customRef((track, trigger) => {
|
|
5957
|
-
let localValue;
|
|
5958
|
-
watchSyncEffect(() => {
|
|
5959
|
-
const propValue = props[name];
|
|
5960
|
-
if (hasChanged(localValue, propValue)) {
|
|
5961
|
-
localValue = propValue;
|
|
5962
|
-
trigger();
|
|
5963
|
-
}
|
|
5964
|
-
});
|
|
5965
|
-
return {
|
|
5966
|
-
get() {
|
|
5967
|
-
track();
|
|
5968
|
-
return options.get ? options.get(localValue) : localValue;
|
|
5969
|
-
},
|
|
5970
|
-
set(value) {
|
|
5971
|
-
const rawProps = i.vnode.props;
|
|
5972
|
-
if (!(rawProps && // check if parent has passed v-model
|
|
5973
|
-
(name in rawProps || camelizedName in rawProps || hyphenatedName in rawProps) && (`onUpdate:${name}` in rawProps || `onUpdate:${camelizedName}` in rawProps || `onUpdate:${hyphenatedName}` in rawProps)) && hasChanged(value, localValue)) {
|
|
5974
|
-
localValue = value;
|
|
5975
|
-
trigger();
|
|
5976
|
-
}
|
|
5977
|
-
i.emit(`update:${name}`, options.set ? options.set(value) : value);
|
|
5978
|
-
}
|
|
5979
|
-
};
|
|
5980
|
-
});
|
|
5981
|
-
const modifierKey = name === "modelValue" ? "modelModifiers" : `${name}Modifiers`;
|
|
5982
|
-
res[Symbol.iterator] = () => {
|
|
5983
|
-
let i2 = 0;
|
|
5984
|
-
return {
|
|
5985
|
-
next() {
|
|
5986
|
-
if (i2 < 2) {
|
|
5987
|
-
return { value: i2++ ? props[modifierKey] || {} : res, done: false };
|
|
5988
|
-
} else {
|
|
5989
|
-
return { done: true };
|
|
5990
|
-
}
|
|
5991
|
-
}
|
|
5992
|
-
};
|
|
5993
|
-
};
|
|
5994
|
-
return res;
|
|
5995
|
-
}
|
|
5996
5948
|
function getContext() {
|
|
5997
5949
|
const i = getCurrentInstance();
|
|
5998
5950
|
if (!!(process.env.NODE_ENV !== "production") && !i) {
|
|
@@ -6566,7 +6518,7 @@ function createCompatVue$1(createApp, createSingletonApp) {
|
|
|
6566
6518
|
return vm;
|
|
6567
6519
|
}
|
|
6568
6520
|
}
|
|
6569
|
-
Vue.version = `2.6.14-compat:${"3.4.
|
|
6521
|
+
Vue.version = `2.6.14-compat:${"3.4.10"}`;
|
|
6570
6522
|
Vue.config = singletonApp.config;
|
|
6571
6523
|
Vue.use = (p, ...options) => {
|
|
6572
6524
|
if (p && isFunction(p.install)) {
|
|
@@ -8330,8 +8282,13 @@ function propHasMismatch(el, key, clientValue, vnode) {
|
|
|
8330
8282
|
actual = el.hasAttribute(key);
|
|
8331
8283
|
expected = includeBooleanAttr(clientValue);
|
|
8332
8284
|
} else {
|
|
8333
|
-
|
|
8334
|
-
|
|
8285
|
+
if (el.hasAttribute(key)) {
|
|
8286
|
+
actual = el.getAttribute(key);
|
|
8287
|
+
} else {
|
|
8288
|
+
const serverValue = el[key];
|
|
8289
|
+
actual = isObject(serverValue) || serverValue == null ? "" : String(serverValue);
|
|
8290
|
+
}
|
|
8291
|
+
expected = isObject(clientValue) || clientValue == null ? "" : String(clientValue);
|
|
8335
8292
|
}
|
|
8336
8293
|
if (actual !== expected) {
|
|
8337
8294
|
mismatchType = `attribute`;
|
|
@@ -8340,15 +8297,15 @@ function propHasMismatch(el, key, clientValue, vnode) {
|
|
|
8340
8297
|
}
|
|
8341
8298
|
if (mismatchType) {
|
|
8342
8299
|
const format = (v) => v === false ? `(not rendered)` : `${mismatchKey}="${v}"`;
|
|
8343
|
-
|
|
8344
|
-
|
|
8345
|
-
el,
|
|
8346
|
-
`
|
|
8300
|
+
const preSegment = `Hydration ${mismatchType} mismatch on`;
|
|
8301
|
+
const postSegment = `
|
|
8347
8302
|
- rendered on server: ${format(actual)}
|
|
8348
8303
|
- expected on client: ${format(expected)}
|
|
8349
8304
|
Note: this mismatch is check-only. The DOM will not be rectified in production due to performance overhead.
|
|
8350
|
-
You should fix the source of the mismatch
|
|
8351
|
-
|
|
8305
|
+
You should fix the source of the mismatch.`;
|
|
8306
|
+
{
|
|
8307
|
+
warn$1(preSegment, el, postSegment);
|
|
8308
|
+
}
|
|
8352
8309
|
return true;
|
|
8353
8310
|
}
|
|
8354
8311
|
return false;
|
|
@@ -11182,6 +11139,59 @@ const computed = (getterOrOptions, debugOptions) => {
|
|
|
11182
11139
|
return computed$1(getterOrOptions, debugOptions, isInSSRComponentSetup);
|
|
11183
11140
|
};
|
|
11184
11141
|
|
|
11142
|
+
function useModel(props, name, options = EMPTY_OBJ) {
|
|
11143
|
+
const i = getCurrentInstance();
|
|
11144
|
+
if (!!(process.env.NODE_ENV !== "production") && !i) {
|
|
11145
|
+
warn$1(`useModel() called without active instance.`);
|
|
11146
|
+
return ref();
|
|
11147
|
+
}
|
|
11148
|
+
if (!!(process.env.NODE_ENV !== "production") && !i.propsOptions[0][name]) {
|
|
11149
|
+
warn$1(`useModel() called with prop "${name}" which is not declared.`);
|
|
11150
|
+
return ref();
|
|
11151
|
+
}
|
|
11152
|
+
const camelizedName = camelize(name);
|
|
11153
|
+
const hyphenatedName = hyphenate(name);
|
|
11154
|
+
const res = customRef((track, trigger) => {
|
|
11155
|
+
let localValue;
|
|
11156
|
+
watchSyncEffect(() => {
|
|
11157
|
+
const propValue = props[name];
|
|
11158
|
+
if (hasChanged(localValue, propValue)) {
|
|
11159
|
+
localValue = propValue;
|
|
11160
|
+
trigger();
|
|
11161
|
+
}
|
|
11162
|
+
});
|
|
11163
|
+
return {
|
|
11164
|
+
get() {
|
|
11165
|
+
track();
|
|
11166
|
+
return options.get ? options.get(localValue) : localValue;
|
|
11167
|
+
},
|
|
11168
|
+
set(value) {
|
|
11169
|
+
const rawProps = i.vnode.props;
|
|
11170
|
+
if (!(rawProps && // check if parent has passed v-model
|
|
11171
|
+
(name in rawProps || camelizedName in rawProps || hyphenatedName in rawProps) && (`onUpdate:${name}` in rawProps || `onUpdate:${camelizedName}` in rawProps || `onUpdate:${hyphenatedName}` in rawProps)) && hasChanged(value, localValue)) {
|
|
11172
|
+
localValue = value;
|
|
11173
|
+
trigger();
|
|
11174
|
+
}
|
|
11175
|
+
i.emit(`update:${name}`, options.set ? options.set(value) : value);
|
|
11176
|
+
}
|
|
11177
|
+
};
|
|
11178
|
+
});
|
|
11179
|
+
const modifierKey = name === "modelValue" ? "modelModifiers" : `${name}Modifiers`;
|
|
11180
|
+
res[Symbol.iterator] = () => {
|
|
11181
|
+
let i2 = 0;
|
|
11182
|
+
return {
|
|
11183
|
+
next() {
|
|
11184
|
+
if (i2 < 2) {
|
|
11185
|
+
return { value: i2++ ? props[modifierKey] || {} : res, done: false };
|
|
11186
|
+
} else {
|
|
11187
|
+
return { done: true };
|
|
11188
|
+
}
|
|
11189
|
+
}
|
|
11190
|
+
};
|
|
11191
|
+
};
|
|
11192
|
+
return res;
|
|
11193
|
+
}
|
|
11194
|
+
|
|
11185
11195
|
function h(type, propsOrChildren, children) {
|
|
11186
11196
|
const l = arguments.length;
|
|
11187
11197
|
if (l === 2) {
|
|
@@ -11404,11 +11414,11 @@ function isMemoSame(cached, memo) {
|
|
|
11404
11414
|
return true;
|
|
11405
11415
|
}
|
|
11406
11416
|
|
|
11407
|
-
const version = "3.4.
|
|
11417
|
+
const version = "3.4.10";
|
|
11408
11418
|
const warn = !!(process.env.NODE_ENV !== "production") ? warn$1 : NOOP;
|
|
11409
11419
|
const ErrorTypeStrings = ErrorTypeStrings$1 ;
|
|
11410
|
-
const devtools = !!(process.env.NODE_ENV !== "production") ||
|
|
11411
|
-
const setDevtoolsHook = !!(process.env.NODE_ENV !== "production") ||
|
|
11420
|
+
const devtools = !!(process.env.NODE_ENV !== "production") || true ? devtools$1 : void 0;
|
|
11421
|
+
const setDevtoolsHook = !!(process.env.NODE_ENV !== "production") || true ? setDevtoolsHook$1 : NOOP;
|
|
11412
11422
|
const _ssrUtils = {
|
|
11413
11423
|
createComponentInstance,
|
|
11414
11424
|
setupComponent,
|
|
@@ -11932,6 +11942,7 @@ function setVarsOnNode(el, vars) {
|
|
|
11932
11942
|
|
|
11933
11943
|
function patchStyle(el, prev, next) {
|
|
11934
11944
|
const style = el.style;
|
|
11945
|
+
const currentDisplay = style.display;
|
|
11935
11946
|
const isCssString = isString(next);
|
|
11936
11947
|
if (next && !isCssString) {
|
|
11937
11948
|
if (prev && !isString(prev)) {
|
|
@@ -11945,7 +11956,6 @@ function patchStyle(el, prev, next) {
|
|
|
11945
11956
|
setStyle(style, key, next[key]);
|
|
11946
11957
|
}
|
|
11947
11958
|
} else {
|
|
11948
|
-
const currentDisplay = style.display;
|
|
11949
11959
|
if (isCssString) {
|
|
11950
11960
|
if (prev !== next) {
|
|
11951
11961
|
const cssVarText = style[CSS_VAR_TEXT];
|
|
@@ -11957,9 +11967,9 @@ function patchStyle(el, prev, next) {
|
|
|
11957
11967
|
} else if (prev) {
|
|
11958
11968
|
el.removeAttribute("style");
|
|
11959
11969
|
}
|
|
11960
|
-
|
|
11961
|
-
|
|
11962
|
-
|
|
11970
|
+
}
|
|
11971
|
+
if (vShowOldKey in el) {
|
|
11972
|
+
style.display = currentDisplay;
|
|
11963
11973
|
}
|
|
11964
11974
|
}
|
|
11965
11975
|
const semicolonRE = /[^\\];\s*$/;
|
package/dist/vue.global.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vue/compat v3.4.
|
|
2
|
+
* @vue/compat v3.4.10
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -3262,6 +3262,10 @@ If this is a native custom element, make sure to exclude it from component resol
|
|
|
3262
3262
|
rendererInternals
|
|
3263
3263
|
);
|
|
3264
3264
|
} else {
|
|
3265
|
+
if (parentSuspense && parentSuspense.deps > 0) {
|
|
3266
|
+
n2.suspense = n1.suspense;
|
|
3267
|
+
return;
|
|
3268
|
+
}
|
|
3265
3269
|
patchSuspense(
|
|
3266
3270
|
n1,
|
|
3267
3271
|
n2,
|
|
@@ -5902,58 +5906,6 @@ If this is a native custom element, make sure to exclude it from component resol
|
|
|
5902
5906
|
function useAttrs() {
|
|
5903
5907
|
return getContext().attrs;
|
|
5904
5908
|
}
|
|
5905
|
-
function useModel(props, name, options = EMPTY_OBJ) {
|
|
5906
|
-
const i = getCurrentInstance();
|
|
5907
|
-
if (!i) {
|
|
5908
|
-
warn$1(`useModel() called without active instance.`);
|
|
5909
|
-
return ref();
|
|
5910
|
-
}
|
|
5911
|
-
if (!i.propsOptions[0][name]) {
|
|
5912
|
-
warn$1(`useModel() called with prop "${name}" which is not declared.`);
|
|
5913
|
-
return ref();
|
|
5914
|
-
}
|
|
5915
|
-
const camelizedName = camelize(name);
|
|
5916
|
-
const hyphenatedName = hyphenate(name);
|
|
5917
|
-
const res = customRef((track, trigger) => {
|
|
5918
|
-
let localValue;
|
|
5919
|
-
watchSyncEffect(() => {
|
|
5920
|
-
const propValue = props[name];
|
|
5921
|
-
if (hasChanged(localValue, propValue)) {
|
|
5922
|
-
localValue = propValue;
|
|
5923
|
-
trigger();
|
|
5924
|
-
}
|
|
5925
|
-
});
|
|
5926
|
-
return {
|
|
5927
|
-
get() {
|
|
5928
|
-
track();
|
|
5929
|
-
return options.get ? options.get(localValue) : localValue;
|
|
5930
|
-
},
|
|
5931
|
-
set(value) {
|
|
5932
|
-
const rawProps = i.vnode.props;
|
|
5933
|
-
if (!(rawProps && // check if parent has passed v-model
|
|
5934
|
-
(name in rawProps || camelizedName in rawProps || hyphenatedName in rawProps) && (`onUpdate:${name}` in rawProps || `onUpdate:${camelizedName}` in rawProps || `onUpdate:${hyphenatedName}` in rawProps)) && hasChanged(value, localValue)) {
|
|
5935
|
-
localValue = value;
|
|
5936
|
-
trigger();
|
|
5937
|
-
}
|
|
5938
|
-
i.emit(`update:${name}`, options.set ? options.set(value) : value);
|
|
5939
|
-
}
|
|
5940
|
-
};
|
|
5941
|
-
});
|
|
5942
|
-
const modifierKey = name === "modelValue" ? "modelModifiers" : `${name}Modifiers`;
|
|
5943
|
-
res[Symbol.iterator] = () => {
|
|
5944
|
-
let i2 = 0;
|
|
5945
|
-
return {
|
|
5946
|
-
next() {
|
|
5947
|
-
if (i2 < 2) {
|
|
5948
|
-
return { value: i2++ ? props[modifierKey] || {} : res, done: false };
|
|
5949
|
-
} else {
|
|
5950
|
-
return { done: true };
|
|
5951
|
-
}
|
|
5952
|
-
}
|
|
5953
|
-
};
|
|
5954
|
-
};
|
|
5955
|
-
return res;
|
|
5956
|
-
}
|
|
5957
5909
|
function getContext() {
|
|
5958
5910
|
const i = getCurrentInstance();
|
|
5959
5911
|
if (!i) {
|
|
@@ -6525,7 +6477,7 @@ If this is a native custom element, make sure to exclude it from component resol
|
|
|
6525
6477
|
return vm;
|
|
6526
6478
|
}
|
|
6527
6479
|
}
|
|
6528
|
-
Vue.version = `2.6.14-compat:${"3.4.
|
|
6480
|
+
Vue.version = `2.6.14-compat:${"3.4.10"}`;
|
|
6529
6481
|
Vue.config = singletonApp.config;
|
|
6530
6482
|
Vue.use = (p, ...options) => {
|
|
6531
6483
|
if (p && isFunction(p.install)) {
|
|
@@ -8276,8 +8228,13 @@ Server rendered element contains fewer child nodes than client vdom.`
|
|
|
8276
8228
|
actual = el.hasAttribute(key);
|
|
8277
8229
|
expected = includeBooleanAttr(clientValue);
|
|
8278
8230
|
} else {
|
|
8279
|
-
|
|
8280
|
-
|
|
8231
|
+
if (el.hasAttribute(key)) {
|
|
8232
|
+
actual = el.getAttribute(key);
|
|
8233
|
+
} else {
|
|
8234
|
+
const serverValue = el[key];
|
|
8235
|
+
actual = isObject(serverValue) || serverValue == null ? "" : String(serverValue);
|
|
8236
|
+
}
|
|
8237
|
+
expected = isObject(clientValue) || clientValue == null ? "" : String(clientValue);
|
|
8281
8238
|
}
|
|
8282
8239
|
if (actual !== expected) {
|
|
8283
8240
|
mismatchType = `attribute`;
|
|
@@ -8286,15 +8243,15 @@ Server rendered element contains fewer child nodes than client vdom.`
|
|
|
8286
8243
|
}
|
|
8287
8244
|
if (mismatchType) {
|
|
8288
8245
|
const format = (v) => v === false ? `(not rendered)` : `${mismatchKey}="${v}"`;
|
|
8289
|
-
|
|
8290
|
-
|
|
8291
|
-
el,
|
|
8292
|
-
`
|
|
8246
|
+
const preSegment = `Hydration ${mismatchType} mismatch on`;
|
|
8247
|
+
const postSegment = `
|
|
8293
8248
|
- rendered on server: ${format(actual)}
|
|
8294
8249
|
- expected on client: ${format(expected)}
|
|
8295
8250
|
Note: this mismatch is check-only. The DOM will not be rectified in production due to performance overhead.
|
|
8296
|
-
You should fix the source of the mismatch
|
|
8297
|
-
|
|
8251
|
+
You should fix the source of the mismatch.`;
|
|
8252
|
+
{
|
|
8253
|
+
warn$1(preSegment, el, postSegment);
|
|
8254
|
+
}
|
|
8298
8255
|
return true;
|
|
8299
8256
|
}
|
|
8300
8257
|
return false;
|
|
@@ -11057,6 +11014,59 @@ Component that was made reactive: `,
|
|
|
11057
11014
|
return computed$1(getterOrOptions, debugOptions, isInSSRComponentSetup);
|
|
11058
11015
|
};
|
|
11059
11016
|
|
|
11017
|
+
function useModel(props, name, options = EMPTY_OBJ) {
|
|
11018
|
+
const i = getCurrentInstance();
|
|
11019
|
+
if (!i) {
|
|
11020
|
+
warn$1(`useModel() called without active instance.`);
|
|
11021
|
+
return ref();
|
|
11022
|
+
}
|
|
11023
|
+
if (!i.propsOptions[0][name]) {
|
|
11024
|
+
warn$1(`useModel() called with prop "${name}" which is not declared.`);
|
|
11025
|
+
return ref();
|
|
11026
|
+
}
|
|
11027
|
+
const camelizedName = camelize(name);
|
|
11028
|
+
const hyphenatedName = hyphenate(name);
|
|
11029
|
+
const res = customRef((track, trigger) => {
|
|
11030
|
+
let localValue;
|
|
11031
|
+
watchSyncEffect(() => {
|
|
11032
|
+
const propValue = props[name];
|
|
11033
|
+
if (hasChanged(localValue, propValue)) {
|
|
11034
|
+
localValue = propValue;
|
|
11035
|
+
trigger();
|
|
11036
|
+
}
|
|
11037
|
+
});
|
|
11038
|
+
return {
|
|
11039
|
+
get() {
|
|
11040
|
+
track();
|
|
11041
|
+
return options.get ? options.get(localValue) : localValue;
|
|
11042
|
+
},
|
|
11043
|
+
set(value) {
|
|
11044
|
+
const rawProps = i.vnode.props;
|
|
11045
|
+
if (!(rawProps && // check if parent has passed v-model
|
|
11046
|
+
(name in rawProps || camelizedName in rawProps || hyphenatedName in rawProps) && (`onUpdate:${name}` in rawProps || `onUpdate:${camelizedName}` in rawProps || `onUpdate:${hyphenatedName}` in rawProps)) && hasChanged(value, localValue)) {
|
|
11047
|
+
localValue = value;
|
|
11048
|
+
trigger();
|
|
11049
|
+
}
|
|
11050
|
+
i.emit(`update:${name}`, options.set ? options.set(value) : value);
|
|
11051
|
+
}
|
|
11052
|
+
};
|
|
11053
|
+
});
|
|
11054
|
+
const modifierKey = name === "modelValue" ? "modelModifiers" : `${name}Modifiers`;
|
|
11055
|
+
res[Symbol.iterator] = () => {
|
|
11056
|
+
let i2 = 0;
|
|
11057
|
+
return {
|
|
11058
|
+
next() {
|
|
11059
|
+
if (i2 < 2) {
|
|
11060
|
+
return { value: i2++ ? props[modifierKey] || {} : res, done: false };
|
|
11061
|
+
} else {
|
|
11062
|
+
return { done: true };
|
|
11063
|
+
}
|
|
11064
|
+
}
|
|
11065
|
+
};
|
|
11066
|
+
};
|
|
11067
|
+
return res;
|
|
11068
|
+
}
|
|
11069
|
+
|
|
11060
11070
|
function h(type, propsOrChildren, children) {
|
|
11061
11071
|
const l = arguments.length;
|
|
11062
11072
|
if (l === 2) {
|
|
@@ -11279,7 +11289,7 @@ Component that was made reactive: `,
|
|
|
11279
11289
|
return true;
|
|
11280
11290
|
}
|
|
11281
11291
|
|
|
11282
|
-
const version = "3.4.
|
|
11292
|
+
const version = "3.4.10";
|
|
11283
11293
|
const warn = warn$1 ;
|
|
11284
11294
|
const ErrorTypeStrings = ErrorTypeStrings$1 ;
|
|
11285
11295
|
const devtools = devtools$1 ;
|
|
@@ -11792,6 +11802,7 @@ Component that was made reactive: `,
|
|
|
11792
11802
|
|
|
11793
11803
|
function patchStyle(el, prev, next) {
|
|
11794
11804
|
const style = el.style;
|
|
11805
|
+
const currentDisplay = style.display;
|
|
11795
11806
|
const isCssString = isString(next);
|
|
11796
11807
|
if (next && !isCssString) {
|
|
11797
11808
|
if (prev && !isString(prev)) {
|
|
@@ -11805,7 +11816,6 @@ Component that was made reactive: `,
|
|
|
11805
11816
|
setStyle(style, key, next[key]);
|
|
11806
11817
|
}
|
|
11807
11818
|
} else {
|
|
11808
|
-
const currentDisplay = style.display;
|
|
11809
11819
|
if (isCssString) {
|
|
11810
11820
|
if (prev !== next) {
|
|
11811
11821
|
const cssVarText = style[CSS_VAR_TEXT];
|
|
@@ -11817,9 +11827,9 @@ Component that was made reactive: `,
|
|
|
11817
11827
|
} else if (prev) {
|
|
11818
11828
|
el.removeAttribute("style");
|
|
11819
11829
|
}
|
|
11820
|
-
|
|
11821
|
-
|
|
11822
|
-
|
|
11830
|
+
}
|
|
11831
|
+
if (vShowOldKey in el) {
|
|
11832
|
+
style.display = currentDisplay;
|
|
11823
11833
|
}
|
|
11824
11834
|
}
|
|
11825
11835
|
const semicolonRE = /[^\\];\s*$/;
|