2 Star 3 Fork 4

known / kui

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

kui

KUI是一个基于jquery开发的前端快速开发框架。

组件

  1. Layer:弹出层,支持Modal对话框、alert、confirm、tips、loading等。
  2. Router:路由,支持多级路由,回退等。
  3. ListBox:列表框,支持data和url绑定和单击回调等。
  4. Tree:树,依赖ztree,支持data和url绑定,支持简单list数据等。
  5. Tabs:标签页。
  6. Query:查询组件,支持查询条件字段绑定和查询按钮等。
  7. Form:表单组件,支持普通表单和多Tab页表单、栏位字段绑定、非空栏位验证和操作按钮等。
  8. Input:输入组件,支持hidden、text、textarea、select、date、radio、checkbox、editor、picker等,其中date依赖datepicker,editor依赖wangEditor。
  9. Picker:弹出选择组件,支持查询和选择回调等。
  10. Grid:网格组件,支持toolbar、query、import、export等,支持编辑。
  11. Chart:图表组件,依赖echarts。
  12. View:视图组件,支持左右布局,栏位一次定义,多处使用(Query、Grid、Form)。

增删改查代码示例

function DevSampleGrid() {
    var view = new View('View', {
        url: { },
        columns: [
            { field: 'Id', type: 'hidden' },
            { title: '只读文本', field: 'Readonly', type: 'text', readonly: true, export: true },
            { title: '文本', field: 'Text', type: 'text', required: true, format: 'detail', query: true, import: true, export: true },
            { title: '日期', field: 'Date', type: 'date', placeholder: DateFormat, import: true, export: true },
            { title: '下拉框', field: 'Select', type: 'select', code: [{ Code: '1', Name:'选项一'}, '选项二'], query: true, import: true, export: true },
            { title: '复选框', field: 'Check', type: 'checkbox', code: SampleCodes, import: true, export: true },
            { title: '单选框', field: 'Radio', type: 'radio', code: SampleCodes, import: true, export: true },
            {
                title: '选择框', field: 'Picker', type: 'picker', pick: {
                    action: 'user', callback: function (e) { log(e); }
                }
            },
            { title: '文本', field: 'Text2', type: 'text', unit: '', import: true },
            { title: '文本域', field: 'TextArea', type: 'textarea', itemStyle: 'block' }
        ],
        gridOption: {
            autoQuery: false,
            formUrl: baseUrl + '/test', toolButtons: ['add', 'edit', 'remove', 'import']
        }
    });

    //methods
    this.render = function () {
        return view.render();
    }

    this.mounted = function () {
        view.setGridData([
            {
                Id: '1', Readonly: 'T0001', Text: 'test', Date: '2021-01-01',
                Select: '选项一', Check: '选项二', Radio: '选项一',
                Picker: 'System', PickerName: '超级管理员', Text1: 'testtt', Text2: 3000,
                TextArea: 'tetstest', Editor: '测试刚刚'
            }
        ]);
    }
}
MIT License Copyright (c) 2019 Known Chen Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

KUI是一个纯CSS的Blazor后台管理系统框架。 展开 收起
CSS 等 3 种语言
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
CSS
1
https://gitee.com/known/kui.git
git@gitee.com:known/kui.git
known
kui
kui
master

搜索帮助