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,805 @@
|
|
|
1
|
+
@use 'sass:color';
|
|
2
|
+
// 媒体查询最小阈值
|
|
3
|
+
@mixin media-breakpoint-up($name, $breakpoints: $breakpoints) {
|
|
4
|
+
$min: breakpoint-min($name, $breakpoints);
|
|
5
|
+
|
|
6
|
+
@if $min {
|
|
7
|
+
@media (min-width: $min) {
|
|
8
|
+
@content;
|
|
9
|
+
}
|
|
10
|
+
} @else {
|
|
11
|
+
@content;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
//媒体查询最大阈值
|
|
16
|
+
@mixin media-breakpoint-down($name, $breakpoints: $breakpoints) {
|
|
17
|
+
$max: breakpoint-max($name, $breakpoints);
|
|
18
|
+
|
|
19
|
+
@if $max {
|
|
20
|
+
@media (max-width: $max) {
|
|
21
|
+
@content;
|
|
22
|
+
}
|
|
23
|
+
} @else {
|
|
24
|
+
@content;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
//媒体查询中间阈值
|
|
29
|
+
@mixin media-breakpoint-between($min, $max, $breakpoints: $breakpoints) {
|
|
30
|
+
$min: breakpoint-min($min, $breakpoints);
|
|
31
|
+
$max: breakpoint-max($max, $breakpoints);
|
|
32
|
+
|
|
33
|
+
@media (min-width: $min) and (max-width: $max) {
|
|
34
|
+
@content;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
@mixin media-device($name, $devices: $devices) {
|
|
39
|
+
$n: map-get($devices, $name);
|
|
40
|
+
|
|
41
|
+
@media #{$n} {
|
|
42
|
+
@content;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
@mixin clearfix() {
|
|
47
|
+
&::before,
|
|
48
|
+
&::after {
|
|
49
|
+
display: table;
|
|
50
|
+
content: '';
|
|
51
|
+
}
|
|
52
|
+
&::after {
|
|
53
|
+
clear: both;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
@mixin color-schema($bg-color: #555, $percent: 15%, $sat-percent: 100%) {
|
|
58
|
+
background: color.adjust(
|
|
59
|
+
color.adjust($bg-color, $lightness: -$percent),
|
|
60
|
+
$saturation: $sat-percent
|
|
61
|
+
);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
@mixin color-schema-lt($bg-color: #555, $percent: 15%, $sat-percent: 100%) {
|
|
65
|
+
$lightened-color: color.adjust($bg-color, $lightness: $percent);
|
|
66
|
+
background: color.adjust($lightened-color, $saturation: $sat-percent);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
// @deprecated 不建议用了
|
|
70
|
+
@mixin color-variant(
|
|
71
|
+
$bg-color: #555,
|
|
72
|
+
$lt-percent: 10%,
|
|
73
|
+
$lter-percent: 15%,
|
|
74
|
+
$dk-percent: 10%,
|
|
75
|
+
$dker-percent: 15%
|
|
76
|
+
) {
|
|
77
|
+
background-color: $bg-color;
|
|
78
|
+
|
|
79
|
+
&.lt,
|
|
80
|
+
& .lt {
|
|
81
|
+
@include color-schema-lt($bg-color, $lt-percent, 2.5%);
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
&.lter,
|
|
85
|
+
& .lter {
|
|
86
|
+
@include color-schema-lt($bg-color, $lter-percent, 5%);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
&.dk,
|
|
90
|
+
& .dk {
|
|
91
|
+
@include color-schema($bg-color, $dk-percent, 2.5%);
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
&.dker,
|
|
95
|
+
& .dker {
|
|
96
|
+
@include color-schema($bg-color, $dker-percent, 5%);
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
&.bg,
|
|
100
|
+
& .bg {
|
|
101
|
+
background-color: $bg-color;
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
// @deprecated 不建议用了
|
|
106
|
+
@mixin font-variant($bg-color) {
|
|
107
|
+
$font-color: color.adjust(
|
|
108
|
+
color.adjust($bg-color, $lightness: 40%),
|
|
109
|
+
$saturation: -10%
|
|
110
|
+
);
|
|
111
|
+
$link-color: color.adjust(
|
|
112
|
+
color.adjust($bg-color, $lightness: 50%),
|
|
113
|
+
$saturation: -10%
|
|
114
|
+
);
|
|
115
|
+
$hover-color: #fff;
|
|
116
|
+
color: $font-color;
|
|
117
|
+
|
|
118
|
+
& a,
|
|
119
|
+
& .#{$ns}Button--link {
|
|
120
|
+
color: $link-color;
|
|
121
|
+
|
|
122
|
+
&:hover {
|
|
123
|
+
color: $hover-color;
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
& .open > a {
|
|
128
|
+
&,
|
|
129
|
+
&:hover,
|
|
130
|
+
&:focus {
|
|
131
|
+
color: $hover-color;
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
& .text-muted {
|
|
136
|
+
color: color.adjust($text-color, $lightness: -10%) !important;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
& .text-lt {
|
|
140
|
+
color: color.adjust($text-color, $lightness: 25%) !important;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
// &.auto,
|
|
144
|
+
// & .auto {
|
|
145
|
+
// & .list-group-item {
|
|
146
|
+
// border-color: darken($bg-color, 5%) !important;
|
|
147
|
+
// background: transparent;
|
|
148
|
+
|
|
149
|
+
// &:hover,
|
|
150
|
+
// &:focus,
|
|
151
|
+
// &:active,
|
|
152
|
+
// &.active {
|
|
153
|
+
// @include color-schema($bg-color, 5%, 2.5% !important);
|
|
154
|
+
// }
|
|
155
|
+
// }
|
|
156
|
+
// }
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
// @deprecated 不建议用了
|
|
160
|
+
@mixin text-wariant($bg-color, $name) {
|
|
161
|
+
a.bg-#{'' + $name}:hover {
|
|
162
|
+
background: color.adjust($bg-color, $lightness: -5%);
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
a.text-#{'' + $name}:hover {
|
|
166
|
+
color: color.adjust($bg-color, $lightness: -5%);
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
.text-#{'' + $name} {
|
|
170
|
+
color: $bg-color;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
.text-#{'' + $name}-lt {
|
|
174
|
+
color: color.adjust($bg-color, $lightness: -5%);
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
.text-#{'' + $name}-lter {
|
|
178
|
+
color: color.adjust($bg-color, $lightness: -10%);
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
.text-#{'' + $name}-dk {
|
|
182
|
+
color: color.adjust($bg-color, $lightness: -5%);
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
.text-#{'' + $name}-dker {
|
|
186
|
+
color: color.adjust($bg-color, $lightness: -10%);
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
@mixin hover {
|
|
191
|
+
&:hover {
|
|
192
|
+
@content;
|
|
193
|
+
}
|
|
194
|
+
&.hover {
|
|
195
|
+
@content;
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
@mixin focus {
|
|
200
|
+
&:focus {
|
|
201
|
+
@content;
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
@mixin hover-focus {
|
|
206
|
+
&:hover:focus {
|
|
207
|
+
@content;
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
@mixin hover-active {
|
|
212
|
+
&:hover:active {
|
|
213
|
+
@content;
|
|
214
|
+
}
|
|
215
|
+
&.active,
|
|
216
|
+
&.is-active {
|
|
217
|
+
@content;
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
@mixin button-size(
|
|
222
|
+
$font-size: var(--button-size-default-fontSize),
|
|
223
|
+
$font-weight: var(--button-size-default-fontWeight),
|
|
224
|
+
$line-height: var(--button-size-default-lineHeight),
|
|
225
|
+
$border-radius-top-right: var(--button-size-default-top-right-border-radius),
|
|
226
|
+
$border-radius-top-left: var(--button-size-default-top-left-border-radius),
|
|
227
|
+
$border-radius-bottom-right:
|
|
228
|
+
var(--button-size-default-bottom-right-border-radius),
|
|
229
|
+
$border-radius-bottom-left:
|
|
230
|
+
var(--button-size-default-bottom-left-border-radius),
|
|
231
|
+
$height: var(--button-size-default-height),
|
|
232
|
+
$paddingTop: var(--button-size-default-paddingTop),
|
|
233
|
+
$paddingBottom: var(--button-size-default-paddingBottom),
|
|
234
|
+
$paddingLeft: var(--button-size-default-paddingLeft),
|
|
235
|
+
$paddingRight: var(--button-size-default-paddingRight),
|
|
236
|
+
$marginTop: var(--button-size-default-marginTop),
|
|
237
|
+
$marginBottom: var(--button-size-default-marginBottom),
|
|
238
|
+
$marginLeft: var(--button-size-default-marginLeft),
|
|
239
|
+
$marginRight: var(--button-size-default-marginRight),
|
|
240
|
+
$minWidth: var(--button-size-default-minWidth),
|
|
241
|
+
$iconSize: var(--button-size-default-icon-size),
|
|
242
|
+
$iconMargin: var(--button-size-default-icon-margin)
|
|
243
|
+
) {
|
|
244
|
+
font-size: $font-size;
|
|
245
|
+
font-weight: $font-weight;
|
|
246
|
+
line-height: $line-height;
|
|
247
|
+
border-radius: $border-radius-top-left $border-radius-top-right
|
|
248
|
+
$border-radius-bottom-right $border-radius-bottom-left;
|
|
249
|
+
height: $height;
|
|
250
|
+
padding: $paddingTop $paddingRight $paddingBottom $paddingLeft;
|
|
251
|
+
margin: $marginTop $marginRight $marginBottom $marginLeft;
|
|
252
|
+
|
|
253
|
+
.#{$ns}Button-icon:first-child:not(:last-child):not(.pull-right),
|
|
254
|
+
> svg.icon:not(:last-child):not(.pull-right),
|
|
255
|
+
> .pull-left {
|
|
256
|
+
margin-right: $iconMargin;
|
|
257
|
+
font-size: $iconSize;
|
|
258
|
+
width: $iconSize;
|
|
259
|
+
height: $iconSize;
|
|
260
|
+
line-height: $iconSize;
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
.#{$ns}Button-icon:last-child:not(:first-child):not(.pull-left),
|
|
264
|
+
> .pull-right {
|
|
265
|
+
font-size: $iconSize;
|
|
266
|
+
margin-left: $iconMargin;
|
|
267
|
+
width: $iconSize;
|
|
268
|
+
height: $iconSize;
|
|
269
|
+
line-height: $iconSize;
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
.#{$ns}Button--loading:first-child:not(:last-child):not(.pull-right),
|
|
273
|
+
> svg.icon:not(:last-child):not(.pull-right),
|
|
274
|
+
> .pull-left {
|
|
275
|
+
font-size: $iconSize;
|
|
276
|
+
margin-right: $iconMargin;
|
|
277
|
+
width: $iconSize;
|
|
278
|
+
height: $iconSize;
|
|
279
|
+
line-height: $iconSize;
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
.#{$ns}Button--loading:last-child:not(:first-child):not(.pull-left),
|
|
283
|
+
> .pull-right {
|
|
284
|
+
font-size: $iconSize;
|
|
285
|
+
margin-left: $iconMargin;
|
|
286
|
+
width: $iconSize;
|
|
287
|
+
height: $iconSize;
|
|
288
|
+
line-height: $iconSize;
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
&.#{$ns}Button--iconOnly {
|
|
292
|
+
min-width: $height;
|
|
293
|
+
padding: 0;
|
|
294
|
+
&:not(.#{$ns}Button--link) {
|
|
295
|
+
> svg.icon {
|
|
296
|
+
width: $iconSize;
|
|
297
|
+
height: $iconSize;
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
> .fa,
|
|
301
|
+
> .iconfont {
|
|
302
|
+
font-size: $iconSize;
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
> .iconfont {
|
|
306
|
+
line-height: 1;
|
|
307
|
+
}
|
|
308
|
+
}
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
// img 需要加一下高度限制
|
|
312
|
+
img.#{$ns}Button-icon {
|
|
313
|
+
height: $iconSize;
|
|
314
|
+
vertical-align: middle;
|
|
315
|
+
}
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
@mixin button-loading-icon() {
|
|
319
|
+
transition: --Button-transition;
|
|
320
|
+
svg {
|
|
321
|
+
@include animation-svg(var(--Button-animation-spin));
|
|
322
|
+
}
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
@mixin animation-svg($animation) {
|
|
326
|
+
animation: $animation;
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
@mixin button-variant(
|
|
330
|
+
// 常规
|
|
331
|
+
$bg-color: var(--button-default-default-bg-color),
|
|
332
|
+
$font-color: var(--button-default-default-font-color),
|
|
333
|
+
$border-color-top: var(--button-default-default-top-border-color),
|
|
334
|
+
$border-color-right: var(--button-default-default-right-border-color),
|
|
335
|
+
$border-color-bottom: var(--button-default-default-bottom-border-color),
|
|
336
|
+
$border-color-left: var(--button-default-default-left-border-color),
|
|
337
|
+
$border-width-top: var(--button-default-default-top-border-width),
|
|
338
|
+
$border-width-right: var(--button-default-default-right-border-width),
|
|
339
|
+
$border-width-bottom: var(--button-default-default-bottom-border-width),
|
|
340
|
+
$border-width-left: var(--button-default-default-left-border-width),
|
|
341
|
+
$border-style-top: var(--button-default-default-top-border-style),
|
|
342
|
+
$border-style-right: var(--button-default-default-right-border-style),
|
|
343
|
+
$border-style-bottom: var(--button-default-default-bottom-border-style),
|
|
344
|
+
$border-style-left: var(--button-default-default-left-border-style),
|
|
345
|
+
$shadow: var(--button-default-default-shadow),
|
|
346
|
+
// 悬浮
|
|
347
|
+
$hover-bg-color: var(--button-default-hover-bg-color),
|
|
348
|
+
$hover-font-color: var(--button-default-hover-font-color),
|
|
349
|
+
$hover-border-color-top: var(--button-default-hover-top-border-color),
|
|
350
|
+
$hover-border-color-right: var(--button-default-hover-right-border-color),
|
|
351
|
+
$hover-border-color-bottom: var(--button-default-hover-bottom-border-color),
|
|
352
|
+
$hover-border-color-left: var(--button-default-hover-left-border-color),
|
|
353
|
+
$hover-border-width-top: var(--button-default-hover-top-border-width),
|
|
354
|
+
$hover-border-width-right: var(--button-default-hover-right-border-width),
|
|
355
|
+
$hover-border-width-bottom: var(--button-default-hover-bottom-border-width),
|
|
356
|
+
$hover-border-width-left: var(--button-default-hover-left-border-width),
|
|
357
|
+
$hover-border-style-top: var(--button-default-hover-top-border-style),
|
|
358
|
+
$hover-border-style-right: var(--button-default-hover-right-border-style),
|
|
359
|
+
$hover-border-style-bottom: var(--button-default-hover-bottom-border-style),
|
|
360
|
+
$hover-border-style-left: var(--button-default-hover-left-border-style),
|
|
361
|
+
$hover-shadow: var(--button-default-hover-shadow),
|
|
362
|
+
// 点击
|
|
363
|
+
$active-bg-color: var(--button-default-active-bg-color),
|
|
364
|
+
$active-font-color: var(--button-default-active-font-color),
|
|
365
|
+
$active-border-color-top: var(--button-default-active-top-border-color),
|
|
366
|
+
$active-border-color-right: var(--button-default-active-right-border-color),
|
|
367
|
+
$active-border-color-bottom: var(--button-default-active-bottom-border-color),
|
|
368
|
+
$active-border-color-left: var(--button-default-active-left-border-color),
|
|
369
|
+
$active-border-width-top: var(--button-default-active-top-border-width),
|
|
370
|
+
$active-border-width-right: var(--button-default-active-right-border-width),
|
|
371
|
+
$active-border-width-bottom: var(--button-default-active-bottom-border-width),
|
|
372
|
+
$active-border-width-left: var(--button-default-active-left-border-width),
|
|
373
|
+
$active-border-style-top: var(--button-default-active-top-border-style),
|
|
374
|
+
$active-border-style-right: var(--button-default-active-right-border-style),
|
|
375
|
+
$active-border-style-bottom: var(--button-default-active-bottom-border-style),
|
|
376
|
+
$active-border-style-left: var(--button-default-active-left-border-style),
|
|
377
|
+
$active-shadow: var(--button-default-active-shadow),
|
|
378
|
+
// 禁用
|
|
379
|
+
$disabled-bg-color: var(--button-default-disabled-bg-color),
|
|
380
|
+
$disabled-font-color: var(--button-default-disabled-font-color),
|
|
381
|
+
$disabled-border-color-top: var(--button-default-disabled-top-border-color),
|
|
382
|
+
$disabled-border-color-right:
|
|
383
|
+
var(--button-default-disabled-right-border-color),
|
|
384
|
+
$disabled-border-color-bottom:
|
|
385
|
+
var(--button-default-disabled-bottom-border-color),
|
|
386
|
+
$disabled-border-color-left: var(--button-default-disabled-left-border-color),
|
|
387
|
+
$disabled-border-width-top: var(--button-default-disabled-top-border-width),
|
|
388
|
+
$disabled-border-width-right:
|
|
389
|
+
var(--button-default-disabled-right-border-width),
|
|
390
|
+
$disabled-border-width-bottom:
|
|
391
|
+
var(--button-default-disabled-bottom-border-width),
|
|
392
|
+
$disabled-border-width-left: var(--button-default-disabled-left-border-width),
|
|
393
|
+
$disabled-border-style-top: var(--button-default-disabled-top-border-style),
|
|
394
|
+
$disabled-border-style-right:
|
|
395
|
+
var(--button-default-disabled-right-border-style),
|
|
396
|
+
$disabled-border-style-bottom:
|
|
397
|
+
var(--button-default-disabled-bottom-border-style),
|
|
398
|
+
$disabled-border-style-left: var(--button-default-disabled-left-border-style),
|
|
399
|
+
$disabled-shadow: var(--button-default-disabled-shadow)
|
|
400
|
+
) {
|
|
401
|
+
color: $font-color;
|
|
402
|
+
background: $bg-color;
|
|
403
|
+
border-color: $border-color-top $border-color-right $border-color-bottom
|
|
404
|
+
$border-color-left;
|
|
405
|
+
border-width: $border-width-top $border-width-right $border-width-bottom
|
|
406
|
+
$border-width-left;
|
|
407
|
+
border-style: $border-style-top $border-style-right $border-style-bottom
|
|
408
|
+
$border-style-left;
|
|
409
|
+
box-shadow: $shadow;
|
|
410
|
+
|
|
411
|
+
// text-shadow: var(--Button-textShadow);
|
|
412
|
+
|
|
413
|
+
&:not(:disabled):not(.is-disabled) {
|
|
414
|
+
@include hover {
|
|
415
|
+
color: $hover-font-color;
|
|
416
|
+
background: $hover-bg-color;
|
|
417
|
+
border-color: $hover-border-color-top $hover-border-color-right
|
|
418
|
+
$hover-border-color-bottom $hover-border-color-left;
|
|
419
|
+
border-width: $hover-border-width-top $hover-border-width-right
|
|
420
|
+
$hover-border-width-bottom $hover-border-width-left;
|
|
421
|
+
border-style: $hover-border-style-top $hover-border-style-right
|
|
422
|
+
$hover-border-style-bottom $hover-border-style-left;
|
|
423
|
+
box-shadow: $hover-shadow;
|
|
424
|
+
}
|
|
425
|
+
@include hover-active {
|
|
426
|
+
color: $active-font-color;
|
|
427
|
+
background: $active-bg-color;
|
|
428
|
+
border-color: $active-border-color-top $active-border-color-right
|
|
429
|
+
$active-border-color-bottom $active-border-color-left;
|
|
430
|
+
border-width: $active-border-width-top $active-border-width-right
|
|
431
|
+
$active-border-width-bottom $active-border-width-left;
|
|
432
|
+
border-style: $active-border-style-top $active-border-style-right
|
|
433
|
+
$active-border-style-bottom $active-border-style-left;
|
|
434
|
+
box-shadow: $active-shadow;
|
|
435
|
+
}
|
|
436
|
+
}
|
|
437
|
+
&:disabled,
|
|
438
|
+
&.is-disabled {
|
|
439
|
+
color: $disabled-font-color;
|
|
440
|
+
background: $disabled-bg-color;
|
|
441
|
+
border-color: $disabled-border-color-top $disabled-border-color-right
|
|
442
|
+
$disabled-border-color-bottom $disabled-border-color-left;
|
|
443
|
+
border-width: $disabled-border-width-top $disabled-border-width-right
|
|
444
|
+
$disabled-border-width-bottom $disabled-border-width-left;
|
|
445
|
+
border-style: $disabled-border-style-top $disabled-border-style-right
|
|
446
|
+
$disabled-border-style-bottom $disabled-border-style-left;
|
|
447
|
+
box-shadow: $disabled-shadow;
|
|
448
|
+
}
|
|
449
|
+
}
|
|
450
|
+
|
|
451
|
+
@mixin input-clear {
|
|
452
|
+
padding: var(--Form-input-clearBtn-padding);
|
|
453
|
+
cursor: pointer;
|
|
454
|
+
display: flex;
|
|
455
|
+
align-items: center;
|
|
456
|
+
justify-content: center;
|
|
457
|
+
margin-left: auto;
|
|
458
|
+
text-decoration: none;
|
|
459
|
+
|
|
460
|
+
svg {
|
|
461
|
+
fill: var(--Form-input-clearBtn-color);
|
|
462
|
+
width: var(--Form-input-clearBtn-size);
|
|
463
|
+
height: var(--Form-input-clearBtn-size);
|
|
464
|
+
top: 0;
|
|
465
|
+
}
|
|
466
|
+
|
|
467
|
+
&:hover svg {
|
|
468
|
+
fill: var(--Form-input-clearBtn-color-onHover);
|
|
469
|
+
}
|
|
470
|
+
|
|
471
|
+
&:active svg {
|
|
472
|
+
fill: var(--Form-input-clearBtn-color-onActive);
|
|
473
|
+
}
|
|
474
|
+
}
|
|
475
|
+
|
|
476
|
+
@mixin input-input {
|
|
477
|
+
display: flex;
|
|
478
|
+
background: var(--Form-input-bg);
|
|
479
|
+
border: var(--Form-input-borderWidth) solid var(--Form-input-borderColor);
|
|
480
|
+
border-radius: var(--Form-input-borderRadius);
|
|
481
|
+
// height: var(--Form-input-height);
|
|
482
|
+
line-height: var(--Form-input-lineHeight);
|
|
483
|
+
padding: var(--Form-input-paddingY) var(--Form-input-paddingX);
|
|
484
|
+
font-size: var(--Form-input-fontSize);
|
|
485
|
+
flex-wrap: wrap;
|
|
486
|
+
justify-content: flex-start;
|
|
487
|
+
|
|
488
|
+
input {
|
|
489
|
+
flex-basis: px2rem(30px);
|
|
490
|
+
flex-grow: 1;
|
|
491
|
+
outline: none;
|
|
492
|
+
background: transparent;
|
|
493
|
+
border: none;
|
|
494
|
+
color: var(--Form-input-color);
|
|
495
|
+
width: 100%;
|
|
496
|
+
|
|
497
|
+
&::placeholder {
|
|
498
|
+
color: var(--Form-input-placeholderColor);
|
|
499
|
+
user-select: none;
|
|
500
|
+
}
|
|
501
|
+
}
|
|
502
|
+
|
|
503
|
+
&:hover {
|
|
504
|
+
border-color: var(--Form-input-onFocused-borderColor);
|
|
505
|
+
}
|
|
506
|
+
}
|
|
507
|
+
|
|
508
|
+
@mixin input-border {
|
|
509
|
+
&--borderHalf {
|
|
510
|
+
border-left-color: transparent !important;
|
|
511
|
+
border-right-color: transparent !important;
|
|
512
|
+
border-top-color: transparent !important;
|
|
513
|
+
}
|
|
514
|
+
|
|
515
|
+
&--borderNone {
|
|
516
|
+
border-color: transparent !important;
|
|
517
|
+
}
|
|
518
|
+
}
|
|
519
|
+
|
|
520
|
+
@mixin input-text {
|
|
521
|
+
position: relative;
|
|
522
|
+
max-width: 100%;
|
|
523
|
+
|
|
524
|
+
&.is-inline {
|
|
525
|
+
display: inline-block;
|
|
526
|
+
width: var(--Form-control-widthBase);
|
|
527
|
+
}
|
|
528
|
+
|
|
529
|
+
&-input {
|
|
530
|
+
@include input-input();
|
|
531
|
+
@include input-border();
|
|
532
|
+
}
|
|
533
|
+
|
|
534
|
+
&.is-error > &-input {
|
|
535
|
+
border-color: var(--Form-item-onError-borderColor);
|
|
536
|
+
background: var(--Form-item-onError-bg);
|
|
537
|
+
transition: all var(--animation-duration);
|
|
538
|
+
}
|
|
539
|
+
|
|
540
|
+
&.is-focused > &-input {
|
|
541
|
+
border-color: var(--Form-input-onFocused-borderColor);
|
|
542
|
+
box-shadow: var(--Form-input-boxShadow);
|
|
543
|
+
background: var(--Form-input-onFocused-bg);
|
|
544
|
+
transition: all var(--animation-duration);
|
|
545
|
+
}
|
|
546
|
+
|
|
547
|
+
&.is-error.is-focused > &-input {
|
|
548
|
+
border-color: var(--Form-item-onError-borderColor);
|
|
549
|
+
background: var(--Form-item-onError-bg);
|
|
550
|
+
}
|
|
551
|
+
|
|
552
|
+
&.is-disabled > &-input {
|
|
553
|
+
color: var(--text--muted-color);
|
|
554
|
+
background: var(--Form-input-onDisabled-bg);
|
|
555
|
+
border-color: var(--Form-input-onDisabled-borderColor);
|
|
556
|
+
transition: all var(--animation-duration);
|
|
557
|
+
|
|
558
|
+
& > input {
|
|
559
|
+
color: var(--text--muted-color);
|
|
560
|
+
}
|
|
561
|
+
}
|
|
562
|
+
|
|
563
|
+
&-spinner {
|
|
564
|
+
line-height: calc(
|
|
565
|
+
var(--Form-input-lineHeight) * var(--Form-input-fontSize)
|
|
566
|
+
);
|
|
567
|
+
}
|
|
568
|
+
|
|
569
|
+
&-clear {
|
|
570
|
+
@include input-clear();
|
|
571
|
+
}
|
|
572
|
+
|
|
573
|
+
&-revealPassword {
|
|
574
|
+
cursor: pointer;
|
|
575
|
+
color: var(--text--muted-color);
|
|
576
|
+
}
|
|
577
|
+
|
|
578
|
+
// 需要能撑开
|
|
579
|
+
@include media-breakpoint-up(sm) {
|
|
580
|
+
&.#{$ns}Form-control--sizeXs > &-input,
|
|
581
|
+
&.#{$ns}Form-control--sizeSm > &-input,
|
|
582
|
+
&.#{$ns}Form-control--sizeMd > &-input,
|
|
583
|
+
&.#{$ns}Form-control--sizeLg > &-input {
|
|
584
|
+
min-width: 100%;
|
|
585
|
+
display: inline-flex;
|
|
586
|
+
}
|
|
587
|
+
}
|
|
588
|
+
}
|
|
589
|
+
|
|
590
|
+
@mixin checkboxes-placeholder {
|
|
591
|
+
height: var(--Form-input-height);
|
|
592
|
+
line-height: var(--Form-input-lineHeight);
|
|
593
|
+
font-size: var(--Form-input-fontSize);
|
|
594
|
+
padding: calc(
|
|
595
|
+
(
|
|
596
|
+
var(--Form-input-height) - var(--Form-input-lineHeight) *
|
|
597
|
+
var(--Form-input-fontSize)
|
|
598
|
+
) / 2
|
|
599
|
+
)
|
|
600
|
+
var(--gap-sm);
|
|
601
|
+
color: var(--text--muted-color);
|
|
602
|
+
}
|
|
603
|
+
|
|
604
|
+
@mixin label-variant($color) {
|
|
605
|
+
background: $color;
|
|
606
|
+
|
|
607
|
+
// todo:不支持了
|
|
608
|
+
// &[href] {
|
|
609
|
+
// &:hover,
|
|
610
|
+
// &:focus {
|
|
611
|
+
// background: darken($color, 10%);
|
|
612
|
+
// }
|
|
613
|
+
// }
|
|
614
|
+
}
|
|
615
|
+
|
|
616
|
+
@mixin icon-color {
|
|
617
|
+
color: var(--icon-color);
|
|
618
|
+
|
|
619
|
+
&:hover {
|
|
620
|
+
color: var(--icon-onHover-color);
|
|
621
|
+
}
|
|
622
|
+
}
|
|
623
|
+
|
|
624
|
+
@mixin truncate {
|
|
625
|
+
overflow: hidden;
|
|
626
|
+
text-overflow: ellipsis;
|
|
627
|
+
white-space: nowrap;
|
|
628
|
+
}
|
|
629
|
+
|
|
630
|
+
@mixin hairline-common() {
|
|
631
|
+
position: absolute;
|
|
632
|
+
box-sizing: border-box;
|
|
633
|
+
content: ' ';
|
|
634
|
+
pointer-events: none;
|
|
635
|
+
}
|
|
636
|
+
|
|
637
|
+
@mixin hairline-top($color: var(--van-border-color), $left: 0, $right: 0) {
|
|
638
|
+
@include hairline-common();
|
|
639
|
+
top: 0;
|
|
640
|
+
right: $right;
|
|
641
|
+
left: $left;
|
|
642
|
+
border-top: 1px solid $color;
|
|
643
|
+
transform: scaleY(0.5);
|
|
644
|
+
}
|
|
645
|
+
|
|
646
|
+
@mixin hairline-bottom($color: var(--van-border-color), $left: 0, $right: 0) {
|
|
647
|
+
@include hairline-common();
|
|
648
|
+
right: $right;
|
|
649
|
+
bottom: 0;
|
|
650
|
+
left: $left;
|
|
651
|
+
border-bottom: 1px solid $color;
|
|
652
|
+
transform: scaleY(0.5);
|
|
653
|
+
}
|
|
654
|
+
|
|
655
|
+
@mixin tag-item($component-prefix) {
|
|
656
|
+
.#{$ns}#{$component-prefix}-value {
|
|
657
|
+
cursor: pointer;
|
|
658
|
+
user-select: none;
|
|
659
|
+
white-space: nowrap;
|
|
660
|
+
vertical-align: middle;
|
|
661
|
+
line-height: calc(
|
|
662
|
+
var(--Form-input-lineHeight) * var(--Form-input-fontSize) - #{px2rem(2px)}
|
|
663
|
+
);
|
|
664
|
+
display: inline-flex;
|
|
665
|
+
align-items: center;
|
|
666
|
+
font-size: var(--Pick-base-value-fontSize);
|
|
667
|
+
color: var(--Pick-base-value-color);
|
|
668
|
+
font-weight: var(--Pick-base-value-fontWeight);
|
|
669
|
+
background: var(--Pick-base-value-bgColor);
|
|
670
|
+
border-width: var(--Pick-base-value-top-border-width)
|
|
671
|
+
var(--Pick-base-value-right-border-width)
|
|
672
|
+
var(--Pick-base-value-bottom-border-width)
|
|
673
|
+
var(--Pick-base-value-left-border-width);
|
|
674
|
+
border-style: var(--Pick-base-value-top-border-style)
|
|
675
|
+
var(--Pick-base-value-right-border-style)
|
|
676
|
+
var(--Pick-base-value-bottom-border-style)
|
|
677
|
+
var(--Pick-base-value-left-border-style);
|
|
678
|
+
border-color: var(--Pick-base-value-top-border-color)
|
|
679
|
+
var(--Pick-base-value-right-border-color)
|
|
680
|
+
var(--Pick-base-value-bottom-border-color)
|
|
681
|
+
var(--Pick-base-value-left-border-color);
|
|
682
|
+
border-radius: var(--Pick-base-top-left-border-radius)
|
|
683
|
+
var(--Pick-base-top-right-border-radius)
|
|
684
|
+
var(--Pick-base-bottom-right-border-radius)
|
|
685
|
+
var(--Pick-base-bottom-left-border-radius);
|
|
686
|
+
max-width: px2rem(150px);
|
|
687
|
+
overflow: hidden;
|
|
688
|
+
text-overflow: ellipsis;
|
|
689
|
+
white-space: nowrap;
|
|
690
|
+
flex-shrink: 0;
|
|
691
|
+
|
|
692
|
+
&:hover {
|
|
693
|
+
background: var(--Form-selectValue-onHover-bg);
|
|
694
|
+
}
|
|
695
|
+
|
|
696
|
+
&.is-disabled {
|
|
697
|
+
pointer-events: none;
|
|
698
|
+
|
|
699
|
+
.#{$ns}#{$component-prefix}-valueIcon {
|
|
700
|
+
opacity: var(--Button-onDisabled-opacity);
|
|
701
|
+
}
|
|
702
|
+
}
|
|
703
|
+
}
|
|
704
|
+
|
|
705
|
+
.#{$ns}#{$component-prefix}-valueIcon {
|
|
706
|
+
color: var(--Pick-base-value-icon-color);
|
|
707
|
+
cursor: pointer;
|
|
708
|
+
border-right: px2rem(1px) solid var(--Form-selectValue-borderColor);
|
|
709
|
+
padding: 0 5px;
|
|
710
|
+
|
|
711
|
+
&:hover {
|
|
712
|
+
background: var(--Pick-base-value-hover-icon-color);
|
|
713
|
+
}
|
|
714
|
+
}
|
|
715
|
+
|
|
716
|
+
.#{$ns}#{$component-prefix}-valueLabel {
|
|
717
|
+
padding: 0 var(--gap-xs);
|
|
718
|
+
overflow: hidden;
|
|
719
|
+
text-overflow: ellipsis;
|
|
720
|
+
white-space: nowrap;
|
|
721
|
+
}
|
|
722
|
+
}
|
|
723
|
+
|
|
724
|
+
@function resolve-params($params...) {
|
|
725
|
+
@if length($params) == 1 {
|
|
726
|
+
@return (
|
|
727
|
+
nth($params, 1),
|
|
728
|
+
nth($params, 1),
|
|
729
|
+
nth($params, 1),
|
|
730
|
+
nth($params, 1)
|
|
731
|
+
);
|
|
732
|
+
} @else if length($params) == 2 {
|
|
733
|
+
@return (
|
|
734
|
+
nth($params, 1),
|
|
735
|
+
nth($params, 2),
|
|
736
|
+
nth($params, 1),
|
|
737
|
+
nth($params, 2)
|
|
738
|
+
);
|
|
739
|
+
} @else if length($params) == 3 {
|
|
740
|
+
@return (
|
|
741
|
+
nth($params, 1),
|
|
742
|
+
nth($params, 2),
|
|
743
|
+
nth($params, 3),
|
|
744
|
+
nth($params, 2)
|
|
745
|
+
);
|
|
746
|
+
} @else if length($params) == 4 {
|
|
747
|
+
@return (
|
|
748
|
+
nth($params, 1),
|
|
749
|
+
nth($params, 2),
|
|
750
|
+
nth($params, 3),
|
|
751
|
+
nth($params, 4)
|
|
752
|
+
);
|
|
753
|
+
} @else {
|
|
754
|
+
@warn "Please provide 1 to 4 params values.";
|
|
755
|
+
@return null;
|
|
756
|
+
}
|
|
757
|
+
}
|
|
758
|
+
|
|
759
|
+
@mixin borderRadius($token, $radius...) {
|
|
760
|
+
$resolved: resolve-params($radius...);
|
|
761
|
+
#{$token}-top-left-border-radius: nth($resolved, 1);
|
|
762
|
+
#{$token}-top-right-border-radius: nth($resolved, 2);
|
|
763
|
+
#{$token}-bottom-right-border-radius: nth($resolved, 3);
|
|
764
|
+
#{$token}-bottom-left-border-radius: nth($resolved, 4);
|
|
765
|
+
}
|
|
766
|
+
|
|
767
|
+
@mixin borderColor($token, $color...) {
|
|
768
|
+
$resolved: resolve-params($color...);
|
|
769
|
+
#{$token}-top-border-color: nth($resolved, 1);
|
|
770
|
+
#{$token}-right-border-color: nth($resolved, 2);
|
|
771
|
+
#{$token}-bottom-border-color: nth($resolved, 3);
|
|
772
|
+
#{$token}-left-border-color: nth($resolved, 4);
|
|
773
|
+
}
|
|
774
|
+
|
|
775
|
+
@mixin borderWidth($token, $width...) {
|
|
776
|
+
$resolved: resolve-params($width...);
|
|
777
|
+
#{$token}-top-border-width: nth($resolved, 1);
|
|
778
|
+
#{$token}-right-border-width: nth($resolved, 2);
|
|
779
|
+
#{$token}-bottom-border-width: nth($resolved, 3);
|
|
780
|
+
#{$token}-left-border-width: nth($resolved, 4);
|
|
781
|
+
}
|
|
782
|
+
|
|
783
|
+
@mixin borderStyle($token, $style...) {
|
|
784
|
+
$resolved: resolve-params($style...);
|
|
785
|
+
#{$token}-top-border-style: nth($resolved, 1);
|
|
786
|
+
#{$token}-right-border-style: nth($resolved, 2);
|
|
787
|
+
#{$token}-bottom-border-style: nth($resolved, 3);
|
|
788
|
+
#{$token}-left-border-style: nth($resolved, 4);
|
|
789
|
+
}
|
|
790
|
+
|
|
791
|
+
@mixin padding($token, $padding...) {
|
|
792
|
+
$resolved: resolve-params($padding...);
|
|
793
|
+
#{$token}-paddingTop: nth($resolved, 1);
|
|
794
|
+
#{$token}-paddingRight: nth($resolved, 2);
|
|
795
|
+
#{$token}-paddingBottom: nth($resolved, 3);
|
|
796
|
+
#{$token}-paddingLeft: nth($resolved, 4);
|
|
797
|
+
}
|
|
798
|
+
|
|
799
|
+
@mixin margin($token, $margin...) {
|
|
800
|
+
$resolved: resolve-params($margin...);
|
|
801
|
+
#{$token}-marginTop: nth($resolved, 1);
|
|
802
|
+
#{$token}-marginRight: nth($resolved, 2);
|
|
803
|
+
#{$token}-marginBottom: nth($resolved, 3);
|
|
804
|
+
#{$token}-marginLeft: nth($resolved, 4);
|
|
805
|
+
}
|