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

build: publish success
chore:
perf: editable支持单元格插槽

https://github.com/fast-crud/fast-crud/issues/431
perf: 独立使用表单支持插槽

https://github.com/fast-crud/fast-crud/issues/435
perf: 表单支持左右插槽
chore:
pull/91/head
GitHub Actions Bot 2024-10-23 19:24:45 +00:00
parent 18c9c4a166
commit b928bb46c7
10 changed files with 75 additions and 12 deletions

View File

@ -3,6 +3,15 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
## [1.22.1](https://github.com/fast-crud/fast-crud/compare/v1.22.0...v1.22.1) (2024-10-23)
### Performance Improvements
* 表单支持左右插槽 ([e3a9e8b](https://github.com/fast-crud/fast-crud/commit/e3a9e8b985558f7cbff0acd580af242df56da8c4))
* 独立使用表单支持插槽 ([095da7a](https://github.com/fast-crud/fast-crud/commit/095da7ac92996779f3b3c3885a8abd4de6c2fc0c))
* editable支持单元格插槽 ([ae029de](https://github.com/fast-crud/fast-crud/commit/ae029de0f554f4cc4c4750e0af3b6f7bd1edaee5))
* values-format option支持iconSpin ([cdaa4f5](https://github.com/fast-crud/fast-crud/commit/cdaa4f55a9384b95764443b4a7f4223ec787cce3))
# [1.22.0](https://github.com/fast-crud/fast-crud/compare/v1.21.5...v1.22.0) (2024-10-21)
**Note:** Version bump only for package @fast-crud/fs-admin-antdv4

View File

@ -1,6 +1,6 @@
{
"name": "@fast-crud/fs-admin-antdv4",
"version": "1.22.0",
"version": "1.22.1",
"private": true,
"scripts": {
"dev": "vite",
@ -26,10 +26,10 @@
"@ant-design/icons-vue": "^7.0.1",
"@aws-sdk/client-s3": "^3.535.0",
"@aws-sdk/s3-request-presigner": "^3.535.0",
"@fast-crud/fast-crud": "^1.22.0",
"@fast-crud/fast-extends": "^1.22.0",
"@fast-crud/ui-antdv4": "^1.22.0",
"@fast-crud/ui-interface": "^1.22.0",
"@fast-crud/fast-crud": "^1.22.1",
"@fast-crud/fast-extends": "^1.22.1",
"@fast-crud/ui-antdv4": "^1.22.1",
"@fast-crud/ui-interface": "^1.22.1",
"@iconify/vue": "^4.1.1",
"@soerenmartius/vue3-clipboard": "^0.1.2",
"ant-design-vue": "^4.1.2",

View File

@ -65,7 +65,7 @@ export default function ({ crudExpose }: CreateCrudOptionsProps): CreateCrudOpti
},
valueResolve({ value, row, key }) {
if (value != null) {
row[key] = value.unix();
row[key] = value.valueOf();
}
}
},
@ -87,7 +87,7 @@ export default function ({ crudExpose }: CreateCrudOptionsProps): CreateCrudOpti
},
valueResolve({ value, row, key }) {
if (value != null) {
row[key] = value.unix();
row[key] = value.valueOf();
}
}
},

View File

@ -221,6 +221,10 @@ export default function ({ crudExpose }: CreateCrudOptionsProps): CreateCrudOpti
{ id: "sh", text: "上海" }
]
})
},
slot: {
title: "插槽",
type: "text"
}
}
}

View File

@ -8,6 +8,9 @@
<div class="more"><a target="_blank" href="http://fast-crud.docmirror.cn/api/crud-options/table.html#editable">文档</a></div>
</template>
<fs-crud ref="crudRef" v-bind="crudBinding">
<template #cell_slot="scope">
<span>{{ scope.row.slot }}=插槽显示</span>
</template>
<template #actionbar-right>
<!-- <fs-button class="ml-1" @click="addRow"></fs-button>-->
<a-radio-group v-model:value="crudBinding.table.editable.enabled" class="ml-5">
@ -38,7 +41,7 @@
<script lang="ts">
import { defineComponent, onMounted } from "vue";
import createCrudOptions from "./crud";
import {useFs, utils} from "@fast-crud/fast-crud";
import { useFs, utils } from "@fast-crud/fast-crud";
import { message } from "ant-design-vue";
export default defineComponent({

View File

@ -11,7 +11,8 @@ const list = [
{
radio: "2"
}
]
],
slot: "1"
},
{
radio: "2"

View File

@ -92,6 +92,18 @@ export default function ({ crudExpose, context }: CreateCrudOptionsProps): Creat
context.close();
}
}
},
beforeClose: (context) => {
console.log("beforeClose", context);
},
onClosed(context) {
console.log("onClosed", context);
},
onOpen(context) {
console.log("onOpen", context);
},
onOpened(context) {
console.log("onOpened", context);
}
}
},

View File

@ -48,6 +48,9 @@ export default function ({}: CreateCrudOptionsProps): CreateCrudOptionsRet {
title: "日期",
type: "date"
},
slot: {
title: "插槽"
},
age: {
title: "jsx",
type: "text",

View File

@ -36,17 +36,41 @@
</a-card>
<a-card class="mt-10" title="打开表单对话框">
<a-button @click="openFormWrapper"> </a-button>
<fs-form-wrapper ref="formWrapperRef" v-bind="formWrapperOptions" />
<fs-form-wrapper ref="formWrapperRef" v-bind="formWrapperOptions">
<template #form_slot="scope">
<a-input v-model:value="scope.form.slot">
<template #prefix>
<fs-icon icon="ion:search"></fs-icon>
</template>
</a-input>
</template>
</fs-form-wrapper>
</a-card>
<a-card class="mt-10" title="打开表单对话框复用crudOptions">
<a-button @click="openFormWrapper2"> </a-button>
<fs-form-wrapper ref="formWrapper2Ref" v-bind="formWrapper2Options" />
<fs-form-wrapper ref="formWrapper2Ref" v-bind="formWrapper2Options">
<template #form_slot="scope">
<a-input v-model:value="scope.form.slot">
<template #prefix>
<fs-icon icon="ion:search"></fs-icon>
</template>
</a-input>
</template>
</fs-form-wrapper>
</a-card>
<a-card class="mt-10" title="打开表单对话框【复用crudBinding】">
<a-button @click="openFormWrapper2"> </a-button>
<fs-form-wrapper ref="formWrapperRef2" v-bind="formWrapperOptions2" />
<fs-form-wrapper ref="formWrapperRef2" v-bind="formWrapperOptions2">
<template #form_slot="scope">
<a-input v-model:value="scope.form.slot">
<template #prefix>
<fs-icon icon="ion:search"></fs-icon>
</template>
</a-input>
</template>
</fs-form-wrapper>
</a-card>
</a-col>
</a-row>

View File

@ -24,6 +24,13 @@
<a-alert type="warning" message="form-body-bottom 插槽" />
</template>
<template #form-body-left>
<a-alert type="warning" message="form-body-left 插槽" />
</template>
<template #form-body-right>
<a-alert type="warning" message="form-body-right 插槽" />
</template>
<template #form-footer-left>
<a-button type="danger">form-footer-left 插槽</a-button>
</template>