yuang-framework-ui-pc
Version:
yuang-framework-ui-pc Library
35 lines (34 loc) • 932 B
JavaScript
"use strict";
const vue = require("vue");
const _sfc_main = vue.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 vue.openBlock(), vue.createElementBlock("i", {
class: vue.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]]);
module.exports = fileSort;