Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] After upgrading to 0.3.0, the custom extended Canvas function is unavailable #3690

Open
2 tasks done
yujianbohz opened this issue Oct 10, 2024 · 1 comment
Open
2 tasks done
Assignees
Labels
bug Something isn't working

Comments

@yujianbohz
Copy link

在您提交此问题之前,您是否检查了以下内容?

  • 这真的是个问题吗?
  • 我已经在 Github Issues 中搜索过了,但没有找到类似的问题。

受影响的包和版本

0.3.0

复现链接

复现步骤:
1.下载官方示例代码:https://univer.ai/zh-CN/playground?title=Render%20Extension
2.升级到0.3.0
2.1 调整初始化结构
UniverDocsUIPlugin must be registered after UniverUIPlugin
UniverRenderEnginePlugin should be registered before most plugins
3.官方示例定义拓展Canvas:
https://codesandbox.io/p/devbox/condescending-babbage-vkfl8h?file=%2Fmain-extension.ts%3A4%2C1&utm_medium=sandpack
3. 注册拓展Canvas插件 : univerAPI.registerSheetRowHeaderExtension(unitId, new RowHeaderCustomExtension())
4. 页面报错:
image

这是一个官方示例,版本号为0.2.1, 在示例代码中升级到0.3.0即可复现。

预期行为

在单元格中正常渲染emoji表情:🍎', '🍌', '🍒', '🍓', '🍅', '🍆', '🍇', '🍈', '🍉', '🍊

实际行为

报错,内容如下:
image

运行环境

No response

系统信息

No response

@yujianbohz yujianbohz added the bug Something isn't working label Oct 10, 2024
@univer-bot univer-bot bot changed the title [Bug] 升级0.3.0后,自定义拓展Canvas功能不可用 [Bug] After upgrading to 0.3.0, the custom extended Canvas function is unavailable Oct 10, 2024
@univer-bot
Copy link

univer-bot bot commented Oct 10, 2024

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿

Origin Title: [Bug] 升级0.3.0后,自定义拓展Canvas功能不可用

Title: [Bug] After upgrading to 0.3.0, the custom extended Canvas function is unavailable


Before you submitted this question, did you check the following?

  • Is this really a problem?
  • I've searched Github Issues but haven't found any similar issues.

Affected packages and versions

0.3.0

Recurrence link

Reproduction steps:

  1. Download the official sample code: https://univer.ai/zh-CN/playground?title=Render%20Extension
    2.Upgrade to 0.3.0
    2.1 Adjust initialization structure
    UniverDocsUIPlugin must be registered after UniverUIPlugin
    UniverRenderEnginePlugin should be registered before most plugins
  2. Official example definition extends Canvas:
    https://codesandbox.io/p/devbox/condescending-babbage-vkfl8h?file=%2Fmain-extension.ts%3A4%2C1&utm_medium=sandpack
  3. Register and expand the Canvas plug-in: univerAPI.registerSheetRowHeaderExtension(unitId, new RowHeaderCustomExtension())
  4. Page error:
    image

This is an official example, the version number is 0.2.1, you can reproduce it by upgrading to 0.3.0 in the example code.

Expected behavior

Render emoji expressions normally in cells: 🍎', '🍌', '🍒', '🍓', '🍅', '🍆', '🍇', '🍈', '🍉', '🍊

Actual behavior

An error is reported with the following content:
image

Running environment

No response

System information

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants