mirror of
https://github.com/cool-team-official/cool-admin-vue.git
synced 2026-02-03 14:28:13 +00:00
优化
This commit is contained in:
parent
9d4390ff32
commit
6822d2d64f
@ -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-beta8",
|
"@cool-vue/crud": "^7.0.1-beta9",
|
||||||
"@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",
|
||||||
|
|||||||
2
packages/crud/index.d.ts
vendored
2
packages/crud/index.d.ts
vendored
@ -703,7 +703,7 @@ declare interface Config {
|
|||||||
size: ElementPlus.Size;
|
size: ElementPlus.Size;
|
||||||
colors: string[];
|
colors: string[];
|
||||||
form: {
|
form: {
|
||||||
labelPostion: ElementPlus.FormProps["labelPosition"];
|
labelPosition: ElementPlus.FormProps["labelPosition"];
|
||||||
labelWidth: ElementPlus.FormProps["labelWidth"];
|
labelWidth: ElementPlus.FormProps["labelWidth"];
|
||||||
span: number;
|
span: number;
|
||||||
};
|
};
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@cool-vue/crud",
|
"name": "@cool-vue/crud",
|
||||||
"version": "7.0.1-beta8",
|
"version": "7.0.1-beta9",
|
||||||
"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",
|
||||||
|
|||||||
@ -459,9 +459,6 @@ export default defineComponent({
|
|||||||
<el-form
|
<el-form
|
||||||
ref={Form}
|
ref={Form}
|
||||||
size={style.size}
|
size={style.size}
|
||||||
label-position={
|
|
||||||
browser.isMini && !props.inline ? "top" : style.form.labelPostion
|
|
||||||
}
|
|
||||||
label-width={style.form.labelWidth}
|
label-width={style.form.labelWidth}
|
||||||
inline={props.inline}
|
inline={props.inline}
|
||||||
disabled={saving.value}
|
disabled={saving.value}
|
||||||
@ -472,7 +469,13 @@ export default defineComponent({
|
|||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
}}
|
}}
|
||||||
/>,
|
/>,
|
||||||
config.props,
|
{
|
||||||
|
...config.props,
|
||||||
|
labelPosition:
|
||||||
|
browser.isMini && !props.inline
|
||||||
|
? "top"
|
||||||
|
: config.props.labelPosition || style.form.labelPosition
|
||||||
|
},
|
||||||
{
|
{
|
||||||
default: () => {
|
default: () => {
|
||||||
return (
|
return (
|
||||||
|
|||||||
@ -405,7 +405,7 @@
|
|||||||
grid-template-rows: 0fr;
|
grid-template-rows: 0fr;
|
||||||
|
|
||||||
> .cl-form-item__children {
|
> .cl-form-item__children {
|
||||||
margin: 10px 10px 10px 0px;
|
margin: 10px;
|
||||||
min-height: 0;
|
min-height: 0;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -40,8 +40,6 @@ export function parseTableDict(value: any, item: ClTable.Column) {
|
|||||||
(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 };
|
||||||
|
|||||||
@ -1,12 +1,12 @@
|
|||||||
import { Merge, ModuleConfig } from "/@/cool";
|
import { Merge, ModuleConfig } from "/@/cool";
|
||||||
|
|
||||||
// npm
|
// npm
|
||||||
import Crud, { locale } from "@cool-vue/crud";
|
// import Crud, { locale } from "@cool-vue/crud";
|
||||||
import "@cool-vue/crud/dist/index.css";
|
// import "@cool-vue/crud/dist/index.css";
|
||||||
|
|
||||||
// 调试、自定义crud
|
// 调试、自定义crud
|
||||||
// import Crud, { locale } from "../../../packages/crud/src";
|
import Crud, { locale } from "../../../packages/crud/src";
|
||||||
// import "../../../packages/crud/src/static/index.scss";
|
import "../../../packages/crud/src/static/index.scss";
|
||||||
|
|
||||||
export default (): Merge<ModuleConfig, CrudOptions> => {
|
export default (): Merge<ModuleConfig, CrudOptions> => {
|
||||||
return {
|
return {
|
||||||
|
|||||||
@ -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-beta8":
|
"@cool-vue/crud@^7.0.1-beta9":
|
||||||
version "7.0.1-beta8"
|
version "7.0.1-beta9"
|
||||||
resolved "https://registry.yarnpkg.com/@cool-vue/crud/-/crud-7.0.1-beta8.tgz#c853cf06d0fa0ac207899d3a41789435d978b445"
|
resolved "https://registry.yarnpkg.com/@cool-vue/crud/-/crud-7.0.1-beta9.tgz#caacb1eab03f48bc6789209242b198ebd06435f5"
|
||||||
integrity sha512-9t4Joj4kBfw3oUtR36K2FsOykVL1/nQnLnFx/7sDNn0lc631wt4VCAtKbTYiHlZWn+bxxL7YAphlFYPaGk8hgA==
|
integrity sha512-PnukV6Q1sPsXZS2li2BrmCDmYKJdqFumE/wA2kaSTOcrIgmjYmrS/oa2c3C5BKXrwDD9561kq0q8vsKBTpGQxQ==
|
||||||
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