@king-design/intact 2.1.2 → 2.1.3
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/components/dialog/index.spec.ts +32 -1
- package/components/dialog/usePosition.ts +4 -0
- package/components/dropdown/usePosition.ts +21 -10
- package/components/portal.ts +16 -3
- package/components/table/row.ts +9 -1
- package/components/utils.ts +15 -0
- package/components/virtual.ts +4 -2
- package/es/components/dialog/index.spec.js +65 -4
- package/es/components/dialog/usePosition.js +7 -0
- package/es/components/dropdown/usePosition.js +15 -12
- package/es/components/portal.js +15 -3
- package/es/components/table/row.js +8 -1
- package/es/components/utils.d.ts +1 -0
- package/es/components/utils.js +16 -0
- package/es/components/virtual.js +5 -2
- package/es/index.d.ts +2 -2
- package/es/index.js +2 -2
- package/es/site/src/pages/layout.js +1 -3
- package/index.ts +2 -2
- package/package.json +3 -3
- package/es/site/data/components/copy/demos/basic/index.d.ts +0 -5
- package/es/site/data/components/copy/demos/basic/index.js +0 -17
- package/es/site/data/components/copy/demos/basic/react.d.ts +0 -4
- package/es/site/data/components/copy/demos/basic/react.js +0 -23
- package/es/site/data/components/copy/demos/children/index.d.ts +0 -6
- package/es/site/data/components/copy/demos/children/index.js +0 -18
- package/es/site/data/components/copy/demos/children/react.d.ts +0 -5
- package/es/site/data/components/copy/demos/children/react.js +0 -44
- package/es/site/data/components/copy/index.d.ts +0 -57
- package/es/site/data/components/copy/index.js +0 -42
- package/es/site/data/components/icon/demos/disabled/index.d.ts +0 -6
- package/es/site/data/components/icon/demos/disabled/index.js +0 -18
- package/es/site/data/components/icon/demos/disabled/react.d.ts +0 -5
- package/es/site/data/components/icon/demos/disabled/react.js +0 -33
- package/es/site/data/components/input/demos/flat/index.d.ts +0 -5
- package/es/site/data/components/input/demos/flat/index.js +0 -17
- package/es/site/data/components/input/demos/flat/react.d.ts +0 -4
- package/es/site/data/components/input/demos/flat/react.js +0 -29
- package/es/site/data/components/input/demos/showCount/index.d.ts +0 -5
- package/es/site/data/components/input/demos/showCount/index.js +0 -17
- package/es/site/data/components/input/demos/showCount/react.d.ts +0 -4
- package/es/site/data/components/input/demos/showCount/react.js +0 -33
- package/es/site/data/components/pagination/demos/flat/index.d.ts +0 -6
- package/es/site/data/components/pagination/demos/flat/index.js +0 -18
- package/es/site/data/components/pagination/demos/flat/react.d.ts +0 -5
- package/es/site/data/components/pagination/demos/flat/react.js +0 -41
- package/es/site/data/components/popover/demos/basic/index.d.ts +0 -7
- package/es/site/data/components/popover/demos/basic/index.js +0 -28
- package/es/site/data/components/popover/demos/basic/react.d.ts +0 -8
- package/es/site/data/components/popover/demos/basic/react.js +0 -59
- package/es/site/data/components/popover/demos/button/index.d.ts +0 -8
- package/es/site/data/components/popover/demos/button/index.js +0 -42
- package/es/site/data/components/popover/demos/button/react.d.ts +0 -8
- package/es/site/data/components/popover/demos/button/react.js +0 -73
- package/es/site/data/components/popover/demos/content/index.d.ts +0 -7
- package/es/site/data/components/popover/demos/content/index.js +0 -28
- package/es/site/data/components/popover/demos/content/react.d.ts +0 -6
- package/es/site/data/components/popover/demos/content/react.js +0 -43
- package/es/site/data/components/popover/demos/text/index.d.ts +0 -7
- package/es/site/data/components/popover/demos/text/index.js +0 -28
- package/es/site/data/components/popover/demos/text/react.d.ts +0 -6
- package/es/site/data/components/popover/demos/text/react.js +0 -36
- package/es/site/data/components/popover/demos/type/index.d.ts +0 -11
- package/es/site/data/components/popover/demos/type/index.js +0 -34
- package/es/site/data/components/popover/demos/type/react.d.ts +0 -11
- package/es/site/data/components/popover/demos/type/react.js +0 -58
- package/es/site/data/components/popover/index.d.ts +0 -57
- package/es/site/data/components/popover/index.js +0 -42
- package/es/site/data/components/progress/demos/circleSize/index.d.ts +0 -14
- package/es/site/data/components/progress/demos/circleSize/index.js +0 -43
- package/es/site/data/components/progress/demos/circleSize/react.d.ts +0 -14
- package/es/site/data/components/progress/demos/circleSize/react.js +0 -98
- package/es/site/data/components/select/demos/draggable/index.d.ts +0 -10
- package/es/site/data/components/select/demos/draggable/index.js +0 -24
- package/es/site/data/components/select/demos/draggable/react.d.ts +0 -10
- package/es/site/data/components/select/demos/draggable/react.js +0 -85
- package/es/site/data/components/select/demos/flat/index.d.ts +0 -5
- package/es/site/data/components/select/demos/flat/index.js +0 -17
- package/es/site/data/components/select/demos/flat/react.d.ts +0 -4
- package/es/site/data/components/select/demos/flat/react.js +0 -73
- package/es/site/data/components/select/demos/inline/index.d.ts +0 -5
- package/es/site/data/components/select/demos/inline/index.js +0 -17
- package/es/site/data/components/select/demos/inline/react.d.ts +0 -4
- package/es/site/data/components/select/demos/inline/react.js +0 -27
- package/es/site/data/components/select/demos/nowrap/index.d.ts +0 -5
- package/es/site/data/components/select/demos/nowrap/index.js +0 -17
- package/es/site/data/components/select/demos/nowrap/react.d.ts +0 -4
- package/es/site/data/components/select/demos/nowrap/react.js +0 -41
- package/es/site/data/components/steps/demos/vertical/index.d.ts +0 -14
- package/es/site/data/components/steps/demos/vertical/index.js +0 -40
- package/es/site/data/components/steps/demos/vertical/react.d.ts +0 -14
- package/es/site/data/components/steps/demos/vertical/react.js +0 -124
- package/es/site/data/components/switch/demos/disabled/index.d.ts +0 -6
- package/es/site/data/components/switch/demos/disabled/index.js +0 -18
- package/es/site/data/components/switch/demos/disabled/react.d.ts +0 -5
- package/es/site/data/components/switch/demos/disabled/react.js +0 -27
- package/es/site/data/components/tabs/demos/scroll/index.d.ts +0 -18
- package/es/site/data/components/tabs/demos/scroll/index.js +0 -87
- package/es/site/data/components/tabs/demos/scroll/react.d.ts +0 -18
- package/es/site/data/components/tabs/demos/scroll/react.js +0 -166
- package/es/site/data/components/tag/demos/draggable/index.d.ts +0 -11
- package/es/site/data/components/tag/demos/draggable/index.js +0 -24
- package/es/site/data/components/tag/demos/draggable/react.d.ts +0 -11
- package/es/site/data/components/tag/demos/draggable/react.js +0 -62
- package/es/site/data/components/tag/demos/tags/index.d.ts +0 -12
- package/es/site/data/components/tag/demos/tags/index.js +0 -39
- package/es/site/data/components/tag/demos/tags/react.d.ts +0 -12
- package/es/site/data/components/tag/demos/tags/react.js +0 -83
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
import _inheritsLoose from "@babel/runtime-corejs3/helpers/inheritsLoose";
|
|
2
|
-
import _concatInstanceProperty from "@babel/runtime-corejs3/core-js/instance/concat";
|
|
3
|
-
import _JSON$stringify from "@babel/runtime-corejs3/core-js/json/stringify";
|
|
4
|
-
import React from 'react';
|
|
5
|
-
import { Select, Option } from '@king-design/react';
|
|
6
|
-
|
|
7
|
-
var Demo = /*#__PURE__*/function (_React$Component) {
|
|
8
|
-
_inheritsLoose(Demo, _React$Component);
|
|
9
|
-
|
|
10
|
-
function Demo() {
|
|
11
|
-
var _context;
|
|
12
|
-
|
|
13
|
-
var _this;
|
|
14
|
-
|
|
15
|
-
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
16
|
-
args[_key] = arguments[_key];
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
_this = _React$Component.call.apply(_React$Component, _concatInstanceProperty(_context = [this]).call(_context, args)) || this;
|
|
20
|
-
_this.state = {
|
|
21
|
-
days1: ['Monday', 'Tuesday', 'Wednesday', 'Thursday'],
|
|
22
|
-
days2: ['Monday', 'Tuesday', 'Wednesday', 'Thursday']
|
|
23
|
-
};
|
|
24
|
-
return _this;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
var _proto = Demo.prototype;
|
|
28
|
-
|
|
29
|
-
_proto.render = function render() {
|
|
30
|
-
var _this2 = this;
|
|
31
|
-
|
|
32
|
-
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Select, {
|
|
33
|
-
multiple: true,
|
|
34
|
-
draggable: true,
|
|
35
|
-
value: this.state.days1,
|
|
36
|
-
onChangeValue: function onChangeValue(days1) {
|
|
37
|
-
return _this2.setState({
|
|
38
|
-
days1: days1
|
|
39
|
-
});
|
|
40
|
-
}
|
|
41
|
-
}, /*#__PURE__*/React.createElement(Option, {
|
|
42
|
-
value: "Monday"
|
|
43
|
-
}, "\u661F\u671F\u4E00"), /*#__PURE__*/React.createElement(Option, {
|
|
44
|
-
value: "Tuesday"
|
|
45
|
-
}, "\u661F\u671F\u4E8C"), /*#__PURE__*/React.createElement(Option, {
|
|
46
|
-
value: "Wednesday"
|
|
47
|
-
}, "\u661F\u671F\u4E09"), /*#__PURE__*/React.createElement(Option, {
|
|
48
|
-
value: "Thursday"
|
|
49
|
-
}, "\u661F\u671F\u56DB"), /*#__PURE__*/React.createElement(Option, {
|
|
50
|
-
value: "Friday"
|
|
51
|
-
}, "\u661F\u671F\u4E94"), /*#__PURE__*/React.createElement(Option, {
|
|
52
|
-
value: "Saturday"
|
|
53
|
-
}, "\u661F\u671F\u516D"), /*#__PURE__*/React.createElement(Option, {
|
|
54
|
-
value: "Sunday"
|
|
55
|
-
}, "\u661F\u671F\u5929")), _JSON$stringify(this.state.days1), /*#__PURE__*/React.createElement("br", null), /*#__PURE__*/React.createElement("br", null), /*#__PURE__*/React.createElement(Select, {
|
|
56
|
-
multiple: true,
|
|
57
|
-
draggable: true,
|
|
58
|
-
nowrap: true,
|
|
59
|
-
value: this.state.days2,
|
|
60
|
-
onChangeValue: function onChangeValue(days2) {
|
|
61
|
-
return _this2.setState({
|
|
62
|
-
days2: days2
|
|
63
|
-
});
|
|
64
|
-
}
|
|
65
|
-
}, /*#__PURE__*/React.createElement(Option, {
|
|
66
|
-
value: "Monday"
|
|
67
|
-
}, "\u661F\u671F\u4E00"), /*#__PURE__*/React.createElement(Option, {
|
|
68
|
-
value: "Tuesday"
|
|
69
|
-
}, "\u661F\u671F\u4E8C"), /*#__PURE__*/React.createElement(Option, {
|
|
70
|
-
value: "Wednesday"
|
|
71
|
-
}, "\u661F\u671F\u4E09"), /*#__PURE__*/React.createElement(Option, {
|
|
72
|
-
value: "Thursday"
|
|
73
|
-
}, "\u661F\u671F\u56DB"), /*#__PURE__*/React.createElement(Option, {
|
|
74
|
-
value: "Friday"
|
|
75
|
-
}, "\u661F\u671F\u4E94"), /*#__PURE__*/React.createElement(Option, {
|
|
76
|
-
value: "Saturday"
|
|
77
|
-
}, "\u661F\u671F\u516D"), /*#__PURE__*/React.createElement(Option, {
|
|
78
|
-
value: "Sunday"
|
|
79
|
-
}, "\u661F\u671F\u5929")), _JSON$stringify(this.state.days2));
|
|
80
|
-
};
|
|
81
|
-
|
|
82
|
-
return Demo;
|
|
83
|
-
}(React.Component);
|
|
84
|
-
|
|
85
|
-
export { Demo as default };
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import _inheritsLoose from "@babel/runtime-corejs3/helpers/inheritsLoose";
|
|
2
|
-
export { default as data } from './index.json';
|
|
3
|
-
import { Component } from 'intact';
|
|
4
|
-
import template from './index.vdt';
|
|
5
|
-
|
|
6
|
-
var default_1 = /*#__PURE__*/function (_Component) {
|
|
7
|
-
_inheritsLoose(default_1, _Component);
|
|
8
|
-
|
|
9
|
-
function default_1() {
|
|
10
|
-
return _Component.apply(this, arguments) || this;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
return default_1;
|
|
14
|
-
}(Component);
|
|
15
|
-
|
|
16
|
-
default_1.template = template;
|
|
17
|
-
export { default_1 as default };
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
import _inheritsLoose from "@babel/runtime-corejs3/helpers/inheritsLoose";
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import { Select, Option } from '@king-design/react';
|
|
4
|
-
|
|
5
|
-
var Demo = /*#__PURE__*/function (_React$Component) {
|
|
6
|
-
_inheritsLoose(Demo, _React$Component);
|
|
7
|
-
|
|
8
|
-
function Demo() {
|
|
9
|
-
return _React$Component.apply(this, arguments) || this;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
var _proto = Demo.prototype;
|
|
13
|
-
|
|
14
|
-
_proto.render = function render() {
|
|
15
|
-
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Select, {
|
|
16
|
-
flat: true
|
|
17
|
-
}, /*#__PURE__*/React.createElement(Option, {
|
|
18
|
-
value: "Monday"
|
|
19
|
-
}, "\u661F\u671F\u4E00"), /*#__PURE__*/React.createElement(Option, {
|
|
20
|
-
value: "Tuesday"
|
|
21
|
-
}, "\u661F\u671F\u4E8C"), /*#__PURE__*/React.createElement(Option, {
|
|
22
|
-
value: "Wednesday"
|
|
23
|
-
}, "\u661F\u671F\u4E09"), /*#__PURE__*/React.createElement(Option, {
|
|
24
|
-
value: "Thursday"
|
|
25
|
-
}, "\u661F\u671F\u56DB"), /*#__PURE__*/React.createElement(Option, {
|
|
26
|
-
value: "Friday"
|
|
27
|
-
}, "\u661F\u671F\u4E94"), /*#__PURE__*/React.createElement(Option, {
|
|
28
|
-
value: "Saturday"
|
|
29
|
-
}, "\u661F\u671F\u516D"), /*#__PURE__*/React.createElement(Option, {
|
|
30
|
-
value: "Sunday"
|
|
31
|
-
}, "\u661F\u671F\u5929")), /*#__PURE__*/React.createElement("br", null), /*#__PURE__*/React.createElement("br", null), /*#__PURE__*/React.createElement(Select, {
|
|
32
|
-
flat: true,
|
|
33
|
-
multiple: true
|
|
34
|
-
}, /*#__PURE__*/React.createElement(Option, {
|
|
35
|
-
value: "Monday"
|
|
36
|
-
}, "\u661F\u671F\u4E00"), /*#__PURE__*/React.createElement(Option, {
|
|
37
|
-
value: "Tuesday"
|
|
38
|
-
}, "\u661F\u671F\u4E8C"), /*#__PURE__*/React.createElement(Option, {
|
|
39
|
-
value: "Wednesday"
|
|
40
|
-
}, "\u661F\u671F\u4E09"), /*#__PURE__*/React.createElement(Option, {
|
|
41
|
-
value: "Thursday"
|
|
42
|
-
}, "\u661F\u671F\u56DB"), /*#__PURE__*/React.createElement(Option, {
|
|
43
|
-
value: "Friday"
|
|
44
|
-
}, "\u661F\u671F\u4E94"), /*#__PURE__*/React.createElement(Option, {
|
|
45
|
-
value: "Saturday"
|
|
46
|
-
}, "\u661F\u671F\u516D"), /*#__PURE__*/React.createElement(Option, {
|
|
47
|
-
value: "Sunday"
|
|
48
|
-
}, "\u661F\u671F\u5929")), /*#__PURE__*/React.createElement("br", null), /*#__PURE__*/React.createElement("br", null), /*#__PURE__*/React.createElement(Select, {
|
|
49
|
-
flat: true,
|
|
50
|
-
disabled: true,
|
|
51
|
-
multiple: true,
|
|
52
|
-
value: ['Monday', 'Tuesday']
|
|
53
|
-
}, /*#__PURE__*/React.createElement(Option, {
|
|
54
|
-
value: "Monday"
|
|
55
|
-
}, "\u661F\u671F\u4E00"), /*#__PURE__*/React.createElement(Option, {
|
|
56
|
-
value: "Tuesday"
|
|
57
|
-
}, "\u661F\u671F\u4E8C"), /*#__PURE__*/React.createElement(Option, {
|
|
58
|
-
value: "Wednesday"
|
|
59
|
-
}, "\u661F\u671F\u4E09"), /*#__PURE__*/React.createElement(Option, {
|
|
60
|
-
value: "Thursday"
|
|
61
|
-
}, "\u661F\u671F\u56DB"), /*#__PURE__*/React.createElement(Option, {
|
|
62
|
-
value: "Friday"
|
|
63
|
-
}, "\u661F\u671F\u4E94"), /*#__PURE__*/React.createElement(Option, {
|
|
64
|
-
value: "Saturday"
|
|
65
|
-
}, "\u661F\u671F\u516D"), /*#__PURE__*/React.createElement(Option, {
|
|
66
|
-
value: "Sunday"
|
|
67
|
-
}, "\u661F\u671F\u5929")));
|
|
68
|
-
};
|
|
69
|
-
|
|
70
|
-
return Demo;
|
|
71
|
-
}(React.Component);
|
|
72
|
-
|
|
73
|
-
export { Demo as default };
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import _inheritsLoose from "@babel/runtime-corejs3/helpers/inheritsLoose";
|
|
2
|
-
export { default as data } from './index.json';
|
|
3
|
-
import { Component } from 'intact';
|
|
4
|
-
import template from './index.vdt';
|
|
5
|
-
|
|
6
|
-
var default_1 = /*#__PURE__*/function (_Component) {
|
|
7
|
-
_inheritsLoose(default_1, _Component);
|
|
8
|
-
|
|
9
|
-
function default_1() {
|
|
10
|
-
return _Component.apply(this, arguments) || this;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
return default_1;
|
|
14
|
-
}(Component);
|
|
15
|
-
|
|
16
|
-
default_1.template = template;
|
|
17
|
-
export { default_1 as default };
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import _inheritsLoose from "@babel/runtime-corejs3/helpers/inheritsLoose";
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import { Select, Option } from '@king-design/react';
|
|
4
|
-
|
|
5
|
-
var Demo = /*#__PURE__*/function (_React$Component) {
|
|
6
|
-
_inheritsLoose(Demo, _React$Component);
|
|
7
|
-
|
|
8
|
-
function Demo() {
|
|
9
|
-
return _React$Component.apply(this, arguments) || this;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
var _proto = Demo.prototype;
|
|
13
|
-
|
|
14
|
-
_proto.render = function render() {
|
|
15
|
-
return /*#__PURE__*/React.createElement(Select, {
|
|
16
|
-
inline: true
|
|
17
|
-
}, /*#__PURE__*/React.createElement(Option, {
|
|
18
|
-
value: "default"
|
|
19
|
-
}, "\u9ED8\u8BA4\u4E3B\u9898"), /*#__PURE__*/React.createElement(Option, {
|
|
20
|
-
value: "ksyun"
|
|
21
|
-
}, "\u91D1\u5C71\u4E91\u4E3B\u9898"));
|
|
22
|
-
};
|
|
23
|
-
|
|
24
|
-
return Demo;
|
|
25
|
-
}(React.Component);
|
|
26
|
-
|
|
27
|
-
export { Demo as default };
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import _inheritsLoose from "@babel/runtime-corejs3/helpers/inheritsLoose";
|
|
2
|
-
export { default as data } from './index.json';
|
|
3
|
-
import { Component } from 'intact';
|
|
4
|
-
import template from './index.vdt';
|
|
5
|
-
|
|
6
|
-
var default_1 = /*#__PURE__*/function (_Component) {
|
|
7
|
-
_inheritsLoose(default_1, _Component);
|
|
8
|
-
|
|
9
|
-
function default_1() {
|
|
10
|
-
return _Component.apply(this, arguments) || this;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
return default_1;
|
|
14
|
-
}(Component);
|
|
15
|
-
|
|
16
|
-
default_1.template = template;
|
|
17
|
-
export { default_1 as default };
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import _inheritsLoose from "@babel/runtime-corejs3/helpers/inheritsLoose";
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import { Select, Option } from '@king-design/react';
|
|
4
|
-
|
|
5
|
-
var Demo = /*#__PURE__*/function (_React$Component) {
|
|
6
|
-
_inheritsLoose(Demo, _React$Component);
|
|
7
|
-
|
|
8
|
-
function Demo() {
|
|
9
|
-
return _React$Component.apply(this, arguments) || this;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
var _proto = Demo.prototype;
|
|
13
|
-
|
|
14
|
-
_proto.render = function render() {
|
|
15
|
-
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Select, {
|
|
16
|
-
multiple: true,
|
|
17
|
-
filterable: true,
|
|
18
|
-
clearable: true,
|
|
19
|
-
nowrap: true,
|
|
20
|
-
value: ['Monday', 'Tuesday', 'Wednesday', 'Thursday']
|
|
21
|
-
}, /*#__PURE__*/React.createElement(Option, {
|
|
22
|
-
value: "Monday"
|
|
23
|
-
}, "\u661F\u671F\u4E00"), /*#__PURE__*/React.createElement(Option, {
|
|
24
|
-
value: "Tuesday"
|
|
25
|
-
}, "\u661F\u671F\u4E8C"), /*#__PURE__*/React.createElement(Option, {
|
|
26
|
-
value: "Wednesday"
|
|
27
|
-
}, "\u661F\u671F\u4E09"), /*#__PURE__*/React.createElement(Option, {
|
|
28
|
-
value: "Thursday"
|
|
29
|
-
}, "\u661F\u671F\u56DB"), /*#__PURE__*/React.createElement(Option, {
|
|
30
|
-
value: "Friday"
|
|
31
|
-
}, "\u661F\u671F\u4E94"), /*#__PURE__*/React.createElement(Option, {
|
|
32
|
-
value: "Saturday"
|
|
33
|
-
}, "\u661F\u671F\u516D"), /*#__PURE__*/React.createElement(Option, {
|
|
34
|
-
value: "Sunday"
|
|
35
|
-
}, "\u661F\u671F\u5929")));
|
|
36
|
-
};
|
|
37
|
-
|
|
38
|
-
return Demo;
|
|
39
|
-
}(React.Component);
|
|
40
|
-
|
|
41
|
-
export { Demo as default };
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
export { default as data } from './index.json';
|
|
2
|
-
import { Component } from 'intact';
|
|
3
|
-
import './index.styl';
|
|
4
|
-
interface Props {
|
|
5
|
-
index?: number;
|
|
6
|
-
}
|
|
7
|
-
export default class extends Component<Props> {
|
|
8
|
-
static template: string | import("intact").Template<any>;
|
|
9
|
-
static defaults(): {
|
|
10
|
-
index: number;
|
|
11
|
-
};
|
|
12
|
-
previous(): void;
|
|
13
|
-
next(): void;
|
|
14
|
-
}
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import _inheritsLoose from "@babel/runtime-corejs3/helpers/inheritsLoose";
|
|
2
|
-
import { __decorate } from "tslib";
|
|
3
|
-
export { default as data } from './index.json';
|
|
4
|
-
import { Component } from 'intact';
|
|
5
|
-
import template from './index.vdt';
|
|
6
|
-
import './index.styl';
|
|
7
|
-
import { bind } from 'kpc';
|
|
8
|
-
|
|
9
|
-
var default_1 = /*#__PURE__*/function (_Component) {
|
|
10
|
-
_inheritsLoose(default_1, _Component);
|
|
11
|
-
|
|
12
|
-
function default_1() {
|
|
13
|
-
return _Component.apply(this, arguments) || this;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
default_1.defaults = function defaults() {
|
|
17
|
-
return {
|
|
18
|
-
index: 0
|
|
19
|
-
};
|
|
20
|
-
};
|
|
21
|
-
|
|
22
|
-
var _proto = default_1.prototype;
|
|
23
|
-
|
|
24
|
-
_proto.previous = function previous() {
|
|
25
|
-
this.set('index', this.get('index') - 1);
|
|
26
|
-
};
|
|
27
|
-
|
|
28
|
-
_proto.next = function next() {
|
|
29
|
-
this.set('index', this.get('index') + 1);
|
|
30
|
-
};
|
|
31
|
-
|
|
32
|
-
return default_1;
|
|
33
|
-
}(Component);
|
|
34
|
-
|
|
35
|
-
default_1.template = template;
|
|
36
|
-
export { default_1 as default };
|
|
37
|
-
|
|
38
|
-
__decorate([bind], default_1.prototype, "previous", null);
|
|
39
|
-
|
|
40
|
-
__decorate([bind], default_1.prototype, "next", null);
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import './index.styl';
|
|
3
|
-
interface Props {
|
|
4
|
-
index?: number;
|
|
5
|
-
}
|
|
6
|
-
export default class Demo extends React.Component<{}, Props> {
|
|
7
|
-
state: {
|
|
8
|
-
index: number;
|
|
9
|
-
};
|
|
10
|
-
previous(): void;
|
|
11
|
-
next(): void;
|
|
12
|
-
render(): JSX.Element;
|
|
13
|
-
}
|
|
14
|
-
export {};
|
|
@@ -1,124 +0,0 @@
|
|
|
1
|
-
import _inheritsLoose from "@babel/runtime-corejs3/helpers/inheritsLoose";
|
|
2
|
-
import _concatInstanceProperty from "@babel/runtime-corejs3/core-js/instance/concat";
|
|
3
|
-
import { __decorate } from "tslib";
|
|
4
|
-
import React from 'react';
|
|
5
|
-
import { Steps, Step, Button } from '@king-design/react';
|
|
6
|
-
import './index.styl';
|
|
7
|
-
import { bind } from '@king-design/react';
|
|
8
|
-
|
|
9
|
-
var Demo = /*#__PURE__*/function (_React$Component) {
|
|
10
|
-
_inheritsLoose(Demo, _React$Component);
|
|
11
|
-
|
|
12
|
-
function Demo() {
|
|
13
|
-
var _context;
|
|
14
|
-
|
|
15
|
-
var _this;
|
|
16
|
-
|
|
17
|
-
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
18
|
-
args[_key] = arguments[_key];
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
_this = _React$Component.call.apply(_React$Component, _concatInstanceProperty(_context = [this]).call(_context, args)) || this;
|
|
22
|
-
_this.state = {
|
|
23
|
-
index: 0
|
|
24
|
-
};
|
|
25
|
-
return _this;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
var _proto = Demo.prototype;
|
|
29
|
-
|
|
30
|
-
_proto.previous = function previous() {
|
|
31
|
-
this.setState({
|
|
32
|
-
index: this.state.index - 1
|
|
33
|
-
});
|
|
34
|
-
};
|
|
35
|
-
|
|
36
|
-
_proto.next = function next() {
|
|
37
|
-
this.setState({
|
|
38
|
-
index: this.state.index + 1
|
|
39
|
-
});
|
|
40
|
-
};
|
|
41
|
-
|
|
42
|
-
_proto.render = function render() {
|
|
43
|
-
var _this2 = this;
|
|
44
|
-
|
|
45
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
46
|
-
className: "demo-wrapper"
|
|
47
|
-
}, /*#__PURE__*/React.createElement(Steps, {
|
|
48
|
-
value: this.state.index,
|
|
49
|
-
onChangeValue: function onChangeValue(index) {
|
|
50
|
-
return _this2.setState({
|
|
51
|
-
index: index
|
|
52
|
-
});
|
|
53
|
-
},
|
|
54
|
-
vertical: true
|
|
55
|
-
}, /*#__PURE__*/React.createElement(Step, {
|
|
56
|
-
title: "\u9009\u62E9\u914D\u7F6E"
|
|
57
|
-
}, "\u8BF7\u9009\u62E9\u4E3B\u673A\u7684\u914D\u7F6E\u4FE1\u606F"), /*#__PURE__*/React.createElement(Step, {
|
|
58
|
-
title: "\u9009\u62E9\u5F39\u6027IP"
|
|
59
|
-
}, "\u8BF7\u9009\u62E9\u4E3B\u673A\u5F39\u6027IP\u7684\u914D\u7F6E\u4FE1\u606F"), /*#__PURE__*/React.createElement(Step, {
|
|
60
|
-
title: "\u8BBE\u7F6EVPC"
|
|
61
|
-
})), /*#__PURE__*/React.createElement(Steps, {
|
|
62
|
-
value: this.state.index,
|
|
63
|
-
onChangeValue: function onChangeValue(index) {
|
|
64
|
-
return _this2.setState({
|
|
65
|
-
index: index
|
|
66
|
-
});
|
|
67
|
-
},
|
|
68
|
-
vertical: true,
|
|
69
|
-
type: "line"
|
|
70
|
-
}, /*#__PURE__*/React.createElement(Step, {
|
|
71
|
-
title: "\u9009\u62E9\u914D\u7F6E"
|
|
72
|
-
}, "\u8BF7\u9009\u62E9\u4E3B\u673A\u7684\u914D\u7F6E\u4FE1\u606F"), /*#__PURE__*/React.createElement(Step, {
|
|
73
|
-
title: "\u9009\u62E9\u5F39\u6027IP"
|
|
74
|
-
}, "\u8BF7\u9009\u62E9\u4E3B\u673A\u5F39\u6027IP\u7684\u914D\u7F6E\u4FE1\u606F"), /*#__PURE__*/React.createElement(Step, {
|
|
75
|
-
title: "\u8BBE\u7F6EVPC"
|
|
76
|
-
})), /*#__PURE__*/React.createElement(Steps, {
|
|
77
|
-
value: this.state.index,
|
|
78
|
-
onChangeValue: function onChangeValue(index) {
|
|
79
|
-
return _this2.setState({
|
|
80
|
-
index: index
|
|
81
|
-
});
|
|
82
|
-
},
|
|
83
|
-
vertical: true,
|
|
84
|
-
type: "line-compact"
|
|
85
|
-
}, /*#__PURE__*/React.createElement(Step, {
|
|
86
|
-
title: "\u9009\u62E9\u914D\u7F6E"
|
|
87
|
-
}, "\u8BF7\u9009\u62E9\u4E3B\u673A\u7684\u914D\u7F6E\u4FE1\u606F"), /*#__PURE__*/React.createElement(Step, {
|
|
88
|
-
title: "\u9009\u62E9\u5F39\u6027IP"
|
|
89
|
-
}, "\u8BF7\u9009\u62E9\u4E3B\u673A\u5F39\u6027IP\u7684\u914D\u7F6E\u4FE1\u606F"), /*#__PURE__*/React.createElement(Step, {
|
|
90
|
-
title: "\u8BBE\u7F6EVPC"
|
|
91
|
-
})), /*#__PURE__*/React.createElement(Steps, {
|
|
92
|
-
value: this.state.index,
|
|
93
|
-
onChangeValue: function onChangeValue(index) {
|
|
94
|
-
return _this2.setState({
|
|
95
|
-
index: index
|
|
96
|
-
});
|
|
97
|
-
},
|
|
98
|
-
vertical: true,
|
|
99
|
-
type: "simple"
|
|
100
|
-
}, /*#__PURE__*/React.createElement(Step, {
|
|
101
|
-
title: "\u9009\u62E9\u914D\u7F6E"
|
|
102
|
-
}, "\u8BF7\u9009\u62E9\u4E3B\u673A\u7684\u914D\u7F6E\u4FE1\u606F"), /*#__PURE__*/React.createElement(Step, {
|
|
103
|
-
title: "\u9009\u62E9\u5F39\u6027IP"
|
|
104
|
-
}, "\u8BF7\u9009\u62E9\u4E3B\u673A\u5F39\u6027IP\u7684\u914D\u7F6E\u4FE1\u606F"), /*#__PURE__*/React.createElement(Step, {
|
|
105
|
-
title: "\u8BBE\u7F6EVPC"
|
|
106
|
-
})), /*#__PURE__*/React.createElement(Button, {
|
|
107
|
-
type: "primary",
|
|
108
|
-
onClick: this.previous,
|
|
109
|
-
disabled: this.state.index === 0
|
|
110
|
-
}, "Previous Step"), /*#__PURE__*/React.createElement(Button, {
|
|
111
|
-
type: "primary",
|
|
112
|
-
onClick: this.next,
|
|
113
|
-
disabled: this.state.index === 3
|
|
114
|
-
}, "Next Step"));
|
|
115
|
-
};
|
|
116
|
-
|
|
117
|
-
return Demo;
|
|
118
|
-
}(React.Component);
|
|
119
|
-
|
|
120
|
-
export { Demo as default };
|
|
121
|
-
|
|
122
|
-
__decorate([bind], Demo.prototype, "previous", null);
|
|
123
|
-
|
|
124
|
-
__decorate([bind], Demo.prototype, "next", null);
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import _inheritsLoose from "@babel/runtime-corejs3/helpers/inheritsLoose";
|
|
2
|
-
export { default as data } from './index.json';
|
|
3
|
-
import { Component } from 'intact';
|
|
4
|
-
import template from './index.vdt';
|
|
5
|
-
import './index.styl';
|
|
6
|
-
|
|
7
|
-
var default_1 = /*#__PURE__*/function (_Component) {
|
|
8
|
-
_inheritsLoose(default_1, _Component);
|
|
9
|
-
|
|
10
|
-
function default_1() {
|
|
11
|
-
return _Component.apply(this, arguments) || this;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
return default_1;
|
|
15
|
-
}(Component);
|
|
16
|
-
|
|
17
|
-
default_1.template = template;
|
|
18
|
-
export { default_1 as default };
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import _inheritsLoose from "@babel/runtime-corejs3/helpers/inheritsLoose";
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import { Switch } from '@king-design/react';
|
|
4
|
-
import './index.styl';
|
|
5
|
-
|
|
6
|
-
var Demo = /*#__PURE__*/function (_React$Component) {
|
|
7
|
-
_inheritsLoose(Demo, _React$Component);
|
|
8
|
-
|
|
9
|
-
function Demo() {
|
|
10
|
-
return _React$Component.apply(this, arguments) || this;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
var _proto = Demo.prototype;
|
|
14
|
-
|
|
15
|
-
_proto.render = function render() {
|
|
16
|
-
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Switch, {
|
|
17
|
-
disabled: true
|
|
18
|
-
}), /*#__PURE__*/React.createElement(Switch, {
|
|
19
|
-
value: true,
|
|
20
|
-
disabled: true
|
|
21
|
-
}));
|
|
22
|
-
};
|
|
23
|
-
|
|
24
|
-
return Demo;
|
|
25
|
-
}(React.Component);
|
|
26
|
-
|
|
27
|
-
export { Demo as default };
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
export { default as data } from './index.json';
|
|
2
|
-
import { Component } from 'intact';
|
|
3
|
-
import './index.styl';
|
|
4
|
-
import { TabsProps } from 'kpc';
|
|
5
|
-
interface Props {
|
|
6
|
-
tab?: number;
|
|
7
|
-
tabs: TabItem[];
|
|
8
|
-
size: TabsProps['size'];
|
|
9
|
-
types: TabsProps['type'][];
|
|
10
|
-
}
|
|
11
|
-
declare type TabItem = {
|
|
12
|
-
value: number;
|
|
13
|
-
label: string;
|
|
14
|
-
};
|
|
15
|
-
export default class extends Component<Props> {
|
|
16
|
-
static template: string | import("intact").Template<any>;
|
|
17
|
-
static defaults(): Props;
|
|
18
|
-
}
|