ydb-components-material 0.1.17 → 0.1.18
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.
- package/build/docs/404.html +3 -3
- package/build/docs/_demos/:uuid +3 -3
- package/build/docs/colorful-button.html +3 -3
- package/build/docs/colorful-input.html +3 -3
- package/build/docs/index.html +3 -3
- package/build/docs/umi.98b9987e.js +1 -0
- package/build/docs/~demos/:uuid.html +3 -3
- package/build/docs/~demos/colorful-button-demo.html +3 -3
- package/build/docs/~demos/colorful-input-demo.html +3 -3
- package/build/lowcode/assets-daily.json +11 -11
- package/build/lowcode/assets-dev.json +2 -2
- package/build/lowcode/assets-prod.json +11 -11
- package/build/lowcode/meta.js +1 -1
- package/build/lowcode/render/default/view.js +1 -1
- package/build/lowcode/view.js +1 -1
- package/dist/BizComps.js +1 -1
- package/dist/BizComps.js.map +1 -1
- package/es/components/scene-tree/index.js +8 -9
- package/lib/components/scene-tree/index.js +7 -8
- package/lowcode_es/meta.js +1 -1
- package/lowcode_lib/meta.js +1 -1
- package/package.json +3 -3
- package/build/docs/umi.f9d788c8.js +0 -1
|
@@ -5,7 +5,7 @@ function _createForOfIteratorHelperLoose(r, e) { var t = "undefined" != typeof S
|
|
|
5
5
|
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
6
6
|
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
7
7
|
import * as React from 'react';
|
|
8
|
-
import { useState } from 'react';
|
|
8
|
+
import { useState, useEffect } from 'react';
|
|
9
9
|
// import './index.scss';
|
|
10
10
|
var FormItem = _Form.Item;
|
|
11
11
|
var RadioGroup = _Radio.Group;
|
|
@@ -14,16 +14,15 @@ var SceneTree = function SceneTree(_ref) {
|
|
|
14
14
|
_ref$style = _ref.style,
|
|
15
15
|
style = _ref$style === void 0 ? {} : _ref$style,
|
|
16
16
|
valChange = _ref.valChange;
|
|
17
|
-
var _useState = useState(
|
|
18
|
-
console.log('---', dataSource);
|
|
19
|
-
if (dataSource) {
|
|
20
|
-
dataSource.children = [];
|
|
21
|
-
return dataSource;
|
|
22
|
-
}
|
|
23
|
-
return null;
|
|
24
|
-
}),
|
|
17
|
+
var _useState = useState(undefined),
|
|
25
18
|
curTree = _useState[0],
|
|
26
19
|
setCurTree = _useState[1];
|
|
20
|
+
useEffect(function () {
|
|
21
|
+
if (dataSource) {
|
|
22
|
+
dataSource.children = [];
|
|
23
|
+
setCurTree(dataSource);
|
|
24
|
+
}
|
|
25
|
+
}, [dataSource]);
|
|
27
26
|
console.log('curTree', curTree);
|
|
28
27
|
// const dataSource = {
|
|
29
28
|
// title: '题目1',
|
|
@@ -20,16 +20,15 @@ var SceneTree = function SceneTree(_ref) {
|
|
|
20
20
|
_ref$style = _ref.style,
|
|
21
21
|
style = _ref$style === void 0 ? {} : _ref$style,
|
|
22
22
|
valChange = _ref.valChange;
|
|
23
|
-
var _useState = (0, _react.useState)(
|
|
24
|
-
console.log('---', dataSource);
|
|
25
|
-
if (dataSource) {
|
|
26
|
-
dataSource.children = [];
|
|
27
|
-
return dataSource;
|
|
28
|
-
}
|
|
29
|
-
return null;
|
|
30
|
-
}),
|
|
23
|
+
var _useState = (0, _react.useState)(undefined),
|
|
31
24
|
curTree = _useState[0],
|
|
32
25
|
setCurTree = _useState[1];
|
|
26
|
+
(0, _react.useEffect)(function () {
|
|
27
|
+
if (dataSource) {
|
|
28
|
+
dataSource.children = [];
|
|
29
|
+
setCurTree(dataSource);
|
|
30
|
+
}
|
|
31
|
+
}, [dataSource]);
|
|
33
32
|
console.log('curTree', curTree);
|
|
34
33
|
// const dataSource = {
|
|
35
34
|
// title: '题目1',
|
package/lowcode_es/meta.js
CHANGED
|
@@ -88,7 +88,7 @@ function fillRealVersion(meta, packageName, version, basicLibraryVersion) {
|
|
|
88
88
|
packageName = 'ydb-components-material';
|
|
89
89
|
}
|
|
90
90
|
if (version === void 0) {
|
|
91
|
-
version = '0.1.
|
|
91
|
+
version = '0.1.18';
|
|
92
92
|
}
|
|
93
93
|
if (basicLibraryVersion === void 0) {
|
|
94
94
|
basicLibraryVersion = {
|
package/lowcode_lib/meta.js
CHANGED
|
@@ -93,7 +93,7 @@ function fillRealVersion(meta, packageName, version, basicLibraryVersion) {
|
|
|
93
93
|
packageName = 'ydb-components-material';
|
|
94
94
|
}
|
|
95
95
|
if (version === void 0) {
|
|
96
|
-
version = '0.1.
|
|
96
|
+
version = '0.1.18';
|
|
97
97
|
}
|
|
98
98
|
if (basicLibraryVersion === void 0) {
|
|
99
99
|
basicLibraryVersion = {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ydb-components-material",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.18",
|
|
4
4
|
"description": "ydb-components-material",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"module": "es/index.js",
|
|
@@ -94,10 +94,10 @@
|
|
|
94
94
|
},
|
|
95
95
|
"componentConfig": {
|
|
96
96
|
"isComponentLibrary": true,
|
|
97
|
-
"materialSchema": "https://unpkg.com/ydb-components-material@0.1.
|
|
97
|
+
"materialSchema": "https://unpkg.com/ydb-components-material@0.1.18/build/lowcode/assets-prod.json"
|
|
98
98
|
},
|
|
99
99
|
"lcMeta": {
|
|
100
100
|
"type": "component"
|
|
101
101
|
},
|
|
102
|
-
"homepage": "https://unpkg.com/ydb-components-material@0.1.
|
|
102
|
+
"homepage": "https://unpkg.com/ydb-components-material@0.1.18/build/index.html"
|
|
103
103
|
}
|