@elmethis/core 0.5.2 → 0.5.4
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.
|
@@ -1,8 +1,5 @@
|
|
|
1
1
|
export interface ElmMarkdownProps {
|
|
2
2
|
markdown: string;
|
|
3
|
-
tag?: keyof HTMLElementTagNameMap;
|
|
4
3
|
}
|
|
5
|
-
declare const _default: import('vue').DefineComponent<ElmMarkdownProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ElmMarkdownProps> & Readonly<{}>, {
|
|
6
|
-
tag: keyof HTMLElementTagNameMap;
|
|
7
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
4
|
+
declare const _default: import('vue').DefineComponent<ElmMarkdownProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ElmMarkdownProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
8
5
|
export default _default;
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
console.error("vite-plugin-css-injected-by-js", e);
|
|
11
11
|
}
|
|
12
12
|
})();
|
|
13
|
-
import { defineComponent, defineAsyncComponent,
|
|
13
|
+
import { defineComponent, defineAsyncComponent, createElementBlock, openBlock, createBlock, resolveDynamicComponent, unref, h } from "vue";
|
|
14
14
|
import { marked as d } from "../../node_modules/.pnpm/marked@16.2.0/node_modules/marked/lib/marked.esm.mjs";
|
|
15
15
|
import "@mdi/js";
|
|
16
16
|
import "polished";
|
|
@@ -27,8 +27,7 @@ import "nanoid";
|
|
|
27
27
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
28
28
|
__name: "ElmMarkdown",
|
|
29
29
|
props: {
|
|
30
|
-
markdown: {}
|
|
31
|
-
tag: { default: "div" }
|
|
30
|
+
markdown: {}
|
|
32
31
|
},
|
|
33
32
|
setup(__props) {
|
|
34
33
|
const props = __props;
|
|
@@ -288,12 +287,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
288
287
|
};
|
|
289
288
|
const renderResult = render({ markdown: props.markdown });
|
|
290
289
|
return (_ctx, _cache) => {
|
|
291
|
-
return openBlock(),
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
]),
|
|
295
|
-
_: 1
|
|
296
|
-
});
|
|
290
|
+
return openBlock(), createElementBlock("div", null, [
|
|
291
|
+
(openBlock(), createBlock(resolveDynamicComponent(() => unref(renderResult))))
|
|
292
|
+
]);
|
|
297
293
|
};
|
|
298
294
|
}
|
|
299
295
|
});
|