@plasmicpkgs/antd 0.0.95 → 0.0.96
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 +321 -121
- 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 +321 -121
- package/dist/antd.esm.js.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/registerTable.d.ts +30 -0
- package/package.json +2 -2
- package/skinny/index.d.ts +2 -2
- package/skinny/registerTable.d.ts +30 -0
- package/skinny/registerTable.js +201 -0
- package/skinny/registerTable.js.map +1 -0
|
@@ -6,10 +6,10 @@ function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'defau
|
|
|
6
6
|
|
|
7
7
|
var registerComponent = _interopDefault(require('@plasmicapp/host/registerComponent'));
|
|
8
8
|
var Button = _interopDefault(require('antd/lib/button'));
|
|
9
|
+
var Carousel = _interopDefault(require('antd/lib/carousel'));
|
|
9
10
|
var Checkbox = _interopDefault(require('antd/lib/checkbox/Checkbox'));
|
|
10
11
|
var CheckboxGroup = _interopDefault(require('antd/lib/checkbox/Group'));
|
|
11
12
|
var React = _interopDefault(require('react'));
|
|
12
|
-
var Carousel = _interopDefault(require('antd/lib/carousel'));
|
|
13
13
|
var AntdCollapse = _interopDefault(require('antd/lib/collapse/Collapse'));
|
|
14
14
|
var CollapsePanel = _interopDefault(require('antd/lib/collapse/CollapsePanel'));
|
|
15
15
|
var AntdDropdown = _interopDefault(require('antd/lib/dropdown'));
|
|
@@ -24,11 +24,13 @@ var MenuDivider = _interopDefault(require('antd/lib/menu/MenuDivider'));
|
|
|
24
24
|
var MenuItem = _interopDefault(require('antd/lib/menu/MenuItem'));
|
|
25
25
|
var SubMenu = _interopDefault(require('antd/lib/menu/SubMenu'));
|
|
26
26
|
var rcMenu = require('rc-menu');
|
|
27
|
-
var Rate = _interopDefault(require('antd/lib/rate'));
|
|
28
27
|
var rcSelect = require('rc-select');
|
|
28
|
+
var Rate = _interopDefault(require('antd/lib/rate'));
|
|
29
29
|
var Select = _interopDefault(require('antd/lib/select'));
|
|
30
30
|
var AntdSlider = _interopDefault(require('antd/lib/slider'));
|
|
31
31
|
var Switch = _interopDefault(require('antd/lib/switch'));
|
|
32
|
+
var host = require('@plasmicapp/host');
|
|
33
|
+
var Table = _interopDefault(require('antd/lib/table/Table'));
|
|
32
34
|
var antd = require('antd');
|
|
33
35
|
var AntdTabs = _interopDefault(require('antd/lib/tabs'));
|
|
34
36
|
var rcTabs = require('rc-tabs');
|
|
@@ -113,6 +115,69 @@ function registerButton(loader, customButtonMeta) {
|
|
|
113
115
|
doRegisterComponent(Button, customButtonMeta != null ? customButtonMeta : buttonMeta);
|
|
114
116
|
}
|
|
115
117
|
|
|
118
|
+
var contentStyle = {
|
|
119
|
+
height: "160px",
|
|
120
|
+
color: "#fff",
|
|
121
|
+
lineHeight: "160px",
|
|
122
|
+
textAlign: "center",
|
|
123
|
+
backgroundColor: "#364d79"
|
|
124
|
+
};
|
|
125
|
+
var carouselMeta = {
|
|
126
|
+
name: "AntdCarousel",
|
|
127
|
+
displayName: "Antd Carousel",
|
|
128
|
+
props: {
|
|
129
|
+
autoplay: {
|
|
130
|
+
type: "boolean",
|
|
131
|
+
description: "Whether to scroll automatically",
|
|
132
|
+
defaultValueHint: false
|
|
133
|
+
},
|
|
134
|
+
dotPosition: {
|
|
135
|
+
type: "choice",
|
|
136
|
+
options: ["top", "bottom", "left", "right"],
|
|
137
|
+
description: "The position of the dots",
|
|
138
|
+
defaultValueHint: "bottom"
|
|
139
|
+
},
|
|
140
|
+
dots: {
|
|
141
|
+
type: "boolean",
|
|
142
|
+
description: "Whether to show the dots at the bottom of the gallery",
|
|
143
|
+
defaultValueHint: true
|
|
144
|
+
},
|
|
145
|
+
effect: {
|
|
146
|
+
type: "choice",
|
|
147
|
+
options: ["scrollx", "fade"],
|
|
148
|
+
defaultValueHint: "scrollx"
|
|
149
|
+
},
|
|
150
|
+
children: {
|
|
151
|
+
type: "slot",
|
|
152
|
+
defaultValue: [{
|
|
153
|
+
type: "vbox",
|
|
154
|
+
children: {
|
|
155
|
+
type: "text",
|
|
156
|
+
value: "1",
|
|
157
|
+
styles: contentStyle
|
|
158
|
+
}
|
|
159
|
+
}, {
|
|
160
|
+
type: "vbox",
|
|
161
|
+
children: {
|
|
162
|
+
type: "text",
|
|
163
|
+
value: "2",
|
|
164
|
+
styles: contentStyle
|
|
165
|
+
}
|
|
166
|
+
}]
|
|
167
|
+
}
|
|
168
|
+
},
|
|
169
|
+
importPath: "antd/lib/carousel",
|
|
170
|
+
importName: "Carousel",
|
|
171
|
+
isDefaultExport: true
|
|
172
|
+
};
|
|
173
|
+
function registerCarousel(loader, customCarouselMeta) {
|
|
174
|
+
var doRegisterComponent = function doRegisterComponent() {
|
|
175
|
+
return loader ? loader.registerComponent.apply(loader, arguments) : registerComponent.apply(void 0, arguments);
|
|
176
|
+
};
|
|
177
|
+
|
|
178
|
+
doRegisterComponent(Carousel, customCarouselMeta != null ? customCarouselMeta : carouselMeta);
|
|
179
|
+
}
|
|
180
|
+
|
|
116
181
|
function _extends() {
|
|
117
182
|
_extends = Object.assign || function (target) {
|
|
118
183
|
for (var i = 1; i < arguments.length; i++) {
|
|
@@ -306,69 +371,6 @@ function registerCheckboxGroup(loader, customCheckboxGroupMeta) {
|
|
|
306
371
|
doRegisterComponent(CheckboxGroup, customCheckboxGroupMeta != null ? customCheckboxGroupMeta : checkboxGroupMeta);
|
|
307
372
|
}
|
|
308
373
|
|
|
309
|
-
var contentStyle = {
|
|
310
|
-
height: "160px",
|
|
311
|
-
color: "#fff",
|
|
312
|
-
lineHeight: "160px",
|
|
313
|
-
textAlign: "center",
|
|
314
|
-
backgroundColor: "#364d79"
|
|
315
|
-
};
|
|
316
|
-
var carouselMeta = {
|
|
317
|
-
name: "AntdCarousel",
|
|
318
|
-
displayName: "Antd Carousel",
|
|
319
|
-
props: {
|
|
320
|
-
autoplay: {
|
|
321
|
-
type: "boolean",
|
|
322
|
-
description: "Whether to scroll automatically",
|
|
323
|
-
defaultValueHint: false
|
|
324
|
-
},
|
|
325
|
-
dotPosition: {
|
|
326
|
-
type: "choice",
|
|
327
|
-
options: ["top", "bottom", "left", "right"],
|
|
328
|
-
description: "The position of the dots",
|
|
329
|
-
defaultValueHint: "bottom"
|
|
330
|
-
},
|
|
331
|
-
dots: {
|
|
332
|
-
type: "boolean",
|
|
333
|
-
description: "Whether to show the dots at the bottom of the gallery",
|
|
334
|
-
defaultValueHint: true
|
|
335
|
-
},
|
|
336
|
-
effect: {
|
|
337
|
-
type: "choice",
|
|
338
|
-
options: ["scrollx", "fade"],
|
|
339
|
-
defaultValueHint: "scrollx"
|
|
340
|
-
},
|
|
341
|
-
children: {
|
|
342
|
-
type: "slot",
|
|
343
|
-
defaultValue: [{
|
|
344
|
-
type: "vbox",
|
|
345
|
-
children: {
|
|
346
|
-
type: "text",
|
|
347
|
-
value: "1",
|
|
348
|
-
styles: contentStyle
|
|
349
|
-
}
|
|
350
|
-
}, {
|
|
351
|
-
type: "vbox",
|
|
352
|
-
children: {
|
|
353
|
-
type: "text",
|
|
354
|
-
value: "2",
|
|
355
|
-
styles: contentStyle
|
|
356
|
-
}
|
|
357
|
-
}]
|
|
358
|
-
}
|
|
359
|
-
},
|
|
360
|
-
importPath: "antd/lib/carousel",
|
|
361
|
-
importName: "Carousel",
|
|
362
|
-
isDefaultExport: true
|
|
363
|
-
};
|
|
364
|
-
function registerCarousel(loader, customCarouselMeta) {
|
|
365
|
-
var doRegisterComponent = function doRegisterComponent() {
|
|
366
|
-
return loader ? loader.registerComponent.apply(loader, arguments) : registerComponent.apply(void 0, arguments);
|
|
367
|
-
};
|
|
368
|
-
|
|
369
|
-
doRegisterComponent(Carousel, customCarouselMeta != null ? customCarouselMeta : carouselMeta);
|
|
370
|
-
}
|
|
371
|
-
|
|
372
374
|
var _excluded = ["openIcon", "closeIcon"];
|
|
373
375
|
var collapstePanelMeta = {
|
|
374
376
|
name: "AntdCollapsePanel",
|
|
@@ -1275,62 +1277,6 @@ function registerMenu(loader, customMenuMeta) {
|
|
|
1275
1277
|
doRegisterComponent(Menu, customMenuMeta != null ? customMenuMeta : menuMeta);
|
|
1276
1278
|
}
|
|
1277
1279
|
|
|
1278
|
-
var rateMeta = {
|
|
1279
|
-
name: "AntdRate",
|
|
1280
|
-
displayName: "Antd Rate",
|
|
1281
|
-
props: {
|
|
1282
|
-
allowClear: {
|
|
1283
|
-
type: "boolean",
|
|
1284
|
-
description: "Whether to allow clear when clicking again",
|
|
1285
|
-
defaultValueHint: true
|
|
1286
|
-
},
|
|
1287
|
-
allowHalf: {
|
|
1288
|
-
type: "boolean",
|
|
1289
|
-
description: "Whether to allow semi selection",
|
|
1290
|
-
defaultValueHint: false
|
|
1291
|
-
},
|
|
1292
|
-
autoFocus: {
|
|
1293
|
-
type: "boolean",
|
|
1294
|
-
description: "If componet is focused when mounted",
|
|
1295
|
-
defaultValueHint: false
|
|
1296
|
-
},
|
|
1297
|
-
count: {
|
|
1298
|
-
type: "number",
|
|
1299
|
-
description: "Star count"
|
|
1300
|
-
},
|
|
1301
|
-
disabled: {
|
|
1302
|
-
type: "boolean",
|
|
1303
|
-
description: "Disabled state of component",
|
|
1304
|
-
defaultValueHint: false
|
|
1305
|
-
},
|
|
1306
|
-
tooltips: {
|
|
1307
|
-
type: "array",
|
|
1308
|
-
description: "Array to customize tooltip for each icon"
|
|
1309
|
-
},
|
|
1310
|
-
value: {
|
|
1311
|
-
type: "number",
|
|
1312
|
-
description: "The default value",
|
|
1313
|
-
editOnly: true,
|
|
1314
|
-
uncontrolledProp: "defaultValue",
|
|
1315
|
-
defaultValueHint: 0
|
|
1316
|
-
},
|
|
1317
|
-
character: {
|
|
1318
|
-
type: "slot",
|
|
1319
|
-
hidePlaceholder: true
|
|
1320
|
-
}
|
|
1321
|
-
},
|
|
1322
|
-
importPath: "antd/lib/rate",
|
|
1323
|
-
importName: "Rate",
|
|
1324
|
-
isDefaultExport: true
|
|
1325
|
-
};
|
|
1326
|
-
function registerRate(loader, customRateMeta) {
|
|
1327
|
-
var doRegisterComponent = function doRegisterComponent() {
|
|
1328
|
-
return loader ? loader.registerComponent.apply(loader, arguments) : registerComponent.apply(void 0, arguments);
|
|
1329
|
-
};
|
|
1330
|
-
|
|
1331
|
-
doRegisterComponent(Rate, customRateMeta != null ? customRateMeta : rateMeta);
|
|
1332
|
-
}
|
|
1333
|
-
|
|
1334
1280
|
var optionMeta = {
|
|
1335
1281
|
name: "AntdOption",
|
|
1336
1282
|
displayName: "Antd Option",
|
|
@@ -1404,6 +1350,62 @@ function registerOptGroup(loader, customOptGroupMeta) {
|
|
|
1404
1350
|
doRegisterComponent(rcSelect.OptGroup, customOptGroupMeta != null ? customOptGroupMeta : optGroupMeta);
|
|
1405
1351
|
}
|
|
1406
1352
|
|
|
1353
|
+
var rateMeta = {
|
|
1354
|
+
name: "AntdRate",
|
|
1355
|
+
displayName: "Antd Rate",
|
|
1356
|
+
props: {
|
|
1357
|
+
allowClear: {
|
|
1358
|
+
type: "boolean",
|
|
1359
|
+
description: "Whether to allow clear when clicking again",
|
|
1360
|
+
defaultValueHint: true
|
|
1361
|
+
},
|
|
1362
|
+
allowHalf: {
|
|
1363
|
+
type: "boolean",
|
|
1364
|
+
description: "Whether to allow semi selection",
|
|
1365
|
+
defaultValueHint: false
|
|
1366
|
+
},
|
|
1367
|
+
autoFocus: {
|
|
1368
|
+
type: "boolean",
|
|
1369
|
+
description: "If componet is focused when mounted",
|
|
1370
|
+
defaultValueHint: false
|
|
1371
|
+
},
|
|
1372
|
+
count: {
|
|
1373
|
+
type: "number",
|
|
1374
|
+
description: "Star count"
|
|
1375
|
+
},
|
|
1376
|
+
disabled: {
|
|
1377
|
+
type: "boolean",
|
|
1378
|
+
description: "Disabled state of component",
|
|
1379
|
+
defaultValueHint: false
|
|
1380
|
+
},
|
|
1381
|
+
tooltips: {
|
|
1382
|
+
type: "array",
|
|
1383
|
+
description: "Array to customize tooltip for each icon"
|
|
1384
|
+
},
|
|
1385
|
+
value: {
|
|
1386
|
+
type: "number",
|
|
1387
|
+
description: "The default value",
|
|
1388
|
+
editOnly: true,
|
|
1389
|
+
uncontrolledProp: "defaultValue",
|
|
1390
|
+
defaultValueHint: 0
|
|
1391
|
+
},
|
|
1392
|
+
character: {
|
|
1393
|
+
type: "slot",
|
|
1394
|
+
hidePlaceholder: true
|
|
1395
|
+
}
|
|
1396
|
+
},
|
|
1397
|
+
importPath: "antd/lib/rate",
|
|
1398
|
+
importName: "Rate",
|
|
1399
|
+
isDefaultExport: true
|
|
1400
|
+
};
|
|
1401
|
+
function registerRate(loader, customRateMeta) {
|
|
1402
|
+
var doRegisterComponent = function doRegisterComponent() {
|
|
1403
|
+
return loader ? loader.registerComponent.apply(loader, arguments) : registerComponent.apply(void 0, arguments);
|
|
1404
|
+
};
|
|
1405
|
+
|
|
1406
|
+
doRegisterComponent(Rate, customRateMeta != null ? customRateMeta : rateMeta);
|
|
1407
|
+
}
|
|
1408
|
+
|
|
1407
1409
|
var selectMeta = {
|
|
1408
1410
|
name: "AntdSelect",
|
|
1409
1411
|
displayName: "Antd Select",
|
|
@@ -1698,6 +1700,201 @@ function registerSwitch(loader, customSwitchMeta) {
|
|
|
1698
1700
|
doRegisterComponent(Switch, customSwitchMeta != null ? customSwitchMeta : switchMeta);
|
|
1699
1701
|
}
|
|
1700
1702
|
|
|
1703
|
+
// properties in plasmic.
|
|
1704
|
+
|
|
1705
|
+
function TableColumn(_props) {
|
|
1706
|
+
return null;
|
|
1707
|
+
}
|
|
1708
|
+
function TableValue(props) {
|
|
1709
|
+
var _column$toString;
|
|
1710
|
+
|
|
1711
|
+
var className = props.className;
|
|
1712
|
+
var column = host.useSelector("currentColumn");
|
|
1713
|
+
return React.createElement("div", {
|
|
1714
|
+
className: className
|
|
1715
|
+
}, (_column$toString = column == null ? void 0 : column.toString()) != null ? _column$toString : "");
|
|
1716
|
+
}
|
|
1717
|
+
function TableWrapper(props) {
|
|
1718
|
+
var _columns$props$childr, _columns$props;
|
|
1719
|
+
|
|
1720
|
+
var className = props.className,
|
|
1721
|
+
items = props.items,
|
|
1722
|
+
columns = props.columns,
|
|
1723
|
+
size = props.size,
|
|
1724
|
+
onSelect = props.onSelect,
|
|
1725
|
+
pagination = props.pagination; // Plasmic Studio Canvas currently renders items in a slightly different way than the generated code:
|
|
1726
|
+
// - In the studio:
|
|
1727
|
+
// - The `columns` prop value is an array of nested react <Column /> nodes.
|
|
1728
|
+
// - In the generated code (preview mode):
|
|
1729
|
+
// - The `columns` prop value is a React Node with a `children` property that contains
|
|
1730
|
+
// an array of the nested react <Column /> components.
|
|
1731
|
+
|
|
1732
|
+
var tableColumns = (_columns$props$childr = columns == null ? void 0 : (_columns$props = columns.props) == null ? void 0 : _columns$props.children) != null ? _columns$props$childr : columns; // Convert the props.columns slot children to an array of column definitions
|
|
1733
|
+
|
|
1734
|
+
var columnDefinitions = React.useMemo(function () {
|
|
1735
|
+
return React.Children.map(tableColumns, function (column, columnIndex) {
|
|
1736
|
+
if (!column) {
|
|
1737
|
+
return undefined;
|
|
1738
|
+
}
|
|
1739
|
+
|
|
1740
|
+
var _column$props = column.props,
|
|
1741
|
+
columnTemplate = _column$props.columnTemplate,
|
|
1742
|
+
title = _column$props.title,
|
|
1743
|
+
dataIndex = _column$props.dataIndex;
|
|
1744
|
+
var columnDefinition = {
|
|
1745
|
+
columnIndex: columnIndex,
|
|
1746
|
+
title: title,
|
|
1747
|
+
dataIndex: dataIndex,
|
|
1748
|
+
key: columnIndex,
|
|
1749
|
+
render: function render(value, record, rowIndex) {
|
|
1750
|
+
return React.createElement(host.DataProvider, {
|
|
1751
|
+
name: "currentRow",
|
|
1752
|
+
data: record
|
|
1753
|
+
}, React.createElement(host.DataProvider, {
|
|
1754
|
+
name: "currentRowIndex",
|
|
1755
|
+
data: rowIndex
|
|
1756
|
+
}, React.createElement(host.DataProvider, {
|
|
1757
|
+
name: "currentColumn",
|
|
1758
|
+
data: value
|
|
1759
|
+
}, host.repeatedElement(rowIndex, columnTemplate))));
|
|
1760
|
+
}
|
|
1761
|
+
};
|
|
1762
|
+
return columnDefinition;
|
|
1763
|
+
}).filter(Boolean);
|
|
1764
|
+
}, [tableColumns]);
|
|
1765
|
+
return React.createElement(Table, {
|
|
1766
|
+
className: className,
|
|
1767
|
+
columns: columnDefinitions,
|
|
1768
|
+
dataSource: items,
|
|
1769
|
+
size: size,
|
|
1770
|
+
onRow: function onRow(record) {
|
|
1771
|
+
return {
|
|
1772
|
+
onMouseUp: function onMouseUp() {
|
|
1773
|
+
return onSelect == null ? void 0 : onSelect(record.id);
|
|
1774
|
+
}
|
|
1775
|
+
};
|
|
1776
|
+
},
|
|
1777
|
+
pagination: pagination ? undefined : pagination,
|
|
1778
|
+
rowKey: "id"
|
|
1779
|
+
});
|
|
1780
|
+
}
|
|
1781
|
+
var DEFAULT_ITEMS = [{
|
|
1782
|
+
name: "John Brown",
|
|
1783
|
+
age: 19,
|
|
1784
|
+
address: "New York No. 1 Lake Park",
|
|
1785
|
+
tags: ["student", "developer"]
|
|
1786
|
+
}, {
|
|
1787
|
+
name: "Jim Green",
|
|
1788
|
+
age: 42,
|
|
1789
|
+
address: "London No. 1 Lake Park",
|
|
1790
|
+
tags: ["teacher"]
|
|
1791
|
+
}, {
|
|
1792
|
+
name: "Joe Black",
|
|
1793
|
+
age: 32,
|
|
1794
|
+
address: "Sidney No. 1 Lake Park",
|
|
1795
|
+
tags: ["cool", "teacher"]
|
|
1796
|
+
}];
|
|
1797
|
+
|
|
1798
|
+
function capitalize(input) {
|
|
1799
|
+
return input.charAt(0).toUpperCase() + input.slice(1);
|
|
1800
|
+
}
|
|
1801
|
+
|
|
1802
|
+
var tableMeta = {
|
|
1803
|
+
name: "AntdTable",
|
|
1804
|
+
displayName: "Antd Table",
|
|
1805
|
+
props: {
|
|
1806
|
+
items: {
|
|
1807
|
+
type: "array",
|
|
1808
|
+
description: "The data to display in the table, as a list of objects (one object per row)",
|
|
1809
|
+
defaultValue: DEFAULT_ITEMS
|
|
1810
|
+
},
|
|
1811
|
+
columns: {
|
|
1812
|
+
type: "slot",
|
|
1813
|
+
allowedComponents: ["AntdTableColumn"],
|
|
1814
|
+
defaultValue: /*#__PURE__*/Object.keys(DEFAULT_ITEMS[0]).map(function (columnName) {
|
|
1815
|
+
return {
|
|
1816
|
+
type: "component",
|
|
1817
|
+
name: "PlasmicAntDesignTableColumn",
|
|
1818
|
+
props: {
|
|
1819
|
+
title: capitalize(columnName),
|
|
1820
|
+
dataIndex: columnName
|
|
1821
|
+
}
|
|
1822
|
+
};
|
|
1823
|
+
})
|
|
1824
|
+
},
|
|
1825
|
+
size: {
|
|
1826
|
+
type: "choice",
|
|
1827
|
+
options: ["large", "middle", "small"],
|
|
1828
|
+
defaultValueHint: "large"
|
|
1829
|
+
},
|
|
1830
|
+
pagination: {
|
|
1831
|
+
type: "boolean",
|
|
1832
|
+
defaultValueHint: true
|
|
1833
|
+
}
|
|
1834
|
+
},
|
|
1835
|
+
importPath: "@plasmicpkgs/antd/skinny/registerTable",
|
|
1836
|
+
importName: "TableWrapper"
|
|
1837
|
+
};
|
|
1838
|
+
var tableColumnMeta = {
|
|
1839
|
+
name: "AntdTableColumn",
|
|
1840
|
+
parentComponentName: "AntdTable",
|
|
1841
|
+
providesData: true,
|
|
1842
|
+
props: {
|
|
1843
|
+
title: {
|
|
1844
|
+
type: "string",
|
|
1845
|
+
defaultValue: "Name"
|
|
1846
|
+
},
|
|
1847
|
+
dataIndex: {
|
|
1848
|
+
type: "string",
|
|
1849
|
+
defaultValue: "name",
|
|
1850
|
+
description: "The field to show. The table accepts some data as a list of objects, and this is the name of the field in those objects that this column will display."
|
|
1851
|
+
},
|
|
1852
|
+
columnTemplate: {
|
|
1853
|
+
type: "slot",
|
|
1854
|
+
defaultValue: {
|
|
1855
|
+
type: "vbox",
|
|
1856
|
+
styles: {
|
|
1857
|
+
padding: 0
|
|
1858
|
+
},
|
|
1859
|
+
children: [{
|
|
1860
|
+
type: "component",
|
|
1861
|
+
name: "AntdTableValue"
|
|
1862
|
+
}]
|
|
1863
|
+
}
|
|
1864
|
+
}
|
|
1865
|
+
},
|
|
1866
|
+
importPath: "@plasmicpkgs/antd/skinny/registerTable",
|
|
1867
|
+
importName: "TableColumn"
|
|
1868
|
+
};
|
|
1869
|
+
var tableValueMeta = {
|
|
1870
|
+
name: "AntdTableValue",
|
|
1871
|
+
parentComponentName: "AntdTableColumn",
|
|
1872
|
+
props: {},
|
|
1873
|
+
importPath: "@plasmicpkgs/antd/skinny/registerTable",
|
|
1874
|
+
importName: "TableValue"
|
|
1875
|
+
};
|
|
1876
|
+
function registerTable(loader, customMeta) {
|
|
1877
|
+
var doRegisterComponent = function doRegisterComponent() {
|
|
1878
|
+
return loader ? loader.registerComponent.apply(loader, arguments) : host.registerComponent.apply(void 0, arguments);
|
|
1879
|
+
};
|
|
1880
|
+
|
|
1881
|
+
doRegisterComponent(TableWrapper, customMeta != null ? customMeta : tableMeta);
|
|
1882
|
+
}
|
|
1883
|
+
function registerTableColumn(loader, customMeta) {
|
|
1884
|
+
var doRegisterComponent = function doRegisterComponent() {
|
|
1885
|
+
return loader ? loader.registerComponent.apply(loader, arguments) : host.registerComponent.apply(void 0, arguments);
|
|
1886
|
+
};
|
|
1887
|
+
|
|
1888
|
+
doRegisterComponent(TableColumn, customMeta != null ? customMeta : tableColumnMeta);
|
|
1889
|
+
}
|
|
1890
|
+
function registerTableValue(loader, customMeta) {
|
|
1891
|
+
var doRegisterComponent = function doRegisterComponent() {
|
|
1892
|
+
return loader ? loader.registerComponent.apply(loader, arguments) : host.registerComponent.apply(void 0, arguments);
|
|
1893
|
+
};
|
|
1894
|
+
|
|
1895
|
+
doRegisterComponent(TableValue, customMeta != null ? customMeta : tableValueMeta);
|
|
1896
|
+
}
|
|
1897
|
+
|
|
1701
1898
|
var _excluded$2 = ["leftTabBarExtraContent", "rightTabBarExtraContent"];
|
|
1702
1899
|
var tabPaneMeta = {
|
|
1703
1900
|
name: "AntdTabPane",
|
|
@@ -2050,6 +2247,9 @@ function registerAll(loader) {
|
|
|
2050
2247
|
registerInputPassword(loader);
|
|
2051
2248
|
registerInputGroup(loader);
|
|
2052
2249
|
registerTabPane(loader);
|
|
2250
|
+
registerTable(loader);
|
|
2251
|
+
registerTableColumn(loader);
|
|
2252
|
+
registerTableValue(loader);
|
|
2053
2253
|
registerTabs(loader);
|
|
2054
2254
|
registerRate(loader);
|
|
2055
2255
|
}
|