cione-comp-lib
Version:
`$ yarn add cione-comp-lib` 或者 `$ npm i cione-comp-lib -S`
38 lines (37 loc) • 1.06 kB
JavaScript
import { computed, resolveComponent, openBlock, createBlock, withCtx, createElementVNode } from "vue";
import Icon from "./Icon.mjs";
import _export_sfc from "../../../../_virtual/plugin-vue_export-helper.mjs";
const pointsMap = {
down: "6 9 12 15 18 9",
up: "18 15 12 9 6 15",
right: "9 18 15 12 9 6",
left: "15 18 9 12 15 6"
};
const _sfc_main = {
name: "ChevronIcon",
components: {
Icon
},
props: {
dir: {
type: String,
default: "right"
}
},
setup(props) {
const points = computed(() => pointsMap[props.dir]);
return { points };
}
};
const _hoisted_1 = ["points"];
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
const _component_Icon = resolveComponent("Icon");
return openBlock(), createBlock(_component_Icon, null, {
default: withCtx(() => [
createElementVNode("polyline", { points: $setup.points }, null, 8, _hoisted_1)
]),
_: 1
});
}
var ChevronIcon = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
export { ChevronIcon as default };