mirror of https://github.com/certd/certd
🔱: [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
parent
18c9c4a166
commit
b928bb46c7
|
@ -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
|
||||
|
|
|
@ -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",
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
},
|
||||
|
|
|
@ -221,6 +221,10 @@ export default function ({ crudExpose }: CreateCrudOptionsProps): CreateCrudOpti
|
|||
{ id: "sh", text: "上海" }
|
||||
]
|
||||
})
|
||||
},
|
||||
slot: {
|
||||
title: "插槽",
|
||||
type: "text"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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({
|
||||
|
|
|
@ -11,7 +11,8 @@ const list = [
|
|||
{
|
||||
radio: "2"
|
||||
}
|
||||
]
|
||||
],
|
||||
slot: "1"
|
||||
},
|
||||
{
|
||||
radio: "2"
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
},
|
||||
|
|
|
@ -48,6 +48,9 @@ export default function ({}: CreateCrudOptionsProps): CreateCrudOptionsRet {
|
|||
title: "日期",
|
||||
type: "date"
|
||||
},
|
||||
slot: {
|
||||
title: "插槽"
|
||||
},
|
||||
age: {
|
||||
title: "jsx",
|
||||
type: "text",
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue