mirror of
https://github.com/cool-team-official/cool-admin-vue.git
synced 2025-12-16 08:38:48 +00:00
优化
This commit is contained in:
parent
ee470d2902
commit
9d4390ff32
@ -9,7 +9,7 @@
|
|||||||
"lint:eslint": "eslint \"{src}/**/*.{vue,ts,tsx}\" --fix"
|
"lint:eslint": "eslint \"{src}/**/*.{vue,ts,tsx}\" --fix"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@cool-vue/crud": "^7.0.1-beta6",
|
"@cool-vue/crud": "^7.0.1-beta8",
|
||||||
"@element-plus/icons-vue": "^2.1.0",
|
"@element-plus/icons-vue": "^2.1.0",
|
||||||
"@vueuse/core": "^10.4.0",
|
"@vueuse/core": "^10.4.0",
|
||||||
"@wangeditor/editor": "^5.1.23",
|
"@wangeditor/editor": "^5.1.23",
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@cool-vue/crud",
|
"name": "@cool-vue/crud",
|
||||||
"version": "7.0.1-beta7",
|
"version": "7.0.1-beta8",
|
||||||
"private": false,
|
"private": false,
|
||||||
"main": "./dist/index.umd.min.js",
|
"main": "./dist/index.umd.min.js",
|
||||||
"typings": "types/index.d.ts",
|
"typings": "types/index.d.ts",
|
||||||
|
|||||||
@ -37,9 +37,11 @@ export function parseTableDict(value: any, item: ClTable.Column) {
|
|||||||
|
|
||||||
// 绑定值
|
// 绑定值
|
||||||
const values = (isArray(value) ? value : [value]).filter(
|
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 list = values.map((v) => {
|
||||||
const d = deepFind(v, options) || { label: v, value: v };
|
const d = deepFind(v, options) || { label: v, value: v };
|
||||||
|
|||||||
@ -282,10 +282,10 @@
|
|||||||
"@babel/helper-validator-identifier" "^7.22.20"
|
"@babel/helper-validator-identifier" "^7.22.20"
|
||||||
to-fast-properties "^2.0.0"
|
to-fast-properties "^2.0.0"
|
||||||
|
|
||||||
"@cool-vue/crud@^7.0.1-beta6":
|
"@cool-vue/crud@^7.0.1-beta8":
|
||||||
version "7.0.1-beta6"
|
version "7.0.1-beta8"
|
||||||
resolved "https://registry.yarnpkg.com/@cool-vue/crud/-/crud-7.0.1-beta6.tgz#dc3b8d6c607fba4dc2b4b40f6906c8a70f58bb49"
|
resolved "https://registry.yarnpkg.com/@cool-vue/crud/-/crud-7.0.1-beta8.tgz#c853cf06d0fa0ac207899d3a41789435d978b445"
|
||||||
integrity sha512-DtUvZc4EQtfANvPMv9ydfNJxcmXsOaoUiWEf66vRSzDeOZ1K0a1u1Ha0y7R09C2HC2wla8GvKv0ySxM9aDLXNQ==
|
integrity sha512-9t4Joj4kBfw3oUtR36K2FsOykVL1/nQnLnFx/7sDNn0lc631wt4VCAtKbTYiHlZWn+bxxL7YAphlFYPaGk8hgA==
|
||||||
dependencies:
|
dependencies:
|
||||||
array.prototype.flat "^1.2.4"
|
array.prototype.flat "^1.2.4"
|
||||||
core-js "^3.21.1"
|
core-js "^3.21.1"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user