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

fix: 修复search.value第一次查询无效的bug

https://github.com/fast-crud/fast-crud/issues/208
build: publish success
pull/14/head
GitHub Actions Bot 2023-07-03 19:24:01 +00:00
parent 6fda0d6896
commit 474fd77970
4 changed files with 18 additions and 4 deletions

View File

@ -34,3 +34,4 @@ https://github.com/fast-crud/fs-server-js

View File

@ -16,7 +16,8 @@
"lint-fix": "eslint --fix --ext .js --ext .jsx --ext .vue src/", "lint-fix": "eslint --fix --ext .js --ext .jsx --ext .vue src/",
"upgrade": "yarn upgrade-interactive --latest", "upgrade": "yarn upgrade-interactive --latest",
"tsc": "vue-tsc --noEmit --skipLibCheck", "tsc": "vue-tsc --noEmit --skipLibCheck",
"circle:check": "pnpm dependency-cruise --validate --output-type err-html -f dependency-report.html src" "circle:check": "pnpm dependency-cruise --validate --output-type err-html -f dependency-report.html src",
"afterPubPush": "git add . && git commit -m \"build: publish success\" && git push"
}, },
"author": "Greper", "author": "Greper",
"license": "MIT", "license": "MIT",

View File

@ -33,7 +33,8 @@ export default function ({ crudExpose }: CreateCrudOptionsProps): CreateCrudOpti
search: { search: {
validate: true, validate: true,
initialForm: { initialForm: {
radio: null //查询默认值
radio: "1"
}, },
buttons: { buttons: {
custom: { custom: {
@ -87,6 +88,14 @@ export default function ({ crudExpose }: CreateCrudOptionsProps): CreateCrudOpti
type: "dict-radio", type: "dict-radio",
dict: statusRef dict: statusRef
}, },
text: {
title: "默认值",
type: "text",
search: {
show: true,
value: "1"
}
},
customRender: { customRender: {
title: "自定义render", title: "自定义render",
search: { search: {

View File

@ -6,15 +6,18 @@ const options: any = {
const list = [ const list = [
{ {
radio: "1", radio: "1",
text: "1",
customRender: true, customRender: true,
customRender2: false, customRender2: false,
customRender3: true customRender3: true
}, },
{ {
radio: "2" radio: "2",
text: "2"
}, },
{ {
radio: "0" radio: "0",
text: "3"
} }
]; ];
options.list = list; options.list = list;