We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bee5704 commit dd07c8aCopy full SHA for dd07c8a
src/plugin/VResizeDrawer.vue
@@ -116,6 +116,19 @@ watchEffect(() => {
116
settings.value = { ...props, ...injectedOptions };
117
});
118
119
+watch(() => props.width, (newVal) => {
120
+ defaultWidth.value = newVal;
121
+ resizedAmount.value = useConvertToUnit({ value: newVal }) || undefined;
122
+
123
+ useSetStorage({
124
+ rail: settings.value.rail,
125
+ resizedAmount: resizedAmount.value,
126
+ saveAmount: settings.value.saveHeight || settings.value.saveWidth,
127
+ storageName: storageNameInternal.value,
128
+ storageType: settings.value.storageType,
129
+ });
130
+});
131
132
const handleIconSizeInternal = toRef(settings.value, 'handleIconSize');
133
const handlePositionInternal = toRef(settings.value, 'handlePosition');
134
0 commit comments