2
0
mirror of https://github.com/acepanel/panel.git synced 2026-02-04 19:37:18 +08:00

feat: 前端优化

This commit is contained in:
2026-01-10 21:00:04 +08:00
parent ee006282df
commit 1846caf388
4 changed files with 6 additions and 4 deletions

View File

@@ -57,13 +57,15 @@ const columns: any = [
key: 'comment',
minWidth: 250,
resizable: true,
ellipsis: { tooltip: true },
render(row: any) {
return h(NInput, {
size: 'small',
class: 'w-full',
value: row.comment,
// MySQL 不支持数据库备注
disabled: row.type === 'mysql',
placeholder:
row.type === 'mysql' ? $gettext('MySQL does not support database comments') : undefined,
onBlur: () => handleComment(row),
onUpdateValue(v) {
row.comment = v

View File

@@ -97,10 +97,10 @@ const columns: any = [
key: 'remark',
minWidth: 250,
resizable: true,
ellipsis: { tooltip: true },
render(row: any) {
return h(NInput, {
size: 'small',
class: 'w-full',
value: row.remark,
onBlur: () => handleRemark(row),
onUpdateValue(v) {

View File

@@ -114,10 +114,10 @@ const columns: any = [
key: 'remark',
minWidth: 250,
resizable: true,
ellipsis: { tooltip: true },
render(row: any) {
return h(NInput, {
size: 'small',
class: 'w-full',
value: row.remark,
onBlur: () => handleRemark(row),
onUpdateValue(v) {

View File

@@ -107,10 +107,10 @@ const columns: any = [
key: 'remark',
minWidth: 200,
resizable: true,
ellipsis: { tooltip: true },
render(row: any) {
return h(NInput, {
size: 'small',
class: 'w-full',
value: row.remark,
onBlur: () => handleRemark(row),
onUpdateValue(v) {