Skip to content

Commit a820edc

Browse files
committed
Apply biome fixes
1 parent 16c0999 commit a820edc

File tree

1 file changed

+12
-22
lines changed

1 file changed

+12
-22
lines changed

packages/vue/index.js

Lines changed: 12 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ import {
1111
unref,
1212
} from "vue";
1313

14-
1514
/**
1615
* @template {Record<string, any>} T
1716
* @typedef RenderContext
@@ -92,14 +91,11 @@ export function useModelState(key) {
9291
return model.get(unref(key));
9392
},
9493
set(newValue) {
95-
model.set(
96-
unref(key),
97-
toValue(newValue),
98-
);
94+
model.set(unref(key), toValue(newValue));
9995
model.save_changes();
10096
},
101-
}
102-
})
97+
};
98+
});
10399

104100
const update = () => {
105101
value.value = model.get(unref(key));
@@ -121,14 +117,14 @@ export function useModelState(key) {
121117
* @type {import("vue").DefineSetupFnComponent<RenderContext<any>>}
122118
*/
123119
const WidgetWrapper = defineComponent(
124-
({ model, experimental }, ctx) => {
125-
provide(RENDER_CONTEXT_KEY, { model, experimental });
126-
return () => ctx.slots?.default?.();
127-
},
128-
{
129-
props: ["model", "experimental"],
130-
name: 'WidgetWrapper'
131-
}
120+
({ model, experimental }, ctx) => {
121+
provide(RENDER_CONTEXT_KEY, { model, experimental });
122+
return () => ctx.slots?.default?.();
123+
},
124+
{
125+
props: ["model", "experimental"],
126+
name: "WidgetWrapper",
127+
},
132128
);
133129

134130
/**
@@ -137,13 +133,7 @@ const WidgetWrapper = defineComponent(
137133
*/
138134
export function createRender(Widget) {
139135
return ({ el, model, experimental }) => {
140-
const app = createApp(
141-
h(
142-
WidgetWrapper,
143-
{ model, experimental },
144-
h(Widget),
145-
),
146-
)
136+
const app = createApp(h(WidgetWrapper, { model, experimental }, h(Widget)));
147137
app.mount(el);
148138

149139
return () => app.unmount();

0 commit comments

Comments
 (0)