bi-sdk-react 0.0.75 → 0.0.77

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -16,6 +16,21 @@
16
16
  * https://github.com/ecomfe/zrender/blob/master/LICENSE.txt
17
17
  */
18
18
 
19
+ /*! *****************************************************************************
20
+ Copyright (c) Microsoft Corporation. All rights reserved.
21
+ Licensed under the Apache License, Version 2.0 (the "License"); you may not use
22
+ this file except in compliance with the License. You may obtain a copy of the
23
+ License at http://www.apache.org/licenses/LICENSE-2.0
24
+
25
+ THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
26
+ KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
27
+ WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
28
+ MERCHANTABLITY OR NON-INFRINGEMENT.
29
+
30
+ See the Apache Version 2.0 License for specific language governing permissions
31
+ and limitations under the License.
32
+ ***************************************************************************** */
33
+
19
34
  /*! *****************************************************************************
20
35
  Copyright (c) Microsoft Corporation.
21
36
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bi-sdk-react",
3
- "version": "0.0.75",
3
+ "version": "0.0.77",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "main": "dist/umd/js/bi-sdk.umd.min.js",
@@ -324,6 +324,8 @@ export const SelectPlugin: PluginType = {
324
324
  size: "default",
325
325
  allowClear: true,
326
326
  multiple: false,
327
+ source: "local",
328
+ globalDatasetScript: "return []",
327
329
  options: [
328
330
  { label: "选项1", value: "1" },
329
331
  { label: "选项2", value: "2" },
@@ -495,6 +497,7 @@ export const ModalPlugin: PluginType = {
495
497
  closable: true,
496
498
  keyboard: true,
497
499
  footer: false,
500
+ zIndex: 1000,
498
501
  },
499
502
  children: [],
500
503
  },
@@ -525,6 +528,7 @@ export const DrawerPlugin: PluginType = {
525
528
  mask: true,
526
529
  resizable: true,
527
530
  footer: false,
531
+ zIndex: 1000,
528
532
  },
529
533
  children: [],
530
534
  },
@@ -1,5 +1,14 @@
1
1
  import { InfoCircleOutlined } from "@ant-design/icons";
2
- import { Descriptions, Divider, Form, Input, InputNumber, Radio, Switch, Tooltip } from "antd";
2
+ import {
3
+ Descriptions,
4
+ Divider,
5
+ Form,
6
+ Input,
7
+ InputNumber,
8
+ Radio,
9
+ Switch,
10
+ Tooltip,
11
+ } from "antd";
3
12
  import React from "react";
4
13
  import styled from "styled-components";
5
14
  import type { PropEditorProps } from "./types";
@@ -23,6 +32,7 @@ export type DrawerModel = {
23
32
  mask?: boolean;
24
33
  maskClosable?: boolean;
25
34
  footer?: boolean;
35
+ zIndex?: number;
26
36
  };
27
37
 
28
38
  /**
@@ -53,6 +63,14 @@ export const DrawerProps: React.FC<PropEditorProps<DrawerModel>> = ({
53
63
  onChange={(v) => trigger("size", v)}
54
64
  />
55
65
  </Form.Item>
66
+ <Form.Item label="Z轴">
67
+ <InputNumber
68
+ size="small"
69
+ style={{ width: "100px" }}
70
+ value={model.zIndex || 1000}
71
+ onChange={(v) => trigger("zIndex", v)}
72
+ />
73
+ </Form.Item>
56
74
  <Form.Item label="抽屉位置">
57
75
  <Radio.Group
58
76
  size="small"