@king-design/intact 2.1.0 → 2.1.2

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.
Files changed (134) hide show
  1. package/components/dropdown/dropdown.ts +35 -70
  2. package/components/dropdown/index.spec.ts +53 -4
  3. package/components/dropdown/item.ts +15 -5
  4. package/components/dropdown/menu.ts +3 -3
  5. package/components/dropdown/usePosition.ts +3 -0
  6. package/components/form/index.spec.ts +22 -1
  7. package/components/menu/demos/collapse.md +1 -1
  8. package/components/menu/index.spec.ts +9 -1
  9. package/components/menu/item.ts +7 -0
  10. package/components/pagination/index.spec.ts +23 -0
  11. package/components/pagination/index.ts +3 -1
  12. package/components/tooltip/content.ts +15 -1
  13. package/components/tooltip/content.vdt +6 -1
  14. package/components/tooltip/index.spec.ts +87 -1
  15. package/components/tooltip/styles.ts +1 -1
  16. package/components/tooltip/tooltip.ts +11 -0
  17. package/components/virtual.ts +98 -0
  18. package/es/components/dropdown/dropdown.d.ts +6 -5
  19. package/es/components/dropdown/dropdown.js +42 -69
  20. package/es/components/dropdown/index.spec.js +96 -17
  21. package/es/components/dropdown/item.d.ts +1 -1
  22. package/es/components/dropdown/item.js +16 -4
  23. package/es/components/dropdown/usePosition.js +4 -2
  24. package/es/components/form/index.spec.js +49 -2
  25. package/es/components/menu/index.spec.js +26 -15
  26. package/es/components/menu/item.d.ts +2 -0
  27. package/es/components/menu/item.js +5 -0
  28. package/es/components/pagination/index.js +4 -1
  29. package/es/components/pagination/index.spec.js +49 -0
  30. package/es/components/tooltip/content.d.ts +1 -0
  31. package/es/components/tooltip/content.js +18 -1
  32. package/es/components/tooltip/content.vdt.js +3 -1
  33. package/es/components/tooltip/index.spec.js +165 -0
  34. package/es/components/tooltip/styles.d.ts +22 -0
  35. package/es/components/tooltip/styles.js +1 -1
  36. package/es/components/tooltip/tooltip.d.ts +1 -0
  37. package/es/components/tooltip/tooltip.js +16 -1
  38. package/es/components/virtual.d.ts +8 -0
  39. package/es/components/virtual.js +126 -0
  40. package/es/index.d.ts +2 -2
  41. package/es/index.js +2 -2
  42. package/es/site/data/components/copy/demos/basic/index.d.ts +5 -0
  43. package/es/site/data/components/copy/demos/basic/index.js +17 -0
  44. package/es/site/data/components/copy/demos/basic/react.d.ts +4 -0
  45. package/es/site/data/components/copy/demos/basic/react.js +23 -0
  46. package/es/site/data/components/copy/demos/children/index.d.ts +6 -0
  47. package/es/site/data/components/copy/demos/children/index.js +18 -0
  48. package/es/site/data/components/copy/demos/children/react.d.ts +5 -0
  49. package/es/site/data/components/copy/demos/children/react.js +44 -0
  50. package/es/site/data/components/copy/index.d.ts +57 -0
  51. package/es/site/data/components/copy/index.js +42 -0
  52. package/es/site/data/components/dialog/demos/basic/react.js +1 -4
  53. package/es/site/data/components/icon/demos/disabled/index.d.ts +6 -0
  54. package/es/site/data/components/icon/demos/disabled/index.js +18 -0
  55. package/es/site/data/components/icon/demos/disabled/react.d.ts +5 -0
  56. package/es/site/data/components/icon/demos/disabled/react.js +33 -0
  57. package/es/site/data/components/input/demos/flat/index.d.ts +5 -0
  58. package/es/site/data/components/input/demos/flat/index.js +17 -0
  59. package/es/site/data/components/input/demos/flat/react.d.ts +4 -0
  60. package/es/site/data/components/input/demos/flat/react.js +29 -0
  61. package/es/site/data/components/input/demos/showCount/index.d.ts +5 -0
  62. package/es/site/data/components/input/demos/showCount/index.js +17 -0
  63. package/es/site/data/components/input/demos/showCount/react.d.ts +4 -0
  64. package/es/site/data/components/input/demos/showCount/react.js +33 -0
  65. package/es/site/data/components/menu/demos/collapse/index.js +1 -1
  66. package/es/site/data/components/menu/demos/collapse/react.js +1 -1
  67. package/es/site/data/components/pagination/demos/flat/index.d.ts +6 -0
  68. package/es/site/data/components/pagination/demos/flat/index.js +18 -0
  69. package/es/site/data/components/pagination/demos/flat/react.d.ts +5 -0
  70. package/es/site/data/components/pagination/demos/flat/react.js +41 -0
  71. package/es/site/data/components/popover/demos/basic/index.d.ts +7 -0
  72. package/es/site/data/components/popover/demos/basic/index.js +28 -0
  73. package/es/site/data/components/popover/demos/basic/react.d.ts +8 -0
  74. package/es/site/data/components/popover/demos/basic/react.js +59 -0
  75. package/es/site/data/components/popover/demos/button/index.d.ts +8 -0
  76. package/es/site/data/components/popover/demos/button/index.js +42 -0
  77. package/es/site/data/components/popover/demos/button/react.d.ts +8 -0
  78. package/es/site/data/components/popover/demos/button/react.js +73 -0
  79. package/es/site/data/components/popover/demos/content/index.d.ts +7 -0
  80. package/es/site/data/components/popover/demos/content/index.js +28 -0
  81. package/es/site/data/components/popover/demos/content/react.d.ts +6 -0
  82. package/es/site/data/components/popover/demos/content/react.js +43 -0
  83. package/es/site/data/components/popover/demos/text/index.d.ts +7 -0
  84. package/es/site/data/components/popover/demos/text/index.js +28 -0
  85. package/es/site/data/components/popover/demos/text/react.d.ts +6 -0
  86. package/es/site/data/components/popover/demos/text/react.js +36 -0
  87. package/es/site/data/components/popover/demos/type/index.d.ts +11 -0
  88. package/es/site/data/components/popover/demos/type/index.js +34 -0
  89. package/es/site/data/components/popover/demos/type/react.d.ts +11 -0
  90. package/es/site/data/components/popover/demos/type/react.js +58 -0
  91. package/es/site/data/components/popover/index.d.ts +57 -0
  92. package/es/site/data/components/popover/index.js +42 -0
  93. package/es/site/data/components/progress/demos/circleSize/index.d.ts +14 -0
  94. package/es/site/data/components/progress/demos/circleSize/index.js +43 -0
  95. package/es/site/data/components/progress/demos/circleSize/react.d.ts +14 -0
  96. package/es/site/data/components/progress/demos/circleSize/react.js +98 -0
  97. package/es/site/data/components/select/demos/draggable/index.d.ts +10 -0
  98. package/es/site/data/components/select/demos/draggable/index.js +24 -0
  99. package/es/site/data/components/select/demos/draggable/react.d.ts +10 -0
  100. package/es/site/data/components/select/demos/draggable/react.js +85 -0
  101. package/es/site/data/components/select/demos/flat/index.d.ts +5 -0
  102. package/es/site/data/components/select/demos/flat/index.js +17 -0
  103. package/es/site/data/components/select/demos/flat/react.d.ts +4 -0
  104. package/es/site/data/components/select/demos/flat/react.js +73 -0
  105. package/es/site/data/components/select/demos/inline/index.d.ts +5 -0
  106. package/es/site/data/components/select/demos/inline/index.js +17 -0
  107. package/es/site/data/components/select/demos/inline/react.d.ts +4 -0
  108. package/es/site/data/components/select/demos/inline/react.js +27 -0
  109. package/es/site/data/components/select/demos/nowrap/index.d.ts +5 -0
  110. package/es/site/data/components/select/demos/nowrap/index.js +17 -0
  111. package/es/site/data/components/select/demos/nowrap/react.d.ts +4 -0
  112. package/es/site/data/components/select/demos/nowrap/react.js +41 -0
  113. package/es/site/data/components/steps/demos/vertical/index.d.ts +14 -0
  114. package/es/site/data/components/steps/demos/vertical/index.js +40 -0
  115. package/es/site/data/components/steps/demos/vertical/react.d.ts +14 -0
  116. package/es/site/data/components/steps/demos/vertical/react.js +124 -0
  117. package/es/site/data/components/switch/demos/disabled/index.d.ts +6 -0
  118. package/es/site/data/components/switch/demos/disabled/index.js +18 -0
  119. package/es/site/data/components/switch/demos/disabled/react.d.ts +5 -0
  120. package/es/site/data/components/switch/demos/disabled/react.js +27 -0
  121. package/es/site/data/components/tabs/demos/scroll/index.d.ts +18 -0
  122. package/es/site/data/components/tabs/demos/scroll/index.js +87 -0
  123. package/es/site/data/components/tabs/demos/scroll/react.d.ts +18 -0
  124. package/es/site/data/components/tabs/demos/scroll/react.js +166 -0
  125. package/es/site/data/components/tag/demos/draggable/index.d.ts +11 -0
  126. package/es/site/data/components/tag/demos/draggable/index.js +24 -0
  127. package/es/site/data/components/tag/demos/draggable/react.d.ts +11 -0
  128. package/es/site/data/components/tag/demos/draggable/react.js +62 -0
  129. package/es/site/data/components/tag/demos/tags/index.d.ts +12 -0
  130. package/es/site/data/components/tag/demos/tags/index.js +39 -0
  131. package/es/site/data/components/tag/demos/tags/react.d.ts +12 -0
  132. package/es/site/data/components/tag/demos/tags/react.js +83 -0
  133. package/index.ts +2 -2
  134. package/package.json +4 -3
@@ -0,0 +1,14 @@
1
+ export { default as data } from './index.json';
2
+ import { Component } from 'intact';
3
+ import './index.styl';
4
+ import { ProgressProps } from 'kpc';
5
+ interface Props {
6
+ percent: number;
7
+ status: ProgressProps['status'];
8
+ }
9
+ export default class extends Component<Props> {
10
+ static template: string | import("intact").Template<any>;
11
+ static defaults(): Props;
12
+ add(): void;
13
+ minus(): void;
14
+ }
@@ -0,0 +1,43 @@
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
+ percent: 40,
19
+ status: 'active'
20
+ };
21
+ };
22
+
23
+ var _proto = default_1.prototype;
24
+
25
+ _proto.add = function add() {
26
+ if (this.get('percent') >= 100) return;
27
+ this.set('percent', this.get('percent') + 10);
28
+ };
29
+
30
+ _proto.minus = function minus() {
31
+ if (this.get('percent') <= 0) return;
32
+ this.set('percent', this.get('percent') - 10);
33
+ };
34
+
35
+ return default_1;
36
+ }(Component);
37
+
38
+ default_1.template = template;
39
+ export { default_1 as default };
40
+
41
+ __decorate([bind], default_1.prototype, "add", null);
42
+
43
+ __decorate([bind], default_1.prototype, "minus", null);
@@ -0,0 +1,14 @@
1
+ import React from 'react';
2
+ import './index.styl';
3
+ import { ProgressProps } from '@king-design/react';
4
+ interface Props {
5
+ percent: number;
6
+ status: ProgressProps['status'];
7
+ }
8
+ export default class Demo extends React.Component<{}, Props> {
9
+ state: Props;
10
+ add(): void;
11
+ minus(): void;
12
+ render(): JSX.Element;
13
+ }
14
+ export {};
@@ -0,0 +1,98 @@
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 { Progress, ButtonGroup, 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
+ percent: 40,
24
+ status: 'active'
25
+ };
26
+ return _this;
27
+ }
28
+
29
+ var _proto = Demo.prototype;
30
+
31
+ _proto.add = function add() {
32
+ if (this.state.percent >= 100) return;
33
+ this.setState({
34
+ percent: this.state.percent + 10
35
+ });
36
+ };
37
+
38
+ _proto.minus = function minus() {
39
+ if (this.state.percent <= 0) return;
40
+ this.setState({
41
+ percent: this.state.percent - 10
42
+ });
43
+ };
44
+
45
+ _proto.render = function render() {
46
+ var _this2 = this;
47
+
48
+ return /*#__PURE__*/React.createElement("div", null, "\u72B6\u6001\uFF1A", /*#__PURE__*/React.createElement(ButtonGroup, {
49
+ value: this.state.status,
50
+ onChangeValue: function onChangeValue(status) {
51
+ return _this2.setState({
52
+ status: status
53
+ });
54
+ },
55
+ checkType: "radio"
56
+ }, /*#__PURE__*/React.createElement(Button, {
57
+ value: "active"
58
+ }, "active"), /*#__PURE__*/React.createElement(Button, {
59
+ value: "success"
60
+ }, "success"), /*#__PURE__*/React.createElement(Button, {
61
+ value: "error"
62
+ }, "error"), /*#__PURE__*/React.createElement(Button, {
63
+ value: "normal"
64
+ }, "normal"), /*#__PURE__*/React.createElement(Button, {
65
+ value: "warning"
66
+ }, "warning")), "\u8FDB\u5EA6\uFF1A", /*#__PURE__*/React.createElement(ButtonGroup, null, /*#__PURE__*/React.createElement(Button, {
67
+ size: "mini",
68
+ icon: true,
69
+ onClick: this.minus
70
+ }, "-"), /*#__PURE__*/React.createElement(Button, {
71
+ size: "mini",
72
+ icon: true,
73
+ onClick: this.add
74
+ }, "+")), /*#__PURE__*/React.createElement("br", null), " ", /*#__PURE__*/React.createElement("br", null), /*#__PURE__*/React.createElement(Progress, {
75
+ type: "circle",
76
+ percent: this.state.percent,
77
+ status: this.state.status
78
+ }), /*#__PURE__*/React.createElement(Progress, {
79
+ type: "circle",
80
+ percent: this.state.percent,
81
+ status: this.state.status,
82
+ size: "small"
83
+ }), /*#__PURE__*/React.createElement(Progress, {
84
+ type: "circle",
85
+ percent: this.state.percent,
86
+ status: this.state.status,
87
+ size: "mini"
88
+ }));
89
+ };
90
+
91
+ return Demo;
92
+ }(React.Component);
93
+
94
+ export { Demo as default };
95
+
96
+ __decorate([bind], Demo.prototype, "add", null);
97
+
98
+ __decorate([bind], Demo.prototype, "minus", null);
@@ -0,0 +1,10 @@
1
+ export { default as data } from './index.json';
2
+ import { Component } from 'intact';
3
+ interface Props {
4
+ days1?: string[];
5
+ days2?: string[];
6
+ }
7
+ export default class extends Component {
8
+ static template: string | import("intact").Template<any>;
9
+ static defaults(): Props;
10
+ }
@@ -0,0 +1,24 @@
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
+ default_1.defaults = function defaults() {
14
+ return {
15
+ days1: ['Monday', 'Tuesday', 'Wednesday', 'Thursday'],
16
+ days2: ['Monday', 'Tuesday', 'Wednesday', 'Thursday']
17
+ };
18
+ };
19
+
20
+ return default_1;
21
+ }(Component);
22
+
23
+ default_1.template = template;
24
+ export { default_1 as default };
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ interface Props {
3
+ days1?: string[];
4
+ days2?: string[];
5
+ }
6
+ export default class Demo extends React.Component<{}, Props> {
7
+ state: Props;
8
+ render(): JSX.Element;
9
+ }
10
+ export {};
@@ -0,0 +1,85 @@
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 };
@@ -0,0 +1,5 @@
1
+ export { default as data } from './index.json';
2
+ import { Component } from 'intact';
3
+ export default class extends Component {
4
+ static template: string | import("intact").Template<any>;
5
+ }
@@ -0,0 +1,17 @@
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 };
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ export default class Demo extends React.Component {
3
+ render(): JSX.Element;
4
+ }
@@ -0,0 +1,73 @@
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 };
@@ -0,0 +1,5 @@
1
+ export { default as data } from './index.json';
2
+ import { Component } from 'intact';
3
+ export default class extends Component {
4
+ static template: string | import("intact").Template<any>;
5
+ }
@@ -0,0 +1,17 @@
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 };
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ export default class Demo extends React.Component {
3
+ render(): JSX.Element;
4
+ }
@@ -0,0 +1,27 @@
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 };
@@ -0,0 +1,5 @@
1
+ export { default as data } from './index.json';
2
+ import { Component } from 'intact';
3
+ export default class extends Component {
4
+ static template: string | import("intact").Template<any>;
5
+ }
@@ -0,0 +1,17 @@
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 };
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ export default class Demo extends React.Component {
3
+ render(): JSX.Element;
4
+ }
@@ -0,0 +1,41 @@
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 };
@@ -0,0 +1,14 @@
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
+ }
@@ -0,0 +1,40 @@
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);
@@ -0,0 +1,14 @@
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 {};