1.20.2 • Published 11 months ago

ytg7vue v1.20.2

Weekly downloads
-
License
commerical
Repository
-
Last release
11 months ago

基础命令

npm install --registry=https://registry.npm.taobao.org

npm run build:prod 打包

npm publish 发布

版本发布

1.0.0 初始化项目并测试

1.0.1 项目搭建完成

  • Grid双击可以直接编辑。
  • Grid翻页位置增加按钮“增加、删除”,并且可以控制按钮是否可用。

  • Grid默认分页行数改成100。

1.0.3 双击编辑可控制

is-not-db-edit 关闭双击编辑功能

:hd-btn-tool=false 隐藏列表底部按钮工具栏

1.0.4 添加单证上传 和 单证查看 示例代码如下 <el-button class="filter-item" @click="billUpload" type="primary">单证上传 <el-button class="filter-item" @click="billShow" type="primary">单证查看

<bill-upload ref="billUpload"></bill-upload>
<bill-show ref="billShow"></bill-show>

billUpload() {
    this.$refs.billUpload.show(this.billTyp, this.billId);
},
billShow() {
    this.$refs.billShow.show(this.billTyp, this.billId);
}

1.0.5 修复hd-grid事件不能传到el-table bug

1.0.6 hdbutton按钮样式自动变化

1.0.7 hdbutton添加默认样式

复制,取消选择。

复制删除bug

1.0.8 按钮支持自定义样式 custome-class="class"

上传组件样式修改

增加HdFilterBox组件,封装查询样式

按钮展现分成3部分示例用法如下:

<div class="filter-container" slot="query">
      <hd-filter-box>
        <template>
          <el-input @keyup.enter.native="$refs.grid.doQuery()" style="width: 200px;" class="filter-item"
                    placeholder="名称"
                    v-model="hdQuery.query.anyQuery">
          </el-input>
        </template>
        <template slot="searchBtn">
          <el-button class="filter-item bn-del" @click="$refs.grid.doQuery()" icon="search" type="primary" ref="q"
                     keyType="query">搜索
          </el-button>
        </template>
        <template slot="otherBtn">
          <el-button class="filter-item" @click="$refs.grid.doRemoveAll()" type="danger" keyType="del">删除
          </el-button>
        </template>
      </hd-filter-box>
    </div>
 

1.8.6 优化hd-filter-box,查询宽度智能变化,下拉按钮自动隐藏

1.9.0 el-table-column 支持展示html 添加参数is-html

1.10.1 el-table-column 宽度自动撑开

1.10.2 修复按钮隐藏导致分页不显示bug

1.10.3 下拉统一去掉双击编辑和底部按钮 1.12.1 sortable="xxx" 安照xxx进行排序,排序不走后台

<el-table-column width="120px" align="left" label="船名" prop="shipNam" sortable="shipNam">
</el-table-column>
<el-table-column width="100px" align="left" label="MMSI号" prop="sdataId" 
        :inputFormat="(result, row)=>row.mmsi" sortable="mmsi">
</el-table-column>

1.12.2 单证上传必选billTyp,参数billTyp变成默认值可不填

1.13.0 hdcomgrid @row-dblclick 可以直接自定义双击方法

1.14.0 修复hdform上一页 上一条 下一页 下一条

1.14.2 hd-form 未绑定grid报错bug修改

1.14.3 hd-com-grid 统一关闭复制按钮

1.14.5 支持自定义底部按钮

<template slot="btnTool">
    <hd-btn icon="el-icon-plus" hint="增加" @click="$refs.grid.doEdit('')" class="hdBtnTool"
      keyType="add">
    </hd-btn>
    <hd-btn icon="el-icon-minus" hint="删除" @click="$refs.grid.doRemove()" class="hdBtnTool"
                        keyType="del">
    </hd-btn>
    <hd-btn icon="el-icon-check" hint="保存" @click="$refs.grid.doSave()" class="hdBtnTool" 
                        keyType="save">
    </hd-btn>
</template>

addWay addHide delHide 等后期可能会移除

新增了hd-form自定义处理表单展现方法

<hd-form :customeChooseUpdateFn="customeChooseUpdateFn">
customeChooseUpdateFn(row) {
    this.hdform = Object.assign({}, row, {'tempOrgnId': row.orgnId, '_oldRow': row});
},

hd-form添加数据默认添加到grid的的第一条

1.15.1 修复文件上传组件

1.15.3 新增滚动到最上面

没掉框架doEdit方法的用this.$refs.grid.$refs.hdgrid.$refs.ingrid.$refs.bodyWrapper.scrollTop = 0实现

1.15.4 表格中0默认不显示

<el-table-column> 里面添加属性 noZeroHide 来取消0不显示 1.15.10 高级查询可隐藏 noAdQuery

1.16.1 单证图片懒加载 1.16.2 调小pdf距离

1.16.4 自定义表头 1.16.7 选行

1.16.10 修复冻结列属性重复导致加载卡死问题

1.16.11 修复下拉分页快捷键不能用bug

1.17.1 时间组件封装,输入方式优化

1.17.2 去掉高级查询,时间组件恢复

1.17.3 修改提示时间5秒

1.17.4 导入excel新增回调方法

1.17.4 高级查询新增下拉

1.18.1 增加右击菜单 hd-com-grid 添加 right-menu-open 放开 自定义右击菜单内容 自定义扩展右击菜单内容(保留默认的增删改方法)

1.18.2 增加方法选到此行 this.$refs.grid.selectPart()

1.18.3 修复pdf打印弹窗不消失bug

1.18.5 新增方法取消选中到此行 this.$refs.grid.unSelectPart(e)

1.18.8 修复高级查询不能用

1.18.9 修复常用代码重复报错

1.19.1 去掉对多表头自定义列的编辑。

1.19.2 分页增加500条

1.19.3 修复批量增加撤销出现问题bug

1.19.4 pdf打印宽度可以自己调整

1.19.5 记录历史宽度调整记录

1.20.1 shift多选行

1.20.2 修复查询所有导致系统崩溃bug 无分页最多展现2000条数据不是所有 导出全部excel最多导出2000条数据不是所有

1.20.1

11 months ago

1.20.2

11 months ago

1.19.4

12 months ago

1.19.8

12 months ago

1.19.7

12 months ago

1.19.6

12 months ago

1.19.5

12 months ago

1.19.3

1 year ago

1.19.2

2 years ago

1.19.1

2 years ago

1.18.8

2 years ago

1.18.5

2 years ago

1.18.4

2 years ago

1.18.3

2 years ago

1.18.6

2 years ago

1.17.2

2 years ago

1.17.1

2 years ago

1.17.6

2 years ago

1.17.5

2 years ago

1.17.4

2 years ago

1.18.2

2 years ago

1.17.3

2 years ago

1.17.7

2 years ago

1.16.11

2 years ago

1.16.10

2 years ago

1.16.9

2 years ago

1.16.2

2 years ago

1.16.7

2 years ago

1.16.6

2 years ago

1.16.5

2 years ago

1.16.4

2 years ago

1.16.8

2 years ago

1.16.1

3 years ago