@plasmicpkgs/antd 0.0.97 → 0.0.98
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/dist/antd.cjs.development.js +15 -4
- package/dist/antd.cjs.development.js.map +1 -1
- package/dist/antd.cjs.production.min.js +1 -1
- package/dist/antd.cjs.production.min.js.map +1 -1
- package/dist/antd.esm.js +15 -4
- package/dist/antd.esm.js.map +1 -1
- package/package.json +2 -2
- package/skinny/registerTable.js +9 -2
- package/skinny/registerTable.js.map +1 -1
|
@@ -1700,6 +1700,7 @@ function registerSwitch(loader, customSwitchMeta) {
|
|
|
1700
1700
|
doRegisterComponent(Switch, customSwitchMeta != null ? customSwitchMeta : switchMeta);
|
|
1701
1701
|
}
|
|
1702
1702
|
|
|
1703
|
+
var _excluded$2 = ["columnTemplate", "title", "dataIndex"];
|
|
1703
1704
|
// properties in plasmic.
|
|
1704
1705
|
|
|
1705
1706
|
function TableColumn(_props) {
|
|
@@ -1714,6 +1715,14 @@ function TableValue(props) {
|
|
|
1714
1715
|
className: className
|
|
1715
1716
|
}, (_column$toString = column == null ? void 0 : column.toString()) != null ? _column$toString : "");
|
|
1716
1717
|
}
|
|
1718
|
+
/**
|
|
1719
|
+
* Wrapper used to consume internal canvas props
|
|
1720
|
+
*/
|
|
1721
|
+
|
|
1722
|
+
function ColumnWrapper(props) {
|
|
1723
|
+
return props.children;
|
|
1724
|
+
}
|
|
1725
|
+
|
|
1717
1726
|
function TableWrapper(props) {
|
|
1718
1727
|
var _columns$props$childr, _columns$props;
|
|
1719
1728
|
|
|
@@ -1740,7 +1749,9 @@ function TableWrapper(props) {
|
|
|
1740
1749
|
var _column$props = column.props,
|
|
1741
1750
|
columnTemplate = _column$props.columnTemplate,
|
|
1742
1751
|
title = _column$props.title,
|
|
1743
|
-
dataIndex = _column$props.dataIndex
|
|
1752
|
+
dataIndex = _column$props.dataIndex,
|
|
1753
|
+
rest = _objectWithoutPropertiesLoose(_column$props, _excluded$2);
|
|
1754
|
+
|
|
1744
1755
|
var columnDefinition = {
|
|
1745
1756
|
columnIndex: columnIndex,
|
|
1746
1757
|
title: title,
|
|
@@ -1756,7 +1767,7 @@ function TableWrapper(props) {
|
|
|
1756
1767
|
}, React.createElement(host.DataProvider, {
|
|
1757
1768
|
name: "currentColumn",
|
|
1758
1769
|
data: value
|
|
1759
|
-
}, host.repeatedElement(rowIndex, columnTemplate))));
|
|
1770
|
+
}, host.repeatedElement(rowIndex, React.createElement(ColumnWrapper, Object.assign({}, rest), columnTemplate)))));
|
|
1760
1771
|
}
|
|
1761
1772
|
};
|
|
1762
1773
|
return columnDefinition;
|
|
@@ -1895,7 +1906,7 @@ function registerTableValue(loader, customMeta) {
|
|
|
1895
1906
|
doRegisterComponent(TableValue, customMeta != null ? customMeta : tableValueMeta);
|
|
1896
1907
|
}
|
|
1897
1908
|
|
|
1898
|
-
var _excluded$
|
|
1909
|
+
var _excluded$3 = ["leftTabBarExtraContent", "rightTabBarExtraContent"];
|
|
1899
1910
|
var tabPaneMeta = {
|
|
1900
1911
|
name: "AntdTabPane",
|
|
1901
1912
|
displayName: "Antd Tab Pane",
|
|
@@ -1953,7 +1964,7 @@ function registerTabPane(loader, customTabPaneMeta) {
|
|
|
1953
1964
|
function Tabs(props) {
|
|
1954
1965
|
var leftTabBarExtraContent = props.leftTabBarExtraContent,
|
|
1955
1966
|
rightTabBarExtraContent = props.rightTabBarExtraContent,
|
|
1956
|
-
otherProps = _objectWithoutPropertiesLoose(props, _excluded$
|
|
1967
|
+
otherProps = _objectWithoutPropertiesLoose(props, _excluded$3);
|
|
1957
1968
|
|
|
1958
1969
|
return React.createElement(AntdTabs, Object.assign({}, otherProps, {
|
|
1959
1970
|
tabBarExtraContent: {
|