EOS Low-Code Platform 8 EOS Low-Code Platform 8
产品简介
学习指南
更新说明
安装与集成
初见EOS
低代码开发手册
专业代码开发手册
专题场景实战
公共服务框架
应用运行治理
升级手册
常见问题
  • PmSort
  • 基础用法
  • Props

# PmSort

多列排序

# 基础用法

image-20241224145945059
<PmSort 
  v-model="sortInfo" 
  :orderFields="orderFields" 
  labelField="label" 
  valueField="code"
  directionField="direction"
/>
{{sortInfo}}
<script>
export default {
  data() {
    return {
      sortInfo:'',
      orderFields: [
          {
            code: 'priority',
            label: '优先级',
            direction: 'asc',
          },
          {
            code: 'assignee',
            label: '责任人',
            direction: '',
          },
          {
            code: 'dueTime',
            label: '到期时间',
            direction: '',
          },
          {
            code: 'createTime',
            label: '创建时间',
            direction: 'desc',
          },
        ],
      }
  },
}
</script>
显示代码 复制代码 复制代码

# Props

参数 说明 类型 可选值 默认值
orderFields 排序字段数组 array -- []
labelField label字段 string -- label
valueField value字段 string -- value
directionField direction字段 string -- direction

← list 动态列表 弹框 →