@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
|
@@ -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
|
**/
|
|
@@ -3201,6 +3201,10 @@ const SuspenseImpl = {
|
|
|
3201
3201
|
rendererInternals
|
|
3202
3202
|
);
|
|
3203
3203
|
} else {
|
|
3204
|
+
if (parentSuspense && parentSuspense.deps > 0) {
|
|
3205
|
+
n2.suspense = n1.suspense;
|
|
3206
|
+
return;
|
|
3207
|
+
}
|
|
3204
3208
|
patchSuspense(
|
|
3205
3209
|
n1,
|
|
3206
3210
|
n2,
|
|
@@ -5876,58 +5880,6 @@ function useSlots() {
|
|
|
5876
5880
|
function useAttrs() {
|
|
5877
5881
|
return getContext().attrs;
|
|
5878
5882
|
}
|
|
5879
|
-
function useModel(props, name, options = EMPTY_OBJ) {
|
|
5880
|
-
const i = getCurrentInstance();
|
|
5881
|
-
if (!!(process.env.NODE_ENV !== "production") && !i) {
|
|
5882
|
-
warn$1(`useModel() called without active instance.`);
|
|
5883
|
-
return ref();
|
|
5884
|
-
}
|
|
5885
|
-
if (!!(process.env.NODE_ENV !== "production") && !i.propsOptions[0][name]) {
|
|
5886
|
-
warn$1(`useModel() called with prop "${name}" which is not declared.`);
|
|
5887
|
-
return ref();
|
|
5888
|
-
}
|
|
5889
|
-
const camelizedName = camelize(name);
|
|
5890
|
-
const hyphenatedName = hyphenate(name);
|
|
5891
|
-
const res = customRef((track, trigger) => {
|
|
5892
|
-
let localValue;
|
|
5893
|
-
watchSyncEffect(() => {
|
|
5894
|
-
const propValue = props[name];
|
|
5895
|
-
if (hasChanged(localValue, propValue)) {
|
|
5896
|
-
localValue = propValue;
|
|
5897
|
-
trigger();
|
|
5898
|
-
}
|
|
5899
|
-
});
|
|
5900
|
-
return {
|
|
5901
|
-
get() {
|
|
5902
|
-
track();
|
|
5903
|
-
return options.get ? options.get(localValue) : localValue;
|
|
5904
|
-
},
|
|
5905
|
-
set(value) {
|
|
5906
|
-
const rawProps = i.vnode.props;
|
|
5907
|
-
if (!(rawProps && // check if parent has passed v-model
|
|
5908
|
-
(name in rawProps || camelizedName in rawProps || hyphenatedName in rawProps) && (`onUpdate:${name}` in rawProps || `onUpdate:${camelizedName}` in rawProps || `onUpdate:${hyphenatedName}` in rawProps)) && hasChanged(value, localValue)) {
|
|
5909
|
-
localValue = value;
|
|
5910
|
-
trigger();
|
|
5911
|
-
}
|
|
5912
|
-
i.emit(`update:${name}`, options.set ? options.set(value) : value);
|
|
5913
|
-
}
|
|
5914
|
-
};
|
|
5915
|
-
});
|
|
5916
|
-
const modifierKey = name === "modelValue" ? "modelModifiers" : `${name}Modifiers`;
|
|
5917
|
-
res[Symbol.iterator] = () => {
|
|
5918
|
-
let i2 = 0;
|
|
5919
|
-
return {
|
|
5920
|
-
next() {
|
|
5921
|
-
if (i2 < 2) {
|
|
5922
|
-
return { value: i2++ ? props[modifierKey] || {} : res, done: false };
|
|
5923
|
-
} else {
|
|
5924
|
-
return { done: true };
|
|
5925
|
-
}
|
|
5926
|
-
}
|
|
5927
|
-
};
|
|
5928
|
-
};
|
|
5929
|
-
return res;
|
|
5930
|
-
}
|
|
5931
5883
|
function getContext() {
|
|
5932
5884
|
const i = getCurrentInstance();
|
|
5933
5885
|
if (!!(process.env.NODE_ENV !== "production") && !i) {
|
|
@@ -6501,7 +6453,7 @@ function createCompatVue$1(createApp, createSingletonApp) {
|
|
|
6501
6453
|
return vm;
|
|
6502
6454
|
}
|
|
6503
6455
|
}
|
|
6504
|
-
Vue.version = `2.6.14-compat:${"3.4.
|
|
6456
|
+
Vue.version = `2.6.14-compat:${"3.4.10"}`;
|
|
6505
6457
|
Vue.config = singletonApp.config;
|
|
6506
6458
|
Vue.use = (p, ...options) => {
|
|
6507
6459
|
if (p && isFunction(p.install)) {
|
|
@@ -8265,8 +8217,13 @@ function propHasMismatch(el, key, clientValue, vnode) {
|
|
|
8265
8217
|
actual = el.hasAttribute(key);
|
|
8266
8218
|
expected = includeBooleanAttr(clientValue);
|
|
8267
8219
|
} else {
|
|
8268
|
-
|
|
8269
|
-
|
|
8220
|
+
if (el.hasAttribute(key)) {
|
|
8221
|
+
actual = el.getAttribute(key);
|
|
8222
|
+
} else {
|
|
8223
|
+
const serverValue = el[key];
|
|
8224
|
+
actual = isObject(serverValue) || serverValue == null ? "" : String(serverValue);
|
|
8225
|
+
}
|
|
8226
|
+
expected = isObject(clientValue) || clientValue == null ? "" : String(clientValue);
|
|
8270
8227
|
}
|
|
8271
8228
|
if (actual !== expected) {
|
|
8272
8229
|
mismatchType = `attribute`;
|
|
@@ -8275,15 +8232,15 @@ function propHasMismatch(el, key, clientValue, vnode) {
|
|
|
8275
8232
|
}
|
|
8276
8233
|
if (mismatchType) {
|
|
8277
8234
|
const format = (v) => v === false ? `(not rendered)` : `${mismatchKey}="${v}"`;
|
|
8278
|
-
|
|
8279
|
-
|
|
8280
|
-
el,
|
|
8281
|
-
`
|
|
8235
|
+
const preSegment = `Hydration ${mismatchType} mismatch on`;
|
|
8236
|
+
const postSegment = `
|
|
8282
8237
|
- rendered on server: ${format(actual)}
|
|
8283
8238
|
- expected on client: ${format(expected)}
|
|
8284
8239
|
Note: this mismatch is check-only. The DOM will not be rectified in production due to performance overhead.
|
|
8285
|
-
You should fix the source of the mismatch
|
|
8286
|
-
|
|
8240
|
+
You should fix the source of the mismatch.`;
|
|
8241
|
+
{
|
|
8242
|
+
warn$1(preSegment, el, postSegment);
|
|
8243
|
+
}
|
|
8287
8244
|
return true;
|
|
8288
8245
|
}
|
|
8289
8246
|
return false;
|
|
@@ -11117,6 +11074,59 @@ const computed = (getterOrOptions, debugOptions) => {
|
|
|
11117
11074
|
return computed$1(getterOrOptions, debugOptions, isInSSRComponentSetup);
|
|
11118
11075
|
};
|
|
11119
11076
|
|
|
11077
|
+
function useModel(props, name, options = EMPTY_OBJ) {
|
|
11078
|
+
const i = getCurrentInstance();
|
|
11079
|
+
if (!!(process.env.NODE_ENV !== "production") && !i) {
|
|
11080
|
+
warn$1(`useModel() called without active instance.`);
|
|
11081
|
+
return ref();
|
|
11082
|
+
}
|
|
11083
|
+
if (!!(process.env.NODE_ENV !== "production") && !i.propsOptions[0][name]) {
|
|
11084
|
+
warn$1(`useModel() called with prop "${name}" which is not declared.`);
|
|
11085
|
+
return ref();
|
|
11086
|
+
}
|
|
11087
|
+
const camelizedName = camelize(name);
|
|
11088
|
+
const hyphenatedName = hyphenate(name);
|
|
11089
|
+
const res = customRef((track, trigger) => {
|
|
11090
|
+
let localValue;
|
|
11091
|
+
watchSyncEffect(() => {
|
|
11092
|
+
const propValue = props[name];
|
|
11093
|
+
if (hasChanged(localValue, propValue)) {
|
|
11094
|
+
localValue = propValue;
|
|
11095
|
+
trigger();
|
|
11096
|
+
}
|
|
11097
|
+
});
|
|
11098
|
+
return {
|
|
11099
|
+
get() {
|
|
11100
|
+
track();
|
|
11101
|
+
return options.get ? options.get(localValue) : localValue;
|
|
11102
|
+
},
|
|
11103
|
+
set(value) {
|
|
11104
|
+
const rawProps = i.vnode.props;
|
|
11105
|
+
if (!(rawProps && // check if parent has passed v-model
|
|
11106
|
+
(name in rawProps || camelizedName in rawProps || hyphenatedName in rawProps) && (`onUpdate:${name}` in rawProps || `onUpdate:${camelizedName}` in rawProps || `onUpdate:${hyphenatedName}` in rawProps)) && hasChanged(value, localValue)) {
|
|
11107
|
+
localValue = value;
|
|
11108
|
+
trigger();
|
|
11109
|
+
}
|
|
11110
|
+
i.emit(`update:${name}`, options.set ? options.set(value) : value);
|
|
11111
|
+
}
|
|
11112
|
+
};
|
|
11113
|
+
});
|
|
11114
|
+
const modifierKey = name === "modelValue" ? "modelModifiers" : `${name}Modifiers`;
|
|
11115
|
+
res[Symbol.iterator] = () => {
|
|
11116
|
+
let i2 = 0;
|
|
11117
|
+
return {
|
|
11118
|
+
next() {
|
|
11119
|
+
if (i2 < 2) {
|
|
11120
|
+
return { value: i2++ ? props[modifierKey] || {} : res, done: false };
|
|
11121
|
+
} else {
|
|
11122
|
+
return { done: true };
|
|
11123
|
+
}
|
|
11124
|
+
}
|
|
11125
|
+
};
|
|
11126
|
+
};
|
|
11127
|
+
return res;
|
|
11128
|
+
}
|
|
11129
|
+
|
|
11120
11130
|
function h(type, propsOrChildren, children) {
|
|
11121
11131
|
const l = arguments.length;
|
|
11122
11132
|
if (l === 2) {
|
|
@@ -11339,11 +11349,11 @@ function isMemoSame(cached, memo) {
|
|
|
11339
11349
|
return true;
|
|
11340
11350
|
}
|
|
11341
11351
|
|
|
11342
|
-
const version = "3.4.
|
|
11352
|
+
const version = "3.4.10";
|
|
11343
11353
|
const warn = !!(process.env.NODE_ENV !== "production") ? warn$1 : NOOP;
|
|
11344
11354
|
const ErrorTypeStrings = ErrorTypeStrings$1 ;
|
|
11345
|
-
const devtools = !!(process.env.NODE_ENV !== "production") ||
|
|
11346
|
-
const setDevtoolsHook = !!(process.env.NODE_ENV !== "production") ||
|
|
11355
|
+
const devtools = !!(process.env.NODE_ENV !== "production") || true ? devtools$1 : void 0;
|
|
11356
|
+
const setDevtoolsHook = !!(process.env.NODE_ENV !== "production") || true ? setDevtoolsHook$1 : NOOP;
|
|
11347
11357
|
const _ssrUtils = {
|
|
11348
11358
|
createComponentInstance,
|
|
11349
11359
|
setupComponent,
|
|
@@ -11867,6 +11877,7 @@ function setVarsOnNode(el, vars) {
|
|
|
11867
11877
|
|
|
11868
11878
|
function patchStyle(el, prev, next) {
|
|
11869
11879
|
const style = el.style;
|
|
11880
|
+
const currentDisplay = style.display;
|
|
11870
11881
|
const isCssString = isString(next);
|
|
11871
11882
|
if (next && !isCssString) {
|
|
11872
11883
|
if (prev && !isString(prev)) {
|
|
@@ -11880,7 +11891,6 @@ function patchStyle(el, prev, next) {
|
|
|
11880
11891
|
setStyle(style, key, next[key]);
|
|
11881
11892
|
}
|
|
11882
11893
|
} else {
|
|
11883
|
-
const currentDisplay = style.display;
|
|
11884
11894
|
if (isCssString) {
|
|
11885
11895
|
if (prev !== next) {
|
|
11886
11896
|
const cssVarText = style[CSS_VAR_TEXT];
|
|
@@ -11892,9 +11902,9 @@ function patchStyle(el, prev, next) {
|
|
|
11892
11902
|
} else if (prev) {
|
|
11893
11903
|
el.removeAttribute("style");
|
|
11894
11904
|
}
|
|
11895
|
-
|
|
11896
|
-
|
|
11897
|
-
|
|
11905
|
+
}
|
|
11906
|
+
if (vShowOldKey in el) {
|
|
11907
|
+
style.display = currentDisplay;
|
|
11898
11908
|
}
|
|
11899
11909
|
}
|
|
11900
11910
|
const semicolonRE = /[^\\];\s*$/;
|
|
@@ -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
|
**/
|
|
@@ -3197,6 +3197,10 @@ If this is a native custom element, make sure to exclude it from component resol
|
|
|
3197
3197
|
rendererInternals
|
|
3198
3198
|
);
|
|
3199
3199
|
} else {
|
|
3200
|
+
if (parentSuspense && parentSuspense.deps > 0) {
|
|
3201
|
+
n2.suspense = n1.suspense;
|
|
3202
|
+
return;
|
|
3203
|
+
}
|
|
3200
3204
|
patchSuspense(
|
|
3201
3205
|
n1,
|
|
3202
3206
|
n2,
|
|
@@ -5837,58 +5841,6 @@ If this is a native custom element, make sure to exclude it from component resol
|
|
|
5837
5841
|
function useAttrs() {
|
|
5838
5842
|
return getContext().attrs;
|
|
5839
5843
|
}
|
|
5840
|
-
function useModel(props, name, options = EMPTY_OBJ) {
|
|
5841
|
-
const i = getCurrentInstance();
|
|
5842
|
-
if (!i) {
|
|
5843
|
-
warn$1(`useModel() called without active instance.`);
|
|
5844
|
-
return ref();
|
|
5845
|
-
}
|
|
5846
|
-
if (!i.propsOptions[0][name]) {
|
|
5847
|
-
warn$1(`useModel() called with prop "${name}" which is not declared.`);
|
|
5848
|
-
return ref();
|
|
5849
|
-
}
|
|
5850
|
-
const camelizedName = camelize(name);
|
|
5851
|
-
const hyphenatedName = hyphenate(name);
|
|
5852
|
-
const res = customRef((track, trigger) => {
|
|
5853
|
-
let localValue;
|
|
5854
|
-
watchSyncEffect(() => {
|
|
5855
|
-
const propValue = props[name];
|
|
5856
|
-
if (hasChanged(localValue, propValue)) {
|
|
5857
|
-
localValue = propValue;
|
|
5858
|
-
trigger();
|
|
5859
|
-
}
|
|
5860
|
-
});
|
|
5861
|
-
return {
|
|
5862
|
-
get() {
|
|
5863
|
-
track();
|
|
5864
|
-
return options.get ? options.get(localValue) : localValue;
|
|
5865
|
-
},
|
|
5866
|
-
set(value) {
|
|
5867
|
-
const rawProps = i.vnode.props;
|
|
5868
|
-
if (!(rawProps && // check if parent has passed v-model
|
|
5869
|
-
(name in rawProps || camelizedName in rawProps || hyphenatedName in rawProps) && (`onUpdate:${name}` in rawProps || `onUpdate:${camelizedName}` in rawProps || `onUpdate:${hyphenatedName}` in rawProps)) && hasChanged(value, localValue)) {
|
|
5870
|
-
localValue = value;
|
|
5871
|
-
trigger();
|
|
5872
|
-
}
|
|
5873
|
-
i.emit(`update:${name}`, options.set ? options.set(value) : value);
|
|
5874
|
-
}
|
|
5875
|
-
};
|
|
5876
|
-
});
|
|
5877
|
-
const modifierKey = name === "modelValue" ? "modelModifiers" : `${name}Modifiers`;
|
|
5878
|
-
res[Symbol.iterator] = () => {
|
|
5879
|
-
let i2 = 0;
|
|
5880
|
-
return {
|
|
5881
|
-
next() {
|
|
5882
|
-
if (i2 < 2) {
|
|
5883
|
-
return { value: i2++ ? props[modifierKey] || {} : res, done: false };
|
|
5884
|
-
} else {
|
|
5885
|
-
return { done: true };
|
|
5886
|
-
}
|
|
5887
|
-
}
|
|
5888
|
-
};
|
|
5889
|
-
};
|
|
5890
|
-
return res;
|
|
5891
|
-
}
|
|
5892
5844
|
function getContext() {
|
|
5893
5845
|
const i = getCurrentInstance();
|
|
5894
5846
|
if (!i) {
|
|
@@ -6460,7 +6412,7 @@ If this is a native custom element, make sure to exclude it from component resol
|
|
|
6460
6412
|
return vm;
|
|
6461
6413
|
}
|
|
6462
6414
|
}
|
|
6463
|
-
Vue.version = `2.6.14-compat:${"3.4.
|
|
6415
|
+
Vue.version = `2.6.14-compat:${"3.4.10"}`;
|
|
6464
6416
|
Vue.config = singletonApp.config;
|
|
6465
6417
|
Vue.use = (p, ...options) => {
|
|
6466
6418
|
if (p && isFunction(p.install)) {
|
|
@@ -8211,8 +8163,13 @@ Server rendered element contains fewer child nodes than client vdom.`
|
|
|
8211
8163
|
actual = el.hasAttribute(key);
|
|
8212
8164
|
expected = includeBooleanAttr(clientValue);
|
|
8213
8165
|
} else {
|
|
8214
|
-
|
|
8215
|
-
|
|
8166
|
+
if (el.hasAttribute(key)) {
|
|
8167
|
+
actual = el.getAttribute(key);
|
|
8168
|
+
} else {
|
|
8169
|
+
const serverValue = el[key];
|
|
8170
|
+
actual = isObject(serverValue) || serverValue == null ? "" : String(serverValue);
|
|
8171
|
+
}
|
|
8172
|
+
expected = isObject(clientValue) || clientValue == null ? "" : String(clientValue);
|
|
8216
8173
|
}
|
|
8217
8174
|
if (actual !== expected) {
|
|
8218
8175
|
mismatchType = `attribute`;
|
|
@@ -8221,15 +8178,15 @@ Server rendered element contains fewer child nodes than client vdom.`
|
|
|
8221
8178
|
}
|
|
8222
8179
|
if (mismatchType) {
|
|
8223
8180
|
const format = (v) => v === false ? `(not rendered)` : `${mismatchKey}="${v}"`;
|
|
8224
|
-
|
|
8225
|
-
|
|
8226
|
-
el,
|
|
8227
|
-
`
|
|
8181
|
+
const preSegment = `Hydration ${mismatchType} mismatch on`;
|
|
8182
|
+
const postSegment = `
|
|
8228
8183
|
- rendered on server: ${format(actual)}
|
|
8229
8184
|
- expected on client: ${format(expected)}
|
|
8230
8185
|
Note: this mismatch is check-only. The DOM will not be rectified in production due to performance overhead.
|
|
8231
|
-
You should fix the source of the mismatch
|
|
8232
|
-
|
|
8186
|
+
You should fix the source of the mismatch.`;
|
|
8187
|
+
{
|
|
8188
|
+
warn$1(preSegment, el, postSegment);
|
|
8189
|
+
}
|
|
8233
8190
|
return true;
|
|
8234
8191
|
}
|
|
8235
8192
|
return false;
|
|
@@ -10992,6 +10949,59 @@ Component that was made reactive: `,
|
|
|
10992
10949
|
return computed$1(getterOrOptions, debugOptions, isInSSRComponentSetup);
|
|
10993
10950
|
};
|
|
10994
10951
|
|
|
10952
|
+
function useModel(props, name, options = EMPTY_OBJ) {
|
|
10953
|
+
const i = getCurrentInstance();
|
|
10954
|
+
if (!i) {
|
|
10955
|
+
warn$1(`useModel() called without active instance.`);
|
|
10956
|
+
return ref();
|
|
10957
|
+
}
|
|
10958
|
+
if (!i.propsOptions[0][name]) {
|
|
10959
|
+
warn$1(`useModel() called with prop "${name}" which is not declared.`);
|
|
10960
|
+
return ref();
|
|
10961
|
+
}
|
|
10962
|
+
const camelizedName = camelize(name);
|
|
10963
|
+
const hyphenatedName = hyphenate(name);
|
|
10964
|
+
const res = customRef((track, trigger) => {
|
|
10965
|
+
let localValue;
|
|
10966
|
+
watchSyncEffect(() => {
|
|
10967
|
+
const propValue = props[name];
|
|
10968
|
+
if (hasChanged(localValue, propValue)) {
|
|
10969
|
+
localValue = propValue;
|
|
10970
|
+
trigger();
|
|
10971
|
+
}
|
|
10972
|
+
});
|
|
10973
|
+
return {
|
|
10974
|
+
get() {
|
|
10975
|
+
track();
|
|
10976
|
+
return options.get ? options.get(localValue) : localValue;
|
|
10977
|
+
},
|
|
10978
|
+
set(value) {
|
|
10979
|
+
const rawProps = i.vnode.props;
|
|
10980
|
+
if (!(rawProps && // check if parent has passed v-model
|
|
10981
|
+
(name in rawProps || camelizedName in rawProps || hyphenatedName in rawProps) && (`onUpdate:${name}` in rawProps || `onUpdate:${camelizedName}` in rawProps || `onUpdate:${hyphenatedName}` in rawProps)) && hasChanged(value, localValue)) {
|
|
10982
|
+
localValue = value;
|
|
10983
|
+
trigger();
|
|
10984
|
+
}
|
|
10985
|
+
i.emit(`update:${name}`, options.set ? options.set(value) : value);
|
|
10986
|
+
}
|
|
10987
|
+
};
|
|
10988
|
+
});
|
|
10989
|
+
const modifierKey = name === "modelValue" ? "modelModifiers" : `${name}Modifiers`;
|
|
10990
|
+
res[Symbol.iterator] = () => {
|
|
10991
|
+
let i2 = 0;
|
|
10992
|
+
return {
|
|
10993
|
+
next() {
|
|
10994
|
+
if (i2 < 2) {
|
|
10995
|
+
return { value: i2++ ? props[modifierKey] || {} : res, done: false };
|
|
10996
|
+
} else {
|
|
10997
|
+
return { done: true };
|
|
10998
|
+
}
|
|
10999
|
+
}
|
|
11000
|
+
};
|
|
11001
|
+
};
|
|
11002
|
+
return res;
|
|
11003
|
+
}
|
|
11004
|
+
|
|
10995
11005
|
function h(type, propsOrChildren, children) {
|
|
10996
11006
|
const l = arguments.length;
|
|
10997
11007
|
if (l === 2) {
|
|
@@ -11214,7 +11224,7 @@ Component that was made reactive: `,
|
|
|
11214
11224
|
return true;
|
|
11215
11225
|
}
|
|
11216
11226
|
|
|
11217
|
-
const version = "3.4.
|
|
11227
|
+
const version = "3.4.10";
|
|
11218
11228
|
const warn = warn$1 ;
|
|
11219
11229
|
const ErrorTypeStrings = ErrorTypeStrings$1 ;
|
|
11220
11230
|
const devtools = devtools$1 ;
|
|
@@ -11727,6 +11737,7 @@ Component that was made reactive: `,
|
|
|
11727
11737
|
|
|
11728
11738
|
function patchStyle(el, prev, next) {
|
|
11729
11739
|
const style = el.style;
|
|
11740
|
+
const currentDisplay = style.display;
|
|
11730
11741
|
const isCssString = isString(next);
|
|
11731
11742
|
if (next && !isCssString) {
|
|
11732
11743
|
if (prev && !isString(prev)) {
|
|
@@ -11740,7 +11751,6 @@ Component that was made reactive: `,
|
|
|
11740
11751
|
setStyle(style, key, next[key]);
|
|
11741
11752
|
}
|
|
11742
11753
|
} else {
|
|
11743
|
-
const currentDisplay = style.display;
|
|
11744
11754
|
if (isCssString) {
|
|
11745
11755
|
if (prev !== next) {
|
|
11746
11756
|
const cssVarText = style[CSS_VAR_TEXT];
|
|
@@ -11752,9 +11762,9 @@ Component that was made reactive: `,
|
|
|
11752
11762
|
} else if (prev) {
|
|
11753
11763
|
el.removeAttribute("style");
|
|
11754
11764
|
}
|
|
11755
|
-
|
|
11756
|
-
|
|
11757
|
-
|
|
11765
|
+
}
|
|
11766
|
+
if (vShowOldKey in el) {
|
|
11767
|
+
style.display = currentDisplay;
|
|
11758
11768
|
}
|
|
11759
11769
|
}
|
|
11760
11770
|
const semicolonRE = /[^\\];\s*$/;
|