Skip to content

Commit

Permalink
增加树形结构默认展开属性expandRowKeys
Browse files Browse the repository at this point in the history
  • Loading branch information
[email protected] committed Sep 3, 2024
1 parent f75297e commit 3eca049
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
2 changes: 2 additions & 0 deletions Vol.Vue3.Vite/src/components/basic/ViewGrid/ViewGrid.vue
Original file line number Diff line number Diff line change
Expand Up @@ -407,6 +407,7 @@
:spanMethod="spanMethod"
:lazy="lazy"
:defaultExpandAll="defaultExpandAll"
:expandRowKeys="expandRowKeys"
:rowParentField="rowParentField"
></vol-table>
</div>
Expand Down Expand Up @@ -628,6 +629,7 @@ var vueParam = {
queryFields:[],//快捷查询字段2024.01.18增加多个快捷查询字段
lazy:true,//树形表格是否默认延迟加载
defaultExpandAll:false,//树形表格是否展开所有
expandRowKeys:[],//默认展开行的主键值2024.09.03
paginationHide:false,//是否隐藏分页
rowParentField:"", //树形表格父级id
text:""//界面上标题后显示的文本,可以是html标签
Expand Down
2 changes: 2 additions & 0 deletions Vol.Vue3版本/src/components/basic/ViewGrid/ViewGrid.vue
Original file line number Diff line number Diff line change
Expand Up @@ -412,6 +412,7 @@
:spanMethod="spanMethod"
:lazy="lazy"
:defaultExpandAll="defaultExpandAll"
:expandRowKeys="expandRowKeys"
:rowParentField="rowParentField"
></vol-table>
</div>
Expand Down Expand Up @@ -633,6 +634,7 @@ var vueParam = {
queryFields:[],//快捷查询字段2024.01.18增加多个快捷查询字段
lazy:true,//树形表格是否默认延迟加载
defaultExpandAll:false,//树形表格是否展开所有
expandRowKeys:[],//默认展开行的主键值2024.09.03
paginationHide:false,//是否隐藏分页
rowParentField:"", //树形表格父级id
text:""//界面上标题后显示的文本,可以是html标签
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -130,12 +130,7 @@ export default {
);
},
getUrl(url) {
let b = new RegExp('^(https?:\\/\\/)?' + // 协议
'((([a-z\\d]([a-z\\d-]*[a-z\\d])*)\\.)+[a-z]{2,}|' + // 域名
'((\\d{1,3}\\.){3}\\d{1,3}))' + // 或IP
'(\\:\\d+)?(\\/[-a-z\\d%_.~+]*)*' + // 端口和路径
'(\\?[;&a-z\\d%_.~+=-]*)?' + // 查询参数
'(\\#[-a-z\\d_]*)?$', 'i').test(url);
let b =/^(https?|ftp):\/\/[^\s/$.?#].[^\s]*$/i.test(url);
if (b) {
return url;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -412,6 +412,7 @@
:spanMethod="spanMethod"
:lazy="lazy"
:defaultExpandAll="defaultExpandAll"
:expandRowKeys="expandRowKeys"
:rowParentField="rowParentField"
></vol-table>
</div>
Expand Down Expand Up @@ -633,6 +634,7 @@ var vueParam = {
queryFields:[],//快捷查询字段2024.01.18增加多个快捷查询字段
lazy:true,//树形表格是否默认延迟加载
defaultExpandAll:false,//树形表格是否展开所有
expandRowKeys:[],//默认展开行的主键值2024.09.03
paginationHide:false,//是否隐藏分页
rowParentField:"", //树形表格父级id
text:""//界面上标题后显示的文本,可以是html标签
Expand Down

0 comments on commit 3eca049

Please sign in to comment.