diff --git a/zh-cn/application-dev/reference/apis/js-apis-inputmethodengine.md b/zh-cn/application-dev/reference/apis/js-apis-inputmethodengine.md index 1bff8a6c6862ba5f866812922b879879f43975bf..8386e9e073bbeb07b03959f7df618b9f9d503bfe 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-inputmethodengine.md +++ b/zh-cn/application-dev/reference/apis/js-apis-inputmethodengine.md @@ -508,8 +508,8 @@ createPanel(ctx: BaseContext, info: PanelInfo, callback: AsyncCallback\): ```js let panelInfo: inputMethodEngine.PanelInfo = { - panelType: inputMethodEngine.PanelType.SOFT_KEYBOARD, - panelFlag: inputMethodEngine.PanelFlag.FLG_FIXED + type: inputMethodEngine.PanelType.SOFT_KEYBOARD, + flag: inputMethodEngine.PanelFlag.FLG_FIXED } try { inputMethodEngine.getInputMethodAbility().createPanel(this.context, panelInfo, (err, panel) => { @@ -556,8 +556,8 @@ createPanel(ctx: BaseContext, info: PanelInfo): Promise\ ```js let panelInfo: inputMethodEngine.PanelInfo = { - panelType: inputMethodEngine.PanelType.SOFT_KEYBOARD, - panelFlag: inputMethodEngine.PanelFlag.FLG_FIXED + type: inputMethodEngine.PanelType.SOFT_KEYBOARD, + flag: inputMethodEngine.PanelFlag.FLG_FIXED } inputMethodEngine.getInputMethodAbility().createPanel(this.context, panelInfo).then((panel) => { console.log('Succeed in creating panel.'); @@ -585,8 +585,8 @@ destroyPanel(panel: Panel, callback: AsyncCallback\): void; ```js let panelInfo: inputMethodEngine.PanelInfo = { - panelType: inputMethodEngine.PanelType.SOFT_KEYBOARD, - panelFlag: inputMethodEngine.PanelFlag.FLG_FIXED + type: inputMethodEngine.PanelType.SOFT_KEYBOARD, + flag: inputMethodEngine.PanelFlag.FLG_FIXED } try { inputMethodEngine.getInputMethodAbility().createPanel(this.context, panelInfo, (err, panel) => { @@ -637,8 +637,8 @@ destroyPanel(panel: Panel): Promise\; ```js let panelInfo: inputMethodEngine.PanelInfo = { - panelType: inputMethodEngine.PanelType.SOFT_KEYBOARD, - panelFlag: inputMethodEngine.PanelFlag.FLG_FIXED + type: inputMethodEngine.PanelType.SOFT_KEYBOARD, + flag: inputMethodEngine.PanelFlag.FLG_FIXED } try { inputMethodEngine.getInputMethodAbility().createPanel(this.context, panelInfo, (err, panel) => {