vue-devui 1.0.0-rc.0 → 1.0.0-rc.11
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 +78 -116
- package/alert/index.es.js +74 -45
- package/alert/index.umd.js +1 -1
- package/alert/style.css +1 -1
- package/auto-complete/index.es.js +8190 -296
- package/auto-complete/index.umd.js +29 -1
- package/auto-complete/style.css +1 -1
- package/avatar/index.es.js +153 -146
- package/avatar/index.umd.js +1 -1
- package/avatar/style.css +1 -1
- package/badge/index.es.js +34 -5
- package/badge/index.umd.js +1 -1
- package/badge/style.css +1 -1
- package/button/index.es.js +5741 -127
- package/button/index.umd.js +27 -1
- package/button/style.css +1 -1
- package/card/index.es.js +63 -35
- package/card/index.umd.js +1 -1
- package/card/style.css +1 -1
- package/checkbox/index.es.js +8068 -255
- package/checkbox/index.umd.js +27 -1
- package/checkbox/style.css +1 -1
- package/{accordion → collapse}/index.d.ts +0 -0
- package/collapse/index.es.js +379 -0
- package/collapse/index.umd.js +1 -0
- package/{anchor → collapse}/package.json +1 -1
- package/collapse/style.css +1 -0
- package/countdown/index.es.js +5 -7
- package/countdown/index.umd.js +1 -1
- package/date-picker/index.es.js +8167 -288
- package/date-picker/index.umd.js +27 -1
- package/date-picker/style.css +1 -1
- package/drawer/index.es.js +31 -4
- package/drawer/index.umd.js +1 -1
- package/drawer/style.css +1 -1
- package/dropdown/index.es.js +297 -181
- package/dropdown/index.umd.js +1 -1
- package/dropdown/style.css +1 -1
- package/editable-select/index.es.js +525 -154
- package/editable-select/index.umd.js +1 -1
- package/editable-select/style.css +1 -1
- package/form/index.es.js +1048 -1176
- package/form/index.umd.js +16 -16
- package/form/style.css +1 -1
- package/fullscreen/index.es.js +42 -21
- package/fullscreen/index.umd.js +1 -1
- package/fullscreen/style.css +1 -1
- package/grid/index.es.js +101 -86
- package/grid/index.umd.js +1 -1
- package/grid/style.css +1 -1
- package/icon/index.es.js +197 -56
- package/icon/index.umd.js +1 -1
- package/icon/style.css +1 -0
- package/image-preview/index.es.js +55 -31
- package/image-preview/index.umd.js +1 -1
- package/image-preview/style.css +1 -1
- package/input/index.es.js +8074 -144
- package/input/index.umd.js +27 -1
- package/input/style.css +1 -1
- package/input-number/index.es.js +269 -183
- package/input-number/index.umd.js +1 -1
- package/input-number/style.css +1 -1
- package/layout/index.es.js +40 -25
- package/layout/index.umd.js +1 -1
- package/layout/style.css +1 -1
- package/loading/index.es.js +74 -35
- package/loading/index.umd.js +1 -1
- package/loading/style.css +1 -1
- package/modal/index.es.js +412 -204
- package/modal/index.umd.js +1 -1
- package/modal/style.css +1 -1
- package/notification/index.es.js +307 -57
- package/notification/index.umd.js +1 -1
- package/notification/style.css +1 -1
- package/nuxt/components/ButtonGroup.js +3 -0
- package/nuxt/components/CheckboxButton.js +3 -0
- package/nuxt/components/CheckboxGroup.js +3 -0
- package/nuxt/components/Collapse.js +3 -0
- package/nuxt/components/CollapseItem.js +3 -0
- package/nuxt/components/DropdownPropsKey.js +3 -0
- package/nuxt/components/FORM_ITEM_TOKEN.js +3 -0
- package/nuxt/components/FORM_TOKEN.js +3 -0
- package/nuxt/components/Icon.js +1 -0
- package/nuxt/components/IconGroup.js +3 -0
- package/nuxt/components/LABEL_DATA.js +3 -0
- package/nuxt/components/LoadingOptions.js +3 -0
- package/nuxt/components/Option.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/RadioButton.js +3 -0
- package/nuxt/components/TABLE_TOKEN.js +3 -0
- package/nuxt/components/Tab.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/alertProps.js +3 -0
- package/nuxt/components/autoCompleteProps.js +3 -0
- package/nuxt/components/avatarProps.js +3 -0
- package/nuxt/components/buttonGroupInjectionKey.js +3 -0
- package/nuxt/components/buttonGroupProps.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/editableSelectProps.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/modalProps.js +3 -0
- package/nuxt/components/paginationProps.js +3 -0
- package/nuxt/components/panelProps.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/rowProps.js +3 -0
- package/nuxt/components/screenSizes.js +3 -0
- package/nuxt/components/searchProps.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/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/treeProps.js +3 -0
- package/overlay/index.es.js +127 -149
- package/overlay/index.umd.js +1 -1
- package/overlay/style.css +1 -1
- package/package.json +11 -44
- package/pagination/index.es.js +158 -148
- package/pagination/index.umd.js +1 -1
- package/pagination/style.css +1 -1
- package/panel/index.es.js +45 -32
- package/panel/index.umd.js +1 -1
- package/panel/style.css +1 -1
- package/popover/index.es.js +317 -246
- package/popover/index.umd.js +15 -15
- package/popover/style.css +1 -1
- package/progress/index.es.js +110 -56
- package/progress/index.umd.js +3 -3
- package/progress/style.css +1 -1
- package/radio/index.es.js +7972 -157
- package/radio/index.umd.js +27 -1
- package/radio/style.css +1 -1
- package/rate/index.es.js +77 -55
- package/rate/index.umd.js +1 -1
- package/rate/style.css +1 -1
- package/result/index.es.js +184 -57
- package/result/index.umd.js +1 -1
- package/result/style.css +1 -1
- package/ripple/index.es.js +47 -42
- package/ripple/index.umd.js +1 -1
- package/search/index.es.js +3653 -1122
- package/search/index.umd.js +18 -18
- package/search/style.css +1 -1
- package/select/index.es.js +9170 -596
- package/select/index.umd.js +27 -1
- package/select/style.css +1 -1
- package/skeleton/index.es.js +63 -41
- package/skeleton/index.umd.js +1 -1
- package/skeleton/style.css +1 -1
- package/slider/index.es.js +144 -137
- package/slider/index.umd.js +1 -1
- package/slider/style.css +1 -1
- package/splitter/index.es.js +469 -349
- package/splitter/index.umd.js +15 -15
- package/splitter/style.css +1 -1
- package/statistic/index.es.js +41 -34
- package/statistic/index.umd.js +1 -1
- package/statistic/style.css +1 -1
- package/status/index.es.js +27 -6
- package/status/index.umd.js +1 -1
- package/status/style.css +1 -1
- package/style.css +1 -1
- package/switch/index.es.js +7802 -64
- package/switch/index.umd.js +27 -1
- package/switch/style.css +1 -1
- package/table/index.es.js +10459 -1511
- package/table/index.umd.js +27 -1
- package/table/style.css +1 -1
- package/tabs/index.es.js +344 -141
- package/tabs/index.umd.js +1 -1
- package/tabs/style.css +1 -1
- package/tag/index.es.js +49 -24
- package/tag/index.umd.js +1 -1
- package/tag/style.css +1 -1
- package/textarea/index.es.js +7921 -83
- package/textarea/index.umd.js +35 -1
- package/textarea/style.css +1 -1
- package/{anchor → time-select}/index.d.ts +0 -0
- package/{color-picker → time-select}/index.es.js +4171 -2898
- package/time-select/index.umd.js +27 -0
- package/{breadcrumb → time-select}/package.json +1 -1
- package/time-select/style.css +1 -0
- package/{back-top → timeline}/index.d.ts +0 -0
- package/timeline/index.es.js +425 -0
- package/timeline/index.umd.js +1 -0
- package/{back-top → timeline}/package.json +1 -1
- package/timeline/style.css +1 -0
- package/tooltip/index.es.js +308 -236
- package/tooltip/index.umd.js +15 -15
- package/tooltip/style.css +1 -1
- package/tree/index.es.js +5198 -1850
- package/tree/index.umd.js +18 -18
- package/tree/style.css +1 -1
- package/upload/index.es.js +427 -132
- package/upload/index.umd.js +1 -1
- package/upload/style.css +1 -1
- package/vue-devui.es.js +12064 -15841
- package/vue-devui.umd.js +30 -20
- package/accordion/index.es.js +0 -720
- package/accordion/index.umd.js +0 -1
- package/accordion/package.json +0 -7
- 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/back-top/index.es.js +0 -128
- package/back-top/index.umd.js +0 -1
- package/back-top/style.css +0 -1
- package/breadcrumb/index.d.ts +0 -7
- package/breadcrumb/index.es.js +0 -127
- package/breadcrumb/index.umd.js +0 -1
- package/breadcrumb/style.css +0 -1
- package/carousel/index.d.ts +0 -7
- package/carousel/index.es.js +0 -329
- package/carousel/index.umd.js +0 -1
- package/carousel/package.json +0 -7
- package/carousel/style.css +0 -1
- package/cascader/index.d.ts +0 -7
- package/cascader/index.es.js +0 -5963
- package/cascader/index.umd.js +0 -27
- package/cascader/package.json +0 -7
- package/cascader/style.css +0 -1
- package/color-picker/index.d.ts +0 -7
- package/color-picker/index.umd.js +0 -27
- package/color-picker/package.json +0 -7
- package/color-picker/style.css +0 -1
- package/comment/index.d.ts +0 -7
- package/comment/index.es.js +0 -86
- package/comment/index.umd.js +0 -1
- package/comment/package.json +0 -7
- package/comment/style.css +0 -1
- package/dragdrop/index.d.ts +0 -7
- package/dragdrop/index.es.js +0 -157
- package/dragdrop/index.umd.js +0 -1
- package/dragdrop/package.json +0 -7
- package/gantt/index.d.ts +0 -7
- package/gantt/index.es.js +0 -523
- package/gantt/index.umd.js +0 -1
- package/gantt/package.json +0 -7
- package/gantt/style.css +0 -1
- package/input-icon/index.d.ts +0 -7
- package/input-icon/index.es.js +0 -331
- package/input-icon/index.umd.js +0 -1
- package/input-icon/package.json +0 -7
- package/input-icon/style.css +0 -1
- package/list/index.d.ts +0 -7
- package/list/index.es.js +0 -39
- package/list/index.umd.js +0 -1
- package/list/package.json +0 -7
- package/list/style.css +0 -1
- package/nav-sprite/index.d.ts +0 -7
- package/nav-sprite/index.es.js +0 -68
- package/nav-sprite/index.umd.js +0 -1
- package/nav-sprite/package.json +0 -7
- package/nuxt/components/Accordion.js +0 -3
- package/nuxt/components/Anchor.js +0 -3
- package/nuxt/components/BackTop.js +0 -3
- package/nuxt/components/Breadcrumb.js +0 -3
- package/nuxt/components/Carousel.js +0 -3
- package/nuxt/components/CarouselItem.js +0 -3
- package/nuxt/components/Cascader.js +0 -3
- package/nuxt/components/ColorPicker.js +0 -3
- package/nuxt/components/Comment.js +0 -3
- package/nuxt/components/FormControl.js +0 -3
- package/nuxt/components/FormLabel.js +0 -3
- package/nuxt/components/Gantt.js +0 -3
- package/nuxt/components/InputIcon.js +0 -3
- package/nuxt/components/List.js +0 -3
- package/nuxt/components/ListItem.js +0 -3
- package/nuxt/components/NavSprite.js +0 -2
- package/nuxt/components/QuadrantDiagram.js +0 -3
- package/nuxt/components/ReadTip.js +0 -3
- package/nuxt/components/StepsGuide.js +0 -3
- package/nuxt/components/Sticky.js +0 -2
- package/nuxt/components/TagInput.js +0 -3
- package/nuxt/components/TimeAxis.js +0 -3
- package/nuxt/components/TimeAxisItem.js +0 -3
- package/nuxt/components/TimePicker.js +0 -3
- package/nuxt/components/Transfer.js +0 -3
- package/nuxt/components/TreeSelect.js +0 -3
- package/nuxt/components/overlayEmits.js +0 -3
- package/nuxt/components/overlayProps.js +0 -3
- package/quadrant-diagram/index.d.ts +0 -7
- package/quadrant-diagram/index.es.js +0 -5728
- package/quadrant-diagram/index.umd.js +0 -27
- package/quadrant-diagram/package.json +0 -7
- package/quadrant-diagram/style.css +0 -1
- package/read-tip/index.d.ts +0 -7
- package/read-tip/index.es.js +0 -258
- package/read-tip/index.umd.js +0 -1
- package/read-tip/package.json +0 -7
- package/read-tip/style.css +0 -1
- package/steps-guide/index.d.ts +0 -7
- package/steps-guide/index.es.js +0 -239
- 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.d.ts +0 -7
- package/sticky/index.es.js +0 -197
- package/sticky/index.umd.js +0 -1
- package/sticky/package.json +0 -7
- package/tag-input/index.d.ts +0 -7
- package/tag-input/index.es.js +0 -329
- 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.d.ts +0 -7
- package/time-axis/index.es.js +0 -299
- package/time-axis/index.umd.js +0 -1
- package/time-axis/package.json +0 -7
- package/time-axis/style.css +0 -1
- package/time-picker/index.d.ts +0 -7
- package/time-picker/index.es.js +0 -1237
- package/time-picker/index.umd.js +0 -1
- package/time-picker/package.json +0 -7
- package/time-picker/style.css +0 -1
- package/transfer/index.d.ts +0 -7
- package/transfer/index.es.js +0 -7608
- package/transfer/index.umd.js +0 -27
- package/transfer/package.json +0 -7
- package/transfer/style.css +0 -1
- package/tree-select/index.d.ts +0 -7
- package/tree-select/index.es.js +0 -623
- package/tree-select/index.umd.js +0 -1
- package/tree-select/package.json +0 -7
- package/tree-select/style.css +0 -1
package/form/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.devui-
|
|
1
|
+
.devui-fixed-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background-color:var(--devui-shadow, rgba(37, 43, 58, .2));z-index:1050}.devui-fixed-overlay--fade-enter-active,.devui-fixed-overlay--fade-leave-active{transition:opacity .1s cubic-bezier(0,0,1,1)}.devui-fixed-overlay--fade-enter-from,.devui-fixed-overlay--fade-leave-to{opacity:0}.devui-flexible-overlay{position:fixed;border-radius:var(--devui-border-radius, 4px);background-color:var(--devui-connected-overlay-bg, #ffffff);box-shadow:var(--devui-shadow-length-connected-overlay, 0 4px 8px 0) var(--devui-shadow, rgba(37, 43, 58, .2));z-index:1000}.devui-flexible-overlay__arrow{position:absolute;width:8px;height:8px;transform:rotate(45deg);background-color:inherit}.devui-popover__icon-wrap{width:16px;height:16px;margin-right:8px}.devui-popover__icon-wrap .devui-popover__icon.devui-popover__icon--success>g>path{fill:var(--devui-success, #50d4ab)}.devui-popover__icon-wrap .devui-popover__icon.devui-popover__icon--success>g>circle,.devui-popover__icon-wrap .devui-popover__icon.devui-popover__icon--success>g>polygon{fill:var(--devui-light-text, #ffffff)}.devui-popover__icon-wrap .devui-popover__icon.devui-popover__icon--warning>g>path{fill:var(--devui-warning, #fac20a)}.devui-popover__icon-wrap .devui-popover__icon.devui-popover__icon--warning>g>polygon{fill:var(--devui-light-text, #ffffff)}.devui-popover__icon-wrap .devui-popover__icon.devui-popover__icon--info>g>g{fill:var(--devui-info, #5e7ce0)}.devui-popover__icon-wrap .devui-popover__icon.devui-popover__icon--info>g>circle{fill:var(--devui-light-text, #ffffff)}.devui-popover__icon-wrap .devui-popover__icon.devui-popover__icon--error>g>path{fill:var(--devui-danger, #f66f6a)}.devui-popover__icon-wrap .devui-popover__icon.devui-popover__icon--error>g>circle{fill:var(--devui-light-text, #ffffff)}.devui-popover__content.devui-flexible-overlay{display:flex;flex-wrap:wrap;align-items:center;white-space:nowrap;padding:4px 12px;line-height:1.5;border-radius:var(--devui-border-radius-feedback, 4px);color:var(--devui-feedback-overlay-text, #dfe1e6);background-color:var(--devui-feedback-overlay-bg, #464d6e);font-size:var(--devui-font-size-sm, 12px)}.devui-popover__content.devui-flexible-overlay.is-icon{flex-wrap:nowrap}.devui-popover--fade-bottom-enter-from,.devui-popover--fade-bottom-leave-to,.devui-popover--fade-top-enter-from,.devui-popover--fade-top-leave-to{opacity:.8;transform:scaleY(.8)}.devui-popover--fade-bottom-enter-to,.devui-popover--fade-bottom-leave-from,.devui-popover--fade-top-enter-to,.devui-popover--fade-top-leave-from{opacity:1;transform:scaleY(1)}.devui-popover--fade-bottom-enter-active,.devui-popover--fade-top-enter-active{transition:transform .1s cubic-bezier(.16,.75,.5,1),opacity .1s cubic-bezier(.16,.75,.5,1)}.devui-popover--fade-bottom-leave-active,.devui-popover--fade-top-leave-active{transition:transform .1s cubic-bezier(.5,0,.84,.25),opacity .1s cubic-bezier(.5,0,.84,.25)}.devui-popover--fade-left-enter-from,.devui-popover--fade-left-leave-to,.devui-popover--fade-right-enter-from,.devui-popover--fade-right-leave-to{opacity:.8;transform:scaleX(.8)}.devui-popover--fade-left-enter-to,.devui-popover--fade-left-leave-from,.devui-popover--fade-right-enter-to,.devui-popover--fade-right-leave-from{opacity:1;transform:scaleX(1)}.devui-popover--fade-left-enter-active,.devui-popover--fade-right-enter-active{transition:transform .1s cubic-bezier(.16,.75,.5,1),opacity .1s cubic-bezier(.16,.75,.5,1)}.devui-popover--fade-left-leave-active,.devui-popover--fade-right-leave-active{transition:transform .1s cubic-bezier(.5,0,.84,.25),opacity .1s cubic-bezier(.5,0,.84,.25)}.devui-form__label{align-self:flex-start}.devui-form__label--vertical{padding-bottom:8px}.devui-form__label--sm{flex:0 0 80px}.devui-form__label--md{flex:0 0 100px}.devui-form__label--lg{flex:0 0 150px}.devui-form__label--start{text-align:left}.devui-form__label--center{text-align:center}.devui-form__label--end{text-align:end}.devui-form__label-span{display:inline-block;vertical-align:middle;color:var(--devui-text, #252b3a)}.devui-form__label--required:before{content:"*";color:red;display:inline-block;margin-right:8px;margin-left:-12px}.devui-form__label-help{position:relative;top:-.1em;display:inline-block;vertical-align:middle;margin-left:4px;cursor:pointer}.devui-form__control{flex:1 1 auto;position:relative;width:100%}.devui-form__control--horizontal{margin-left:16px}.devui-form__control .devui-star{color:red}.devui-form__control .devui-form__control-container{position:relative}.devui-form__control .devui-form__control-container--horizontal{display:flex;width:100%}.devui-form__control .devui-form__control-container--horizontal .devui-validate-tip{margin:0}.devui-form__control .devui-form__control-container .devui-form__feedback-icon{position:absolute;top:50%;right:0;z-index:1;width:32px;height:16px;text-align:center;visibility:visible;pointer-events:none;transform:translateY(-50%);display:flex;align-items:center;justify-content:center}.devui-form__control .devui-form__control-container .devui-form__feedback-icon--error svg circle{fill:var(--devui-danger, #f66f6a)}.devui-form__control .devui-form__control-container .devui-form__feedback-icon--error svg polygon{fill:var(--devui-base-bg, #ffffff)}.devui-form__control .devui-form__control-container .devui-form__feedback-icon--success svg circle{fill:var(--devui-success, #50d4ab)}.devui-form__control .devui-form__control-container .devui-form__feedback-icon--success svg polygon{fill:var(--devui-base-bg, #ffffff)}.devui-form__control .devui-form__control-container .devui-form__feedback-icon--pending svg{animation:loading-keyframes 1s infinite linear}.devui-form__control .devui-form__control-container .devui-form__feedback-icon--pending svg path{fill:var(--devui-brand, #5e7ce0)}.devui-form__control .devui-form__control-content{width:100%}.devui-form__control .devui-form__control-container--has-feedback{display:flex;align-items:center}.devui-form__control .devui-form__control-container--has-feedback input{padding-right:28px}.devui-form__control .devui-form__control-container--feedback-error{border:1px solid #f66f6a;border-radius:2px}.devui-form__control .devui-form__control-container--feedback-error input{background-color:#ffeeed;border-color:transparent}.devui-form__control .devui-form__control-container--feedback-error input:hover{border-color:transparent!important}.devui-form__control .devui-form__control-container--feedback-error input:focus{border-color:transparent!important}.devui-form__control .devui-form__control-container--feedback-error .devui-select-arrow{right:24px!important}.devui-form__control .devui-form__control-info{line-height:1}.devui-form__control .devui-form__control-info .error-message{display:inline-block;min-height:20px;line-height:1.5;font-size:var(--devui-font-size, 14px);color:var(--devui-danger, #f66f6a)}.devui-form__control .devui-form__control-info .devui-form__control-extra{font-size:var(--devui-font-size, 14px);color:var(--devui-aide-text, #71757f);min-height:20px;line-height:1.5;text-align:justify}@keyframes loading-keyframes{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.devui-form__item--horizontal{display:flex;align-items:center;margin-bottom:20px}.devui-form__item--vertical{display:flex;flex-direction:column;margin-bottom:20px}.devui-form__item--error{margin-bottom:0}.devui-form-operation .star{color:red}
|
package/fullscreen/index.es.js
CHANGED
|
@@ -28,15 +28,39 @@ function useKeydown(props, ctx) {
|
|
|
28
28
|
document.removeEventListener("keydown", handleKeydown);
|
|
29
29
|
});
|
|
30
30
|
}
|
|
31
|
+
function createBem(namespace, element, modifier) {
|
|
32
|
+
let cls = namespace;
|
|
33
|
+
if (element) {
|
|
34
|
+
cls += `__${element}`;
|
|
35
|
+
}
|
|
36
|
+
if (modifier) {
|
|
37
|
+
cls += `--${modifier}`;
|
|
38
|
+
}
|
|
39
|
+
return cls;
|
|
40
|
+
}
|
|
41
|
+
function useNamespace(block, needDot = false) {
|
|
42
|
+
const namespace = needDot ? `.devui-${block}` : `devui-${block}`;
|
|
43
|
+
const b = () => createBem(namespace);
|
|
44
|
+
const e = (element) => element ? createBem(namespace, element) : "";
|
|
45
|
+
const m = (modifier) => modifier ? createBem(namespace, "", modifier) : "";
|
|
46
|
+
const em = (element, modifier) => element && modifier ? createBem(namespace, element, modifier) : "";
|
|
47
|
+
return {
|
|
48
|
+
b,
|
|
49
|
+
e,
|
|
50
|
+
m,
|
|
51
|
+
em
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
const ns = useNamespace("fullscreen");
|
|
31
55
|
const launchNormalFullscreen = (targetElement, props) => {
|
|
32
|
-
targetElement.classList.add(
|
|
56
|
+
targetElement.classList.add(ns.b());
|
|
33
57
|
if (props.zIndex) {
|
|
34
58
|
targetElement.setAttribute("style", `z-index: ${props.zIndex}`);
|
|
35
59
|
}
|
|
36
60
|
};
|
|
37
61
|
const exitNormalFullscreen = (targetElement) => {
|
|
38
|
-
targetElement.classList.remove(
|
|
39
|
-
targetElement.style.zIndex =
|
|
62
|
+
targetElement.classList.remove(ns.b());
|
|
63
|
+
targetElement.style.zIndex = "";
|
|
40
64
|
};
|
|
41
65
|
const launchImmersiveFullScreen = async (docElement) => {
|
|
42
66
|
let fullscreenLaunch = null;
|
|
@@ -49,7 +73,7 @@ const launchImmersiveFullScreen = async (docElement) => {
|
|
|
49
73
|
} else if (docElement.msRequestFullscreen) {
|
|
50
74
|
fullscreenLaunch = Promise.resolve(docElement.msRequestFullscreen());
|
|
51
75
|
}
|
|
52
|
-
return await fullscreenLaunch.then(() => !!document.fullscreenElement);
|
|
76
|
+
return await (fullscreenLaunch == null ? void 0 : fullscreenLaunch.then(() => !!document.fullscreenElement));
|
|
53
77
|
};
|
|
54
78
|
const exitImmersiveFullScreen = async (doc) => {
|
|
55
79
|
let fullscreenExit = null;
|
|
@@ -62,25 +86,17 @@ const exitImmersiveFullScreen = async (doc) => {
|
|
|
62
86
|
} else if (doc.msExitFullscreen) {
|
|
63
87
|
fullscreenExit = Promise.resolve(doc.msExitFullscreen());
|
|
64
88
|
}
|
|
65
|
-
return await fullscreenExit.then(() => !!document.fullscreenElement);
|
|
89
|
+
return await (fullscreenExit == null ? void 0 : fullscreenExit.then(() => !!document.fullscreenElement));
|
|
66
90
|
};
|
|
67
91
|
const addFullScreenStyle = () => {
|
|
68
|
-
document.getElementsByTagName("html")[0].classList.add("
|
|
92
|
+
document.getElementsByTagName("html")[0].classList.add(ns.e("html"));
|
|
69
93
|
};
|
|
70
94
|
const removeFullScreenStyle = () => {
|
|
71
|
-
document.getElementsByTagName("html")[0].classList.remove("
|
|
95
|
+
document.getElementsByTagName("html")[0].classList.remove(ns.e("html"));
|
|
72
96
|
};
|
|
73
97
|
function useFullscreen(props, slotElement, ctx) {
|
|
74
98
|
const { modelValue, mode } = toRefs(props);
|
|
75
99
|
let exitByKeydown = false;
|
|
76
|
-
watch(modelValue, (newVal) => {
|
|
77
|
-
if (mode.value === "normal") {
|
|
78
|
-
handleNormalFullscreen(newVal);
|
|
79
|
-
}
|
|
80
|
-
if (mode.value === "immersive") {
|
|
81
|
-
handleImmersiveFullscreen(newVal);
|
|
82
|
-
}
|
|
83
|
-
});
|
|
84
100
|
const handleNormalFullscreen = (isOpen) => {
|
|
85
101
|
if (isOpen) {
|
|
86
102
|
launchNormalFullscreen(slotElement.value, props);
|
|
@@ -99,6 +115,14 @@ function useFullscreen(props, slotElement, ctx) {
|
|
|
99
115
|
}
|
|
100
116
|
}
|
|
101
117
|
};
|
|
118
|
+
watch(modelValue, (newVal) => {
|
|
119
|
+
if (mode.value === "normal") {
|
|
120
|
+
handleNormalFullscreen(newVal);
|
|
121
|
+
}
|
|
122
|
+
if (mode.value === "immersive") {
|
|
123
|
+
handleImmersiveFullscreen(newVal);
|
|
124
|
+
}
|
|
125
|
+
});
|
|
102
126
|
const handleFullscreenChange = () => {
|
|
103
127
|
if (!document.fullscreenElement) {
|
|
104
128
|
ctx.emit("update:modelValue");
|
|
@@ -120,7 +144,7 @@ var Fullscreen = defineComponent({
|
|
|
120
144
|
props: fullscreenProps,
|
|
121
145
|
emits: ["update:modelValue"],
|
|
122
146
|
setup(props, ctx) {
|
|
123
|
-
const slotElement = ref(
|
|
147
|
+
const slotElement = ref();
|
|
124
148
|
useFullscreen(props, slotElement, ctx);
|
|
125
149
|
useKeydown(props, ctx);
|
|
126
150
|
return () => {
|
|
@@ -131,15 +155,12 @@ var Fullscreen = defineComponent({
|
|
|
131
155
|
};
|
|
132
156
|
}
|
|
133
157
|
});
|
|
134
|
-
Fullscreen.install = function(app) {
|
|
135
|
-
app.component(Fullscreen.name, Fullscreen);
|
|
136
|
-
};
|
|
137
158
|
var index = {
|
|
138
159
|
title: "Fullscreen \u5168\u5C4F",
|
|
139
160
|
category: "\u901A\u7528",
|
|
140
161
|
status: "100%",
|
|
141
162
|
install(app) {
|
|
142
|
-
app.
|
|
163
|
+
app.component(Fullscreen.name, Fullscreen);
|
|
143
164
|
}
|
|
144
165
|
};
|
|
145
|
-
export { Fullscreen, index as default };
|
|
166
|
+
export { Fullscreen, index as default, fullscreenProps };
|
package/fullscreen/index.umd.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(u,l){typeof exports=="object"&&typeof module!="undefined"?l(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],l):(u=typeof globalThis!="undefined"?globalThis:u||self,l(u.index={},u.Vue))})(this,function(u,l){"use strict";const F={modelValue:{type:Boolean,default:!1},mode:{type:String,default:"normal"},zIndex:{type:Number,default:10}},S=27;function v(e,n){const{modelValue:t}=l.toRefs(e),s=c=>{c.keyCode===S&&t&&n.emit("update:modelValue",!1)};l.onMounted(()=>{document.addEventListener("keydown",s)}),l.onUnmounted(()=>{document.removeEventListener("keydown",s)})}function i(e,n,t){let s=e;return n&&(s+=`__${n}`),t&&(s+=`--${t}`),s}function h(e,n=!1){const t=n?`.devui-${e}`:`devui-${e}`;return{b:()=>i(t),e:r=>r?i(t,r):"",m:r=>r?i(t,"",r):"",em:(r,a)=>r&&a?i(t,r,a):""}}const m=h("fullscreen"),p=(e,n)=>{e.classList.add(m.b()),n.zIndex&&e.setAttribute("style",`z-index: ${n.zIndex}`)},b=e=>{e.classList.remove(m.b()),e.style.zIndex=""},w=async e=>{let n=null;return e.requestFullscreen?n=e.requestFullscreen():e.mozRequestFullScreen?n=e.mozRequestFullScreen():e.webkitRequestFullScreen?n=Promise.resolve(e.webkitRequestFullScreen()):e.msRequestFullscreen&&(n=Promise.resolve(e.msRequestFullscreen())),await(n==null?void 0:n.then(()=>!!document.fullscreenElement))},x=async e=>{let n=null;return e.exitFullscreen?n=e.exitFullscreen():e.mozCancelFullScreen?n=e.mozCancelFullScreen():e.webkitCancelFullScreen?n=Promise.resolve(e.webkitCancelFullScreen()):e.msExitFullscreen&&(n=Promise.resolve(e.msExitFullscreen())),await(n==null?void 0:n.then(()=>!!document.fullscreenElement))},C=()=>{document.getElementsByTagName("html")[0].classList.add(m.e("html"))},q=()=>{document.getElementsByTagName("html")[0].classList.remove(m.e("html"))};function z(e,n,t){const{modelValue:s,mode:c}=l.toRefs(e);let d=!1;const y=o=>{o?(p(n.value,e),C()):(b(n.value),q())},r=o=>{o?w(n.value):d||x(document)};l.watch(s,o=>{c.value==="normal"&&y(o),c.value==="immersive"&&r(o)});const a=()=>{document.fullscreenElement?d=!1:(t.emit("update:modelValue"),d=!0)};l.onMounted(()=>{document.addEventListener("fullscreenchange",a)}),l.onUnmounted(()=>{document.removeEventListener("fullscreenchange",a)})}var N="",f=l.defineComponent({name:"DFullscreen",props:F,emits:["update:modelValue"],setup(e,n){const t=l.ref();return z(e,t,n),v(e,n),()=>{const s=l.renderSlot(l.useSlots(),"default");return l.createVNode("div",{ref:t},[s])}}}),g={title:"Fullscreen \u5168\u5C4F",category:"\u901A\u7528",status:"100%",install(e){e.component(f.name,f)}};u.Fullscreen=f,u.default=g,u.fullscreenProps=F,Object.defineProperty(u,"__esModule",{value:!0}),u[Symbol.toStringTag]="Module"});
|
package/fullscreen/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.devui-fullscreen{position:fixed;top:0;left:0;width:100%;height:100%;z-index:10;overflow:auto;background-color:var(--devui-base-bg, #ffffff)}.devui-
|
|
1
|
+
.devui-fullscreen{position:fixed;top:0;left:0;width:100%;height:100%;z-index:10;overflow:auto;background-color:var(--devui-base-bg, #ffffff)}.devui-fullscreen__html{overflow:hidden}:not(:root):fullscreen::backdrop{background:var(--devui-base-bg, #ffffff)}
|
package/grid/index.es.js
CHANGED
|
@@ -14,7 +14,7 @@ var __spreadValues = (a, b) => {
|
|
|
14
14
|
}
|
|
15
15
|
return a;
|
|
16
16
|
};
|
|
17
|
-
import {
|
|
17
|
+
import { defineComponent, ref, computed, onMounted, onUnmounted, provide, createVNode, inject } from "vue";
|
|
18
18
|
const rowProps = {
|
|
19
19
|
align: {
|
|
20
20
|
type: String,
|
|
@@ -33,15 +33,6 @@ const rowProps = {
|
|
|
33
33
|
default: false
|
|
34
34
|
}
|
|
35
35
|
};
|
|
36
|
-
const screenSizesProp = [Number, Object];
|
|
37
|
-
const screenSizes = {
|
|
38
|
-
xs: screenSizesProp,
|
|
39
|
-
sm: screenSizesProp,
|
|
40
|
-
md: screenSizesProp,
|
|
41
|
-
lg: screenSizesProp,
|
|
42
|
-
xl: screenSizesProp,
|
|
43
|
-
xxl: screenSizesProp
|
|
44
|
-
};
|
|
45
36
|
const numberProp = Number;
|
|
46
37
|
const colPropsBaseStyle = {
|
|
47
38
|
flex: [String, Number],
|
|
@@ -53,46 +44,16 @@ const colPropsBaseClass = {
|
|
|
53
44
|
push: numberProp,
|
|
54
45
|
span: numberProp
|
|
55
46
|
};
|
|
47
|
+
const screenSizesProp = [Number, Object];
|
|
48
|
+
const screenSizes = {
|
|
49
|
+
xs: screenSizesProp,
|
|
50
|
+
sm: screenSizesProp,
|
|
51
|
+
md: screenSizesProp,
|
|
52
|
+
lg: screenSizesProp,
|
|
53
|
+
xl: screenSizesProp,
|
|
54
|
+
xxl: screenSizesProp
|
|
55
|
+
};
|
|
56
56
|
const colProps = __spreadValues(__spreadValues(__spreadValues({}, colPropsBaseStyle), colPropsBaseClass), screenSizes);
|
|
57
|
-
const CLASS_PREFIX$1 = "devui-col";
|
|
58
|
-
function formatClass(prefix, val) {
|
|
59
|
-
return val !== void 0 ? ` ${prefix}-${val}` : "";
|
|
60
|
-
}
|
|
61
|
-
function useColClassNames(props) {
|
|
62
|
-
return computed(() => {
|
|
63
|
-
const spanClass = formatClass(`${CLASS_PREFIX$1}-span`, props.span);
|
|
64
|
-
const offsetClass = formatClass(`${CLASS_PREFIX$1}-offset`, props.offset);
|
|
65
|
-
const pullClass = formatClass(`${CLASS_PREFIX$1}-pull`, props.pull);
|
|
66
|
-
const pushClass = formatClass(`${CLASS_PREFIX$1}-push`, props.push);
|
|
67
|
-
return `${spanClass}${offsetClass}${pullClass}${pushClass}`;
|
|
68
|
-
});
|
|
69
|
-
}
|
|
70
|
-
function setSpace(val) {
|
|
71
|
-
return ` ${val.trim()}${val && " "}`;
|
|
72
|
-
}
|
|
73
|
-
function useSize(colSizes) {
|
|
74
|
-
const keys = Object.keys(colSizes).filter((key) => key in screenSizes);
|
|
75
|
-
return computed(() => {
|
|
76
|
-
return keys.reduce((total, key) => {
|
|
77
|
-
const valueType = typeof colSizes[key];
|
|
78
|
-
if (valueType === "number") {
|
|
79
|
-
total = `${setSpace(total)}${CLASS_PREFIX$1}-${key}-span-${colSizes[key]}`;
|
|
80
|
-
} else if (valueType === "object") {
|
|
81
|
-
const colSizesKeys = Object.keys(colSizes[key]);
|
|
82
|
-
const sum = colSizesKeys.filter((item) => item in colPropsBaseClass).reduce((tot, k) => {
|
|
83
|
-
if (typeof colSizes[key][k] !== "number") {
|
|
84
|
-
return "";
|
|
85
|
-
} else {
|
|
86
|
-
tot = `${setSpace(tot)}${CLASS_PREFIX$1}-${key}-${k}-${colSizes[key][k]}`;
|
|
87
|
-
}
|
|
88
|
-
return tot;
|
|
89
|
-
}, "");
|
|
90
|
-
total = `${setSpace(total)}${sum}`;
|
|
91
|
-
}
|
|
92
|
-
return total;
|
|
93
|
-
}, "");
|
|
94
|
-
});
|
|
95
|
-
}
|
|
96
57
|
const RESULT_SCREEN = ["xxl", "xl", "lg", "md", "sm", "xs"];
|
|
97
58
|
const screenMedias = {
|
|
98
59
|
xs: "screen and (max-width: 575px)",
|
|
@@ -106,20 +67,10 @@ const subscribers = /* @__PURE__ */ new Map();
|
|
|
106
67
|
let subUid = -1;
|
|
107
68
|
const screen = {};
|
|
108
69
|
const results = {};
|
|
109
|
-
function
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
}
|
|
113
|
-
subUid += 1;
|
|
114
|
-
subscribers.set(subUid, func);
|
|
115
|
-
func(__spreadValues({}, screen));
|
|
116
|
-
return subUid;
|
|
117
|
-
}
|
|
118
|
-
function removeSubscribeCb(id) {
|
|
119
|
-
subscribers.delete(id);
|
|
120
|
-
if (subscribers.size === 0) {
|
|
121
|
-
unRegister();
|
|
122
|
-
}
|
|
70
|
+
function dispatch() {
|
|
71
|
+
subscribers.forEach((value) => {
|
|
72
|
+
value(__spreadValues({}, screen));
|
|
73
|
+
});
|
|
123
74
|
}
|
|
124
75
|
function register() {
|
|
125
76
|
Object.keys(screenMedias).forEach((key) => {
|
|
@@ -139,6 +90,15 @@ function register() {
|
|
|
139
90
|
};
|
|
140
91
|
});
|
|
141
92
|
}
|
|
93
|
+
function responesScreen(func) {
|
|
94
|
+
if (!subscribers.size) {
|
|
95
|
+
register();
|
|
96
|
+
}
|
|
97
|
+
subUid += 1;
|
|
98
|
+
subscribers.set(subUid, func);
|
|
99
|
+
func(__spreadValues({}, screen));
|
|
100
|
+
return subUid;
|
|
101
|
+
}
|
|
142
102
|
function unRegister() {
|
|
143
103
|
Object.keys(screenMedias).forEach((key) => {
|
|
144
104
|
const handler = results[key];
|
|
@@ -146,13 +106,36 @@ function unRegister() {
|
|
|
146
106
|
});
|
|
147
107
|
subscribers.clear();
|
|
148
108
|
}
|
|
149
|
-
function
|
|
150
|
-
subscribers.
|
|
151
|
-
|
|
152
|
-
|
|
109
|
+
function removeSubscribeCb(id) {
|
|
110
|
+
subscribers.delete(id);
|
|
111
|
+
if (subscribers.size === 0) {
|
|
112
|
+
unRegister();
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
function createBem(namespace, element, modifier) {
|
|
116
|
+
let cls = namespace;
|
|
117
|
+
if (element) {
|
|
118
|
+
cls += `__${element}`;
|
|
119
|
+
}
|
|
120
|
+
if (modifier) {
|
|
121
|
+
cls += `--${modifier}`;
|
|
122
|
+
}
|
|
123
|
+
return cls;
|
|
124
|
+
}
|
|
125
|
+
function useNamespace(block, needDot = false) {
|
|
126
|
+
const namespace = needDot ? `.devui-${block}` : `devui-${block}`;
|
|
127
|
+
const b = () => createBem(namespace);
|
|
128
|
+
const e = (element) => element ? createBem(namespace, element) : "";
|
|
129
|
+
const m = (modifier) => modifier ? createBem(namespace, "", modifier) : "";
|
|
130
|
+
const em = (element, modifier) => element && modifier ? createBem(namespace, element, modifier) : "";
|
|
131
|
+
return {
|
|
132
|
+
b,
|
|
133
|
+
e,
|
|
134
|
+
m,
|
|
135
|
+
em
|
|
136
|
+
};
|
|
153
137
|
}
|
|
154
138
|
var row = "";
|
|
155
|
-
const CLASS_PREFIX = "devui-row";
|
|
156
139
|
var Row = defineComponent({
|
|
157
140
|
name: "DRow",
|
|
158
141
|
props: rowProps,
|
|
@@ -161,12 +144,12 @@ var Row = defineComponent({
|
|
|
161
144
|
slots
|
|
162
145
|
}) {
|
|
163
146
|
const gutterScreenSize = ref({});
|
|
164
|
-
const
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
});
|
|
147
|
+
const ns = useNamespace("row");
|
|
148
|
+
const rowClass = computed(() => ({
|
|
149
|
+
[ns.em("align", props.align)]: true,
|
|
150
|
+
[ns.em("justify", props.justify)]: true,
|
|
151
|
+
[ns.e("wrap")]: props.wrap
|
|
152
|
+
}));
|
|
170
153
|
let token;
|
|
171
154
|
onMounted(() => {
|
|
172
155
|
token = responesScreen((screen2) => {
|
|
@@ -214,11 +197,48 @@ var Row = defineComponent({
|
|
|
214
197
|
return () => {
|
|
215
198
|
var _a;
|
|
216
199
|
return createVNode("div", {
|
|
217
|
-
"class":
|
|
200
|
+
"class": [ns.b(), rowClass.value]
|
|
218
201
|
}, [(_a = slots.default) == null ? void 0 : _a.call(slots)]);
|
|
219
202
|
};
|
|
220
203
|
}
|
|
221
204
|
});
|
|
205
|
+
const colNs = useNamespace("col");
|
|
206
|
+
function useColClassNames(props) {
|
|
207
|
+
return computed(() => ({
|
|
208
|
+
[colNs.em("span", props.span ? String(props.span) : "")]: true,
|
|
209
|
+
[colNs.em("offset", props.offset ? String(props.offset) : "")]: true,
|
|
210
|
+
[colNs.em("pull", props.pull ? String(props.pull) : "")]: true,
|
|
211
|
+
[colNs.em("push", props.push ? String(props.push) : "")]: true
|
|
212
|
+
}));
|
|
213
|
+
}
|
|
214
|
+
function setSpace(val) {
|
|
215
|
+
return ` ${val.trim()}${val && " "}`;
|
|
216
|
+
}
|
|
217
|
+
function useSize(colSizes) {
|
|
218
|
+
const keys = Object.keys(colSizes).filter((key) => key in screenSizes);
|
|
219
|
+
return computed(() => {
|
|
220
|
+
return keys.reduce((total, key) => {
|
|
221
|
+
const valueType = typeof colSizes[key];
|
|
222
|
+
if (valueType === "number") {
|
|
223
|
+
total = `${setSpace(total)}${colNs.em(key, `span-${colSizes[key]}`)}`;
|
|
224
|
+
} else if (valueType === "object") {
|
|
225
|
+
const colSizesKeys = Object.keys(colSizes[key]);
|
|
226
|
+
const sum = colSizesKeys.filter((item) => item in colPropsBaseClass).reduce((tot, k) => {
|
|
227
|
+
const baseClass = colSizes[key];
|
|
228
|
+
const _class = baseClass[k];
|
|
229
|
+
if (typeof _class !== "number") {
|
|
230
|
+
return "";
|
|
231
|
+
} else {
|
|
232
|
+
tot = `${setSpace(tot)}${colNs.em(key, `${k}-${_class}`)}`;
|
|
233
|
+
}
|
|
234
|
+
return tot;
|
|
235
|
+
}, "");
|
|
236
|
+
total = `${setSpace(total)}${sum}`;
|
|
237
|
+
}
|
|
238
|
+
return total;
|
|
239
|
+
}, "");
|
|
240
|
+
});
|
|
241
|
+
}
|
|
222
242
|
var col = "";
|
|
223
243
|
var Col = defineComponent({
|
|
224
244
|
name: "DCol",
|
|
@@ -226,6 +246,7 @@ var Col = defineComponent({
|
|
|
226
246
|
setup(props, {
|
|
227
247
|
slots
|
|
228
248
|
}) {
|
|
249
|
+
const ns = useNamespace("col");
|
|
229
250
|
const formatFlex = (flex) => {
|
|
230
251
|
if (typeof flex === "number") {
|
|
231
252
|
return `${flex} ${flex} auto`;
|
|
@@ -245,25 +266,19 @@ var Col = defineComponent({
|
|
|
245
266
|
return () => {
|
|
246
267
|
var _a;
|
|
247
268
|
return createVNode("div", {
|
|
248
|
-
"class":
|
|
249
|
-
"style": __spreadValues(__spreadValues({}, colStyle.value), gutterStyle.value)
|
|
269
|
+
"class": [ns.b(), colClassNames.value, sizeClassNames.value],
|
|
270
|
+
"style": __spreadValues(__spreadValues({}, colStyle.value), gutterStyle == null ? void 0 : gutterStyle.value)
|
|
250
271
|
}, [(_a = slots.default) == null ? void 0 : _a.call(slots)]);
|
|
251
272
|
};
|
|
252
273
|
}
|
|
253
274
|
});
|
|
254
|
-
Row.install = function(app) {
|
|
255
|
-
app.component(Row.name, Row);
|
|
256
|
-
};
|
|
257
|
-
Col.install = function(app) {
|
|
258
|
-
app.component(Col.name, Col);
|
|
259
|
-
};
|
|
260
275
|
var index = {
|
|
261
276
|
title: "Grid \u6805\u683C",
|
|
262
277
|
category: "\u5E03\u5C40",
|
|
263
278
|
status: "100%",
|
|
264
279
|
install(app) {
|
|
265
|
-
app.
|
|
266
|
-
app.
|
|
280
|
+
app.component(Row.name, Row);
|
|
281
|
+
app.component(Col.name, Col);
|
|
267
282
|
}
|
|
268
283
|
};
|
|
269
|
-
export { Col, Row, index as default };
|
|
284
|
+
export { Col, Row, colProps, colPropsBaseClass, colPropsBaseStyle, index as default, rowProps, screenSizes };
|
package/grid/index.umd.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var I=Object.defineProperty;var _=Object.getOwnPropertySymbols;var J=Object.prototype.hasOwnProperty,Q=Object.prototype.propertyIsEnumerable;var L=(s,n,i)=>n in s?I(s,n,{enumerable:!0,configurable:!0,writable:!0,value:i}):s[n]=i,a=(s,n)=>{for(var i in n||(n={}))J.call(n,i)&&L(s,i,n[i]);if(_)for(var i of _(n))Q.call(n,i)&&L(s,i,n[i]);return s};(function(s,n){typeof exports=="object"&&typeof module!="undefined"?n(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],n):(s=typeof globalThis!="undefined"?globalThis:s||self,n(s.index={},s.Vue))})(this,function(s,n){"use strict";const i={align:{type:String,default:"top"},gutter:{type:[Number,Object,Array],default:0},justify:{type:String,default:"start"},wrap:{type:Boolean,default:!1}},b=Number,B={flex:[String,Number],order:b},w={offset:b,pull:b,push:b,span:b},d=[Number,Object],x={xs:d,sm:d,md:d,lg:d,xl:d,xxl:d},O=a(a(a({},B),w),x),A=["xxl","xl","lg","md","sm","xs"],C={xs:"screen and (max-width: 575px)",sm:"screen and (min-width: 576px)",md:"screen and (min-width: 768px)",lg:"screen and (min-width: 992px)",xl:"screen and (min-width: 1200px)",xxl:"screen and (min-width: 1600px)"},f=new Map;let j=-1;const y={},R={};function z(){f.forEach(e=>{e(a({},y))})}function U(){Object.keys(C).forEach(e=>{const c=window.matchMedia(C[e]);c.matches&&(y[e]=!0,z());const r=u=>{y[e]=u.matches,z()};c.addEventListener("change",r),R[e]={res:c,listener:r}})}function V(e){return f.size||U(),j+=1,f.set(j,e),e(a({},y)),j}function D(){Object.keys(C).forEach(e=>{const c=R[e];c.res.removeEventListener("change",c.listener)}),f.clear()}function G(e){f.delete(e),f.size===0&&D()}function h(e,c,r){let u=e;return c&&(u+=`__${c}`),r&&(u+=`--${r}`),u}function N(e,c=!1){const r=c?`.devui-${e}`:`devui-${e}`;return{b:()=>h(r),e:t=>t?h(r,t):"",m:t=>t?h(r,"",t):"",em:(t,o)=>t&&o?h(r,t,o):""}}var W="",v=n.defineComponent({name:"DRow",props:i,emits:[],setup(e,{slots:c}){const r=n.ref({}),u=N("row"),l=n.computed(()=>({[u.em("align",e.align)]:!0,[u.em("justify",e.justify)]:!0,[u.e("wrap")]:e.wrap}));let p;n.onMounted(()=>{p=V(t=>{r.value=t})}),n.onUnmounted(()=>{G(p)});const g=n.computed(()=>{if(!e.gutter)return{};let t=[0,0];Array.isArray(e.gutter)?t=e.gutter:typeof e.gutter=="number"?t=[e.gutter,0]:A.some(T=>{const $=e.gutter[T];return r.value[T]&&$?(typeof $=="number"?t=[$,0]:t=$,!0):!1});const o=`${(t[0]||0)/2}px`,M=`${(t[0]||0)/2}px`,S=`${(t[1]||0)/2}px`,H=`${(t[1]||0)/2}px`;return{paddingLeft:o,paddingRight:M,paddingTop:S,paddingBottom:H}});return n.provide("gutterStyle",g),()=>{var t;return n.createVNode("div",{class:[u.b(),l.value]},[(t=c.default)==null?void 0:t.call(c)])}}});const m=N("col");function K(e){return n.computed(()=>({[m.em("span",e.span?String(e.span):"")]:!0,[m.em("offset",e.offset?String(e.offset):"")]:!0,[m.em("pull",e.pull?String(e.pull):"")]:!0,[m.em("push",e.push?String(e.push):"")]:!0}))}function P(e){return` ${e.trim()}${e&&" "}`}function q(e){const c=Object.keys(e).filter(r=>r in x);return n.computed(()=>c.reduce((r,u)=>{const l=typeof e[u];if(l==="number")r=`${P(r)}${m.em(u,`span-${e[u]}`)}`;else if(l==="object"){const g=Object.keys(e[u]).filter(t=>t in w).reduce((t,o)=>{const S=e[u][o];return typeof S!="number"?"":(t=`${P(t)}${m.em(u,`${o}-${S}`)}`,t)},"");r=`${P(r)}${g}`}return r},""))}var X="",E=n.defineComponent({name:"DCol",props:O,setup(e,{slots:c}){const r=N("col"),u=o=>typeof o=="number"?`${o} ${o} auto`:/^\d+(\.\d+)?(px|rem|em|%)$/.test(o)?`0 0 ${o}`:o,l=K(e),p=q(e),g=n.computed(()=>({flex:u(e.flex),order:e.order})),t=n.inject("gutterStyle");return()=>{var o;return n.createVNode("div",{class:[r.b(),l.value,p.value],style:a(a({},g.value),t==null?void 0:t.value)},[(o=c.default)==null?void 0:o.call(c)])}}}),F={title:"Grid \u6805\u683C",category:"\u5E03\u5C40",status:"100%",install(e){e.component(v.name,v),e.component(E.name,E)}};s.Col=E,s.Row=v,s.colProps=O,s.colPropsBaseClass=w,s.colPropsBaseStyle=B,s.default=F,s.rowProps=i,s.screenSizes=x,Object.defineProperty(s,"__esModule",{value:!0}),s[Symbol.toStringTag]="Module"});
|