amis-rev-ui 6.13.0
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/LICENSE +201 -0
- package/esm/HTMLFilterContext.d.ts +3 -0
- package/esm/HTMLFilterContext.js +10 -0
- package/esm/components/404.js +35 -0
- package/esm/components/Alert.js +266 -0
- package/esm/components/Alert2.js +58 -0
- package/esm/components/AlphabetIndexer.d.ts +11 -0
- package/esm/components/AlphabetIndexer.js +48 -0
- package/esm/components/AnchorNav.js +153 -0
- package/esm/components/AnchorNavSection.d.ts +2 -0
- package/esm/components/AnchorNavSection.js +7 -0
- package/esm/components/ArrayInput.js +146 -0
- package/esm/components/AsideNav.js +133 -0
- package/esm/components/AssociatedSelection.js +107 -0
- package/esm/components/AutoFoldedList.js +124 -0
- package/esm/components/AutoSizer.d.ts +2 -0
- package/esm/components/AutoSizer.js +8 -0
- package/esm/components/Avatar.js +126 -0
- package/esm/components/Badge.d.ts +20 -0
- package/esm/components/Badge.js +154 -0
- package/esm/components/BaiduMapPicker.js +366 -0
- package/esm/components/BarCode.js +42 -0
- package/esm/components/Breadcrumb.js +160 -0
- package/esm/components/Button.js +64 -0
- package/esm/components/CalendarMobile.js +538 -0
- package/esm/components/Card.js +88 -0
- package/esm/components/Cascader.js +515 -0
- package/esm/components/ChainedDropdownSelection.js +104 -0
- package/esm/components/ChainedSelection.js +184 -0
- package/esm/components/Checkbox.js +87 -0
- package/esm/components/CityArea.js +190 -0
- package/esm/components/CityDB.d.ts +13 -0
- package/esm/components/CityDB.js +3942 -0
- package/esm/components/CodeMirror.d.ts +29 -0
- package/esm/components/CodeMirror.js +140 -0
- package/esm/components/Collapse.js +184 -0
- package/esm/components/CollapseGroup.js +117 -0
- package/esm/components/ColorPicker.js +259 -0
- package/esm/components/Combo.js +212 -0
- package/esm/components/ConditionBuilder.d.ts +2 -0
- package/esm/components/ConditionBuilder.js +7 -0
- package/esm/components/ConfirmBox.js +128 -0
- package/esm/components/ContextMenu.js +310 -0
- package/esm/components/DatePicker.js +716 -0
- package/esm/components/DateRangePicker.js +1385 -0
- package/esm/components/DiffEditor.d.ts +21 -0
- package/esm/components/DiffEditor.js +119 -0
- package/esm/components/DndContainer.js +25 -0
- package/esm/components/Drawer.js +272 -0
- package/esm/components/DropDownSelection.js +77 -0
- package/esm/components/DropdownContextMenus.js +93 -0
- package/esm/components/Editor.js +238 -0
- package/esm/components/Form.d.ts +31 -0
- package/esm/components/Form.js +84 -0
- package/esm/components/FormField.js +78 -0
- package/esm/components/FormulaPicker.d.ts +2 -0
- package/esm/components/FormulaPicker.js +7 -0
- package/esm/components/GaodeMapPicker.js +204 -0
- package/esm/components/GridNav.d.ts +53 -0
- package/esm/components/GridNav.js +125 -0
- package/esm/components/GridNavItem.d.ts +2 -0
- package/esm/components/GridNavItem.js +7 -0
- package/esm/components/GroupedSelection.js +138 -0
- package/esm/components/HeadCellDropDown.d.ts +2 -0
- package/esm/components/HeadCellDropDown.js +7 -0
- package/esm/components/HorizontalScroll.d.ts +74 -0
- package/esm/components/HorizontalScroll.js +271 -0
- package/esm/components/Html.js +55 -0
- package/esm/components/Icon.d.ts +2 -0
- package/esm/components/Icon.js +7 -0
- package/esm/components/ImageGallery.js +396 -0
- package/esm/components/Input.d.ts +18 -0
- package/esm/components/Input.js +75 -0
- package/esm/components/InputBox.js +99 -0
- package/esm/components/InputBoxWithSuggestion.js +70 -0
- package/esm/components/InputJSONSchema.d.ts +2 -0
- package/esm/components/InputJSONSchema.js +7 -0
- package/esm/components/InputTable.js +176 -0
- package/esm/components/JSONSchemaEditor.d.ts +2 -0
- package/esm/components/JSONSchemaEditor.js +7 -0
- package/esm/components/Layout.js +60 -0
- package/esm/components/Link.js +44 -0
- package/esm/components/ListGroup.js +31 -0
- package/esm/components/ListMenu.js +62 -0
- package/esm/components/LocationPicker.js +208 -0
- package/esm/components/Markdown.d.ts +25 -0
- package/esm/components/Markdown.js +70 -0
- package/esm/components/Menu.d.ts +2 -0
- package/esm/components/Menu.js +7 -0
- package/esm/components/MixedInput.js +88 -0
- package/esm/components/MobileDevTool.d.ts +12 -0
- package/esm/components/MobileDevTool.js +312 -0
- package/esm/components/Modal.js +261 -0
- package/esm/components/ModalManager.d.ts +16 -0
- package/esm/components/ModalManager.js +42 -0
- package/esm/components/MultilineText.js +90 -0
- package/esm/components/NumberInput.js +274 -0
- package/esm/components/OverflowTpl.js +100 -0
- package/esm/components/Pagination.js +377 -0
- package/esm/components/PdfViewer.js +83 -0
- package/esm/components/Picker.js +73 -0
- package/esm/components/PickerColumn.js +276 -0
- package/esm/components/PickerContainer.js +157 -0
- package/esm/components/PopOverContainer.d.ts +59 -0
- package/esm/components/PopOverContainer.js +148 -0
- package/esm/components/PopUp.js +85 -0
- package/esm/components/Progress.js +136 -0
- package/esm/components/PullRefresh.js +172 -0
- package/esm/components/Radios.js +129 -0
- package/esm/components/Range.js +516 -0
- package/esm/components/Rating.js +341 -0
- package/esm/components/ResultBox.js +195 -0
- package/esm/components/ResultList.js +253 -0
- package/esm/components/ResultTableList.js +152 -0
- package/esm/components/ResultTreeList.js +241 -0
- package/esm/components/RichText.d.ts +48 -0
- package/esm/components/RichText.js +271 -0
- package/esm/components/SearchBox.js +298 -0
- package/esm/components/Select.js +814 -0
- package/esm/components/SelectMobile.d.ts +38 -0
- package/esm/components/SelectMobile.js +369 -0
- package/esm/components/Selection.js +166 -0
- package/esm/components/Shape.js +429 -0
- package/esm/components/Signature.js +294 -0
- package/esm/components/Slider.js +140 -0
- package/esm/components/SparkLine.js +62 -0
- package/esm/components/Spinner.js +202 -0
- package/esm/components/Steps.js +76 -0
- package/esm/components/Switch.js +73 -0
- package/esm/components/Tab.d.ts +2 -0
- package/esm/components/Tab.js +7 -0
- package/esm/components/Table.d.ts +2 -0
- package/esm/components/Table.js +7 -0
- package/esm/components/TableSelection.js +169 -0
- package/esm/components/Tabs.js +607 -0
- package/esm/components/TabsTransfer.js +221 -0
- package/esm/components/TabsTransferPicker.js +81 -0
- package/esm/components/Tag.js +137 -0
- package/esm/components/Textarea.js +146 -0
- package/esm/components/Timeline.js +60 -0
- package/esm/components/TimelineItem.js +101 -0
- package/esm/components/Tinymce.d.ts +66 -0
- package/esm/components/Tinymce.js +634 -0
- package/esm/components/TitleBar.js +48 -0
- package/esm/components/Toast.js +247 -0
- package/esm/components/Tooltip.js +36 -0
- package/esm/components/TooltipWrapper.js +180 -0
- package/esm/components/Transfer.js +485 -0
- package/esm/components/TransferDropDown.js +98 -0
- package/esm/components/TransferPicker.js +98 -0
- package/esm/components/TransferSearch.js +100 -0
- package/esm/components/Tree.js +1256 -0
- package/esm/components/TreeSelection.js +201 -0
- package/esm/components/UserSelect.js +674 -0
- package/esm/components/UserTabSelect.js +227 -0
- package/esm/components/VerificationCode.js +172 -0
- package/esm/components/VirtualList.d.ts +2 -0
- package/esm/components/VirtualList.js +7 -0
- package/esm/components/WithRemoteConfig.d.ts +70 -0
- package/esm/components/WithRemoteConfig.js +301 -0
- package/esm/components/WithStore.d.ts +13 -0
- package/esm/components/WithStore.js +48 -0
- package/esm/components/calendar/Calendar.d.ts +83 -0
- package/esm/components/calendar/Calendar.js +529 -0
- package/esm/components/calendar/CalendarContainer.d.ts +10 -0
- package/esm/components/calendar/CalendarContainer.js +27 -0
- package/esm/components/calendar/DaysView.js +528 -0
- package/esm/components/calendar/MonthsView.js +175 -0
- package/esm/components/calendar/QuartersView.js +125 -0
- package/esm/components/calendar/TimeView.js +559 -0
- package/esm/components/calendar/YearsView.js +122 -0
- package/esm/components/condition-builder/Expression.js +121 -0
- package/esm/components/condition-builder/Field.js +32 -0
- package/esm/components/condition-builder/Func.js +75 -0
- package/esm/components/condition-builder/Group.js +196 -0
- package/esm/components/condition-builder/GroupOrItem.js +107 -0
- package/esm/components/condition-builder/InputSwitch.js +28 -0
- package/esm/components/condition-builder/Item.js +233 -0
- package/esm/components/condition-builder/Value.js +115 -0
- package/esm/components/condition-builder/config.d.ts +36 -0
- package/esm/components/condition-builder/config.js +120 -0
- package/esm/components/condition-builder/index.js +242 -0
- package/esm/components/condition-builder/types.d.ts +116 -0
- package/esm/components/formula/CodeEditor.js +99 -0
- package/esm/components/formula/Editor.js +446 -0
- package/esm/components/formula/FuncList.js +64 -0
- package/esm/components/formula/Input.js +141 -0
- package/esm/components/formula/Picker.js +454 -0
- package/esm/components/formula/VariableList.js +185 -0
- package/esm/components/formula/plugin.d.ts +51 -0
- package/esm/components/formula/plugin.js +445 -0
- package/esm/components/icons.d.ts +61 -0
- package/esm/components/icons.js +458 -0
- package/esm/components/index.d.ts +138 -0
- package/esm/components/json-schema/Array.d.ts +3 -0
- package/esm/components/json-schema/Array.js +129 -0
- package/esm/components/json-schema/Item.d.ts +5 -0
- package/esm/components/json-schema/Item.js +63 -0
- package/esm/components/json-schema/Object.d.ts +5 -0
- package/esm/components/json-schema/Object.js +272 -0
- package/esm/components/json-schema/index.js +29 -0
- package/esm/components/menu/MenuContext.d.ts +82 -0
- package/esm/components/menu/MenuContext.js +25 -0
- package/esm/components/menu/MenuItem.js +112 -0
- package/esm/components/menu/PanelMenu.js +68 -0
- package/esm/components/menu/SubMenu.js +137 -0
- package/esm/components/menu/index.js +368 -0
- package/esm/components/schema-editor/Array.d.ts +11 -0
- package/esm/components/schema-editor/Array.js +84 -0
- package/esm/components/schema-editor/Common.d.ts +61 -0
- package/esm/components/schema-editor/Common.js +162 -0
- package/esm/components/schema-editor/Item.d.ts +8 -0
- package/esm/components/schema-editor/Item.js +24 -0
- package/esm/components/schema-editor/Object.d.ts +51 -0
- package/esm/components/schema-editor/Object.js +294 -0
- package/esm/components/schema-editor/SchemaVariableList.js +74 -0
- package/esm/components/schema-editor/SchemaVariableListPicker.js +34 -0
- package/esm/components/schema-editor/index.js +122 -0
- package/esm/components/table/Cell.d.ts +36 -0
- package/esm/components/table/Cell.js +43 -0
- package/esm/components/table/ColGroup.d.ts +24 -0
- package/esm/components/table/ColGroup.js +77 -0
- package/esm/components/table/Head.d.ts +45 -0
- package/esm/components/table/Head.js +150 -0
- package/esm/components/table/HeadCellDropDown.js +54 -0
- package/esm/components/table/HeadCellFilter.js +130 -0
- package/esm/components/table/HeadCellSelect.js +51 -0
- package/esm/components/table/HeadCellSort.js +88 -0
- package/esm/components/table/ItemActionsWrapper.d.ts +10 -0
- package/esm/components/table/ItemActionsWrapper.js +29 -0
- package/esm/components/table/Row.d.ts +56 -0
- package/esm/components/table/Row.js +224 -0
- package/esm/components/table/SummaryRow.d.ts +28 -0
- package/esm/components/table/SummaryRow.js +73 -0
- package/esm/components/table/index.js +1095 -0
- package/esm/components/table/util.d.ts +25 -0
- package/esm/components/table/util.js +279 -0
- package/esm/components/virtual-list/AutoSizer.d.ts +19 -0
- package/esm/components/virtual-list/AutoSizer.js +48 -0
- package/esm/components/virtual-list/SizeAndPositionManager.d.ts +70 -0
- package/esm/components/virtual-list/SizeAndPositionManager.js +216 -0
- package/esm/components/virtual-list/constants.d.ts +34 -0
- package/esm/components/virtual-list/constants.js +45 -0
- package/esm/components/virtual-list/index.d.ts +98 -0
- package/esm/components/virtual-list/index.js +288 -0
- package/esm/components/withBadge.d.ts +2 -0
- package/esm/components/withBadge.js +7 -0
- package/esm/hooks/index.d.ts +8 -0
- package/esm/hooks/use-click-away.d.ts +12 -0
- package/esm/hooks/use-click-away.js +55 -0
- package/esm/hooks/use-on-screen.d.ts +2 -0
- package/esm/hooks/use-on-screen.js +28 -0
- package/esm/hooks/use-set-state.d.ts +2 -0
- package/esm/hooks/use-set-state.js +19 -0
- package/esm/hooks/use-sub-form.d.ts +4 -0
- package/esm/hooks/use-sub-form.js +39 -0
- package/esm/hooks/use-touch.d.ts +16 -0
- package/esm/hooks/use-touch.js +77 -0
- package/esm/hooks/use-update-effect.d.ts +3 -0
- package/esm/hooks/use-update-effect.js +21 -0
- package/esm/hooks/use-validation-resolver.d.ts +7 -0
- package/esm/hooks/use-validation-resolver.js +115 -0
- package/esm/icons/alert-danger.svg.js +22 -0
- package/esm/icons/alert-info.svg.js +22 -0
- package/esm/icons/alert-success.svg.js +22 -0
- package/esm/icons/alert-warning.svg.js +22 -0
- package/esm/icons/arrow-double-left.svg.js +24 -0
- package/esm/icons/arrow-double-right.svg.js +24 -0
- package/esm/icons/back.svg.js +21 -0
- package/esm/icons/calendar.svg.js +31 -0
- package/esm/icons/caret.svg.js +21 -0
- package/esm/icons/check.svg.js +21 -0
- package/esm/icons/clock.svg.js +29 -0
- package/esm/icons/close-small.svg.js +24 -0
- package/esm/icons/close.svg.js +21 -0
- package/esm/icons/cloud-upload.svg.js +22 -0
- package/esm/icons/column-filter.svg.js +22 -0
- package/esm/icons/columns.svg.js +21 -0
- package/esm/icons/compress-alt.svg.js +21 -0
- package/esm/icons/copy.svg.js +26 -0
- package/esm/icons/date.svg.js +26 -0
- package/esm/icons/department.svg.js +52 -0
- package/esm/icons/desk-empty.svg.js +73 -0
- package/esm/icons/dot.svg.js +36 -0
- package/esm/icons/down-arrow-bold.svg.js +22 -0
- package/esm/icons/down.svg.js +23 -0
- package/esm/icons/download.svg.js +24 -0
- package/esm/icons/drag-bar.svg.js +53 -0
- package/esm/icons/drag.svg.js +22 -0
- package/esm/icons/edit.svg.js +21 -0
- package/esm/icons/ellipsis-v.svg.js +21 -0
- package/esm/icons/enter.svg.js +20 -0
- package/esm/icons/exchange.svg.js +21 -0
- package/esm/icons/expand-alt.svg.js +21 -0
- package/esm/icons/fail.svg.js +31 -0
- package/esm/icons/file.svg.js +22 -0
- package/esm/icons/filter.svg.js +21 -0
- package/esm/icons/folder.svg.js +24 -0
- package/esm/icons/fullscreen.svg.js +21 -0
- package/esm/icons/function.svg.js +21 -0
- package/esm/icons/home.svg.js +21 -0
- package/esm/icons/if.svg.js +21 -0
- package/esm/icons/image.svg.js +20 -0
- package/esm/icons/info-circle.svg.js +21 -0
- package/esm/icons/info.svg.js +27 -0
- package/esm/icons/input-clear.svg.js +20 -0
- package/esm/icons/invisible.svg.js +22 -0
- package/esm/icons/left-arrow.svg.js +23 -0
- package/esm/icons/loading-outline.svg.js +21 -0
- package/esm/icons/location.svg.js +20 -0
- package/esm/icons/menu.svg.js +20 -0
- package/esm/icons/minus.svg.js +21 -0
- package/esm/icons/move.svg.js +22 -0
- package/esm/icons/mute.svg.js +21 -0
- package/esm/icons/new-edit.svg.js +22 -0
- package/esm/icons/pause.svg.js +21 -0
- package/esm/icons/pencil.svg.js +21 -0
- package/esm/icons/play.svg.js +20 -0
- package/esm/icons/plus-cicle.svg.js +20 -0
- package/esm/icons/plus-fine.svg.js +21 -0
- package/esm/icons/plus.svg.js +21 -0
- package/esm/icons/post.svg.js +48 -0
- package/esm/icons/question-mark.svg.js +26 -0
- package/esm/icons/question.svg.js +21 -0
- package/esm/icons/question2.svg.js +34 -0
- package/esm/icons/redo.svg.js +21 -0
- package/esm/icons/refresh.svg.js +21 -0
- package/esm/icons/reload.svg.js +21 -0
- package/esm/icons/remove.svg.js +21 -0
- package/esm/icons/retry.svg.js +24 -0
- package/esm/icons/right-arrow-bold.svg.js +21 -0
- package/esm/icons/right-arrow.svg.js +23 -0
- package/esm/icons/right-double-arrow.svg.js +22 -0
- package/esm/icons/role.svg.js +43 -0
- package/esm/icons/rotate-left.svg.js +22 -0
- package/esm/icons/rotate-right.svg.js +22 -0
- package/esm/icons/rotate-screen.svg.js +21 -0
- package/esm/icons/scale-origin.svg.js +24 -0
- package/esm/icons/schedule.svg.js +24 -0
- package/esm/icons/search.svg.js +21 -0
- package/esm/icons/setting.svg.js +21 -0
- package/esm/icons/slider-handle-icon.svg.js +22 -0
- package/esm/icons/sort-asc.svg.js +21 -0
- package/esm/icons/sort-default.svg.js +21 -0
- package/esm/icons/sort-desc.svg.js +21 -0
- package/esm/icons/star.svg.js +21 -0
- package/esm/icons/status-close.svg.js +23 -0
- package/esm/icons/steps-finsh.svg.js +22 -0
- package/esm/icons/sub-plus.svg.js +20 -0
- package/esm/icons/success.svg.js +29 -0
- package/esm/icons/transparent.svg.js +38 -0
- package/esm/icons/trash.svg.js +22 -0
- package/esm/icons/tree-down.svg.js +21 -0
- package/esm/icons/undo-normal.svg.js +25 -0
- package/esm/icons/undo.svg.js +21 -0
- package/esm/icons/unfullscreen.svg.js +21 -0
- package/esm/icons/upload.svg.js +21 -0
- package/esm/icons/user-remove.svg.js +33 -0
- package/esm/icons/view.svg.js +22 -0
- package/esm/icons/volume.svg.js +24 -0
- package/esm/icons/warning-mark.svg.js +22 -0
- package/esm/icons/warning.svg.js +21 -0
- package/esm/icons/window-restore.svg.js +21 -0
- package/esm/icons/zoom-in.svg.js +21 -0
- package/esm/icons/zoom-out.svg.js +21 -0
- package/esm/index.d.ts +16 -0
- package/esm/index.js +157 -0
- package/esm/locale/de-DE.d.ts +1 -0
- package/esm/locale/de-DE.js +423 -0
- package/esm/locale/en-US.d.ts +1 -0
- package/esm/locale/en-US.js +429 -0
- package/esm/locale/zh-CN.d.ts +1 -0
- package/esm/locale/zh-CN.js +438 -0
- package/esm/themes/ang.d.ts +3 -0
- package/esm/themes/ang.js +15 -0
- package/esm/themes/antd.d.ts +1 -0
- package/esm/themes/antd.js +42 -0
- package/esm/themes/cxd.d.ts +3 -0
- package/esm/themes/cxd.js +455 -0
- package/esm/themes/dark.d.ts +3 -0
- package/esm/themes/dark.js +23 -0
- package/esm/themes/default.d.ts +4 -0
- package/esm/utils/index.d.ts +2 -0
- package/esm/utils/smoothSignature.d.ts +86 -0
- package/esm/utils/vectorComputed.d.ts +20 -0
- package/esm/utils/vectorComputed.js +75 -0
- package/esm/withRemoteConfig.d.ts +2 -0
- package/esm/withRemoteConfig.js +7 -0
- package/esm/withStore.d.ts +2 -0
- package/esm/withStore.js +7 -0
- package/lib/HTMLFilterContext.d.ts +3 -0
- package/lib/components/AlphabetIndexer.d.ts +11 -0
- package/lib/components/AnchorNavSection.d.ts +2 -0
- package/lib/components/AutoSizer.d.ts +2 -0
- package/lib/components/Badge.d.ts +20 -0
- package/lib/components/BarCode.js +44 -0
- package/lib/components/CityDB.d.ts +13 -0
- package/lib/components/CityDB.js +3945 -0
- package/lib/components/CodeMirror.d.ts +29 -0
- package/lib/components/ColorPicker.js +267 -0
- package/lib/components/ConditionBuilder.d.ts +2 -0
- package/lib/components/DiffEditor.d.ts +21 -0
- package/lib/components/Form.d.ts +31 -0
- package/lib/components/FormulaPicker.d.ts +2 -0
- package/lib/components/GridNav.d.ts +53 -0
- package/lib/components/GridNavItem.d.ts +2 -0
- package/lib/components/HeadCellDropDown.d.ts +2 -0
- package/lib/components/HorizontalScroll.d.ts +74 -0
- package/lib/components/Icon.d.ts +2 -0
- package/lib/components/Input.d.ts +18 -0
- package/lib/components/InputJSONSchema.d.ts +2 -0
- package/lib/components/JSONSchemaEditor.d.ts +2 -0
- package/lib/components/Markdown.d.ts +25 -0
- package/lib/components/Markdown.js +76 -0
- package/lib/components/Menu.d.ts +2 -0
- package/lib/components/MobileDevTool.d.ts +12 -0
- package/lib/components/ModalManager.d.ts +16 -0
- package/lib/components/PdfViewer.js +83 -0
- package/lib/components/PopOverContainer.d.ts +59 -0
- package/lib/components/RichText.d.ts +48 -0
- package/lib/components/RichText.js +275 -0
- package/lib/components/SelectMobile.d.ts +38 -0
- package/lib/components/Tab.d.ts +2 -0
- package/lib/components/Table.d.ts +2 -0
- package/lib/components/Tinymce.d.ts +66 -0
- package/lib/components/Tinymce.js +641 -0
- package/lib/components/VirtualList.d.ts +2 -0
- package/lib/components/WithRemoteConfig.d.ts +70 -0
- package/lib/components/WithStore.d.ts +13 -0
- package/lib/components/calendar/Calendar.d.ts +83 -0
- package/lib/components/calendar/CalendarContainer.d.ts +10 -0
- package/lib/components/condition-builder/config.d.ts +36 -0
- package/lib/components/condition-builder/types.d.ts +116 -0
- package/lib/components/formula/plugin.d.ts +51 -0
- package/lib/components/icons.d.ts +61 -0
- package/lib/components/index.d.ts +138 -0
- package/lib/components/json-schema/Array.d.ts +3 -0
- package/lib/components/json-schema/Item.d.ts +5 -0
- package/lib/components/json-schema/Object.d.ts +5 -0
- package/lib/components/menu/MenuContext.d.ts +82 -0
- package/lib/components/schema-editor/Array.d.ts +11 -0
- package/lib/components/schema-editor/Common.d.ts +61 -0
- package/lib/components/schema-editor/Item.d.ts +8 -0
- package/lib/components/schema-editor/Object.d.ts +51 -0
- package/lib/components/table/Cell.d.ts +36 -0
- package/lib/components/table/ColGroup.d.ts +24 -0
- package/lib/components/table/Head.d.ts +45 -0
- package/lib/components/table/ItemActionsWrapper.d.ts +10 -0
- package/lib/components/table/Row.d.ts +56 -0
- package/lib/components/table/SummaryRow.d.ts +28 -0
- package/lib/components/table/util.d.ts +25 -0
- package/lib/components/virtual-list/AutoSizer.d.ts +19 -0
- package/lib/components/virtual-list/SizeAndPositionManager.d.ts +70 -0
- package/lib/components/virtual-list/constants.d.ts +34 -0
- package/lib/components/virtual-list/index.d.ts +98 -0
- package/lib/components/withBadge.d.ts +2 -0
- package/lib/helper.css +47762 -0
- package/lib/hooks/index.d.ts +8 -0
- package/lib/hooks/use-click-away.d.ts +12 -0
- package/lib/hooks/use-on-screen.d.ts +2 -0
- package/lib/hooks/use-set-state.d.ts +2 -0
- package/lib/hooks/use-sub-form.d.ts +4 -0
- package/lib/hooks/use-touch.d.ts +16 -0
- package/lib/hooks/use-update-effect.d.ts +3 -0
- package/lib/hooks/use-validation-resolver.d.ts +7 -0
- package/lib/index.d.ts +16 -0
- package/lib/index.js +28 -0
- package/lib/locale/de-DE.d.ts +1 -0
- package/lib/locale/en-US.d.ts +1 -0
- package/lib/locale/zh-CN.d.ts +1 -0
- package/lib/scss/helper.scss.js +12 -0
- package/lib/scss/themes/ang.scss.js +12 -0
- package/lib/scss/themes/antd.scss.js +12 -0
- package/lib/scss/themes/cxd.scss.js +12 -0
- package/lib/scss/themes/dark.scss.js +12 -0
- package/lib/scss/themes/default.scss.js +12 -0
- package/lib/themes/ang.css +45895 -0
- package/lib/themes/ang.d.ts +3 -0
- package/lib/themes/antd.css +45882 -0
- package/lib/themes/antd.d.ts +1 -0
- package/lib/themes/cxd.css +45871 -0
- package/lib/themes/cxd.d.ts +3 -0
- package/lib/themes/dark.css +45902 -0
- package/lib/themes/dark.d.ts +3 -0
- package/lib/themes/default.css +45871 -0
- package/lib/themes/default.d.ts +4 -0
- package/lib/utils/index.d.ts +2 -0
- package/lib/utils/smoothSignature.d.ts +86 -0
- package/lib/utils/vectorComputed.d.ts +20 -0
- package/lib/withRemoteConfig.d.ts +2 -0
- package/lib/withStore.d.ts +2 -0
- package/package.json +158 -0
- package/scss/README.md +9 -0
- package/scss/_components.scss +4346 -0
- package/scss/_functions.scss +137 -0
- package/scss/_mixins.scss +805 -0
- package/scss/_properties.scss +898 -0
- package/scss/_thirds.scss +12 -0
- package/scss/_utilities.scss +1757 -0
- package/scss/_variables.scss +439 -0
- package/scss/base/_animate.scss +84 -0
- package/scss/base/_common.scss +19 -0
- package/scss/base/_normalize.scss +376 -0
- package/scss/base/_reset.scss +18 -0
- package/scss/base/_typography.scss +79 -0
- package/scss/components/_alert.scss +123 -0
- package/scss/components/_anchor-nav.scss +158 -0
- package/scss/components/_app.scss +46 -0
- package/scss/components/_array-input.scss +107 -0
- package/scss/components/_audio.scss +146 -0
- package/scss/components/_auto-folder.scss +40 -0
- package/scss/components/_avatar.scss +55 -0
- package/scss/components/_badge.scss +145 -0
- package/scss/components/_barcode.scss +6 -0
- package/scss/components/_breadcrumb.scss +110 -0
- package/scss/components/_button-group.scss +165 -0
- package/scss/components/_button.scss +871 -0
- package/scss/components/_calendar.scss +442 -0
- package/scss/components/_card.scss +389 -0
- package/scss/components/_card2.scss +28 -0
- package/scss/components/_cards.scss +221 -0
- package/scss/components/_carousel.scss +292 -0
- package/scss/components/_cascader.scss +157 -0
- package/scss/components/_chart.scss +22 -0
- package/scss/components/_city-area.scss +37 -0
- package/scss/components/_code.scss +10 -0
- package/scss/components/_collapse-group.scss +83 -0
- package/scss/components/_collapse.scss +245 -0
- package/scss/components/_color.scss +17 -0
- package/scss/components/_column-toggler.scss +261 -0
- package/scss/components/_condition-builder.scss +521 -0
- package/scss/components/_context-menu.scss +204 -0
- package/scss/components/_copyable.scss +10 -0
- package/scss/components/_crud.scss +195 -0
- package/scss/components/_crud2.scss +345 -0
- package/scss/components/_debug.scss +259 -0
- package/scss/components/_divider.scss +81 -0
- package/scss/components/_drawer.scss +393 -0
- package/scss/components/_dropdown-context-menus.scss +27 -0
- package/scss/components/_dropdown.scss +159 -0
- package/scss/components/_each.scss +7 -0
- package/scss/components/_formula.scss +723 -0
- package/scss/components/_grid-nav.scss +128 -0
- package/scss/components/_horizontal-scroll.scss +51 -0
- package/scss/components/_icon.scss +4 -0
- package/scss/components/_image-gallery.scss +331 -0
- package/scss/components/_images.scss +650 -0
- package/scss/components/_input-box.scss +111 -0
- package/scss/components/_json-schema-editor.scss +149 -0
- package/scss/components/_json-schema.scss +166 -0
- package/scss/components/_json.scss +7 -0
- package/scss/components/_link.scss +22 -0
- package/scss/components/_list-menu.scss +114 -0
- package/scss/components/_list.scss +313 -0
- package/scss/components/_log.scss +169 -0
- package/scss/components/_mapping.scss +6 -0
- package/scss/components/_markdown.scss +266 -0
- package/scss/components/_menu.scss +795 -0
- package/scss/components/_mobile-dev-tool.scss +175 -0
- package/scss/components/_modal.scss +282 -0
- package/scss/components/_multiline-text.scss +20 -0
- package/scss/components/_nav.scss +45 -0
- package/scss/components/_overflow-tpl.scss +5 -0
- package/scss/components/_page.scss +198 -0
- package/scss/components/_pagination.scss +403 -0
- package/scss/components/_panel.scss +263 -0
- package/scss/components/_pdf_viewer.scss +47 -0
- package/scss/components/_picker-columns.scss +140 -0
- package/scss/components/_popover.scss +54 -0
- package/scss/components/_popoverable.scss +100 -0
- package/scss/components/_popup.scss +171 -0
- package/scss/components/_portlet.scss +51 -0
- package/scss/components/_print.scss +13 -0
- package/scss/components/_progress.scss +165 -0
- package/scss/components/_property.scss +47 -0
- package/scss/components/_pull-refresh.scss +30 -0
- package/scss/components/_quick-edit.scss +53 -0
- package/scss/components/_remark.scss +58 -0
- package/scss/components/_result-box.scss +380 -0
- package/scss/components/_search-box.scss +267 -0
- package/scss/components/_service.scss +3 -0
- package/scss/components/_shape.scss +19 -0
- package/scss/components/_signature.scss +98 -0
- package/scss/components/_slider.scss +27 -0
- package/scss/components/_sparkline.scss +18 -0
- package/scss/components/_spinner.scss +214 -0
- package/scss/components/_status.scss +118 -0
- package/scss/components/_steps.scss +481 -0
- package/scss/components/_table.scss +1234 -0
- package/scss/components/_table2.scss +1066 -0
- package/scss/components/_tabs.scss +1410 -0
- package/scss/components/_tag.scss +191 -0
- package/scss/components/_timeline.scss +572 -0
- package/scss/components/_toast.scss +342 -0
- package/scss/components/_tooltip.scss +340 -0
- package/scss/components/_tpl.scss +51 -0
- package/scss/components/_verificationCode.scss +33 -0
- package/scss/components/_video.scss +38 -0
- package/scss/components/_wizard.scss +287 -0
- package/scss/components/_wrapper.scss +26 -0
- package/scss/components/form/_chained-select.scss +10 -0
- package/scss/components/form/_checks.scss +433 -0
- package/scss/components/form/_city.scss +33 -0
- package/scss/components/form/_color.scss +148 -0
- package/scss/components/form/_combo.scss +360 -0
- package/scss/components/form/_date-range.scss +332 -0
- package/scss/components/form/_date.scss +807 -0
- package/scss/components/form/_editor.scss +139 -0
- package/scss/components/form/_excel.scss +150 -0
- package/scss/components/form/_fieldset.scss +202 -0
- package/scss/components/form/_file.scss +308 -0
- package/scss/components/form/_form.scss +936 -0
- package/scss/components/form/_group.scss +116 -0
- package/scss/components/form/_icon-picker.scss +113 -0
- package/scss/components/form/_icon-select.scss +245 -0
- package/scss/components/form/_image.scss +359 -0
- package/scss/components/form/_input-group.scss +213 -0
- package/scss/components/form/_input-table.scss +17 -0
- package/scss/components/form/_list.scss +225 -0
- package/scss/components/form/_location.scss +210 -0
- package/scss/components/form/_matrix.scss +7 -0
- package/scss/components/form/_nested-select.scss +149 -0
- package/scss/components/form/_number.scss +633 -0
- package/scss/components/form/_picker.scss +237 -0
- package/scss/components/form/_qr-code.scss +4 -0
- package/scss/components/form/_range.scss +438 -0
- package/scss/components/form/_rating.scss +94 -0
- package/scss/components/form/_repeat.scss +40 -0
- package/scss/components/form/_result-list.scss +98 -0
- package/scss/components/form/_rich-text.scss +163 -0
- package/scss/components/form/_select.scss +712 -0
- package/scss/components/form/_selection.scss +485 -0
- package/scss/components/form/_sub-form.scss +118 -0
- package/scss/components/form/_switch.scss +228 -0
- package/scss/components/form/_tag.scss +146 -0
- package/scss/components/form/_text.scss +508 -0
- package/scss/components/form/_textarea.scss +78 -0
- package/scss/components/form/_tinymce.scss +6 -0
- package/scss/components/form/_transfer.scss +624 -0
- package/scss/components/form/_tree-select.scss +47 -0
- package/scss/components/form/_tree.scss +458 -0
- package/scss/components/form/_user-select.scss +643 -0
- package/scss/components/react-datetime.scss +267 -0
- package/scss/helper/background/_background-color.md +131 -0
- package/scss/helper/background/_background-color.scss +214 -0
- package/scss/helper/border/_border-color.md +109 -0
- package/scss/helper/border/_border-color.scss +178 -0
- package/scss/helper/border/_border-radius.md +86 -0
- package/scss/helper/border/_border-radius.scss +152 -0
- package/scss/helper/border/_border-style.md +11 -0
- package/scss/helper/border/_border-style.scss +40 -0
- package/scss/helper/border/_border-width.md +31 -0
- package/scss/helper/border/_border-width.scss +72 -0
- package/scss/helper/box-alignment/_align-content.md +12 -0
- package/scss/helper/box-alignment/_align-content.scss +44 -0
- package/scss/helper/box-alignment/_align-items.md +11 -0
- package/scss/helper/box-alignment/_align-items.scss +41 -0
- package/scss/helper/box-alignment/_align-self.md +11 -0
- package/scss/helper/box-alignment/_align-self.scss +40 -0
- package/scss/helper/box-alignment/_justify-content.md +12 -0
- package/scss/helper/box-alignment/_justify-content.scss +44 -0
- package/scss/helper/box-alignment/_justify-items.md +11 -0
- package/scss/helper/box-alignment/_justify-items.scss +40 -0
- package/scss/helper/box-alignment/_justify-self.md +11 -0
- package/scss/helper/box-alignment/_justify-self.scss +40 -0
- package/scss/helper/box-alignment/_place-content.md +13 -0
- package/scss/helper/box-alignment/_place-content.scss +48 -0
- package/scss/helper/box-alignment/_place-items.md +11 -0
- package/scss/helper/box-alignment/_place-items.scss +40 -0
- package/scss/helper/box-alignment/_place-self.md +11 -0
- package/scss/helper/box-alignment/_place-self.scss +40 -0
- package/scss/helper/effect/_box-shadow.md +16 -0
- package/scss/helper/effect/_box-shadow.scss +74 -0
- package/scss/helper/effect/_opacity.md +21 -0
- package/scss/helper/effect/_opacity.scss +66 -0
- package/scss/helper/flex/_direction.md +10 -0
- package/scss/helper/flex/_direction.scss +41 -0
- package/scss/helper/flex/_flex.md +10 -0
- package/scss/helper/flex/_flex.scss +38 -0
- package/scss/helper/flex/_grow.md +8 -0
- package/scss/helper/flex/_grow.scss +28 -0
- package/scss/helper/flex/_order.md +20 -0
- package/scss/helper/flex/_order.scss +56 -0
- package/scss/helper/flex/_shrink.md +8 -0
- package/scss/helper/flex/_shrink.scss +27 -0
- package/scss/helper/flex/_wrap.md +9 -0
- package/scss/helper/flex/_wrap.scss +36 -0
- package/scss/helper/grid/_auto-columns.md +10 -0
- package/scss/helper/grid/_auto-columns.scss +38 -0
- package/scss/helper/grid/_auto-flow.md +10 -0
- package/scss/helper/grid/_auto-flow.scss +38 -0
- package/scss/helper/grid/_auto-rows.md +10 -0
- package/scss/helper/grid/_auto-rows.scss +38 -0
- package/scss/helper/grid/_column-start-end.md +48 -0
- package/scss/helper/grid/_column-start-end.scss +201 -0
- package/scss/helper/grid/_columns.md +19 -0
- package/scss/helper/grid/_columns.scss +74 -0
- package/scss/helper/grid/_gap.md +117 -0
- package/scss/helper/grid/_gap.scss +154 -0
- package/scss/helper/grid/_row-start-end.md +48 -0
- package/scss/helper/grid/_row-start-end.scss +201 -0
- package/scss/helper/grid/_rows.md +13 -0
- package/scss/helper/grid/_rows.scss +50 -0
- package/scss/helper/layout/_box-sizing.md +35 -0
- package/scss/helper/layout/_box-sizing.scss +51 -0
- package/scss/helper/layout/_clear.md +27 -0
- package/scss/helper/layout/_clear.scss +56 -0
- package/scss/helper/layout/_display.md +41 -0
- package/scss/helper/layout/_display.scss +82 -0
- package/scss/helper/layout/_float.md +47 -0
- package/scss/helper/layout/_float.scss +71 -0
- package/scss/helper/layout/_overflow.md +34 -0
- package/scss/helper/layout/_overflow.scss +85 -0
- package/scss/helper/layout/_position.md +27 -0
- package/scss/helper/layout/_position.scss +55 -0
- package/scss/helper/layout/_top-right-bottom-left.md +150 -0
- package/scss/helper/layout/_top-right-bottom-left.scss +292 -0
- package/scss/helper/layout/_visibility.md +21 -0
- package/scss/helper/layout/_visibility.scss +42 -0
- package/scss/helper/layout/_z-index.md +37 -0
- package/scss/helper/layout/_z-index.scss +67 -0
- package/scss/helper/sizing/_height.md +103 -0
- package/scss/helper/sizing/_height.scss +161 -0
- package/scss/helper/sizing/_width.md +109 -0
- package/scss/helper/sizing/_width.scss +174 -0
- package/scss/helper/spacing/_margin.md +527 -0
- package/scss/helper/spacing/_margin.scss +821 -0
- package/scss/helper/spacing/_padding.md +265 -0
- package/scss/helper/spacing/_padding.scss +394 -0
- package/scss/helper/spacing/_space-between.md +155 -0
- package/scss/helper/spacing/_space-between.scss +224 -0
- package/scss/helper/typography/_font-family.md +9 -0
- package/scss/helper/typography/_font-family.scss +28 -0
- package/scss/helper/typography/_font-size.md +19 -0
- package/scss/helper/typography/_font-size.scss +40 -0
- package/scss/helper/typography/_font-style.md +8 -0
- package/scss/helper/typography/_font-style.scss +31 -0
- package/scss/helper/typography/_font-weight.md +15 -0
- package/scss/helper/typography/_font-weight.scss +49 -0
- package/scss/helper/typography/_letter-spacing.md +12 -0
- package/scss/helper/typography/_letter-spacing.scss +43 -0
- package/scss/helper/typography/_line-height.md +20 -0
- package/scss/helper/typography/_line-height.scss +59 -0
- package/scss/helper/typography/_list-style-type.md +11 -0
- package/scss/helper/typography/_list-style-type.scss +43 -0
- package/scss/helper/typography/_text-align.md +10 -0
- package/scss/helper/typography/_text-align.scss +34 -0
- package/scss/helper/typography/_text-color.md +110 -0
- package/scss/helper/typography/_text-color.scss +184 -0
- package/scss/helper/typography/_text-decoration.md +9 -0
- package/scss/helper/typography/_text-decoration.scss +34 -0
- package/scss/helper/typography/_text-overflow.md +9 -0
- package/scss/helper/typography/_text-overflow.scss +40 -0
- package/scss/helper/typography/_text-transform.md +10 -0
- package/scss/helper/typography/_text-transform.scss +40 -0
- package/scss/helper/typography/_vertical-align.md +12 -0
- package/scss/helper/typography/_vertical-align.scss +44 -0
- package/scss/helper/typography/_whitespace.md +11 -0
- package/scss/helper/typography/_whitespace.scss +42 -0
- package/scss/helper/typography/_word-break.md +9 -0
- package/scss/helper/typography/_word-break.scss +36 -0
- package/scss/helper.scss +72 -0
- package/scss/layout/_aside.scss +361 -0
- package/scss/layout/_grid.scss +173 -0
- package/scss/layout/_hbox.scss +127 -0
- package/scss/layout/_header.scss +0 -0
- package/scss/layout/_layout.scss +492 -0
- package/scss/layout/_vbox.scss +38 -0
- package/scss/themes/_ang-variables.scss +224 -0
- package/scss/themes/_antd-variables.scss +238 -0
- package/scss/themes/_common.scss +157 -0
- package/scss/themes/_cxd-variables.scss +222 -0
- package/scss/themes/_dark-variables.scss +229 -0
- package/scss/themes/ang-ie11.scss +1 -0
- package/scss/themes/ang.scss +27 -0
- package/scss/themes/antd-ie11.scss +1 -0
- package/scss/themes/antd.scss +5 -0
- package/scss/themes/cxd-ie11.scss +1 -0
- package/scss/themes/cxd.scss +5 -0
- package/scss/themes/dark-ie11.scss +1 -0
- package/scss/themes/dark.scss +34 -0
- package/scss/themes/default.scss +2 -0
- package/scss/themes/extract-antd-color.py +27 -0
|
@@ -0,0 +1,1234 @@
|
|
|
1
|
+
.#{$ns}Table {
|
|
2
|
+
position: relative;
|
|
3
|
+
|
|
4
|
+
// 黑科技,让 scrollIntoView 能够跑正确的位置
|
|
5
|
+
// margin-top: calc(var(--affix-offset-top) * -1);
|
|
6
|
+
// padding-top: var(--affix-offset-top);
|
|
7
|
+
scroll-margin-top: var(--affix-offset-top);
|
|
8
|
+
|
|
9
|
+
border-radius: var(--Table-borderRadius);
|
|
10
|
+
margin-bottom: var(--gap-md);
|
|
11
|
+
|
|
12
|
+
.#{$ns}Form-control > & {
|
|
13
|
+
margin-bottom: var(--gap-sm);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
&-fixedTop {
|
|
17
|
+
position: sticky;
|
|
18
|
+
top: var(--affix-offset-top);
|
|
19
|
+
background: var(--Table-bg);
|
|
20
|
+
display: block;
|
|
21
|
+
opacity: 1;
|
|
22
|
+
z-index: $zindex-sticky;
|
|
23
|
+
|
|
24
|
+
&:after {
|
|
25
|
+
content: '';
|
|
26
|
+
position: absolute;
|
|
27
|
+
width: 100%;
|
|
28
|
+
box-shadow: var(--Table-fixedTop-boxShadow);
|
|
29
|
+
z-index: 30;
|
|
30
|
+
height: 30px;
|
|
31
|
+
top: 100%;
|
|
32
|
+
pointer-events: none;
|
|
33
|
+
background-color: transparent;
|
|
34
|
+
margin-top: -2px;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
// box-sizing: content-box;
|
|
38
|
+
// padding: var(--gap-base) var(--gap-base) 0 var(--gap-base);
|
|
39
|
+
// margin: calc(var(--gap-base) * -1) calc(var(--gap-base) * -1) 0
|
|
40
|
+
// calc(var(--gap-base) * -1);
|
|
41
|
+
// > * {
|
|
42
|
+
// box-sizing: border-box;
|
|
43
|
+
// }
|
|
44
|
+
|
|
45
|
+
// &.in {
|
|
46
|
+
// // position: fixed;
|
|
47
|
+
// }
|
|
48
|
+
|
|
49
|
+
&.is-fakeHide {
|
|
50
|
+
> .#{$ns}Table-wrapper {
|
|
51
|
+
visibility: hidden;
|
|
52
|
+
position: absolute;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.#{$ns}Table-table {
|
|
57
|
+
table-layout: fixed;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
&-heading {
|
|
62
|
+
background: var(--Table-heading-bg);
|
|
63
|
+
padding: calc(
|
|
64
|
+
(
|
|
65
|
+
var(--Table-heading-height) - var(--Table-fontSize) *
|
|
66
|
+
var(--lineHeightBase)
|
|
67
|
+
) / 2
|
|
68
|
+
)
|
|
69
|
+
var(--gap-sm);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
&--unsaved &-heading {
|
|
73
|
+
background: var(--Table--unsaved-heading-bg);
|
|
74
|
+
color: var(--Table--unsaved-heading-color);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
&-wrapper {
|
|
78
|
+
overflow: hidden;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
&-placeholder {
|
|
82
|
+
color: var(--text--muted-color);
|
|
83
|
+
text-align: center;
|
|
84
|
+
height: var(--Table-placeholder-height);
|
|
85
|
+
background: transparent !important;
|
|
86
|
+
|
|
87
|
+
&:hover {
|
|
88
|
+
color: var(--text--muted-color);
|
|
89
|
+
background: transparent !important;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
> td {
|
|
93
|
+
vertical-align: middle !important;
|
|
94
|
+
text-align: center;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
&-empty-icon.icon {
|
|
98
|
+
display: block;
|
|
99
|
+
margin: 0 auto;
|
|
100
|
+
width: var(--Table-empty-icon-size);
|
|
101
|
+
height: var(--Table-empty-icon-size);
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
&-searchableForm {
|
|
106
|
+
background: var(--Table-searchableForm-backgroundColor);
|
|
107
|
+
border-radius: var(--Table-searchableForm-borderRadius);
|
|
108
|
+
margin-bottom: 0;
|
|
109
|
+
|
|
110
|
+
&-footer {
|
|
111
|
+
padding: var(--Panel-footerPadding);
|
|
112
|
+
clear: both;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
&-checkbox {
|
|
116
|
+
&-inner {
|
|
117
|
+
/* 消除checkbox自身的padding top */
|
|
118
|
+
padding-top: 0 !important;
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
&-header {
|
|
124
|
+
padding: var(--Table-toolbar-marginY) var(--Table-toolbar-marginX);
|
|
125
|
+
|
|
126
|
+
> * + .#{$ns}Button,
|
|
127
|
+
> * + .#{$ns}ButtonGroup,
|
|
128
|
+
> * + .#{$ns}ButtonToolbar {
|
|
129
|
+
margin-left: var(--Crud-toolbar-gap);
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
&-toolbar {
|
|
134
|
+
@include clearfix();
|
|
135
|
+
display: flex;
|
|
136
|
+
padding: var(--Table-toolbar-marginY) var(--Table-toolbar-marginX);
|
|
137
|
+
flex-wrap: wrap;
|
|
138
|
+
|
|
139
|
+
.#{$ns}DropDown {
|
|
140
|
+
&-menuItem {
|
|
141
|
+
height: auto;
|
|
142
|
+
|
|
143
|
+
.#{$ns}Checkbox {
|
|
144
|
+
display: flex;
|
|
145
|
+
align-items: center;
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
&-footerToolbar--affix,
|
|
152
|
+
&-footer--affix {
|
|
153
|
+
position: sticky;
|
|
154
|
+
bottom: var(--affix-offset-bottom);
|
|
155
|
+
background: var(--Table-bg);
|
|
156
|
+
z-index: $zindex-sticky;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
&.is-mobile {
|
|
160
|
+
.#{$ns}Table-toolbar {
|
|
161
|
+
.#{$ns}Form-item {
|
|
162
|
+
padding: 0;
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
&-header + &-toolbar {
|
|
168
|
+
padding-top: 0;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
&-contentWrap {
|
|
172
|
+
position: relative;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
&-actions {
|
|
176
|
+
display: inline-block;
|
|
177
|
+
|
|
178
|
+
> * {
|
|
179
|
+
margin-right: var(--Crud-toolbar-gap);
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
&-content {
|
|
184
|
+
min-height: 0.01%;
|
|
185
|
+
overflow-x: auto;
|
|
186
|
+
transform: translateZ(0);
|
|
187
|
+
|
|
188
|
+
&.use-virtual-list {
|
|
189
|
+
> table > .virtual-table-body-placeholder {
|
|
190
|
+
> tr {
|
|
191
|
+
padding: 0 !important;
|
|
192
|
+
margin: 0 !important;
|
|
193
|
+
border: 0 !important;
|
|
194
|
+
background: transparent !important;
|
|
195
|
+
}
|
|
196
|
+
> tr > td {
|
|
197
|
+
padding: 0 !important;
|
|
198
|
+
margin: 0 !important;
|
|
199
|
+
border: 0 !important;
|
|
200
|
+
background: transparent !important;
|
|
201
|
+
|
|
202
|
+
> div {
|
|
203
|
+
display: block;
|
|
204
|
+
height: 0;
|
|
205
|
+
width: 50px;
|
|
206
|
+
position: sticky;
|
|
207
|
+
left: 0;
|
|
208
|
+
will-change: height;
|
|
209
|
+
transform: translateZ(0);
|
|
210
|
+
contain: content;
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
> table > .virtual-table-body-placeholder.leading > tr > td > div {
|
|
216
|
+
height: var(--Table-scroll-offset);
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
> table > .virtual-table-body-placeholder.trailing > tr > td > div {
|
|
220
|
+
height: calc(
|
|
221
|
+
var(--Table-scroll-height) - var(--Table-frame-height) -
|
|
222
|
+
var(--Table-scroll-offset)
|
|
223
|
+
);
|
|
224
|
+
}
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
&-content-colDragLine {
|
|
229
|
+
position: absolute;
|
|
230
|
+
width: 7px;
|
|
231
|
+
top: 0;
|
|
232
|
+
bottom: 0;
|
|
233
|
+
right: -4px;
|
|
234
|
+
cursor: col-resize;
|
|
235
|
+
user-select: none;
|
|
236
|
+
opacity: 0.5;
|
|
237
|
+
z-index: 15;
|
|
238
|
+
|
|
239
|
+
&--disabled {
|
|
240
|
+
cursor: not-allowed;
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
&:hover,
|
|
244
|
+
&.is-resizing {
|
|
245
|
+
background: var(--primary);
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
&-table {
|
|
250
|
+
width: 100%;
|
|
251
|
+
min-width: 100%;
|
|
252
|
+
margin-bottom: 0;
|
|
253
|
+
font-size: var(--Table-fontSize);
|
|
254
|
+
color: var(--Table-color);
|
|
255
|
+
background: var(--Table-bg);
|
|
256
|
+
border-spacing: 0;
|
|
257
|
+
border-collapse: separate;
|
|
258
|
+
|
|
259
|
+
&.is-layout-fixed {
|
|
260
|
+
table-layout: fixed !important;
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
& th,
|
|
264
|
+
& td {
|
|
265
|
+
text-align: left;
|
|
266
|
+
border-color: transparent;
|
|
267
|
+
border-bottom: var(--Table-borderWidth) solid var(--Table-borderColor);
|
|
268
|
+
|
|
269
|
+
&.is-sticky {
|
|
270
|
+
position: sticky !important;
|
|
271
|
+
z-index: 20;
|
|
272
|
+
background: inherit;
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
&.is-sticky-last-left:after {
|
|
276
|
+
position: absolute;
|
|
277
|
+
top: 0;
|
|
278
|
+
right: 0;
|
|
279
|
+
bottom: -1px;
|
|
280
|
+
width: 30px;
|
|
281
|
+
transform: translateX(100%);
|
|
282
|
+
transition: box-shadow 0.3s;
|
|
283
|
+
content: '';
|
|
284
|
+
pointer-events: none;
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
&.is-sticky-first-right:after {
|
|
288
|
+
position: absolute;
|
|
289
|
+
top: 0;
|
|
290
|
+
bottom: -1px;
|
|
291
|
+
left: 0;
|
|
292
|
+
width: 30px;
|
|
293
|
+
transform: translateX(-100%);
|
|
294
|
+
transition: box-shadow 0.3s;
|
|
295
|
+
content: '';
|
|
296
|
+
pointer-events: none;
|
|
297
|
+
}
|
|
298
|
+
& .label {
|
|
299
|
+
font-size: 90%;
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
& > .#{$ns}Form,
|
|
303
|
+
& > .#{$ns}Form-item > .#{$ns}Form-control:not(.is-thin) {
|
|
304
|
+
min-width: var(--Form-control-widthBase);
|
|
305
|
+
|
|
306
|
+
&.#{$ns}CheckboxControl,
|
|
307
|
+
&.#{$ns}SwitchControl,
|
|
308
|
+
&.#{$ns}RadiosControl {
|
|
309
|
+
min-width: auto;
|
|
310
|
+
}
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
.#{$ns}Form-static {
|
|
314
|
+
min-height: auto;
|
|
315
|
+
}
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
&.is-layout-fixed td {
|
|
319
|
+
white-space: normal;
|
|
320
|
+
word-break: break-all;
|
|
321
|
+
overflow: hidden;
|
|
322
|
+
text-overflow: ellipsis;
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
&.table-fixed-left .is-sticky-last-left:after {
|
|
326
|
+
box-shadow: var(--Table-fixedLeft-boxShadow);
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
&.table-fixed-right .is-sticky-first-right:after {
|
|
330
|
+
box-shadow: var(--Table-fixedRight-boxShadow);
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
& th {
|
|
334
|
+
position: relative;
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
& th.text-center,
|
|
338
|
+
& td.text-center,
|
|
339
|
+
& th[colspan],
|
|
340
|
+
& td[colspan] {
|
|
341
|
+
text-align: center;
|
|
342
|
+
}
|
|
343
|
+
|
|
344
|
+
& th.text-right,
|
|
345
|
+
& td.text-right {
|
|
346
|
+
text-align: right;
|
|
347
|
+
}
|
|
348
|
+
|
|
349
|
+
& th.align-top,
|
|
350
|
+
& td.align-top {
|
|
351
|
+
vertical-align: top !important;
|
|
352
|
+
}
|
|
353
|
+
|
|
354
|
+
& th.align-bottom,
|
|
355
|
+
& td.align-bottom {
|
|
356
|
+
vertical-align: bottom !important;
|
|
357
|
+
}
|
|
358
|
+
|
|
359
|
+
& td .#{$ns}SwitchControl {
|
|
360
|
+
padding-top: 0;
|
|
361
|
+
}
|
|
362
|
+
|
|
363
|
+
&--affixHeader {
|
|
364
|
+
margin-top: calc(var(--Table-thead-height) * -1);
|
|
365
|
+
|
|
366
|
+
> thead {
|
|
367
|
+
visibility: hidden;
|
|
368
|
+
}
|
|
369
|
+
}
|
|
370
|
+
|
|
371
|
+
&--withCombine {
|
|
372
|
+
> thead > tr > th,
|
|
373
|
+
> tbody > tr > td {
|
|
374
|
+
&:first-child {
|
|
375
|
+
padding-left: var(--TableCell-paddingX) !important;
|
|
376
|
+
}
|
|
377
|
+
|
|
378
|
+
&:last-child {
|
|
379
|
+
padding-right: var(--TableCell-paddingX) !important;
|
|
380
|
+
}
|
|
381
|
+
}
|
|
382
|
+
|
|
383
|
+
// reset
|
|
384
|
+
> tbody > tr {
|
|
385
|
+
@if $Table-strip-bg != transparent {
|
|
386
|
+
&.#{$ns}Table-tr--odd {
|
|
387
|
+
background: transparent;
|
|
388
|
+
}
|
|
389
|
+
}
|
|
390
|
+
|
|
391
|
+
&:hover {
|
|
392
|
+
background: transparent;
|
|
393
|
+
}
|
|
394
|
+
|
|
395
|
+
> td {
|
|
396
|
+
vertical-align: middle;
|
|
397
|
+
}
|
|
398
|
+
|
|
399
|
+
> td:not(:last-child) {
|
|
400
|
+
border-right: var(--Table-borderWidth) solid var(--Table-borderColor);
|
|
401
|
+
}
|
|
402
|
+
}
|
|
403
|
+
}
|
|
404
|
+
|
|
405
|
+
&--checkOnItemClick {
|
|
406
|
+
> tbody > tr {
|
|
407
|
+
cursor: pointer;
|
|
408
|
+
}
|
|
409
|
+
}
|
|
410
|
+
|
|
411
|
+
> thead > tr {
|
|
412
|
+
background: var(--Table-thead-bg);
|
|
413
|
+
> th {
|
|
414
|
+
background: inherit;
|
|
415
|
+
padding: var(--TableCell-paddingY) var(--TableCell-paddingX);
|
|
416
|
+
text-align: left;
|
|
417
|
+
|
|
418
|
+
&:first-child {
|
|
419
|
+
padding-left: px2rem(12px);
|
|
420
|
+
|
|
421
|
+
&.#{$ns}Table-checkCell {
|
|
422
|
+
padding-left: var(--TableCell--edge-paddingX);
|
|
423
|
+
}
|
|
424
|
+
}
|
|
425
|
+
|
|
426
|
+
&:last-child {
|
|
427
|
+
padding-right: px2rem(12px);
|
|
428
|
+
|
|
429
|
+
.#{$ns}Table-content-colDragLine {
|
|
430
|
+
// 避免出现横向滚动条
|
|
431
|
+
width: 4px;
|
|
432
|
+
right: 0;
|
|
433
|
+
}
|
|
434
|
+
}
|
|
435
|
+
|
|
436
|
+
&:not(:last-child) {
|
|
437
|
+
border-right: var(--Table-thead-borderWidth) solid
|
|
438
|
+
var(--Table-thead-borderColor);
|
|
439
|
+
}
|
|
440
|
+
|
|
441
|
+
border-bottom: var(--Table-thead-borderWidth) solid
|
|
442
|
+
var(--Table-thead-borderColor);
|
|
443
|
+
|
|
444
|
+
font-size: var(--Table-thead-fontSize);
|
|
445
|
+
color: var(--Table-thead-color);
|
|
446
|
+
font-weight: var(--fontWeightNormal);
|
|
447
|
+
white-space: nowrap;
|
|
448
|
+
|
|
449
|
+
// .#{$ns}TableCell--title {
|
|
450
|
+
// display: flex;
|
|
451
|
+
// align-items: center;
|
|
452
|
+
// }
|
|
453
|
+
.#{$ns}Remark {
|
|
454
|
+
margin-left: var(--gap-xs);
|
|
455
|
+
}
|
|
456
|
+
|
|
457
|
+
.#{$ns}TableCell--title {
|
|
458
|
+
min-width: fit-content;
|
|
459
|
+
display: inline-block;
|
|
460
|
+
}
|
|
461
|
+
}
|
|
462
|
+
}
|
|
463
|
+
|
|
464
|
+
> thead > tr > th:first-child {
|
|
465
|
+
border-top-left-radius: 4px;
|
|
466
|
+
}
|
|
467
|
+
|
|
468
|
+
> thead > tr > th:last-child {
|
|
469
|
+
border-top-right-radius: 4px;
|
|
470
|
+
}
|
|
471
|
+
|
|
472
|
+
> thead > tr + tr {
|
|
473
|
+
border-top: var(--Table-borderWidth) solid var(--Table-borderColor);
|
|
474
|
+
}
|
|
475
|
+
|
|
476
|
+
> thead > tr {
|
|
477
|
+
border-bottom: var(--Table-borderWidth) solid var(--Table-borderColor);
|
|
478
|
+
}
|
|
479
|
+
@at-root .#{$ns}Table-table-tr {
|
|
480
|
+
background: var(--Table-bg);
|
|
481
|
+
}
|
|
482
|
+
|
|
483
|
+
> tbody > tr {
|
|
484
|
+
position: relative;
|
|
485
|
+
|
|
486
|
+
& + tr {
|
|
487
|
+
border-top: var(--Table-borderWidth) solid var(--Table-borderColor);
|
|
488
|
+
|
|
489
|
+
> th {
|
|
490
|
+
border-top: var(--Table-thead-borderWidth) solid
|
|
491
|
+
var(--Table-thead-borderColor);
|
|
492
|
+
}
|
|
493
|
+
}
|
|
494
|
+
|
|
495
|
+
> th {
|
|
496
|
+
background: var(--Table-thead-bg);
|
|
497
|
+
// font-size: var(--Table-thead-fontSize);
|
|
498
|
+
color: var(--Table-thead-color);
|
|
499
|
+
font-weight: var(--fontWeightNormal);
|
|
500
|
+
white-space: nowrap;
|
|
501
|
+
|
|
502
|
+
border-right: var(--Table-thead-borderWidth) solid
|
|
503
|
+
var(--Table-thead-borderColor);
|
|
504
|
+
}
|
|
505
|
+
|
|
506
|
+
> td,
|
|
507
|
+
> th {
|
|
508
|
+
padding: var(--TableCell-paddingY) var(--TableCell-paddingX);
|
|
509
|
+
position: relative;
|
|
510
|
+
|
|
511
|
+
&:first-child {
|
|
512
|
+
padding-left: var(--TableCell--edge-paddingX);
|
|
513
|
+
}
|
|
514
|
+
|
|
515
|
+
&:last-child {
|
|
516
|
+
padding-right: var(--TableCell--edge-paddingX);
|
|
517
|
+
}
|
|
518
|
+
}
|
|
519
|
+
|
|
520
|
+
@if $Table-strip-bg != transparent {
|
|
521
|
+
background: transparent;
|
|
522
|
+
|
|
523
|
+
&.#{$ns}Table-tr--odd {
|
|
524
|
+
background: var(--Table-strip-bg);
|
|
525
|
+
}
|
|
526
|
+
}
|
|
527
|
+
|
|
528
|
+
&.#{$ns}Table-tr--hasItemAction:hover {
|
|
529
|
+
cursor: pointer;
|
|
530
|
+
}
|
|
531
|
+
|
|
532
|
+
&:hover,
|
|
533
|
+
&.is-hovered {
|
|
534
|
+
background: var(--Table-onHover-bg);
|
|
535
|
+
border-color: var(--Table-onHover-borderColor);
|
|
536
|
+
color: var(--Table-onHover-color);
|
|
537
|
+
|
|
538
|
+
& + tr {
|
|
539
|
+
border-color: var(--Table-onHover-borderColor);
|
|
540
|
+
}
|
|
541
|
+
}
|
|
542
|
+
|
|
543
|
+
&:active {
|
|
544
|
+
background: var(--Table-onHover-bg);
|
|
545
|
+
}
|
|
546
|
+
|
|
547
|
+
&:hover.#{$ns}Table-placeholder {
|
|
548
|
+
color: var(--text--muted-color);
|
|
549
|
+
}
|
|
550
|
+
|
|
551
|
+
&.is-checked {
|
|
552
|
+
background: var(--Table-onChecked-bg);
|
|
553
|
+
border-color: var(--Table-onChecked-borderColor);
|
|
554
|
+
color: var(--Table-onChecked-color);
|
|
555
|
+
|
|
556
|
+
& + tr {
|
|
557
|
+
border-color: var(--Table-onChecked-borderColor);
|
|
558
|
+
}
|
|
559
|
+
}
|
|
560
|
+
|
|
561
|
+
&.is-moved,
|
|
562
|
+
&.is-modified {
|
|
563
|
+
background: var(--Table-onModified-bg);
|
|
564
|
+
border-color: var(--Table-onModified-borderColor);
|
|
565
|
+
color: var(--Table-onModified-color);
|
|
566
|
+
|
|
567
|
+
& + tr {
|
|
568
|
+
border-color: var(--Table-onModified-borderColor);
|
|
569
|
+
}
|
|
570
|
+
}
|
|
571
|
+
|
|
572
|
+
&.is-summary {
|
|
573
|
+
// font-weight: var(--fontWeightNormal);
|
|
574
|
+
}
|
|
575
|
+
|
|
576
|
+
&.bg-light {
|
|
577
|
+
@include color-variant($light, 2%, 3%, 3%, 5%);
|
|
578
|
+
color: $text-color;
|
|
579
|
+
}
|
|
580
|
+
|
|
581
|
+
&.bg-dark {
|
|
582
|
+
@include color-variant($dark, 5%, 10%, 5%, 10%);
|
|
583
|
+
@include font-variant($dark);
|
|
584
|
+
}
|
|
585
|
+
|
|
586
|
+
&.bg-black {
|
|
587
|
+
@include color-variant($black, 5%, 10%, 5%, 10%);
|
|
588
|
+
@include font-variant($black);
|
|
589
|
+
}
|
|
590
|
+
|
|
591
|
+
&.bg-primary {
|
|
592
|
+
@include color-variant($primary, 5%, 10%, 5%, 10%);
|
|
593
|
+
@include font-variant($primary);
|
|
594
|
+
}
|
|
595
|
+
|
|
596
|
+
&.bg-success {
|
|
597
|
+
@include color-variant($success, 5%, 10%, 5%, 10%);
|
|
598
|
+
@include font-variant($success);
|
|
599
|
+
}
|
|
600
|
+
|
|
601
|
+
&.bg-info {
|
|
602
|
+
@include color-variant($info, 5%, 10%, 5%, 10%);
|
|
603
|
+
@include font-variant($info);
|
|
604
|
+
}
|
|
605
|
+
|
|
606
|
+
&.bg-warning {
|
|
607
|
+
@include color-variant($warning, 5%, 10%, 5%, 10%);
|
|
608
|
+
@include font-variant($warning);
|
|
609
|
+
}
|
|
610
|
+
|
|
611
|
+
&.bg-danger {
|
|
612
|
+
@include color-variant($danger, 5%, 10%, 5%, 10%);
|
|
613
|
+
@include font-variant($danger);
|
|
614
|
+
}
|
|
615
|
+
|
|
616
|
+
&.is-dragging {
|
|
617
|
+
opacity: var(--Table-onDragging-opacity);
|
|
618
|
+
background-color: var(--Table-onDragging-bg);
|
|
619
|
+
}
|
|
620
|
+
}
|
|
621
|
+
|
|
622
|
+
> tbody.is-dragging > tr:not(.is-dragging) {
|
|
623
|
+
background: var(--Table-bg);
|
|
624
|
+
color: var(--Table-color);
|
|
625
|
+
}
|
|
626
|
+
|
|
627
|
+
> tbody.is-dragging > tr:not(.is-drop-allowed):not(.is-dragging) {
|
|
628
|
+
color: var(--table-body-disabled-color);
|
|
629
|
+
background-color: var(--table-body-disabled-bg-color);
|
|
630
|
+
}
|
|
631
|
+
|
|
632
|
+
.#{$ns}Table-divider2 {
|
|
633
|
+
content: '';
|
|
634
|
+
position: absolute;
|
|
635
|
+
height: px2rem(1px);
|
|
636
|
+
top: 50%;
|
|
637
|
+
width: px2rem(10px);
|
|
638
|
+
background: var(--Table-tree-borderColor);
|
|
639
|
+
}
|
|
640
|
+
|
|
641
|
+
.#{$ns}Table-divider3 {
|
|
642
|
+
position: absolute;
|
|
643
|
+
width: px2rem(1px);
|
|
644
|
+
top: 0;
|
|
645
|
+
bottom: 0;
|
|
646
|
+
height: 100%;
|
|
647
|
+
background: var(--Table-tree-borderColor);
|
|
648
|
+
}
|
|
649
|
+
|
|
650
|
+
> thead > tr > th.#{$ns}Table-checkCell,
|
|
651
|
+
> tbody > tr > td.#{$ns}Table-checkCell {
|
|
652
|
+
width: px2rem(1px);
|
|
653
|
+
padding-right: var(--TableCell-paddingX);
|
|
654
|
+
white-space: nowrap;
|
|
655
|
+
|
|
656
|
+
.#{$ns}Checkbox {
|
|
657
|
+
margin: 0;
|
|
658
|
+
}
|
|
659
|
+
}
|
|
660
|
+
|
|
661
|
+
> tbody > tr > td.#{$ns}Table-checkCell {
|
|
662
|
+
border-right: 0;
|
|
663
|
+
}
|
|
664
|
+
|
|
665
|
+
> thead > tr > th.#{$ns}Table-expandCell,
|
|
666
|
+
> tbody > tr > td.#{$ns}Table-expandCell {
|
|
667
|
+
border-right: 0;
|
|
668
|
+
width: px2rem(1px);
|
|
669
|
+
padding-right: 0;
|
|
670
|
+
}
|
|
671
|
+
|
|
672
|
+
> thead > tr > th.#{$ns}Table-dragCell,
|
|
673
|
+
> tbody > tr > td.#{$ns}Table-dragCell {
|
|
674
|
+
border-right: 0;
|
|
675
|
+
width: px2rem(1px);
|
|
676
|
+
padding-right: 0;
|
|
677
|
+
cursor: move;
|
|
678
|
+
|
|
679
|
+
> svg {
|
|
680
|
+
vertical-align: middle;
|
|
681
|
+
top: 0;
|
|
682
|
+
}
|
|
683
|
+
}
|
|
684
|
+
|
|
685
|
+
> tbody > tr > td.#{$ns}Table-expandCell {
|
|
686
|
+
position: relative;
|
|
687
|
+
}
|
|
688
|
+
|
|
689
|
+
> tbody > tr.is-expanded > td.#{$ns}Table-expandCell {
|
|
690
|
+
// position: relative;
|
|
691
|
+
|
|
692
|
+
&::before {
|
|
693
|
+
content: '';
|
|
694
|
+
position: absolute;
|
|
695
|
+
width: px2rem(1px);
|
|
696
|
+
top: 50%;
|
|
697
|
+
bottom: 0;
|
|
698
|
+
left: px2rem(23px);
|
|
699
|
+
height: auto;
|
|
700
|
+
background: var(--Table-tree-borderColor);
|
|
701
|
+
}
|
|
702
|
+
}
|
|
703
|
+
|
|
704
|
+
> thead > tr > th.#{$ns}TableCell--sortable,
|
|
705
|
+
> thead > tr > th.#{$ns}TableCell--searchable,
|
|
706
|
+
> thead > tr > th.#{$ns}TableCell--filterable {
|
|
707
|
+
> .#{$ns}TableCell--title {
|
|
708
|
+
display: inline-block;
|
|
709
|
+
}
|
|
710
|
+
}
|
|
711
|
+
|
|
712
|
+
> thead > tr > th.#{$ns}Table-primayCell,
|
|
713
|
+
> tbody > tr > td.#{$ns}Table-primayCell {
|
|
714
|
+
white-space: nowrap; // 树形表格展示标题栏,不要换行
|
|
715
|
+
|
|
716
|
+
> .#{$ns}Spinner {
|
|
717
|
+
vertical-align: middle;
|
|
718
|
+
}
|
|
719
|
+
|
|
720
|
+
> [data-role='form-item'] {
|
|
721
|
+
display: inline-block;
|
|
722
|
+
min-width: px2rem(160px);
|
|
723
|
+
}
|
|
724
|
+
}
|
|
725
|
+
}
|
|
726
|
+
|
|
727
|
+
&.is-mobile {
|
|
728
|
+
.#{$ns}Table-table > tbody > tr {
|
|
729
|
+
&:hover,
|
|
730
|
+
&.is-hovered {
|
|
731
|
+
background: var(--Table-bg);
|
|
732
|
+
border-color: var(--Table-borderColor);
|
|
733
|
+
color: var(--Table-color);
|
|
734
|
+
|
|
735
|
+
& + tr {
|
|
736
|
+
border-color: var(--Table-borderColor);
|
|
737
|
+
}
|
|
738
|
+
}
|
|
739
|
+
}
|
|
740
|
+
}
|
|
741
|
+
|
|
742
|
+
&Cell-sortBtn,
|
|
743
|
+
&Cell-searchBtn,
|
|
744
|
+
&Cell-filterBtn {
|
|
745
|
+
display: inline-block;
|
|
746
|
+
vertical-align: top;
|
|
747
|
+
padding-left: var(--gap-sm);
|
|
748
|
+
|
|
749
|
+
&:hover {
|
|
750
|
+
color: var(--TableCell-searchBtn--onActive-color);
|
|
751
|
+
}
|
|
752
|
+
}
|
|
753
|
+
|
|
754
|
+
&Cell-sortBtn {
|
|
755
|
+
cursor: pointer;
|
|
756
|
+
width: var(--TableCell-sortBtn-width);
|
|
757
|
+
height: var(--gap-md);
|
|
758
|
+
flex-direction: column;
|
|
759
|
+
justify-content: center;
|
|
760
|
+
align-items: center;
|
|
761
|
+
color: var(--icon-color);
|
|
762
|
+
|
|
763
|
+
&--up > svg,
|
|
764
|
+
&--down > svg,
|
|
765
|
+
&--default > svg {
|
|
766
|
+
color: inherit;
|
|
767
|
+
width: 12px;
|
|
768
|
+
height: 12px;
|
|
769
|
+
}
|
|
770
|
+
|
|
771
|
+
&--up,
|
|
772
|
+
&--down,
|
|
773
|
+
&--default {
|
|
774
|
+
display: none;
|
|
775
|
+
position: absolute;
|
|
776
|
+
z-index: 2;
|
|
777
|
+
font-style: normal;
|
|
778
|
+
|
|
779
|
+
&.is-active {
|
|
780
|
+
display: inline-block;
|
|
781
|
+
}
|
|
782
|
+
}
|
|
783
|
+
|
|
784
|
+
&--default {
|
|
785
|
+
&.is-active {
|
|
786
|
+
color: var(--text--muted-color);
|
|
787
|
+
|
|
788
|
+
&:hover {
|
|
789
|
+
color: var(--TableCell-searchBtn--onActive-color);
|
|
790
|
+
}
|
|
791
|
+
}
|
|
792
|
+
}
|
|
793
|
+
|
|
794
|
+
&--up,
|
|
795
|
+
&--down {
|
|
796
|
+
&.is-active {
|
|
797
|
+
color: var(--TableCell-sortBtn--onActive-color);
|
|
798
|
+
}
|
|
799
|
+
}
|
|
800
|
+
}
|
|
801
|
+
|
|
802
|
+
&Cell-searchBtn {
|
|
803
|
+
cursor: pointer;
|
|
804
|
+
color: var(--text--muted-color);
|
|
805
|
+
|
|
806
|
+
svg.icon {
|
|
807
|
+
width: 12px;
|
|
808
|
+
height: 12px;
|
|
809
|
+
}
|
|
810
|
+
|
|
811
|
+
&.is-active {
|
|
812
|
+
color: var(--TableCell-searchBtn--onActive-color);
|
|
813
|
+
}
|
|
814
|
+
|
|
815
|
+
&.is-opened {
|
|
816
|
+
color: var(--Button--default-onActive-border);
|
|
817
|
+
}
|
|
818
|
+
}
|
|
819
|
+
|
|
820
|
+
&Cell-searchPopOver {
|
|
821
|
+
border: none;
|
|
822
|
+
min-width: px2rem(320px);
|
|
823
|
+
max-width: px2rem(640px);
|
|
824
|
+
|
|
825
|
+
> .#{$ns}Panel {
|
|
826
|
+
margin: 0;
|
|
827
|
+
}
|
|
828
|
+
}
|
|
829
|
+
|
|
830
|
+
&Cell-filterBtn {
|
|
831
|
+
cursor: pointer;
|
|
832
|
+
width: var(--TableCell-filterBtn-width);
|
|
833
|
+
color: var(--text--muted-color);
|
|
834
|
+
|
|
835
|
+
svg.icon {
|
|
836
|
+
width: 12px;
|
|
837
|
+
height: 12px;
|
|
838
|
+
}
|
|
839
|
+
|
|
840
|
+
&.is-active {
|
|
841
|
+
color: var(--TableCell-filterBtn--onActive-color);
|
|
842
|
+
}
|
|
843
|
+
|
|
844
|
+
.#{$ns}Remark {
|
|
845
|
+
display: inline;
|
|
846
|
+
}
|
|
847
|
+
}
|
|
848
|
+
|
|
849
|
+
&Cell-filterPopOver {
|
|
850
|
+
border: none;
|
|
851
|
+
width: px2rem(160px);
|
|
852
|
+
|
|
853
|
+
.#{$ns}DropDown-menu {
|
|
854
|
+
margin: 0;
|
|
855
|
+
padding: 0;
|
|
856
|
+
border-radius: 0;
|
|
857
|
+
|
|
858
|
+
.#{$ns}DropDown-divider {
|
|
859
|
+
height: var(--TableCell-filterPopOver-dropDownItem-height);
|
|
860
|
+
line-height: var(--TableCell-filterPopOver-dropDownItem-height);
|
|
861
|
+
padding: var(--TableCell-filterPopOver-dropDownItem-padding);
|
|
862
|
+
background: var(--white);
|
|
863
|
+
margin: 0;
|
|
864
|
+
|
|
865
|
+
&:hover {
|
|
866
|
+
background: var(--light);
|
|
867
|
+
color: var(--primary);
|
|
868
|
+
}
|
|
869
|
+
|
|
870
|
+
&.is-selected {
|
|
871
|
+
background: var(--light);
|
|
872
|
+
color: var(--primary);
|
|
873
|
+
}
|
|
874
|
+
|
|
875
|
+
.#{$ns}Checkbox {
|
|
876
|
+
width: 100%;
|
|
877
|
+
margin: 0;
|
|
878
|
+
}
|
|
879
|
+
}
|
|
880
|
+
}
|
|
881
|
+
|
|
882
|
+
.#{$ns}SearchBox {
|
|
883
|
+
margin-left: var(--gap-xs);
|
|
884
|
+
margin-top: var(--gap-xs);
|
|
885
|
+
}
|
|
886
|
+
}
|
|
887
|
+
|
|
888
|
+
&-itemActions-wrap {
|
|
889
|
+
position: absolute;
|
|
890
|
+
width: 100%;
|
|
891
|
+
z-index: calc(var(--Table-fixed-zIndex) + 1);
|
|
892
|
+
left: 0;
|
|
893
|
+
top: 0;
|
|
894
|
+
min-height: 30px;
|
|
895
|
+
pointer-events: none;
|
|
896
|
+
box-shadow: var(--Table-onHover-boxShadow);
|
|
897
|
+
}
|
|
898
|
+
|
|
899
|
+
&-itemActions {
|
|
900
|
+
pointer-events: all;
|
|
901
|
+
position: absolute;
|
|
902
|
+
// background: var(--Table-onHover-bg);
|
|
903
|
+
background: linear-gradient(
|
|
904
|
+
90deg,
|
|
905
|
+
rgba(var(--Table-onHover-bg-rgb), 0) 0%,
|
|
906
|
+
rgba(var(--Table-onHover-bg-rgb), 1) 20%,
|
|
907
|
+
rgba(var(--Table-onHover-bg-rgb), 1) 100%
|
|
908
|
+
);
|
|
909
|
+
top: var(--Table-borderWidth);
|
|
910
|
+
bottom: 0;
|
|
911
|
+
right: 0;
|
|
912
|
+
padding-left: px2rem(80px);
|
|
913
|
+
padding-right: var(--TableCell-paddingX);
|
|
914
|
+
display: flex;
|
|
915
|
+
align-items: center;
|
|
916
|
+
|
|
917
|
+
a {
|
|
918
|
+
cursor: pointer;
|
|
919
|
+
padding: var(--gap-xs) var(--gap-sm);
|
|
920
|
+
color: var(--link-color);
|
|
921
|
+
text-decoration: var(--link-decoration);
|
|
922
|
+
|
|
923
|
+
&:hover {
|
|
924
|
+
color: var(--link-onHover-color);
|
|
925
|
+
text-decoration: var(--link-onHover-decoration);
|
|
926
|
+
}
|
|
927
|
+
|
|
928
|
+
&.is-disabled {
|
|
929
|
+
pointer-events: none;
|
|
930
|
+
opacity: var(--Button-onDisabled-opacity);
|
|
931
|
+
color: var(--text--muted-color);
|
|
932
|
+
}
|
|
933
|
+
}
|
|
934
|
+
}
|
|
935
|
+
|
|
936
|
+
&-dragTip {
|
|
937
|
+
color: var(--text--loud-color);
|
|
938
|
+
clear: both;
|
|
939
|
+
margin-top: var(--gap-xs);
|
|
940
|
+
width: 100%;
|
|
941
|
+
color: var(--info);
|
|
942
|
+
}
|
|
943
|
+
|
|
944
|
+
&-foot {
|
|
945
|
+
background: var(--Table-thead-bg);
|
|
946
|
+
}
|
|
947
|
+
|
|
948
|
+
&-footTable {
|
|
949
|
+
position: relative;
|
|
950
|
+
width: 100%;
|
|
951
|
+
border-spacing: 0;
|
|
952
|
+
border-collapse: collapse;
|
|
953
|
+
margin-bottom: 0;
|
|
954
|
+
background: transparent;
|
|
955
|
+
|
|
956
|
+
> tbody > tr > th {
|
|
957
|
+
width: px2rem(120px);
|
|
958
|
+
text-align: right;
|
|
959
|
+
padding: var(--TableCell-paddingY) var(--TableCell-paddingX);
|
|
960
|
+
}
|
|
961
|
+
|
|
962
|
+
> tbody > tr > td {
|
|
963
|
+
word-break: break-all;
|
|
964
|
+
padding: var(--TableCell-paddingY) var(--TableCell-paddingX);
|
|
965
|
+
}
|
|
966
|
+
|
|
967
|
+
> tbody > tr:not(:first-child) {
|
|
968
|
+
border-top: var(--Table-borderWidth) solid
|
|
969
|
+
var(--Table-tbody-borderTopColor);
|
|
970
|
+
}
|
|
971
|
+
}
|
|
972
|
+
|
|
973
|
+
&-retryBtn {
|
|
974
|
+
color: var(--Form-feedBack-color);
|
|
975
|
+
cursor: pointer;
|
|
976
|
+
&:hover {
|
|
977
|
+
color: var(--Form-feedBack-color);
|
|
978
|
+
}
|
|
979
|
+
}
|
|
980
|
+
|
|
981
|
+
&-expandBtn,
|
|
982
|
+
&-expandBtn2 {
|
|
983
|
+
position: relative;
|
|
984
|
+
z-index: 1;
|
|
985
|
+
color: var(--Table-expandBtn-color);
|
|
986
|
+
display: inline-flex;
|
|
987
|
+
justify-content: center;
|
|
988
|
+
align-items: center;
|
|
989
|
+
width: px2rem(14px);
|
|
990
|
+
line-height: 1;
|
|
991
|
+
height: 16px;
|
|
992
|
+
|
|
993
|
+
> svg {
|
|
994
|
+
display: inline-block;
|
|
995
|
+
text-align: center;
|
|
996
|
+
cursor: pointer;
|
|
997
|
+
transition: transform ease-in-out var(--animation-duration),
|
|
998
|
+
top ease-in-out var(--animation-duration);
|
|
999
|
+
position: relative;
|
|
1000
|
+
transform-origin: 50% 50%;
|
|
1001
|
+
width: px2rem(10px);
|
|
1002
|
+
height: px2rem(10px);
|
|
1003
|
+
top: 0;
|
|
1004
|
+
transform: rotate(90deg);
|
|
1005
|
+
}
|
|
1006
|
+
|
|
1007
|
+
&.is-active > svg {
|
|
1008
|
+
transform: rotate(-90deg);
|
|
1009
|
+
}
|
|
1010
|
+
|
|
1011
|
+
&:hover {
|
|
1012
|
+
text-decoration: none;
|
|
1013
|
+
}
|
|
1014
|
+
}
|
|
1015
|
+
|
|
1016
|
+
&-expandBtn2 {
|
|
1017
|
+
margin-right: var(--gap-sm);
|
|
1018
|
+
}
|
|
1019
|
+
|
|
1020
|
+
&-expandBtn2 + * {
|
|
1021
|
+
display: inline-block;
|
|
1022
|
+
}
|
|
1023
|
+
|
|
1024
|
+
&-indent {
|
|
1025
|
+
display: inline-block;
|
|
1026
|
+
}
|
|
1027
|
+
|
|
1028
|
+
&-expandSpace {
|
|
1029
|
+
display: inline-block;
|
|
1030
|
+
width: px2rem(22px);
|
|
1031
|
+
}
|
|
1032
|
+
|
|
1033
|
+
&-dragBtn {
|
|
1034
|
+
margin-right: var(--gap-xs);
|
|
1035
|
+
display: inline-block;
|
|
1036
|
+
visibility: hidden;
|
|
1037
|
+
cursor: move;
|
|
1038
|
+
color: var(--icon-color);
|
|
1039
|
+
|
|
1040
|
+
&:hover {
|
|
1041
|
+
text-decoration: none;
|
|
1042
|
+
color: var(--icon-onHover-color);
|
|
1043
|
+
}
|
|
1044
|
+
|
|
1045
|
+
> svg {
|
|
1046
|
+
vertical-align: -2px;
|
|
1047
|
+
}
|
|
1048
|
+
}
|
|
1049
|
+
|
|
1050
|
+
&-table > tbody > tr:hover .#{$ns}Table-dragBtn,
|
|
1051
|
+
&-table > tbody > tr.is-dragging .#{$ns}Table-dragBtn,
|
|
1052
|
+
&-table > tbody > tr.is-drop-allowed .#{$ns}Table-dragBtn {
|
|
1053
|
+
visibility: visible;
|
|
1054
|
+
}
|
|
1055
|
+
|
|
1056
|
+
.fake-hide {
|
|
1057
|
+
visibility: hidden;
|
|
1058
|
+
position: absolute;
|
|
1059
|
+
}
|
|
1060
|
+
|
|
1061
|
+
&-badge {
|
|
1062
|
+
position: absolute;
|
|
1063
|
+
top: 0;
|
|
1064
|
+
left: 0;
|
|
1065
|
+
z-index: 25; // 因为 sticky 的时候是 20
|
|
1066
|
+
}
|
|
1067
|
+
|
|
1068
|
+
&--autoFillHeight {
|
|
1069
|
+
margin-bottom: 0;
|
|
1070
|
+
|
|
1071
|
+
> .#{$ns}Table-contentWrap {
|
|
1072
|
+
> .#{$ns}Table-content > table {
|
|
1073
|
+
border-top: none; // 不然会导致拖动时顶部露出内容
|
|
1074
|
+
|
|
1075
|
+
&.#{$ns}Table-table--tableFillHeight {
|
|
1076
|
+
> tbody {
|
|
1077
|
+
height: calc(
|
|
1078
|
+
var(--Table-content-height) - var(--Table-thead-height) - 20px
|
|
1079
|
+
);
|
|
1080
|
+
|
|
1081
|
+
> tr > td {
|
|
1082
|
+
border-bottom: none;
|
|
1083
|
+
}
|
|
1084
|
+
}
|
|
1085
|
+
}
|
|
1086
|
+
}
|
|
1087
|
+
|
|
1088
|
+
> .#{$ns}Table-content table thead {
|
|
1089
|
+
position: sticky; // 简单实现表头吸顶效果,不考虑 IE 11 不然太麻烦
|
|
1090
|
+
top: 0;
|
|
1091
|
+
z-index: 21; // 由于 badge 导致 tbody 里 tr 的 position: relative 了
|
|
1092
|
+
}
|
|
1093
|
+
}
|
|
1094
|
+
|
|
1095
|
+
> .#{$ns}Table-footToolbar {
|
|
1096
|
+
margin-bottom: 0;
|
|
1097
|
+
}
|
|
1098
|
+
}
|
|
1099
|
+
|
|
1100
|
+
&-SFToggler {
|
|
1101
|
+
color: var(--text-color);
|
|
1102
|
+
font-size: var(--Button--sm-fontSize);
|
|
1103
|
+
margin-left: var(--gap-sm);
|
|
1104
|
+
display: inline-flex;
|
|
1105
|
+
cursor: pointer;
|
|
1106
|
+
|
|
1107
|
+
&:hover {
|
|
1108
|
+
color: var(--link-color);
|
|
1109
|
+
font-size: var(--Button--sm-fontSize);
|
|
1110
|
+
}
|
|
1111
|
+
|
|
1112
|
+
&-arrow {
|
|
1113
|
+
width: var(--gap-md);
|
|
1114
|
+
text-align: center;
|
|
1115
|
+
display: flex;
|
|
1116
|
+
align-items: center;
|
|
1117
|
+
justify-content: center;
|
|
1118
|
+
line-height: 1;
|
|
1119
|
+
transform: rotate(90deg);
|
|
1120
|
+
|
|
1121
|
+
> svg {
|
|
1122
|
+
transition: transform var(--animation-duration);
|
|
1123
|
+
display: inline-block;
|
|
1124
|
+
color: var(--Form-select-caret-iconColor);
|
|
1125
|
+
width: 10px;
|
|
1126
|
+
height: 10px;
|
|
1127
|
+
top: 0;
|
|
1128
|
+
}
|
|
1129
|
+
}
|
|
1130
|
+
|
|
1131
|
+
&.is-expanded {
|
|
1132
|
+
color: var(--Tabs-onActive-color);
|
|
1133
|
+
|
|
1134
|
+
.#{$ns}Table-SFToggler-arrow > svg {
|
|
1135
|
+
transform: rotate(180deg);
|
|
1136
|
+
}
|
|
1137
|
+
}
|
|
1138
|
+
}
|
|
1139
|
+
|
|
1140
|
+
// table 骨架样式
|
|
1141
|
+
&-emptyBlock {
|
|
1142
|
+
background-color: #eaebed;
|
|
1143
|
+
border-radius: 5px;
|
|
1144
|
+
line-height: 15px;
|
|
1145
|
+
}
|
|
1146
|
+
}
|
|
1147
|
+
|
|
1148
|
+
.#{$ns}InputTable {
|
|
1149
|
+
.#{$ns}Field--quickEditable svg {
|
|
1150
|
+
color: var(--primary);
|
|
1151
|
+
|
|
1152
|
+
&:hover {
|
|
1153
|
+
color: var(--primary-onHover);
|
|
1154
|
+
}
|
|
1155
|
+
|
|
1156
|
+
&:active {
|
|
1157
|
+
color: var(--primary-onActive);
|
|
1158
|
+
}
|
|
1159
|
+
}
|
|
1160
|
+
}
|
|
1161
|
+
|
|
1162
|
+
.#{$ns}InputTable {
|
|
1163
|
+
.#{$ns}Field--quickEditable svg {
|
|
1164
|
+
color: var(--primary);
|
|
1165
|
+
|
|
1166
|
+
&:hover {
|
|
1167
|
+
color: var(--primary-onHover);
|
|
1168
|
+
}
|
|
1169
|
+
|
|
1170
|
+
&:active {
|
|
1171
|
+
color: var(--primary-onActive);
|
|
1172
|
+
}
|
|
1173
|
+
}
|
|
1174
|
+
}
|
|
1175
|
+
|
|
1176
|
+
.#{$ns}InputTable-toolbar {
|
|
1177
|
+
display: flex;
|
|
1178
|
+
flex-direction: row;
|
|
1179
|
+
flex-wrap: wrap;
|
|
1180
|
+
justify-content: space-between;
|
|
1181
|
+
}
|
|
1182
|
+
|
|
1183
|
+
.#{$ns}InputTable-pager {
|
|
1184
|
+
margin-left: auto;
|
|
1185
|
+
}
|
|
1186
|
+
|
|
1187
|
+
.#{$ns}OperationField {
|
|
1188
|
+
margin: px2rem(-3px);
|
|
1189
|
+
|
|
1190
|
+
> .#{$ns}Button,
|
|
1191
|
+
> .#{$ns}Button--disabled-wrap > .#{$ns}Button {
|
|
1192
|
+
margin: px2rem(3px);
|
|
1193
|
+
height: auto;
|
|
1194
|
+
}
|
|
1195
|
+
|
|
1196
|
+
> .#{$ns}Button--disabled-wrap > .#{$ns}Button--link {
|
|
1197
|
+
padding: 0;
|
|
1198
|
+
}
|
|
1199
|
+
|
|
1200
|
+
> .#{$ns}Button--link {
|
|
1201
|
+
padding: 0;
|
|
1202
|
+
margin-right: px2rem(10px);
|
|
1203
|
+
}
|
|
1204
|
+
}
|
|
1205
|
+
|
|
1206
|
+
/* 移动端样式调整 */
|
|
1207
|
+
@include media-breakpoint-down(sm) {
|
|
1208
|
+
.#{$ns}Table-table > thead > tr > th {
|
|
1209
|
+
border-bottom: none;
|
|
1210
|
+
|
|
1211
|
+
&::before {
|
|
1212
|
+
@include hairline-bottom(var(--Table-thead-borderColor));
|
|
1213
|
+
}
|
|
1214
|
+
}
|
|
1215
|
+
.#{$ns}Table-table th,
|
|
1216
|
+
.#{$ns}Table-table td {
|
|
1217
|
+
position: relative;
|
|
1218
|
+
border-bottom: none;
|
|
1219
|
+
|
|
1220
|
+
&::before {
|
|
1221
|
+
@include hairline-bottom(var(--Table-borderColor));
|
|
1222
|
+
}
|
|
1223
|
+
}
|
|
1224
|
+
}
|
|
1225
|
+
|
|
1226
|
+
.#{$ns}AutoFilterToolbar {
|
|
1227
|
+
display: block;
|
|
1228
|
+
text-align: right;
|
|
1229
|
+
white-space: nowrap;
|
|
1230
|
+
|
|
1231
|
+
> .#{$ns}Button {
|
|
1232
|
+
margin-top: 0;
|
|
1233
|
+
}
|
|
1234
|
+
}
|