@king-design/intact 3.6.0-beta.0 → 3.6.0
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/.DS_Store +0 -0
- package/components/cascader/index.spec.ts +7 -6
- package/components/datepicker/basepicker.ts +26 -314
- package/components/datepicker/calendar.ts +3 -1
- package/components/datepicker/calendar.vdt +5 -2
- package/components/datepicker/dayjs.ts +2 -16
- package/components/datepicker/demos/multiple.md +5 -0
- package/components/datepicker/demos/yearMonth.md +2 -8
- package/components/datepicker/helpers.ts +5 -7
- package/components/datepicker/index.md +1 -2
- package/components/datepicker/index.spec.ts +551 -139
- package/components/datepicker/index.ts +16 -33
- package/components/datepicker/index.vdt +41 -35
- package/components/datepicker/shortcuts.ts +1 -1
- package/components/datepicker/styles.ts +27 -18
- package/components/datepicker/useConfirm.ts +82 -0
- package/components/datepicker/useDisabled.ts +29 -31
- package/components/datepicker/useFormats.ts +8 -4
- package/components/datepicker/useHighlight.ts +81 -0
- package/components/datepicker/useKeyboards.ts +2 -1
- package/components/datepicker/useMergeRange.ts +12 -12
- package/components/datepicker/useMonths.ts +6 -3
- package/components/datepicker/usePanel.ts +19 -19
- package/components/datepicker/useShowDate.ts +21 -41
- package/components/datepicker/useStatus.ts +34 -15
- package/components/datepicker/useValue.ts +43 -72
- package/components/datepicker/useValueBase.ts +309 -0
- package/components/datepicker/useWeeks.ts +1 -1
- package/components/datepicker/useYears.ts +7 -3
- package/components/descriptions/.DS_Store +0 -0
- package/components/dropdown/dropdown.ts +5 -4
- package/components/dropdown/index.md +1 -0
- package/components/dropdown/item.ts +1 -1
- package/components/dropdown/useKeyboard.ts +0 -1
- package/components/input/index.spec.ts +42 -0
- package/components/input/index.ts +8 -0
- package/components/input/index.vdt +3 -4
- package/components/input/useAutoWidth.ts +19 -1
- package/components/menu/.DS_Store +0 -0
- package/components/menu/demos/.DS_Store +0 -0
- package/components/scrollSelect/useMouseEvents.ts +5 -4
- package/components/select/base.ts +3 -2
- package/components/select/base.vdt +2 -1
- package/components/select/demos/creatable.md +2 -2
- package/components/select/index.md +1 -1
- package/components/select/index.spec.ts +107 -34
- package/components/select/option.ts +2 -1
- package/components/select/select.ts +1 -0
- package/components/select/styles.ts +3 -1
- package/components/select/useInput.ts +5 -9
- package/components/table/.DS_Store +0 -0
- package/components/table/index.spec.ts +69 -1
- package/components/table/useStickyHeader.ts +1 -1
- package/components/timepicker/index.spec.ts +145 -27
- package/components/timepicker/panelPicker.ts +10 -4
- package/components/timepicker/panelPicker.vdt +3 -5
- package/components/timepicker/styles.ts +1 -0
- package/components/timepicker/useConfirm.ts +33 -0
- package/components/timepicker/useDefaultValue.ts +30 -0
- package/components/timepicker/useDisabled.ts +17 -4
- package/components/timepicker/useFormats.ts +1 -1
- package/components/timepicker/useValue.ts +22 -19
- package/components/tour/.DS_Store +0 -0
- package/components/tour/index.spec.ts +1 -1
- package/components/virtualList/.DS_Store +0 -0
- package/components/virtualList/demos/.DS_Store +0 -0
- package/es/components/cascader/index.spec.js +18 -19
- package/es/components/datepicker/basepicker.d.ts +6 -27
- package/es/components/datepicker/basepicker.js +23 -268
- package/es/components/datepicker/calendar.d.ts +4 -2
- package/es/components/datepicker/dayjs.d.ts +2 -13
- package/es/components/datepicker/helpers.d.ts +3 -2
- package/es/components/datepicker/helpers.js +2 -3
- package/es/components/datepicker/index.d.ts +21 -29
- package/es/components/datepicker/index.js +22 -32
- package/es/components/datepicker/index.spec.js +1333 -578
- package/es/components/datepicker/index.vdt.js +39 -38
- package/es/components/datepicker/shortcuts.d.ts +1 -1
- package/es/components/datepicker/styles.d.ts +7 -2
- package/es/components/datepicker/styles.js +10 -15
- package/es/components/datepicker/useConfirm.d.ts +6 -0
- package/es/components/datepicker/useConfirm.js +65 -0
- package/es/components/datepicker/useDisabled.d.ts +5 -3
- package/es/components/datepicker/useDisabled.js +22 -27
- package/es/components/datepicker/useFormats.d.ts +2 -2
- package/es/components/datepicker/useFormats.js +6 -2
- package/es/components/datepicker/useHighlight.d.ts +14 -0
- package/es/components/datepicker/useHighlight.js +60 -0
- package/es/components/datepicker/useKeyboards.js +2 -1
- package/es/components/datepicker/useMergeRange.d.ts +1 -1
- package/es/components/datepicker/useMergeRange.js +11 -16
- package/es/components/datepicker/useMonths.js +5 -3
- package/es/components/datepicker/usePanel.d.ts +1 -10
- package/es/components/datepicker/usePanel.js +19 -32
- package/es/components/datepicker/useShowDate.d.ts +1 -1
- package/es/components/datepicker/useShowDate.js +15 -40
- package/es/components/datepicker/useStatus.js +33 -16
- package/es/components/datepicker/useValue.d.ts +11 -6
- package/es/components/datepicker/useValue.js +49 -69
- package/es/components/datepicker/useValueBase.d.ts +28 -0
- package/es/components/datepicker/useValueBase.js +277 -0
- package/es/components/datepicker/useYears.js +6 -3
- package/es/components/dropdown/dropdown.d.ts +1 -0
- package/es/components/dropdown/dropdown.js +7 -4
- package/es/components/input/index.d.ts +2 -0
- package/es/components/input/index.js +6 -0
- package/es/components/input/index.spec.js +45 -0
- package/es/components/input/index.vdt.js +4 -3
- package/es/components/input/useAutoWidth.d.ts +2 -0
- package/es/components/input/useAutoWidth.js +19 -1
- package/es/components/scrollSelect/useMouseEvents.js +5 -4
- package/es/components/select/base.d.ts +1 -1
- package/es/components/select/base.js +3 -2
- package/es/components/select/base.vdt.js +4 -3
- package/es/components/select/index.spec.js +158 -84
- package/es/components/select/option.js +2 -1
- package/es/components/select/select.js +2 -1
- package/es/components/select/styles.d.ts +79 -0
- package/es/components/select/styles.js +1 -0
- package/es/components/select/useInput.d.ts +1 -1
- package/es/components/select/useInput.js +4 -4
- package/es/components/table/index.spec.js +84 -6
- package/es/components/table/useStickyHeader.js +1 -1
- package/es/components/timepicker/index.spec.js +298 -128
- package/es/components/timepicker/panelPicker.d.ts +21 -16
- package/es/components/timepicker/panelPicker.js +7 -4
- package/es/components/timepicker/panelPicker.vdt.js +5 -9
- package/es/components/timepicker/selectPicker.d.ts +4 -3
- package/es/components/timepicker/styles.js +1 -1
- package/es/components/timepicker/useConfirm.d.ts +6 -0
- package/es/components/timepicker/useConfirm.js +19 -0
- package/es/components/timepicker/useDefaultValue.d.ts +4 -0
- package/es/components/timepicker/useDefaultValue.js +27 -0
- package/es/components/timepicker/useDisabled.d.ts +6 -3
- package/es/components/timepicker/useDisabled.js +13 -4
- package/es/components/timepicker/useFormats.d.ts +1 -1
- package/es/components/timepicker/useValue.d.ts +13 -8
- package/es/components/timepicker/useValue.js +14 -15
- package/es/components/tour/index.spec.js +1 -1
- package/es/index.d.ts +2 -2
- package/es/index.js +2 -2
- package/es/site/data/components/datepicker/demos/multiple/index.d.ts +1 -0
- package/es/site/data/components/datepicker/demos/multiple/index.js +2 -1
- package/es/site/data/components/datepicker/demos/multiple/react.d.ts +1 -0
- package/es/site/data/components/datepicker/demos/multiple/react.js +13 -2
- package/es/site/data/components/datepicker/demos/yearMonth/index.d.ts +0 -2
- package/es/site/data/components/datepicker/demos/yearMonth/index.js +1 -3
- package/es/site/data/components/datepicker/demos/yearMonth/react.d.ts +0 -2
- package/es/site/data/components/datepicker/demos/yearMonth/react.js +1 -21
- package/es/site/data/components/select/demos/creatable/react.js +2 -2
- package/es/site/data/components/select/demos/searchable/index.js +1 -1
- package/es/site/data/components/select/demos/searchable/react.js +1 -1
- package/es/site/data/components/tour/demos/customText/index.d.ts +19 -6
- package/es/site/data/components/tour/demos/customText/index.js +18 -17
- package/es/site/data/components/tour/demos/customText/react.d.ts +20 -6
- package/es/site/data/components/tour/demos/customText/react.js +31 -27
- package/index.ts +2 -2
- package/package.json +2 -2
- package/styles/.DS_Store +0 -0
- package/components/datepicker/demos/nowrap.md +0 -35
- package/components/datepicker/usePosition.ts +0 -169
- package/es/components/datepicker/usePosition.d.ts +0 -10
- package/es/components/datepicker/usePosition.js +0 -166
- package/es/site/data/components/datepicker/demos/nowrap/index.d.ts +0 -10
- package/es/site/data/components/datepicker/demos/nowrap/index.js +0 -19
- package/es/site/data/components/datepicker/demos/nowrap/react.d.ts +0 -10
- package/es/site/data/components/datepicker/demos/nowrap/react.js +0 -49
- package/es/site/data/components/tour/demos/customButtons/index.d.ts +0 -33
- package/es/site/data/components/tour/demos/customButtons/index.js +0 -55
- package/es/site/data/components/tour/demos/customButtons/react.d.ts +0 -33
- package/es/site/data/components/tour/demos/customButtons/react.js +0 -99
|
@@ -1,19 +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
|
-
var default_1 = /*#__PURE__*/function (_Component) {
|
|
6
|
-
_inheritsLoose(default_1, _Component);
|
|
7
|
-
function default_1() {
|
|
8
|
-
return _Component.apply(this, arguments) || this;
|
|
9
|
-
}
|
|
10
|
-
default_1.defaults = function defaults() {
|
|
11
|
-
return {
|
|
12
|
-
dateRange: [],
|
|
13
|
-
mergeDateRange: []
|
|
14
|
-
};
|
|
15
|
-
};
|
|
16
|
-
return default_1;
|
|
17
|
-
}(Component);
|
|
18
|
-
default_1.template = template;
|
|
19
|
-
export { default_1 as default };
|
|
@@ -1,49 +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 { Datepicker } from '@king-design/react';
|
|
6
|
-
var Demo = /*#__PURE__*/function (_React$Component) {
|
|
7
|
-
_inheritsLoose(Demo, _React$Component);
|
|
8
|
-
function Demo() {
|
|
9
|
-
var _context;
|
|
10
|
-
var _this;
|
|
11
|
-
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
12
|
-
args[_key] = arguments[_key];
|
|
13
|
-
}
|
|
14
|
-
_this = _React$Component.call.apply(_React$Component, _concatInstanceProperty(_context = [this]).call(_context, args)) || this;
|
|
15
|
-
_this.state = {
|
|
16
|
-
dateRange: [],
|
|
17
|
-
mergeDateRange: []
|
|
18
|
-
};
|
|
19
|
-
return _this;
|
|
20
|
-
}
|
|
21
|
-
var _proto = Demo.prototype;
|
|
22
|
-
_proto.render = function render() {
|
|
23
|
-
var _this2 = this;
|
|
24
|
-
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Datepicker, {
|
|
25
|
-
multiple: true,
|
|
26
|
-
nowrap: true,
|
|
27
|
-
range: true,
|
|
28
|
-
value: this.state.dateRange,
|
|
29
|
-
onChangeValue: function onChangeValue(dateRange) {
|
|
30
|
-
return _this2.setState({
|
|
31
|
-
dateRange: dateRange
|
|
32
|
-
});
|
|
33
|
-
}
|
|
34
|
-
}), "You selected: ", _JSON$stringify(this.state.dateRange), /*#__PURE__*/React.createElement("br", null), /*#__PURE__*/React.createElement("br", null), /*#__PURE__*/React.createElement(Datepicker, {
|
|
35
|
-
multiple: true,
|
|
36
|
-
nowrap: true,
|
|
37
|
-
isMerge: true,
|
|
38
|
-
range: true,
|
|
39
|
-
value: this.state.mergeDateRange,
|
|
40
|
-
onChangeValue: function onChangeValue(mergeDateRange) {
|
|
41
|
-
return _this2.setState({
|
|
42
|
-
mergeDateRange: mergeDateRange
|
|
43
|
-
});
|
|
44
|
-
}
|
|
45
|
-
}), "You selected: ", _JSON$stringify(this.state.mergeDateRange), /*#__PURE__*/React.createElement("br", null), /*#__PURE__*/React.createElement("br", null));
|
|
46
|
-
};
|
|
47
|
-
return Demo;
|
|
48
|
-
}(React.Component);
|
|
49
|
-
export { Demo as default };
|
|
@@ -1,33 +0,0 @@
|
|
|
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
|
-
static defaults(): {
|
|
6
|
-
currentStep: number;
|
|
7
|
-
showTour: boolean;
|
|
8
|
-
tourData: ({
|
|
9
|
-
target: string;
|
|
10
|
-
title: string;
|
|
11
|
-
content: string;
|
|
12
|
-
position: string;
|
|
13
|
-
nextText: string;
|
|
14
|
-
prevText?: undefined;
|
|
15
|
-
} | {
|
|
16
|
-
target: string;
|
|
17
|
-
title: string;
|
|
18
|
-
content: string;
|
|
19
|
-
position: string;
|
|
20
|
-
nextText: string;
|
|
21
|
-
prevText: string;
|
|
22
|
-
} | {
|
|
23
|
-
target: string;
|
|
24
|
-
title: string;
|
|
25
|
-
content: string;
|
|
26
|
-
position: string;
|
|
27
|
-
prevText: string;
|
|
28
|
-
nextText?: undefined;
|
|
29
|
-
})[];
|
|
30
|
-
};
|
|
31
|
-
startTour(): void;
|
|
32
|
-
close(): void;
|
|
33
|
-
}
|
|
@@ -1,55 +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 { bind } from 'kpc';
|
|
7
|
-
var default_1 = /*#__PURE__*/function (_Component) {
|
|
8
|
-
_inheritsLoose(default_1, _Component);
|
|
9
|
-
function default_1() {
|
|
10
|
-
return _Component.apply(this, arguments) || this;
|
|
11
|
-
}
|
|
12
|
-
default_1.defaults = function defaults() {
|
|
13
|
-
return {
|
|
14
|
-
currentStep: 0,
|
|
15
|
-
showTour: false,
|
|
16
|
-
tourData: [{
|
|
17
|
-
target: '#welcome-btn',
|
|
18
|
-
title: '欢迎使用!',
|
|
19
|
-
content: '欢迎来到我们的应用,让我们开始引导之旅吧!',
|
|
20
|
-
position: 'bottom',
|
|
21
|
-
nextText: '开始探索'
|
|
22
|
-
}, {
|
|
23
|
-
target: '#feature-btn',
|
|
24
|
-
title: '功能介绍',
|
|
25
|
-
content: '这里是主要功能区域,您可以在这里进行各种操作。',
|
|
26
|
-
position: 'bottom',
|
|
27
|
-
nextText: '前进',
|
|
28
|
-
prevText: '回到开始'
|
|
29
|
-
}, {
|
|
30
|
-
target: '#finish-btn',
|
|
31
|
-
title: '设置完成',
|
|
32
|
-
content: '恭喜!您已经完成了所有设置,现在可以开始使用了。',
|
|
33
|
-
position: 'top',
|
|
34
|
-
prevText: '返回上一步'
|
|
35
|
-
}]
|
|
36
|
-
};
|
|
37
|
-
};
|
|
38
|
-
var _proto = default_1.prototype;
|
|
39
|
-
_proto.startTour = function startTour() {
|
|
40
|
-
this.set({
|
|
41
|
-
showTour: true,
|
|
42
|
-
currentStep: 0
|
|
43
|
-
});
|
|
44
|
-
};
|
|
45
|
-
_proto.close = function close() {
|
|
46
|
-
this.set({
|
|
47
|
-
showTour: false
|
|
48
|
-
});
|
|
49
|
-
};
|
|
50
|
-
return default_1;
|
|
51
|
-
}(Component);
|
|
52
|
-
default_1.template = template;
|
|
53
|
-
export { default_1 as default };
|
|
54
|
-
__decorate([bind], default_1.prototype, "startTour", null);
|
|
55
|
-
__decorate([bind], default_1.prototype, "close", null);
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import './index.styl';
|
|
3
|
-
export default class Demo extends React.Component {
|
|
4
|
-
state: {
|
|
5
|
-
currentStep: number;
|
|
6
|
-
showTour: boolean;
|
|
7
|
-
tourData: ({
|
|
8
|
-
target: string;
|
|
9
|
-
title: string;
|
|
10
|
-
content: string;
|
|
11
|
-
position: string;
|
|
12
|
-
nextText: string;
|
|
13
|
-
prevText?: undefined;
|
|
14
|
-
} | {
|
|
15
|
-
target: string;
|
|
16
|
-
title: string;
|
|
17
|
-
content: string;
|
|
18
|
-
position: string;
|
|
19
|
-
nextText: string;
|
|
20
|
-
prevText: string;
|
|
21
|
-
} | {
|
|
22
|
-
target: string;
|
|
23
|
-
title: string;
|
|
24
|
-
content: string;
|
|
25
|
-
position: string;
|
|
26
|
-
prevText: string;
|
|
27
|
-
nextText?: undefined;
|
|
28
|
-
})[];
|
|
29
|
-
};
|
|
30
|
-
startTour(): void;
|
|
31
|
-
close(): void;
|
|
32
|
-
render(): React.JSX.Element;
|
|
33
|
-
}
|
|
@@ -1,99 +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 { Tour, Button } from '@king-design/react';
|
|
6
|
-
import './index.styl';
|
|
7
|
-
import { bind } from '@king-design/react';
|
|
8
|
-
var Demo = /*#__PURE__*/function (_React$Component) {
|
|
9
|
-
_inheritsLoose(Demo, _React$Component);
|
|
10
|
-
function Demo() {
|
|
11
|
-
var _context;
|
|
12
|
-
var _this;
|
|
13
|
-
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
14
|
-
args[_key] = arguments[_key];
|
|
15
|
-
}
|
|
16
|
-
_this = _React$Component.call.apply(_React$Component, _concatInstanceProperty(_context = [this]).call(_context, args)) || this;
|
|
17
|
-
_this.state = {
|
|
18
|
-
currentStep: 0,
|
|
19
|
-
showTour: false,
|
|
20
|
-
tourData: [{
|
|
21
|
-
target: '#welcome-btn',
|
|
22
|
-
title: '欢迎使用!',
|
|
23
|
-
content: '欢迎来到我们的应用,让我们开始引导之旅吧!',
|
|
24
|
-
position: 'bottom',
|
|
25
|
-
nextText: '开始探索'
|
|
26
|
-
}, {
|
|
27
|
-
target: '#feature-btn',
|
|
28
|
-
title: '功能介绍',
|
|
29
|
-
content: '这里是主要功能区域,您可以在这里进行各种操作。',
|
|
30
|
-
position: 'bottom',
|
|
31
|
-
nextText: '前进',
|
|
32
|
-
prevText: '回到开始'
|
|
33
|
-
}, {
|
|
34
|
-
target: '#finish-btn',
|
|
35
|
-
title: '设置完成',
|
|
36
|
-
content: '恭喜!您已经完成了所有设置,现在可以开始使用了。',
|
|
37
|
-
position: 'top',
|
|
38
|
-
prevText: '返回上一步'
|
|
39
|
-
}]
|
|
40
|
-
};
|
|
41
|
-
return _this;
|
|
42
|
-
}
|
|
43
|
-
var _proto = Demo.prototype;
|
|
44
|
-
_proto.startTour = function startTour() {
|
|
45
|
-
this.setState({
|
|
46
|
-
showTour: true,
|
|
47
|
-
currentStep: 0
|
|
48
|
-
});
|
|
49
|
-
};
|
|
50
|
-
_proto.close = function close() {
|
|
51
|
-
this.setState({
|
|
52
|
-
showTour: false
|
|
53
|
-
});
|
|
54
|
-
};
|
|
55
|
-
_proto.render = function render() {
|
|
56
|
-
var _this2 = this;
|
|
57
|
-
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
|
|
58
|
-
className: "example-container"
|
|
59
|
-
}, /*#__PURE__*/React.createElement(Button, {
|
|
60
|
-
id: "welcome-btn"
|
|
61
|
-
}, "\u6B22\u8FCE\u9875\u9762"), /*#__PURE__*/React.createElement(Button, {
|
|
62
|
-
id: "feature-btn",
|
|
63
|
-
style: {
|
|
64
|
-
"marginLeft": "20px"
|
|
65
|
-
}
|
|
66
|
-
}, "\u529F\u80FD\u4ECB\u7ECD"), /*#__PURE__*/React.createElement(Button, {
|
|
67
|
-
id: "finish-btn",
|
|
68
|
-
style: {
|
|
69
|
-
"marginLeft": "20px"
|
|
70
|
-
}
|
|
71
|
-
}, "\u5B8C\u6210\u8BBE\u7F6E")), /*#__PURE__*/React.createElement(Tour, {
|
|
72
|
-
value: this.state.currentStep,
|
|
73
|
-
onChangeValue: function onChangeValue(currentStep) {
|
|
74
|
-
return _this2.setState({
|
|
75
|
-
currentStep: currentStep
|
|
76
|
-
});
|
|
77
|
-
},
|
|
78
|
-
visible: this.state.showTour,
|
|
79
|
-
data: this.state.tourData,
|
|
80
|
-
doneText: "\u5B8C\u6210",
|
|
81
|
-
onFinish: this.close
|
|
82
|
-
}), /*#__PURE__*/React.createElement("div", {
|
|
83
|
-
style: {
|
|
84
|
-
"marginTop": "20px"
|
|
85
|
-
}
|
|
86
|
-
}, /*#__PURE__*/React.createElement(Button, {
|
|
87
|
-
type: "primary",
|
|
88
|
-
onClick: this.startTour
|
|
89
|
-
}, "\u5F00\u59CB\u81EA\u5B9A\u4E49\u6309\u94AE\u5F15\u5BFC"), /*#__PURE__*/React.createElement("span", {
|
|
90
|
-
style: {
|
|
91
|
-
"marginLeft": "10px"
|
|
92
|
-
}
|
|
93
|
-
}, "\u5F53\u524D\u6B65\u9AA4: ", this.state.currentStep >= 0 ? this.state.currentStep + 1 : '未启动')));
|
|
94
|
-
};
|
|
95
|
-
return Demo;
|
|
96
|
-
}(React.Component);
|
|
97
|
-
export { Demo as default };
|
|
98
|
-
__decorate([bind], Demo.prototype, "startTour", null);
|
|
99
|
-
__decorate([bind], Demo.prototype, "close", null);
|