🔱: [client] sync upgrade with 6 commits [trident-sync]

build: publish success
fix: 修复多级表头时列设置的问题

https://github.com/fast-crud/fast-crud/issues/175
chore: 1
fix: 修复element示例中远程搜索下拉框label不显示的bug

https://github.com/fast-crud/fast-crud/issues/422
fix: 修复独立使用对话框 openDialog方法await无返回值的bug
This commit is contained in:
GitHub Actions Bot
2024-06-23 19:23:47 +00:00
parent ad360e81cb
commit 586d23fc55
4 changed files with 39 additions and 15 deletions
@@ -160,6 +160,26 @@ export default function ({ crudExpose }: CreateCrudOptionsProps): CreateCrudOpti
width: 300,
valueChange({ value, getComponentRef }) {
console.log("value changed:", value, getComponentRef("radio"));
},
editable: {
async updateCell(opts) {
const { row, key, value } = opts;
//如果是添加,需要返回{[rowKey]:xxx},比如:{id:2}
await api.UpdateCell(row.id, key, value);
//同时修改 updateCellLink
await api.UpdateCell(row.id, "updateCellLink", value);
//修改联动本地列
row.updateCellLink = value;
}
}
}
},
updateCellLink: {
title: "状态联动",
type: "text",
column: {
editable: {
disabled: true
}
}
},
@@ -65,7 +65,7 @@ export default defineComponent({
//处理过,无需再次处理
return;
}
value.class="is-twig"
value.class = "is-twig";
if (value.children != null && value.children.length > 0) {
return;
}
@@ -83,13 +83,13 @@ export default defineComponent({
}
// 所有的子节点都没有children
parent.class = "is-twig"; // 连接叶子节点的末梢枝杈节点
let i = 0
let i = 0;
for (const child of parent.children) {
child.class = "is-leaf";
if(i !== 0){
if (i !== 0) {
child.class += " leaf-after";
}
i++
i++;
}
});
return [
@@ -135,11 +135,10 @@ export default defineComponent({
<style lang="less">
.fs-permission-tree {
.ant-tree-list-holder-inner{
.ant-tree-list-holder-inner {
flex-direction: row !important;
flex-wrap: wrap;
.is-twig{
.is-twig {
width: 100%;
}
@@ -149,8 +148,8 @@ export default defineComponent({
display: none;
}
&.leaf-after{
.ant-tree-indent-unit{
&.leaf-after {
.ant-tree-indent-unit {
display: none;
}
}
@@ -159,7 +158,6 @@ export default defineComponent({
border-bottom: 1px solid #ddd;
}
}
}
//.is-twig ul {
// display: flex;