UNPKG

yanzhen-design-vue

Version:

24 lines (23 loc) 677 B
import { buildProps, definePropType, buildEmits } from "@yanzhen-libs/utils-vue"; import "../../../hooks/index.mjs"; import { useNamespace } from "../../../hooks/use-namespace/index.mjs"; const ns = useNamespace("text-preview"); const textPreviewOptions = { ns, class: ns.b(), name: ns.defineVNodeName() }; const textPreviewName = textPreviewOptions.name; const textPreviewProps = buildProps({ value: definePropType(null), tag: String, nativeTag: definePropType([String, Object]), nativeTagFormatter: definePropType(Function) }); const textPreviewEmits = buildEmits({}); export { textPreviewEmits, textPreviewName, textPreviewOptions, textPreviewProps };