mirror of
https://github.com/acepanel/panel.git
synced 2026-02-04 10:17:17 +08:00
feat: 前端优化
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user