diff --git a/docs/components/action.html b/docs/components/action.html
index c1212ac3..17b23583 100644
--- a/docs/components/action.html
+++ b/docs/components/action.html
@@ -36,8 +36,8 @@
-
-
+
+
diff --git a/docs/components/alert.html b/docs/components/alert.html
index c1212ac3..17b23583 100644
--- a/docs/components/alert.html
+++ b/docs/components/alert.html
@@ -36,8 +36,8 @@
-
-
+
+
diff --git a/docs/components/audio.html b/docs/components/audio.html
index c1212ac3..17b23583 100644
--- a/docs/components/audio.html
+++ b/docs/components/audio.html
@@ -36,8 +36,8 @@
-
-
+
+
diff --git a/docs/components/button.html b/docs/components/button.html
index c1212ac3..17b23583 100644
--- a/docs/components/button.html
+++ b/docs/components/button.html
@@ -36,8 +36,8 @@
-
-
+
+
diff --git a/docs/components/buttongroup.html b/docs/components/buttongroup.html
index c1212ac3..17b23583 100644
--- a/docs/components/buttongroup.html
+++ b/docs/components/buttongroup.html
@@ -36,8 +36,8 @@
-
-
+
+
diff --git a/docs/components/card.html b/docs/components/card.html
index c1212ac3..17b23583 100644
--- a/docs/components/card.html
+++ b/docs/components/card.html
@@ -36,8 +36,8 @@
-
-
+
+
diff --git a/docs/components/cards.html b/docs/components/cards.html
index c1212ac3..17b23583 100644
--- a/docs/components/cards.html
+++ b/docs/components/cards.html
@@ -36,8 +36,8 @@
-
-
+
+
diff --git a/docs/components/carousel.html b/docs/components/carousel.html
index c1212ac3..17b23583 100644
--- a/docs/components/carousel.html
+++ b/docs/components/carousel.html
@@ -36,8 +36,8 @@
-
-
+
+
diff --git a/docs/components/chart.html b/docs/components/chart.html
index c1212ac3..17b23583 100644
--- a/docs/components/chart.html
+++ b/docs/components/chart.html
@@ -36,8 +36,8 @@
-
-
+
+
diff --git a/docs/components/collapse.html b/docs/components/collapse.html
index c1212ac3..17b23583 100644
--- a/docs/components/collapse.html
+++ b/docs/components/collapse.html
@@ -36,8 +36,8 @@
-
-
+
+
diff --git a/docs/components/color.html b/docs/components/color.html
index c1212ac3..17b23583 100644
--- a/docs/components/color.html
+++ b/docs/components/color.html
@@ -36,8 +36,8 @@
-
-
+
+
diff --git a/docs/components/component.html b/docs/components/component.html
index c1212ac3..17b23583 100644
--- a/docs/components/component.html
+++ b/docs/components/component.html
@@ -36,8 +36,8 @@
-
-
+
+
diff --git a/docs/components/container.html b/docs/components/container.html
index c1212ac3..17b23583 100644
--- a/docs/components/container.html
+++ b/docs/components/container.html
@@ -36,8 +36,8 @@
-
-
+
+
diff --git a/docs/components/crud.html b/docs/components/crud.html
index c1212ac3..17b23583 100644
--- a/docs/components/crud.html
+++ b/docs/components/crud.html
@@ -36,8 +36,8 @@
-
-
+
+
diff --git a/docs/components/date.html b/docs/components/date.html
index c1212ac3..17b23583 100644
--- a/docs/components/date.html
+++ b/docs/components/date.html
@@ -36,8 +36,8 @@
-
-
+
+
diff --git a/docs/components/dialog.html b/docs/components/dialog.html
index c1212ac3..17b23583 100644
--- a/docs/components/dialog.html
+++ b/docs/components/dialog.html
@@ -36,8 +36,8 @@
-
-
+
+
diff --git a/docs/components/divider.html b/docs/components/divider.html
index c1212ac3..17b23583 100644
--- a/docs/components/divider.html
+++ b/docs/components/divider.html
@@ -36,8 +36,8 @@
-
-
+
+
diff --git a/docs/components/drawer.html b/docs/components/drawer.html
index c1212ac3..17b23583 100644
--- a/docs/components/drawer.html
+++ b/docs/components/drawer.html
@@ -36,8 +36,8 @@
-
-
+
+
diff --git a/docs/components/dropdown-button.html b/docs/components/dropdown-button.html
index c1212ac3..17b23583 100644
--- a/docs/components/dropdown-button.html
+++ b/docs/components/dropdown-button.html
@@ -36,8 +36,8 @@
-
-
+
+
diff --git a/docs/components/each.html b/docs/components/each.html
index c1212ac3..17b23583 100644
--- a/docs/components/each.html
+++ b/docs/components/each.html
@@ -36,8 +36,8 @@
-
-
+
+
diff --git a/docs/components/form/array.html b/docs/components/form/array.html
index c1212ac3..17b23583 100644
--- a/docs/components/form/array.html
+++ b/docs/components/form/array.html
@@ -36,8 +36,8 @@
-
-
+
+
diff --git a/docs/components/form/button-group.html b/docs/components/form/button-group.html
index c1212ac3..17b23583 100644
--- a/docs/components/form/button-group.html
+++ b/docs/components/form/button-group.html
@@ -36,8 +36,8 @@
-
-
+
+
diff --git a/docs/components/form/button-toolbar.html b/docs/components/form/button-toolbar.html
index c1212ac3..17b23583 100644
--- a/docs/components/form/button-toolbar.html
+++ b/docs/components/form/button-toolbar.html
@@ -36,8 +36,8 @@
-
-
+
+
diff --git a/docs/components/form/button.html b/docs/components/form/button.html
index c1212ac3..17b23583 100644
--- a/docs/components/form/button.html
+++ b/docs/components/form/button.html
@@ -36,8 +36,8 @@
-
-
+
+
diff --git a/docs/components/form/chain-select.html b/docs/components/form/chain-select.html
index c1212ac3..17b23583 100644
--- a/docs/components/form/chain-select.html
+++ b/docs/components/form/chain-select.html
@@ -36,8 +36,8 @@
-
-
+
+
diff --git a/docs/components/form/checkbox.html b/docs/components/form/checkbox.html
index c1212ac3..17b23583 100644
--- a/docs/components/form/checkbox.html
+++ b/docs/components/form/checkbox.html
@@ -36,8 +36,8 @@
-
-
+
+
diff --git a/docs/components/form/checkboxes.html b/docs/components/form/checkboxes.html
index c1212ac3..17b23583 100644
--- a/docs/components/form/checkboxes.html
+++ b/docs/components/form/checkboxes.html
@@ -36,8 +36,8 @@
-
-
+
+
diff --git a/docs/components/form/city.html b/docs/components/form/city.html
index c1212ac3..17b23583 100644
--- a/docs/components/form/city.html
+++ b/docs/components/form/city.html
@@ -36,8 +36,8 @@
-
-
+
+
diff --git a/docs/components/form/color.html b/docs/components/form/color.html
index c1212ac3..17b23583 100644
--- a/docs/components/form/color.html
+++ b/docs/components/form/color.html
@@ -36,8 +36,8 @@
-
-
+
+
diff --git a/docs/components/form/combo.html b/docs/components/form/combo.html
index c1212ac3..17b23583 100644
--- a/docs/components/form/combo.html
+++ b/docs/components/form/combo.html
@@ -36,8 +36,8 @@
-
-
+
+
diff --git a/docs/components/form/date-range.html b/docs/components/form/date-range.html
index c1212ac3..17b23583 100644
--- a/docs/components/form/date-range.html
+++ b/docs/components/form/date-range.html
@@ -36,8 +36,8 @@
-
-
+
+
diff --git a/docs/components/form/date.html b/docs/components/form/date.html
index c1212ac3..17b23583 100644
--- a/docs/components/form/date.html
+++ b/docs/components/form/date.html
@@ -36,8 +36,8 @@
-
-
+
+
diff --git a/docs/components/form/datetime-range.html b/docs/components/form/datetime-range.html
index c1212ac3..17b23583 100644
--- a/docs/components/form/datetime-range.html
+++ b/docs/components/form/datetime-range.html
@@ -36,8 +36,8 @@
-
-
+
+
diff --git a/docs/components/form/datetime.html b/docs/components/form/datetime.html
index c1212ac3..17b23583 100644
--- a/docs/components/form/datetime.html
+++ b/docs/components/form/datetime.html
@@ -36,8 +36,8 @@
-
-
+
+
diff --git a/docs/components/form/diff-editor.html b/docs/components/form/diff-editor.html
index c1212ac3..17b23583 100644
--- a/docs/components/form/diff-editor.html
+++ b/docs/components/form/diff-editor.html
@@ -36,8 +36,8 @@
-
-
+
+
diff --git a/docs/components/form/editor.html b/docs/components/form/editor.html
index c1212ac3..17b23583 100644
--- a/docs/components/form/editor.html
+++ b/docs/components/form/editor.html
@@ -36,8 +36,8 @@
-
-
+
+
diff --git a/docs/components/form/fieldset.html b/docs/components/form/fieldset.html
index c1212ac3..17b23583 100644
--- a/docs/components/form/fieldset.html
+++ b/docs/components/form/fieldset.html
@@ -36,8 +36,8 @@
-
-
+
+
diff --git a/docs/components/form/file.html b/docs/components/form/file.html
index c1212ac3..17b23583 100644
--- a/docs/components/form/file.html
+++ b/docs/components/form/file.html
@@ -36,8 +36,8 @@
-
-
+
+
diff --git a/docs/components/form/formitem.html b/docs/components/form/formitem.html
index c1212ac3..17b23583 100644
--- a/docs/components/form/formitem.html
+++ b/docs/components/form/formitem.html
@@ -36,8 +36,8 @@
-
-
+
+
diff --git a/docs/components/form/formula.html b/docs/components/form/formula.html
index c1212ac3..17b23583 100644
--- a/docs/components/form/formula.html
+++ b/docs/components/form/formula.html
@@ -36,8 +36,8 @@
-
-
+
+
diff --git a/docs/components/form/grid.html b/docs/components/form/grid.html
index c1212ac3..17b23583 100644
--- a/docs/components/form/grid.html
+++ b/docs/components/form/grid.html
@@ -36,8 +36,8 @@
-
-
+
+
diff --git a/docs/components/form/group.html b/docs/components/form/group.html
index c1212ac3..17b23583 100644
--- a/docs/components/form/group.html
+++ b/docs/components/form/group.html
@@ -36,8 +36,8 @@
-
-
+
+
diff --git a/docs/components/form/hbox.html b/docs/components/form/hbox.html
index c1212ac3..17b23583 100644
--- a/docs/components/form/hbox.html
+++ b/docs/components/form/hbox.html
@@ -36,8 +36,8 @@
-
-
+
+
diff --git a/docs/components/form/hidden.html b/docs/components/form/hidden.html
index c1212ac3..17b23583 100644
--- a/docs/components/form/hidden.html
+++ b/docs/components/form/hidden.html
@@ -36,8 +36,8 @@
-
-
+
+
diff --git a/docs/components/form/image.html b/docs/components/form/image.html
index c1212ac3..17b23583 100644
--- a/docs/components/form/image.html
+++ b/docs/components/form/image.html
@@ -36,8 +36,8 @@
-
-
+
+
diff --git a/docs/components/form/index.html b/docs/components/form/index.html
index c1212ac3..17b23583 100644
--- a/docs/components/form/index.html
+++ b/docs/components/form/index.html
@@ -36,8 +36,8 @@
-
-
+
+
diff --git a/docs/components/form/input-group.html b/docs/components/form/input-group.html
index c1212ac3..17b23583 100644
--- a/docs/components/form/input-group.html
+++ b/docs/components/form/input-group.html
@@ -36,8 +36,8 @@
-
-
+
+
diff --git a/docs/components/form/list.html b/docs/components/form/list.html
index c1212ac3..17b23583 100644
--- a/docs/components/form/list.html
+++ b/docs/components/form/list.html
@@ -36,8 +36,8 @@
-
-
+
+
diff --git a/docs/components/form/matrix.html b/docs/components/form/matrix.html
index c1212ac3..17b23583 100644
--- a/docs/components/form/matrix.html
+++ b/docs/components/form/matrix.html
@@ -36,8 +36,8 @@
-
-
+
+
diff --git a/docs/components/form/nestedselect.html b/docs/components/form/nestedselect.html
index c1212ac3..17b23583 100644
--- a/docs/components/form/nestedselect.html
+++ b/docs/components/form/nestedselect.html
@@ -36,8 +36,8 @@
-
-
+
+
diff --git a/docs/components/form/number.html b/docs/components/form/number.html
index c1212ac3..17b23583 100644
--- a/docs/components/form/number.html
+++ b/docs/components/form/number.html
@@ -36,8 +36,8 @@
-
-
+
+
diff --git a/docs/components/form/options.html b/docs/components/form/options.html
index c1212ac3..17b23583 100644
--- a/docs/components/form/options.html
+++ b/docs/components/form/options.html
@@ -36,8 +36,8 @@
-
-
+
+
diff --git a/docs/components/form/panel.html b/docs/components/form/panel.html
index c1212ac3..17b23583 100644
--- a/docs/components/form/panel.html
+++ b/docs/components/form/panel.html
@@ -36,8 +36,8 @@
-
-
+
+
diff --git a/docs/components/form/picker.html b/docs/components/form/picker.html
index c1212ac3..17b23583 100644
--- a/docs/components/form/picker.html
+++ b/docs/components/form/picker.html
@@ -36,8 +36,8 @@
-
-
+
+
diff --git a/docs/components/form/radios.html b/docs/components/form/radios.html
index c1212ac3..17b23583 100644
--- a/docs/components/form/radios.html
+++ b/docs/components/form/radios.html
@@ -36,8 +36,8 @@
-
-
+
+
diff --git a/docs/components/form/range.html b/docs/components/form/range.html
index c1212ac3..17b23583 100644
--- a/docs/components/form/range.html
+++ b/docs/components/form/range.html
@@ -36,8 +36,8 @@
-
-
+
+
diff --git a/docs/components/form/rating.html b/docs/components/form/rating.html
index c1212ac3..17b23583 100644
--- a/docs/components/form/rating.html
+++ b/docs/components/form/rating.html
@@ -36,8 +36,8 @@
-
-
+
+
diff --git a/docs/components/form/repeat.html b/docs/components/form/repeat.html
index c1212ac3..17b23583 100644
--- a/docs/components/form/repeat.html
+++ b/docs/components/form/repeat.html
@@ -36,8 +36,8 @@
-
-
+
+
diff --git a/docs/components/form/rich-text.html b/docs/components/form/rich-text.html
index c1212ac3..17b23583 100644
--- a/docs/components/form/rich-text.html
+++ b/docs/components/form/rich-text.html
@@ -36,8 +36,8 @@
-
-
+
+
diff --git a/docs/components/form/select.html b/docs/components/form/select.html
index c1212ac3..17b23583 100644
--- a/docs/components/form/select.html
+++ b/docs/components/form/select.html
@@ -36,8 +36,8 @@
-
-
+
+
diff --git a/docs/components/form/service.html b/docs/components/form/service.html
index c1212ac3..17b23583 100644
--- a/docs/components/form/service.html
+++ b/docs/components/form/service.html
@@ -36,8 +36,8 @@
-
-
+
+
diff --git a/docs/components/form/static.html b/docs/components/form/static.html
index c1212ac3..17b23583 100644
--- a/docs/components/form/static.html
+++ b/docs/components/form/static.html
@@ -36,8 +36,8 @@
-
-
+
+
diff --git a/docs/components/form/subform.html b/docs/components/form/subform.html
index c1212ac3..17b23583 100644
--- a/docs/components/form/subform.html
+++ b/docs/components/form/subform.html
@@ -36,8 +36,8 @@
-
-
+
+
diff --git a/docs/components/form/switch.html b/docs/components/form/switch.html
index c1212ac3..17b23583 100644
--- a/docs/components/form/switch.html
+++ b/docs/components/form/switch.html
@@ -36,8 +36,8 @@
-
-
+
+
diff --git a/docs/components/form/table.html b/docs/components/form/table.html
index c1212ac3..17b23583 100644
--- a/docs/components/form/table.html
+++ b/docs/components/form/table.html
@@ -36,8 +36,8 @@
-
-
+
+
diff --git a/docs/components/form/tabs.html b/docs/components/form/tabs.html
index c1212ac3..17b23583 100644
--- a/docs/components/form/tabs.html
+++ b/docs/components/form/tabs.html
@@ -36,8 +36,8 @@
-
-
+
+
diff --git a/docs/components/form/tag.html b/docs/components/form/tag.html
index c1212ac3..17b23583 100644
--- a/docs/components/form/tag.html
+++ b/docs/components/form/tag.html
@@ -36,8 +36,8 @@
-
-
+
+
diff --git a/docs/components/form/text.html b/docs/components/form/text.html
index c1212ac3..17b23583 100644
--- a/docs/components/form/text.html
+++ b/docs/components/form/text.html
@@ -36,8 +36,8 @@
-
-
+
+
diff --git a/docs/components/form/textarea.html b/docs/components/form/textarea.html
index c1212ac3..17b23583 100644
--- a/docs/components/form/textarea.html
+++ b/docs/components/form/textarea.html
@@ -36,8 +36,8 @@
-
-
+
+
diff --git a/docs/components/form/time.html b/docs/components/form/time.html
index c1212ac3..17b23583 100644
--- a/docs/components/form/time.html
+++ b/docs/components/form/time.html
@@ -36,8 +36,8 @@
-
-
+
+
diff --git a/docs/components/form/tree.html b/docs/components/form/tree.html
index c1212ac3..17b23583 100644
--- a/docs/components/form/tree.html
+++ b/docs/components/form/tree.html
@@ -36,8 +36,8 @@
-
-
+
+
diff --git a/docs/components/form/treeselect.html b/docs/components/form/treeselect.html
index c1212ac3..17b23583 100644
--- a/docs/components/form/treeselect.html
+++ b/docs/components/form/treeselect.html
@@ -36,8 +36,8 @@
-
-
+
+
diff --git a/docs/components/grid.html b/docs/components/grid.html
index c1212ac3..17b23583 100644
--- a/docs/components/grid.html
+++ b/docs/components/grid.html
@@ -36,8 +36,8 @@
-
-
+
+
diff --git a/docs/components/hbox.html b/docs/components/hbox.html
index c1212ac3..17b23583 100644
--- a/docs/components/hbox.html
+++ b/docs/components/hbox.html
@@ -36,8 +36,8 @@
-
-
+
+
diff --git a/docs/components/html.html b/docs/components/html.html
index c1212ac3..17b23583 100644
--- a/docs/components/html.html
+++ b/docs/components/html.html
@@ -36,8 +36,8 @@
-
-
+
+
diff --git a/docs/components/icon.html b/docs/components/icon.html
index c1212ac3..17b23583 100644
--- a/docs/components/icon.html
+++ b/docs/components/icon.html
@@ -36,8 +36,8 @@
-
-
+
+
diff --git a/docs/components/iframe.html b/docs/components/iframe.html
index c1212ac3..17b23583 100644
--- a/docs/components/iframe.html
+++ b/docs/components/iframe.html
@@ -36,8 +36,8 @@
-
-
+
+
diff --git a/docs/components/image.html b/docs/components/image.html
index c1212ac3..17b23583 100644
--- a/docs/components/image.html
+++ b/docs/components/image.html
@@ -36,8 +36,8 @@
-
-
+
+
diff --git a/docs/components/images.html b/docs/components/images.html
index c1212ac3..17b23583 100644
--- a/docs/components/images.html
+++ b/docs/components/images.html
@@ -36,8 +36,8 @@
-
-
+
+
diff --git a/docs/components/json.html b/docs/components/json.html
index c1212ac3..17b23583 100644
--- a/docs/components/json.html
+++ b/docs/components/json.html
@@ -36,8 +36,8 @@
-
-
+
+
diff --git a/docs/components/link.html b/docs/components/link.html
index c1212ac3..17b23583 100644
--- a/docs/components/link.html
+++ b/docs/components/link.html
@@ -36,8 +36,8 @@
-
-
+
+
diff --git a/docs/components/list.html b/docs/components/list.html
index c1212ac3..17b23583 100644
--- a/docs/components/list.html
+++ b/docs/components/list.html
@@ -36,8 +36,8 @@
-
-
+
+
diff --git a/docs/components/mapping.html b/docs/components/mapping.html
index c1212ac3..17b23583 100644
--- a/docs/components/mapping.html
+++ b/docs/components/mapping.html
@@ -36,8 +36,8 @@
-
-
+
+
diff --git a/docs/components/nav.html b/docs/components/nav.html
index c1212ac3..17b23583 100644
--- a/docs/components/nav.html
+++ b/docs/components/nav.html
@@ -36,8 +36,8 @@
-
-
+
+
diff --git a/docs/components/page.html b/docs/components/page.html
index c1212ac3..17b23583 100644
--- a/docs/components/page.html
+++ b/docs/components/page.html
@@ -36,8 +36,8 @@
-
-
+
+
diff --git a/docs/components/panel.html b/docs/components/panel.html
index c1212ac3..17b23583 100644
--- a/docs/components/panel.html
+++ b/docs/components/panel.html
@@ -36,8 +36,8 @@
-
-
+
+
diff --git a/docs/components/progress.html b/docs/components/progress.html
index c1212ac3..17b23583 100644
--- a/docs/components/progress.html
+++ b/docs/components/progress.html
@@ -36,8 +36,8 @@
-
-
+
+
diff --git a/docs/components/qrcode.html b/docs/components/qrcode.html
index c1212ac3..17b23583 100644
--- a/docs/components/qrcode.html
+++ b/docs/components/qrcode.html
@@ -36,8 +36,8 @@
-
-
+
+
diff --git a/docs/components/remark.html b/docs/components/remark.html
index c1212ac3..17b23583 100644
--- a/docs/components/remark.html
+++ b/docs/components/remark.html
@@ -36,8 +36,8 @@
-
-
+
+
diff --git a/docs/components/service.html b/docs/components/service.html
index c1212ac3..17b23583 100644
--- a/docs/components/service.html
+++ b/docs/components/service.html
@@ -36,8 +36,8 @@
-
-
+
+
diff --git a/docs/components/spinner.html b/docs/components/spinner.html
index c1212ac3..17b23583 100644
--- a/docs/components/spinner.html
+++ b/docs/components/spinner.html
@@ -36,8 +36,8 @@
-
-
+
+
diff --git a/docs/components/status.html b/docs/components/status.html
index c1212ac3..17b23583 100644
--- a/docs/components/status.html
+++ b/docs/components/status.html
@@ -36,8 +36,8 @@
-
-
+
+
diff --git a/docs/components/switch.html b/docs/components/switch.html
index c1212ac3..17b23583 100644
--- a/docs/components/switch.html
+++ b/docs/components/switch.html
@@ -36,8 +36,8 @@
-
-
+
+
diff --git a/docs/components/table.html b/docs/components/table.html
index c1212ac3..17b23583 100644
--- a/docs/components/table.html
+++ b/docs/components/table.html
@@ -36,8 +36,8 @@
-
-
+
+
diff --git a/docs/components/tabs.html b/docs/components/tabs.html
index c1212ac3..17b23583 100644
--- a/docs/components/tabs.html
+++ b/docs/components/tabs.html
@@ -36,8 +36,8 @@
-
-
+
+
diff --git a/docs/components/tasks.html b/docs/components/tasks.html
index c1212ac3..17b23583 100644
--- a/docs/components/tasks.html
+++ b/docs/components/tasks.html
@@ -36,8 +36,8 @@
-
-
+
+
diff --git a/docs/components/tpl.html b/docs/components/tpl.html
index c1212ac3..17b23583 100644
--- a/docs/components/tpl.html
+++ b/docs/components/tpl.html
@@ -36,8 +36,8 @@
-
-
+
+
diff --git a/docs/components/video.html b/docs/components/video.html
index c1212ac3..17b23583 100644
--- a/docs/components/video.html
+++ b/docs/components/video.html
@@ -36,8 +36,8 @@
-
-
+
+
diff --git a/docs/components/video_aa75752.js b/docs/components/video_35ba53a.js
similarity index 84%
rename from docs/components/video_aa75752.js
rename to docs/components/video_35ba53a.js
index ecada883..4e5cf2bc 100644
--- a/docs/components/video_aa75752.js
+++ b/docs/components/video_35ba53a.js
@@ -8,7 +8,7 @@ amis.define('docs/components/video.md', function(require, exports, module, defin
"menuName": "Video",
"icon": null,
"order": 71,
- "html": "基本用法
\n属性表
\n\n\n属性名 | \n类型 | \n默认值 | \n说明 | \n
\n\n\n\ntype | \nstring | \n"video" | \n指定为 video 渲染器 | \n
\n\nclassName | \nstring | \n | \n外层 Dom 的类名 | \n
\n\nsrc | \nstring | \n | \n视频地址 | \n
\n\nisLive | \nboolean | \nfalse | \n是否为直播,视频为直播时需要添加上 | \n
\n\nposter | \nstring | \n | \n视频封面地址 | \n
\n\nmuted | \nboolean | \n | \n是否静音 | \n
\n\nautoPlay | \nboolean | \n | \n是否自动播放 | \n
\n\nrates | \narray | \n | \n倍数,格式为[1.0, 1.5, 2.0] | \n
\n\n
\n",
+ "html": "基本用法
\n属性表
\n\n\n属性名 | \n类型 | \n默认值 | \n说明 | \n
\n\n\n\ntype | \nstring | \n"video" | \n指定为 video 渲染器 | \n
\n\nclassName | \nstring | \n | \n外层 Dom 的类名 | \n
\n\nsrc | \nstring | \n | \n视频地址 | \n
\n\nisLive | \nboolean | \nfalse | \n是否为直播,视频为直播时需要添加上,支持flv 和hls 格式 | \n
\n\nposter | \nstring | \n | \n视频封面地址 | \n
\n\nmuted | \nboolean | \n | \n是否静音 | \n
\n\nautoPlay | \nboolean | \n | \n是否自动播放 | \n
\n\nrates | \narray | \n | \n倍数,格式为[1.0, 1.5, 2.0] | \n
\n\n
\n",
"toc": {
"label": "目录",
"type": "toc",
diff --git a/docs/components/wizard.html b/docs/components/wizard.html
index c1212ac3..17b23583 100644
--- a/docs/components/wizard.html
+++ b/docs/components/wizard.html
@@ -36,8 +36,8 @@
-
-
+
+
diff --git a/docs/components/wrapper.html b/docs/components/wrapper.html
index c1212ac3..17b23583 100644
--- a/docs/components/wrapper.html
+++ b/docs/components/wrapper.html
@@ -36,8 +36,8 @@
-
-
+
+
diff --git a/docs/concepts/action.html b/docs/concepts/action.html
index c1212ac3..17b23583 100644
--- a/docs/concepts/action.html
+++ b/docs/concepts/action.html
@@ -36,8 +36,8 @@
-
-
+
+
diff --git a/docs/concepts/data-mapping.html b/docs/concepts/data-mapping.html
index c1212ac3..17b23583 100644
--- a/docs/concepts/data-mapping.html
+++ b/docs/concepts/data-mapping.html
@@ -36,8 +36,8 @@
-
-
+
+
diff --git a/docs/concepts/datascope-and-datachain.html b/docs/concepts/datascope-and-datachain.html
index c1212ac3..17b23583 100644
--- a/docs/concepts/datascope-and-datachain.html
+++ b/docs/concepts/datascope-and-datachain.html
@@ -36,8 +36,8 @@
-
-
+
+
diff --git a/docs/concepts/expression.html b/docs/concepts/expression.html
index c1212ac3..17b23583 100644
--- a/docs/concepts/expression.html
+++ b/docs/concepts/expression.html
@@ -36,8 +36,8 @@
-
-
+
+
diff --git a/docs/concepts/linkage.html b/docs/concepts/linkage.html
index c1212ac3..17b23583 100644
--- a/docs/concepts/linkage.html
+++ b/docs/concepts/linkage.html
@@ -36,8 +36,8 @@
-
-
+
+
diff --git a/docs/concepts/schema.html b/docs/concepts/schema.html
index c1212ac3..17b23583 100644
--- a/docs/concepts/schema.html
+++ b/docs/concepts/schema.html
@@ -36,8 +36,8 @@
-
-
+
+
diff --git a/docs/concepts/style.html b/docs/concepts/style.html
index c1212ac3..17b23583 100644
--- a/docs/concepts/style.html
+++ b/docs/concepts/style.html
@@ -36,8 +36,8 @@
-
-
+
+
diff --git a/docs/concepts/template.html b/docs/concepts/template.html
index c1212ac3..17b23583 100644
--- a/docs/concepts/template.html
+++ b/docs/concepts/template.html
@@ -36,8 +36,8 @@
-
-
+
+
diff --git a/docs/index.html b/docs/index.html
index c1212ac3..17b23583 100644
--- a/docs/index.html
+++ b/docs/index.html
@@ -36,8 +36,8 @@
-
-
+
+
diff --git a/docs/start/custom.html b/docs/start/custom.html
index c1212ac3..17b23583 100644
--- a/docs/start/custom.html
+++ b/docs/start/custom.html
@@ -36,8 +36,8 @@
-
-
+
+
diff --git a/docs/start/getting-started.html b/docs/start/getting-started.html
index c1212ac3..17b23583 100644
--- a/docs/start/getting-started.html
+++ b/docs/start/getting-started.html
@@ -36,8 +36,8 @@
-
-
+
+
diff --git a/docs/types/api.html b/docs/types/api.html
index c1212ac3..17b23583 100644
--- a/docs/types/api.html
+++ b/docs/types/api.html
@@ -36,8 +36,8 @@
-
-
+
+
diff --git a/docs/types/schemanode.html b/docs/types/schemanode.html
index c1212ac3..17b23583 100644
--- a/docs/types/schemanode.html
+++ b/docs/types/schemanode.html
@@ -36,8 +36,8 @@
-
-
+
+
diff --git a/examples/audio.html b/examples/audio.html
index c1212ac3..17b23583 100644
--- a/examples/audio.html
+++ b/examples/audio.html
@@ -36,8 +36,8 @@
-
-
+
+
diff --git a/examples/carousel.html b/examples/carousel.html
index c1212ac3..17b23583 100644
--- a/examples/carousel.html
+++ b/examples/carousel.html
@@ -36,8 +36,8 @@
-
-
+
+
diff --git a/examples/chart.html b/examples/chart.html
index c1212ac3..17b23583 100644
--- a/examples/chart.html
+++ b/examples/chart.html
@@ -36,8 +36,8 @@
-
-
+
+
diff --git a/examples/crud/aside.html b/examples/crud/aside.html
index c1212ac3..17b23583 100644
--- a/examples/crud/aside.html
+++ b/examples/crud/aside.html
@@ -36,8 +36,8 @@
-
-
+
+
diff --git a/examples/crud/columns.html b/examples/crud/columns.html
index c1212ac3..17b23583 100644
--- a/examples/crud/columns.html
+++ b/examples/crud/columns.html
@@ -36,8 +36,8 @@
-
-
+
+
diff --git a/examples/crud/fixed.html b/examples/crud/fixed.html
index c1212ac3..17b23583 100644
--- a/examples/crud/fixed.html
+++ b/examples/crud/fixed.html
@@ -36,8 +36,8 @@
-
-
+
+
diff --git a/examples/crud/footable.html b/examples/crud/footable.html
index c1212ac3..17b23583 100644
--- a/examples/crud/footable.html
+++ b/examples/crud/footable.html
@@ -36,8 +36,8 @@
-
-
+
+
diff --git a/examples/crud/grid.html b/examples/crud/grid.html
index c1212ac3..17b23583 100644
--- a/examples/crud/grid.html
+++ b/examples/crud/grid.html
@@ -36,8 +36,8 @@
-
-
+
+
diff --git a/examples/crud/header-group.html b/examples/crud/header-group.html
index c1212ac3..17b23583 100644
--- a/examples/crud/header-group.html
+++ b/examples/crud/header-group.html
@@ -36,8 +36,8 @@
-
-
+
+
diff --git a/examples/crud/header-hide.html b/examples/crud/header-hide.html
index c1212ac3..17b23583 100644
--- a/examples/crud/header-hide.html
+++ b/examples/crud/header-hide.html
@@ -36,8 +36,8 @@
-
-
+
+
diff --git a/examples/crud/item-actions.html b/examples/crud/item-actions.html
index c1212ac3..17b23583 100644
--- a/examples/crud/item-actions.html
+++ b/examples/crud/item-actions.html
@@ -36,8 +36,8 @@
-
-
+
+
diff --git a/examples/crud/jump-next.html b/examples/crud/jump-next.html
index c1212ac3..17b23583 100644
--- a/examples/crud/jump-next.html
+++ b/examples/crud/jump-next.html
@@ -36,8 +36,8 @@
-
-
+
+
diff --git a/examples/crud/keyboards.html b/examples/crud/keyboards.html
index c1212ac3..17b23583 100644
--- a/examples/crud/keyboards.html
+++ b/examples/crud/keyboards.html
@@ -36,8 +36,8 @@
-
-
+
+
diff --git a/examples/crud/list.html b/examples/crud/list.html
index c1212ac3..17b23583 100644
--- a/examples/crud/list.html
+++ b/examples/crud/list.html
@@ -36,8 +36,8 @@
-
-
+
+
diff --git a/examples/crud/load-more.html b/examples/crud/load-more.html
index c1212ac3..17b23583 100644
--- a/examples/crud/load-more.html
+++ b/examples/crud/load-more.html
@@ -36,8 +36,8 @@
-
-
+
+
diff --git a/examples/crud/load-once.html b/examples/crud/load-once.html
index c1212ac3..17b23583 100644
--- a/examples/crud/load-once.html
+++ b/examples/crud/load-once.html
@@ -36,8 +36,8 @@
-
-
+
+
diff --git a/examples/crud/merge-cell.html b/examples/crud/merge-cell.html
index c1212ac3..17b23583 100644
--- a/examples/crud/merge-cell.html
+++ b/examples/crud/merge-cell.html
@@ -36,8 +36,8 @@
-
-
+
+
diff --git a/examples/crud/nested.html b/examples/crud/nested.html
index c1212ac3..17b23583 100644
--- a/examples/crud/nested.html
+++ b/examples/crud/nested.html
@@ -36,8 +36,8 @@
-
-
+
+
diff --git a/examples/crud/table.html b/examples/crud/table.html
index c1212ac3..17b23583 100644
--- a/examples/crud/table.html
+++ b/examples/crud/table.html
@@ -36,8 +36,8 @@
-
-
+
+
diff --git a/examples/dialog/drawer.html b/examples/dialog/drawer.html
index c1212ac3..17b23583 100644
--- a/examples/dialog/drawer.html
+++ b/examples/dialog/drawer.html
@@ -36,8 +36,8 @@
-
-
+
+
diff --git a/examples/dialog/simple.html b/examples/dialog/simple.html
index c1212ac3..17b23583 100644
--- a/examples/dialog/simple.html
+++ b/examples/dialog/simple.html
@@ -36,8 +36,8 @@
-
-
+
+
diff --git a/examples/form/combo.html b/examples/form/combo.html
index c1212ac3..17b23583 100644
--- a/examples/form/combo.html
+++ b/examples/form/combo.html
@@ -36,8 +36,8 @@
-
-
+
+
diff --git a/examples/form/custom.html b/examples/form/custom.html
index c1212ac3..17b23583 100644
--- a/examples/form/custom.html
+++ b/examples/form/custom.html
@@ -36,8 +36,8 @@
-
-
+
+
diff --git a/examples/form/definitions.html b/examples/form/definitions.html
index c1212ac3..17b23583 100644
--- a/examples/form/definitions.html
+++ b/examples/form/definitions.html
@@ -36,8 +36,8 @@
-
-
+
+
diff --git a/examples/form/fields-tabs.html b/examples/form/fields-tabs.html
index c1212ac3..17b23583 100644
--- a/examples/form/fields-tabs.html
+++ b/examples/form/fields-tabs.html
@@ -36,8 +36,8 @@
-
-
+
+
diff --git a/examples/form/fieldset.html b/examples/form/fieldset.html
index c1212ac3..17b23583 100644
--- a/examples/form/fieldset.html
+++ b/examples/form/fieldset.html
@@ -36,8 +36,8 @@
-
-
+
+
diff --git a/examples/form/formula.html b/examples/form/formula.html
index c1212ac3..17b23583 100644
--- a/examples/form/formula.html
+++ b/examples/form/formula.html
@@ -36,8 +36,8 @@
-
-
+
+
diff --git a/examples/form/full.html b/examples/form/full.html
index c1212ac3..17b23583 100644
--- a/examples/form/full.html
+++ b/examples/form/full.html
@@ -36,8 +36,8 @@
-
-
+
+
diff --git a/examples/form/hint.html b/examples/form/hint.html
index c1212ac3..17b23583 100644
--- a/examples/form/hint.html
+++ b/examples/form/hint.html
@@ -36,8 +36,8 @@
-
-
+
+
diff --git a/examples/form/ide.html b/examples/form/ide.html
index c1212ac3..17b23583 100644
--- a/examples/form/ide.html
+++ b/examples/form/ide.html
@@ -36,8 +36,8 @@
-
-
+
+
diff --git a/examples/form/mode.html b/examples/form/mode.html
index c1212ac3..17b23583 100644
--- a/examples/form/mode.html
+++ b/examples/form/mode.html
@@ -36,8 +36,8 @@
-
-
+
+
diff --git a/examples/form/picker.html b/examples/form/picker.html
index c1212ac3..17b23583 100644
--- a/examples/form/picker.html
+++ b/examples/form/picker.html
@@ -36,8 +36,8 @@
-
-
+
+
diff --git a/examples/form/reaction.html b/examples/form/reaction.html
index c1212ac3..17b23583 100644
--- a/examples/form/reaction.html
+++ b/examples/form/reaction.html
@@ -36,8 +36,8 @@
-
-
+
+
diff --git a/examples/form/remote.html b/examples/form/remote.html
index c1212ac3..17b23583 100644
--- a/examples/form/remote.html
+++ b/examples/form/remote.html
@@ -36,8 +36,8 @@
-
-
+
+
diff --git a/examples/form/rich-text.html b/examples/form/rich-text.html
index c1212ac3..17b23583 100644
--- a/examples/form/rich-text.html
+++ b/examples/form/rich-text.html
@@ -36,8 +36,8 @@
-
-
+
+
diff --git a/examples/form/static.html b/examples/form/static.html
index c1212ac3..17b23583 100644
--- a/examples/form/static.html
+++ b/examples/form/static.html
@@ -36,8 +36,8 @@
-
-
+
+
diff --git a/examples/form/sub-form.html b/examples/form/sub-form.html
index c1212ac3..17b23583 100644
--- a/examples/form/sub-form.html
+++ b/examples/form/sub-form.html
@@ -36,8 +36,8 @@
-
-
+
+
diff --git a/examples/form/table.html b/examples/form/table.html
index c1212ac3..17b23583 100644
--- a/examples/form/table.html
+++ b/examples/form/table.html
@@ -36,8 +36,8 @@
-
-
+
+
diff --git a/examples/form/tabs.html b/examples/form/tabs.html
index c1212ac3..17b23583 100644
--- a/examples/form/tabs.html
+++ b/examples/form/tabs.html
@@ -36,8 +36,8 @@
-
-
+
+
diff --git a/examples/form/transfer.html b/examples/form/transfer.html
index c1212ac3..17b23583 100644
--- a/examples/form/transfer.html
+++ b/examples/form/transfer.html
@@ -36,8 +36,8 @@
-
-
+
+
diff --git a/examples/form/validation.html b/examples/form/validation.html
index c1212ac3..17b23583 100644
--- a/examples/form/validation.html
+++ b/examples/form/validation.html
@@ -36,8 +36,8 @@
-
-
+
+
diff --git a/examples/horizontal.html b/examples/horizontal.html
index c1212ac3..17b23583 100644
--- a/examples/horizontal.html
+++ b/examples/horizontal.html
@@ -36,8 +36,8 @@
-
-
+
+
diff --git a/examples/iframe.html b/examples/iframe.html
index c1212ac3..17b23583 100644
--- a/examples/iframe.html
+++ b/examples/iframe.html
@@ -36,8 +36,8 @@
-
-
+
+
diff --git a/examples/linkpage/crud.html b/examples/linkpage/crud.html
index c1212ac3..17b23583 100644
--- a/examples/linkpage/crud.html
+++ b/examples/linkpage/crud.html
@@ -36,8 +36,8 @@
-
-
+
+
diff --git a/examples/linkpage/form.html b/examples/linkpage/form.html
index c1212ac3..17b23583 100644
--- a/examples/linkpage/form.html
+++ b/examples/linkpage/form.html
@@ -36,8 +36,8 @@
-
-
+
+
diff --git a/examples/linkpage/form2.html b/examples/linkpage/form2.html
index c1212ac3..17b23583 100644
--- a/examples/linkpage/form2.html
+++ b/examples/linkpage/form2.html
@@ -36,8 +36,8 @@
-
-
+
+
diff --git a/examples/linkpage/options-local.html b/examples/linkpage/options-local.html
index c1212ac3..17b23583 100644
--- a/examples/linkpage/options-local.html
+++ b/examples/linkpage/options-local.html
@@ -36,8 +36,8 @@
-
-
+
+
diff --git a/examples/linkpage/options.html b/examples/linkpage/options.html
index c1212ac3..17b23583 100644
--- a/examples/linkpage/options.html
+++ b/examples/linkpage/options.html
@@ -36,8 +36,8 @@
-
-
+
+
diff --git a/examples/linkpage/page.html b/examples/linkpage/page.html
index c1212ac3..17b23583 100644
--- a/examples/linkpage/page.html
+++ b/examples/linkpage/page.html
@@ -36,8 +36,8 @@
-
-
+
+
diff --git a/examples/pages/error.html b/examples/pages/error.html
index c1212ac3..17b23583 100644
--- a/examples/pages/error.html
+++ b/examples/pages/error.html
@@ -36,8 +36,8 @@
-
-
+
+
diff --git a/examples/pages/form.html b/examples/pages/form.html
index c1212ac3..17b23583 100644
--- a/examples/pages/form.html
+++ b/examples/pages/form.html
@@ -36,8 +36,8 @@
-
-
+
+
diff --git a/examples/pages/simple.html b/examples/pages/simple.html
index c1212ac3..17b23583 100644
--- a/examples/pages/simple.html
+++ b/examples/pages/simple.html
@@ -36,8 +36,8 @@
-
-
+
+
diff --git a/examples/sdk.html b/examples/sdk.html
index c1212ac3..17b23583 100644
--- a/examples/sdk.html
+++ b/examples/sdk.html
@@ -36,8 +36,8 @@
-
-
+
+
diff --git a/examples/services/data.html b/examples/services/data.html
index c1212ac3..17b23583 100644
--- a/examples/services/data.html
+++ b/examples/services/data.html
@@ -36,8 +36,8 @@
-
-
+
+
diff --git a/examples/services/form.html b/examples/services/form.html
index c1212ac3..17b23583 100644
--- a/examples/services/form.html
+++ b/examples/services/form.html
@@ -36,8 +36,8 @@
-
-
+
+
diff --git a/examples/services/schema.html b/examples/services/schema.html
index c1212ac3..17b23583 100644
--- a/examples/services/schema.html
+++ b/examples/services/schema.html
@@ -36,8 +36,8 @@
-
-
+
+
diff --git a/examples/tabs/form.html b/examples/tabs/form.html
index c1212ac3..17b23583 100644
--- a/examples/tabs/form.html
+++ b/examples/tabs/form.html
@@ -36,8 +36,8 @@
-
-
+
+
diff --git a/examples/tabs/normal.html b/examples/tabs/normal.html
index c1212ac3..17b23583 100644
--- a/examples/tabs/normal.html
+++ b/examples/tabs/normal.html
@@ -36,8 +36,8 @@
-
-
+
+
diff --git a/examples/tabs/tab1.html b/examples/tabs/tab1.html
index c1212ac3..17b23583 100644
--- a/examples/tabs/tab1.html
+++ b/examples/tabs/tab1.html
@@ -36,8 +36,8 @@
-
-
+
+
diff --git a/examples/tabs/tab2.html b/examples/tabs/tab2.html
index c1212ac3..17b23583 100644
--- a/examples/tabs/tab2.html
+++ b/examples/tabs/tab2.html
@@ -36,8 +36,8 @@
-
-
+
+
diff --git a/examples/tabs/tab3.html b/examples/tabs/tab3.html
index c1212ac3..17b23583 100644
--- a/examples/tabs/tab3.html
+++ b/examples/tabs/tab3.html
@@ -36,8 +36,8 @@
-
-
+
+
diff --git a/examples/task.html b/examples/task.html
index c1212ac3..17b23583 100644
--- a/examples/task.html
+++ b/examples/task.html
@@ -36,8 +36,8 @@
-
-
+
+
diff --git a/examples/video.html b/examples/video.html
index c1212ac3..17b23583 100644
--- a/examples/video.html
+++ b/examples/video.html
@@ -36,8 +36,8 @@
-
-
+
+
diff --git a/examples/wizard.html b/examples/wizard.html
index c1212ac3..17b23583 100644
--- a/examples/wizard.html
+++ b/examples/wizard.html
@@ -36,8 +36,8 @@
-
-
+
+
diff --git a/index.html b/index.html
index c1212ac3..17b23583 100644
--- a/index.html
+++ b/index.html
@@ -36,8 +36,8 @@
-
-
+
+
diff --git a/pkg/app_f6d7abe.js b/pkg/app_1d747f7.js
similarity index 99%
rename from pkg/app_f6d7abe.js
rename to pkg/app_1d747f7.js
index 737707a1..ff11a6cc 100644
--- a/pkg/app_f6d7abe.js
+++ b/pkg/app_1d747f7.js
@@ -960,7 +960,7 @@ amis.define("bcd7efc",function(e,t){"use strict";Object.defineProperty(t,"__esMo
amis.define("705a434",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=e("node_modules/tslib/tslib"),a=n.__importDefault(e("node_modules/react/index")),o=n.__importDefault(e("node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs")),s=e("6a2dbb7"),i=e("b7bbd16");t.HocCopyable=function(){return function(e){var t=function(t){function o(){return null!==t&&t.apply(this,arguments)||this}return n.__extends(o,t),o.prototype.handleClick=function(e){var t=this.props.env;t.copy&&t.copy(e)},o.prototype.render=function(){var t=this.props,o=t.copyable,r=t.name,l=t.className,c=t.data,p=t.noHoc,d=t.classnames,u=t.translate;if(o&&!p){var f=s.filter(o.content||"${"+r+" | raw }",c);if(f)return a.default.createElement(e,n.__assign({},this.props,{className:d("Field--copyable",l)}),a.default.createElement(e,n.__assign({},this.props,{wrapperComponent:"",noHoc:!0})),a.default.createElement("a",{key:"edit-btn","data-tooltip":u("点击复制"),className:d("Field-copyBtn"),onClick:this.handleClick.bind(this,f)},a.default.createElement(i.Icon,{icon:"copy",className:"icon"})))}return a.default.createElement(e,n.__assign({},this.props))},o.ComposedComponent=e,o}(a.default.PureComponent);return o.default(t,e),t}},t.default=t.HocCopyable});
;/*!src/renderers/Table.tsx*/
amis.define("f6086a9",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=e("node_modules/tslib/tslib"),n=a.__importDefault(e("node_modules/react/index")),r=e("node_modules/react-dom/index"),l=e("0f9ebdf"),o=a.__importDefault(e("node_modules/lodash/forEach")),i=e("6a2dbb7"),s=a.__importDefault(e("node_modules/classnames/index")),d=a.__importDefault(e("bb5331d")),c=a.__importDefault(e("0a43d97")),u=a.__importDefault(e("a67acca")),p=e("4fbfbc8"),f=e("node_modules/mobx-react/dist/mobx-react"),h=e("9a80175"),m=e("f2e345e"),g=e("1caead1"),b=a.__importDefault(e("node_modules/lodash/debounce")),v=a.__importDefault(e("node_modules/lodash/xor")),y=a.__importDefault(e("b497f17")),x=a.__importDefault(e("2b3dcdf")),C=a.__importDefault(e("705a434")),_=a.__importDefault(e("node_modules/sortablejs/Sortable")),T=e("67d35e6"),N=a.__importDefault(e("node_modules/lodash/find")),E=a.__importDefault(e("997df41")),k=a.__importDefault(e("bcd7efc")),w=e("b7bbd16"),D=function(e){function t(t){var a=e.call(this,t)||this;return a.lastScrollLeft=-1,a.totalWidth=0,a.totalHeight=0,a.outterWidth=0,a.outterHeight=0,a.widths={},a.heights={},a.renderedToolbars=[],a.subForms={},a.handleOutterScroll=a.handleOutterScroll.bind(a),a.affixDetect=a.affixDetect.bind(a),a.updateTableInfoLazy=b.default(a.updateTableInfo.bind(a),250,{trailing:!0,leading:!0}),a.tableRef=a.tableRef.bind(a),a.affixedTableRef=a.affixedTableRef.bind(a),a.handleAction=a.handleAction.bind(a),a.handleCheck=a.handleCheck.bind(a),a.handleCheckAll=a.handleCheckAll.bind(a),a.handleQuickChange=a.handleQuickChange.bind(a),a.handleSave=a.handleSave.bind(a),a.handleSaveOrder=a.handleSaveOrder.bind(a),a.reset=a.reset.bind(a),a.dragTipRef=a.dragTipRef.bind(a),a.getPopOverContainer=a.getPopOverContainer.bind(a),a.renderCell=a.renderCell.bind(a),a.renderToolbar=a.renderToolbar.bind(a),a.handleMouseMove=a.handleMouseMove.bind(a),a.handleMouseLeave=a.handleMouseLeave.bind(a),a.subFormRef=a.subFormRef.bind(a),a}a.__extends(t,e),t.syncRows=function(e,t,a){var n=t.source,r=t.value||t.items,l=[],o=!0;if(Array.isArray(r))l=r;else if("string"==typeof n){var i=m.resolveVariable(n,t.data),s=a?m.resolveVariable(n,a.data):null;s&&s===i?o=!1:Array.isArray(i)&&(l=i)}o&&e.initRows(l,t.getEntryId),"undefined"!=typeof t.selected&&e.updateSelected(t.selected,t.valueField)},t.prototype.componentWillMount=function(){var e=this.props,a=e.store,n=e.columns,r=e.selectable,l=e.columnsTogglable,o=e.draggable,i=e.orderBy,s=e.orderDir,d=e.multiple,c=e.footable,u=e.primaryField,p=e.itemCheckableOn,f=e.itemDraggableOn,h=e.hideCheckToggler,m=e.combineNum,g=e.expandConfig;a.update({selectable:r,draggable:o,columns:n,columnsTogglable:l,orderBy:i,orderDir:s,multiple:d,footable:c,expandConfig:g,primaryField:u,itemCheckableOn:p,itemDraggableOn:f,hideCheckToggler:h,combineNum:m}),t.syncRows(a,this.props),this.syncSelected()},t.prototype.componentDidMount=function(){var e=h.getScrollParent(r.findDOMNode(this));e&&e!==document.body||(e=window),this.parentNode=e,this.updateTableInfo();var t=r.findDOMNode(this);t.closest(".modal-body")||(this.affixDetect(),e.addEventListener("scroll",this.affixDetect),window.addEventListener("resize",this.affixDetect))},t.prototype.componentWillReceiveProps=function(e){var a=this.props,n=e.store;h.anyChanged(["selectable","columnsTogglable","draggable","orderBy","orderDir","multiple","footable","primaryField","itemCheckableOn","itemDraggableOn","hideCheckToggler","combineNum","expandConfig"],a,e)&&n.update({selectable:e.selectable,columnsTogglable:e.columnsTogglable,draggable:e.draggable,orderBy:e.orderBy,orderDir:e.orderDir,multiple:e.multiple,primaryField:e.primaryField,footable:e.footable,itemCheckableOn:e.itemCheckableOn,itemDraggableOn:e.itemDraggableOn,hideCheckToggler:e.hideCheckToggler,combineNum:e.combineNum,expandConfig:e.expandConfig}),a.columns!==e.columns&&n.update({columns:e.columns}),h.anyChanged(["source","value","items"],a,e)||!e.value&&!e.items&&e.data!==a.data?(t.syncRows(n,e,a),this.syncSelected()):h.isArrayChildrenModified(a.selected,e.selected)&&(n.updateSelected(e.selected||[],e.valueField),this.syncSelected())},t.prototype.componentDidUpdate=function(){this.updateTableInfoLazy()},t.prototype.componentWillUnmount=function(){var e=this.parentNode;e&&e.removeEventListener("scroll",this.affixDetect),window.removeEventListener("resize",this.affixDetect),this.updateTableInfoLazy.cancel(),this.unSensor&&this.unSensor()},t.prototype.subFormRef=function(e,t,a){var n=this.props.quickEditFormRef;n&&n(e,t,a),this.subForms[t+"-"+a]=e},t.prototype.handleAction=function(e,t,a){var n=this.props.onAction;n(e,t,a)},t.prototype.handleCheck=function(e){e.toggle(),this.syncSelected()},t.prototype.handleCheckAll=function(){var e=this.props.store;e.toggleAll(),this.syncSelected()},t.prototype.handleQuickChange=function(e,t,a,n){var r=this.props,l=r.onSave,o=r.saveImmediately,i=r.primaryField;return e.change(t,n),e.modified&&this.syncSelected(),!a&&!o||n?void 0:a&&a.api?void this.props.onAction(null,{actionType:"ajax",api:a.api},t):void(l&&l(e.data,h.difference(e.data,e.pristine,["id",i]),e.index,void 0,e.pristine))},t.prototype.handleSave=function(){return a.__awaiter(this,void 0,void 0,function(){var e,t,n,r,l,o,i,s,d,c,u=this;return a.__generator(this,function(a){switch(a.label){case 0:return e=this.props,t=e.store,n=e.onSave,r=e.primaryField,n&&t.modifiedRows.length?(l=[],Object.keys(this.subForms).forEach(function(e){return u.subForms[e]&&l.push(u.subForms[e])}),l.length?[4,Promise.all(l.map(function(e){return e.validate()}))]:[3,2]):[2];case 1:if(o=a.sent(),~o.indexOf(!1))return[2];a.label=2;case 2:return i=t.modifiedRows.map(function(e){return e.data}),s=t.modifiedRows.map(function(e){return e.index}),d=t.modifiedRows.map(function(e){return h.difference(e.data,e.pristine,["id",r])}),c=t.rows.filter(function(e){return!e.modified}).map(function(e){return e.data}),n(i,d,s,c,t.modifiedRows.map(function(e){return e.pristine})),[2]}})})},t.prototype.handleSaveOrder=function(){var e=this.props,t=e.store,a=e.onSaveOrder;a&&t.movedRows.length&&a(t.movedRows.map(function(e){return e.data}),t.rows.map(function(e){return e.getDataWithModifiedChilden()}))},t.prototype.syncSelected=function(){var e=this.props,t=e.store,a=e.onSelect;a&&a(t.selectedRows.map(function(e){return e.data}),t.unSelectedRows.map(function(e){return e.data}))},t.prototype.reset=function(){var e=this,t=this.props.store;t.reset();var a=[];Object.keys(this.subForms).forEach(function(t){return e.subForms[t]&&a.push(e.subForms[t])}),a.forEach(function(e){return e.clearErrors()})},t.prototype.bulkUpdate=function(e,t){var n=this.props,r=n.store,l=n.primaryField;if(l&&e.ids){var o=e.ids.split(","),i=r.rows.filter(function(e){return N.default(o,function(t){return t&&t==e.data[l]})}),s=a.__assign(a.__assign({},e),{ids:void 0});i.forEach(function(e){return e.change(s)})}else{var i=r.rows.filter(function(e){return~t.indexOf(e.pristine)});i.forEach(function(t){return t.change(e)})}},t.prototype.getSelected=function(){var e=this.props.store;return e.selectedRows.map(function(e){return e.data})},t.prototype.affixDetect=function(){if(this.props.affixHeader&&this.table){var e=this.props.classPrefix,t=r.findDOMNode(this),a=this.table.getBoundingClientRect(),n=this.props.affixOffsetTop||this.props.env.affixOffsetTop||0,l=a.topn,o=t.querySelector("."+e+"Table-fixedTop");o.style.cssText+="top: "+n+"px;width: "+this.table.parentNode.offsetWidth+"px",l?o.classList.add("in"):o.classList.remove("in")}},t.prototype.updateTableInfo=function(){var e=this;if(this.table){var t=this.table,a=t.parentNode,n=this.props.affixHeader,l=this.props.classPrefix;this.totalWidth=t.scrollWidth,this.totalHeight=t.scrollHeight,this.outterWidth=a.offsetWidth,this.outterHeight=a.offsetHeight;var i=this.widths={},s=this.heights={};s.header||(s.header=t.querySelector("thead").offsetHeight),o.default(t.querySelectorAll("thead>tr:last-child>th"),function(e){i[e.getAttribute("data-index")]=e.offsetWidth}),o.default(t.querySelectorAll("tbody>tr>*:last-child"),function(e,t){return s[t]=e.offsetHeight});var d=r.findDOMNode(this);if(o.default(d.querySelectorAll("."+l+"Table-fixedLeft, ."+l+"Table-fixedRight"),function(t){return t.parentNode===d&&(t.style.cssText+="height:"+e.totalHeight+"px;")}),n){d.querySelector("."+l+"Table-fixedTop>."+l+"Table-wrapper").style.cssText+="width: "+this.outterWidth+"px";var c=d.querySelector("."+l+"Table-wrapper table");c.style.cssText+="width: "+this.totalWidth+"px"}o.default(d.querySelectorAll("."+l+"Table-fixedTop table, ."+l+"Table-fixedLeft table, ."+l+"Table-fixedRight table"),function(t){var a=0;o.default(t.querySelectorAll("thead>tr:last-child>th"),function(t){var n=e.widths[parseInt(t.getAttribute("data-index"),10)],r=getComputedStyle(t),l=(parseInt(r.getPropertyValue("border-left-width"),10)||0)+(parseInt(r.getPropertyValue("border-right-width"),10)||0);t.style.cssText+="width: "+(n-l)+"px",a+=n}),o.default(t.querySelectorAll("tbody>tr"),function(t,a){t.style.cssText+="height: "+e.heights[a]+"px"}),t.style.cssText+="width: "+a+"px;table-layout: fixed;"}),this.lastScrollLeft=-1,this.handleOutterScroll()}},t.prototype.handleOutterScroll=function(){var e=this.table.parentNode,t=e.scrollLeft;if(t!==this.lastScrollLeft){this.lastScrollLeft=t;var a=0===t,n=t+this.outterWidth===this.totalWidth,l=this.props.classPrefix,o=r.findDOMNode(this),i=o.querySelectorAll("."+l+"Table-fixedLeft");if(i&&i.length)for(var s=0,d=i.length;d>s;s++){var c=i[s];a?c.classList.remove("in"):c.classList.add("in")}var u=o.querySelectorAll("."+l+"Table-fixedRight");if(u&&u.length)for(var s=0,d=u.length;d>s;s++){var c=u[s];n?c.classList.remove("in"):c.classList.add("in")}var p=this.affixedTable;p&&(p.style.cssText+="transform: translateX(-"+t+"px)")}},t.prototype.tableRef=function(e){this.table=e,e?this.unSensor=T.resizeSensor(e.parentNode,this.updateTableInfoLazy):(this.unSensor&&this.unSensor(),delete this.unSensor)},t.prototype.dragTipRef=function(e){!this.dragTip&&e?this.initDragging():this.dragTip&&!e&&this.destroyDragging(),this.dragTip=e},t.prototype.affixedTableRef=function(e){this.affixedTable=e},t.prototype.initDragging=function(){var e=this.props.store,t=this.props.classPrefix;this.sortable=new _.default(this.table.querySelector("tbody"),{group:"table",animation:150,handle:"."+t+"Table-dragCell",ghostClass:"is-dragging",onEnd:function(t){if(t.newIndex!==t.oldIndex){var a=t.to;t.oldIndexl;a.insertBefore(this.draggingTr,o&&t.nextSibling||t)}}},t.prototype.handleDrop=function(){var e=this.props.store,t=this.draggingTr,a=t.parentElement,n=Array.prototype.indexOf.call(a.childNodes,t),r=e.getRowById(t.getAttribute("data-id"));this.handleDragEnd(),e.exchange(this.originIndex,n,r)},t.prototype.handleDragEnd=function(){var e=this.draggingTr,t=e.parentElement,a=Array.prototype.indexOf.call(t.childNodes,e);t.insertBefore(e,t.childNodes[a1?n&&n(a.__assign(a.__assign({},e),{list:s,index:o}),t):n&&n(e,t)},t.prototype.renderHeading=function(){var e=this.props,t=e.title,a=e.store,r=e.hideQuickSaveBtn,l=e.data,o=e.classnames,s=e.saveImmediately,d=e.headingClassName,c=e.translate;return t||!s&&a.modified&&!r||a.moved?n.default.createElement("div",{className:o("Table-heading",d),key:"heading"},s||!a.modified||r?a.moved?n.default.createElement("span",null,c("当前有 {{moved}} 条记录修改了顺序, 但并没有提交。请选择:",{moved:a.moved}),n.default.createElement("button",{type:"button",className:o("Button Button--xs Button--success m-l-sm"),onClick:this.handleSaveOrder},n.default.createElement(w.Icon,{icon:"check",className:"icon m-r-xs"}),c("提交")),n.default.createElement("button",{type:"button",className:o("Button Button--xs Button--danger m-l-sm"),onClick:this.reset},n.default.createElement(w.Icon,{icon:"close",className:"icon m-r-xs"}),c("放弃"))):t?i.filter(t,l):"":n.default.createElement("span",null,c("当前有 {{modified}} 条记录修改了内容, 但并没有提交。请选择:",{modified:a.modified}),n.default.createElement("button",{type:"button",className:o("Button Button--xs Button--success m-l-sm"),onClick:this.handleSave},n.default.createElement(w.Icon,{icon:"check",className:"icon m-r-xs"}),c("提交")),n.default.createElement("button",{type:"button",className:o("Button Button--xs Button--danger m-l-sm"),onClick:this.reset},n.default.createElement(w.Icon,{icon:"close",className:"icon m-r-xs"}),c("放弃")))):null},t.prototype.renderHeadCell=function(e,t){var r=this.props,l=r.store,o=r.query,i=r.onQuery,s=r.multiple,d=r.env,u=r.render,p=r.classPrefix,f=r.classnames;if("__checkme"===e.type)return n.default.createElement("th",a.__assign({},t,{className:f(e.pristine.className)}),l.rows.length&&s?n.default.createElement(c.default,{classPrefix:p,partial:!l.allChecked,checked:l.someChecked,onChange:this.handleCheckAll}):" ");if("__dragme"===e.type)return n.default.createElement("th",a.__assign({},t,{className:f(e.pristine.className)}));if("__expandme"===e.type)return n.default.createElement("th",a.__assign({},t,{className:f(e.pristine.className)}),l.footable&&(l.footable.expandAll===!1||l.footable.accordion)||l.expandConfig&&(l.expandConfig.expandAll===!1||l.expandConfig.accordion)?null:n.default.createElement("a",{className:f("Table-expandBtn",l.allExpanded?"is-active":""),onClick:l.toggleExpandAll},n.default.createElement(w.Icon,{icon:"right-arrow-bold",className:"icon"})));var h=null;return e.searchable&&e.name?h=n.default.createElement(I,a.__assign({},this.props,{onQuery:i,name:e.name,searchable:e.searchable,sortable:e.sortable,type:e.type,data:o,orderBy:l.orderBy,orderDir:l.orderDir,popOverContainer:this.getPopOverContainer})):e.sortable&&e.name?h=n.default.createElement("span",{className:f("TableCell-sortBtn"),onClick:function(){e.name===l.orderBy?"desc"===l.orderDir?l.setOrderByInfo("","asc"):l.setOrderByInfo(e.name,"desc"):l.setOrderByInfo(e.name,"asc"),i&&i({orderBy:l.orderBy,orderDir:l.orderDir})}},n.default.createElement("i",{className:f("TableCell-sortBtn--down",l.orderBy===e.name&&"desc"===l.orderDir?"is-active":"")},n.default.createElement(w.Icon,{icon:"sort-desc",className:"icon"})),n.default.createElement("i",{className:f("TableCell-sortBtn--up",l.orderBy===e.name&&"asc"===l.orderDir?"is-active":"")},n.default.createElement(w.Icon,{icon:"sort-asc",className:"icon"})),n.default.createElement("i",{className:f("TableCell-sortBtn--default",l.orderBy===e.name?"":"is-active")},n.default.createElement(w.Icon,{icon:"sort-default",className:"icon"}))):e.filterable&&e.name&&(h=n.default.createElement(A,a.__assign({},this.props,{onQuery:i,name:e.name,type:e.type,data:o,filterable:e.filterable,popOverContainer:this.getPopOverContainer}))),e.pristine.width&&(t.style=t.style||{},t.style.width=e.pristine.width),n.default.createElement("th",a.__assign({},t,{className:f(t?t.className:"",e.pristine.className,{"TableCell--sortable":e.sortable,"TableCell--searchable":e.searchable,"TableCell--filterable":e.filterable,"Table-operationCell":"operation"===e.type})}),n.default.createElement("div",{className:f(p+"TableCell--title")},e.label?u("tpl",e.label):null,e.remark?u("remark",{type:"remark",tooltip:e.remark,container:d&&d.getModalContainer?d.getModalContainer:void 0}):null),h)},t.prototype.renderCell=function(e,t,r,l,o){void 0===o&&(o=!1);var i=this.props,s=i.render,d=i.store,u=i.multiple,p=(i.env,i.classPrefix),f=i.classnames,g=i.checkOnItemClick,b=i.popOverContainer;if(t.name&&0===r.rowSpans[t.name])return null;if("__checkme"===t.type)return n.default.createElement("td",{key:l.key,className:f(t.pristine.className)},r.checkable?n.default.createElement(c.default,{classPrefix:p,type:u?"checkbox":"radio",checked:r.checked,onChange:g?h.noop:this.handleCheck.bind(this,r)}):null);if("__dragme"===t.type)return n.default.createElement("td",{key:l.key,className:f(t.pristine.className)},r.draggable?n.default.createElement(w.Icon,{icon:"drag-bar",className:"icon"}):null);if("__expandme"===t.type)return n.default.createElement("td",{key:l.key,className:f(t.pristine.className)},r.depth>2?Array.from({length:r.depth-2}).map(function(e,t){return n.default.createElement("i",{key:t,className:f("Table-divider-"+(t+1))})}):null,r.expandable?n.default.createElement("a",{className:f("Table-expandBtn",r.expanded?"is-active":""),onClick:r.toggleExpanded},n.default.createElement(w.Icon,{icon:"right-arrow-bold",className:"icon"})):null);var v=null;!o&&t.isPrimary&&d.isNested&&d.draggable&&r.draggable&&(v=n.default.createElement("a",{draggable:!0,onDragStart:this.handleDragStart,className:f("Table-dragBtn")},n.default.createElement(w.Icon,{icon:"drag-bar",className:"icon"})));var y=a.__assign(a.__assign({},l),{btnDisabled:d.dragging,data:r.locals,value:t.name?m.resolveVariable(t.name,r.data):t.value,popOverContainer:b||this.getPopOverContainer,rowSpan:r.rowSpans[t.name],quickEditFormRef:this.subFormRef,prefix:v,onImageEnlarge:this.handleImageEnlarge});return delete y.label,s(e,a.__assign(a.__assign({},t.pristine),{column:t.pristine,type:"cell"}),y)},t.prototype.renderAffixHeader=function(e){var t=this,a=this.props,r=a.store,l=a.affixHeader,o=a.render,i=a.classnames,s=r.filteredColumns.every(function(e){return!e.label});return l?n.default.createElement("div",{className:i("Table-fixedTop",{"is-fakeHide":s})},this.renderHeading(),this.renderHeader(!1),n.default.createElement("div",{className:i("Table-fixedLeft")},r.leftFixedColumns.length?this.renderFixedColumns(r.rows,r.leftFixedColumns,!0,e):null),n.default.createElement("div",{className:i("Table-fixedRight")},r.rightFixedColumns.length?this.renderFixedColumns(r.rows,r.rightFixedColumns,!0,e):null),n.default.createElement("div",{className:i("Table-wrapper")},n.default.createElement("table",{ref:this.affixedTableRef,className:e},n.default.createElement("thead",null,r.columnGroup.length?n.default.createElement("tr",null,r.columnGroup.map(function(e,t){return n.default.createElement("th",{key:t,"data-index":e.index,colSpan:e.colSpan},e.label?o("tpl",e.label):null)})):null,n.default.createElement("tr",null,r.filteredColumns.map(function(e){return t.renderHeadCell(e,{key:e.index,"data-index":e.index})})))))):null},t.prototype.renderFixedColumns=function(e,t,a,r){var l=this;void 0===a&&(a=!1),void 0===r&&(r="");var o=this.props,i=(o.rowClassName,o.rowClassNameExpr,o.placeholder),s=o.store,d=(o.onAction,o.buildItemProps,o.classnames),c=(o.classPrefix,o.checkOnItemClick,o.render),u=o.data,p=s.filteredColumns.every(function(e){return!e.label});return n.default.createElement("table",{className:d("Table-table",s.combineNum>0?"Table-table--withCombine":"",r)},n.default.createElement("thead",null,s.columnGroup.length?n.default.createElement("tr",null,s.columnGroup.map(function(e,a){var r=t.filter(function(t){return~e.has.indexOf(t)});return r.length?n.default.createElement("th",{key:a,"data-index":e.index,colSpan:r.length}," "):null})):null,n.default.createElement("tr",{className:p?"fake-hide":""},t.map(function(e){return l.renderHeadCell(e,{key:e.index,"data-index":e.index})}))),a?null:n.default.createElement("tbody",null,e.length?this.renderRows(e,t,{regionPrefix:"fixed/",renderCell:function(e,t,a,n){return l.renderCell(e,t,a,n,!0)}}):n.default.createElement("tr",{className:d("Table-placeholder")},n.default.createElement("td",{colSpan:t.length},c("placeholder",i,{data:u})))))},t.prototype.renderToolbar=function(e){var t=e.type||e;return"columns-toggler"===t?(this.renderedToolbars.push(t),this.renderColumnsToggler(e)):"drag-toggler"===t?(this.renderedToolbars.push(t),this.renderDragToggler()):void 0},t.prototype.renderColumnsToggler=function(e){var t=this.props,r=(t.className,t.store),l=t.classPrefix,o=t.classnames,i=a.__rest(t,["className","store","classPrefix","classnames"]),s=this.props.render;return r.columnsTogglable?n.default.createElement(d.default,a.__assign({},i,{align:e?e.align:"left",classnames:o,classPrefix:l,key:"columns-toggable",size:"sm",label:n.default.createElement(w.Icon,{icon:"columns",className:"icon m-r-none"})}),r.toggableColumns.map(function(e){return n.default.createElement("li",{className:o("DropDown-menuItem"),key:e.index,onClick:e.toggleToggle},n.default.createElement(c.default,{size:"sm",classPrefix:l,checked:e.toggled},e.label?s("tpl",e.label):null))})):null},t.prototype.renderDragToggler=function(){var e=this.props,t=e.store,a=e.env,r=e.draggable,l=e.classPrefix,o=e.translate;return!r||t.isNested?null:n.default.createElement(u.default,{disabled:!!t.modified,classPrefix:l,key:"dragging-toggle",tooltip:o("点击开始排序"),tooltipContainer:a&&a.getModalContainer?a.getModalContainer:void 0,size:"sm",active:t.dragging,onClick:function(e){e.preventDefault(),t.toggleDragging(),t.dragging&&t.clear()},iconOnly:!0},n.default.createElement(w.Icon,{icon:"exchange",className:"icon"}))},t.prototype.renderActions=function(e){var t=this,r=this.props,l=r.actions,o=r.render,i=r.store,s=r.classnames,d=r.data;return l=Array.isArray(l)?l.concat():[],i.toggable&&"header"===e&&!~this.renderedToolbars.indexOf("columns-toggler")&&l.push({type:"button",children:this.renderColumnsToggler()}),i.draggable&&!i.isNested&&"header"===e&&i.rows.length>1&&!~this.renderedToolbars.indexOf("drag-toggler")&&l.push({type:"button",children:this.renderDragToggler()}),Array.isArray(l)&&l.length?n.default.createElement("div",{className:s("Table-actions")},l.map(function(e,n){return o("action/"+n,a.__assign({type:"button"},e),{onAction:t.handleAction,key:n,btnDisabled:i.dragging,data:i.getData(d)})})):null},t.prototype.renderHeader=function(e){var t=this.props,r=t.header,l=t.headerClassName,o=t.toolbarClassName,i=t.headerToolbarClassName,s=t.headerToolbarRender,d=t.render,c=t.showHeader,u=t.store,p=t.classnames,f=t.data,h=t.translate;if(c===!1)return null;var m={},g=s?s(a.__assign(a.__assign(a.__assign({},this.props),{selectedItems:u.selectedRows.map(function(e){return e.data}),items:u.rows.map(function(e){return e.data}),unSelectedItems:u.unSelectedRows.map(function(e){return e.data})}),m),this.renderToolbar):null,b=this.renderActions("header"),v=b||g||u.dragging?n.default.createElement("div",{className:p("Table-toolbar Table-headToolbar",o,i),key:"header-toolbar"},b,g,u.dragging?n.default.createElement("div",{className:p("Table-dragTip"),ref:this.dragTipRef},h("请拖动左边的按钮进行排序")):null):null,y=!r||Array.isArray(r)&&!r.length?null:n.default.createElement("div",{className:p("Table-header",l),key:"header"},d("header",r,a.__assign(a.__assign({},e===!1?m:null),{data:u.getData(f)})));return y&&v?[y,v]:y||v||null},t.prototype.renderFooter=function(){var e=this.props,t=e.footer,r=e.toolbarClassName,l=e.footerToolbarClassName,o=e.footerClassName,i=e.footerToolbarRender,s=e.render,d=e.showFooter,c=e.store,u=e.data,p=e.classnames;if(d===!1)return null;var f=i?i(a.__assign(a.__assign({},this.props),{selectedItems:c.selectedRows.map(function(e){return e.data}),items:c.rows.map(function(e){return e.data})}),this.renderToolbar):null,h=this.renderActions("footer"),m=h||f?n.default.createElement("div",{className:p("Table-toolbar Table-footToolbar",r,l),key:"footer-toolbar"},h,f):null,g=!t||Array.isArray(t)&&!t.length?null:n.default.createElement("div",{className:p("Table-footer",o),key:"footer"},s("footer",t,{data:c.getData(u)}));return g&&m?[m,g]:g||m||null},t.prototype.renderRows=function(e,t,r){var l=this;void 0===t&&(t=this.props.store.filteredColumns),void 0===r&&(r={});var o=this.props,s=o.store,d=o.rowClassName,c=o.rowClassNameExpr,u=o.onAction,p=o.buildItemProps,f=o.checkOnItemClick,h=o.classPrefix,m=o.classnames,g=o.render;return e.map(function(o,b){var v=p?p(o,b):null,y=[n.default.createElement(O,a.__assign({},v,{classPrefix:h,checkOnItemClick:f,key:o.id,itemIndex:b,item:o,itemClassName:m(c?i.filter(c,o.data):d,{"is-last":o.depth>1&&b===e.length-1,"is-expanded":o.expanded,"is-expandable":o.expandable}),columns:t,renderCell:l.renderCell,render:g,onAction:u,onCheck:l.handleCheck,onQuickChange:s.dragging?null:l.handleQuickChange},r))];return o.expanded&&!s.dragging&&(s.footable&&s.footableColumns.length?1===o.depth&&y.push(n.default.createElement(O,a.__assign({},v,{classPrefix:h,checkOnItemClick:f,key:"foot-"+o.id,itemIndex:b,item:o,itemClassName:m(c?i.filter(c,o.data):d),columns:s.footableColumns,renderCell:l.renderCell,render:g,onAction:u,onCheck:l.handleCheck,footableMode:!0,footableColSpan:s.filteredColumns.length,onQuickChange:s.dragging?null:l.handleQuickChange},r))):Array.isArray(o.data.children)&&y.push.apply(y,l.renderRows(o.children,t,r))),y})},t.prototype.renderItemActions=function(){var e=this.props,t=e.itemActions,r=e.render,l=e.store,o=e.classnames,i=Array.isArray(t)?t.filter(function(e){return!e.hiddenOnHover}):[],s=l.hoverIndex;if(!~s||!i.length)return null;var d=this.heights,c=40,u=0;if(d&&d[s]){c=d[s],u+=d.header;for(var p=s-1;p>=0;p--)u+=d[p]}return n.default.createElement("div",{className:o("Table-itemActions-wrap"),style:{top:u,height:c}},n.default.createElement("div",{className:o("Table-itemActions")},i.map(function(e,t){return r("itemAction/"+t,a.__assign(a.__assign({},e),{isMenuItem:!0}),{key:t,item:l.rows[s],data:l.rows[s].locals,rowIndex:s})})))},t.prototype.renderTableContent=function(){var e=this,t=this.props,a=t.store,r=t.placeholder,l=t.classnames,o=t.data,i=t.render,s=l("Table-table",a.combineNum>0?"Table-table--withCombine":"",this.props.tableClassName),d=a.filteredColumns.every(function(e){return!e.label});return n.default.createElement("div",{onMouseMove:this.handleMouseMove,className:l("Table-content"),onScroll:this.handleOutterScroll},n.default.createElement("table",{ref:this.tableRef,className:s},n.default.createElement("thead",null,a.columnGroup.length?n.default.createElement("tr",null,a.columnGroup.map(function(e,t){return n.default.createElement("th",{key:t,"data-index":e.index,colSpan:e.colSpan},e.label?i("tpl",e.label):null)})):null,n.default.createElement("tr",{className:d?"fake-hide":""},a.filteredColumns.map(function(t){return e.renderHeadCell(t,{"data-index":t.index,key:t.index})}))),n.default.createElement("tbody",null,a.rows.length?this.renderRows(a.rows,a.filteredColumns):n.default.createElement("tr",{className:l("Table-placeholder")},n.default.createElement("td",{colSpan:a.filteredColumns.length},i("placeholder",r,{data:o}))))))},t.prototype.render=function(){{var e=this.props,t=e.className,a=e.store,r=(e.placeholder,e.classnames),l=e.affixColumns;e.data,e.render}this.renderedToolbars=[];var o=this.renderHeading(),i=this.renderHeader(),s=this.renderFooter(),d=r("Table-table",a.combineNum>0?"Table-table--withCombine":"",this.props.tableClassName);return n.default.createElement("div",{className:r("Table",t,{"Table--unsaved":!!a.modified||!!a.moved})},o,i,n.default.createElement("div",{className:r("Table-contentWrap"),onMouseLeave:this.handleMouseLeave},n.default.createElement("div",{className:r("Table-fixedLeft")},l!==!1&&a.leftFixedColumns.length?this.renderFixedColumns(a.rows,a.leftFixedColumns,!1,d):null),n.default.createElement("div",{className:r("Table-fixedRight")},l!==!1&&a.rightFixedColumns.length?this.renderFixedColumns(a.rows,a.rightFixedColumns,!1,d):null),this.renderTableContent(),~a.hoverIndex?this.renderItemActions():null),this.renderAffixHeader(d),s)};var l;return t.propsList=["header","headerToolbarRender","footer","footerToolbarRender","footable","expandConfig","placeholder","tableClassName","headingClassName","source","selectable","columnsTogglable","affixHeader","affixColumns","headerClassName","footerClassName","selected","multiple","primaryField","hideQuickSaveBtn","itemCheckableOn","itemDraggableOn","checkOnItemClick","hideCheckToggler","itemActions","combineNum","items","columns","valueField","saveImmediately","rowClassName","rowClassNameExpr","popOverContainer","headerToolbarClassName","toolbarClassName","footerToolbarClassName"],t.defaultProps={className:"",placeholder:"暂无数据",tableClassName:"",source:"$items",selectable:!1,columnsTogglable:"auto",affixHeader:!0,headerClassName:"",footerClassName:"",toolbarClassName:"",headerToolbarClassName:"",footerToolbarClassName:"",primaryField:"id",itemCheckableOn:"",itemDraggableOn:"",hideCheckToggler:!1},a.__decorate([h.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",["function"==typeof(l="undefined"!=typeof n.default&&n.default.DragEvent)?l:Object]),a.__metadata("design:returntype",void 0)],t.prototype,"handleDragStart",null),a.__decorate([h.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[Object]),a.__metadata("design:returntype",void 0)],t.prototype,"handleDragOver",null),a.__decorate([h.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[]),a.__metadata("design:returntype",void 0)],t.prototype,"handleDrop",null),a.__decorate([h.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[]),a.__metadata("design:returntype",void 0)],t.prototype,"handleDragEnd",null),a.__decorate([h.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[Object,Object]),a.__metadata("design:returntype",void 0)],t.prototype,"handleImageEnlarge",null),t}(n.default.Component);t.default=D;var O=function(e){function t(t){var a=e.call(this,t)||this;return a.handleAction=a.handleAction.bind(a),a.handleQuickChange=a.handleQuickChange.bind(a),a.handleClick=a.handleClick.bind(a),a
-}return a.__extends(t,e),t.prototype.handleClick=function(e){var t,a=e.target,n=this.props.classPrefix;!e.currentTarget.contains(a)||~["INPUT","TEXTAREA"].indexOf(a.tagName)||(t=a.closest("button, a, ."+n+"Form-item"))&&e.currentTarget.contains(t)||this.props.onCheck(this.props.item)},t.prototype.handleAction=function(e,t,a){var n=this.props,r=n.onAction,l=n.item;r&&r(e,t,a||l.data)},t.prototype.handleQuickChange=function(e,t,a){var n=this.props,r=n.onQuickChange,l=n.item;r&&r(l,e,t,a)},t.prototype.render=function(){var e,t,r=this,l=this.props,o=l.itemClassName,i=l.itemIndex,d=l.item,c=l.columns,u=l.renderCell,p=(l.children,l.footableMode),f=l.footableColSpan,h=l.regionPrefix,m=l.checkOnItemClick,g=l.classPrefix,b=l.render,v=a.__rest(l,["itemClassName","itemIndex","item","columns","renderCell","children","footableMode","footableColSpan","regionPrefix","checkOnItemClick","classPrefix","render"]);return p?n.default.createElement("tr",{"data-id":d.id,"data-index":d.newIndex,onClick:m?this.handleClick:void 0,className:s.default(o,(e={"is-hovered":d.isHover,"is-checked":d.checked,"is-modified":d.modified,"is-moved":d.moved},e[g+"Table-tr--odd"]=i%2===0,e[g+"Table-tr--even"]=i%2===1,e))},n.default.createElement("td",{className:g+"Table-foot",colSpan:f},n.default.createElement("table",{className:g+"Table-footTable"},n.default.createElement("tbody",null,c.map(function(e){return n.default.createElement("tr",{key:e.index},e.label!==!1?n.default.createElement("th",null,b(""+h+i+"/"+e.index+"/tpl",e.label)):null,u(""+h+i+"/"+e.index,e,d,a.__assign(a.__assign({},v),{width:null,rowIndex:i,colIndex:e.rawIndex,key:e.index,onAction:r.handleAction,onQuickChange:r.handleQuickChange})))}))))):n.default.createElement("tr",{onClick:m?this.handleClick:void 0,"data-index":1===d.depth?d.newIndex:void 0,"data-id":d.id,className:s.default(o,(t={"is-hovered":d.isHover,"is-checked":d.checked,"is-modified":d.modified,"is-moved":d.moved},t[g+"Table-tr--odd"]=i%2===0,t[g+"Table-tr--even"]=i%2===1,t),g+"Table-tr--"+d.depth+"th")},c.map(function(e){return u(i+"/"+e.index,e,d,a.__assign(a.__assign({},v),{rowIndex:i,colIndex:e.rawIndex,key:e.index,onAction:r.handleAction,onQuickChange:r.handleQuickChange}))}))},t=a.__decorate([f.observer,a.__metadata("design:paramtypes",[Object])],t)}(n.default.Component),S=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a.__extends(t,e),t=a.__decorate([l.Renderer({test:function(e){return/(^|\/)table$/.test(e)},storeType:p.TableStore.name,name:"table"})],t)}(D);t.TableRenderer=S;var I=function(e){function t(t){var a=e.call(this,t)||this;return a.state={isOpened:!1},a.formItems=[],a.open=a.open.bind(a),a.close=a.close.bind(a),a.close=a.close.bind(a),a.handleSubmit=a.handleSubmit.bind(a),a.handleAction=a.handleAction.bind(a),a}return a.__extends(t,e),t.prototype.buildSchema=function(){var e,t,n=this.props,r=n.searchable,l=n.sortable,o=n.name,i=n.label,s=n.translate;if(r===!0?t={title:"",controls:[{type:"text",name:o,placeholder:i,clearable:!0}]}:r&&(t=r.controls||r.tabs||r.fieldSet?a.__assign({title:""},r):{title:"",className:r.formClassName,controls:[a.__assign({type:r.type||"text",name:r.name||o,placeholder:i},r)]}),t&&t.controls&&l&&t.controls.unshift({type:"hidden",name:"orderBy",value:o},{type:"button-group",name:"orderDir",label:s("排序"),options:[{label:s("正序"),value:"asc"},{label:s("降序"),value:"desc"}]}),t){var d=[];null===(e=t.controls)||void 0===e?void 0:e.forEach(function(e){return e.name&&"orderBy"!==e.name&&"orderDir"!==e.name&&d.push(e.name)}),this.formItems=d,t=a.__assign(a.__assign({},t),{type:"form",wrapperComponent:"div",actions:[{type:"button",label:s("重置"),actionType:"reset"},{type:"button",label:s("取消"),actionType:"cancel"},{label:s("搜索"),type:"submit",primary:!0}]})}return t||"error"},t.prototype.handleClickOutside=function(){this.close()},t.prototype.open=function(){this.setState({isOpened:!0})},t.prototype.close=function(){this.setState({isOpened:!1})},t.prototype.handleAction=function(e,t,a){var n=this.props.onAction;return"cancel"===t.actionType||"close"===t.actionType?void this.close():"reset"===t.actionType?(this.close(),void this.handleReset()):void(n&&n(e,t,a))},t.prototype.handleReset=function(){var e=this.props,t=e.onQuery,n=e.data,r=e.name,l=a.__assign({},n);this.formItems.forEach(function(e){return l[e]=void 0}),l.orderBy===r&&(l.orderBy="",l.orderDir="asc"),t(l)},t.prototype.handleSubmit=function(e){var t=this.props,n=t.onQuery,r=t.name;this.close(),e.orderDir&&(e=a.__assign(a.__assign({},e),{orderBy:r})),n(e)},t.prototype.isActive=function(){var e=this.props,t=e.data,a=e.name;return t.orderBy===a||this.formItems.some(function(e){var a;return null===(a=t)||void 0===a?void 0:a[e]})},t.prototype.render=function(){var e=this,t=this.props,l=t.render,o=t.name,i=t.data,d=t.searchable,c=t.store,u=t.orderBy,p=t.popOverContainer,f=t.classPrefix,h=this.buildSchema(),m=this.isActive();return n.default.createElement("span",{className:s.default(f+"TableCell-searchBtn",m?"is-active":"")},n.default.createElement("span",{onClick:this.open},n.default.createElement(w.Icon,{icon:"search",className:"icon"})),this.state.isOpened?n.default.createElement(E.default,{container:p||function(){return r.findDOMNode(e)},placement:"left-bottom-left-top right-bottom-right-top",target:p?function(){return r.findDOMNode(e).parentNode}:null,show:!0},n.default.createElement(x.default,{classPrefix:f,onHide:this.close,className:s.default(f+"TableCell-searchPopOver",d.className),overlay:!0},l("quick-search-form",h,{data:a.__assign(a.__assign({},i),{orderBy:u,orderDir:u===o?c.orderDir:""}),onSubmit:this.handleSubmit,onAction:this.handleAction}))):null)},t}(n.default.Component);t.HeadCellSearchDropDown=I;var A=function(e){function t(t){var a=e.call(this,t)||this;return a.state={isOpened:!1,filterOptions:[]},a.sourceInvalid=!1,a.open=a.open.bind(a),a.close=a.close.bind(a),a.handleClick=a.handleClick.bind(a),a.handleCheck=a.handleCheck.bind(a),a}return a.__extends(t,e),t.prototype.componentDidMount=function(){var e=this.props.filterable;e.source?this.fetchOptions():e.options.length>0&&this.setState({filterOptions:this.alterOptions(e.options)})},t.prototype.componentWillReceiveProps=function(e){var t=this.props;(t.name!==e.name||t.filterable!==e.filterable||t.data!==e.data)&&(e.filterable.source?this.sourceInvalid=g.isApiOutdated(t.filterable.source,e.filterable.source,t.data,e.data):e.filterable.options&&this.setState({filterOptions:this.alterOptions(e.filterable.options||[])}))},t.prototype.componentDidUpdate=function(){this.sourceInvalid&&this.fetchOptions()},t.prototype.fetchOptions=function(){var e=this,t=this.props,a=t.env,n=t.filterable,r=t.data;if(g.isEffectiveApi(n.source,r)){var l=g.normalizeApi(n.source);l.cache=3e3,a.fetcher(l,r).then(function(t){var a=t.data&&t.data.options||[];e.setState({filterOptions:t&&t.data&&e.alterOptions(a)})})}},t.prototype.alterOptions=function(e){var t=this.props,n=t.data,r=t.filterable,l=t.name,o=n&&n[l]||"";return e=e.map(r.multiple?function(e){return a.__assign(a.__assign({},e),{selected:o.split(",").indexOf(e.value)>-1})}:function(e){return a.__assign(a.__assign({},e),{selected:e.value===o})})},t.prototype.handleClickOutside=function(){this.close()},t.prototype.open=function(){this.setState({isOpened:!0})},t.prototype.close=function(){this.setState({isOpened:!1})},t.prototype.handleClick=function(e){var t,a=this.props,n=a.onQuery,r=a.name;n((t={},t[r]=e,t)),this.close()},t.prototype.handleCheck=function(e){var t,a,n=this.props,r=n.data,l=n.name,o=n.onQuery;a=r[l]&&r[l]===e?"":r[l]&&v.default(r[l].split(","),[e]).join(",")||e,o((t={},t[l]=a,t))},t.prototype.handleReset=function(){var e,t=this.props,a=t.name,n=t.onQuery;n((e={},e[a]=void 0,e)),this.close()},t.prototype.render=function(){var e=this,t=this.state,a=t.isOpened,l=t.filterOptions,o=this.props,i=o.data,s=o.name,d=o.filterable,u=o.popOverContainer,p=o.classPrefix,f=o.classnames,h=o.translate;return n.default.createElement("span",{className:f(p+"TableCell-filterBtn",i[s]?"is-active":"")},n.default.createElement("span",{onClick:this.open},n.default.createElement(w.Icon,{icon:"column-filter",className:"icon"})),a?n.default.createElement(E.default,{container:u||function(){return r.findDOMNode(e)},placement:"left-bottom-left-top right-bottom-right-top",target:u?function(){return r.findDOMNode(e).parentNode}:null,show:!0},n.default.createElement(x.default,{classPrefix:p,onHide:this.close,className:f(p+"TableCell-filterPopOver",d.className),overlay:!0},l&&l.length>0?n.default.createElement("ul",{className:f("DropDown-menu")},l.map(d.multiple?function(t,a){return n.default.createElement("li",{key:a,className:f("DropDown-divider")},n.default.createElement(c.default,{classPrefix:p,onChange:e.handleCheck.bind(e,t.value),checked:t.selected},t.label))}:function(t,a){return n.default.createElement("li",{key:a,className:f("DropDown-divider",{"is-selected":t.selected}),onClick:e.handleClick.bind(e,t.value)},t.label)}),n.default.createElement("li",{key:"DropDown-menu-reset",className:f("DropDown-divider"),onClick:this.handleReset.bind(this)},h("重置"))):null)):null)},t}(n.default.Component);t.HeadCellFilterDropDown=A;var R=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a.__extends(t,e),t.prototype.render=function(){var e=this.props,t=e.className,r=e.render,l=e.style,o=e.wrapperComponent,i=e.column,s=e.value,d=e.data,c=e.children,u=e.width,p=e.innerClassName,f=(e.label,e.tabIndex),h=e.onKeyUp,m=e.rowSpan,g=(e.body,e.tpl,e.remark,e.prefix),b=e.affix,v=e.isHead,y=a.__rest(e,["className","render","style","wrapperComponent","column","value","data","children","width","innerClassName","label","tabIndex","onKeyUp","rowSpan","body","tpl","remark","prefix","affix","isHead"]),x=a.__assign(a.__assign({},i),{className:p,type:i&&i.type||"plain"}),C=c?c:r("field",x,a.__assign(a.__assign({},y),{value:s,data:d}));return u&&(l=a.__assign(a.__assign({},l),{width:l&&l.width||u}),/%$/.test(String(l.width))||(C=n.default.createElement("div",{style:{width:l.width}},g,C,b),g=null,b=null)),o?(v&&(o="th"),n.default.createElement(o,{rowSpan:m>1?m:void 0,style:l,className:t,tabIndex:f,onKeyUp:h},g,C,b)):C},t.defaultProps={wrapperComponent:"td"},t.propsList=["type","label","column","body","tpl","rowSpan","remark"],t}(n.default.Component);t.TableCell=R;var B=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a.__extends(t,e),t.propsList=a.__spreadArrays(["quickEdit","quickEditEnabledOn","popOver","copyable","inline"],R.propsList),t=a.__decorate([l.Renderer({test:/(^|\/)table\/(?:.*\/)?cell$/,name:"table-cell"}),y.default(),k.default(),C.default(),f.observer],t)}(R);t.TableCellRenderer=B;var P=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a.__extends(t,e),t.defaultProps=a.__assign(a.__assign({},R.defaultProps),{wrapperComponent:"div"}),t=a.__decorate([l.Renderer({test:/(^|\/)field$/,name:"field"}),k.default(),C.default()],t)}(R);t.FieldRenderer=P});
+}return a.__extends(t,e),t.prototype.handleClick=function(e){var t,a=e.target,n=this.props.classPrefix;!e.currentTarget.contains(a)||~["INPUT","TEXTAREA"].indexOf(a.tagName)||(t=a.closest("button, a, ."+n+"Form-item"))&&e.currentTarget.contains(t)||this.props.onCheck(this.props.item)},t.prototype.handleAction=function(e,t,a){var n=this.props,r=n.onAction,l=n.item;r&&r(e,t,a||l.data)},t.prototype.handleQuickChange=function(e,t,a){var n=this.props,r=n.onQuickChange,l=n.item;r&&r(l,e,t,a)},t.prototype.render=function(){var e,t,r=this,l=this.props,o=l.itemClassName,i=l.itemIndex,d=l.item,c=l.columns,u=l.renderCell,p=(l.children,l.footableMode),f=l.footableColSpan,h=l.regionPrefix,m=l.checkOnItemClick,g=l.classPrefix,b=l.render,v=a.__rest(l,["itemClassName","itemIndex","item","columns","renderCell","children","footableMode","footableColSpan","regionPrefix","checkOnItemClick","classPrefix","render"]);return p?n.default.createElement("tr",{"data-id":d.id,"data-index":d.newIndex,onClick:m?this.handleClick:void 0,className:s.default(o,(e={"is-hovered":d.isHover,"is-checked":d.checked,"is-modified":d.modified,"is-moved":d.moved},e[g+"Table-tr--odd"]=i%2===0,e[g+"Table-tr--even"]=i%2===1,e))},n.default.createElement("td",{className:g+"Table-foot",colSpan:f},n.default.createElement("table",{className:g+"Table-footTable"},n.default.createElement("tbody",null,c.map(function(e){return n.default.createElement("tr",{key:e.index},e.label!==!1?n.default.createElement("th",null,b(""+h+i+"/"+e.index+"/tpl",e.label)):null,u(""+h+i+"/"+e.index,e,d,a.__assign(a.__assign({},v),{width:null,rowIndex:i,colIndex:e.rawIndex,key:e.index,onAction:r.handleAction,onQuickChange:r.handleQuickChange})))}))))):n.default.createElement("tr",{onClick:m?this.handleClick:void 0,"data-index":1===d.depth?d.newIndex:void 0,"data-id":d.id,className:s.default(o,(t={"is-hovered":d.isHover,"is-checked":d.checked,"is-modified":d.modified,"is-moved":d.moved},t[g+"Table-tr--odd"]=i%2===0,t[g+"Table-tr--even"]=i%2===1,t),g+"Table-tr--"+d.depth+"th")},c.map(function(e){return u(i+"/"+e.index,e,d,a.__assign(a.__assign({},v),{rowIndex:i,colIndex:e.rawIndex,key:e.index,onAction:r.handleAction,onQuickChange:r.handleQuickChange}))}))},t=a.__decorate([f.observer,a.__metadata("design:paramtypes",[Object])],t)}(n.default.Component),S=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a.__extends(t,e),t=a.__decorate([l.Renderer({test:function(e){return/(^|\/)table$/.test(e)},storeType:p.TableStore.name,name:"table"})],t)}(D);t.TableRenderer=S;var I=function(e){function t(t){var a=e.call(this,t)||this;return a.state={isOpened:!1},a.formItems=[],a.open=a.open.bind(a),a.close=a.close.bind(a),a.close=a.close.bind(a),a.handleSubmit=a.handleSubmit.bind(a),a.handleAction=a.handleAction.bind(a),a}return a.__extends(t,e),t.prototype.buildSchema=function(){var e,t,n=this.props,r=n.searchable,l=n.sortable,o=n.name,i=n.label,s=n.translate;if(r===!0?t={title:"",controls:[{type:"text",name:o,placeholder:i,clearable:!0}]}:r&&(t=r.controls||r.tabs||r.fieldSet?a.__assign({title:""},r):{title:"",className:r.formClassName,controls:[a.__assign({type:r.type||"text",name:r.name||o,placeholder:i},r)]}),t&&t.controls&&l&&t.controls.unshift({type:"hidden",name:"orderBy",value:o},{type:"button-group",name:"orderDir",label:s("排序"),options:[{label:s("正序"),value:"asc"},{label:s("降序"),value:"desc"}]}),t){var d=[];null===(e=t.controls)||void 0===e?void 0:e.forEach(function(e){return e.name&&"orderBy"!==e.name&&"orderDir"!==e.name&&d.push(e.name)}),this.formItems=d,t=a.__assign(a.__assign({},t),{type:"form",wrapperComponent:"div",actions:[{type:"button",label:s("重置"),actionType:"reset"},{type:"button",label:s("取消"),actionType:"cancel"},{label:s("搜索"),type:"submit",primary:!0}]})}return t||"error"},t.prototype.handleClickOutside=function(){this.close()},t.prototype.open=function(){this.setState({isOpened:!0})},t.prototype.close=function(){this.setState({isOpened:!1})},t.prototype.handleAction=function(e,t,a){var n=this.props.onAction;return"cancel"===t.actionType||"close"===t.actionType?void this.close():"reset"===t.actionType?(this.close(),void this.handleReset()):void(n&&n(e,t,a))},t.prototype.handleReset=function(){var e=this.props,t=e.onQuery,n=e.data,r=e.name,l=a.__assign({},n);this.formItems.forEach(function(e){return l[e]=void 0}),l.orderBy===r&&(l.orderBy="",l.orderDir="asc"),t(l)},t.prototype.handleSubmit=function(e){var t=this.props,n=t.onQuery,r=t.name;this.close(),e.orderDir&&(e=a.__assign(a.__assign({},e),{orderBy:r})),n(e)},t.prototype.isActive=function(){var e=this.props,t=e.data,a=e.name,n=e.orderBy;return n===a||this.formItems.some(function(e){var a;return null===(a=t)||void 0===a?void 0:a[e]})},t.prototype.render=function(){var e=this,t=this.props,l=t.render,o=t.name,i=t.data,d=t.searchable,c=t.store,u=t.orderBy,p=t.popOverContainer,f=t.classPrefix,h=this.buildSchema(),m=this.isActive();return n.default.createElement("span",{className:s.default(f+"TableCell-searchBtn",m?"is-active":"")},n.default.createElement("span",{onClick:this.open},n.default.createElement(w.Icon,{icon:"search",className:"icon"})),this.state.isOpened?n.default.createElement(E.default,{container:p||function(){return r.findDOMNode(e)},placement:"left-bottom-left-top right-bottom-right-top",target:p?function(){return r.findDOMNode(e).parentNode}:null,show:!0},n.default.createElement(x.default,{classPrefix:f,onHide:this.close,className:s.default(f+"TableCell-searchPopOver",d.className),overlay:!0},l("quick-search-form",h,{data:a.__assign(a.__assign({},i),{orderBy:u,orderDir:u===o?c.orderDir:""}),onSubmit:this.handleSubmit,onAction:this.handleAction}))):null)},t}(n.default.Component);t.HeadCellSearchDropDown=I;var A=function(e){function t(t){var a=e.call(this,t)||this;return a.state={isOpened:!1,filterOptions:[]},a.sourceInvalid=!1,a.open=a.open.bind(a),a.close=a.close.bind(a),a.handleClick=a.handleClick.bind(a),a.handleCheck=a.handleCheck.bind(a),a}return a.__extends(t,e),t.prototype.componentDidMount=function(){var e=this.props.filterable;e.source?this.fetchOptions():e.options.length>0&&this.setState({filterOptions:this.alterOptions(e.options)})},t.prototype.componentWillReceiveProps=function(e){var t=this.props;(t.name!==e.name||t.filterable!==e.filterable||t.data!==e.data)&&(e.filterable.source?this.sourceInvalid=g.isApiOutdated(t.filterable.source,e.filterable.source,t.data,e.data):e.filterable.options&&this.setState({filterOptions:this.alterOptions(e.filterable.options||[])}))},t.prototype.componentDidUpdate=function(){this.sourceInvalid&&this.fetchOptions()},t.prototype.fetchOptions=function(){var e=this,t=this.props,a=t.env,n=t.filterable,r=t.data;if(g.isEffectiveApi(n.source,r)){var l=g.normalizeApi(n.source);l.cache=3e3,a.fetcher(l,r).then(function(t){var a=t.data&&t.data.options||[];e.setState({filterOptions:t&&t.data&&e.alterOptions(a)})})}},t.prototype.alterOptions=function(e){var t=this.props,n=t.data,r=t.filterable,l=t.name,o=n&&n[l]||"";return e=e.map(r.multiple?function(e){return a.__assign(a.__assign({},e),{selected:o.split(",").indexOf(e.value)>-1})}:function(e){return a.__assign(a.__assign({},e),{selected:e.value===o})})},t.prototype.handleClickOutside=function(){this.close()},t.prototype.open=function(){this.setState({isOpened:!0})},t.prototype.close=function(){this.setState({isOpened:!1})},t.prototype.handleClick=function(e){var t,a=this.props,n=a.onQuery,r=a.name;n((t={},t[r]=e,t)),this.close()},t.prototype.handleCheck=function(e){var t,a,n=this.props,r=n.data,l=n.name,o=n.onQuery;a=r[l]&&r[l]===e?"":r[l]&&v.default(r[l].split(","),[e]).join(",")||e,o((t={},t[l]=a,t))},t.prototype.handleReset=function(){var e,t=this.props,a=t.name,n=t.onQuery;n((e={},e[a]=void 0,e)),this.close()},t.prototype.render=function(){var e=this,t=this.state,a=t.isOpened,l=t.filterOptions,o=this.props,i=o.data,s=o.name,d=o.filterable,u=o.popOverContainer,p=o.classPrefix,f=o.classnames,h=o.translate;return n.default.createElement("span",{className:f(p+"TableCell-filterBtn",i[s]?"is-active":"")},n.default.createElement("span",{onClick:this.open},n.default.createElement(w.Icon,{icon:"column-filter",className:"icon"})),a?n.default.createElement(E.default,{container:u||function(){return r.findDOMNode(e)},placement:"left-bottom-left-top right-bottom-right-top",target:u?function(){return r.findDOMNode(e).parentNode}:null,show:!0},n.default.createElement(x.default,{classPrefix:p,onHide:this.close,className:f(p+"TableCell-filterPopOver",d.className),overlay:!0},l&&l.length>0?n.default.createElement("ul",{className:f("DropDown-menu")},l.map(d.multiple?function(t,a){return n.default.createElement("li",{key:a,className:f("DropDown-divider")},n.default.createElement(c.default,{classPrefix:p,onChange:e.handleCheck.bind(e,t.value),checked:t.selected},t.label))}:function(t,a){return n.default.createElement("li",{key:a,className:f("DropDown-divider",{"is-selected":t.selected}),onClick:e.handleClick.bind(e,t.value)},t.label)}),n.default.createElement("li",{key:"DropDown-menu-reset",className:f("DropDown-divider"),onClick:this.handleReset.bind(this)},h("重置"))):null)):null)},t}(n.default.Component);t.HeadCellFilterDropDown=A;var R=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a.__extends(t,e),t.prototype.render=function(){var e=this.props,t=e.className,r=e.render,l=e.style,o=e.wrapperComponent,i=e.column,s=e.value,d=e.data,c=e.children,u=e.width,p=e.innerClassName,f=(e.label,e.tabIndex),h=e.onKeyUp,m=e.rowSpan,g=(e.body,e.tpl,e.remark,e.prefix),b=e.affix,v=e.isHead,y=a.__rest(e,["className","render","style","wrapperComponent","column","value","data","children","width","innerClassName","label","tabIndex","onKeyUp","rowSpan","body","tpl","remark","prefix","affix","isHead"]),x=a.__assign(a.__assign({},i),{className:p,type:i&&i.type||"plain"}),C=c?c:r("field",x,a.__assign(a.__assign({},y),{value:s,data:d}));return u&&(l=a.__assign(a.__assign({},l),{width:l&&l.width||u}),/%$/.test(String(l.width))||(C=n.default.createElement("div",{style:{width:l.width}},g,C,b),g=null,b=null)),o?(v&&(o="th"),n.default.createElement(o,{rowSpan:m>1?m:void 0,style:l,className:t,tabIndex:f,onKeyUp:h},g,C,b)):C},t.defaultProps={wrapperComponent:"td"},t.propsList=["type","label","column","body","tpl","rowSpan","remark"],t}(n.default.Component);t.TableCell=R;var B=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a.__extends(t,e),t.propsList=a.__spreadArrays(["quickEdit","quickEditEnabledOn","popOver","copyable","inline"],R.propsList),t=a.__decorate([l.Renderer({test:/(^|\/)table\/(?:.*\/)?cell$/,name:"table-cell"}),y.default(),k.default(),C.default(),f.observer],t)}(R);t.TableCellRenderer=B;var P=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a.__extends(t,e),t.defaultProps=a.__assign(a.__assign({},R.defaultProps),{wrapperComponent:"div"}),t=a.__decorate([l.Renderer({test:/(^|\/)field$/,name:"field"}),k.default(),C.default()],t)}(R);t.FieldRenderer=P});
;/*!src/renderers/Card.tsx*/
amis.define("8ee3b98",function(e,a){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var t=e("node_modules/tslib/tslib"),l=t.__importDefault(e("node_modules/react/index")),s=e("node_modules/react-dom/index"),r=e("0f9ebdf"),n=e("6a2dbb7"),i=t.__importDefault(e("0a43d97")),d=e("9a80175"),o=e("f2e345e"),c=t.__importDefault(e("b497f17")),m=t.__importDefault(e("bcd7efc")),u=e("f6086a9"),p=t.__importDefault(e("705a434")),h=e("b7bbd16"),C=function(e){function a(a){var t=e.call(this,a)||this;return t.getPopOverContainer=t.getPopOverContainer.bind(t),t.itemRender=t.itemRender.bind(t),t.handleAction=t.handleAction.bind(t),t.handleQuickChange=t.handleQuickChange.bind(t),t.handleClick=t.handleClick.bind(t),t.handleCheck=t.handleCheck.bind(t),t}return t.__extends(a,e),a.prototype.handleClick=function(e){var a,t=e.target,l=this.props.classPrefix;if(!(!e.currentTarget.contains(t)||~["INPUT","TEXTAREA"].indexOf(t.tagName)||(a=t.closest("button, a, ."+l+"Form-item"))&&e.currentTarget.contains(a))){var s=this.props.item;this.props.onCheck&&this.props.onCheck(s)}},a.prototype.handleCheck=function(){var e=this.props.item;this.props.onCheck&&this.props.onCheck(e)},a.prototype.handleAction=function(e,a,t){var l=this.props,s=l.onAction,r=l.item;s&&s(e,a,t||r.data)},a.prototype.handleQuickChange=function(e,a,t){var l=this.props,s=l.onQuickChange,r=l.item;s&&s(r,e,a,t)},a.prototype.getPopOverContainer=function(){return s.findDOMNode(this)},a.prototype.renderToolbar=function(){var e=this.props,a=e.dragging,t=e.selectable,s=e.checkable,r=e.selected,n=(e.onSelect,e.checkOnItemClick),o=e.multiple,c=e.hideCheckToggler,m=e.classnames,u=e.classPrefix;return a?l.default.createElement("div",{className:m("Card-dragBtn")},l.default.createElement(h.Icon,{icon:"drag-bar",className:"icon"})):t&&!c?l.default.createElement("div",{className:m("Card-checkBtn")},l.default.createElement(i.default,{classPrefix:u,type:o?"checkbox":"radio",disabled:!s,checked:r,onChange:n?d.noop:this.handleCheck})):null},a.prototype.renderActions=function(){var e=this,a=this.props,s=a.actions,r=a.render,n=a.dragging,i=a.actionsCount,o=a.data,c=a.classnames;if(Array.isArray(s)){var m=d.padArr(s.filter(function(e){return d.isVisible(e,o)}),i);return m.map(function(a,s){return l.default.createElement("div",{key:s,className:c("Card-actions")},a.map(function(a,l){var s=a.size||"sm";return r("action/"+l,t.__assign(t.__assign({level:"link",type:"button"},a),{size:s}),{isMenuItem:!0,key:l,index:l,disabled:n||d.isDisabled(a,o),className:c("Card-action",a.className||""+(s?"Card-action--"+s:"")),componentClass:"a",onAction:e.handleAction})}))})}return null},a.prototype.renderChild=function(e,a,t){void 0===a&&(a="body"),void 0===t&&(t=0);var l=this.props.render;if("string"==typeof e||"number"==typeof e)return l(a,e,{key:t});var s=e;return"hbox"===s.type||"grid"===s.type?l(a,e,{key:t,itemRender:this.itemRender}):this.renderFeild(a,s,t,this.props)},a.prototype.itemRender=function(e,a,t){return this.renderFeild("column/"+a,e,a,t)},a.prototype.renderFeild=function(e,a,s,r){var n=r.render,i=r.classnames,c=r.itemIndex,m=this.props.data;if(d.isVisible(a,m)){var u=a.$$id?a.$$id+"-field":"";return l.default.createElement("div",{className:i("Card-field"),key:s},a&&a.label?l.default.createElement("label",{className:i("Card-fieldLabel",a.labelClassName)},a.label):null,n(e,t.__assign(t.__assign({},a),{field:a,$$id:u,type:"card-item-field"}),{className:i("Card-fieldValue",a.className),rowIndex:c,colIndex:s,value:a.name?o.resolveVariable(a.name,m):void 0,popOverContainer:this.getPopOverContainer,onAction:this.handleAction,onQuickChange:this.handleQuickChange}))}},a.prototype.renderBody=function(){var e=this,a=this.props.body;return a?Array.isArray(a)?a.map(function(a,t){return e.renderChild(a,"body/"+t,t)}):this.renderChild(a,"body"):null},a.prototype.render=function(){var e=this.props,a=e.className,t=e.data,s=e.header,r=e.render,i=e.bodyClassName,d=e.highlightClassName,o=e.titleClassName,c=e.subTitleClassName,m=e.descClassName,u=e.checkOnItemClick,p=e.avatarClassName,h=e.checkable,C=e.classnames,f=(e.classPrefix,e.imageClassName),b=e.avatarTextClassName,v=null;if(s){var N=s.highlight,g=s.avatar,y=s.avatarText,_=s.title,k=s.subTitle,E=s.subTitlePlaceholder,x=s.desc,T=s.descPlaceholder,A=!!n.evalExpression(N,t),P=n.filter(g,t,"| raw"),I=n.filter(y,t),O=n.filter(_,t),w=n.filter(k,t),R=n.filter(x,t);v=l.default.createElement("div",{className:C("Card-heading",s.className)},P?l.default.createElement("span",{className:C("Card-avtar",s.avatarClassName||p)},l.default.createElement("img",{className:C("Card-img",s.imageClassName||f),src:P})):I?l.default.createElement("span",{className:C("Card-avtarText",s.avatarTextClassName||b)},I):null,l.default.createElement("div",{className:C("Card-meta")},A?l.default.createElement("i",{className:C("Card-highlight",s.highlightClassName||d)}):null,O?l.default.createElement("div",{className:C("Card-title",s.titleClassName||o)},r("title",O)):null,w||E?l.default.createElement("div",{className:C("Card-subTitle",s.subTitleClassName||c)},r("sub-title",w||E,{className:C(w?void 0:"Card-placeholder")})):null,R||T?l.default.createElement("div",{className:C("Card-desc",s.descClassName||m)},r("desc",R||T,{className:R?void 0:"text-muted"})):null))}var $=this.renderBody();return l.default.createElement("div",{onClick:u&&h?this.handleClick:void 0,className:C("Card",a)},this.renderToolbar(),v,$?l.default.createElement("div",{className:C("Card-body",i)},$):null,this.renderActions())},a.defaultProps={className:"",avatarClassName:"",bodyClassName:"",actionsCount:4,titleClassName:"",highlightClassName:"",subTitleClassName:"",descClassName:""},a.propsList=["multiple","avatarClassName","bodyClassName","actionsCount","titleClassName","highlightClassName","subTitleClassName","descClassName","hideCheckToggler"],a}(l.default.Component);a.Card=C;var f=function(e){function a(){return null!==e&&e.apply(this,arguments)||this}return t.__extends(a,e),a=t.__decorate([r.Renderer({test:/(^|\/)card$/,name:"card"})],a)}(C);a.CardRenderer=f;var b=function(e){function a(){return null!==e&&e.apply(this,arguments)||this}return t.__extends(a,e),a.prototype.render=function(){var e=this.props,a=(e.type,e.className),s=e.render,r=e.style,n=e.wrapperComponent,i=(e.labelClassName,e.value),d=e.data,o=e.children,c=e.width,m=e.innerClassName,u=(e.label,e.tabIndex),p=e.onKeyUp,h=e.field,C=t.__rest(e,["type","className","render","style","wrapperComponent","labelClassName","value","data","children","width","innerClassName","label","tabIndex","onKeyUp","field"]),f=t.__assign(t.__assign({},h),{className:m,type:h&&h.type||"plain"}),b=o?o:s("field",f,t.__assign(t.__assign({},C),{value:i,data:d}));return c&&(r=r||{},r.width=r.width||c,b=l.default.createElement("div",{style:{width:/%/.test(String(c))?"":c}},b)),n?l.default.createElement(n,{style:r,className:a,tabIndex:u,onKeyUp:p},b):b},a.defaultProps=t.__assign(t.__assign({},u.TableCell.defaultProps),{wrapperComponent:"div"}),a.propsList=t.__spreadArrays(["quickEdit","quickEditEnabledOn","popOver","copyable","inline"],u.TableCell.propsList),a=t.__decorate([r.Renderer({test:/(^|\/)card-item-field$/,name:"card-item"}),c.default(),m.default(),p.default()],a)}(u.TableCell);a.CardItemFieldRenderer=b});
;/*!src/renderers/Date.tsx*/
diff --git a/pkg/examples/index.html_map_3fe9a64.js b/pkg/examples/index.html_map_2e53741.js
similarity index 99%
rename from pkg/examples/index.html_map_3fe9a64.js
rename to pkg/examples/index.html_map_2e53741.js
index cddc4476..2a946e9a 100644
--- a/pkg/examples/index.html_map_3fe9a64.js
+++ b/pkg/examples/index.html_map_2e53741.js
@@ -5609,7 +5609,7 @@ amis.require.resourceMap({
"type": "js"
},
"docs/components/video.md": {
- "url": "https://bce.bdstatic.com/fex/amis-gh-pages/docs/components/video_aa75752.js",
+ "url": "https://bce.bdstatic.com/fex/amis-gh-pages/docs/components/video_35ba53a.js",
"type": "js"
},
"docs/components/wrapper.md": {
diff --git a/sdk-placeholder.html b/sdk-placeholder.html
index 451c391d..9f566b20 100644
--- a/sdk-placeholder.html
+++ b/sdk-placeholder.html
@@ -7,7 +7,7 @@
-
+