element-plus
Version:
A Component Library for Vue 3
34 lines (31 loc) • 771 B
JavaScript
import { defineComponent, computed, h } from 'vue';
import '../../../hooks/index.mjs';
import { useNamespace } from '../../../hooks/use-namespace/index.mjs';
const _sfc_main = defineComponent({
name: "ElMarker",
props: {
mark: {
type: [String, Object],
default: () => void 0
}
},
setup(props) {
const ns = useNamespace("slider");
const label = computed(() => {
return typeof props.mark === "string" ? props.mark : props.mark.label;
});
return {
ns,
label
};
},
render() {
var _a;
return h("div", {
class: this.ns.e("marks-text"),
style: (_a = this.mark) == null ? void 0 : _a.style
}, this.label);
}
});
export { _sfc_main as default };
//# sourceMappingURL=marker.mjs.map