diff --git a/.gitee/ISSUE_TEMPLATE/config.yml b/.gitee/ISSUE_TEMPLATE/config.yml index 8f34eece..65ab8e19 100644 --- a/.gitee/ISSUE_TEMPLATE/config.yml +++ b/.gitee/ISSUE_TEMPLATE/config.yml @@ -1,7 +1,7 @@ blank_issues_enabled: false contact_links: - name: 😄 创建议题 - url: https://github.com/layui/layui/issues/new?template=bug.yml + url: https://github.com/layui/layui/issues/new?template=bug-feature.yml about: 为了加强 Issue 规范、提升沟通效率,Layui Issues 已统一在 Github 受理 - name: 📄 官方文档 url: https://layui.dev/ diff --git a/.github/workflows/issue-close-require.yml b/.github/workflows/issue-close-require.yml index 03ac5792..aaf5d0ea 100644 --- a/.github/workflows/issue-close-require.yml +++ b/.github/workflows/issue-close-require.yml @@ -22,9 +22,9 @@ jobs: inactive-day: 3 body: | 由于超过 3 天仍未收到相关重现或其他更多信息,该 issue 已被自动关闭。 - - name: Close inactive issues within 7 days + - name: Close issues with inactive days of 7 uses: actions-cool/issues-helper@v3 with: actions: 'close-issues' - labels: 'compatibility,discussion,resolved,unrelated,usage' + labels: 'compatibility,resolved,unrelated,usage' inactive-day: 7 diff --git a/docs/table/index.md b/docs/table/index.md index 79caaf96..1a3ac49d 100644 --- a/docs/table/index.md +++ b/docs/table/index.md @@ -331,9 +331,9 @@ table.render({ // 获取选中行相关数据 var tableStatus = table.checkStatus('test'); -console.log(checkStatus.data) // 选中行的数据 -console.log(checkStatus.data.length) // 选中行数量,可作为是否有选中行的条件 -console.log(checkStatus.isAll ) // 表格是否全选 +console.log(tableStatus.data) // 选中行的数据 +console.log(tableStatus.data.length) // 选中行数量,可作为是否有选中行的条件 +console.log(tableStatus.isAll ) // 表格是否全选 ```

设置行选中状态 2.8+

diff --git a/src/modules/lay.js b/src/modules/lay.js index 65dd2439..d4c3e3e0 100644 --- a/src/modules/lay.js +++ b/src/modules/lay.js @@ -568,9 +568,12 @@ var onStart = function(e){ if(e.touches.length !== 1) return; bindEvents(); + // 重置状态 state.timeStart = Date.now(); state.pointerStart.x = state.pointerEnd.x = e.touches[0].clientX; state.pointerStart.y = state.pointerEnd.y = e.touches[0].clientY; + state.distanceX = state.distanceY = 0; + state.direction = 'none' options.onTouchStart && options.onTouchStart(e, state); } diff --git a/src/modules/rate.js b/src/modules/rate.js index 7750a824..842a8080 100644 --- a/src/modules/rate.js +++ b/src/modules/rate.js @@ -253,6 +253,7 @@ layui.define(['jquery', 'lay'],function(exports){ // 更新最终值 options.value = score; + if(options.text) _ul.next("span").text(options.value + "星"); options.setText && options.setText(options.value); }, onTouchEnd: function(e, state){ diff --git a/src/modules/treeTable.js b/src/modules/treeTable.js index d8d3ad91..6b25496c 100644 --- a/src/modules/treeTable.js +++ b/src/modules/treeTable.js @@ -1037,6 +1037,10 @@ layui.define(['table'], function (exports) { trDefaultExpand.find('.layui-table-tree-flexIcon').html(treeOptionsView.flexIconOpen); expandNode({trElem: trDefaultExpand.first()}, true); }); + // #1463 expandNode 中已经展开过的节点不会重新渲染 + debounceFn('renderTreeTable2-' + tableId, function () { + form.render($('.layui-table-tree[lay-id="' + tableId + '"]')); + }, 0)(); } else { debounceFn('renderTreeTable-' + tableId, function () { options.hasNumberCol && formatNumber(that);