@king-design/intact 2.1.1 → 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.
- package/components/dropdown/dropdown.ts +1 -0
- package/components/form/index.spec.ts +22 -1
- package/components/tooltip/index.spec.ts +30 -0
- package/components/tooltip/tooltip.ts +3 -0
- package/es/components/dropdown/dropdown.js +2 -1
- package/es/components/form/index.spec.js +49 -2
- package/es/components/tooltip/index.spec.js +57 -0
- package/es/components/tooltip/tooltip.js +5 -1
- package/es/index.d.ts +2 -2
- package/es/index.js +2 -2
- package/es/site/data/components/copy/demos/basic/index.d.ts +5 -0
- package/es/site/data/components/copy/demos/basic/index.js +17 -0
- package/es/site/data/components/copy/demos/basic/react.d.ts +4 -0
- package/es/site/data/components/copy/demos/basic/react.js +23 -0
- package/es/site/data/components/copy/demos/children/index.d.ts +6 -0
- package/es/site/data/components/copy/demos/children/index.js +18 -0
- package/es/site/data/components/copy/demos/children/react.d.ts +5 -0
- package/es/site/data/components/copy/demos/children/react.js +44 -0
- package/es/site/data/components/copy/index.d.ts +57 -0
- package/es/site/data/components/copy/index.js +42 -0
- package/es/site/data/components/icon/demos/disabled/index.d.ts +6 -0
- package/es/site/data/components/icon/demos/disabled/index.js +18 -0
- package/es/site/data/components/icon/demos/disabled/react.d.ts +5 -0
- package/es/site/data/components/icon/demos/disabled/react.js +33 -0
- package/es/site/data/components/input/demos/flat/index.d.ts +5 -0
- package/es/site/data/components/input/demos/flat/index.js +17 -0
- package/es/site/data/components/input/demos/flat/react.d.ts +4 -0
- package/es/site/data/components/input/demos/flat/react.js +29 -0
- package/es/site/data/components/input/demos/showCount/index.d.ts +5 -0
- package/es/site/data/components/input/demos/showCount/index.js +17 -0
- package/es/site/data/components/input/demos/showCount/react.d.ts +4 -0
- package/es/site/data/components/input/demos/showCount/react.js +33 -0
- package/es/site/data/components/pagination/demos/flat/index.d.ts +6 -0
- package/es/site/data/components/pagination/demos/flat/index.js +18 -0
- package/es/site/data/components/pagination/demos/flat/react.d.ts +5 -0
- package/es/site/data/components/pagination/demos/flat/react.js +41 -0
- package/es/site/data/components/popover/demos/basic/index.d.ts +7 -0
- package/es/site/data/components/popover/demos/basic/index.js +28 -0
- package/es/site/data/components/popover/demos/basic/react.d.ts +8 -0
- package/es/site/data/components/popover/demos/basic/react.js +59 -0
- package/es/site/data/components/popover/demos/button/index.d.ts +8 -0
- package/es/site/data/components/popover/demos/button/index.js +42 -0
- package/es/site/data/components/popover/demos/button/react.d.ts +8 -0
- package/es/site/data/components/popover/demos/button/react.js +73 -0
- package/es/site/data/components/popover/demos/content/index.d.ts +7 -0
- package/es/site/data/components/popover/demos/content/index.js +28 -0
- package/es/site/data/components/popover/demos/content/react.d.ts +6 -0
- package/es/site/data/components/popover/demos/content/react.js +43 -0
- package/es/site/data/components/popover/demos/text/index.d.ts +7 -0
- package/es/site/data/components/popover/demos/text/index.js +28 -0
- package/es/site/data/components/popover/demos/text/react.d.ts +6 -0
- package/es/site/data/components/popover/demos/text/react.js +36 -0
- package/es/site/data/components/popover/demos/type/index.d.ts +11 -0
- package/es/site/data/components/popover/demos/type/index.js +34 -0
- package/es/site/data/components/popover/demos/type/react.d.ts +11 -0
- package/es/site/data/components/popover/demos/type/react.js +58 -0
- package/es/site/data/components/popover/index.d.ts +57 -0
- package/es/site/data/components/popover/index.js +42 -0
- package/es/site/data/components/progress/demos/circleSize/index.d.ts +14 -0
- package/es/site/data/components/progress/demos/circleSize/index.js +43 -0
- package/es/site/data/components/progress/demos/circleSize/react.d.ts +14 -0
- package/es/site/data/components/progress/demos/circleSize/react.js +98 -0
- package/es/site/data/components/select/demos/draggable/index.d.ts +10 -0
- package/es/site/data/components/select/demos/draggable/index.js +24 -0
- package/es/site/data/components/select/demos/draggable/react.d.ts +10 -0
- package/es/site/data/components/select/demos/draggable/react.js +85 -0
- package/es/site/data/components/select/demos/flat/index.d.ts +5 -0
- package/es/site/data/components/select/demos/flat/index.js +17 -0
- package/es/site/data/components/select/demos/flat/react.d.ts +4 -0
- package/es/site/data/components/select/demos/flat/react.js +73 -0
- package/es/site/data/components/select/demos/inline/index.d.ts +5 -0
- package/es/site/data/components/select/demos/inline/index.js +17 -0
- package/es/site/data/components/select/demos/inline/react.d.ts +4 -0
- package/es/site/data/components/select/demos/inline/react.js +27 -0
- package/es/site/data/components/select/demos/nowrap/index.d.ts +5 -0
- package/es/site/data/components/select/demos/nowrap/index.js +17 -0
- package/es/site/data/components/select/demos/nowrap/react.d.ts +4 -0
- package/es/site/data/components/select/demos/nowrap/react.js +41 -0
- package/es/site/data/components/steps/demos/vertical/index.d.ts +14 -0
- package/es/site/data/components/steps/demos/vertical/index.js +40 -0
- package/es/site/data/components/steps/demos/vertical/react.d.ts +14 -0
- package/es/site/data/components/steps/demos/vertical/react.js +124 -0
- package/es/site/data/components/switch/demos/disabled/index.d.ts +6 -0
- package/es/site/data/components/switch/demos/disabled/index.js +18 -0
- package/es/site/data/components/switch/demos/disabled/react.d.ts +5 -0
- package/es/site/data/components/switch/demos/disabled/react.js +27 -0
- package/es/site/data/components/tabs/demos/scroll/index.d.ts +18 -0
- package/es/site/data/components/tabs/demos/scroll/index.js +87 -0
- package/es/site/data/components/tabs/demos/scroll/react.d.ts +18 -0
- package/es/site/data/components/tabs/demos/scroll/react.js +166 -0
- package/es/site/data/components/tag/demos/draggable/index.d.ts +11 -0
- package/es/site/data/components/tag/demos/draggable/index.js +24 -0
- package/es/site/data/components/tag/demos/draggable/react.d.ts +11 -0
- package/es/site/data/components/tag/demos/draggable/react.js +62 -0
- package/es/site/data/components/tag/demos/tags/index.d.ts +12 -0
- package/es/site/data/components/tag/demos/tags/index.js +39 -0
- package/es/site/data/components/tag/demos/tags/react.d.ts +12 -0
- package/es/site/data/components/tag/demos/tags/react.js +83 -0
- package/index.ts +2 -2
- package/package.json +1 -1
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { Component } from 'intact';
|
|
2
|
+
import Article from '~/../src/components/article';
|
|
3
|
+
export default class extends Article {
|
|
4
|
+
static sidebar: {
|
|
5
|
+
组件: {
|
|
6
|
+
title: string;
|
|
7
|
+
category: string;
|
|
8
|
+
order: number;
|
|
9
|
+
sidebar: string;
|
|
10
|
+
path: string;
|
|
11
|
+
}[];
|
|
12
|
+
undefined: ({
|
|
13
|
+
title: string;
|
|
14
|
+
order: number;
|
|
15
|
+
sidebar: string;
|
|
16
|
+
disabled: boolean;
|
|
17
|
+
path: string;
|
|
18
|
+
} | {
|
|
19
|
+
title: string;
|
|
20
|
+
order: number;
|
|
21
|
+
sidebar: string;
|
|
22
|
+
path: string;
|
|
23
|
+
disabled?: undefined;
|
|
24
|
+
})[];
|
|
25
|
+
};
|
|
26
|
+
static data: {
|
|
27
|
+
setting: {
|
|
28
|
+
title: string;
|
|
29
|
+
category: string;
|
|
30
|
+
order: number;
|
|
31
|
+
sidebar: string;
|
|
32
|
+
};
|
|
33
|
+
contents: string;
|
|
34
|
+
index: string;
|
|
35
|
+
catalogs: {
|
|
36
|
+
text: string;
|
|
37
|
+
level: number;
|
|
38
|
+
id: string;
|
|
39
|
+
}[];
|
|
40
|
+
};
|
|
41
|
+
static defaults: () => {
|
|
42
|
+
demos: Component<any, {}, {}, {}>[];
|
|
43
|
+
setting: {
|
|
44
|
+
title: string;
|
|
45
|
+
category: string;
|
|
46
|
+
order: number;
|
|
47
|
+
sidebar: string;
|
|
48
|
+
};
|
|
49
|
+
contents: string;
|
|
50
|
+
index: string;
|
|
51
|
+
catalogs: {
|
|
52
|
+
text: string;
|
|
53
|
+
level: number;
|
|
54
|
+
id: string;
|
|
55
|
+
}[];
|
|
56
|
+
};
|
|
57
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import _extends from "@babel/runtime-corejs3/helpers/extends";
|
|
2
|
+
import _inheritsLoose from "@babel/runtime-corejs3/helpers/inheritsLoose";
|
|
3
|
+
import _keysInstanceProperty from "@babel/runtime-corejs3/core-js/instance/keys";
|
|
4
|
+
import _startsWithInstanceProperty from "@babel/runtime-corejs3/core-js/instance/starts-with";
|
|
5
|
+
import Article from '~/../src/components/article';
|
|
6
|
+
import data from './index.json';
|
|
7
|
+
import sidebar from '~/doc.json';
|
|
8
|
+
|
|
9
|
+
var r = require.context('./', true, /demos.*(index|demo).ts/);
|
|
10
|
+
|
|
11
|
+
var keys = _keysInstanceProperty(r).call(r);
|
|
12
|
+
|
|
13
|
+
var demos = [];
|
|
14
|
+
|
|
15
|
+
for (var i = 0; i < keys.length; i++) {
|
|
16
|
+
var file = keys[i];
|
|
17
|
+
if (!_startsWithInstanceProperty(file).call(file, '.')) continue; // if we found demo.js then ignore index.js
|
|
18
|
+
|
|
19
|
+
if (/demo.ts$/.test(file)) i++;
|
|
20
|
+
demos.push(r(file));
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
var default_1 = /*#__PURE__*/function (_Article) {
|
|
24
|
+
_inheritsLoose(default_1, _Article);
|
|
25
|
+
|
|
26
|
+
function default_1() {
|
|
27
|
+
return _Article.apply(this, arguments) || this;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
return default_1;
|
|
31
|
+
}(Article);
|
|
32
|
+
|
|
33
|
+
default_1.sidebar = sidebar;
|
|
34
|
+
default_1.data = data;
|
|
35
|
+
|
|
36
|
+
default_1.defaults = function () {
|
|
37
|
+
return _extends({}, Article.defaults, data, {
|
|
38
|
+
demos: demos
|
|
39
|
+
});
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
export { default_1 as default };
|
|
@@ -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,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,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,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,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,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,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,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
|
+
}
|