diff --git a/packages/ui/certd-client/README.md b/packages/ui/certd-client/README.md index c0166cfd..b360e070 100644 --- a/packages/ui/certd-client/README.md +++ b/packages/ui/certd-client/README.md @@ -34,3 +34,4 @@ https://github.com/fast-crud/fs-server-js + diff --git a/packages/ui/certd-client/package.json b/packages/ui/certd-client/package.json index 9fe20e4d..12b1ba62 100644 --- a/packages/ui/certd-client/package.json +++ b/packages/ui/certd-client/package.json @@ -16,7 +16,8 @@ "lint-fix": "eslint --fix --ext .js --ext .jsx --ext .vue src/", "upgrade": "yarn upgrade-interactive --latest", "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", "license": "MIT", diff --git a/packages/ui/certd-client/src/views/crud/feature/search/crud.tsx b/packages/ui/certd-client/src/views/crud/feature/search/crud.tsx index bd4accfc..6bac155c 100644 --- a/packages/ui/certd-client/src/views/crud/feature/search/crud.tsx +++ b/packages/ui/certd-client/src/views/crud/feature/search/crud.tsx @@ -33,7 +33,8 @@ export default function ({ crudExpose }: CreateCrudOptionsProps): CreateCrudOpti search: { validate: true, initialForm: { - radio: null + //查询默认值 + radio: "1" }, buttons: { custom: { @@ -87,6 +88,14 @@ export default function ({ crudExpose }: CreateCrudOptionsProps): CreateCrudOpti type: "dict-radio", dict: statusRef }, + text: { + title: "默认值", + type: "text", + search: { + show: true, + value: "1" + } + }, customRender: { title: "自定义render", search: { diff --git a/packages/ui/certd-client/src/views/crud/feature/search/mock.ts b/packages/ui/certd-client/src/views/crud/feature/search/mock.ts index e9bba726..12c235e7 100644 --- a/packages/ui/certd-client/src/views/crud/feature/search/mock.ts +++ b/packages/ui/certd-client/src/views/crud/feature/search/mock.ts @@ -6,15 +6,18 @@ const options: any = { const list = [ { radio: "1", + text: "1", customRender: true, customRender2: false, customRender3: true }, { - radio: "2" + radio: "2", + text: "2" }, { - radio: "0" + radio: "0", + text: "3" } ]; options.list = list;