@king-design/intact 2.0.14 → 2.0.16

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 (67) hide show
  1. package/components/colorpicker/index.md +1 -0
  2. package/components/colorpicker/index.ts +2 -0
  3. package/components/colorpicker/index.vdt +1 -0
  4. package/components/dialog/alert.vdt +5 -3
  5. package/components/dialog/index.md +3 -0
  6. package/components/dialog/index.spec.ts +35 -0
  7. package/components/dialog/staticMethods.ts +14 -1
  8. package/components/dialog/useFixBody.ts +3 -1
  9. package/components/icon/demos/icons.md +158 -0
  10. package/components/pagination/demos/disable.md +51 -0
  11. package/components/pagination/index.md +2 -0
  12. package/components/pagination/index.spec.ts +14 -0
  13. package/components/pagination/index.ts +8 -0
  14. package/components/pagination/index.vdt +13 -3
  15. package/components/pagination/styles.ts +3 -0
  16. package/components/portal.ts +38 -28
  17. package/components/select/demos/basic.md +1 -1
  18. package/components/table/column.vdt +26 -10
  19. package/components/table/demos/rowExpandable.md +1 -1
  20. package/components/table/demos/selectedKeys.md +1 -1
  21. package/components/table/index.md +3 -3
  22. package/components/table/index.spec.ts +2 -2
  23. package/components/table/styles.ts +6 -0
  24. package/components/table/useGroup.ts +18 -2
  25. package/components/table/useSortable.ts +4 -1
  26. package/es/components/colorpicker/index.d.ts +1 -0
  27. package/es/components/colorpicker/index.js +2 -1
  28. package/es/components/colorpicker/index.vdt.js +5 -1
  29. package/es/components/dialog/alert.vdt.js +6 -4
  30. package/es/components/dialog/index.spec.js +61 -1
  31. package/es/components/dialog/staticMethods.d.ts +4 -2
  32. package/es/components/dialog/staticMethods.js +16 -0
  33. package/es/components/dialog/useFixBody.js +3 -1
  34. package/es/components/pagination/index.d.ts +2 -0
  35. package/es/components/pagination/index.js +12 -1
  36. package/es/components/pagination/index.spec.js +28 -0
  37. package/es/components/pagination/index.vdt.js +18 -3
  38. package/es/components/pagination/styles.js +1 -1
  39. package/es/components/portal.js +23 -11
  40. package/es/components/table/column.vdt.js +43 -7
  41. package/es/components/table/index.spec.js +2 -2
  42. package/es/components/table/styles.js +7 -1
  43. package/es/components/table/useGroup.d.ts +3 -0
  44. package/es/components/table/useGroup.js +24 -1
  45. package/es/components/table/useSortable.d.ts +3 -1
  46. package/es/components/table/useSortable.js +4 -1
  47. package/es/index.d.ts +2 -2
  48. package/es/index.js +2 -2
  49. package/es/packages/kpc-react/__tests__/components/dialog.spec.d.ts +1 -0
  50. package/es/packages/kpc-react/__tests__/components/dialog.spec.js +45 -0
  51. package/es/packages/kpc-react/__tests__/components/drawer.spec.js +42 -2
  52. package/es/site/data/components/icon/demos/icons/index.d.ts +9 -0
  53. package/es/site/data/components/icon/demos/icons/index.js +24 -0
  54. package/es/site/data/components/icon/demos/icons/react.d.ts +9 -0
  55. package/es/site/data/components/icon/demos/icons/react.js +63 -0
  56. package/es/site/data/components/menu/demos/collapse/react.d.ts +11 -0
  57. package/es/site/data/components/menu/demos/size/react.d.ts +7 -0
  58. package/es/site/data/components/pagination/demos/disable/index.d.ts +16 -0
  59. package/es/site/data/components/pagination/demos/disable/index.js +35 -0
  60. package/es/site/data/components/pagination/demos/disable/react.d.ts +16 -0
  61. package/es/site/data/components/pagination/demos/disable/react.js +65 -0
  62. package/es/site/data/components/select/demos/basic/react.js +1 -2
  63. package/index.ts +2 -2
  64. package/package.json +3 -3
  65. package/styles/fonts/demo.css +370 -0
  66. package/styles/fonts/demo.html +29 -0
  67. package/styles/fonts/iconfont.css +477 -0
@@ -1,3 +1,4 @@
1
+ import type { TableColumnGroupItem } from './column';
1
2
  declare type ContextValue = {
2
3
  groupValue: any;
3
4
  onChange: (key: string, groupValue: any) => void;
@@ -10,5 +11,7 @@ export declare function useGroup(): {
10
11
  onSelect: (value: any, groupValue: any, onChange: ContextValue['onChange']) => void;
11
12
  isChecked: (value: any, groupValue: any) => any;
12
13
  getGroupText: (groupValue: any) => string | null;
14
+ keywords: import("../../hooks/useState").State<string>;
15
+ filteredGroup: import("../../hooks/useState").State<TableColumnGroupItem[] | undefined>;
13
16
  };
14
17
  export {};
@@ -1,13 +1,17 @@
1
1
  import _includesInstanceProperty from "@babel/runtime-corejs3/core-js/instance/includes";
2
2
  import _mapInstanceProperty from "@babel/runtime-corejs3/core-js/instance/map";
3
3
  import _filterInstanceProperty from "@babel/runtime-corejs3/core-js/instance/filter";
4
+ import _trimInstanceProperty from "@babel/runtime-corejs3/core-js/instance/trim";
4
5
  import { useInstance } from 'intact';
5
6
  import { isNullOrUndefined } from 'intact-shared';
6
7
  import { toggleArray } from '../utils';
7
8
  import { createContext } from '../context';
9
+ import { useState, watchState } from '../../hooks/useState';
8
10
  export var context = createContext();
9
11
  export function useGroup() {
10
12
  var instance = useInstance();
13
+ var keywords = useState('');
14
+ var filteredGroup = useState(instance.get('group'));
11
15
 
12
16
  function onSelect(value, groupValue, onChange) {
13
17
  var _instance$get = instance.get(),
@@ -60,9 +64,28 @@ export function useGroup() {
60
64
  return null;
61
65
  }
62
66
 
67
+ watchState(keywords, function (v) {
68
+ var _instance$get4 = instance.get(),
69
+ _instance$get4$group = _instance$get4.group,
70
+ group = _instance$get4$group === void 0 ? [] : _instance$get4$group;
71
+
72
+ v = _trimInstanceProperty(v).call(v);
73
+
74
+ if (!v) {
75
+ filteredGroup.set(group);
76
+ } else {
77
+ filteredGroup.set(_filterInstanceProperty(group).call(group, function (item) {
78
+ var _context2, _context3;
79
+
80
+ return _includesInstanceProperty(_context2 = String(item.label)).call(_context2, v) || _includesInstanceProperty(_context3 = String(item.value)).call(_context3, v);
81
+ }));
82
+ }
83
+ });
63
84
  return {
64
85
  onSelect: onSelect,
65
86
  isChecked: isChecked,
66
- getGroupText: getGroupText
87
+ getGroupText: getGroupText,
88
+ keywords: keywords,
89
+ filteredGroup: filteredGroup
67
90
  };
68
91
  }
@@ -3,5 +3,7 @@ export declare const context: {
3
3
  Consumer: import("intact").ComponentConstructor<import("intact").Component<import("../context").ConsumerProps<any>, {}, {}, {}>>;
4
4
  };
5
5
  export declare function useSortable(): {
6
- onChange: (key: string) => void;
6
+ onChange: (key: string, event: Event & {
7
+ _ignoreSortable?: boolean;
8
+ }) => void;
7
9
  };
@@ -8,7 +8,10 @@ export function useSortable() {
8
8
 
9
9
  var count = 0;
10
10
 
11
- function onChange(key) {
11
+ function onChange(key, event) {
12
+ // ignore when click group dropdown menu
13
+ if (event._ignoreSortable) return;
14
+
12
15
  var sort = _extends({}, instance.get('sort'));
13
16
 
14
17
  if (sort.key === key) {
package/es/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @king-design v2.0.14
2
+ * @king-design v2.0.16
3
3
  *
4
4
  * Copyright (c) Kingsoft Cloud
5
5
  * Released under the MIT License
@@ -57,4 +57,4 @@ export * from './components/tree';
57
57
  export * from './components/treeSelect';
58
58
  export * from './components/upload';
59
59
  export * from './components/wave';
60
- export declare const version = "2.0.14";
60
+ export declare const version = "2.0.16";
package/es/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @king-design v2.0.14
2
+ * @king-design v2.0.16
3
3
  *
4
4
  * Copyright (c) Kingsoft Cloud
5
5
  * Released under the MIT License
@@ -59,5 +59,5 @@ export * from './components/tree';
59
59
  export * from './components/treeSelect';
60
60
  export * from './components/upload';
61
61
  export * from './components/wave';
62
- export var version = '2.0.14';
62
+ export var version = '2.0.16';
63
63
  /* generate end */
@@ -0,0 +1,45 @@
1
+ import _asyncToGenerator from "@babel/runtime-corejs3/helpers/asyncToGenerator";
2
+ import _regeneratorRuntime from "@babel/runtime-corejs3/regenerator";
3
+ import React from 'react';
4
+ import * as ReactDOM from 'react-dom';
5
+ import { Dialog, Icon } from '../../';
6
+ import { getElement, wait } from '../../../../test/utils';
7
+ describe('Dialog', function () {
8
+ var container;
9
+ beforeEach(function () {
10
+ container = document.createElement('div');
11
+ document.body.appendChild(container);
12
+ });
13
+ afterEach(function () {
14
+ ReactDOM.unmountComponentAtNode(container);
15
+ document.body.removeChild(container);
16
+ });
17
+ it('should render vNode as content', /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
18
+ return _regeneratorRuntime.wrap(function _callee$(_context) {
19
+ while (1) {
20
+ switch (_context.prev = _context.next) {
21
+ case 0:
22
+ Dialog.confirm({
23
+ content: /*#__PURE__*/React.createElement("div", null, "test"),
24
+ className: 'confirm-test',
25
+ icon: /*#__PURE__*/React.createElement(Icon, {
26
+ className: "test"
27
+ })
28
+ });
29
+ _context.next = 3;
30
+ return wait(100);
31
+
32
+ case 3:
33
+ expect(getElement('.confirm-test').innerHTML).to.matchSnapshot();
34
+ getElement('.confirm-test .k-primary').click();
35
+ _context.next = 7;
36
+ return wait(600);
37
+
38
+ case 7:
39
+ case "end":
40
+ return _context.stop();
41
+ }
42
+ }
43
+ }, _callee);
44
+ })));
45
+ });
@@ -1,9 +1,9 @@
1
1
  import _inheritsLoose from "@babel/runtime-corejs3/helpers/inheritsLoose";
2
2
  import _asyncToGenerator from "@babel/runtime-corejs3/helpers/asyncToGenerator";
3
3
  import _regeneratorRuntime from "@babel/runtime-corejs3/regenerator";
4
- import React, { useState } from 'react';
4
+ import React, { useState, useEffect } from 'react';
5
5
  import * as ReactDOM from 'react-dom';
6
- import { Drawer, Card, Button } from '../../';
6
+ import { Drawer, Card, Button, Select, Option } from '../../';
7
7
  import { Component } from 'intact-react';
8
8
  import { wait, dispatchEvent } from '../../../../test/utils';
9
9
  describe('Drawer', function () {
@@ -134,4 +134,44 @@ describe('Drawer', function () {
134
134
  }
135
135
  }, _callee2);
136
136
  })));
137
+ it('$update call before mountedQueue in $receive', /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee3() {
138
+ var App;
139
+ return _regeneratorRuntime.wrap(function _callee3$(_context3) {
140
+ while (1) {
141
+ switch (_context3.prev = _context3.next) {
142
+ case 0:
143
+ App = function _App2() {
144
+ var _useState2 = useState(false),
145
+ state = _useState2[0],
146
+ setState = _useState2[1];
147
+
148
+ useEffect(function () {
149
+ setState(true);
150
+ }, []);
151
+ return /*#__PURE__*/React.createElement(Drawer, {
152
+ value: true,
153
+ mode: "destroy"
154
+ }, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Card, null, /*#__PURE__*/React.createElement("div", null, "react element"), /*#__PURE__*/React.createElement(Select, {
155
+ container: function container(parentElement) {
156
+ return parentElement.closest('.k-dialog-body');
157
+ }
158
+ }, state ? /*#__PURE__*/React.createElement(Option, {
159
+ value: "1"
160
+ }, "1") : null))));
161
+ };
162
+
163
+ ReactDOM.render( /*#__PURE__*/React.createElement(App, null), container);
164
+ _context3.next = 4;
165
+ return wait();
166
+
167
+ case 4:
168
+ expect(document.querySelector('.k-dialog-body .k-select-menu').textContent).to.eql('1');
169
+
170
+ case 5:
171
+ case "end":
172
+ return _context3.stop();
173
+ }
174
+ }
175
+ }, _callee3);
176
+ })));
137
177
  });
@@ -0,0 +1,9 @@
1
+ export { default as data } from './index.json';
2
+ import { Component } from 'intact';
3
+ import './index.styl';
4
+ export default class extends Component {
5
+ static template: string | import("intact").Template<any>;
6
+ static defaults(): {
7
+ fonts: string[];
8
+ };
9
+ }
@@ -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
+ 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
+ default_1.defaults = function defaults() {
15
+ return {
16
+ fonts: ['alert', 'alarm', 'calendar', 'application', 'arrow-right', 'arrow-up', 'arrow-left', 'arrow-down', 'arrow-expand', 'arrow-left-circled', 'arrow-right-circled', 'close', 'bill', 'change', 'cloud-download', 'content-squared', 'cloud', 'arrow-move', 'code-download', 'cloud-server', 'arrow-shrink', 'clone', 'cloud-servers', 'cart', 'delete', 'fault-outline', 'calculate', 'arrow-swap', 'download', 'information', 'internet', 'edit', 'search', 'code-working', 'heart', 'content', 'cut', 'money-square', 'logout', 'cloud-upload', 'lock', 'corporate', 'truth-none', 'resize', 'protect', 'time', 'date', 'document-change', 'scanner', 'notification', 'notification-outline', 'silent', 'heart-outline', 'share', 'pay', 'picture', 'desktop', 'earphone', 'cube', 'user-verify', 'fault', 'location', 'down-squared', 'pay-dollar', 'paperclip', 'settings', 'home', 'more', 'phonecall', 'tag', 'truth-circled', 'refresh', 'watch', 'images', 'sort', 'money-circled', 'trade', 'star-outline', 'minus-circled', 'right', 'left', 'up', 'down', 'upward', 'up-circled', 'pin', 'hide', 'users', 'user', 'return-right', 'message', 'paper', 'phonecall-prohibit', 'speedometer', 'settings-horizontal', 'phone', 'star', 'play', 'refresh-lock', 'shield', 'panel', 'structure', 'settings-vertical', 'printer', 'stop', 'return-left', 'question', 'unlock', 'sound-off', 'up-squared', 'sound-on', 'upload', 'tool', 'visible', 'truth']
17
+ };
18
+ };
19
+
20
+ return default_1;
21
+ }(Component);
22
+
23
+ default_1.template = template;
24
+ export { default_1 as default };
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ import './index.styl';
3
+ export default class Demo extends React.Component {
4
+ state: {
5
+ fonts: string[];
6
+ };
7
+ private classNames;
8
+ render(): JSX.Element;
9
+ }
@@ -0,0 +1,63 @@
1
+ import _inheritsLoose from "@babel/runtime-corejs3/helpers/inheritsLoose";
2
+ import _concatInstanceProperty from "@babel/runtime-corejs3/core-js/instance/concat";
3
+ import _mapInstanceProperty from "@babel/runtime-corejs3/core-js/instance/map";
4
+ import React from 'react';
5
+ import { Icon } from '@king-design/react';
6
+ import './index.styl';
7
+
8
+ var Demo = /*#__PURE__*/function (_React$Component) {
9
+ _inheritsLoose(Demo, _React$Component);
10
+
11
+ function Demo() {
12
+ var _context;
13
+
14
+ var _this;
15
+
16
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
17
+ args[_key] = arguments[_key];
18
+ }
19
+
20
+ _this = _React$Component.call.apply(_React$Component, _concatInstanceProperty(_context = [this]).call(_context, args)) || this;
21
+ _this.state = {
22
+ fonts: ['alert', 'alarm', 'calendar', 'application', 'arrow-right', 'arrow-up', 'arrow-left', 'arrow-down', 'arrow-expand', 'arrow-left-circled', 'arrow-right-circled', 'close', 'bill', 'change', 'cloud-download', 'content-squared', 'cloud', 'arrow-move', 'code-download', 'cloud-server', 'arrow-shrink', 'clone', 'cloud-servers', 'cart', 'delete', 'fault-outline', 'calculate', 'arrow-swap', 'download', 'information', 'internet', 'edit', 'search', 'code-working', 'heart', 'content', 'cut', 'money-square', 'logout', 'cloud-upload', 'lock', 'corporate', 'truth-none', 'resize', 'protect', 'time', 'date', 'document-change', 'scanner', 'notification', 'notification-outline', 'silent', 'heart-outline', 'share', 'pay', 'picture', 'desktop', 'earphone', 'cube', 'user-verify', 'fault', 'location', 'down-squared', 'pay-dollar', 'paperclip', 'settings', 'home', 'more', 'phonecall', 'tag', 'truth-circled', 'refresh', 'watch', 'images', 'sort', 'money-circled', 'trade', 'star-outline', 'minus-circled', 'right', 'left', 'up', 'down', 'upward', 'up-circled', 'pin', 'hide', 'users', 'user', 'return-right', 'message', 'paper', 'phonecall-prohibit', 'speedometer', 'settings-horizontal', 'phone', 'star', 'play', 'refresh-lock', 'shield', 'panel', 'structure', 'settings-vertical', 'printer', 'stop', 'return-left', 'question', 'unlock', 'sound-off', 'up-squared', 'sound-on', 'upload', 'tool', 'visible', 'truth']
23
+ };
24
+ return _this;
25
+ }
26
+
27
+ var _proto = Demo.prototype;
28
+
29
+ _proto.classNames = function classNames(_classNames) {
30
+ if (typeof _classNames === 'string') return _classNames;
31
+ var ret = [];
32
+
33
+ for (var key in _classNames) {
34
+ var value = _classNames[key];
35
+
36
+ if (value) {
37
+ ret.push(key);
38
+ }
39
+ }
40
+
41
+ return ret.join(' ');
42
+ };
43
+
44
+ _proto.render = function render() {
45
+ var _context2,
46
+ _this2 = this;
47
+
48
+ return /*#__PURE__*/React.createElement("div", {
49
+ className: "icons"
50
+ }, _mapInstanceProperty(_context2 = this.state.fonts).call(_context2, function ($value, $key) {
51
+ return /*#__PURE__*/React.createElement("div", {
52
+ className: "icon"
53
+ }, /*#__PURE__*/React.createElement(Icon, {
54
+ className: _this2.classNames('k-icon-' + $value),
55
+ size: "large"
56
+ }), /*#__PURE__*/React.createElement("div", null, 'k-icon-' + $value));
57
+ }));
58
+ };
59
+
60
+ return Demo;
61
+ }(React.Component);
62
+
63
+ export { Demo as default };
@@ -0,0 +1,11 @@
1
+ import React from 'react';
2
+ import { MenuProps } from '@king-design/react';
3
+ interface Props extends MenuProps {
4
+ }
5
+ export default class Demo extends React.Component<{}, Props> {
6
+ state: MenuProps<import("misstime").Key>;
7
+ private __test;
8
+ setTheme(theme?: string): void;
9
+ render(): JSX.Element;
10
+ }
11
+ export {};
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ import './index.styl';
3
+ import type { MenuProps } from '@king-design/react';
4
+ export default class Demo extends React.Component {
5
+ state: MenuProps<import("misstime").Key>;
6
+ render(): JSX.Element;
7
+ }
@@ -0,0 +1,16 @@
1
+ export { default as data } from './index.json';
2
+ import { Component } from 'intact';
3
+ import './index.styl';
4
+ interface Props {
5
+ value1?: number;
6
+ value2?: number;
7
+ }
8
+ export default class extends Component<Props> {
9
+ static template: string | import("intact").Template<any>;
10
+ static defaults(): {
11
+ value1: number;
12
+ value2: number;
13
+ };
14
+ disableBtn(page: number, limit: number): boolean;
15
+ disablePage(page: number, limit: number): boolean;
16
+ }
@@ -0,0 +1,35 @@
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
+ default_1.defaults = function defaults() {
15
+ return {
16
+ value1: 10,
17
+ value2: 10
18
+ };
19
+ };
20
+
21
+ var _proto = default_1.prototype;
22
+
23
+ _proto.disableBtn = function disableBtn(page, limit) {
24
+ return page > 10;
25
+ };
26
+
27
+ _proto.disablePage = function disablePage(page, limit) {
28
+ return page > 10;
29
+ };
30
+
31
+ return default_1;
32
+ }(Component);
33
+
34
+ default_1.template = template;
35
+ export { default_1 as default };
@@ -0,0 +1,16 @@
1
+ import React from 'react';
2
+ import './index.styl';
3
+ interface Props {
4
+ value1?: number;
5
+ value2?: number;
6
+ }
7
+ export default class Demo extends React.Component<{}, Props> {
8
+ state: {
9
+ value1: number;
10
+ value2: number;
11
+ };
12
+ disableBtn(page: number, limit: number): boolean;
13
+ disablePage(page: number, limit: number): boolean;
14
+ render(): JSX.Element;
15
+ }
16
+ export {};
@@ -0,0 +1,65 @@
1
+ import _inheritsLoose from "@babel/runtime-corejs3/helpers/inheritsLoose";
2
+ import _concatInstanceProperty from "@babel/runtime-corejs3/core-js/instance/concat";
3
+ import React from 'react';
4
+ import { Pagination } from '@king-design/react';
5
+ import './index.styl';
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
+ value1: 10,
22
+ value2: 10
23
+ };
24
+ return _this;
25
+ }
26
+
27
+ var _proto = Demo.prototype;
28
+
29
+ _proto.disableBtn = function disableBtn(page, limit) {
30
+ return page > 10;
31
+ };
32
+
33
+ _proto.disablePage = function disablePage(page, limit) {
34
+ return page > 10;
35
+ };
36
+
37
+ _proto.render = function render() {
38
+ var _this2 = this;
39
+
40
+ return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Pagination, {
41
+ value: this.state.value1,
42
+ onChangeValue: function onChangeValue(value1) {
43
+ return _this2.setState({
44
+ value1: value1
45
+ });
46
+ },
47
+ total: 200,
48
+ disableBtn: this.disableBtn
49
+ }), /*#__PURE__*/React.createElement(Pagination, {
50
+ value: this.state.value2,
51
+ onChangeValue: function onChangeValue(value2) {
52
+ return _this2.setState({
53
+ value2: value2
54
+ });
55
+ },
56
+ total: 200,
57
+ showGoto: true,
58
+ disablePage: this.disablePage
59
+ }));
60
+ };
61
+
62
+ return Demo;
63
+ }(React.Component);
64
+
65
+ export { Demo as default };
@@ -37,8 +37,7 @@ var Demo = /*#__PURE__*/function (_React$Component) {
37
37
  return _this2.setState({
38
38
  day: day
39
39
  });
40
- },
41
- show: true
40
+ }
42
41
  }, /*#__PURE__*/React.createElement(Option, {
43
42
  value: "Monday"
44
43
  }, "\u661F\u671F\u4E00"), /*#__PURE__*/React.createElement(Option, {
package/index.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @king-design v2.0.14
2
+ * @king-design v2.0.16
3
3
  *
4
4
  * Copyright (c) Kingsoft Cloud
5
5
  * Released under the MIT License
@@ -62,6 +62,6 @@ export * from './components/treeSelect';
62
62
  export * from './components/upload';
63
63
  export * from './components/wave';
64
64
 
65
- export const version = '2.0.14';
65
+ export const version = '2.0.16';
66
66
 
67
67
  /* generate end */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@king-design/intact",
3
- "version": "2.0.14",
3
+ "version": "2.0.16",
4
4
  "description": "A component library written in Intact for Intact, Vue, React and Angular",
5
5
  "main": "es/index.js",
6
6
  "scripts": {
@@ -116,7 +116,7 @@
116
116
  "highlight.js": "^10.4.1",
117
117
  "history": "^5.0.0",
118
118
  "html-webpack-plugin": "5.3.1",
119
- "intact-react": "^3.0.14",
119
+ "intact-react": "^3.0.16",
120
120
  "istanbul-instrumenter-loader": "^3.0.0",
121
121
  "js-yaml": "^4.1.0",
122
122
  "karma": "^6.3.2",
@@ -178,7 +178,7 @@
178
178
  "dayjs": "^1.10.7",
179
179
  "downloadjs": "^1.4.7",
180
180
  "enquire.js": "^2.1.6",
181
- "intact": "^3.0.13",
181
+ "intact": "^3.0.16",
182
182
  "monaco-editor": "^0.26.1",
183
183
  "mxgraphx": "^4.0.7",
184
184
  "resize-observer-polyfill": "^1.5.1",