yanzhen-design-vue
Version:
30 lines (29 loc) • 1.17 kB
JavaScript
;
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
const vue = require("vue");
const textPreview = require("./text-preview.cjs");
const useTextPreview = require("./use-text-preview.cjs");
const _hoisted_1 = ["data-value", "data-native-tag"];
const _sfc_main = /* @__PURE__ */ vue.defineComponent({
...{ name: textPreview.textPreviewName, inheritAttrs: true },
__name: "text-preview",
props: textPreview.textPreviewProps,
emits: textPreview.textPreviewEmits,
setup(__props, { expose: __expose, emit: __emit }) {
const { ns } = textPreview.textPreviewOptions;
const props = __props;
const emit = __emit;
const { _ref, previewTextRef } = useTextPreview.useTextPreview(props, emit);
__expose({
ref: _ref
});
return (_ctx, _cache) => {
return vue.openBlock(), vue.createElementBlock("span", {
class: vue.normalizeClass([vue.unref(ns).b()]),
"data-value": props.value,
"data-native-tag": props.nativeTag
}, vue.toDisplayString(vue.unref(previewTextRef) ?? "-"), 11, _hoisted_1);
};
}
});
exports.default = _sfc_main;