@opensig/opendesign
Version:
30 lines (29 loc) • 883 B
JavaScript
import { defineComponent, computed, createElementBlock, openBlock, normalizeStyle, toDisplayString } from "vue";
import { isString } from "../_utils/is.mjs";
import { sliderMarksProps } from "./types.mjs";
const _sfc_main = /* @__PURE__ */ defineComponent({
__name: "OSliderMarker",
props: sliderMarksProps,
setup(__props) {
const props = __props;
const label = computed(() => {
return isString(props.mark) ? props.mark : props.mark.label;
});
const style = computed(() => isString(props.mark) ? void 0 : props.mark.style);
return (_ctx, _cache) => {
return openBlock(), createElementBlock(
"div",
{
class: "o-slider-marks-text",
style: normalizeStyle(style.value)
},
toDisplayString(label.value),
5
/* TEXT, STYLE */
);
};
}
});
export {
_sfc_main as default
};