vue-devui 1.0.0-beta.2 → 1.0.0-beta.20220808
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/README.md +163 -172
- package/alert/index.d.ts +7 -0
- package/alert/index.es.js +79 -51
- package/alert/index.umd.js +1 -1
- package/alert/style.css +1 -1
- package/auto-complete/index.d.ts +7 -0
- package/auto-complete/index.es.js +9053 -0
- package/auto-complete/index.umd.js +40 -0
- package/auto-complete/package.json +7 -0
- package/auto-complete/style.css +1 -0
- package/avatar/index.d.ts +7 -0
- package/avatar/index.es.js +154 -147
- package/avatar/index.umd.js +1 -1
- package/avatar/style.css +1 -1
- package/badge/index.d.ts +7 -0
- package/badge/index.es.js +46 -21
- package/badge/index.umd.js +1 -1
- package/badge/style.css +1 -1
- package/button/index.d.ts +7 -0
- package/button/index.es.js +5921 -146
- package/button/index.umd.js +27 -1
- package/button/style.css +1 -1
- package/card/index.d.ts +7 -0
- package/card/index.es.js +64 -36
- package/card/index.umd.js +1 -1
- package/card/style.css +1 -1
- package/checkbox/index.d.ts +7 -0
- package/checkbox/index.es.js +8122 -255
- package/checkbox/index.umd.js +38 -1
- package/checkbox/style.css +1 -1
- package/collapse/index.d.ts +7 -0
- package/collapse/index.es.js +195 -0
- package/collapse/index.umd.js +1 -0
- package/{cascader → collapse}/package.json +1 -1
- package/collapse/style.css +1 -0
- package/countdown/index.d.ts +7 -0
- package/countdown/index.es.js +217 -0
- package/countdown/index.umd.js +1 -0
- package/{accordion → countdown}/package.json +1 -1
- package/countdown/style.css +1 -0
- package/date-picker-pro/index.d.ts +7 -0
- package/date-picker-pro/index.es.js +12035 -0
- package/date-picker-pro/index.umd.js +38 -0
- package/date-picker-pro/package.json +7 -0
- package/date-picker-pro/style.css +1 -0
- package/drawer/index.d.ts +7 -0
- package/drawer/index.es.js +205 -154
- package/drawer/index.umd.js +1 -1
- package/drawer/style.css +1 -1
- package/dropdown/index.d.ts +7 -0
- package/dropdown/index.es.js +736 -0
- package/dropdown/index.umd.js +1 -0
- package/{carousel → dropdown}/package.json +1 -1
- package/dropdown/style.css +1 -0
- package/editable-select/index.d.ts +7 -0
- package/editable-select/index.es.js +908 -461
- package/editable-select/index.umd.js +1 -1
- package/editable-select/style.css +1 -1
- package/form/index.d.ts +7 -0
- package/form/index.es.js +2439 -1995
- package/form/index.umd.js +29 -18
- package/form/style.css +1 -1
- package/fullscreen/index.d.ts +7 -0
- package/fullscreen/index.es.js +138 -125
- package/fullscreen/index.umd.js +1 -1
- package/fullscreen/style.css +1 -1
- package/grid/index.d.ts +7 -0
- package/grid/index.es.js +271 -0
- package/grid/index.umd.js +1 -0
- package/{toast → grid}/package.json +1 -1
- package/grid/style.css +1 -0
- package/icon/index.d.ts +7 -0
- package/icon/index.es.js +200 -56
- package/icon/index.umd.js +1 -1
- package/icon/style.css +1 -0
- package/image-preview/index.d.ts +7 -0
- package/image-preview/index.es.js +154 -62
- package/image-preview/index.umd.js +1 -1
- package/image-preview/style.css +1 -1
- package/index.d.ts +7 -0
- package/input/index.d.ts +7 -0
- package/input/index.es.js +8269 -145
- package/input/index.umd.js +38 -1
- package/input/style.css +1 -1
- package/input-number/index.d.ts +7 -0
- package/input-number/index.es.js +260 -191
- package/input-number/index.umd.js +1 -1
- package/input-number/style.css +1 -1
- package/layout/index.d.ts +7 -0
- package/layout/index.es.js +41 -26
- package/layout/index.umd.js +1 -1
- package/layout/style.css +1 -1
- package/loading/index.d.ts +7 -0
- package/loading/index.es.js +89 -73
- package/loading/index.umd.js +1 -1
- package/loading/style.css +1 -1
- package/mention/index.d.ts +7 -0
- package/mention/index.es.js +8326 -0
- package/mention/index.umd.js +47 -0
- package/mention/package.json +7 -0
- package/mention/style.css +1 -0
- package/menu/index.d.ts +7 -0
- package/menu/index.es.js +891 -0
- package/menu/index.umd.js +1 -0
- package/{anchor → menu}/package.json +1 -1
- package/menu/style.css +1 -0
- package/message/index.d.ts +7 -0
- package/message/index.es.js +533 -0
- package/message/index.umd.js +1 -0
- package/message/package.json +7 -0
- package/message/style.css +1 -0
- package/modal/index.d.ts +7 -0
- package/modal/index.es.js +611 -877
- package/modal/index.umd.js +1 -1
- package/modal/style.css +1 -1
- package/notification/index.d.ts +7 -0
- package/notification/index.es.js +528 -0
- package/notification/index.umd.js +1 -0
- package/notification/package.json +7 -0
- package/notification/style.css +1 -0
- package/nuxt/components/Alert.js +3 -0
- package/nuxt/components/Aside.js +3 -0
- package/nuxt/components/AutoComplete.js +3 -0
- package/nuxt/components/Avatar.js +3 -0
- package/nuxt/components/Badge.js +3 -0
- package/nuxt/components/Button.js +3 -0
- package/nuxt/components/ButtonGroup.js +3 -0
- package/nuxt/components/Card.js +3 -0
- package/nuxt/components/Checkbox.js +3 -0
- package/nuxt/components/CheckboxButton.js +3 -0
- package/nuxt/components/CheckboxGroup.js +3 -0
- package/nuxt/components/Col.js +3 -0
- package/nuxt/components/Collapse.js +3 -0
- package/nuxt/components/CollapseItem.js +3 -0
- package/nuxt/components/Column.js +3 -0
- package/nuxt/components/Content.js +3 -0
- package/nuxt/components/Countdown.js +3 -0
- package/nuxt/components/DRangeDatePickerPro.js +3 -0
- package/nuxt/components/DatePickerPro.js +3 -0
- package/nuxt/components/Drawer.js +3 -0
- package/nuxt/components/DrawerService.js +3 -0
- package/nuxt/components/Dropdown.js +3 -0
- package/nuxt/components/DropdownMenu.js +3 -0
- package/nuxt/components/DropdownPropsKey.js +3 -0
- package/nuxt/components/EditableSelect.js +3 -0
- package/nuxt/components/FORM_ITEM_TOKEN.js +3 -0
- package/nuxt/components/FORM_TOKEN.js +3 -0
- package/nuxt/components/FixedOverlay.js +3 -0
- package/nuxt/components/FlexibleOverlay.js +3 -0
- package/nuxt/components/Footer.js +3 -0
- package/nuxt/components/Form.js +3 -0
- package/nuxt/components/FormItem.js +3 -0
- package/nuxt/components/FormOperation.js +3 -0
- package/nuxt/components/Fullscreen.js +3 -0
- package/nuxt/components/Header.js +3 -0
- package/nuxt/components/IFileOptions.js +3 -0
- package/nuxt/components/IUploadOptions.js +3 -0
- package/nuxt/components/Icon.js +3 -0
- package/nuxt/components/IconGroup.js +3 -0
- package/nuxt/components/ImagePreviewService.js +3 -0
- package/nuxt/components/Input.js +3 -0
- package/nuxt/components/InputNumber.js +3 -0
- package/nuxt/components/LABEL_DATA.js +3 -0
- package/nuxt/components/Layout.js +3 -0
- package/nuxt/components/Loading.js +3 -0
- package/nuxt/components/LoadingOptions.js +3 -0
- package/nuxt/components/LoadingService.js +3 -0
- package/nuxt/components/Mention.js +3 -0
- package/nuxt/components/Menu.js +3 -0
- package/nuxt/components/MenuItem.js +3 -0
- package/nuxt/components/Message.js +3 -0
- package/nuxt/components/Modal.js +3 -0
- package/nuxt/components/Notification.js +3 -0
- package/nuxt/components/NotificationService.js +3 -0
- package/nuxt/components/Option.js +3 -0
- package/nuxt/components/OptionGroup.js +3 -0
- package/nuxt/components/Pagination.js +3 -0
- package/nuxt/components/Panel.js +3 -0
- package/nuxt/components/PanelBody.js +3 -0
- package/nuxt/components/PanelFooter.js +3 -0
- package/nuxt/components/PanelHeader.js +3 -0
- package/nuxt/components/Popover.js +3 -0
- package/nuxt/components/Progress.js +3 -0
- package/nuxt/components/Radio.js +3 -0
- package/nuxt/components/RadioButton.js +3 -0
- package/nuxt/components/RadioGroup.js +3 -0
- package/nuxt/components/Rate.js +3 -0
- package/nuxt/components/Result.js +3 -0
- package/nuxt/components/Row.js +3 -0
- package/nuxt/components/Search.js +3 -0
- package/nuxt/components/Select.js +3 -0
- package/nuxt/components/Skeleton.js +3 -0
- package/nuxt/components/SkeletonItem.js +3 -0
- package/nuxt/components/Slider.js +3 -0
- package/nuxt/components/Splitter.js +3 -0
- package/nuxt/components/Statistic.js +3 -0
- package/nuxt/components/Status.js +3 -0
- package/nuxt/components/Step.js +3 -0
- package/nuxt/components/Steps.js +3 -0
- package/nuxt/components/SubMenu.js +3 -0
- package/nuxt/components/Switch.js +3 -0
- package/nuxt/components/TABLE_TOKEN.js +3 -0
- package/nuxt/components/Tab.js +3 -0
- package/nuxt/components/Table.js +3 -0
- package/nuxt/components/Tabs.js +3 -0
- package/nuxt/components/Tag.js +3 -0
- package/nuxt/components/Textarea.js +3 -0
- package/nuxt/components/TimePicker.js +3 -0
- package/nuxt/components/TimeSelect.js +3 -0
- package/nuxt/components/Timeline.js +3 -0
- package/nuxt/components/TimelineItem.js +3 -0
- package/nuxt/components/Tooltip.js +3 -0
- package/nuxt/components/Tree.js +3 -0
- package/nuxt/components/Upload.js +3 -0
- package/nuxt/components/UploadStatus.js +3 -0
- package/nuxt/components/alertProps.js +3 -0
- package/nuxt/components/animationInjectionKey.js +3 -0
- package/nuxt/components/autoCompleteProps.js +3 -0
- package/nuxt/components/avatarProps.js +3 -0
- package/nuxt/components/badgeProps.js +3 -0
- package/nuxt/components/buttonGroupInjectionKey.js +3 -0
- package/nuxt/components/buttonGroupProps.js +3 -0
- package/nuxt/components/buttonProps.js +3 -0
- package/nuxt/components/cardProps.js +3 -0
- package/nuxt/components/checkboxGroupInjectionKey.js +3 -0
- package/nuxt/components/checkboxGroupProps.js +3 -0
- package/nuxt/components/checkboxProps.js +3 -0
- package/nuxt/components/colProps.js +3 -0
- package/nuxt/components/colPropsBaseClass.js +3 -0
- package/nuxt/components/colPropsBaseStyle.js +3 -0
- package/nuxt/components/collapseItemProps.js +3 -0
- package/nuxt/components/collapseProps.js +3 -0
- package/nuxt/components/countdownProps.js +3 -0
- package/nuxt/components/datePickerProCommonProps.js +3 -0
- package/nuxt/components/datePickerProPanelProps.js +3 -0
- package/nuxt/components/datePickerProProps.js +3 -0
- package/nuxt/components/dropdownMenuProps.js +3 -0
- package/nuxt/components/editableSelectProps.js +3 -0
- package/nuxt/components/fixedOverlayProps.js +3 -0
- package/nuxt/components/flexibleOverlayProps.js +3 -0
- package/nuxt/components/formItemProps.js +3 -0
- package/nuxt/components/formProps.js +3 -0
- package/nuxt/components/fullscreenProps.js +3 -0
- package/nuxt/components/iconProps.js +3 -0
- package/nuxt/components/imagePreviewProps.js +3 -0
- package/nuxt/components/inputProps.js +3 -0
- package/nuxt/components/loadingProps.js +3 -0
- package/nuxt/components/mentionProps.js +3 -0
- package/nuxt/components/messageProps.js +3 -0
- package/nuxt/components/modalProps.js +3 -0
- package/nuxt/components/notificationProps.js +3 -0
- package/nuxt/components/paginationProps.js +3 -0
- package/nuxt/components/panelProps.js +3 -0
- package/nuxt/components/popoverProps.js +3 -0
- package/nuxt/components/progressProps.js +3 -0
- package/nuxt/components/rateProps.js +3 -0
- package/nuxt/components/resultProps.js +3 -0
- package/nuxt/components/roundInjectionKey.js +3 -0
- package/nuxt/components/rowProps.js +3 -0
- package/nuxt/components/screenSizes.js +3 -0
- package/nuxt/components/searchProps.js +3 -0
- package/nuxt/components/skeletonItemProps.js +3 -0
- package/nuxt/components/skeletonProps.js +3 -0
- package/nuxt/components/sliderProps.js +3 -0
- package/nuxt/components/splitterProps.js +3 -0
- package/nuxt/components/statisticProps.js +3 -0
- package/nuxt/components/stepProps.js +3 -0
- package/nuxt/components/stepsProps.js +3 -0
- package/nuxt/components/svgIconProps.js +3 -0
- package/nuxt/components/switchProps.js +3 -0
- package/nuxt/components/tableProps.js +3 -0
- package/nuxt/components/tabsProps.js +3 -0
- package/nuxt/components/tagProps.js +3 -0
- package/nuxt/components/textareaProps.js +3 -0
- package/nuxt/components/timeAxisProps.js +3 -0
- package/nuxt/components/timerPickerPanelProps.js +3 -0
- package/nuxt/components/tooltipProps.js +3 -0
- package/nuxt/components/treeNodeProps.js +3 -0
- package/nuxt/components/treeProps.js +3 -0
- package/nuxt/components/uploadProps.js +3 -0
- package/nuxt/index.js +13 -0
- package/overlay/index.d.ts +7 -0
- package/overlay/index.es.js +245 -303
- package/overlay/index.umd.js +1 -1
- package/overlay/style.css +1 -1
- package/package.json +16 -84
- package/pagination/index.d.ts +7 -0
- package/pagination/index.es.js +333 -155
- package/pagination/index.umd.js +1 -1
- package/pagination/style.css +1 -1
- package/panel/index.d.ts +7 -0
- package/panel/index.es.js +48 -35
- package/panel/index.umd.js +1 -1
- package/panel/style.css +1 -1
- package/popover/index.d.ts +7 -0
- package/popover/index.es.js +6035 -204
- package/popover/index.umd.js +27 -1
- package/popover/style.css +1 -1
- package/progress/index.d.ts +7 -0
- package/progress/index.es.js +111 -57
- package/progress/index.umd.js +3 -3
- package/progress/style.css +1 -1
- package/radio/index.d.ts +7 -0
- package/radio/index.es.js +8015 -182
- package/radio/index.umd.js +38 -1
- package/radio/style.css +1 -1
- package/rate/index.d.ts +7 -0
- package/rate/index.es.js +78 -56
- package/rate/index.umd.js +1 -1
- package/rate/style.css +1 -1
- package/result/index.d.ts +7 -0
- package/result/index.es.js +248 -0
- package/result/index.umd.js +1 -0
- package/{sticky → result}/package.json +1 -1
- package/result/style.css +1 -0
- package/ripple/index.d.ts +7 -0
- package/ripple/index.es.js +56 -61
- package/ripple/index.umd.js +1 -1
- package/search/index.d.ts +7 -0
- package/search/index.es.js +8381 -406
- package/search/index.umd.js +38 -1
- package/search/style.css +1 -1
- package/select/index.d.ts +7 -0
- package/select/index.es.js +9331 -576
- package/select/index.umd.js +38 -1
- package/select/style.css +1 -1
- package/skeleton/index.d.ts +7 -0
- package/skeleton/index.es.js +115 -145
- package/skeleton/index.umd.js +1 -1
- package/skeleton/style.css +1 -1
- package/slider/index.d.ts +7 -0
- package/slider/index.es.js +148 -142
- package/slider/index.umd.js +1 -1
- package/slider/style.css +1 -1
- package/splitter/index.d.ts +7 -0
- package/splitter/index.es.js +6308 -181
- package/splitter/index.umd.js +27 -1
- package/splitter/style.css +1 -1
- package/statistic/index.d.ts +7 -0
- package/statistic/index.es.js +253 -0
- package/statistic/index.umd.js +1 -0
- package/statistic/package.json +7 -0
- package/statistic/style.css +1 -0
- package/status/index.d.ts +7 -0
- package/status/index.es.js +29 -8
- package/status/index.umd.js +1 -1
- package/status/style.css +1 -1
- package/steps/index.d.ts +7 -0
- package/steps/index.es.js +386 -0
- package/steps/index.umd.js +1 -0
- package/steps/package.json +7 -0
- package/steps/style.css +1 -0
- package/style.css +1 -1
- package/switch/index.d.ts +7 -0
- package/switch/index.es.js +7819 -65
- package/switch/index.umd.js +38 -1
- package/switch/style.css +1 -1
- package/table/index.d.ts +7 -0
- package/table/index.es.js +11435 -204
- package/table/index.umd.js +38 -1
- package/table/style.css +1 -1
- package/tabs/index.d.ts +7 -0
- package/tabs/index.es.js +356 -143
- package/tabs/index.umd.js +1 -1
- package/tabs/style.css +1 -1
- package/tag/index.d.ts +7 -0
- package/tag/index.es.js +156 -0
- package/tag/index.umd.js +1 -0
- package/tag/package.json +7 -0
- package/tag/style.css +1 -0
- package/textarea/index.d.ts +7 -0
- package/textarea/index.es.js +7989 -0
- package/textarea/index.umd.js +46 -0
- package/textarea/package.json +7 -0
- package/textarea/style.css +1 -0
- package/{theme → theme/theme.scss} +0 -0
- package/time-picker/index.d.ts +7 -0
- package/time-picker/index.es.js +9126 -597
- package/time-picker/index.umd.js +38 -1
- package/time-picker/style.css +1 -1
- package/time-select/index.d.ts +7 -0
- package/time-select/index.es.js +9606 -0
- package/time-select/index.umd.js +38 -0
- package/{breadcrumb → time-select}/package.json +1 -1
- package/time-select/style.css +1 -0
- package/timeline/index.d.ts +7 -0
- package/timeline/index.es.js +427 -0
- package/timeline/index.umd.js +1 -0
- package/timeline/package.json +7 -0
- package/timeline/style.css +1 -0
- package/tooltip/index.d.ts +7 -0
- package/tooltip/index.es.js +5870 -141
- package/tooltip/index.umd.js +27 -1
- package/tooltip/style.css +1 -1
- package/tree/index.d.ts +7 -0
- package/tree/index.es.js +11504 -692
- package/tree/index.umd.js +38 -1
- package/tree/style.css +1 -1
- package/upload/index.d.ts +7 -0
- package/upload/index.es.js +968 -2748
- package/upload/index.umd.js +1 -1
- package/upload/style.css +1 -1
- package/vue-devui.es.js +22816 -16568
- package/vue-devui.umd.js +42 -20
- package/accordion/index.es.js +0 -190
- package/accordion/index.umd.js +0 -1
- package/accordion/style.css +0 -1
- package/anchor/index.es.js +0 -263
- package/anchor/index.umd.js +0 -1
- package/anchor/style.css +0 -1
- package/breadcrumb/index.es.js +0 -127
- package/breadcrumb/index.umd.js +0 -1
- package/breadcrumb/style.css +0 -1
- package/carousel/index.es.js +0 -328
- package/carousel/index.umd.js +0 -1
- package/carousel/style.css +0 -1
- package/cascader/index.es.js +0 -187
- package/cascader/index.umd.js +0 -1
- package/cascader/style.css +0 -1
- package/date-picker/index.es.js +0 -1171
- package/date-picker/index.umd.js +0 -1
- package/date-picker/package.json +0 -7
- package/date-picker/style.css +0 -1
- package/nav-sprite/index.es.js +0 -742
- package/nav-sprite/index.umd.js +0 -1
- package/nav-sprite/package.json +0 -7
- package/quadrant-diagram/index.es.js +0 -489
- package/quadrant-diagram/index.umd.js +0 -1
- package/quadrant-diagram/package.json +0 -7
- package/quadrant-diagram/style.css +0 -1
- package/steps-guide/index.es.js +0 -211
- package/steps-guide/index.umd.js +0 -1
- package/steps-guide/package.json +0 -7
- package/steps-guide/style.css +0 -1
- package/sticky/index.es.js +0 -197
- package/sticky/index.umd.js +0 -1
- package/tag-input/index.es.js +0 -341
- package/tag-input/index.umd.js +0 -1
- package/tag-input/package.json +0 -7
- package/tag-input/style.css +0 -1
- package/time-axis/index.es.js +0 -79
- package/time-axis/index.umd.js +0 -1
- package/time-axis/package.json +0 -7
- package/time-axis/style.css +0 -1
- package/toast/index.es.js +0 -2059
- package/toast/index.umd.js +0 -1
- package/toast/style.css +0 -1
- package/transfer/index.es.js +0 -1446
- package/transfer/index.umd.js +0 -1
- package/transfer/package.json +0 -7
- package/transfer/style.css +0 -1
- package/tree-select/index.es.js +0 -203
- package/tree-select/index.umd.js +0 -1
- package/tree-select/package.json +0 -7
- package/tree-select/style.css +0 -1
package/tag-input/index.es.js
DELETED
|
@@ -1,341 +0,0 @@
|
|
|
1
|
-
var __defProp = Object.defineProperty;
|
|
2
|
-
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
3
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
4
|
-
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
6
|
-
var __spreadValues = (a, b) => {
|
|
7
|
-
for (var prop in b || (b = {}))
|
|
8
|
-
if (__hasOwnProp.call(b, prop))
|
|
9
|
-
__defNormalProp(a, prop, b[prop]);
|
|
10
|
-
if (__getOwnPropSymbols)
|
|
11
|
-
for (var prop of __getOwnPropSymbols(b)) {
|
|
12
|
-
if (__propIsEnum.call(b, prop))
|
|
13
|
-
__defNormalProp(a, prop, b[prop]);
|
|
14
|
-
}
|
|
15
|
-
return a;
|
|
16
|
-
};
|
|
17
|
-
import { createVNode, mergeProps, defineComponent, ref, computed, watch, nextTick } from "vue";
|
|
18
|
-
var removeBtnSvg = createVNode("svg", mergeProps({
|
|
19
|
-
"width": "12px",
|
|
20
|
-
"height": "12px",
|
|
21
|
-
"viewBox": "0 0 12 12",
|
|
22
|
-
"version": "1.1",
|
|
23
|
-
"xmlns": "http://www.w3.org/2000/svg"
|
|
24
|
-
}, {
|
|
25
|
-
"xmlns:xlink": "http://www.w3.org/1999/xlink"
|
|
26
|
-
}), [createVNode("g", {
|
|
27
|
-
"stroke": "none",
|
|
28
|
-
"stroke-width": "1",
|
|
29
|
-
"fill": "none",
|
|
30
|
-
"fill-rule": "evenodd"
|
|
31
|
-
}, [createVNode("path", {
|
|
32
|
-
"d": "M8.86785321,3.13214679 C9.02624037,3.29053395 9.02624037,3.54733027 8.86785321,3.70571743 L6.573,6 L8.86785321,8.29428257 C9.02624037,8.45266973 9.02624037,8.70946605 8.86785321,8.86785321 C8.70946605,9.02624037 8.45266973,9.02624037 8.29428257,8.86785321 L6,6.573 L3.70571743,8.86785321 C3.54733027,9.02624037 3.29053395,9.02624037 3.13214679,8.86785321 C2.97375963,8.70946605 2.97375963,8.45266973 3.13214679,8.29428257 L5.427,6 L3.13214679,3.70571743 C2.97375963,3.54733027 2.97375963,3.29053395 3.13214679,3.13214679 C3.29053395,2.97375963 3.54733027,2.97375963 3.70571743,3.13214679 L6,5.427 L8.29428257,3.13214679 C8.45266973,2.97375963 8.70946605,2.97375963 8.86785321,3.13214679 Z",
|
|
33
|
-
"fill-rule": "nonzero"
|
|
34
|
-
}, null)])]);
|
|
35
|
-
var tagInput = "";
|
|
36
|
-
const tagInputProps = {
|
|
37
|
-
tags: {
|
|
38
|
-
type: Array,
|
|
39
|
-
default: () => []
|
|
40
|
-
},
|
|
41
|
-
displayProperty: {
|
|
42
|
-
type: String,
|
|
43
|
-
default: "name"
|
|
44
|
-
},
|
|
45
|
-
placeholder: {
|
|
46
|
-
type: String,
|
|
47
|
-
default: ""
|
|
48
|
-
},
|
|
49
|
-
minLength: {
|
|
50
|
-
type: Number,
|
|
51
|
-
default: 3
|
|
52
|
-
},
|
|
53
|
-
maxLength: {
|
|
54
|
-
type: Number,
|
|
55
|
-
default: Number.MAX_SAFE_INTEGER
|
|
56
|
-
},
|
|
57
|
-
maxTags: {
|
|
58
|
-
type: Number,
|
|
59
|
-
default: Number.MAX_SAFE_INTEGER
|
|
60
|
-
},
|
|
61
|
-
maxTagsText: {
|
|
62
|
-
type: String,
|
|
63
|
-
default: "\u5DF2\u8FBE\u5230\u6700\u5927\u4E2A\u6570\uFF1A"
|
|
64
|
-
},
|
|
65
|
-
spellcheck: {
|
|
66
|
-
type: Boolean,
|
|
67
|
-
default: true
|
|
68
|
-
},
|
|
69
|
-
suggestionList: {
|
|
70
|
-
type: Array,
|
|
71
|
-
default: () => []
|
|
72
|
-
},
|
|
73
|
-
disabled: {
|
|
74
|
-
type: Boolean,
|
|
75
|
-
default: false
|
|
76
|
-
},
|
|
77
|
-
isAddBySpace: {
|
|
78
|
-
type: Boolean,
|
|
79
|
-
default: true
|
|
80
|
-
},
|
|
81
|
-
disabledText: {
|
|
82
|
-
type: String,
|
|
83
|
-
default: ""
|
|
84
|
-
},
|
|
85
|
-
noData: {
|
|
86
|
-
type: String,
|
|
87
|
-
default: ""
|
|
88
|
-
},
|
|
89
|
-
caseSensitivity: {
|
|
90
|
-
type: Boolean,
|
|
91
|
-
default: false
|
|
92
|
-
},
|
|
93
|
-
onValueChange: {
|
|
94
|
-
type: Function,
|
|
95
|
-
default: void 0
|
|
96
|
-
},
|
|
97
|
-
"onUpdate:tags": {
|
|
98
|
-
type: Function,
|
|
99
|
-
default: void 0
|
|
100
|
-
},
|
|
101
|
-
"onUpdate:suggestionList": {
|
|
102
|
-
type: Function,
|
|
103
|
-
default: void 0
|
|
104
|
-
}
|
|
105
|
-
};
|
|
106
|
-
const KEYS_MAP = {
|
|
107
|
-
tab: "Tab",
|
|
108
|
-
down: "ArrowDown",
|
|
109
|
-
up: "ArrowUp",
|
|
110
|
-
enter: "Enter",
|
|
111
|
-
space: " "
|
|
112
|
-
};
|
|
113
|
-
var TagInput = defineComponent({
|
|
114
|
-
name: "DTagInput",
|
|
115
|
-
props: tagInputProps,
|
|
116
|
-
emits: ["update:tags", "update:suggestionList", "valueChange"],
|
|
117
|
-
setup(props, ctx) {
|
|
118
|
-
const add = (arr, target) => {
|
|
119
|
-
const res = Object.assign({}, target);
|
|
120
|
-
delete res.__index;
|
|
121
|
-
return arr.concat(res);
|
|
122
|
-
};
|
|
123
|
-
const remove = (arr, targetIdx) => {
|
|
124
|
-
const newArr = arr.slice();
|
|
125
|
-
newArr.splice(targetIdx, 1);
|
|
126
|
-
return newArr;
|
|
127
|
-
};
|
|
128
|
-
const tagInputVal = ref("");
|
|
129
|
-
const onInput = ($event) => {
|
|
130
|
-
const v = $event.target.value || "";
|
|
131
|
-
tagInputVal.value = v.trim();
|
|
132
|
-
};
|
|
133
|
-
const mergedSuggestions = computed(() => {
|
|
134
|
-
let suggestions = props.suggestionList.map((item, index2) => {
|
|
135
|
-
return __spreadValues({
|
|
136
|
-
__index: index2
|
|
137
|
-
}, item);
|
|
138
|
-
});
|
|
139
|
-
if (tagInputVal.value === "") {
|
|
140
|
-
return suggestions;
|
|
141
|
-
}
|
|
142
|
-
return suggestions = props.caseSensitivity ? suggestions.filter((item) => item[props.displayProperty].indexOf(tagInputVal.value) !== -1) : suggestions.filter((item) => item[props.displayProperty].toLowerCase().indexOf(tagInputVal.value.toLowerCase()) !== -1);
|
|
143
|
-
});
|
|
144
|
-
const selectIndex = ref(0);
|
|
145
|
-
watch(mergedSuggestions, () => {
|
|
146
|
-
selectIndex.value = 0;
|
|
147
|
-
});
|
|
148
|
-
const onSelectIndexChange = (isUp = false) => {
|
|
149
|
-
if (isUp) {
|
|
150
|
-
selectIndex.value < mergedSuggestions.value.length - 1 ? selectIndex.value++ : selectIndex.value = 0;
|
|
151
|
-
return;
|
|
152
|
-
}
|
|
153
|
-
selectIndex.value > 0 ? selectIndex.value-- : selectIndex.value = mergedSuggestions.value.length - 1;
|
|
154
|
-
};
|
|
155
|
-
const tagInputRef = ref(null);
|
|
156
|
-
const isInputBoxFocus = ref(false);
|
|
157
|
-
const onInputFocus = () => {
|
|
158
|
-
isInputBoxFocus.value = true;
|
|
159
|
-
};
|
|
160
|
-
const onInputBlur = () => {
|
|
161
|
-
isInputBoxFocus.value = false;
|
|
162
|
-
};
|
|
163
|
-
const handleEnter = () => {
|
|
164
|
-
let res = {
|
|
165
|
-
[props.displayProperty]: tagInputVal.value
|
|
166
|
-
};
|
|
167
|
-
if (tagInputVal.value === "" && mergedSuggestions.value.length === 0)
|
|
168
|
-
return false;
|
|
169
|
-
if (props.tags.findIndex((item) => item[props.displayProperty] === tagInputVal.value) > -1) {
|
|
170
|
-
tagInputVal.value = "";
|
|
171
|
-
return false;
|
|
172
|
-
}
|
|
173
|
-
if (mergedSuggestions.value.length === 0 && (tagInputVal.value.length < props.minLength || tagInputVal.value.length > props.maxLength)) {
|
|
174
|
-
tagInputVal.value = "";
|
|
175
|
-
return false;
|
|
176
|
-
}
|
|
177
|
-
if (mergedSuggestions.value.length) {
|
|
178
|
-
const target = mergedSuggestions.value[selectIndex.value];
|
|
179
|
-
res = target;
|
|
180
|
-
ctx.emit("update:suggestionList", remove(props.suggestionList, target.__index));
|
|
181
|
-
}
|
|
182
|
-
const newTags = add(props.tags, res);
|
|
183
|
-
ctx.emit("valueChange", props.tags, newTags);
|
|
184
|
-
ctx.emit("update:tags", newTags);
|
|
185
|
-
mergedSuggestions.value.length === 0 && (tagInputVal.value = "");
|
|
186
|
-
};
|
|
187
|
-
const onInputKeydown = ($event) => {
|
|
188
|
-
switch ($event.key) {
|
|
189
|
-
case KEYS_MAP.tab:
|
|
190
|
-
case KEYS_MAP.enter:
|
|
191
|
-
case KEYS_MAP.space:
|
|
192
|
-
if (!props.isAddBySpace && KEYS_MAP.space)
|
|
193
|
-
return;
|
|
194
|
-
handleEnter();
|
|
195
|
-
break;
|
|
196
|
-
case KEYS_MAP.down:
|
|
197
|
-
onSelectIndexChange(true);
|
|
198
|
-
break;
|
|
199
|
-
case KEYS_MAP.up:
|
|
200
|
-
onSelectIndexChange();
|
|
201
|
-
break;
|
|
202
|
-
}
|
|
203
|
-
};
|
|
204
|
-
const removeTag = ($event, tagIdx) => {
|
|
205
|
-
$event.preventDefault();
|
|
206
|
-
ctx.emit("update:suggestionList", add(props.suggestionList, props.tags[tagIdx]));
|
|
207
|
-
const newTags = remove(props.tags, tagIdx);
|
|
208
|
-
ctx.emit("valueChange", props.tags, newTags);
|
|
209
|
-
ctx.emit("update:tags", newTags);
|
|
210
|
-
nextTick(() => {
|
|
211
|
-
var _a;
|
|
212
|
-
(_a = tagInputRef.value) == null ? void 0 : _a.focus();
|
|
213
|
-
});
|
|
214
|
-
};
|
|
215
|
-
const onSuggestionItemClick = ($event, itemIndex) => {
|
|
216
|
-
$event.preventDefault();
|
|
217
|
-
const target = mergedSuggestions.value[itemIndex];
|
|
218
|
-
const newTags = add(props.tags, target);
|
|
219
|
-
const newSuggestions = remove(props.suggestionList, target.__index);
|
|
220
|
-
ctx.emit("valueChange", props.tags, newTags);
|
|
221
|
-
ctx.emit("update:tags", newTags);
|
|
222
|
-
ctx.emit("update:suggestionList", newSuggestions);
|
|
223
|
-
};
|
|
224
|
-
const isTagsLimit = computed(() => props.maxTags <= props.tags.length);
|
|
225
|
-
const isShowSuggestion = computed(() => {
|
|
226
|
-
return !props.disabled && !isTagsLimit.value && isInputBoxFocus.value;
|
|
227
|
-
});
|
|
228
|
-
return {
|
|
229
|
-
tagInputRef,
|
|
230
|
-
tagInputVal,
|
|
231
|
-
isInputBoxFocus,
|
|
232
|
-
onInput,
|
|
233
|
-
onInputFocus,
|
|
234
|
-
onInputBlur,
|
|
235
|
-
removeTag,
|
|
236
|
-
onSuggestionItemClick,
|
|
237
|
-
onInputKeydown,
|
|
238
|
-
isShowSuggestion,
|
|
239
|
-
mergedSuggestions,
|
|
240
|
-
selectIndex,
|
|
241
|
-
isTagsLimit
|
|
242
|
-
};
|
|
243
|
-
},
|
|
244
|
-
render() {
|
|
245
|
-
const {
|
|
246
|
-
tagInputVal,
|
|
247
|
-
isInputBoxFocus,
|
|
248
|
-
disabled,
|
|
249
|
-
disabledText,
|
|
250
|
-
isTagsLimit,
|
|
251
|
-
maxTagsText,
|
|
252
|
-
displayProperty,
|
|
253
|
-
tags,
|
|
254
|
-
onInputKeydown,
|
|
255
|
-
onInputFocus,
|
|
256
|
-
onInputBlur,
|
|
257
|
-
onInput,
|
|
258
|
-
onSuggestionItemClick,
|
|
259
|
-
removeTag,
|
|
260
|
-
placeholder,
|
|
261
|
-
spellcheck,
|
|
262
|
-
isShowSuggestion,
|
|
263
|
-
noData,
|
|
264
|
-
mergedSuggestions,
|
|
265
|
-
selectIndex,
|
|
266
|
-
maxTags
|
|
267
|
-
} = this;
|
|
268
|
-
const inputBoxCls = {
|
|
269
|
-
"devui-tags": true,
|
|
270
|
-
"devui-form-control": true,
|
|
271
|
-
"devui-dropdown-origin": true,
|
|
272
|
-
"devui-dropdown-origin-open": isInputBoxFocus,
|
|
273
|
-
"devui-disabled": disabled
|
|
274
|
-
};
|
|
275
|
-
const tagInputCls = {
|
|
276
|
-
input: true,
|
|
277
|
-
"devui-input": true,
|
|
278
|
-
"invalid-tag": false
|
|
279
|
-
};
|
|
280
|
-
const tagInputStyle = [`display:${disabled ? "none" : "block"};`];
|
|
281
|
-
const noDataTpl = createVNode("li", {
|
|
282
|
-
"class": "devui-suggestion-item devui-disabled"
|
|
283
|
-
}, [noData]);
|
|
284
|
-
return createVNode("div", {
|
|
285
|
-
"class": "devui-tags-host",
|
|
286
|
-
"tabindex": "-1"
|
|
287
|
-
}, [createVNode("div", {
|
|
288
|
-
"class": inputBoxCls,
|
|
289
|
-
"style": ["box-shadow: none;"]
|
|
290
|
-
}, [createVNode("ul", {
|
|
291
|
-
"class": "devui-tag-list",
|
|
292
|
-
"title": disabled ? disabledText : ""
|
|
293
|
-
}, [tags.map((tag, tagIdx) => {
|
|
294
|
-
return createVNode("li", {
|
|
295
|
-
"class": "devui-tag-item"
|
|
296
|
-
}, [createVNode("span", null, [tag[displayProperty]]), !disabled && createVNode("a", {
|
|
297
|
-
"class": "remove-button",
|
|
298
|
-
"onMousedown": ($event) => removeTag($event, tagIdx)
|
|
299
|
-
}, [removeBtnSvg])]);
|
|
300
|
-
})]), createVNode("input", {
|
|
301
|
-
"type": "text",
|
|
302
|
-
"ref": "tagInputRef",
|
|
303
|
-
"value": tagInputVal,
|
|
304
|
-
"class": tagInputCls,
|
|
305
|
-
"style": tagInputStyle,
|
|
306
|
-
"onKeydown": onInputKeydown,
|
|
307
|
-
"onFocus": onInputFocus,
|
|
308
|
-
"onBlur": onInputBlur,
|
|
309
|
-
"onInput": ($event) => onInput($event),
|
|
310
|
-
"placeholder": isTagsLimit ? `${maxTagsText} ${maxTags}` : placeholder,
|
|
311
|
-
"spellcheck": spellcheck,
|
|
312
|
-
"disabled": isTagsLimit
|
|
313
|
-
}, null)]), !isShowSuggestion ? "" : createVNode("div", {
|
|
314
|
-
"class": "devui-tags-autocomplete devui-dropdown-menu"
|
|
315
|
-
}, [createVNode("ul", {
|
|
316
|
-
"class": "devui-suggestion-list"
|
|
317
|
-
}, [mergedSuggestions.length === 0 ? noDataTpl : mergedSuggestions.map((item, index2) => {
|
|
318
|
-
return createVNode("li", {
|
|
319
|
-
"class": {
|
|
320
|
-
"devui-suggestion-item": true,
|
|
321
|
-
selected: index2 === selectIndex
|
|
322
|
-
},
|
|
323
|
-
"onMousedown": ($event) => {
|
|
324
|
-
onSuggestionItemClick($event, index2);
|
|
325
|
-
}
|
|
326
|
-
}, [item[displayProperty]]);
|
|
327
|
-
})])])]);
|
|
328
|
-
}
|
|
329
|
-
});
|
|
330
|
-
TagInput.install = function(app) {
|
|
331
|
-
app.component(TagInput.name, TagInput);
|
|
332
|
-
};
|
|
333
|
-
var index = {
|
|
334
|
-
title: "TagInput \u6807\u7B7E\u8F93\u5165\u6846",
|
|
335
|
-
category: "\u6570\u636E\u5F55\u5165",
|
|
336
|
-
status: "\u5DF2\u5B8C\u6210",
|
|
337
|
-
install(app) {
|
|
338
|
-
app.use(TagInput);
|
|
339
|
-
}
|
|
340
|
-
};
|
|
341
|
-
export { TagInput, index as default };
|
package/tag-input/index.umd.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var K=Object.defineProperty;var F=Object.getOwnPropertySymbols;var O=Object.prototype.hasOwnProperty,R=Object.prototype.propertyIsEnumerable;var A=(u,e,o)=>e in u?K(u,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):u[e]=o,E=(u,e)=>{for(var o in e||(e={}))O.call(e,o)&&A(u,o,e[o]);if(F)for(var o of F(e))R.call(e,o)&&A(u,o,e[o]);return u};(function(u,e){typeof exports=="object"&&typeof module!="undefined"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(u=typeof globalThis!="undefined"?globalThis:u||self,e(u.index={},u.Vue))})(this,function(u,e){"use strict";var o=e.createVNode("svg",e.mergeProps({width:"12px",height:"12px",viewBox:"0 0 12 12",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},{"xmlns:xlink":"http://www.w3.org/1999/xlink"}),[e.createVNode("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},[e.createVNode("path",{d:"M8.86785321,3.13214679 C9.02624037,3.29053395 9.02624037,3.54733027 8.86785321,3.70571743 L6.573,6 L8.86785321,8.29428257 C9.02624037,8.45266973 9.02624037,8.70946605 8.86785321,8.86785321 C8.70946605,9.02624037 8.45266973,9.02624037 8.29428257,8.86785321 L6,6.573 L3.70571743,8.86785321 C3.54733027,9.02624037 3.29053395,9.02624037 3.13214679,8.86785321 C2.97375963,8.70946605 2.97375963,8.45266973 3.13214679,8.29428257 L5.427,6 L3.13214679,3.70571743 C2.97375963,3.54733027 2.97375963,3.29053395 3.13214679,3.13214679 C3.29053395,2.97375963 3.54733027,2.97375963 3.70571743,3.13214679 L6,5.427 L8.29428257,3.13214679 C8.45266973,2.97375963 8.70946605,2.97375963 8.86785321,3.13214679 Z","fill-rule":"nonzero"},null)])]),j="";const P={tags:{type:Array,default:()=>[]},displayProperty:{type:String,default:"name"},placeholder:{type:String,default:""},minLength:{type:Number,default:3},maxLength:{type:Number,default:Number.MAX_SAFE_INTEGER},maxTags:{type:Number,default:Number.MAX_SAFE_INTEGER},maxTagsText:{type:String,default:"\u5DF2\u8FBE\u5230\u6700\u5927\u4E2A\u6570\uFF1A"},spellcheck:{type:Boolean,default:!0},suggestionList:{type:Array,default:()=>[]},disabled:{type:Boolean,default:!1},isAddBySpace:{type:Boolean,default:!0},disabledText:{type:String,default:""},noData:{type:String,default:""},caseSensitivity:{type:Boolean,default:!1},onValueChange:{type:Function,default:void 0},"onUpdate:tags":{type:Function,default:void 0},"onUpdate:suggestionList":{type:Function,default:void 0}},p={tab:"Tab",down:"ArrowDown",up:"ArrowUp",enter:"Enter",space:" "};var m=e.defineComponent({name:"DTagInput",props:P,emits:["update:tags","update:suggestionList","valueChange"],setup(t,d){const g=(n,a)=>{const s=Object.assign({},a);return delete s.__index,n.concat(s)},v=(n,a)=>{const s=n.slice();return s.splice(a,1),s},l=e.ref(""),b=n=>{const a=n.target.value||"";l.value=a.trim()},i=e.computed(()=>{let n=t.suggestionList.map((a,s)=>E({__index:s},a));return l.value===""?n:n=t.caseSensitivity?n.filter(a=>a[t.displayProperty].indexOf(l.value)!==-1):n.filter(a=>a[t.displayProperty].toLowerCase().indexOf(l.value.toLowerCase())!==-1)}),r=e.ref(0);e.watch(i,()=>{r.value=0});const h=(n=!1)=>{if(n){r.value<i.value.length-1?r.value++:r.value=0;return}r.value>0?r.value--:r.value=i.value.length-1},w=e.ref(null),f=e.ref(!1),L=()=>{f.value=!0},S=()=>{f.value=!1},C=()=>{let n={[t.displayProperty]:l.value};if(l.value===""&&i.value.length===0)return!1;if(t.tags.findIndex(s=>s[t.displayProperty]===l.value)>-1||i.value.length===0&&(l.value.length<t.minLength||l.value.length>t.maxLength))return l.value="",!1;if(i.value.length){const s=i.value[r.value];n=s,d.emit("update:suggestionList",v(t.suggestionList,s.__index))}const a=g(t.tags,n);d.emit("valueChange",t.tags,a),d.emit("update:tags",a),i.value.length===0&&(l.value="")},N=n=>{switch(n.key){case p.tab:case p.enter:case p.space:if(!t.isAddBySpace&&p.space)return;C();break;case p.down:h(!0);break;case p.up:h();break}},V=(n,a)=>{n.preventDefault(),d.emit("update:suggestionList",g(t.suggestionList,t.tags[a]));const s=v(t.tags,a);d.emit("valueChange",t.tags,s),d.emit("update:tags",s),e.nextTick(()=>{var c;(c=w.value)==null||c.focus()})},B=(n,a)=>{n.preventDefault();const s=i.value[a],c=g(t.tags,s),k=v(t.suggestionList,s.__index);d.emit("valueChange",t.tags,c),d.emit("update:tags",c),d.emit("update:suggestionList",k)},I=e.computed(()=>t.maxTags<=t.tags.length),T=e.computed(()=>!t.disabled&&!I.value&&f.value);return{tagInputRef:w,tagInputVal:l,isInputBoxFocus:f,onInput:b,onInputFocus:L,onInputBlur:S,removeTag:V,onSuggestionItemClick:B,onInputKeydown:N,isShowSuggestion:T,mergedSuggestions:i,selectIndex:r,isTagsLimit:I}},render(){const{tagInputVal:t,isInputBoxFocus:d,disabled:g,disabledText:v,isTagsLimit:l,maxTagsText:b,displayProperty:i,tags:r,onInputKeydown:h,onInputFocus:w,onInputBlur:f,onInput:L,onSuggestionItemClick:S,removeTag:C,placeholder:N,spellcheck:V,isShowSuggestion:B,noData:I,mergedSuggestions:T,selectIndex:n,maxTags:a}=this,s={"devui-tags":!0,"devui-form-control":!0,"devui-dropdown-origin":!0,"devui-dropdown-origin-open":d,"devui-disabled":g},c={input:!0,"devui-input":!0,"invalid-tag":!1},k=[`display:${g?"none":"block"};`],M=e.createVNode("li",{class:"devui-suggestion-item devui-disabled"},[I]);return e.createVNode("div",{class:"devui-tags-host",tabindex:"-1"},[e.createVNode("div",{class:s,style:["box-shadow: none;"]},[e.createVNode("ul",{class:"devui-tag-list",title:g?v:""},[r.map((y,x)=>e.createVNode("li",{class:"devui-tag-item"},[e.createVNode("span",null,[y[i]]),!g&&e.createVNode("a",{class:"remove-button",onMousedown:_=>C(_,x)},[o])]))]),e.createVNode("input",{type:"text",ref:"tagInputRef",value:t,class:c,style:k,onKeydown:h,onFocus:w,onBlur:f,onInput:y=>L(y),placeholder:l?`${b} ${a}`:N,spellcheck:V,disabled:l},null)]),B?e.createVNode("div",{class:"devui-tags-autocomplete devui-dropdown-menu"},[e.createVNode("ul",{class:"devui-suggestion-list"},[T.length===0?M:T.map((y,x)=>e.createVNode("li",{class:{"devui-suggestion-item":!0,selected:x===n},onMousedown:_=>{S(_,x)}},[y[i]]))])]):""])}});m.install=function(t){t.component(m.name,m)};var D={title:"TagInput \u6807\u7B7E\u8F93\u5165\u6846",category:"\u6570\u636E\u5F55\u5165",status:"\u5DF2\u5B8C\u6210",install(t){t.use(m)}};u.TagInput=m,u.default=D,Object.defineProperty(u,"__esModule",{value:!0}),u[Symbol.toStringTag]="Module"});
|
package/tag-input/package.json
DELETED
package/tag-input/style.css
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
:host{display:block;outline:none}.devui-tags-host{position:relative;height:100%;outline:none}.devui-tags-host:active{outline:0}.devui-form-control.devui-tags{-moz-appearance:textfield;-webkit-appearance:textfield;padding:2px 4px;overflow:hidden;word-wrap:break-word;cursor:text;background-color:var(--devui-base-bg, #ffffff);border:1px solid var(--devui-line, #adb0b8);border-radius:var(--devui-border-radius, 2px);height:100%;transition:border-color .3s cubic-bezier(.645,.045,.355,1)}.devui-form-control.devui-tags:hover{border-color:var(--devui-list-item-hover-bg, #f2f5fc)}.devui-form-control.devui-tags.focused{outline:0}.devui-form-control.devui-tags.devui-dropdown-origin:focus-within{border-color:var(--devui-brand, #5e7ce0)}.devui-form-control.devui-tags .devui-tag-list{margin:0;padding:0;list-style-type:none}.devui-form-control.devui-tags .devui-tag-item{margin:1px;padding:0 10px;display:inline-block;min-height:18px;line-height:18px;border-radius:var(--devui-border-radius, 2px);color:var(--devui-text, #252b3a);background-color:var(--devui-label-bg, #eef0f5);position:relative;border:1px solid var(--devui-label-bg, #eef0f5)}.devui-form-control.devui-tags .devui-tag-item span{line-height:1.5;margin-right:25px}.devui-form-control.devui-tags .devui-tag-item .remove-button{margin:0 0 0 12px;padding:0;border:none;vertical-align:top;font-size:var(--devui-font-size-page-title, 16px);border-radius:50%;background-color:var(--devui-line, #adb0b8);width:12px;height:12px;display:inline-block;line-height:12px;text-align:center;transform:translateY(-50%);position:absolute;top:50%;right:10px}.devui-form-control.devui-tags .devui-tag-item .remove-button svg path{fill:var(--devui-light-text, #ffffff)}.devui-form-control.devui-tags .devui-tag-item .remove-button:hover{text-decoration:none}.devui-form-control.devui-tags:not(.devui-disabled) .devui-tag-item{cursor:pointer}.devui-form-control.devui-tags:not(.devui-disabled) .devui-tag-item span:hover{color:var(--devui-list-item-hover-text, #526ecc)}.devui-form-control.devui-tags:not(.devui-disabled) .devui-tag-item .remove-button:hover{background-color:var(--devui-list-item-hover-text, #526ecc)}.devui-form-control.devui-tags.devui-disabled{border-color:var(--devui-disabled-line, #dfe1e6);background-color:var(--devui-disabled-bg, #f5f5f6);cursor:not-allowed}.devui-form-control.devui-tags.devui-disabled .devui-tag-item{color:var(--devui-disabled-text, #adb0b8);background-color:var(--devui-disabled-bg, #f5f5f6);border-color:var(--devui-disabled-line, #dfe1e6)}.devui-form-control.devui-tags.devui-disabled .devui-tag-item span{margin-right:0}.devui-form-control.devui-tags.devui-disabled .devui-tag-item .remove-button{background-color:var(--devui-disabled-line, #dfe1e6)}.devui-form-control.devui-tags.devui-disabled .devui-tag-item .remove-button svg path{fill:var(--devui-light-text, #ffffff)}.devui-form-control.devui-tags.devui-disabled .devui-tag-list{min-height:22px}.devui-form-control.devui-tags input.devui-input{border:0;outline:0;float:left;width:100%;height:22px;font-size:var(--devui-font-size, 12px);padding-left:5px}.devui-form-control.devui-tags input.devui-input::-ms-clear{display:none}.devui-tags-autocomplete{position:absolute;padding-bottom:5px;z-index:var(--devui-z-index-dropdown, 1052);width:100%;background-color:var(--devui-connected-overlay-bg, #ffffff);box-shadow:var(--devui-shadow-connected-overlay, 0 2px 8px 0) var(--devui-shadow, rgba(0, 0, 0, .2))}.devui-tags-autocomplete.devui-dropdown-menu{display:block;margin:4px 0}.devui-tags-autocomplete .devui-suggestion-list{margin:0;padding:0;list-style-type:none;max-height:280px;overflow-y:auto;position:relative}.devui-tags-autocomplete .devui-suggestion-list .devui-suggestion-item{padding:5px 10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:var(--devui-font-size, 12px);line-height:20px}.devui-tags-autocomplete .devui-suggestion-list .devui-suggestion-item:not(.devui-disabled){cursor:pointer;color:var(--devui-text, #252b3a)}.devui-tags-autocomplete .devui-suggestion-list .devui-suggestion-item:not(.devui-disabled):hover{background-color:var(--devui-list-item-hover-bg, #f2f5fc)}.devui-tags-autocomplete .devui-suggestion-list .devui-suggestion-item:not(.devui-disabled).selected{color:var(--devui-brand, #5e7ce0);background-color:var(--devui-list-item-hover-bg, #f2f5fc)}.devui-tags-autocomplete .devui-suggestion-list .devui-suggestion-item{transition:color var(--devui-animation-duration-fast, .1s) var(--devui-animation-ease-in-smooth, cubic-bezier(.645, .045, .355, 1)),background-color var(--devui-animation-duration-fast, .1s) var(--devui-animation-ease-in-smooth, cubic-bezier(.645, .045, .355, 1))}
|
package/time-axis/index.es.js
DELETED
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
import { defineComponent, createVNode } from "vue";
|
|
2
|
-
const timeAxisProps = {
|
|
3
|
-
direction: {
|
|
4
|
-
type: String,
|
|
5
|
-
default: "vertical"
|
|
6
|
-
},
|
|
7
|
-
data: {
|
|
8
|
-
type: Array,
|
|
9
|
-
default: () => []
|
|
10
|
-
}
|
|
11
|
-
};
|
|
12
|
-
const timeAxisItemProps = {
|
|
13
|
-
time: {
|
|
14
|
-
type: String
|
|
15
|
-
},
|
|
16
|
-
text: {
|
|
17
|
-
type: String
|
|
18
|
-
},
|
|
19
|
-
dotColor: {
|
|
20
|
-
type: String
|
|
21
|
-
}
|
|
22
|
-
};
|
|
23
|
-
var index$1 = "";
|
|
24
|
-
var TimeAxisItem = defineComponent({
|
|
25
|
-
name: "DTimeAxisItem",
|
|
26
|
-
props: timeAxisItemProps,
|
|
27
|
-
emits: [],
|
|
28
|
-
setup(props, ctx) {
|
|
29
|
-
const itemClass = "devui-time-axis-item";
|
|
30
|
-
return () => {
|
|
31
|
-
return createVNode("div", {
|
|
32
|
-
"class": itemClass
|
|
33
|
-
}, [createVNode("div", {
|
|
34
|
-
"class": `${itemClass}-data-left ${itemClass}-data-top`
|
|
35
|
-
}, [createVNode("span", null, [props.time])]), createVNode("div", {
|
|
36
|
-
"class": `${itemClass}-axis`
|
|
37
|
-
}, [createVNode("div", {
|
|
38
|
-
"class": `${itemClass}-line ${itemClass}-line-style-solid`
|
|
39
|
-
}, null), createVNode("div", {
|
|
40
|
-
"class": `${itemClass}-dot ${itemClass}-type-primary`,
|
|
41
|
-
"style": {
|
|
42
|
-
borderColor: props.dotColor
|
|
43
|
-
}
|
|
44
|
-
}, null), createVNode("div", {
|
|
45
|
-
"class": `${itemClass}-line ${itemClass}-line-style-solid`
|
|
46
|
-
}, null)]), createVNode("div", {
|
|
47
|
-
"class": `${itemClass}-data-right ${itemClass}-data-bottom`
|
|
48
|
-
}, [props.text])]);
|
|
49
|
-
};
|
|
50
|
-
}
|
|
51
|
-
});
|
|
52
|
-
var timeAxis = "";
|
|
53
|
-
var TimeAxis = defineComponent({
|
|
54
|
-
name: "DTimeAxis",
|
|
55
|
-
components: {
|
|
56
|
-
TimeAxisItem
|
|
57
|
-
},
|
|
58
|
-
props: timeAxisProps,
|
|
59
|
-
emits: [],
|
|
60
|
-
setup(props, ctx) {
|
|
61
|
-
return () => {
|
|
62
|
-
return createVNode("div", {
|
|
63
|
-
"class": `devui-time-axis-${props.direction}`
|
|
64
|
-
}, [props.data.map((item) => createVNode(TimeAxisItem, item, null))]);
|
|
65
|
-
};
|
|
66
|
-
}
|
|
67
|
-
});
|
|
68
|
-
TimeAxis.install = function(app) {
|
|
69
|
-
app.component(TimeAxis.name, TimeAxis);
|
|
70
|
-
};
|
|
71
|
-
var index = {
|
|
72
|
-
title: "TimeAxis \u65F6\u95F4\u8F74",
|
|
73
|
-
category: "\u6570\u636E\u5C55\u793A",
|
|
74
|
-
status: "10%",
|
|
75
|
-
install(app) {
|
|
76
|
-
app.use(TimeAxis);
|
|
77
|
-
}
|
|
78
|
-
};
|
|
79
|
-
export { TimeAxis, index as default };
|
package/time-axis/index.umd.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(function(n,e){typeof exports=="object"&&typeof module!="undefined"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(n=typeof globalThis!="undefined"?globalThis:n||self,e(n.index={},n.Vue))})(this,function(n,e){"use strict";const d={direction:{type:String,default:"vertical"},data:{type:Array,default:()=>[]}},o={time:{type:String},text:{type:String},dotColor:{type:String}};var c="",a=e.defineComponent({name:"DTimeAxisItem",props:o,emits:[],setup(i,l){const t="devui-time-axis-item";return()=>e.createVNode("div",{class:t},[e.createVNode("div",{class:`${t}-data-left ${t}-data-top`},[e.createVNode("span",null,[i.time])]),e.createVNode("div",{class:`${t}-axis`},[e.createVNode("div",{class:`${t}-line ${t}-line-style-solid`},null),e.createVNode("div",{class:`${t}-dot ${t}-type-primary`,style:{borderColor:i.dotColor}},null),e.createVNode("div",{class:`${t}-line ${t}-line-style-solid`},null)]),e.createVNode("div",{class:`${t}-data-right ${t}-data-bottom`},[i.text])])}}),m="",s=e.defineComponent({name:"DTimeAxis",components:{TimeAxisItem:a},props:d,emits:[],setup(i,l){return()=>e.createVNode("div",{class:`devui-time-axis-${i.direction}`},[i.data.map(t=>e.createVNode(a,t,null))])}});s.install=function(i){i.component(s.name,s)};var r={title:"TimeAxis \u65F6\u95F4\u8F74",category:"\u6570\u636E\u5C55\u793A",status:"10%",install(i){i.use(s)}};n.TimeAxis=s,n.default=r,Object.defineProperty(n,"__esModule",{value:!0}),n[Symbol.toStringTag]="Module"});
|
package/time-axis/package.json
DELETED
package/time-axis/style.css
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.devui-time-axis-item-type-primary{border:2px solid var(--devui-placeholder, #8a8e99);border-radius:50%}.devui-time-axis-item-type-right i{color:var(--devui-success, #50d4ab)}.devui-time-axis-item-type-danger path{fill:var(--devui-danger, #f66f6a)}.devui-time-axis-item-type-danger circle{fill:var(--devui-light-text, #ffffff)}.devui-time-axis-item-type-warning i{color:var(--devui-warning, #fac20a)}.devui-time-axis-item-type-running{line-height:16px;text-align:center;animation:devui-time-axis-running 1.5s linear infinite;border:2px solid var(--devui-success, #50d4ab);border-radius:50%}.devui-time-axis-item-vertical-time-bottom{display:flex}.devui-time-axis-item-vertical-time-bottom .devui-time-axis-item-axis{display:flex;flex-direction:column;align-items:center}.devui-time-axis-item-vertical-time-bottom .devui-time-axis-item-dot,.devui-time-axis-item-vertical-time-bottom .devui-time-axis-item-dot>svg{width:18px;height:18px}.devui-time-axis-item-vertical-time-bottom .devui-time-axis-item-dot>i{font-size:18px}.devui-time-axis-item-vertical-time-bottom .devui-time-axis-item-custom-dot{width:18px;height:18px;text-align:center}.devui-time-axis-item-vertical-time-bottom .devui-time-axis-item-line-time-bottom{position:relative;height:calc(100% - 36px);border-left-width:2px;border-left-color:var(--devui-dividing-line, #dfe1e6)}.devui-time-axis-item-vertical-time-bottom .devui-time-axis-line-style-dashed{border-left-style:dashed}.devui-time-axis-item-vertical-time-bottom .devui-time-axis-line-style-solid{border-left-style:solid}.devui-time-axis-item-vertical-time-bottom .devui-time-axis-line-style-none{border-left-style:none}.devui-time-axis-item-vertical-time-bottom .devui-time-axis-middle-zone{position:absolute;top:50%;transform:translate(-50%,-50%)}.devui-time-axis-item-vertical-time-bottom .devui-time-axis-item-data-time-bottom{margin-left:12px;margin-bottom:40px}.devui-time-axis-item-vertical-time-bottom .devui-time-axis-item-template{margin-left:12px;margin-bottom:24px}@keyframes devui-time-axis-running{0%{transform:rotate(0);color:var(--devui-success, #50d4ab);border-color:var(--devui-success, #50d4ab)}50%{transform:rotate(180deg);color:var(--devui-success, #50d4ab);border-color:var(--devui-success, #50d4ab)}to{transform:rotate(360deg);color:var(--devui-success, #50d4ab);border-color:var(--devui-success, #50d4ab)}}.devui-time-axis-item-data-hidden{visibility:hidden}:host.devui-time-axis-item-horizontal-no-line{width:auto!important}:host.devui-time-axis-item-horizontal-no-line .devui-time-axis-item-data-horizontal-top{width:max-content}:host.devui-time-axis-item-horizontal-no-line .devui-time-axis-item-data-horizontal-bottom{width:max-content}:host.devui-time-axis-item-vertical-no-line .devui-time-axis-item-data-time-bottom{margin-bottom:0}:host.devui-time-axis-item-vertical-no-line .devui-time-axis-item-data-vertical-left{margin-bottom:0}:host.devui-time-axis-item-vertical-no-line .devui-time-axis-item-data-vertical-right{margin-bottom:0}.devui-time-axis-item-horizontal-align-center{position:relative;width:fit-content;transform:translate(-50%);left:8px}.devui-time-axis-vertical{display:flex;flex-direction:column;align-items:center;position:relative}.devui-time-axis-vertical .devui-time-axis-item{display:flex;flex-direction:row;width:100%}.devui-time-axis-vertical .devui-time-axis-item-axis{display:flex;flex-direction:column;align-items:center;padding:0 12px}.devui-time-axis-vertical .devui-time-axis-item-line{position:relative;height:calc(100% - 18px);border-left-width:2px;border-left-color:var(--devui-dividing-line, #dfe1e6)}.devui-time-axis-vertical .devui-time-axis-item-line:first-child{display:none}.devui-time-axis-vertical .devui-time-axis-item-data-left{text-align:end;margin-bottom:24px;height:18px;line-height:18px;flex:1}.devui-time-axis-vertical .devui-time-axis-item-data-right{margin-bottom:24px;height:18px;line-height:18px;flex:1}.devui-time-axis-vertical .devui-time-axis-item-line-style-dashed{border-left-style:dashed}.devui-time-axis-vertical .devui-time-axis-item-line-style-solid{border-left-style:solid}.devui-time-axis-vertical .devui-time-axis-item-line-style-dotted{border-left-style:dotted}.devui-time-axis-vertical .devui-time-axis-item-line-style-none{border-left-style:none}.devui-time-axis-vertical .devui-time-axis-item .devui-time-axis-middle-zone{position:absolute;top:50%;transform:translate(-50%,-50%)}.devui-time-axis-horizontal{display:flex;flex-direction:row;align-items:center;position:relative}.devui-time-axis-horizontal .devui-time-axis-item{display:flex;flex-direction:column;height:100%}.devui-time-axis-horizontal .devui-time-axis-item-axis{display:flex;flex-direction:row;align-items:center;padding:12px 0}.devui-time-axis-horizontal .devui-time-axis-item-line{position:relative;min-width:20px;width:calc(50% - (18px / 2));border-bottom-width:2px;border-bottom-color:var(--devui-dividing-line, #dfe1e6)}.devui-time-axis-horizontal .devui-time-axis-item:first-child .devui-time-axis-item-line:first-child{opacity:0}.devui-time-axis-horizontal .devui-time-axis-item-data-top{text-align:center;display:flex;align-items:flex-end;padding:0 12px;flex:1}.devui-time-axis-horizontal .devui-time-axis-item-data-bottom{text-align:center;padding:0 12px;flex:1}.devui-time-axis-horizontal .devui-time-axis-item-line-style-dashed{border-bottom-style:dashed}.devui-time-axis-horizontal .devui-time-axis-item-line-style-solid{border-bottom-style:solid}.devui-time-axis-horizontal .devui-time-axis-item-line-style-dotted{border-bottom-style:dotted}.devui-time-axis-horizontal .devui-time-axis-item-line-style-none{border-bottom-style:none}.devui-time-axis-horizontal .devui-time-axis-item .devui-time-axis-middle-zone{position:absolute;left:50%;transform:translate(-50%,-50%)}.devui-time-axis-item-dot,.devui-time-axis-item-dot>svg{width:18px;height:18px}.devui-time-axis-item-dot>i{font-size:18px}.devui-time-axis-item:last-child .devui-time-axis-item-line:last-child{display:none}
|