Skip to content

Commit 8e741ff

Browse files
committed
v4 测试
1 parent 2610677 commit 8e741ff

File tree

109 files changed

+3313
-2322
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

109 files changed

+3313
-2322
lines changed

.vscode/crud.code-snippets

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@
3434
"",
3535
"<script lang=\"ts\">",
3636
"import { defineComponent, reactive } from \"vue\";",
37-
"import { CrudLoad, Upsert, Table } from \"cl-admin-crud-vue3/types\";",
38-
"import { useCool } from \"/@/core\";",
37+
"import { CrudLoad, Upsert, Table } from \"@cool-vue/crud/types\";",
38+
"import { useCool } from \"/@/cool\";",
3939
"",
4040
"export default defineComponent({",
4141
" setup() {",

build/config/rules.ts

Lines changed: 187 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,187 @@
1+
export default [
2+
{
3+
test: ["avatar", "img", "image", "pic", "photo", "picture", "head", "icon"],
4+
table: {
5+
name: "cl-image",
6+
props: {
7+
size: 60
8+
}
9+
},
10+
form: {
11+
name: "cl-upload"
12+
}
13+
},
14+
{
15+
test: ["avatars", "imgs", "images", "pics", "photos", "pictures", "heads", "icons"],
16+
table: {
17+
name: "cl-image",
18+
props: {
19+
size: 60
20+
}
21+
},
22+
form: {
23+
name: "cl-upload",
24+
props: {
25+
listType: "picture-card",
26+
multiple: true
27+
}
28+
}
29+
},
30+
{
31+
test: ["file", "attachment", "attach", "url", "video", "music"],
32+
table: {
33+
name: "cl-link"
34+
},
35+
form: {
36+
name: "cl-upload",
37+
props: {
38+
listType: "text",
39+
limit: 1
40+
}
41+
}
42+
},
43+
{
44+
test: ["files", "attachments", "attachs", "urls", "videos", "musics"],
45+
table: {
46+
name: "cl-link"
47+
},
48+
form: {
49+
name: "cl-upload",
50+
props: {
51+
listType: "text",
52+
multiple: true
53+
}
54+
}
55+
},
56+
{
57+
test: ["enable", "status"],
58+
table: {
59+
name: "cl-switch"
60+
},
61+
form: {
62+
name: "el-switch"
63+
}
64+
},
65+
{
66+
test: ["type", "classify", "category"],
67+
handler: "dict"
68+
},
69+
{
70+
test: ["types", "classifys", "categorys"],
71+
handler: "dict_multiple"
72+
},
73+
{
74+
test: ["date"],
75+
form: {
76+
name: "el-date-picker",
77+
props: {
78+
type: "date"
79+
}
80+
}
81+
},
82+
{
83+
test: ["dates", "dateRange", "dateScope"],
84+
form: {
85+
name: "el-date-picker",
86+
props: {
87+
type: "daterange"
88+
}
89+
}
90+
},
91+
{
92+
test: ["time"],
93+
form: {
94+
name: "el-date-picker",
95+
props: {
96+
type: "datetime"
97+
}
98+
}
99+
},
100+
{
101+
test: ["times", "timeRange", "timeScope"],
102+
form: {
103+
name: "el-date-picker",
104+
props: {
105+
type: "datetimerange"
106+
}
107+
}
108+
},
109+
{
110+
test: ["star", "stars"],
111+
table: {
112+
name: "el-rate",
113+
props: {
114+
disabled: true
115+
}
116+
},
117+
form: {
118+
name: "el-rate"
119+
}
120+
},
121+
{
122+
test: ["progress", "rate", "ratio"],
123+
table: {
124+
name: "el-progress"
125+
},
126+
form: {
127+
name: "el-slider",
128+
props: {
129+
style: {
130+
width: "200px"
131+
}
132+
}
133+
}
134+
},
135+
{
136+
test: ["num", "price", "age", "amount"],
137+
form: {
138+
name: "el-input-number",
139+
props: {
140+
min: 0
141+
}
142+
}
143+
},
144+
{
145+
test: ["remark", "desc"],
146+
table: {
147+
showOverflowTooltip: true
148+
},
149+
form: {
150+
name: "el-input",
151+
props: {
152+
type: "textarea",
153+
rows: 4
154+
}
155+
}
156+
},
157+
{
158+
test: ["rich", "text", "html", "content"],
159+
form: {
160+
name: "el-editor-quill",
161+
props: {
162+
height: 400
163+
}
164+
}
165+
},
166+
{
167+
test: ["code", "codes"],
168+
form: {
169+
name: "el-codemirror",
170+
props: {
171+
height: 400
172+
}
173+
}
174+
},
175+
{
176+
test: ["createTime"],
177+
table: {
178+
sortable: "desc"
179+
}
180+
},
181+
{
182+
test: ["updateTime"],
183+
table: {
184+
sortable: "custom"
185+
}
186+
}
187+
];

0 commit comments

Comments
 (0)