Skip to content

Commit

Permalink
style: 修改样式
Browse files Browse the repository at this point in the history
  • Loading branch information
kailong321200875 committed Nov 8, 2023
1 parent 2772613 commit 92d436b
Show file tree
Hide file tree
Showing 8 changed files with 26 additions and 24 deletions.
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"source.fixAll.eslint": true
},
"[vue]": {
"editor.defaultFormatter": "rvest.vs-code-prettier-eslint"
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"i18n-ally.localesPaths": ["src/locales"],
"i18n-ally.keystyle": "nested",
Expand Down
6 changes: 1 addition & 5 deletions src/views/Authorization/Department/Department.vue
Original file line number Diff line number Diff line change
Expand Up @@ -166,11 +166,7 @@ const crudSchemas = reactive<CrudSchema[]>([
hidden: true
},
form: {
component: 'DatePicker',
componentProps: {
type: 'datetime',
valueFormat: 'YYYY-MM-DD HH:mm:ss'
}
hidden: true
}
},
{
Expand Down
4 changes: 1 addition & 3 deletions src/views/Authorization/Department/components/Write.vue
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,7 @@ const props = defineProps({
const rules = reactive({
id: [required()],
status: [required()],
createTime: [required()],
remark: [required()]
status: [required()]
})
const { formRegister, formMethods } = useForm()
Expand Down
4 changes: 0 additions & 4 deletions src/views/Authorization/Role/Role.vue
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,6 @@ const tableColumns = reactive<TableColumn[]>([
field: 'roleName',
label: t('role.roleName')
},
{
field: 'role',
label: t('role.role')
},
{
field: 'status',
label: t('menu.status'),
Expand Down
5 changes: 0 additions & 5 deletions src/views/Authorization/Role/components/Write.vue
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,6 @@ const formSchema = ref<FormSchema[]>([
label: t('role.roleName'),
component: 'Input'
},
{
field: 'role',
label: t('role.role'),
component: 'Input'
},
{
field: 'status',
label: t('menu.status'),
Expand Down
13 changes: 11 additions & 2 deletions src/views/Authorization/User/User.vue
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ const save = async () => {

<template>
<div class="flex w-100% h-100%">
<ContentWrap class="flex-1">
<ContentWrap class="w-250px">
<div class="flex justify-center items-center">
<div class="flex-1">{{ t('userDemo.departmentList') }}</div>
<ElInput
Expand All @@ -299,7 +299,16 @@ const save = async () => {
}"
:filter-node-method="filterNode"
@current-change="currentChange"
/>
>
<template #default="{ data }">
<div
:title="data.departmentName"
class="whitespace-nowrap overflow-ellipsis overflow-hidden"
>
{{ data.departmentName }}
</div>
</template>
</ElTree>
</ContentWrap>
<ContentWrap class="flex-[3] ml-20px">
<Search
Expand Down
5 changes: 1 addition & 4 deletions src/views/Authorization/User/components/Write.vue
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,7 @@ const props = defineProps({
const rules = reactive({
username: [required()],
account: [required()],
'department.id': [required()],
role: [required()],
email: [required()],
createTime: [required()]
'department.id': [required()]
})
const { formRegister, formMethods } = useForm()
Expand Down
11 changes: 11 additions & 0 deletions uno.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,17 @@ import transformerVariantGroup from '@unocss/transformer-variant-group'
export default defineConfig({
// ...UnoCSS options
rules: [
[
/^overflow-ellipsis$/,
([], { rawSelector }) => {
const selector = e(rawSelector)
return `
${selector} {
text-overflow: ellipsis;
}
`
}
],
[
/^custom-hover$/,
([], { rawSelector }) => {
Expand Down

0 comments on commit 92d436b

Please sign in to comment.