dream-num / univer

Univer is an isomorphic full-stack framework for creating and editing spreadsheets, docs, and slides across client and server.
https://univer.ai
Apache License 2.0
7.52k stars 654 forks source link

[Bug] Error when i use UniverSheetsConditionalFormattingPreset and UniverPresetSheetsConditionalFormattingZhCN #4217

Closed hurricane1998 closed 17 hours ago

hurricane1998 commented 18 hours ago

Before you submit this issue, have you checked the following

Affected packages and versions

0.5.0 and 0.5.1

Reproduction link

Expected behavior

Maybe you should expose UniverPresetSheetsConditionalFormattingZhCN and UniverSheetsConditionalFormattingPreset on window like UniverPresetSheetsCore?

Actual behavior

image

image

System information

No response

univer-bot[bot] commented 18 hours ago

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

Origin Title: [Bug] Error when i use UniverSheetsConditionalFormattingPreset and UniverPresetSheetsConditionalFormattingZhCN

Title: [Bug] Error when i use UniverSheetsConditionalFormattingPreset and UniverPresetSheetsConditionalFormattingZhCN


Before you submit this issue, have you checked the following

Affected packages and versions

0.5.0 and 0.5.1

Reproduction link

Expected behavior

Maybe you should expose UniverPresetSheetsConditionalFormattingZhCN and UniverSheetsConditionalFormattingPreset on window like UniverPresetSheetsCore?

Actual behavior

image

image

System information

No response

jikkai commented 17 hours ago

You did not import the conditional formatting package.

hurricane1998 commented 16 hours ago

I used a umd js, do I still need to import it by myself?I can't find how to import the conditional formatting package.

jikkai commented 16 hours ago

Yes, you should import the corresponding preset package as needed.

https://unpkg.com/@univerjs/preset-sheets-conditional-formatting@0.5.1/lib/umd/index.js

hurricane1998 commented 16 hours ago

ok,thank you very much! I will try it tomorrow.