@king-design/intact 2.0.7 → 2.0.8

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.
@@ -159,7 +159,7 @@ export function useMenuKeyboard() {
159
159
  focus: (item: DropdownItem) => {
160
160
  // reset();
161
161
  const index = items.indexOf(item);
162
- if (index === -1) debugger
162
+ // if (index === -1) debugger
163
163
  focusIndex = index;
164
164
  focusItem(item);
165
165
  }
@@ -57,7 +57,9 @@ import {
57
57
  <BreadcrumbItem>Home</BreadcrumbItem>
58
58
  <BreadcrumbItem>Detail</BreadcrumbItem>
59
59
  </Breadcrumb>
60
- <div v-for={this.get('data')}>content</div>
60
+ <div v-for={this.get('data')}>
61
+ content
62
+ </div>
61
63
  </Body>
62
64
  </Layout>
63
65
  </Layout>
@@ -73,7 +73,9 @@ import {
73
73
  <BreadcrumbItem>Home</BreadcrumbItem>
74
74
  <BreadcrumbItem>Detail</BreadcrumbItem>
75
75
  </Breadcrumb>
76
- <div v-for={this.get('data')}>content</div>
76
+ <div v-for={this.get('data')}>
77
+ content
78
+ </div>
77
79
  </Body>
78
80
  </Layout>
79
81
  </Layout>
@@ -60,6 +60,17 @@ export class Portal<T extends PortalProps = PortalProps> extends Component<T> {
60
60
  const mountedQueue: Function[] = [];
61
61
  this.initContainer(nextProps.container, parentDom, anchor);
62
62
 
63
+ /**
64
+ * Because we render real elements following parent has rendered.
65
+ * In React, the $promises have done. Then we cannot add any promise to it.
66
+ * We should find the parent component who holds the $promises object, and
67
+ * reset it to let remaining element children add promise to it.
68
+ */
69
+ const parent = getParent(this) as any;
70
+ if (parent) {
71
+ parent.$promises.reset();
72
+ }
73
+
63
74
  mount(
64
75
  nextProps.children as VNode,
65
76
  this.container!,
@@ -69,7 +80,14 @@ export class Portal<T extends PortalProps = PortalProps> extends Component<T> {
69
80
  mountedQueue,
70
81
  );
71
82
 
72
- callAll(mountedQueue);
83
+ // in react, we should wait for all promises to resolve
84
+ if (parent) {
85
+ (Component as any).FakePromise.all(parent.$promises).then(() => {
86
+ callAll(mountedQueue);
87
+ });
88
+ } else {
89
+ callAll(mountedQueue);
90
+ }
73
91
  });
74
92
 
75
93
  super.$render(lastVNode, nextVNode, parentDom, anchor, mountedQueue);
@@ -143,3 +161,13 @@ export class Portal<T extends PortalProps = PortalProps> extends Component<T> {
143
161
  }
144
162
  }
145
163
  }
164
+
165
+ function getParent($senior: Component): Component | null {
166
+ while ($senior = $senior.$senior as Component) {
167
+ if (($senior as any)._reactInternals) {
168
+ return $senior;
169
+ }
170
+ }
171
+ return null;
172
+ }
173
+
@@ -63,6 +63,8 @@ const defaults = {
63
63
  draggingOpacity: `.4`,
64
64
  };
65
65
 
66
+ const aligns = ['left', 'right', 'center'];
67
+
66
68
  let table: typeof defaults;
67
69
  setDefault(() => {
68
70
  table = deepDefaults(theme, {table: defaults}).table;
@@ -350,6 +352,15 @@ export function makeStyles() {
350
352
  .k-table-scrollbar-inner {
351
353
  height: 1px;
352
354
  }
355
+
356
+ // align
357
+ ${aligns.map(type => {
358
+ return css`
359
+ .k-align-${type} {
360
+ text-align: ${type};
361
+ }
362
+ `;
363
+ })}
353
364
  `;
354
365
  }
355
366
 
@@ -144,7 +144,7 @@ export function useFixedColumns(
144
144
  }
145
145
 
146
146
  export function getClassAndStyleForFixed(
147
- {className, fixed}: Props<TableColumnProps>,
147
+ {className, fixed, align}: Props<TableColumnProps>,
148
148
  offset: number,
149
149
  checkType?: TableProps['checkType'],
150
150
  ) {
@@ -153,6 +153,7 @@ export function getClassAndStyleForFixed(
153
153
  className: cx({
154
154
  [className as string]: !!className,
155
155
  [`k-fixed-${fixed}`]: !!fixed,
156
+ [`k-align-${align}`]: !!align,
156
157
  }),
157
158
  style: fixed ? {[fixed]: `${offset + extraOffset}px`} : null,
158
159
  };
@@ -123,8 +123,8 @@ export function useMenuKeyboard() {
123
123
  reset: reset,
124
124
  focus: function focus(item) {
125
125
  // reset();
126
- var index = items.indexOf(item);
127
- if (index === -1) debugger;
126
+ var index = items.indexOf(item); // if (index === -1) debugger
127
+
128
128
  focusIndex = index;
129
129
  focusItem(item);
130
130
  }
@@ -50,9 +50,29 @@ export var Portal = /*#__PURE__*/function (_Component) {
50
50
  var mountedQueue = [];
51
51
 
52
52
  _this2.initContainer(nextProps.container, parentDom, anchor);
53
+ /**
54
+ * Because we render real elements following parent has rendered.
55
+ * In React, the $promises have done. Then we cannot add any promise to it.
56
+ * We should find the parent component who holds the $promises object, and
57
+ * reset it to let remaining element children add promise to it.
58
+ */
59
+
60
+
61
+ var parent = getParent(_this2);
62
+
63
+ if (parent) {
64
+ parent.$promises.reset();
65
+ }
66
+
67
+ mount(nextProps.children, _this2.container, _this2, _this2.$SVG, null, mountedQueue); // in react, we should wait for all promises to resolve
53
68
 
54
- mount(nextProps.children, _this2.container, _this2, _this2.$SVG, null, mountedQueue);
55
- callAll(mountedQueue);
69
+ if (parent) {
70
+ Component.FakePromise.all(parent.$promises).then(function () {
71
+ callAll(mountedQueue);
72
+ });
73
+ } else {
74
+ callAll(mountedQueue);
75
+ }
56
76
  });
57
77
 
58
78
  _Component.prototype.$render.call(this, lastVNode, nextVNode, parentDom, anchor, mountedQueue);
@@ -109,4 +129,14 @@ export var Portal = /*#__PURE__*/function (_Component) {
109
129
 
110
130
  return Portal;
111
131
  }(Component);
112
- Portal.typeDefs = typeDefs;
132
+ Portal.typeDefs = typeDefs;
133
+
134
+ function getParent($senior) {
135
+ while ($senior = $senior.$senior) {
136
+ if ($senior._reactInternals) {
137
+ return $senior;
138
+ }
139
+ }
140
+
141
+ return null;
142
+ }
@@ -1,4 +1,5 @@
1
1
  import _sortInstanceProperty from "@babel/runtime-corejs3/core-js/instance/sort";
2
+ import _mapInstanceProperty from "@babel/runtime-corejs3/core-js/instance/map";
2
3
  import { css } from '@emotion/css';
3
4
  import { theme, setDefault } from '../../styles/theme';
4
5
  import { deepDefaults, palette } from '../../styles/utils';
@@ -75,6 +76,7 @@ var defaults = {
75
76
  resizeWidth: "5px",
76
77
  draggingOpacity: ".4"
77
78
  };
79
+ var aligns = ['left', 'right', 'center'];
78
80
  var table;
79
81
  setDefault(function () {
80
82
  table = deepDefaults(theme, {
@@ -82,7 +84,9 @@ setDefault(function () {
82
84
  }).table;
83
85
  });
84
86
  export function makeStyles() {
85
- return /*#__PURE__*/css("font-size:", table.fontSize, ";color:", table.color, ";border-top:", table.border, ";position:relative;z-index:0;.k-table-wrapper{border-bottom:", table.border, ";overflow:auto;}table{width:100%;border-spacing:0;table-layout:fixed;td,th{transition:all ", table.transition, ";}}thead{text-align:", table.thead.textAlign, ";font-size:", table.thead.fontSize, ";font-weight:", table.thead.fontWeight, ";position:sticky;top:0;z-index:2;tr{height:", table.thead.height, ";}}th{padding:", table.thead.padding, ";position:relative;background:", table.thead.bgColor, ";border-bottom:", table.border, ";&:before{content:'';height:", table.thead.delimiterHeight, ";position:absolute;background-color:", table.thead.delimiterColor, ";width:1px;left:1px;top:50%;transform:translateY(-50%);}&:first-of-type:before{display:none;}}.k-table-title{display:inline-flex;align-items:center;max-width:100%;}.k-table-title-text{flex:1;}tbody{tr{&:hover td{background:", table.tbody.hoverBgcolor, ";}&:last-of-type td{border-bottom-color:transparent;}}}td{padding:", table.tbody.padding, ";border-bottom:", table.border, ";background:", table.bgColor, ";word-wrap:break-word;}.k-fixed-left,.k-fixed-right{position:sticky;z-index:1;&:after{content:'';display:block;transition:box-shadow ", table.transition, ";position:absolute;top:0;bottom:0px;width:10px;pointer-events:none;}}.k-fixed-left:after{right:-11px;}.k-fixed-right:after{left:-11px;}&.k-scroll-left .k-fixed-right:after{box-shadow:", table.fixRightShadow, ";}&.k-scroll-right .k-fixed-left:after{box-shadow:", table.fixLeftShadow, ";}&.k-scroll-middle{.k-fixed-left:after{box-shadow:", table.fixLeftShadow, ";}.k-fixed-right:after{box-shadow:", table.fixRightShadow, ";}}.k-fixed-right+.k-fixed-right:after{display:none;}.k-table-affix-header{position:sticky;top:0;left:0;.k-affix-wrapper{overflow:hidden;}&.k-fixed{position:relative;}}&.k-border,&.k-grid{.k-table-wrapper{border-left:", table.border, ";border-right:", table.border, ";}}&.k-grid{td:not(:last-of-type),th:not(:last-of-type){border-right:", table.border, ";}th:before{display:none;}}&.k-stripe{tr:nth-child(even):not(:hover) td{background:", table.stripeBgColor, ";}}.k-table-group{width:", table.group.width, "!important;height:", table.group.width, "!important;margin-left:", table.group.gap, ";position:relative;color:", table.group.color, ";&:hover{color:", theme.color.primary, ";}.k-icon{transition:transform ", table.transition, ";}&.k-dropdown-open .k-icon{transform:rotate(180deg);}}.k-table-check{.k-checkbox,.k-radio{position:relative;top:-1px;}}.k-column-sortable{cursor:pointer;}.k-column-sort{.k-icon{display:block;height:", _sortInstanceProperty(table).iconHeight, ";line-height:", _sortInstanceProperty(table).iconHeight, ";margin-left:", _sortInstanceProperty(table).gap, ";color:", _sortInstanceProperty(table).color, ";}&.k-asc .k-icon.k-desc,&.k-desc .k-icon.k-asc{color:", _sortInstanceProperty(table).disabledColor, ";}}.k-table-spin.k-overlay{z-index:2;}.k-table-empty{text-align:center;}tr.k-expand{td{padding:0;background:#fdfcff;}}&.k-with-expand{tr:not(.k-expand){td{border-bottom:none;}}}.k-table-expand{border-top:", table.border, ";box-sizing:content-box;}tbody tr.k-selected td{background:", table.selectedBgColor, ";}.k-table-arrow{margin-right:", table.arrow.gap, ";transition:transform ", table.transition, ";position:relative;top:-1px;}tr.k-spreaded{.k-table-arrow{transform:rotate(90deg);}}.k-table-resize{height:100%;width:", table.resizeWidth, ";position:absolute;top:0;left:-1px;cursor:ew-resize;}tr.k-dragging{opacity:", table.draggingOpacity, ";}.k-table-scrollbar{overflow-x:auto;overflow-y:hidden;}.k-table-scrollbar-inner{height:1px;}");
87
+ return /*#__PURE__*/css("font-size:", table.fontSize, ";color:", table.color, ";border-top:", table.border, ";position:relative;z-index:0;.k-table-wrapper{border-bottom:", table.border, ";overflow:auto;}table{width:100%;border-spacing:0;table-layout:fixed;td,th{transition:all ", table.transition, ";}}thead{text-align:", table.thead.textAlign, ";font-size:", table.thead.fontSize, ";font-weight:", table.thead.fontWeight, ";position:sticky;top:0;z-index:2;tr{height:", table.thead.height, ";}}th{padding:", table.thead.padding, ";position:relative;background:", table.thead.bgColor, ";border-bottom:", table.border, ";&:before{content:'';height:", table.thead.delimiterHeight, ";position:absolute;background-color:", table.thead.delimiterColor, ";width:1px;left:1px;top:50%;transform:translateY(-50%);}&:first-of-type:before{display:none;}}.k-table-title{display:inline-flex;align-items:center;max-width:100%;}.k-table-title-text{flex:1;}tbody{tr{&:hover td{background:", table.tbody.hoverBgcolor, ";}&:last-of-type td{border-bottom-color:transparent;}}}td{padding:", table.tbody.padding, ";border-bottom:", table.border, ";background:", table.bgColor, ";word-wrap:break-word;}.k-fixed-left,.k-fixed-right{position:sticky;z-index:1;&:after{content:'';display:block;transition:box-shadow ", table.transition, ";position:absolute;top:0;bottom:0px;width:10px;pointer-events:none;}}.k-fixed-left:after{right:-11px;}.k-fixed-right:after{left:-11px;}&.k-scroll-left .k-fixed-right:after{box-shadow:", table.fixRightShadow, ";}&.k-scroll-right .k-fixed-left:after{box-shadow:", table.fixLeftShadow, ";}&.k-scroll-middle{.k-fixed-left:after{box-shadow:", table.fixLeftShadow, ";}.k-fixed-right:after{box-shadow:", table.fixRightShadow, ";}}.k-fixed-right+.k-fixed-right:after{display:none;}.k-table-affix-header{position:sticky;top:0;left:0;.k-affix-wrapper{overflow:hidden;}&.k-fixed{position:relative;}}&.k-border,&.k-grid{.k-table-wrapper{border-left:", table.border, ";border-right:", table.border, ";}}&.k-grid{td:not(:last-of-type),th:not(:last-of-type){border-right:", table.border, ";}th:before{display:none;}}&.k-stripe{tr:nth-child(even):not(:hover) td{background:", table.stripeBgColor, ";}}.k-table-group{width:", table.group.width, "!important;height:", table.group.width, "!important;margin-left:", table.group.gap, ";position:relative;color:", table.group.color, ";&:hover{color:", theme.color.primary, ";}.k-icon{transition:transform ", table.transition, ";}&.k-dropdown-open .k-icon{transform:rotate(180deg);}}.k-table-check{.k-checkbox,.k-radio{position:relative;top:-1px;}}.k-column-sortable{cursor:pointer;}.k-column-sort{.k-icon{display:block;height:", _sortInstanceProperty(table).iconHeight, ";line-height:", _sortInstanceProperty(table).iconHeight, ";margin-left:", _sortInstanceProperty(table).gap, ";color:", _sortInstanceProperty(table).color, ";}&.k-asc .k-icon.k-desc,&.k-desc .k-icon.k-asc{color:", _sortInstanceProperty(table).disabledColor, ";}}.k-table-spin.k-overlay{z-index:2;}.k-table-empty{text-align:center;}tr.k-expand{td{padding:0;background:#fdfcff;}}&.k-with-expand{tr:not(.k-expand){td{border-bottom:none;}}}.k-table-expand{border-top:", table.border, ";box-sizing:content-box;}tbody tr.k-selected td{background:", table.selectedBgColor, ";}.k-table-arrow{margin-right:", table.arrow.gap, ";transition:transform ", table.transition, ";position:relative;top:-1px;}tr.k-spreaded{.k-table-arrow{transform:rotate(90deg);}}.k-table-resize{height:100%;width:", table.resizeWidth, ";position:absolute;top:0;left:-1px;cursor:ew-resize;}tr.k-dragging{opacity:", table.draggingOpacity, ";}.k-table-scrollbar{overflow-x:auto;overflow-y:hidden;}.k-table-scrollbar-inner{height:1px;}", _mapInstanceProperty(aligns).call(aligns, function (type) {
88
+ return /*#__PURE__*/css(".k-align-", type, "{text-align:", type, ";}");
89
+ }), ";");
86
90
  }
87
91
  export function makeGroupMenuStyles() {
88
92
  return /*#__PURE__*/css("max-height:", table.group.menuMaxHeight, ";overflow:auto;.k-dropdown-item.k-active{color:", table.group.activeColor, ";}");
@@ -15,7 +15,7 @@ export declare function useFixedColumns(getColumns: () => VNodeComponentClass<Ta
15
15
  getHasFixedLeft: () => boolean;
16
16
  getOffsetMap: () => Record<Key, number>;
17
17
  };
18
- export declare function getClassAndStyleForFixed({ className, fixed }: Props<TableColumnProps>, offset: number, checkType?: TableProps['checkType']): {
18
+ export declare function getClassAndStyleForFixed({ className, fixed, align }: Props<TableColumnProps>, offset: number, checkType?: TableProps['checkType']): {
19
19
  className: string;
20
20
  style: {
21
21
  [x: string]: string;
@@ -125,10 +125,11 @@ export function getClassAndStyleForFixed(_ref2, offset, checkType) {
125
125
  var _cx, _ref3;
126
126
 
127
127
  var className = _ref2.className,
128
- fixed = _ref2.fixed;
128
+ fixed = _ref2.fixed,
129
+ align = _ref2.align;
129
130
  var extraOffset = checkType && checkType !== 'none' && fixed === 'left' ? 40 : 0;
130
131
  return {
131
- className: cx((_cx = {}, _cx[className] = !!className, _cx["k-fixed-" + fixed] = !!fixed, _cx)),
132
+ className: cx((_cx = {}, _cx[className] = !!className, _cx["k-fixed-" + fixed] = !!fixed, _cx["k-align-" + align] = !!align, _cx)),
132
133
  style: fixed ? (_ref3 = {}, _ref3[fixed] = offset + extraOffset + "px", _ref3) : null
133
134
  };
134
135
  }
package/es/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @king-design v2.0.7
2
+ * @king-design v2.0.8
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.7";
60
+ export declare const version = "2.0.8";
package/es/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @king-design v2.0.7
2
+ * @king-design v2.0.8
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.7';
62
+ export var version = '2.0.8';
63
63
  /* generate end */
@@ -0,0 +1,46 @@
1
+ import _inheritsLoose from "@babel/runtime-corejs3/helpers/inheritsLoose";
2
+ import _asyncToGenerator from "@babel/runtime-corejs3/helpers/asyncToGenerator";
3
+ import _regeneratorRuntime from "@babel/runtime-corejs3/regenerator";
4
+ import React from 'react';
5
+ import * as ReactDOM from 'react-dom';
6
+ import { Drawer, Card } from '../../';
7
+ import { Component } from 'intact-react';
8
+ describe('Drawer', function () {
9
+ it('should render react element correctly', /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
10
+ var container, Test;
11
+ return _regeneratorRuntime.wrap(function _callee$(_context) {
12
+ while (1) {
13
+ switch (_context.prev = _context.next) {
14
+ case 0:
15
+ container = document.createElement('div');
16
+ document.body.appendChild(container);
17
+
18
+ Test = /*#__PURE__*/function (_Component) {
19
+ _inheritsLoose(Test, _Component);
20
+
21
+ function Test() {
22
+ return _Component.apply(this, arguments) || this;
23
+ }
24
+
25
+ var _proto = Test.prototype;
26
+
27
+ _proto.mounted = function mounted() {
28
+ expect(document.body.contains(this.refs.a));
29
+ };
30
+
31
+ return Test;
32
+ }(Component);
33
+
34
+ Test.template = "<div ref=\"a\">test</div>";
35
+ ReactDOM.render( /*#__PURE__*/React.createElement(Card, null, /*#__PURE__*/React.createElement(Drawer, null, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Test, null)))), container);
36
+ ReactDOM.unmountComponentAtNode(container);
37
+ document.body.removeChild(container);
38
+
39
+ case 7:
40
+ case "end":
41
+ return _context.stop();
42
+ }
43
+ }
44
+ }, _callee);
45
+ })));
46
+ });
@@ -1,5 +1,6 @@
1
1
  import _inheritsLoose from "@babel/runtime-corejs3/helpers/inheritsLoose";
2
2
  import _concatInstanceProperty from "@babel/runtime-corejs3/core-js/instance/concat";
3
+ import _mapInstanceProperty from "@babel/runtime-corejs3/core-js/instance/map";
3
4
  import { __decorate } from "tslib";
4
5
  import React from 'react';
5
6
  import { Layout, Header, Aside, Body, Menu, MenuItem, Icon, Breadcrumb, BreadcrumbItem, Button } from '@king-design/react';
@@ -39,7 +40,8 @@ var Demo = /*#__PURE__*/function (_React$Component) {
39
40
  };
40
41
 
41
42
  _proto.render = function render() {
42
- var _this2 = this;
43
+ var _this2 = this,
44
+ _context2;
43
45
 
44
46
  return /*#__PURE__*/React.createElement(Layout, {
45
47
  className: "layout"
@@ -112,9 +114,9 @@ var Demo = /*#__PURE__*/function (_React$Component) {
112
114
  }, /*#__PURE__*/React.createElement(Icon, {
113
115
  className: "ion-navicon",
114
116
  size: "30"
115
- }))), /*#__PURE__*/React.createElement(Body, null, /*#__PURE__*/React.createElement(Breadcrumb, null, /*#__PURE__*/React.createElement(BreadcrumbItem, null, "Home"), /*#__PURE__*/React.createElement(BreadcrumbItem, null, "Detail")), /*#__PURE__*/React.createElement("div", {
116
- "v-for": this.state.data
117
- }, "content"))));
117
+ }))), /*#__PURE__*/React.createElement(Body, null, /*#__PURE__*/React.createElement(Breadcrumb, null, /*#__PURE__*/React.createElement(BreadcrumbItem, null, "Home"), /*#__PURE__*/React.createElement(BreadcrumbItem, null, "Detail")), _mapInstanceProperty(_context2 = this.state.data).call(_context2, function ($value, $key) {
118
+ return /*#__PURE__*/React.createElement("div", null, "content");
119
+ }))));
118
120
  };
119
121
 
120
122
  return Demo;
@@ -1,5 +1,6 @@
1
1
  import _inheritsLoose from "@babel/runtime-corejs3/helpers/inheritsLoose";
2
2
  import _concatInstanceProperty from "@babel/runtime-corejs3/core-js/instance/concat";
3
+ import _mapInstanceProperty from "@babel/runtime-corejs3/core-js/instance/map";
3
4
  import React from 'react';
4
5
  import { Layout, Header, Aside, Body, Menu, MenuItem, Icon, Breadcrumb, BreadcrumbItem } from '@king-design/react';
5
6
  import './index.styl';
@@ -30,7 +31,8 @@ var Demo = /*#__PURE__*/function (_React$Component) {
30
31
  var _proto = Demo.prototype;
31
32
 
32
33
  _proto.render = function render() {
33
- var _this2 = this;
34
+ var _this2 = this,
35
+ _context2;
34
36
 
35
37
  return /*#__PURE__*/React.createElement(Layout, {
36
38
  className: "layout"
@@ -114,9 +116,9 @@ var Demo = /*#__PURE__*/function (_React$Component) {
114
116
  key: "4"
115
117
  }, /*#__PURE__*/React.createElement(Icon, {
116
118
  className: "ion-gear-b"
117
- }), "menu 4"))), /*#__PURE__*/React.createElement(Body, null, /*#__PURE__*/React.createElement(Breadcrumb, null, /*#__PURE__*/React.createElement(BreadcrumbItem, null, "Home"), /*#__PURE__*/React.createElement(BreadcrumbItem, null, "Detail")), /*#__PURE__*/React.createElement("div", {
118
- "v-for": this.state.data
119
- }, "content"))));
119
+ }), "menu 4"))), /*#__PURE__*/React.createElement(Body, null, /*#__PURE__*/React.createElement(Breadcrumb, null, /*#__PURE__*/React.createElement(BreadcrumbItem, null, "Home"), /*#__PURE__*/React.createElement(BreadcrumbItem, null, "Detail")), _mapInstanceProperty(_context2 = this.state.data).call(_context2, function ($value, $key) {
120
+ return /*#__PURE__*/React.createElement("div", null, "content");
121
+ }))));
120
122
  };
121
123
 
122
124
  return Demo;
package/index.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @king-design v2.0.7
2
+ * @king-design v2.0.8
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.7';
65
+ export const version = '2.0.8';
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.7",
3
+ "version": "2.0.8",
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.8",
119
+ "intact-react": "^3.0.9",
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.8",
181
+ "intact": "^3.0.9",
182
182
  "monaco-editor": "^0.26.1",
183
183
  "mxgraphx": "^4.0.7",
184
184
  "resize-observer-polyfill": "^1.5.1",