File tree 8 files changed +26
-24
lines changed
8 files changed +26
-24
lines changed Original file line number Diff line number Diff line change 5
5
"source.fixAll.eslint" : true
6
6
},
7
7
"[vue]" : {
8
- "editor.defaultFormatter" : " rvest.vs-code- prettier-eslint "
8
+ "editor.defaultFormatter" : " esbenp. prettier-vscode "
9
9
},
10
10
"i18n-ally.localesPaths" : [" src/locales" ],
11
11
"i18n-ally.keystyle" : " nested" ,
Original file line number Diff line number Diff line change @@ -166,11 +166,7 @@ const crudSchemas = reactive<CrudSchema[]>([
166
166
hidden: true
167
167
},
168
168
form: {
169
- component: ' DatePicker' ,
170
- componentProps: {
171
- type: ' datetime' ,
172
- valueFormat: ' YYYY-MM-DD HH:mm:ss'
173
- }
169
+ hidden: true
174
170
}
175
171
},
176
172
{
Original file line number Diff line number Diff line change @@ -20,9 +20,7 @@ const props = defineProps({
20
20
21
21
const rules = reactive ({
22
22
id: [required ()],
23
- status: [required ()],
24
- createTime: [required ()],
25
- remark: [required ()]
23
+ status: [required ()]
26
24
})
27
25
28
26
const { formRegister, formMethods } = useForm ()
Original file line number Diff line number Diff line change @@ -36,10 +36,6 @@ const tableColumns = reactive<TableColumn[]>([
36
36
field: ' roleName' ,
37
37
label: t (' role.roleName' )
38
38
},
39
- {
40
- field: ' role' ,
41
- label: t (' role.role' )
42
- },
43
39
{
44
40
field: ' status' ,
45
41
label: t (' menu.status' ),
Original file line number Diff line number Diff line change @@ -28,11 +28,6 @@ const formSchema = ref<FormSchema[]>([
28
28
label: t (' role.roleName' ),
29
29
component: ' Input'
30
30
},
31
- {
32
- field: ' role' ,
33
- label: t (' role.role' ),
34
- component: ' Input'
35
- },
36
31
{
37
32
field: ' status' ,
38
33
label: t (' menu.status' ),
Original file line number Diff line number Diff line change @@ -276,7 +276,7 @@ const save = async () => {
276
276
277
277
<template >
278
278
<div class =" flex w-100% h-100%" >
279
- <ContentWrap class =" flex-1 " >
279
+ <ContentWrap class =" w-250px " >
280
280
<div class =" flex justify-center items-center" >
281
281
<div class =" flex-1" >{{ t('userDemo.departmentList') }}</div >
282
282
<ElInput
@@ -299,7 +299,16 @@ const save = async () => {
299
299
}"
300
300
:filter-node-method =" filterNode"
301
301
@current-change =" currentChange"
302
- />
302
+ >
303
+ <template #default =" { data } " >
304
+ <div
305
+ :title =" data.departmentName"
306
+ class =" whitespace-nowrap overflow-ellipsis overflow-hidden"
307
+ >
308
+ {{ data.departmentName }}
309
+ </div >
310
+ </template >
311
+ </ElTree >
303
312
</ContentWrap >
304
313
<ContentWrap class =" flex-[3] ml-20px" >
305
314
<Search
Original file line number Diff line number Diff line change @@ -21,10 +21,7 @@ const props = defineProps({
21
21
const rules = reactive ({
22
22
username: [required ()],
23
23
account: [required ()],
24
- ' department.id' : [required ()],
25
- role: [required ()],
26
- email: [required ()],
27
- createTime: [required ()]
24
+ ' department.id' : [required ()]
28
25
})
29
26
30
27
const { formRegister, formMethods } = useForm ()
Original file line number Diff line number Diff line change @@ -4,6 +4,17 @@ import transformerVariantGroup from '@unocss/transformer-variant-group'
4
4
export default defineConfig ( {
5
5
// ...UnoCSS options
6
6
rules : [
7
+ [
8
+ / ^ o v e r f l o w - e l l i p s i s $ / ,
9
+ ( [ ] , { rawSelector } ) => {
10
+ const selector = e ( rawSelector )
11
+ return `
12
+ ${ selector } {
13
+ text-overflow: ellipsis;
14
+ }
15
+ `
16
+ }
17
+ ] ,
7
18
[
8
19
/ ^ c u s t o m - h o v e r $ / ,
9
20
( [ ] , { rawSelector } ) => {
You can’t perform that action at this time.
0 commit comments