1 line
1.3 KiB
Plaintext
1 line
1.3 KiB
Plaintext
{"version":3,"file":"display.dc9e46a4.js","sources":["../../../heading/lib/display.ts"],"sourcesContent":["import {\n defineComponent,\n computed,\n PropType,\n h,\n} from 'vue';\nimport {\n model,\n} from '@schlechtenburg/core';\nimport {\n getDefaultData,\n IHeadingData,\n} from './util';\n\nimport './style.scss';\n\nexport default defineComponent({\n name: 'sb-heading-display',\n\n model,\n\n props: {\n data: {\n type: Object as PropType<IHeadingData>,\n default: getDefaultData,\n },\n },\n\n setup(props) {\n const classes = computed(() => ({\n 'sb-heading': true,\n [`sb-heading_align-${props.data.align}`]: true,\n [`sb-heading_${props.data.level}`]: true,\n }));\n\n return () => h(\n `h${props.data.level}`,\n {\n class: classes.value,\n innerHTML: props.data.value,\n },\n );\n },\n});\n"],"names":["defineComponent","name","model","props","data","type","Object","default","getDefaultData","[object Object]","classes","computed","sb-heading","align","level","h","class","value","innerHTML"],"mappings":"gGAgBA,MAAeA,EAAgB,CAC7BC,KAAM,qBAENC,MAAAA,EAEAC,MAAO,CACLC,KAAM,CACJC,KAAMC,OACNC,QAASC,IAIbC,MAAMN,SACEO,EAAUC,GAAS,MACvBC,cAAc,GACb,oBAAoBT,EAAMC,KAAKS,UAAU,GACzC,cAAcV,EAAMC,KAAKU,UAAU,YAG/B,IAAMC,EACX,IAAIZ,EAAMC,KAAKU,QACf,CACEE,MAAON,EAAQO,MACfC,UAAWf,EAAMC,KAAKa"} |