1 Star 0 Fork 0

yinta-fed / yinta-table-col-conf

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README

UI2.0 自定义表格列弹窗(Vue3 版本)

功能介绍

双向绑定表格列数据,

  • 支持显隐
  • 支持排序
  • 支持左侧固定
  • 支持一键置顶
  • 支持模糊搜索高亮
  • 支持禁用属性

引入说明

  1. 安装组件 npm install @yinta/common-table-col-conf
  2. 代码位置:https://git.yintaerp.com/yinta-fed/yinta-fed-docs/-/tree/dev/components/common/TableColConf
  3. 如果过程中有什么问题,可以在这个公共的 git 仓库中提交修改。

在 vue.config.js 中加入配置以便能进行 babel 编译

module.exports = {
  transpileDependencies: ['@yinta/common-table-col-conf'],
};
// 引入
import TableColConf from '@yinta/common-table-col-conf';
// 注册
export default {
  components: {
    TableColConf,
  },
};

使用例子

传入 menu-url 就会默认调用 portal 的接口进去存取

<template>
  <table-col-config
    v-model:columns="colModel"
    menu-url="/test"
    env="环境变量"
  />
</template>
<script setup>
const colModel = ref([
  { prop: 'planNo', label: '计划单号', width: 120, disabled: true },
  { prop: 'shippingName', label: '始发仓', width: 120 },
  { prop: 'destinationName', label: '目的仓', width: 120 },
  { prop: 'guiNumber', label: '集装箱号', width: 120 },
  { prop: 'fengNumber', label: '箱封号', width: 120 },
  { prop: 'shipmentID', label: 'ShipmentID', width: 120 },
  { prop: 'receivedSkuNum', label: '待收SKU种类数', width: 150 },
  { prop: 'receiptsSkuNum', label: '实收SKU种类数', width: 150 },
  { prop: 'receivedTotalNum', label: '待收总数量(PCS)', width: 150 },
  { prop: 'receiptsTotalNum', label: '实收总数量(PCS)', width: 150 },
  { prop: 'isDifferent', label: '是否差异', width: 120 },
  { prop: 'inBoundTime', label: '入库时间', width: 150 },
  { prop: 'status', label: '状态', width: 120 },
])
<script>

Select Attributes

参数 说明 类型 可选值 默认值
v-model 绑定值 Array
menu-url 菜单路径 String
env 环境变量 String 'prod'

Select Events

事件名称 说明 类型
save 没有传 menu-url 时的保存回调
onload 首次读取接口配置成功后回调

空文件

简介

vue3 自定义表格列 展开 收起
Vue 等 2 种语言
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
1
https://gitee.com/yinta-fed/yinta-table-col-conf.git
git@gitee.com:yinta-fed/yinta-table-col-conf.git
yinta-fed
yinta-table-col-conf
yinta-table-col-conf
master

搜索帮助