mirror of
https://github.com/certd/certd.git
synced 2026-04-24 04:17:25 +08:00
🔱: [client] sync upgrade with 4 commits [trident-sync]
build: publish success perf: 优化列设置多级表头支持级联勾选 perf: table-select支持destroyOnClose参数,以修复点击取消后,扔保留上一次选中值的bug
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
<div class="fs-multiple-page-control-group">
|
||||
<div class="fs-multiple-page-control-content">
|
||||
<div class="fs-multiple-page-control-content-inner">
|
||||
<a-tabs class="fs-multiple-page-control fs-multiple-page-sort" :active-key="page.getCurrent" type="editable-card" hide-add @tabClick="handleClick" @edit="handleTabEdit">
|
||||
<a-tabs class="fs-multiple-page-control fs-multiple-page-sort" :active-key="page.getCurrent" type="editable-card" hide-add @tab-click="handleClick" @edit="handleTabEdit">
|
||||
<a-tab-pane v-for="item in page.getOpened" :key="item.fullPath" :tab="item.meta?.title || '未命名'" :name="item.fullPath" :closable="isTabClosable(item)" />
|
||||
</a-tabs>
|
||||
<!-- <fs-contextmenu v-model:visible="contextmenuFlag" :x="contentmenuX" :y="contentmenuY">-->
|
||||
@@ -16,10 +16,10 @@
|
||||
|
||||
<div class="fs-multiple-page-control-btn">
|
||||
<a-dropdown-button class="control-btn-dropdown" split-button @click="closeAll">
|
||||
<span class="iconify" data-icon="ion:close-circle" data-inline="false"></span>
|
||||
<fs-icon icon="ion:close-circle"></fs-icon>
|
||||
<template #icon><DownOutlined /></template>
|
||||
<template #overlay>
|
||||
<a-menu @click="(command:any) => handleControlItemClick(command)">
|
||||
<a-menu @click="(command: any) => handleControlItemClick(command)">
|
||||
<a-menu-item key="left">
|
||||
<fs-icon name="arrow-left" class="fs-mr-10" />
|
||||
关闭左侧
|
||||
|
||||
@@ -105,6 +105,14 @@ export default function ({ crudExpose }: CreateCrudOptionsProps): CreateCrudOpti
|
||||
}
|
||||
}
|
||||
},
|
||||
long: {
|
||||
title: "演示Text很长时如何很好的展示",
|
||||
type: "text",
|
||||
column: {
|
||||
ellipsis: true,
|
||||
showTitle: true
|
||||
}
|
||||
},
|
||||
search: {
|
||||
title: "搜索",
|
||||
type: "text",
|
||||
@@ -169,8 +177,8 @@ export default function ({ crudExpose }: CreateCrudOptionsProps): CreateCrudOpti
|
||||
utils.logger.info("context scope", context);
|
||||
return (
|
||||
<a-input-group compact>
|
||||
<a-input placeholder={"render1 input"} style="width: 50%" v-model={[context.form.render, "value"]} />
|
||||
<a-input placeholder={"render2 input"} style="width: 50%" v-model={[context.form.render2, "value"]} />
|
||||
<a-input placeholder={"render1 input"} style={{ width: "50%" }} v-model={[context.form.render, "value"]} />
|
||||
<a-input placeholder={"render2 input"} style={{ width: "50%" }} v-model={[context.form.render2, "value"]} />
|
||||
</a-input-group>
|
||||
);
|
||||
}
|
||||
@@ -181,7 +189,7 @@ export default function ({ crudExpose }: CreateCrudOptionsProps): CreateCrudOpti
|
||||
title: "我的值是由复杂输入列输入的",
|
||||
type: "text",
|
||||
column: {
|
||||
width: "300px"
|
||||
width: 300
|
||||
},
|
||||
form: {
|
||||
show: false
|
||||
|
||||
@@ -24,6 +24,7 @@ const list = [
|
||||
name: "张三",
|
||||
date: "2016-05-04",
|
||||
status: "1",
|
||||
long: "我很长我很长我很长我很长我很长我很长我很长我很长",
|
||||
province: "2",
|
||||
copy: "测试文本",
|
||||
classId: 2
|
||||
|
||||
@@ -49,7 +49,7 @@ export default function ({ crudExpose, context }: CreateCrudOptionsProps): Creat
|
||||
afterSubmit(context) {
|
||||
// context.res 是add或update请求返回结果
|
||||
if (context.form.id === 1) {
|
||||
message.error("模拟保存失败,阻止弹窗关闭");
|
||||
message.error("模拟保存失败,阻止弹窗关闭,请选择其他行的数据进行编辑保存");
|
||||
throw new Error("模拟失败,阻止弹窗关闭");
|
||||
}
|
||||
},
|
||||
@@ -102,7 +102,11 @@ export default function ({ crudExpose, context }: CreateCrudOptionsProps): Creat
|
||||
},
|
||||
long: {
|
||||
title: "演示Label很长时如何很好的展示",
|
||||
type: "text"
|
||||
type: "text",
|
||||
column: {
|
||||
ellipsis: true,
|
||||
showTitle: true
|
||||
}
|
||||
},
|
||||
draft: {
|
||||
title: "草稿",
|
||||
|
||||
@@ -10,12 +10,14 @@ const list = [
|
||||
age: 15,
|
||||
password: "",
|
||||
status: "2",
|
||||
long: "我的label很长",
|
||||
url: "https://baidu.com",
|
||||
renderLabel: "第一行编辑演示阻止表单提交"
|
||||
},
|
||||
{
|
||||
name: "张三",
|
||||
age: 18,
|
||||
long: "我的label很长",
|
||||
password: "",
|
||||
url: "https://baidu.com"
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user