diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 00000000..58be1854 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,11 @@ +# editorconfig.org + +root = true + +[*] +charset = utf-8 +indent_style = space +indent_size = 2 +end_of_line = lf +trim_trailing_whitespace = true +insert_final_newline = true diff --git a/docs/laydate/index.md b/docs/laydate/index.md index 6768a17b..989c7723 100644 --- a/docs/laydate/index.md +++ b/docs/laydate/index.md @@ -34,7 +34,7 @@ toc: true | [laydate.render(options)](#render) | laydate 组件渲染,核心方法。 | | [laydate.hint(id, opts)](#hint) 2.8+ | 在对应的 laydate 组件面板上弹出提示层。 | | [laydate.getInst(id)](#getInst) 2.8+ | 获取组件对应的渲染实例。 | -| [laydate.unbind(id)](#close) 2.8+ | 对目标元素解除当前实例的绑定。 | +| [laydate.unbind(id)](#unbind) 2.8+ | 对目标元素解除当前实例的绑定。 | | [laydate.close(id)](#close) 2.7+ | 关闭日期面板。 | | [laydate.getEndDate(month, year)](#getEndDate) | 获取某月的最后一天。 | @@ -160,7 +160,7 @@ laydate.render({ // 其他属性 … }); // 关闭对应的日期面板 -laydate.cllose('test'); +laydate.close('test'); ```

获取某月的最后一天

diff --git a/docs/layer/examples/other.md b/docs/layer/examples/other.md index fa4341b8..2d607b1e 100644 --- a/docs/layer/examples/other.md +++ b/docs/layer/examples/other.md @@ -68,7 +68,7 @@ layui.use(function(){ } ] }, - hideFooter: true // 是否隐藏底部栏 --- 2.8+ + footer: false // 是否显示底部栏 --- 2.8.16+ }); }, 'test-tips-photos': function(){ @@ -98,4 +98,4 @@ layui.use(function(){ } }) }); - \ No newline at end of file + diff --git a/docs/layer/index.md b/docs/layer/index.md index ab4a7ce3..9ec0acc9 100644 --- a/docs/layer/index.md +++ b/docs/layer/index.md @@ -248,7 +248,8 @@ layer.prompt({ | 私有属性 | 描述 | 类型 | 默认值 | | --- | --- | --- | --- | | photos | 图片层的数据源,格式详见下述示例。 | object | - | -| hideFooter 2.8+ | 是否隐藏底部栏 | boolean | `false` | +| toolbar 2.8.16+ | 是否显示顶部工具栏 | boolean | `true` | +| footer 2.8.16+ | 是否隐藏底部栏 | boolean | `true` | | tab | 图片层切换后的回调函数,返回的参数见下述示例 | function | - | 该方法用于弹出图片层,基于 `type: 1`(即 `page` 层)的自定义内容。 @@ -606,4 +607,4 @@ layer.min(index); ## 贴士 -> layer 曾经可作为单独组件使用,鉴于维护成本的考量,目前 layer 组件已完全集成到 Layui 中,而单独版本已不做同步维护。 因此,建议直接使用 layui 中 layer 即可。 \ No newline at end of file +> layer 曾经可作为单独组件使用,鉴于维护成本的考量,目前 layer 组件已完全集成到 Layui 中,而单独版本已不做同步维护。 因此,建议直接使用 layui 中 layer 即可。 diff --git a/docs/table/detail/demo.md b/docs/table/detail/demo.md index f4c32833..ab6b3a82 100644 --- a/docs/table/detail/demo.md +++ b/docs/table/detail/demo.md @@ -198,5 +198,4 @@

更多示例

-> - [🎉 分享:在 table 组件中使用 select/dropdown/laydate 等组件实现多样化编辑](https://gitee.com/layui/layui/issues/I5JBUE) -> - 不定期分享在 [Gitee Issues](https://gitee.com/layui/layui/issues) \ No newline at end of file +> - 🎉 不定期分享在 [Gitee Issues](https://gitee.com/layui/layui/issues) diff --git a/docs/table/examples/css.md b/docs/table/examples/css.md index aa01f4f3..8a0d6451 100644 --- a/docs/table/examples/css.md +++ b/docs/table/examples/css.md @@ -80,4 +80,4 @@ }); - \ No newline at end of file + diff --git a/docs/table/examples/demo.md b/docs/table/examples/demo.md index 0ccc1ac8..17038b85 100644 --- a/docs/table/examples/demo.md +++ b/docs/table/examples/demo.md @@ -75,7 +75,7 @@ layui.use(['table', 'dropdown'], function(){ {field:'username', width:80, title: '用户'}, {field:'email', title:'邮箱 ', fieldTitle: '邮箱', hide: 0, width:150, edit: 'text'}, {field:'sex', width:80, title: '性别', sort: true}, - {field:'sign', title: '签名', edit: 'textarea', minWidth: 260, expandedWidth: 260, style: '-moz-box-align: start;', totalRow: '{{!人物:唐代:{{= d.TOTAL_ROW.era.tang }} 宋代:{{= d.TOTAL_ROW.era.song }} 现代:{{= d.TOTAL_ROW.era.xian }}!}}'}, + {field:'sign', title: '签名', edit: 'textarea', minWidth: 260, expandedWidth: 260, totalRow: '{{!人物:唐代:{{= d.TOTAL_ROW.era.tang }} 宋代:{{= d.TOTAL_ROW.era.song }} 现代:{{= d.TOTAL_ROW.era.xian }}!}}'}, {field:'experience', width: 100, title: '积分', sort: true, totalRow: '{{!{{= d.TOTAL_NUMS }} 😊!}}'}, {field:'checkin', title:'打卡', width: 100, sort: true, totalRow: '{{!{{= parseInt(d.TOTAL_NUMS) }} 次!}}'}, {field:'ip', title:'IP', width: 120}, @@ -368,4 +368,4 @@ layui.use(['table', 'dropdown'], function(){ }); - \ No newline at end of file + diff --git a/examples/code.html b/examples/code.html index b3b30490..d4e40e65 100644 --- a/examples/code.html +++ b/examples/code.html @@ -116,6 +116,8 @@ layui.use('code', function(){ // 通用实例,根据元素属性定制化参数 layui.code({ //about: 'code' // 右上角默认显示 code + tools: ['tips'], + preview: true }); // custom more about diff --git a/examples/layer.html b/examples/layer.html index 78ee296e..ab878860 100644 --- a/examples/layer.html +++ b/examples/layer.html @@ -1,20 +1,15 @@ - - - - -layer 弹层 - layui - - - - + + + layer 弹层 - layui + + @@ -30,10 +25,10 @@ body{padding: 100px;} - 更多例子 + 更多例子 -