Giter Site home page Giter Site logo

layui_enhance's Introduction

简介

::: tip

基于AOP的理念,以无侵入的方式,对 layui 表格日期弹窗组件做了大量增强。此处仅抛转引玉,提供扩展的思路,希望能帮助到大家

:::

文档地址:http://yuntao.xyz:5555/guide

表格功能增强介绍

表格默认配置

  1. 不启用分页时,默认显示所有数据(原生默认为10条)
  2. 默认分页参数为(currPage、pageSize)
  3. 默认开启 加载耗时显示
  4. 默认列居中

基础参数

  1. 扩展工具栏
  2. 可编辑表格内容监听

表头参数

  1. 单元格编辑
  2. 日期格式化
  3. 字典格式化
  4. 合计行格式化

基础参数

  1. 获取表格实例
  2. 新增行
  3. 删除行
  4. 获取指定列配置
  5. 动态渲染指定行、列
  6. 合并单元格

事件监听

  1. 监听 单元格单击 事件

其它

  1. 当单元格宽度不够出现省略号时,其中的按钮不能点击

layer增强功能介绍

基础参数

  1. btnConfirmIndex

基础方法

  1. success
  2. error
  3. loading

laydate增强工具介绍

基础参数

  1. 快捷方式

基础方法

  1. 获取日期实例

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.