Skip to content

Commit aabdc71

Browse files
authored
Merge branch 'dev' into echarts-click-listener
2 parents 005f65f + 2baa2d6 commit aabdc71

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

client/packages/lowcoder-sdk/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "lowcoder-sdk",
3-
"version": "2.4.0-beta-1",
3+
"version": "2.4.0-beta-2",
44
"type": "module",
55
"files": [
66
"src",

client/packages/lowcoder/src/comps/queries/libraryQuery.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ interface InputItem {
4747

4848
type InputChildrenType = Record<string, InstanceType<ContextControlType>>;
4949

50-
const InputsComp = class extends MultiBaseComp<InputChildrenType, ToDataType<InputChildrenType>> {
50+
class InputsComp extends MultiBaseComp<InputChildrenType, ToDataType<InputChildrenType>> {
5151
params: any = {};
5252
inputs: InputItem[] = [];
5353

docs/build-apps/use-third-party-libraries.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,11 +68,12 @@ Navigate to the settings page and then click the plus sign **+** under the **Jav
6868

6969
<figure><img src="../.gitbook/assets/third-party-lib-1.png" alt=""><figcaption></figcaption></figure>
7070

71-
Create a JS query and insert code.
71+
Create a JS query and insert code. All js libraries are imported to the `window` scope, thus you need to prefix any calls
72+
with `window.`.
7273

7374
<figure><img src="../.gitbook/assets/third-party-lib-2.png" alt=""><figcaption></figcaption></figure>
7475

75-
You can obtain the same result by calling the `cowsay.say()` method in the value of the text component.
76+
You can obtain the same result by calling `window.cowsay.say()` method in the value of the text component.
7677

7778
<figure><img src="../.gitbook/assets/third-party-lib-3.png" alt=""><figcaption></figcaption></figure>
7879

0 commit comments

Comments
 (0)