This commit is contained in:
神仙都没用 2023-10-18 16:22:59 +08:00
parent ee470d2902
commit 9d4390ff32
4 changed files with 9 additions and 7 deletions

View File

@ -9,7 +9,7 @@
"lint:eslint": "eslint \"{src}/**/*.{vue,ts,tsx}\" --fix"
},
"dependencies": {
"@cool-vue/crud": "^7.0.1-beta6",
"@cool-vue/crud": "^7.0.1-beta8",
"@element-plus/icons-vue": "^2.1.0",
"@vueuse/core": "^10.4.0",
"@wangeditor/editor": "^5.1.23",

View File

@ -1,6 +1,6 @@
{
"name": "@cool-vue/crud",
"version": "7.0.1-beta7",
"version": "7.0.1-beta8",
"private": false,
"main": "./dist/index.umd.min.js",
"typings": "types/index.d.ts",

View File

@ -37,9 +37,11 @@ export function parseTableDict(value: any, item: ClTable.Column) {
// 绑定值
const values = (isArray(value) ? value : [value]).filter(
(e) => e !== undefined || e !== null || e !== ""
(e) => e !== undefined && e !== null && e !== ""
);
console.log(values);
// 返回值
const list = values.map((v) => {
const d = deepFind(v, options) || { label: v, value: v };

View File

@ -282,10 +282,10 @@
"@babel/helper-validator-identifier" "^7.22.20"
to-fast-properties "^2.0.0"
"@cool-vue/crud@^7.0.1-beta6":
version "7.0.1-beta6"
resolved "https://registry.yarnpkg.com/@cool-vue/crud/-/crud-7.0.1-beta6.tgz#dc3b8d6c607fba4dc2b4b40f6906c8a70f58bb49"
integrity sha512-DtUvZc4EQtfANvPMv9ydfNJxcmXsOaoUiWEf66vRSzDeOZ1K0a1u1Ha0y7R09C2HC2wla8GvKv0ySxM9aDLXNQ==
"@cool-vue/crud@^7.0.1-beta8":
version "7.0.1-beta8"
resolved "https://registry.yarnpkg.com/@cool-vue/crud/-/crud-7.0.1-beta8.tgz#c853cf06d0fa0ac207899d3a41789435d978b445"
integrity sha512-9t4Joj4kBfw3oUtR36K2FsOykVL1/nQnLnFx/7sDNn0lc631wt4VCAtKbTYiHlZWn+bxxL7YAphlFYPaGk8hgA==
dependencies:
array.prototype.flat "^1.2.4"
core-js "^3.21.1"