File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed
Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -306,9 +306,10 @@ declare module 'vue' {
306306
307307Here is the recommended way to enable type checking in SFC templates of Custom Elements that are not built with Vue.
308308
309- > [ ! Note]
309+ :::tip Note
310310> This approach is one possible way to do it, but it may vary depending on the
311311> framework being used to create the custom elements.
312+ :::
312313
313314Suppose we have a custom element with some JS properties and events defined, and it is shipped in a library called ` some-lib ` :
314315
@@ -389,11 +390,12 @@ type VueEmit<T extends EventMap> = EmitFn<{
389390}>
390391` ` `
391392
392- > [!Note]
393- > We marked ` $props ` and ` $emit ` as deprecated so that when we get a ` ref ` to
394- > a custom element we will not be tempted to use these properties, as these
395- > properties are for type checking purposes only when it comes to custom elements.
396- > These properties do not actually exist on the custom element instances.
393+ :::tip Note
394+ - We marked ` $props ` and ` $emit ` as deprecated so that when we get a ` ref ` to
395+ - a custom element we will not be tempted to use these properties, as these
396+ - properties are for type checking purposes only when it comes to custom elements.
397+ - These properties do not actually exist on the custom element instances.
398+ :::
397399
398400Using the type helper we can now select the JS properties that should be exposed for type checking in Vue templates:
399401
You can’t perform that action at this time.
0 commit comments