@antscorp/antsomi-ui 1.3.5-beta.543 → 1.3.5-beta.544

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.
@@ -2,7 +2,7 @@ import React from 'react';
2
2
  import { ModalFuncProps } from 'antd';
3
3
  export interface EditorTabItem {
4
4
  showIcon?: boolean;
5
- closeable?: boolean;
5
+ closable?: boolean;
6
6
  showDropdown?: boolean;
7
7
  hideRemoveOption?: boolean;
8
8
  id: string;
@@ -157,7 +157,7 @@ export const EditorTab = props => {
157
157
  React.createElement(Icon, { type: "icon-ants-angle-left" }))),
158
158
  React.createElement("div", { ref: leftBlockRef, className: classnames('left-block', leftBlockClassName), onWheel: onWheelLeftBlock }, arrTabs && arrTabs.length
159
159
  ? arrTabs.map((tab, idx) => {
160
- const { showIcon = true, showDropdown = true, hideRemoveOption, closeable = true, } = tab;
160
+ const { showIcon = true, showDropdown = true, hideRemoveOption, closable = true, } = tab;
161
161
  return (React.createElement("div", { key: tab.id, onClick: () => handleActiveTab(tab.id), className: classnames('tab-item', tabItemClassName, {
162
162
  active: tab.id === activeTabId,
163
163
  }) },
@@ -189,7 +189,7 @@ export const EditorTab = props => {
189
189
  }
190
190
  }),
191
191
  }, placement: "bottomLeft", trigger: ['click'], destroyPopupOnHide: true },
192
- React.createElement(Button, { icon: React.createElement(Icon, { type: "icon-ants-three-dot-vertical", overlayStyle: { fontSize: 12 } }), size: "small" }))) : closeable ? (React.createElement(Button, { onClick: e => handleCloseTab(e, tab, idx), icon: React.createElement(Icon, { type: "icon-ants-remove-slim", overlayStyle: { fontSize: 12 } }), size: "small" })) : null));
192
+ React.createElement(Button, { icon: React.createElement(Icon, { type: "icon-ants-three-dot-vertical", overlayStyle: { fontSize: 12 } }), size: "small" }))) : closable ? (React.createElement(Button, { onClick: e => handleCloseTab(e, tab, idx), icon: React.createElement(Icon, { type: "icon-ants-remove-slim", overlayStyle: { fontSize: 12 } }), size: "small" })) : null));
193
193
  })
194
194
  : null),
195
195
  showArrow && (React.createElement("div", { className: "navigate-button", onClick: () => onClickArrow('right') },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@antscorp/antsomi-ui",
3
- "version": "1.3.5-beta.543",
3
+ "version": "1.3.5-beta.544",
4
4
  "description": "An enterprise-class UI design language and React UI library.",
5
5
  "sideEffects": [
6
6
  "dist/*",