UNPKG

yuang-framework-ui-pc

Version:

yuang-framework-ui-pc Library

36 lines (35 loc) 967 B
import { defineComponent, createElementBlock, openBlock, normalizeClass } from "vue"; const _sfc_main = defineComponent({ name: "FileSort", props: { /** 当前排序字段 */ sort: String, /** 当前排序方式 */ order: String, /** 排序字段名称 */ name: { type: String, required: true } } }); const _export_sfc = (sfc, props) => { const target = sfc.__vccOpts || sfc; for (const [key, val] of props) { target[key] = val; } return target; }; function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) { return openBlock(), createElementBlock("i", { class: normalizeClass([ "ele-file-list-item-sort", { "is-asc": _ctx.name === _ctx.sort && "asc" === _ctx.order }, { "is-desc": _ctx.name === _ctx.sort && "desc" === _ctx.order } ]) }, null, 2); } const fileSort = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]); export { fileSort as default };