重构: 前端优化及主题logo

pull/49/head
李强 2022-04-20 00:36:26 +08:00
parent 7a5d9e5fb0
commit c3dfb3bed4
23 changed files with 72 additions and 46 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.3 KiB

After

Width:  |  Height:  |  Size: 7.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.6 KiB

After

Width:  |  Height:  |  Size: 5.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.3 KiB

After

Width:  |  Height:  |  Size: 7.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.2 KiB

After

Width:  |  Height:  |  Size: 5.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.3 KiB

After

Width:  |  Height:  |  Size: 7.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.2 KiB

After

Width:  |  Height:  |  Size: 5.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 376 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.2 KiB

After

Width:  |  Height:  |  Size: 7.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.2 KiB

After

Width:  |  Height:  |  Size: 4.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.9 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.6 KiB

After

Width:  |  Height:  |  Size: 7.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.5 KiB

After

Width:  |  Height:  |  Size: 6.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.2 KiB

After

Width:  |  Height:  |  Size: 7.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.2 KiB

After

Width:  |  Height:  |  Size: 5.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 45 KiB

View File

@ -36,39 +36,39 @@ export default {
title: 'd2admin 经典', title: 'd2admin 经典',
name: 'd2', name: 'd2',
preview: 'image/theme/d2/preview@2x.png' preview: 'image/theme/d2/preview@2x.png'
},
{
title: 'Chester',
name: 'chester',
preview: 'image/theme/chester/preview@2x.jpg'
},
{
title: 'Element',
name: 'element',
preview: 'image/theme/element/preview@2x.jpg'
},
{
title: '紫罗兰',
name: 'violet',
preview: 'image/theme/violet/preview@2x.jpg'
},
{
title: '简约线条',
name: 'line',
backgroundImage: 'image/theme/line/bg.jpg',
preview: 'image/theme/line/preview@2x.jpg'
},
{
title: '流星',
name: 'star',
backgroundImage: 'image/theme/star/bg.jpg',
preview: 'image/theme/star/preview@2x.jpg'
},
{
title: 'Tomorrow Night Blue (vsCode)',
name: 'tomorrow-night-blue',
preview: 'image/theme/tomorrow-night-blue/preview@2x.jpg'
} }
// {
// title: 'Chester',
// name: 'chester',
// preview: 'image/theme/chester/preview@2x.png'
// },
// {
// title: 'Element',
// name: 'element',
// preview: 'image/theme/element/preview@2x.png'
// },
// {
// title: '紫罗兰',
// name: 'violet',
// preview: 'image/theme/violet/preview@2x.png'
// },
// {
// title: '简约线条',
// name: 'line',
// backgroundImage: 'image/theme/line/bg.jpg',
// preview: 'image/theme/line/preview@2x.png'
// },
// {
// title: '流星',
// name: 'star',
// backgroundImage: 'image/theme/star/bg.jpg',
// preview: 'image/theme/star/preview@2x.png'
// },
// {
// title: 'Tomorrow Night Blue (vsCode)',
// name: 'tomorrow-night-blue',
// preview: 'image/theme/tomorrow-night-blue/preview@2x.png'
// }
] ]
}, },
// 是否默认开启页面切换动画 // 是否默认开启页面切换动画

View File

@ -78,8 +78,12 @@ export const crudOptions = (vm) => {
disabled: false disabled: false
}, },
width: 160, width: 160,
type: 'input' type: 'input',
form: {
component: {
placeholder: '请输入文件名称'
}
}
}, },
{ {
title: '文件地址', title: '文件地址',

View File

@ -12,14 +12,15 @@ export const crudOptions = (vm) => {
}, },
rowHandle: { rowHandle: {
fixed: 'right',
view: { view: {
thin: true, thin: true,
text: '详情', text: '',
disabled () { disabled () {
return !vm.hasPermissions('Retrieve') return !vm.hasPermissions('Retrieve')
} }
}, },
width: 160, width: 70,
edit: { edit: {
thin: true, thin: true,
text: '', text: '',
@ -42,7 +43,12 @@ export const crudOptions = (vm) => {
}, },
formOptions: { formOptions: {
disabled: true, disabled: true,
defaultSpan: 24 // 默认的表单 span defaultSpan: 12 // 默认的表单 span
},
indexRow: { // 或者直接传true,不显示title不居中
title: '序号',
align: 'center',
width: 70
}, },
columns: [ columns: [
{ {
@ -106,11 +112,16 @@ export const crudOptions = (vm) => {
disabled: true disabled: true
}, },
disabled: true, disabled: true,
width: 180, type: 'textarea',
type: 'input',
form: { form: {
disabled: true, disabled: true,
component: { component: {
props: {
type: 'textarea'
},
autosize: {
minRows: 2, maxRows: 8
},
placeholder: '请输入关键词' placeholder: '请输入关键词'
} }
} }
@ -147,7 +158,7 @@ export const crudOptions = (vm) => {
search: { search: {
disabled: false disabled: false
}, },
width: 100, width: 130,
type: 'input', type: 'input',
form: { form: {
disabled: true, disabled: true,
@ -199,6 +210,7 @@ export const crudOptions = (vm) => {
search: { search: {
disabled: true disabled: true
}, },
minWidth: 240,
type: 'input', type: 'input',
form: { form: {
disabled: true disabled: true
@ -223,7 +235,8 @@ export const crudOptions = (vm) => {
} }
}, },
{ {
title: '创建时间', fixed: 'right',
title: '操作时间',
key: 'create_datetime', key: 'create_datetime',
width: 160, width: 160,
type: 'datetime', type: 'datetime',

View File

@ -13,6 +13,7 @@ export const crudOptions = (vm) => {
height: '100%' height: '100%'
}, },
rowHandle: { rowHandle: {
fixed: 'right',
width: 180, width: 180,
view: { view: {
thin: true, thin: true,
@ -59,7 +60,7 @@ export const crudOptions = (vm) => {
indexRow: { // 或者直接传true,不显示title不居中 indexRow: { // 或者直接传true,不显示title不居中
title: '序号', title: '序号',
align: 'center', align: 'center',
width: 100 width: 70
}, },
columns: [ columns: [
{ {
@ -95,7 +96,7 @@ export const crudOptions = (vm) => {
search: { search: {
disabled: false disabled: false
}, },
width: 160, width: 140,
type: 'input', type: 'input',
form: { form: {
rules: [ // 表单校验规则 rules: [ // 表单校验规则
@ -141,6 +142,7 @@ export const crudOptions = (vm) => {
search: { search: {
disabled: true disabled: true
}, },
minWidth: 140,
type: 'table-selector', type: 'table-selector',
dict: { dict: {
cache: false, cache: false,
@ -192,6 +194,7 @@ export const crudOptions = (vm) => {
search: { search: {
disabled: true disabled: true
}, },
minWidth: 110,
type: 'input', type: 'input',
form: { form: {
rules: [ rules: [
@ -208,6 +211,7 @@ export const crudOptions = (vm) => {
}, { }, {
title: '邮箱', title: '邮箱',
key: 'email', key: 'email',
minWidth: 160,
form: { form: {
rules: [ rules: [
{ type: 'email', message: '请输入正确的邮箱地址', trigger: ['blur', 'change'] } { type: 'email', message: '请输入正确的邮箱地址', trigger: ['blur', 'change'] }
@ -221,6 +225,7 @@ export const crudOptions = (vm) => {
title: '性别', title: '性别',
key: 'gender', key: 'gender',
type: 'radio', type: 'radio',
width: 70,
dict: { dict: {
data: [{ label: '', value: 1 }, { label: '', value: 0 }] data: [{ label: '', value: 1 }, { label: '', value: 0 }]
}, },
@ -238,7 +243,7 @@ export const crudOptions = (vm) => {
search: { search: {
disabled: false disabled: false
}, },
width: 90, width: 70,
type: 'radio', type: 'radio',
dict: { dict: {
data: BUTTON_STATUS_BOOL data: BUTTON_STATUS_BOOL
@ -309,6 +314,7 @@ export const crudOptions = (vm) => {
search: { search: {
disabled: true disabled: true
}, },
minWidth: 130,
type: 'table-selector', type: 'table-selector',
dict: { dict: {
cache: false, cache: false,
@ -354,6 +360,6 @@ export const crudOptions = (vm) => {
} }
} }
} }
].concat(vm.commonEndColumns({ show_create_datetime: false })) ].concat(vm.commonEndColumns({ update_datetime: { showForm: false, showTable: false }, create_datetime: { showForm: false, showTable: true } }))
} }
} }

View File

@ -45,7 +45,10 @@ export const crudOptions = (vm) => {
disabled: false disabled: false
}, },
form: { form: {
disabled: true disabled: true,
component: {
placeholder: '请输入关键词'
}
}, },
view: { // 查看对话框组件的单独配置 view: { // 查看对话框组件的单独配置
disabled: true disabled: true