fix(editor): add placeholder for input of database context menu (#11079)

fix: BS-2594
This commit is contained in:
zzj3720
2025-03-21 12:27:18 +00:00
parent 73807193cb
commit dd2e423112
6 changed files with 7 additions and 2 deletions

View File

@@ -14,6 +14,7 @@ export const inputConfig = (property: Property) => {
</div>
`,
initialValue: property.name$.value,
placeholder: 'Property name',
onChange: text => {
property.nameSet(text);
},
@@ -26,6 +27,7 @@ export const inputConfig = (property: Property) => {
</div>
`,
initialValue: property.name$.value,
placeholder: 'Property name',
onComplete: text => {
property.nameSet(text);
},

View File

@@ -236,6 +236,7 @@ export const popViewOptions = (
items.push(
menu.input({
initialValue: view.name$.value,
placeholder: 'View name',
onChange: text => {
view.nameSet(text);
},

View File

@@ -164,6 +164,7 @@ export class DataViewHeaderViews extends WidgetBase {
items: [
menu.input({
initialValue: view.name$.value,
placeholder: 'View name',
onChange: text => {
view.nameSet(text);
},