mirror of https://github.com/layui/layui
chore: 同步若干日常修改 (#1479)
commit
02c534349c
|
@ -1,7 +1,7 @@
|
||||||
blank_issues_enabled: false
|
blank_issues_enabled: false
|
||||||
contact_links:
|
contact_links:
|
||||||
- name: 😄 创建议题
|
- 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 受理
|
about: 为了加强 Issue 规范、提升沟通效率,Layui Issues 已统一在 Github 受理
|
||||||
- name: 📄 官方文档
|
- name: 📄 官方文档
|
||||||
url: https://layui.dev/
|
url: https://layui.dev/
|
||||||
|
|
|
@ -22,9 +22,9 @@ jobs:
|
||||||
inactive-day: 3
|
inactive-day: 3
|
||||||
body: |
|
body: |
|
||||||
由于超过 3 天仍未收到相关重现或其他更多信息,该 issue 已被自动关闭。
|
由于超过 3 天仍未收到相关重现或其他更多信息,该 issue 已被自动关闭。
|
||||||
- name: Close inactive issues within 7 days
|
- name: Close issues with inactive days of 7
|
||||||
uses: actions-cool/issues-helper@v3
|
uses: actions-cool/issues-helper@v3
|
||||||
with:
|
with:
|
||||||
actions: 'close-issues'
|
actions: 'close-issues'
|
||||||
labels: 'compatibility,discussion,resolved,unrelated,usage'
|
labels: 'compatibility,resolved,unrelated,usage'
|
||||||
inactive-day: 7
|
inactive-day: 7
|
||||||
|
|
|
@ -331,9 +331,9 @@ table.render({
|
||||||
|
|
||||||
// 获取选中行相关数据
|
// 获取选中行相关数据
|
||||||
var tableStatus = table.checkStatus('test');
|
var tableStatus = table.checkStatus('test');
|
||||||
console.log(checkStatus.data) // 选中行的数据
|
console.log(tableStatus.data) // 选中行的数据
|
||||||
console.log(checkStatus.data.length) // 选中行数量,可作为是否有选中行的条件
|
console.log(tableStatus.data.length) // 选中行数量,可作为是否有选中行的条件
|
||||||
console.log(checkStatus.isAll ) // 表格是否全选
|
console.log(tableStatus.isAll ) // 表格是否全选
|
||||||
```
|
```
|
||||||
|
|
||||||
<h3 id="table.setRowChecked" lay-pid="api" class="ws-anchor ws-bold">设置行选中状态 <sup>2.8+</sup></h3>
|
<h3 id="table.setRowChecked" lay-pid="api" class="ws-anchor ws-bold">设置行选中状态 <sup>2.8+</sup></h3>
|
||||||
|
|
|
@ -568,9 +568,12 @@
|
||||||
var onStart = function(e){
|
var onStart = function(e){
|
||||||
if(e.touches.length !== 1) return;
|
if(e.touches.length !== 1) return;
|
||||||
bindEvents();
|
bindEvents();
|
||||||
|
// 重置状态
|
||||||
state.timeStart = Date.now();
|
state.timeStart = Date.now();
|
||||||
state.pointerStart.x = state.pointerEnd.x = e.touches[0].clientX;
|
state.pointerStart.x = state.pointerEnd.x = e.touches[0].clientX;
|
||||||
state.pointerStart.y = state.pointerEnd.y = e.touches[0].clientY;
|
state.pointerStart.y = state.pointerEnd.y = e.touches[0].clientY;
|
||||||
|
state.distanceX = state.distanceY = 0;
|
||||||
|
state.direction = 'none'
|
||||||
|
|
||||||
options.onTouchStart && options.onTouchStart(e, state);
|
options.onTouchStart && options.onTouchStart(e, state);
|
||||||
}
|
}
|
||||||
|
|
|
@ -253,6 +253,7 @@ layui.define(['jquery', 'lay'],function(exports){
|
||||||
|
|
||||||
// 更新最终值
|
// 更新最终值
|
||||||
options.value = score;
|
options.value = score;
|
||||||
|
if(options.text) _ul.next("span").text(options.value + "星");
|
||||||
options.setText && options.setText(options.value);
|
options.setText && options.setText(options.value);
|
||||||
},
|
},
|
||||||
onTouchEnd: function(e, state){
|
onTouchEnd: function(e, state){
|
||||||
|
|
|
@ -1037,6 +1037,10 @@ layui.define(['table'], function (exports) {
|
||||||
trDefaultExpand.find('.layui-table-tree-flexIcon').html(treeOptionsView.flexIconOpen);
|
trDefaultExpand.find('.layui-table-tree-flexIcon').html(treeOptionsView.flexIconOpen);
|
||||||
expandNode({trElem: trDefaultExpand.first()}, true);
|
expandNode({trElem: trDefaultExpand.first()}, true);
|
||||||
});
|
});
|
||||||
|
// #1463 expandNode 中已经展开过的节点不会重新渲染
|
||||||
|
debounceFn('renderTreeTable2-' + tableId, function () {
|
||||||
|
form.render($('.layui-table-tree[lay-id="' + tableId + '"]'));
|
||||||
|
}, 0)();
|
||||||
} else {
|
} else {
|
||||||
debounceFn('renderTreeTable-' + tableId, function () {
|
debounceFn('renderTreeTable-' + tableId, function () {
|
||||||
options.hasNumberCol && formatNumber(that);
|
options.hasNumberCol && formatNumber(that);
|
||||||
|
|
Loading…
Reference in New Issue