amis 6.12.0-beta.11 → 6.12.0-beta.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm/compat.js +2 -2
- package/esm/index.js +2 -2
- package/esm/minimal.js +2 -2
- package/esm/preset.js +2 -2
- package/esm/renderers/AMIS.js +2 -2
- package/esm/renderers/Action.js +2 -2
- package/esm/renderers/Alert.js +2 -2
- package/esm/renderers/AnchorNav.js +2 -2
- package/esm/renderers/App.js +2 -2
- package/esm/renderers/Audio.js +2 -2
- package/esm/renderers/Avatar.js +2 -2
- package/esm/renderers/BarCode.js +2 -2
- package/esm/renderers/Breadcrumb.js +2 -2
- package/esm/renderers/ButtonGroup.js +2 -2
- package/esm/renderers/CRUD.js +5 -5
- package/esm/renderers/CRUD2.js +2 -2
- package/esm/renderers/Calendar.js +2 -2
- package/esm/renderers/Card.js +2 -2
- package/esm/renderers/Card2.js +2 -2
- package/esm/renderers/Cards.d.ts +2 -2
- package/esm/renderers/Cards.js +16 -11
- package/esm/renderers/Carousel.js +2 -2
- package/esm/renderers/Chart.js +2 -2
- package/esm/renderers/Code.js +2 -2
- package/esm/renderers/Collapse.js +2 -2
- package/esm/renderers/CollapseGroup.js +2 -2
- package/esm/renderers/Color.js +2 -2
- package/esm/renderers/Container.js +2 -2
- package/esm/renderers/Copyable.js +2 -2
- package/esm/renderers/Custom.js +2 -2
- package/esm/renderers/Date.js +2 -2
- package/esm/renderers/DateRange.js +2 -2
- package/esm/renderers/Dialog.d.ts +80 -80
- package/esm/renderers/Dialog.js +2 -2
- package/esm/renderers/Divider.js +2 -2
- package/esm/renderers/Drawer.js +2 -2
- package/esm/renderers/DropDownButton.js +2 -2
- package/esm/renderers/Each.js +2 -2
- package/esm/renderers/Flex.js +2 -2
- package/esm/renderers/Form/ButtonGroupSelect.js +2 -2
- package/esm/renderers/Form/ButtonToolbar.js +2 -2
- package/esm/renderers/Form/ChainedSelect.js +2 -2
- package/esm/renderers/Form/ChartRadios.js +2 -2
- package/esm/renderers/Form/Checkbox.js +2 -2
- package/esm/renderers/Form/Checkboxes.js +2 -2
- package/esm/renderers/Form/Combo.js +2 -2
- package/esm/renderers/Form/ConditionBuilder.js +2 -2
- package/esm/renderers/Form/Control.js +2 -2
- package/esm/renderers/Form/DiffEditor.js +2 -2
- package/esm/renderers/Form/Editor.js +2 -2
- package/esm/renderers/Form/FieldSet.js +2 -2
- package/esm/renderers/Form/Formula.js +2 -2
- package/esm/renderers/Form/Group.js +2 -2
- package/esm/renderers/Form/Hidden.js +2 -2
- package/esm/renderers/Form/IconPicker.js +2 -2
- package/esm/renderers/Form/IconPickerIcons.js +2 -2
- package/esm/renderers/Form/IconSelect.js +2 -2
- package/esm/renderers/Form/IconSelectStore.js +2 -2
- package/esm/renderers/Form/InputArray.js +2 -2
- package/esm/renderers/Form/InputCity.js +2 -2
- package/esm/renderers/Form/InputColor.d.ts +40 -40
- package/esm/renderers/Form/InputColor.js +2 -2
- package/esm/renderers/Form/InputDate.js +2 -2
- package/esm/renderers/Form/InputDateRange.js +2 -2
- package/esm/renderers/Form/InputExcel.js +2 -2
- package/esm/renderers/Form/InputFile.js +2 -2
- package/esm/renderers/Form/InputFormula.js +2 -2
- package/esm/renderers/Form/InputGroup.js +2 -2
- package/esm/renderers/Form/InputImage.js +2 -2
- package/esm/renderers/Form/InputMonthRange.js +2 -2
- package/esm/renderers/Form/InputNumber.js +2 -2
- package/esm/renderers/Form/InputQuarterRange.js +2 -2
- package/esm/renderers/Form/InputRange.js +2 -2
- package/esm/renderers/Form/InputRating.js +2 -2
- package/esm/renderers/Form/InputRepeat.js +2 -2
- package/esm/renderers/Form/InputRichText.js +2 -2
- package/esm/renderers/Form/InputSignature.js +3 -3
- package/esm/renderers/Form/InputSubForm.js +2 -2
- package/esm/renderers/Form/InputTable.js +2 -2
- package/esm/renderers/Form/InputTag.js +2 -2
- package/esm/renderers/Form/InputText.js +2 -2
- package/esm/renderers/Form/InputTree.js +2 -2
- package/esm/renderers/Form/InputVerificationCode.js +2 -2
- package/esm/renderers/Form/InputYearRange.js +2 -2
- package/esm/renderers/Form/JSONSchema.js +2 -2
- package/esm/renderers/Form/JSONSchemaEditor.js +2 -2
- package/esm/renderers/Form/ListSelect.js +2 -2
- package/esm/renderers/Form/LocationPicker.js +2 -2
- package/esm/renderers/Form/MatrixCheckboxes.js +2 -2
- package/esm/renderers/Form/NestedSelect.js +2 -2
- package/esm/renderers/Form/Picker.js +2 -2
- package/esm/renderers/Form/Radio.js +2 -2
- package/esm/renderers/Form/Radios.js +2 -2
- package/esm/renderers/Form/Select.js +2 -2
- package/esm/renderers/Form/Static.js +2 -2
- package/esm/renderers/Form/StaticHoc.js +2 -2
- package/esm/renderers/Form/Switch.js +2 -2
- package/esm/renderers/Form/TabsTransfer.js +2 -2
- package/esm/renderers/Form/TabsTransferPicker.js +2 -2
- package/esm/renderers/Form/Textarea.js +2 -2
- package/esm/renderers/Form/Transfer.js +2 -2
- package/esm/renderers/Form/TransferPicker.js +2 -2
- package/esm/renderers/Form/TreeSelect.js +2 -2
- package/esm/renderers/Form/UUID.js +2 -2
- package/esm/renderers/Form/UserSelect.js +2 -2
- package/esm/renderers/Grid.js +2 -2
- package/esm/renderers/Grid2D.js +2 -2
- package/esm/renderers/GridNav.js +2 -2
- package/esm/renderers/HBox.js +2 -2
- package/esm/renderers/IFrame.js +2 -2
- package/esm/renderers/Icon.js +2 -2
- package/esm/renderers/Image.js +2 -2
- package/esm/renderers/Images.js +2 -2
- package/esm/renderers/Json.js +2 -2
- package/esm/renderers/Link.js +2 -2
- package/esm/renderers/List.d.ts +2 -2
- package/esm/renderers/List.js +3 -3
- package/esm/renderers/Log.js +2 -2
- package/esm/renderers/Mapping.js +2 -2
- package/esm/renderers/Markdown.js +2 -2
- package/esm/renderers/MultilineText.js +2 -2
- package/esm/renderers/Nav.js +2 -2
- package/esm/renderers/Number.js +2 -2
- package/esm/renderers/OfficeViewer.js +2 -2
- package/esm/renderers/Operation.js +2 -2
- package/esm/renderers/Page.js +2 -2
- package/esm/renderers/Pagination.js +2 -2
- package/esm/renderers/PaginationWrapper.js +2 -2
- package/esm/renderers/Panel.js +2 -2
- package/esm/renderers/Password.js +2 -2
- package/esm/renderers/PdfViewer.js +2 -2
- package/esm/renderers/Plain.js +2 -2
- package/esm/renderers/PopOver.js +2 -2
- package/esm/renderers/Portlet.js +2 -2
- package/esm/renderers/Progress.js +2 -2
- package/esm/renderers/Property.js +2 -2
- package/esm/renderers/QRCode.js +2 -2
- package/esm/renderers/QuickEdit.js +2 -2
- package/esm/renderers/Remark.js +2 -2
- package/esm/renderers/SearchBox.js +2 -2
- package/esm/renderers/Service.d.ts +1 -1
- package/esm/renderers/Service.js +4 -4
- package/esm/renderers/Shape.js +2 -2
- package/esm/renderers/Slider.js +2 -2
- package/esm/renderers/SparkLine.js +2 -2
- package/esm/renderers/Spinner.js +2 -2
- package/esm/renderers/Status.js +2 -2
- package/esm/renderers/Steps.js +2 -2
- package/esm/renderers/SwitchContainer.js +2 -2
- package/esm/renderers/Table/AutoFilterForm.js +2 -2
- package/esm/renderers/Table/Cell.js +2 -2
- package/esm/renderers/Table/ColGroup.js +2 -2
- package/esm/renderers/Table/ColumnToggler.js +2 -2
- package/esm/renderers/Table/HeadCellFilterDropdown.js +2 -2
- package/esm/renderers/Table/HeadCellSearchDropdown.js +2 -2
- package/esm/renderers/Table/ItemActionsWrapper.js +2 -2
- package/esm/renderers/Table/TableBody.js +2 -2
- package/esm/renderers/Table/TableCell.js +2 -2
- package/esm/renderers/Table/TableContent.js +2 -2
- package/esm/renderers/Table/TableRow.js +2 -2
- package/esm/renderers/Table/exportExcel.js +2 -2
- package/esm/renderers/Table/index.js +2 -2
- package/esm/renderers/Table2/ColumnToggler.js +2 -2
- package/esm/renderers/Table2/HeadCellSearchDropdown.js +2 -2
- package/esm/renderers/Table2/TableCell.js +2 -2
- package/esm/renderers/Table2/index.d.ts +1 -1
- package/esm/renderers/Table2/index.js +3 -3
- package/esm/renderers/TableView.js +2 -2
- package/esm/renderers/Tabs.js +2 -2
- package/esm/renderers/Tag.js +2 -2
- package/esm/renderers/Tasks.js +2 -2
- package/esm/renderers/Timeline.js +2 -2
- package/esm/renderers/TooltipWrapper.js +2 -2
- package/esm/renderers/Tpl.js +2 -2
- package/esm/renderers/VBox.js +2 -2
- package/esm/renderers/Video.js +2 -2
- package/esm/renderers/WebComponent.js +2 -2
- package/esm/renderers/Wizard.d.ts +2 -2
- package/esm/renderers/Wizard.js +5 -5
- package/esm/renderers/Words.js +2 -2
- package/esm/renderers/Wrapper.js +2 -2
- package/esm/renderers/icons/mk.js +2 -2
- package/esm/schemaExtend.js +2 -2
- package/lib/compat.js +2 -2
- package/lib/index.js +2 -2
- package/lib/minimal.js +2 -2
- package/lib/preset.js +2 -2
- package/lib/renderers/AMIS.js +2 -2
- package/lib/renderers/Action.js +2 -2
- package/lib/renderers/Alert.js +2 -2
- package/lib/renderers/AnchorNav.js +2 -2
- package/lib/renderers/App.js +2 -2
- package/lib/renderers/Audio.js +2 -2
- package/lib/renderers/Avatar.js +2 -2
- package/lib/renderers/BarCode.js +2 -2
- package/lib/renderers/Breadcrumb.js +2 -2
- package/lib/renderers/ButtonGroup.js +2 -2
- package/lib/renderers/CRUD.js +5 -5
- package/lib/renderers/CRUD2.js +2 -2
- package/lib/renderers/Calendar.js +2 -2
- package/lib/renderers/Card.js +2 -2
- package/lib/renderers/Card2.js +2 -2
- package/lib/renderers/Cards.d.ts +2 -2
- package/lib/renderers/Cards.js +16 -9
- package/lib/renderers/Carousel.js +2 -2
- package/lib/renderers/Chart.js +2 -2
- package/lib/renderers/Code.js +2 -2
- package/lib/renderers/Collapse.js +2 -2
- package/lib/renderers/CollapseGroup.js +2 -2
- package/lib/renderers/Color.js +2 -2
- package/lib/renderers/Container.js +2 -2
- package/lib/renderers/Copyable.js +2 -2
- package/lib/renderers/Custom.js +2 -2
- package/lib/renderers/Date.js +2 -2
- package/lib/renderers/DateRange.js +2 -2
- package/lib/renderers/Dialog.d.ts +80 -80
- package/lib/renderers/Dialog.js +2 -2
- package/lib/renderers/Divider.js +2 -2
- package/lib/renderers/Drawer.js +2 -2
- package/lib/renderers/DropDownButton.js +2 -2
- package/lib/renderers/Each.js +2 -2
- package/lib/renderers/Flex.js +2 -2
- package/lib/renderers/Form/ButtonGroupSelect.js +2 -2
- package/lib/renderers/Form/ButtonToolbar.js +2 -2
- package/lib/renderers/Form/ChainedSelect.js +2 -2
- package/lib/renderers/Form/ChartRadios.js +2 -2
- package/lib/renderers/Form/Checkbox.js +2 -2
- package/lib/renderers/Form/Checkboxes.js +2 -2
- package/lib/renderers/Form/Combo.js +2 -2
- package/lib/renderers/Form/ConditionBuilder.js +2 -2
- package/lib/renderers/Form/Control.js +2 -2
- package/lib/renderers/Form/DiffEditor.js +2 -2
- package/lib/renderers/Form/Editor.js +2 -2
- package/lib/renderers/Form/FieldSet.js +2 -2
- package/lib/renderers/Form/Formula.js +2 -2
- package/lib/renderers/Form/Group.js +2 -2
- package/lib/renderers/Form/Hidden.js +2 -2
- package/lib/renderers/Form/IconPicker.js +2 -2
- package/lib/renderers/Form/IconPickerIcons.js +2 -2
- package/lib/renderers/Form/IconSelect.js +2 -2
- package/lib/renderers/Form/IconSelectStore.js +2 -2
- package/lib/renderers/Form/InputArray.js +2 -2
- package/lib/renderers/Form/InputCity.js +2 -2
- package/lib/renderers/Form/InputColor.d.ts +40 -40
- package/lib/renderers/Form/InputColor.js +2 -2
- package/lib/renderers/Form/InputDate.js +2 -2
- package/lib/renderers/Form/InputDateRange.js +2 -2
- package/lib/renderers/Form/InputExcel.js +2 -2
- package/lib/renderers/Form/InputFile.js +2 -2
- package/lib/renderers/Form/InputFormula.js +2 -2
- package/lib/renderers/Form/InputGroup.js +2 -2
- package/lib/renderers/Form/InputImage.js +2 -2
- package/lib/renderers/Form/InputMonthRange.js +2 -2
- package/lib/renderers/Form/InputNumber.js +2 -2
- package/lib/renderers/Form/InputQuarterRange.js +2 -2
- package/lib/renderers/Form/InputRange.js +2 -2
- package/lib/renderers/Form/InputRating.js +2 -2
- package/lib/renderers/Form/InputRepeat.js +2 -2
- package/lib/renderers/Form/InputRichText.js +2 -2
- package/lib/renderers/Form/InputSignature.js +3 -3
- package/lib/renderers/Form/InputSubForm.js +2 -2
- package/lib/renderers/Form/InputTable.js +2 -2
- package/lib/renderers/Form/InputTag.js +2 -2
- package/lib/renderers/Form/InputText.js +2 -2
- package/lib/renderers/Form/InputTree.js +2 -2
- package/lib/renderers/Form/InputVerificationCode.js +2 -2
- package/lib/renderers/Form/InputYearRange.js +2 -2
- package/lib/renderers/Form/JSONSchema.js +2 -2
- package/lib/renderers/Form/JSONSchemaEditor.js +2 -2
- package/lib/renderers/Form/ListSelect.js +2 -2
- package/lib/renderers/Form/LocationPicker.js +2 -2
- package/lib/renderers/Form/MatrixCheckboxes.js +2 -2
- package/lib/renderers/Form/NestedSelect.js +2 -2
- package/lib/renderers/Form/Picker.js +2 -2
- package/lib/renderers/Form/Radio.js +2 -2
- package/lib/renderers/Form/Radios.js +2 -2
- package/lib/renderers/Form/Select.js +2 -2
- package/lib/renderers/Form/Static.js +2 -2
- package/lib/renderers/Form/StaticHoc.js +2 -2
- package/lib/renderers/Form/Switch.js +2 -2
- package/lib/renderers/Form/TabsTransfer.js +2 -2
- package/lib/renderers/Form/TabsTransferPicker.js +2 -2
- package/lib/renderers/Form/Textarea.js +2 -2
- package/lib/renderers/Form/Transfer.js +2 -2
- package/lib/renderers/Form/TransferPicker.js +2 -2
- package/lib/renderers/Form/TreeSelect.js +2 -2
- package/lib/renderers/Form/UUID.js +2 -2
- package/lib/renderers/Form/UserSelect.js +2 -2
- package/lib/renderers/Grid.js +2 -2
- package/lib/renderers/Grid2D.js +2 -2
- package/lib/renderers/GridNav.js +2 -2
- package/lib/renderers/HBox.js +2 -2
- package/lib/renderers/IFrame.js +2 -2
- package/lib/renderers/Icon.js +2 -2
- package/lib/renderers/Image.js +2 -2
- package/lib/renderers/Images.js +2 -2
- package/lib/renderers/Json.js +2 -2
- package/lib/renderers/Link.js +2 -2
- package/lib/renderers/List.d.ts +2 -2
- package/lib/renderers/List.js +3 -3
- package/lib/renderers/Log.js +2 -2
- package/lib/renderers/Mapping.js +2 -2
- package/lib/renderers/Markdown.js +2 -2
- package/lib/renderers/MultilineText.js +2 -2
- package/lib/renderers/Nav.js +2 -2
- package/lib/renderers/Number.js +2 -2
- package/lib/renderers/OfficeViewer.js +2 -2
- package/lib/renderers/Operation.js +2 -2
- package/lib/renderers/Page.js +2 -2
- package/lib/renderers/Pagination.js +2 -2
- package/lib/renderers/PaginationWrapper.js +2 -2
- package/lib/renderers/Panel.js +2 -2
- package/lib/renderers/Password.js +2 -2
- package/lib/renderers/PdfViewer.js +2 -2
- package/lib/renderers/Plain.js +2 -2
- package/lib/renderers/PopOver.js +2 -2
- package/lib/renderers/Portlet.js +2 -2
- package/lib/renderers/Progress.js +2 -2
- package/lib/renderers/Property.js +2 -2
- package/lib/renderers/QRCode.js +2 -2
- package/lib/renderers/QuickEdit.js +2 -2
- package/lib/renderers/Remark.js +2 -2
- package/lib/renderers/SearchBox.js +2 -2
- package/lib/renderers/Service.d.ts +1 -1
- package/lib/renderers/Service.js +4 -4
- package/lib/renderers/Shape.js +2 -2
- package/lib/renderers/Slider.js +2 -2
- package/lib/renderers/SparkLine.js +2 -2
- package/lib/renderers/Spinner.js +2 -2
- package/lib/renderers/Status.js +2 -2
- package/lib/renderers/Steps.js +2 -2
- package/lib/renderers/SwitchContainer.js +2 -2
- package/lib/renderers/Table/AutoFilterForm.js +2 -2
- package/lib/renderers/Table/Cell.js +2 -2
- package/lib/renderers/Table/ColGroup.js +2 -2
- package/lib/renderers/Table/ColumnToggler.js +2 -2
- package/lib/renderers/Table/HeadCellFilterDropdown.js +2 -2
- package/lib/renderers/Table/HeadCellSearchDropdown.js +2 -2
- package/lib/renderers/Table/ItemActionsWrapper.js +2 -2
- package/lib/renderers/Table/TableBody.js +2 -2
- package/lib/renderers/Table/TableCell.js +2 -2
- package/lib/renderers/Table/TableContent.js +2 -2
- package/lib/renderers/Table/TableRow.js +2 -2
- package/lib/renderers/Table/exportExcel.js +2 -2
- package/lib/renderers/Table/index.js +2 -2
- package/lib/renderers/Table2/ColumnToggler.js +2 -2
- package/lib/renderers/Table2/HeadCellSearchDropdown.js +2 -2
- package/lib/renderers/Table2/TableCell.js +2 -2
- package/lib/renderers/Table2/index.d.ts +1 -1
- package/lib/renderers/Table2/index.js +3 -3
- package/lib/renderers/TableView.js +2 -2
- package/lib/renderers/Tabs.js +2 -2
- package/lib/renderers/Tag.js +2 -2
- package/lib/renderers/Tasks.js +2 -2
- package/lib/renderers/Timeline.js +2 -2
- package/lib/renderers/TooltipWrapper.js +2 -2
- package/lib/renderers/Tpl.js +2 -2
- package/lib/renderers/VBox.js +2 -2
- package/lib/renderers/Video.js +2 -2
- package/lib/renderers/WebComponent.js +2 -2
- package/lib/renderers/Wizard.d.ts +2 -2
- package/lib/renderers/Wizard.js +5 -5
- package/lib/renderers/Words.js +2 -2
- package/lib/renderers/Wrapper.js +2 -2
- package/lib/renderers/icons/mk.js +2 -2
- package/lib/schemaExtend.js +2 -2
- package/package.json +1 -1
- package/revision.json +4 -4
- package/sdk/barcode.js +50 -50
- package/sdk/charts.js +17 -17
- package/sdk/codemirror.js +8 -8
- package/sdk/color-picker.js +65 -65
- package/sdk/cropperjs.js +2 -2
- package/sdk/exceljs.js +1 -1
- package/sdk/fomula-doc.js +1 -1
- package/sdk/json-view.js +1 -1
- package/sdk/markdown.js +68 -68
- package/sdk/office-viewer.js +408 -408
- package/sdk/papaparse.js +1 -1
- package/sdk/pdf-viewer.js +28 -28
- package/sdk/rest.js +586 -586
- package/sdk/rich-text.js +62 -62
- package/sdk/sdk.js +1104 -1102
- package/sdk/thirds/hls.js/hls.js +1 -1
- package/sdk/thirds/mpegts.js/mpegts.js +1 -1
- package/sdk/thirds/pdfjs-dist/build/pdf.js +1 -1
- package/sdk/tinymce.js +58 -58
- package/sdk/xlsx.js +3 -3
package/esm/compat.js
CHANGED
package/esm/index.js
CHANGED
package/esm/minimal.js
CHANGED
package/esm/preset.js
CHANGED
package/esm/renderers/AMIS.js
CHANGED
package/esm/renderers/Action.js
CHANGED
package/esm/renderers/Alert.js
CHANGED
package/esm/renderers/App.js
CHANGED
package/esm/renderers/Audio.js
CHANGED
package/esm/renderers/Avatar.js
CHANGED
package/esm/renderers/BarCode.js
CHANGED
package/esm/renderers/CRUD.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
/**
|
2
|
-
* amis v6.12.0-beta.
|
3
|
-
* build time: 2025-03-
|
2
|
+
* amis v6.12.0-beta.12
|
3
|
+
* build time: 2025-03-28
|
4
4
|
* Copyright 2018-2025 baidu
|
5
5
|
*/
|
6
6
|
|
@@ -100,7 +100,7 @@ var CRUD = /** @class */ (function (_super) {
|
|
100
100
|
// 另外autoGenerateFilter时,table 里面会单独处理这块逻辑
|
101
101
|
// 所以这里应该忽略 autoGenerateFilter 情况
|
102
102
|
if ((!this.props.filter && !autoGenerateFilter) ||
|
103
|
-
(store.
|
103
|
+
(store.filterTogglable && !store.filterVisible)) {
|
104
104
|
this.handleFilterInit({});
|
105
105
|
}
|
106
106
|
this.parentContainer = this.getClosestParentContainer();
|
@@ -1333,7 +1333,7 @@ var CRUD = /** @class */ (function (_super) {
|
|
1333
1333
|
CRUD.prototype.renderFilterToggler = function () {
|
1334
1334
|
var _a, _b, _c;
|
1335
1335
|
var _d = this.props, store = _d.store, cx = _d.classnames, __ = _d.translate, filterTogglable = _d.filterTogglable;
|
1336
|
-
if (!store.
|
1336
|
+
if (!store.filterTogglable) {
|
1337
1337
|
return null;
|
1338
1338
|
}
|
1339
1339
|
var custom = isPlainObject(filterTogglable)
|
@@ -1543,7 +1543,7 @@ var CRUD = /** @class */ (function (_super) {
|
|
1543
1543
|
CRUD.prototype.renderFilter = function () {
|
1544
1544
|
var _a;
|
1545
1545
|
var _b = this.props, store = _b.store, render = _b.render, cx = _b.classnames, filter = _b.filter, __ = _b.translate, testIdBuilder = _b.testIdBuilder, _c = _b.filterCanAccessSuperData, filterCanAccessSuperData = _c === void 0 ? true : _c;
|
1546
|
-
if (!filter
|
1546
|
+
if (!filter || (store.filterTogglable && !store.filterVisible)) {
|
1547
1547
|
return null;
|
1548
1548
|
}
|
1549
1549
|
return render('filter', __assign(__assign({ title: __('CRUD.filter'), mode: 'inline', submitText: __('search') }, filter), { type: 'form', api: null, testIdBuilder: testIdBuilder === null || testIdBuilder === void 0 ? void 0 : testIdBuilder.getChild('filter') }), {
|
package/esm/renderers/CRUD2.js
CHANGED
package/esm/renderers/Card.js
CHANGED
package/esm/renderers/Card2.js
CHANGED
package/esm/renderers/Cards.d.ts
CHANGED
@@ -135,7 +135,7 @@ export default class Cards extends React.Component<GridProps, object> {
|
|
135
135
|
static syncItems(store: IListStore, props: GridProps, prevProps?: GridProps): boolean;
|
136
136
|
componentDidUpdate(prevProps: GridProps): void;
|
137
137
|
bodyRef(ref: HTMLDivElement): void;
|
138
|
-
handleAction(e: React.UIEvent<any> | undefined, action: ActionObject, ctx: object):
|
138
|
+
handleAction(e: React.UIEvent<any> | undefined, action: ActionObject, ctx: object): any;
|
139
139
|
handleCheck(item: IItem): void;
|
140
140
|
handleClick(item: IItem): Promise<import("amis-core").RendererEvent<any, any>>;
|
141
141
|
handleCheckAll(): void;
|
@@ -185,5 +185,5 @@ export declare class CardsRenderer extends Cards {
|
|
185
185
|
setData(values: any, replace?: boolean, index?: number | string, condition?: any): Promise<any>;
|
186
186
|
getData(): any;
|
187
187
|
hasModifiedItems(): number;
|
188
|
-
doAction(action: ActionObject, ctx: any, throwErrors: boolean, args: any): Promise<
|
188
|
+
doAction(action: ActionObject, ctx: any, throwErrors: boolean, args: any): Promise<any>;
|
189
189
|
}
|
package/esm/renderers/Cards.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
/**
|
2
|
-
* amis v6.12.0-beta.
|
3
|
-
* build time: 2025-03-
|
2
|
+
* amis v6.12.0-beta.12
|
3
|
+
* build time: 2025-03-28
|
4
4
|
* Copyright 2018-2025 baidu
|
5
5
|
*/
|
6
6
|
|
@@ -111,7 +111,7 @@ var Cards = /** @class */ (function (_super) {
|
|
111
111
|
Cards.prototype.handleAction = function (e, action, ctx) {
|
112
112
|
var onAction = this.props.onAction;
|
113
113
|
// 需要支持特殊事件吗?
|
114
|
-
onAction(e, action, ctx);
|
114
|
+
return onAction === null || onAction === void 0 ? void 0 : onAction(e, action, ctx);
|
115
115
|
};
|
116
116
|
Cards.prototype.handleCheck = function (item) {
|
117
117
|
item.toggle();
|
@@ -438,9 +438,19 @@ var Cards = /** @class */ (function (_super) {
|
|
438
438
|
var _this = this;
|
439
439
|
var _a = this.props, className = _a.className, style = _a.style, store = _a.store, columnsCount = _a.columnsCount, itemClassName = _a.itemClassName, placeholder = _a.placeholder, card = _a.card, data = _a.data, render = _a.render, affixHeader = _a.affixHeader, masonryLayout = _a.masonryLayout, itemsClassName = _a.itemsClassName, cx = _a.classnames, __ = _a.translate, _b = _a.loading, loading = _b === void 0 ? false : _b, loadingConfig = _a.loadingConfig, env = _a.env, id = _a.id, wrapperCustomStyle = _a.wrapperCustomStyle, themeCss = _a.themeCss, mobileUI = _a.mobileUI;
|
440
440
|
this.renderedToolbars = []; // 用来记录哪些 toolbar 已经渲染了,已经渲染了就不重复渲染了。
|
441
|
-
var itemFinalClassName =
|
442
|
-
|
443
|
-
|
441
|
+
var itemFinalClassName = (function () {
|
442
|
+
// 移动端且非砖石布局时不使用网格类名
|
443
|
+
if (mobileUI && !masonryLayout) {
|
444
|
+
return '';
|
445
|
+
}
|
446
|
+
// 砖石布局且设置了固定列数时使用计算的网格类名
|
447
|
+
if (masonryLayout && columnsCount) {
|
448
|
+
var colWidth = Math.round(12 / columnsCount);
|
449
|
+
return "Grid-col--xs".concat(colWidth, " Grid-col--sm").concat(colWidth, " Grid-col--md").concat(colWidth, " Grid-col--lg").concat(colWidth);
|
450
|
+
}
|
451
|
+
// 其他情况使用配置的类名或空字符串
|
452
|
+
return itemClassName || '';
|
453
|
+
})();
|
444
454
|
var header = this.renderHeader();
|
445
455
|
var heading = this.renderHeading();
|
446
456
|
var footer = this.renderFooter();
|
@@ -470,11 +480,6 @@ var Cards = /** @class */ (function (_super) {
|
|
470
480
|
if ((style === null || style === void 0 ? void 0 : style.gutterY) >= 0) {
|
471
481
|
itemStyles.marginBottom = (style === null || style === void 0 ? void 0 : style.gutterY) + 'px';
|
472
482
|
}
|
473
|
-
// 修正grid多列计算错误,另外移动端目前只显示一列
|
474
|
-
if (columnsCount && !masonryLayout && !mobileUI) {
|
475
|
-
itemStyles.flex = "0 0 ".concat(100 / columnsCount, "%");
|
476
|
-
itemStyles.maxWidth = "".concat(100 / columnsCount, "%");
|
477
|
-
}
|
478
483
|
return (React.createElement("div", { ref: this.bodyRef, className: cx('Cards', className, {
|
479
484
|
'Cards--unsaved': !!store.modified || !!store.moved
|
480
485
|
}, setThemeClassName(__assign(__assign({}, this.props), { name: 'baseControlClassName', id: id, themeCss: themeCss })), setThemeClassName(__assign(__assign({}, this.props), { name: 'wrapperCustomStyle', id: id, themeCss: wrapperCustomStyle }))), style: buildStyle(style, data) },
|
package/esm/renderers/Chart.js
CHANGED
package/esm/renderers/Code.js
CHANGED
package/esm/renderers/Color.js
CHANGED
package/esm/renderers/Custom.js
CHANGED
package/esm/renderers/Date.js
CHANGED