cosey 0.1.1-2 → 0.1.1-3
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/components/audio-card/audio-card.js +5 -8
- package/components/audio-card/audio-card.vue.js +21 -22
- package/components/audio-card/index.js +6 -8
- package/components/audio-card/style/index.js +13 -16
- package/components/audio-viewer/audio-viewer.js +3 -6
- package/components/audio-viewer/audio-viewer.vue.js +24 -25
- package/components/audio-viewer/index.js +6 -8
- package/components/audio-viewer/style/index.js +16 -19
- package/components/close/close.js +1 -1
- package/components/close/close.vue.js +11 -13
- package/components/close/index.js +6 -7
- package/components/close/style/index.js +25 -28
- package/components/col/col.js +7 -10
- package/components/col/col.vue.js +16 -17
- package/components/col/index.js +6 -8
- package/components/col/style/index.js +54 -54
- package/components/components.js +44 -44
- package/components/config-provider/config-provider.js +21 -25
- package/components/config-provider/config-provider.vue.js +13 -14
- package/components/config-provider/index.js +6 -8
- package/components/config-provider/override-element-plus.js +120 -123
- package/components/config-provider/useMergeTheme.js +33 -34
- package/components/container/container.js +1 -3
- package/components/container/container.vue.js +13 -14
- package/components/container/index.js +6 -8
- package/components/container/style/index.js +9 -12
- package/components/context-menu/content.js +1 -1
- package/components/context-menu/content.vue.js +20 -22
- package/components/context-menu/context-menu-item.js +1 -1
- package/components/context-menu/context-menu-item.vue.js +11 -12
- package/components/context-menu/context-menu.js +1 -3
- package/components/context-menu/context-menu.vue.js +29 -31
- package/components/context-menu/context-sub-menu.js +1 -1
- package/components/context-menu/context-sub-menu.vue.js +32 -26
- package/components/context-menu/divider.vue.js +7 -9
- package/components/context-menu/index.js +12 -12
- package/components/context-menu/style/index.js +82 -85
- package/components/context-menu/useItemProvide.js +42 -45
- package/components/context-menu/useSubProvide.js +35 -38
- package/components/copy/copy.js +1 -1
- package/components/copy/copy.vue.js +18 -20
- package/components/copy/index.js +6 -7
- package/components/copy/style/index.js +16 -19
- package/components/cssinjs/Keyframes.js +11 -13
- package/components/cssinjs/index.js +3 -2
- package/components/cssinjs/interface.js +1 -1
- package/components/cssinjs/linters/contentQuotesLinter.js +13 -14
- package/components/cssinjs/linters/hashedAnimationLinter.js +6 -12
- package/components/cssinjs/linters/index.js +5 -5
- package/components/cssinjs/linters/interface.js +1 -1
- package/components/cssinjs/linters/legacyNotSelectorLinter.js +18 -19
- package/components/cssinjs/linters/logicalPropertiesLinter.js +70 -80
- package/components/cssinjs/linters/parentSelectorLinter.js +8 -11
- package/components/cssinjs/linters/utils.js +6 -10
- package/components/cssinjs/parser.js +153 -136
- package/components/cssinjs/transformers/interface.js +1 -1
- package/components/cssinjs/transformers/legacyLogicalProperties.js +134 -114
- package/components/cssinjs/transformers/px2rem.js +39 -34
- package/components/dnd-sort/dnd-sort-item.js +1 -1
- package/components/dnd-sort/dnd-sort-item.vue.js +21 -22
- package/components/dnd-sort/dnd-sort.js +1 -3
- package/components/dnd-sort/dnd-sort.vue.js +10 -11
- package/components/dnd-sort/index.js +11 -12
- package/components/dnd-sort/style/index.js +25 -28
- package/components/dnd-sort/useDndSort.js +20 -26
- package/components/dnd-sort/useDndSortItem.js +144 -132
- package/components/editor/components/button-group.vue.js +8 -10
- package/components/editor/components/button.vue.js +9 -10
- package/components/editor/components/color-picker/color-picker.js +27 -28
- package/components/editor/components/color-picker/color-picker.style.js +63 -66
- package/components/editor/components/color-picker/color-picker.vue.js +55 -56
- package/components/editor/components/color-picker/useHistoryColor.js +18 -21
- package/components/editor/components/list/list.js +1 -1
- package/components/editor/components/list/list.style.js +20 -23
- package/components/editor/components/list/list.vue.js +14 -16
- package/components/editor/components/picker/picker.js +1 -3
- package/components/editor/components/picker/picker.style.js +19 -22
- package/components/editor/components/picker/picker.vue.js +17 -18
- package/components/editor/components/resize/resize.js +84 -83
- package/components/editor/components/resize/resize.style.js +101 -104
- package/components/editor/components/resize/resize.vue.js +29 -30
- package/components/editor/components/select-button.vue.js +16 -17
- package/components/editor/components/select.vue.js +12 -13
- package/components/editor/components/split-button.vue.js +17 -18
- package/components/editor/components/table-toolbar/table-toolbar.style.js +18 -21
- package/components/editor/components/table-toolbar/table-toolbar.vue.js +36 -37
- package/components/editor/components/toolbar/formats/align.vue.js +12 -13
- package/components/editor/components/toolbar/formats/background.vue.js +12 -13
- package/components/editor/components/toolbar/formats/blockquote.vue.js +12 -13
- package/components/editor/components/toolbar/formats/bold.vue.js +12 -13
- package/components/editor/components/toolbar/formats/clean.vue.js +11 -12
- package/components/editor/components/toolbar/formats/code-block.vue.js +12 -13
- package/components/editor/components/toolbar/formats/code.vue.js +12 -13
- package/components/editor/components/toolbar/formats/color.vue.js +12 -13
- package/components/editor/components/toolbar/formats/font.vue.js +10 -11
- package/components/editor/components/toolbar/formats/formula.js +85 -87
- package/components/editor/components/toolbar/formats/formula.vue.js +34 -35
- package/components/editor/components/toolbar/formats/header.vue.js +10 -11
- package/components/editor/components/toolbar/formats/image.vue.js +11 -12
- package/components/editor/components/toolbar/formats/indent.vue.js +11 -12
- package/components/editor/components/toolbar/formats/italic.vue.js +12 -13
- package/components/editor/components/toolbar/formats/link.vue.js +28 -29
- package/components/editor/components/toolbar/formats/list.vue.js +12 -13
- package/components/editor/components/toolbar/formats/script.vue.js +12 -13
- package/components/editor/components/toolbar/formats/size-delta.vue.js +12 -13
- package/components/editor/components/toolbar/formats/size.vue.js +9 -10
- package/components/editor/components/toolbar/formats/strike.vue.js +12 -13
- package/components/editor/components/toolbar/formats/strikethrough.vue.js +12 -13
- package/components/editor/components/toolbar/formats/table.style.js +42 -45
- package/components/editor/components/toolbar/formats/table.vue.js +27 -28
- package/components/editor/components/toolbar/formats/underline.vue.js +12 -13
- package/components/editor/components/toolbar/formats/video.vue.js +18 -19
- package/components/editor/components/toolbar/toolbar.js +139 -136
- package/components/editor/components/toolbar/toolbar.vue.js +62 -63
- package/components/editor/components/toolbar/toolbarContext.js +1 -5
- package/components/editor/editor.js +2 -4
- package/components/editor/editor.vue.js +32 -32
- package/components/editor/formats/align.js +2 -4
- package/components/editor/formats/font.js +28 -31
- package/components/editor/formats/formula.js +22 -25
- package/components/editor/formats/indent.js +26 -25
- package/components/editor/formats/link.js +43 -47
- package/components/editor/formats/list.js +42 -41
- package/components/editor/formats/size.js +6 -7
- package/components/editor/formats/video.js +38 -42
- package/components/editor/index.js +18 -20
- package/components/editor/modules/custom-list.js +17 -25
- package/components/editor/modules/image-uploader/formats/image-loading.js +27 -29
- package/components/editor/modules/image-uploader/formats/image-loading.style.js +42 -45
- package/components/editor/modules/image-uploader/image-uploader.js +108 -123
- package/components/editor/modules/syntax/index.js +2 -1
- package/components/editor/modules/syntax/syntaxOptions.js +18 -21
- package/components/editor/quill.js +19 -22
- package/components/editor/quillContext.js +1 -5
- package/components/editor/style/button.js +63 -66
- package/components/editor/style/hljs.js +4 -7
- package/components/editor/style/index.js +270 -259
- package/components/editor/style/toolbar.js +15 -17
- package/components/field/components/autocomplete/autocomplete.js +1 -1
- package/components/field/components/autocomplete/autocomplete.vue.js +5 -8
- package/components/field/components/cascader/cascader.js +1 -1
- package/components/field/components/cascader/cascader.vue.js +5 -9
- package/components/field/components/checkbox/checkbox.js +1 -1
- package/components/field/components/checkbox/checkbox.vue.js +5 -8
- package/components/field/components/checkbox-group/checkbox-group.js +1 -1
- package/components/field/components/checkbox-group/checkbox-group.vue.js +8 -13
- package/components/field/components/checkbox-group/panel.vue.js +16 -17
- package/components/field/components/color/color.js +1 -1
- package/components/field/components/color/color.vue.js +5 -8
- package/components/field/components/common.js +1 -1
- package/components/field/components/date/date.js +1 -1
- package/components/field/components/date/date.vue.js +6 -10
- package/components/field/components/date-range/date-range.js +1 -1
- package/components/field/components/date-range/date-range.vue.js +6 -10
- package/components/field/components/date-time/date-time.js +1 -1
- package/components/field/components/date-time/date-time.vue.js +6 -10
- package/components/field/components/date-time-range/date-time-range.js +1 -1
- package/components/field/components/date-time-range/date-time-range.vue.js +6 -10
- package/components/field/components/dates/dates.js +1 -1
- package/components/field/components/dates/dates.vue.js +6 -10
- package/components/field/components/input/input.js +1 -1
- package/components/field/components/input/input.vue.js +5 -8
- package/components/field/components/input-tag/input-tag.js +1 -1
- package/components/field/components/input-tag/input-tag.vue.js +5 -8
- package/components/field/components/mention/mention.js +1 -1
- package/components/field/components/mention/mention.vue.js +5 -8
- package/components/field/components/month/month.js +1 -1
- package/components/field/components/month/month.vue.js +6 -10
- package/components/field/components/month-range/month-range.js +1 -1
- package/components/field/components/month-range/month-range.vue.js +6 -10
- package/components/field/components/months/months.js +1 -1
- package/components/field/components/months/months.vue.js +6 -10
- package/components/field/components/number/number.js +1 -1
- package/components/field/components/number/number.vue.js +5 -8
- package/components/field/components/password/password.js +1 -1
- package/components/field/components/password/password.vue.js +7 -10
- package/components/field/components/radio-group/radio-group.js +1 -1
- package/components/field/components/radio-group/radio-group.vue.js +5 -9
- package/components/field/components/rate/rate.js +1 -1
- package/components/field/components/rate/rate.vue.js +4 -7
- package/components/field/components/segmented/segmented.js +1 -1
- package/components/field/components/segmented/segmented.vue.js +5 -9
- package/components/field/components/select/select.js +10 -10
- package/components/field/components/select/select.vue.js +7 -11
- package/components/field/components/select-v2/select-v2.js +1 -1
- package/components/field/components/select-v2/select-v2.vue.js +4 -7
- package/components/field/components/slider/slider.js +1 -1
- package/components/field/components/slider/slider.vue.js +5 -8
- package/components/field/components/switch/switch.js +1 -1
- package/components/field/components/switch/switch.vue.js +4 -7
- package/components/field/components/textarea/textarea.js +1 -1
- package/components/field/components/textarea/textarea.vue.js +5 -8
- package/components/field/components/time/time.js +1 -1
- package/components/field/components/time/time.vue.js +6 -10
- package/components/field/components/time-range/time-range.js +1 -1
- package/components/field/components/time-range/time-range.vue.js +6 -10
- package/components/field/components/time-select/time-select.js +1 -1
- package/components/field/components/time-select/time-select.vue.js +5 -8
- package/components/field/components/transfer/transfer.js +1 -1
- package/components/field/components/transfer/transfer.vue.js +5 -9
- package/components/field/components/tree-select/tree-select.js +67 -1
- package/components/field/components/tree-select/tree-select.vue.js +5 -9
- package/components/field/components/upload/upload.js +1 -1
- package/components/field/components/upload/upload.vue.js +5 -8
- package/components/field/components/week/week.js +1 -1
- package/components/field/components/week/week.vue.js +7 -10
- package/components/field/components/year/year.js +1 -1
- package/components/field/components/year/year.vue.js +6 -9
- package/components/field/components/year-range/year-range.js +1 -1
- package/components/field/components/year-range/year-range.vue.js +6 -10
- package/components/field/components/years/years.js +1 -1
- package/components/field/components/years/years.vue.js +6 -9
- package/components/field/field.js +76 -79
- package/components/field/field.vue.js +9 -10
- package/components/field/index.js +6 -8
- package/components/file-card/file-card.js +3 -6
- package/components/file-card/file-card.vue.js +16 -18
- package/components/file-card/index.js +6 -8
- package/components/file-card/style/index.js +12 -15
- package/components/form/form-item.js +34 -37
- package/components/form/form-item.vue.js +49 -51
- package/components/form/form.js +56 -59
- package/components/form/form.vue.js +36 -37
- package/components/form/index.js +12 -14
- package/components/form/style/index.js +37 -40
- package/components/form/useBubbleTemplate.js +15 -18
- package/components/form/useFormItemWidth.js +23 -26
- package/components/form/useFormTemplate.js +68 -79
- package/components/form-dialog/form-dialog.js +35 -38
- package/components/form-dialog/form-dialog.vue.js +13 -15
- package/components/form-dialog/index.js +7 -9
- package/components/form-dialog/useFormDialogWidth.js +7 -10
- package/components/form-drawer/form-drawer.js +9 -12
- package/components/form-drawer/form-drawer.vue.js +13 -16
- package/components/form-drawer/index.js +6 -8
- package/components/form-group/form-group.js +1 -1
- package/components/form-group/form-group.vue.js +18 -19
- package/components/form-group/index.js +6 -7
- package/components/form-list/form-list.js +10 -13
- package/components/form-list/form-list.vue.js +35 -41
- package/components/form-list/index.js +6 -8
- package/components/form-list/style/index.js +30 -33
- package/components/form-query/form-query.js +27 -30
- package/components/form-query/form-query.vue.js +41 -43
- package/components/form-query/index.js +6 -8
- package/components/form-query/style/index.js +20 -23
- package/components/highlight/highlight.js +9 -10
- package/components/highlight/highlight.vue.js +12 -14
- package/components/highlight/index.js +6 -8
- package/components/highlight/style/hljs.js +41 -43
- package/components/highlight/style/index.js +15 -18
- package/components/horizontal-tree/horizontal-tree.js +1 -1
- package/components/horizontal-tree/horizontal-tree.vue.js +46 -48
- package/components/horizontal-tree/index.js +6 -7
- package/components/horizontal-tree/style/index.js +32 -35
- package/components/icon/icon.js +1 -1
- package/components/icon/icon.vue.js +12 -13
- package/components/icon/index.js +6 -7
- package/components/icon/style/index.js +24 -27
- package/components/iconify-icon/iconify-icon.js +1 -1
- package/components/iconify-icon/iconify-icon.vue.js +8 -9
- package/components/iconify-icon/index.js +6 -7
- package/components/image-card/image-card.js +9 -12
- package/components/image-card/image-card.vue.js +14 -15
- package/components/image-card/index.js +6 -8
- package/components/image-card/style/index.js +10 -13
- package/components/index.js +55 -108
- package/components/long-text/index.js +6 -8
- package/components/long-text/long-text.js +4 -6
- package/components/long-text/long-text.vue.js +32 -33
- package/components/long-text/style/index.js +22 -25
- package/components/mask/index.js +6 -7
- package/components/mask/mask.js +1 -1
- package/components/mask/mask.vue.js +9 -11
- package/components/mask/style/index.js +14 -17
- package/components/media-card/index.js +6 -8
- package/components/media-card/media-card.js +19 -21
- package/components/media-card/media-card.vue.js +16 -19
- package/components/media-card/style/index.js +63 -66
- package/components/media-card-group/index.js +6 -7
- package/components/media-card-group/media-card-group.js +1 -1
- package/components/media-card-group/media-card-group.vue.js +14 -15
- package/components/media-card-group/style/index.js +10 -13
- package/components/media-viewer/index.js +6 -8
- package/components/media-viewer/media-viewer.js +4 -6
- package/components/media-viewer/media-viewer.vue.js +5 -7
- package/components/number-format/index.js +6 -8
- package/components/number-format/number-format.js +6 -8
- package/components/number-format/number-format.vue.js +9 -10
- package/components/only-child/index.js +5 -7
- package/components/only-child/only-child.vue.js +6 -8
- package/components/optional-wrapper/index.js +5 -7
- package/components/optional-wrapper/optional-wrapper.js +1 -1
- package/components/optional-wrapper/optional-wrapper.vue.js +3 -6
- package/components/panel/index.js +6 -7
- package/components/panel/panel.js +1 -1
- package/components/panel/panel.vue.js +17 -19
- package/components/panel/style/index.js +23 -26
- package/components/row/index.js +6 -8
- package/components/row/row.js +17 -19
- package/components/row/row.vue.js +15 -16
- package/components/row/style/index.js +12 -15
- package/components/scroll-view/index.js +6 -7
- package/components/scroll-view/scroll-view.js +1 -1
- package/components/scroll-view/scroll-view.vue.js +21 -22
- package/components/scroll-view/style/index.js +75 -78
- package/components/snug-menu/index.js +9 -10
- package/components/snug-menu/snug-menu-item.js +1 -1
- package/components/snug-menu/snug-menu-item.vue.js +16 -17
- package/components/snug-menu/snug-menu.js +1 -3
- package/components/snug-menu/snug-menu.vue.js +13 -14
- package/components/snug-menu/style/index.js +56 -59
- package/components/style/index.js +2 -2
- package/components/style/mixins.js +13 -15
- package/components/style/motion/index.js +1 -1
- package/components/style/motion/loading.js +18 -21
- package/components/svg-icon/index.js +6 -7
- package/components/svg-icon/svg-icon.js +1 -1
- package/components/svg-icon/svg-icon.vue.js +6 -7
- package/components/table/index.js +7 -9
- package/components/table/style/index.js +72 -75
- package/components/table/table-column/renderer.js +56 -55
- package/components/table/table-column/style/index.js +13 -16
- package/components/table/table-column/table-column.js +22 -25
- package/components/table/table-column/table-column.vue.js +16 -16
- package/components/table/table-column-editor/item.vue.js +37 -38
- package/components/table/table-column-editor/list.vue.js +15 -18
- package/components/table/table-column-editor/style/index.js +68 -71
- package/components/table/table-column-editor/table-column-editor.js +2 -4
- package/components/table/table-column-editor/table-column-editor.vue.js +41 -42
- package/components/table/table-export/item.vue.js +15 -16
- package/components/table/table-export/list.vue.js +10 -12
- package/components/table/table-export/style/index.js +23 -26
- package/components/table/table-export/table-export.js +14 -19
- package/components/table/table-export/table-export.vue.js +35 -39
- package/components/table/table-query/table-query.js +21 -26
- package/components/table/table-query/table-query.vue.js +16 -17
- package/components/table/table.js +106 -111
- package/components/table/table.vue.js +77 -81
- package/components/table/useTable.js +14 -23
- package/components/table/utils.js +6 -8
- package/components/table-action/index.js +6 -8
- package/components/table-action/item.js +27 -30
- package/components/table-action/item.vue.js +29 -30
- package/components/table-action/style/index.js +12 -15
- package/components/table-action/table-action.js +2 -4
- package/components/table-action/table-action.vue.js +14 -16
- package/components/theme/StyleContext.js +33 -38
- package/components/theme/createCacheToken.js +32 -40
- package/components/theme/extractStyle.js +15 -18
- package/components/theme/getGlobalStyleHook.js +33 -46
- package/components/theme/getSimpleStyleHook.js +25 -34
- package/components/theme/getStyleHook.js +39 -49
- package/components/theme/index.js +12 -13
- package/components/theme/interface/alias.js +1 -1
- package/components/theme/interface/components.js +1 -1
- package/components/theme/interface/index.js +1 -1
- package/components/theme/interface/maps/colors.js +1 -1
- package/components/theme/interface/maps/font.js +1 -1
- package/components/theme/interface/maps/index.js +4 -1
- package/components/theme/interface/maps/size.js +1 -1
- package/components/theme/interface/maps/style.js +1 -1
- package/components/theme/interface/presetColors.js +13 -15
- package/components/theme/interface/seeds.js +1 -1
- package/components/theme/theme-context.js +6 -9
- package/components/theme/themes/ColorMap.js +1 -1
- package/components/theme/themes/compact/genCompactSizeMapToken.js +14 -16
- package/components/theme/themes/compact/index.js +17 -20
- package/components/theme/themes/dark/colorAlgorithm.js +4 -7
- package/components/theme/themes/dark/colors.js +44 -47
- package/components/theme/themes/dark/index.js +32 -32
- package/components/theme/themes/default/colorAlgorithm.js +4 -7
- package/components/theme/themes/default/colors.js +44 -47
- package/components/theme/themes/default/index.js +38 -38
- package/components/theme/themes/seed.js +60 -62
- package/components/theme/themes/shared/genColorMapToken.js +75 -86
- package/components/theme/themes/shared/genCommonMapToken.js +13 -16
- package/components/theme/themes/shared/genControlHeight.js +7 -9
- package/components/theme/themes/shared/genFontMapToken.js +35 -38
- package/components/theme/themes/shared/genFontSizes.js +16 -16
- package/components/theme/themes/shared/genRadius.js +52 -42
- package/components/theme/themes/shared/genSizeMapToken.js +13 -24
- package/components/theme/themes/shared/generate.js +101 -88
- package/components/theme/useHMR.js +9 -12
- package/components/theme/useStyleRegister.js +31 -40
- package/components/theme/util/alias.js +140 -148
- package/components/theme/util/getAlphaColor.js +22 -28
- package/components/theme/util/normalizeStyle.js +4 -7
- package/components/theme/util/preserve.js +18 -20
- package/components/theme/util/statistic.js +50 -43
- package/components/theme/util/tokenValueToCssVar.js +10 -11
- package/components/theme/util/unitless.js +18 -21
- package/components/theme/util/useToken.js +56 -62
- package/components/toggle/index.js +6 -7
- package/components/toggle/toggle.js +1 -1
- package/components/toggle/toggle.vue.js +10 -11
- package/components/transition/index.js +6 -7
- package/components/transition/style/index.js +14 -17
- package/components/transition/transition.js +1 -1
- package/components/transition/transition.vue.js +12 -13
- package/components/transition-group/index.js +6 -7
- package/components/transition-group/style/index.js +41 -44
- package/components/transition-group/transition-group.js +1 -1
- package/components/transition-group/transition-group.vue.js +12 -12
- package/components/upload/index.js +7 -9
- package/components/upload/style/index.js +70 -73
- package/components/upload/upload-item.vue.js +36 -37
- package/components/upload/upload.js +6 -8
- package/components/upload/upload.vue.js +26 -31
- package/components/upload-context.js +5 -8
- package/components/utils.js +5 -7
- package/components/video-card/index.js +6 -8
- package/components/video-card/style/index.js +30 -33
- package/components/video-card/video-card.js +5 -8
- package/components/video-card/video-card.vue.js +23 -24
- package/components/video-viewer/index.js +6 -8
- package/components/video-viewer/style/index.js +21 -24
- package/components/video-viewer/video-viewer.js +3 -6
- package/components/video-viewer/video-viewer.vue.js +25 -26
- package/config/api.js +24 -23
- package/config/component.js +40 -39
- package/config/http.js +43 -42
- package/config/index.js +26 -45
- package/config/layout.js +12 -11
- package/config/persist.js +12 -11
- package/config/root-config-provider.js +13 -16
- package/config/root-config-provider.vue.js +15 -19
- package/config/router.js +16 -15
- package/config/site.js +16 -15
- package/constant.js +2 -4
- package/hooks/index.js +21 -21
- package/hooks/useCallbackRef.js +6 -9
- package/hooks/useColorScheme.js +66 -73
- package/hooks/useDocumentEvent.js +7 -10
- package/hooks/useEcharts.js +57 -54
- package/hooks/useFetch.js +35 -42
- package/hooks/useFloating.js +38 -41
- package/hooks/useFullPage.js +42 -51
- package/hooks/useLocale.js +26 -30
- package/hooks/useLockScroll.js +36 -30
- package/hooks/useLockscreenObserver.js +23 -22
- package/hooks/useMounted.js +7 -10
- package/hooks/useOptionalComponent.js +9 -8
- package/hooks/usePersist.js +13 -14
- package/hooks/useRectObserver.js +40 -46
- package/hooks/useResizeObserver.js +29 -27
- package/hooks/useTimeout.js +22 -25
- package/hooks/useTreeCheck.js +77 -87
- package/hooks/useTwoWayBinding.js +16 -22
- package/hooks/useUpsert.js +106 -118
- package/hooks/useVisible.js +16 -22
- package/hooks/useWindowResize.js +8 -11
- package/index.js +27 -88
- package/layout/index.js +9 -66
- package/layout/layout-aside/index.js +1 -1
- package/layout/layout-aside/layout-aside.vue.js +33 -36
- package/layout/layout-aside/style/index.js +32 -35
- package/layout/layout-auth/index.js +1 -1
- package/layout/layout-auth/layout-auth.vue.js +25 -27
- package/layout/layout-auth/style/index.js +53 -56
- package/layout/layout-base/index.js +1 -1
- package/layout/layout-base/layout-base.vue.js +46 -48
- package/layout/layout-base/style/index.js +10 -13
- package/layout/layout-brand/index.js +1 -1
- package/layout/layout-brand/layout-brand.vue.js +17 -19
- package/layout/layout-brand/style/index.js +26 -29
- package/layout/layout-breadcrumb/index.js +1 -1
- package/layout/layout-breadcrumb/layout-breadcrumb.vue.js +18 -19
- package/layout/layout-change-password/index.js +1 -1
- package/layout/layout-change-password/layout-change-password.vue.js +43 -44
- package/layout/layout-change-password/style/index.js +20 -23
- package/layout/layout-color-scheme/index.js +1 -1
- package/layout/layout-color-scheme/layout-color-scheme.vue.js +16 -18
- package/layout/layout-color-scheme/style/index.js +45 -52
- package/layout/layout-content/index.js +1 -1
- package/layout/layout-content/layout-content.vue.js +13 -14
- package/layout/layout-content/style/index.js +12 -15
- package/layout/layout-empty/index.js +1 -1
- package/layout/layout-empty/layout-empty.vue.js +5 -7
- package/layout/layout-exception/index.js +1 -1
- package/layout/layout-exception/layout-exception.vue.js +11 -13
- package/layout/layout-exception/style/index.js +12 -15
- package/layout/layout-forbidden/index.js +1 -1
- package/layout/layout-forbidden/layout-forbidden.vue.js +13 -15
- package/layout/layout-header/index.js +1 -1
- package/layout/layout-header/layout-header.vue.js +14 -15
- package/layout/layout-header/style/index.js +14 -17
- package/layout/layout-iframe/index.js +1 -1
- package/layout/layout-iframe/item.vue.js +19 -20
- package/layout/layout-iframe/layout-iframe.vue.js +10 -12
- package/layout/layout-iframe/style/index.js +21 -24
- package/layout/layout-internal-server-error/index.js +1 -1
- package/layout/layout-internal-server-error/layout-internal-server-error.vue.js +13 -15
- package/layout/layout-login/index.js +1 -1
- package/layout/layout-login/layout-login.vue.js +31 -32
- package/layout/layout-login/style/index.js +20 -23
- package/layout/layout-main/index.js +1 -1
- package/layout/layout-main/layout-main.vue.js +23 -24
- package/layout/layout-main/style/index.js +9 -12
- package/layout/layout-mask/index.js +1 -1
- package/layout/layout-mask/layout-mask.vue.js +13 -16
- package/layout/layout-mask/style/index.js +11 -14
- package/layout/layout-menu/index.js +1 -1
- package/layout/layout-menu/layout-menu.vue.js +19 -21
- package/layout/layout-menu/style/index.js +21 -24
- package/layout/layout-not-found/index.js +1 -1
- package/layout/layout-not-found/layout-not-found.vue.js +13 -15
- package/layout/layout-search/index.js +1 -1
- package/layout/layout-search/layout-search.vue.js +59 -62
- package/layout/layout-search/style/index.js +78 -81
- package/layout/layout-sidebar/index.js +1 -1
- package/layout/layout-sidebar/layout-sidebar.vue.js +13 -14
- package/layout/layout-sidebar/style/index.js +14 -17
- package/layout/layout-snug-aside/index.js +1 -1
- package/layout/layout-snug-aside/layout-snug-aside.vue.js +24 -25
- package/layout/layout-snug-aside/style/index.js +27 -30
- package/layout/layout-snug-menu/index.js +1 -1
- package/layout/layout-snug-menu/layout-snug-menu.vue.js +11 -13
- package/layout/layout-switch-effect/index.js +1 -1
- package/layout/layout-switch-effect/layout-switch-effect.vue.js +10 -12
- package/layout/layout-switch-effect/style/index.js +22 -25
- package/layout/layout-tabbar/index.js +1 -1
- package/layout/layout-tabbar/layout-tabbar.vue.js +45 -48
- package/layout/layout-tabbar/reload.vue.js +14 -16
- package/layout/layout-tabbar/style/index.js +62 -66
- package/layout/layout-toggle/index.js +1 -1
- package/layout/layout-toggle/layout-toggle.vue.js +11 -13
- package/layout/layout-top-snug-menu/index.js +1 -1
- package/layout/layout-top-snug-menu/layout-top-snug-menu.vue.js +12 -14
- package/layout/layout-topbar/index.js +1 -1
- package/layout/layout-topbar/layout-topbar.vue.js +18 -20
- package/layout/layout-topbar/style/index.js +23 -26
- package/layout/layout-user/index.js +1 -1
- package/layout/layout-user/layout-user.vue.js +37 -40
- package/layout/layout-user/style/index.js +21 -25
- package/layout/layout.js +29 -29
- package/layout/merged/index.js +29 -29
- package/layout/merged/layout-aside.js +3 -6
- package/layout/merged/layout-auth.js +3 -6
- package/layout/merged/layout-base.js +3 -6
- package/layout/merged/layout-brand.js +3 -6
- package/layout/merged/layout-breadcrumb.js +3 -6
- package/layout/merged/layout-change-password.js +3 -6
- package/layout/merged/layout-color-scheme.js +3 -6
- package/layout/merged/layout-content.js +3 -6
- package/layout/merged/layout-empty.js +3 -6
- package/layout/merged/layout-exception.js +3 -6
- package/layout/merged/layout-forbidden.js +3 -6
- package/layout/merged/layout-header.js +3 -6
- package/layout/merged/layout-iframe.js +3 -6
- package/layout/merged/layout-internal-server-error.js +3 -6
- package/layout/merged/layout-login.js +3 -6
- package/layout/merged/layout-main.js +3 -6
- package/layout/merged/layout-mask.js +3 -6
- package/layout/merged/layout-menu.js +3 -6
- package/layout/merged/layout-not-found.js +3 -6
- package/layout/merged/layout-search.js +3 -6
- package/layout/merged/layout-sidebar.js +3 -6
- package/layout/merged/layout-snug-aside.js +3 -6
- package/layout/merged/layout-snug-menu.js +3 -6
- package/layout/merged/layout-switch-effect.js +3 -6
- package/layout/merged/layout-tabbar.js +3 -6
- package/layout/merged/layout-toggle.js +3 -6
- package/layout/merged/layout-top-snug-menu.js +3 -6
- package/layout/merged/layout-topbar.js +3 -6
- package/layout/merged/layout-user.js +3 -6
- package/layout/utils.js +10 -16
- package/package.json +1 -1
- package/request/Http.js +75 -77
- package/request/index.js +3 -2
- package/request/useRequest.js +78 -86
- package/router/guard/auth.js +58 -58
- package/router/guard/index.js +7 -10
- package/router/guard/popup.js +5 -5
- package/router/guard/progress.js +3 -5
- package/router/index.js +21 -28
- package/router/menus/index.js +79 -82
- package/router/not-found.js +10 -13
- package/router/routes/index.js +7 -6
- package/router/routes/static/auth.js +31 -33
- package/router/routes/static/exception.js +38 -40
- package/router/utils.js +36 -27
- package/store/appearance.js +4 -7
- package/store/create-store.js +1 -4
- package/store/index.js +6 -9
- package/store/layout.js +263 -216
- package/store/user.js +128 -105
- package/types/helper.js +1 -1
- package/utils/array.js +20 -11
- package/utils/bem.js +5 -4
- package/utils/browser.js +5 -4
- package/utils/collection.js +48 -43
- package/utils/css.js +38 -20
- package/utils/date.js +28 -19
- package/utils/dynamicCSS.js +24 -25
- package/utils/echarts/index.js +83 -56
- package/utils/echarts/theme/macarons.js +162 -164
- package/utils/echarts/theme/shine.js +106 -108
- package/utils/excel/bookFormats.js +46 -42
- package/utils/excel/csv.js +26 -16
- package/utils/excel/html.js +56 -47
- package/utils/excel/index.js +158 -136
- package/utils/excel/txt.js +15 -12
- package/utils/excel/type.js +1 -1
- package/utils/excel/utils.js +80 -59
- package/utils/excel/workBook.js +57 -59
- package/utils/excel/xlsx.js +208 -232
- package/utils/excel/xml.js +32 -18
- package/utils/file.js +70 -66
- package/utils/index.js +20 -22
- package/utils/is.js +61 -31
- package/utils/message-box.js +49 -50
- package/utils/number.js +5 -4
- package/utils/object.js +35 -29
- package/utils/path.js +14 -10
- package/utils/sleep.js +4 -6
- package/utils/string.js +10 -6
- package/utils/tree.js +145 -135
- package/utils/vue.js +68 -37
- package/utils/warning.js +26 -20
- package/components/global.d.js +0 -1
- package/types/vue-router.d.js +0 -1
- package/types/vue.d.js +0 -1
|
@@ -1,9 +1,6 @@
|
|
|
1
|
-
import { defaultMediaCardBaseProps } from '../media-card/media-card
|
|
2
|
-
import { defaultAudioViewerProps } from '../audio-viewer/audio-viewer
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
...defaultMediaCardBaseProps
|
|
1
|
+
import { defaultMediaCardBaseProps, } from '../media-card/media-card';
|
|
2
|
+
import { defaultAudioViewerProps, } from '../audio-viewer/audio-viewer';
|
|
3
|
+
export const defaultAudioCardProps = {
|
|
4
|
+
...defaultAudioViewerProps,
|
|
5
|
+
...defaultMediaCardBaseProps,
|
|
7
6
|
};
|
|
8
|
-
|
|
9
|
-
export { defaultAudioCardProps };
|
|
@@ -1,19 +1,20 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { useLockscreen } from 'element-plus';
|
|
4
|
-
import stdin_default$2 from '../icon/icon.vue.js';
|
|
5
|
-
import stdin_default$3 from '../audio-viewer/audio-viewer.vue.js';
|
|
6
|
-
import stdin_default$1 from './style/index.js';
|
|
7
|
-
import { useComponentConfig } from '../config-provider/config-provider.js';
|
|
8
|
-
|
|
1
|
+
import { mergeDefaults as _mergeDefaults, defineComponent as _defineComponent } from "vue";
|
|
2
|
+
import { unref as _unref, createVNode as _createVNode, toDisplayString as _toDisplayString, normalizeClass as _normalizeClass, createElementVNode as _createElementVNode, mergeProps as _mergeProps, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, Fragment as _Fragment, createElementBlock as _createElementBlock } from "vue";
|
|
9
3
|
const _hoisted_1 = ["title"];
|
|
10
|
-
|
|
4
|
+
import { ref } from "vue";
|
|
5
|
+
import { defaultAudioCardProps } from "./audio-card";
|
|
6
|
+
import { useLockscreen } from "element-plus";
|
|
7
|
+
import Icon from "../icon/icon.vue";
|
|
8
|
+
import AudioViewer from "../audio-viewer/audio-viewer.vue";
|
|
9
|
+
import useStyle from "./style";
|
|
10
|
+
import { useComponentConfig } from "../config-provider";
|
|
11
|
+
export default /* @__PURE__ */_defineComponent({
|
|
11
12
|
...{
|
|
12
13
|
name: "AudioCard",
|
|
13
14
|
inheritAttrs: false
|
|
14
15
|
},
|
|
15
16
|
__name: "audio-card",
|
|
16
|
-
props: /* @__PURE__ */
|
|
17
|
+
props: /* @__PURE__ */_mergeDefaults({
|
|
17
18
|
src: {
|
|
18
19
|
type: String,
|
|
19
20
|
required: false
|
|
@@ -63,7 +64,7 @@ var stdin_default = /* @__PURE__ */defineComponent({
|
|
|
63
64
|
} = useComponentConfig("audio-card", props);
|
|
64
65
|
const {
|
|
65
66
|
hashId
|
|
66
|
-
} =
|
|
67
|
+
} = useStyle(prefixCls);
|
|
67
68
|
const viewerVisible = ref(false);
|
|
68
69
|
useLockscreen(viewerVisible);
|
|
69
70
|
const openViewer = () => {
|
|
@@ -80,23 +81,21 @@ var stdin_default = /* @__PURE__ */defineComponent({
|
|
|
80
81
|
}
|
|
81
82
|
});
|
|
82
83
|
return (_ctx, _cache) => {
|
|
83
|
-
return
|
|
84
|
-
class: [
|
|
84
|
+
return _openBlock(), _createElementBlock(_Fragment, null, [_createElementVNode("div", _mergeProps(_ctx.$attrs, {
|
|
85
|
+
class: [_unref(hashId), _unref(prefixCls), `is-${_ctx.size}`],
|
|
85
86
|
title: _ctx.title || _ctx.src,
|
|
86
87
|
onClick: openViewer
|
|
87
|
-
}), [
|
|
88
|
+
}), [_createVNode(Icon, {
|
|
88
89
|
name: "mdi:volume-high"
|
|
89
|
-
}),
|
|
90
|
-
class:
|
|
91
|
-
},
|
|
92
|
-
/* TEXT, CLASS */)], 16, _hoisted_1), viewerVisible.value ? (
|
|
90
|
+
}), _createElementVNode("div", {
|
|
91
|
+
class: _normalizeClass([`${_unref(prefixCls)}-filename`])
|
|
92
|
+
}, _toDisplayString(_ctx.name), 3
|
|
93
|
+
/* TEXT, CLASS */)], 16, _hoisted_1), viewerVisible.value ? (_openBlock(), _createBlock(AudioViewer, {
|
|
93
94
|
key: 0,
|
|
94
95
|
src: _ctx.src,
|
|
95
96
|
onClose: closeViewer
|
|
96
|
-
}, null, 8, ["src"])) :
|
|
97
|
+
}, null, 8, ["src"])) : _createCommentVNode("v-if", true)], 64
|
|
97
98
|
/* STABLE_FRAGMENT */);
|
|
98
99
|
};
|
|
99
100
|
}
|
|
100
|
-
});
|
|
101
|
-
|
|
102
|
-
export { stdin_default as default };
|
|
101
|
+
});
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
import { withInstall } from '../utils
|
|
2
|
-
import
|
|
3
|
-
export
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
export { _AudioCard as AudioCard, stdin_default as default };
|
|
1
|
+
import { withInstall } from '../utils';
|
|
2
|
+
import AudioCard from './audio-card.vue';
|
|
3
|
+
export * from './audio-card';
|
|
4
|
+
const _AudioCard = withInstall(AudioCard);
|
|
5
|
+
export { _AudioCard as AudioCard };
|
|
6
|
+
export default _AudioCard;
|
|
@@ -1,19 +1,16 @@
|
|
|
1
|
-
import { getStyleHook } from '../../theme
|
|
2
|
-
import { getMediaCardFileNameStyle, getMediaCardStyle } from '../../media-card/style
|
|
3
|
-
|
|
1
|
+
import { getStyleHook } from '../../theme';
|
|
2
|
+
import { getMediaCardFileNameStyle, getMediaCardStyle, } from '../../media-card/style';
|
|
4
3
|
const getAudioCardStyle = (token) => {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
4
|
+
const { componentCls } = token;
|
|
5
|
+
return {
|
|
6
|
+
[componentCls]: {
|
|
7
|
+
...getMediaCardStyle(token),
|
|
8
|
+
...getMediaCardFileNameStyle(token),
|
|
9
|
+
cursor: 'pointer',
|
|
10
|
+
background: token.colorFillTertiary,
|
|
11
|
+
},
|
|
12
|
+
};
|
|
14
13
|
};
|
|
15
|
-
|
|
16
|
-
|
|
14
|
+
export default getStyleHook('AudioCard', (token) => {
|
|
15
|
+
return [getAudioCardStyle(token)];
|
|
17
16
|
});
|
|
18
|
-
|
|
19
|
-
export { stdin_default as default };
|
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
import { defaultMediaViewerBaseProps } from '../media-viewer/media-viewer
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
...defaultMediaViewerBaseProps
|
|
1
|
+
import { defaultMediaViewerBaseProps, } from '../media-viewer/media-viewer';
|
|
2
|
+
export const defaultAudioViewerProps = {
|
|
3
|
+
...defaultMediaViewerBaseProps,
|
|
5
4
|
};
|
|
6
|
-
|
|
7
|
-
export { defaultAudioViewerProps };
|
|
@@ -1,20 +1,21 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import ElTeleport from 'element-plus/es/components/teleport/index';
|
|
4
|
-
import ElFocusTrap from 'element-plus/es/components/focus-trap/index';
|
|
5
|
-
import { defaultAudioViewerProps } from './audio-viewer.js';
|
|
6
|
-
import { Mask as _Mask } from '../mask/index.js';
|
|
7
|
-
import { Close as _Close } from '../close/index.js';
|
|
8
|
-
import stdin_default$1 from './style/index.js';
|
|
9
|
-
import { useComponentConfig } from '../config-provider/config-provider.js';
|
|
10
|
-
|
|
1
|
+
import { mergeDefaults as _mergeDefaults, defineComponent as _defineComponent } from "vue";
|
|
2
|
+
import { unref as _unref, createVNode as _createVNode, createElementVNode as _createElementVNode, withCtx as _withCtx, normalizeClass as _normalizeClass, normalizeStyle as _normalizeStyle, Transition as _Transition, openBlock as _openBlock, createBlock as _createBlock } from "vue";
|
|
11
3
|
const _hoisted_1 = ["src"];
|
|
12
|
-
|
|
4
|
+
import { useZIndex } from "element-plus";
|
|
5
|
+
import ElTeleport from "element-plus/es/components/teleport/index";
|
|
6
|
+
import ElFocusTrap from "element-plus/es/components/focus-trap/index";
|
|
7
|
+
import { defaultAudioViewerProps } from "./audio-viewer";
|
|
8
|
+
import { onBeforeUnmount, onMounted, ref, useTemplateRef } from "vue";
|
|
9
|
+
import { Mask } from "../mask";
|
|
10
|
+
import { Close } from "../close";
|
|
11
|
+
import useStyle from "./style";
|
|
12
|
+
import { useComponentConfig } from "../config-provider";
|
|
13
|
+
export default /* @__PURE__ */_defineComponent({
|
|
13
14
|
...{
|
|
14
15
|
name: "AudioViewer"
|
|
15
16
|
},
|
|
16
17
|
__name: "audio-viewer",
|
|
17
|
-
props: /* @__PURE__ */
|
|
18
|
+
props: /* @__PURE__ */_mergeDefaults({
|
|
18
19
|
teleported: {
|
|
19
20
|
type: Boolean,
|
|
20
21
|
required: false
|
|
@@ -47,7 +48,7 @@ var stdin_default = /* @__PURE__ */defineComponent({
|
|
|
47
48
|
} = useComponentConfig("audio-viewer", props);
|
|
48
49
|
const {
|
|
49
50
|
hashId
|
|
50
|
-
} =
|
|
51
|
+
} = useStyle(prefixCls);
|
|
51
52
|
const {
|
|
52
53
|
nextZIndex
|
|
53
54
|
} = useZIndex();
|
|
@@ -74,23 +75,23 @@ var stdin_default = /* @__PURE__ */defineComponent({
|
|
|
74
75
|
audioRef.value?.pause();
|
|
75
76
|
});
|
|
76
77
|
return (_ctx, _cache) => {
|
|
77
|
-
return
|
|
78
|
+
return _openBlock(), _createBlock(_unref(ElTeleport), {
|
|
78
79
|
to: "body",
|
|
79
80
|
disabled: !_ctx.teleported
|
|
80
81
|
}, {
|
|
81
|
-
default:
|
|
82
|
+
default: _withCtx(() => [_createVNode(_Transition, {
|
|
82
83
|
name: "co-viewer-fade",
|
|
83
84
|
appear: ""
|
|
84
85
|
}, {
|
|
85
|
-
default:
|
|
86
|
+
default: _withCtx(() => [_createElementVNode("div", {
|
|
86
87
|
ref_key: "wrapper",
|
|
87
88
|
ref: wrapper,
|
|
88
89
|
tabindex: -1,
|
|
89
|
-
class:
|
|
90
|
-
style:
|
|
90
|
+
class: _normalizeClass([_unref(hashId), _unref(prefixCls)]),
|
|
91
|
+
style: _normalizeStyle({
|
|
91
92
|
zIndex: zIndex.value
|
|
92
93
|
})
|
|
93
|
-
}, [
|
|
94
|
+
}, [_createVNode(_unref(ElFocusTrap), {
|
|
94
95
|
loop: "",
|
|
95
96
|
trapped: "",
|
|
96
97
|
"focus-trap-el": wrapper.value,
|
|
@@ -98,11 +99,11 @@ var stdin_default = /* @__PURE__ */defineComponent({
|
|
|
98
99
|
onFocusoutPrevented,
|
|
99
100
|
onReleaseRequested: onCloseRequested
|
|
100
101
|
}, {
|
|
101
|
-
default:
|
|
102
|
+
default: _withCtx(() => [_createVNode(_unref(Mask), {
|
|
102
103
|
onClick: _cache[0] || (_cache[0] = $event => _ctx.hideOnClickModal && hide())
|
|
103
|
-
}),
|
|
104
|
+
}), _createVNode(_unref(Close), {
|
|
104
105
|
onClick: hide
|
|
105
|
-
}),
|
|
106
|
+
}), _createElementVNode("audio", {
|
|
106
107
|
ref: "audio",
|
|
107
108
|
controls: "",
|
|
108
109
|
src: _ctx.src
|
|
@@ -119,6 +120,4 @@ var stdin_default = /* @__PURE__ */defineComponent({
|
|
|
119
120
|
}, 8, ["disabled"]);
|
|
120
121
|
};
|
|
121
122
|
}
|
|
122
|
-
});
|
|
123
|
-
|
|
124
|
-
export { stdin_default as default };
|
|
123
|
+
});
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
import { withInstall } from '../utils
|
|
2
|
-
import
|
|
3
|
-
export
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
export { _AudioViewer as AudioViewer, stdin_default as default };
|
|
1
|
+
import { withInstall } from '../utils';
|
|
2
|
+
import AudioViewer from './audio-viewer.vue';
|
|
3
|
+
export * from './audio-viewer';
|
|
4
|
+
const _AudioViewer = withInstall(AudioViewer);
|
|
5
|
+
export { _AudioViewer as AudioViewer };
|
|
6
|
+
export default _AudioViewer;
|
|
@@ -1,22 +1,19 @@
|
|
|
1
|
-
import { getStyleHook } from '../../theme
|
|
2
|
-
|
|
1
|
+
import { getStyleHook } from '../../theme';
|
|
3
2
|
const getAudioViewerStyle = (token) => {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
3
|
+
const { componentCls } = token;
|
|
4
|
+
return {
|
|
5
|
+
[componentCls]: {
|
|
6
|
+
position: 'fixed',
|
|
7
|
+
inset: 0,
|
|
8
|
+
display: 'flex',
|
|
9
|
+
justifyContent: 'center',
|
|
10
|
+
alignItems: 'center',
|
|
11
|
+
'&:focus': {
|
|
12
|
+
outline: 'none',
|
|
13
|
+
},
|
|
14
|
+
},
|
|
15
|
+
};
|
|
17
16
|
};
|
|
18
|
-
|
|
19
|
-
|
|
17
|
+
export default getStyleHook('AudioViewer', (token) => {
|
|
18
|
+
return [getAudioViewerStyle(token)];
|
|
20
19
|
});
|
|
21
|
-
|
|
22
|
-
export { stdin_default as default };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
export {};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { defineComponent
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
import { defineComponent as _defineComponent } from "vue";
|
|
2
|
+
import { unref as _unref, createVNode as _createVNode, normalizeClass as _normalizeClass, openBlock as _openBlock, createElementBlock as _createElementBlock } from "vue";
|
|
3
|
+
import Icon from "../icon/icon.vue";
|
|
4
|
+
import useStyle from "./style";
|
|
5
|
+
import { useComponentConfig } from "../config-provider";
|
|
6
|
+
export default /* @__PURE__ */_defineComponent({
|
|
7
7
|
...{
|
|
8
8
|
name: "Close"
|
|
9
9
|
},
|
|
@@ -15,16 +15,14 @@ var stdin_default = /* @__PURE__ */defineComponent({
|
|
|
15
15
|
} = useComponentConfig("close", props);
|
|
16
16
|
const {
|
|
17
17
|
hashId
|
|
18
|
-
} =
|
|
18
|
+
} = useStyle(prefixCls);
|
|
19
19
|
return (_ctx, _cache) => {
|
|
20
|
-
return
|
|
21
|
-
class:
|
|
22
|
-
}, [
|
|
20
|
+
return _openBlock(), _createElementBlock("span", {
|
|
21
|
+
class: _normalizeClass([_unref(hashId), _unref(prefixCls)])
|
|
22
|
+
}, [_createVNode(Icon, {
|
|
23
23
|
name: "mdi:close"
|
|
24
24
|
})], 2
|
|
25
25
|
/* CLASS */);
|
|
26
26
|
};
|
|
27
27
|
}
|
|
28
|
-
});
|
|
29
|
-
|
|
30
|
-
export { stdin_default as default };
|
|
28
|
+
});
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { withInstall } from '../utils
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
const _Close = withInstall(
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
export { _Close as Close, stdin_default as default };
|
|
1
|
+
import { withInstall } from '../utils';
|
|
2
|
+
import Close from './close.vue';
|
|
3
|
+
export * from './close';
|
|
4
|
+
const _Close = withInstall(Close);
|
|
5
|
+
export { _Close as Close };
|
|
6
|
+
export default _Close;
|
|
@@ -1,31 +1,28 @@
|
|
|
1
|
-
import { getStyleHook } from '../../theme
|
|
2
|
-
|
|
1
|
+
import { getStyleHook } from '../../theme';
|
|
3
2
|
const getCloseStyle = (token) => {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
3
|
+
const { componentCls } = token;
|
|
4
|
+
return {
|
|
5
|
+
[componentCls]: {
|
|
6
|
+
position: 'absolute',
|
|
7
|
+
top: 40,
|
|
8
|
+
right: 40,
|
|
9
|
+
zIndex: 10,
|
|
10
|
+
boxSizing: 'border-box',
|
|
11
|
+
display: 'flex',
|
|
12
|
+
width: 44,
|
|
13
|
+
height: 44,
|
|
14
|
+
justifyContent: 'center',
|
|
15
|
+
alignItems: 'center',
|
|
16
|
+
fontSize: token.fontSizeHeading3,
|
|
17
|
+
color: token.colorWhite,
|
|
18
|
+
borderRadius: '50%',
|
|
19
|
+
backgroundColor: token.colorTextSecondary,
|
|
20
|
+
opacity: 0.8,
|
|
21
|
+
cursor: 'pointer',
|
|
22
|
+
userSelect: 'none',
|
|
23
|
+
},
|
|
24
|
+
};
|
|
26
25
|
};
|
|
27
|
-
|
|
28
|
-
|
|
26
|
+
export default getStyleHook('Close', (token) => {
|
|
27
|
+
return [getCloseStyle(token)];
|
|
29
28
|
});
|
|
30
|
-
|
|
31
|
-
export { stdin_default as default };
|
package/components/col/col.js
CHANGED
|
@@ -1,11 +1,8 @@
|
|
|
1
|
-
import { rowColumns } from '../row
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
push: 0
|
|
1
|
+
import { rowColumns } from '../row';
|
|
2
|
+
export const defaultColProps = {
|
|
3
|
+
tag: 'div',
|
|
4
|
+
span: rowColumns,
|
|
5
|
+
offset: 0,
|
|
6
|
+
pull: 0,
|
|
7
|
+
push: 0,
|
|
9
8
|
};
|
|
10
|
-
|
|
11
|
-
export { defaultColProps };
|
|
@@ -1,16 +1,17 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
import { mergeDefaults as _mergeDefaults, defineComponent as _defineComponent } from "vue";
|
|
2
|
+
import { renderSlot as _renderSlot, resolveDynamicComponent as _resolveDynamicComponent, normalizeClass as _normalizeClass, normalizeStyle as _normalizeStyle, withCtx as _withCtx, openBlock as _openBlock, createBlock as _createBlock } from "vue";
|
|
3
|
+
import { computed, inject } from "vue";
|
|
4
|
+
import { defaultColProps } from "./col";
|
|
5
|
+
import { rowContextSymbol, rowSizes } from "../row";
|
|
6
|
+
import { isNumber, isObject } from "../../utils";
|
|
7
|
+
import useStyle from "./style";
|
|
8
|
+
import { useComponentConfig } from "../config-provider";
|
|
9
|
+
export default /* @__PURE__ */_defineComponent({
|
|
9
10
|
...{
|
|
10
11
|
name: "Col"
|
|
11
12
|
},
|
|
12
13
|
__name: "col",
|
|
13
|
-
props: /* @__PURE__ */
|
|
14
|
+
props: /* @__PURE__ */_mergeDefaults({
|
|
14
15
|
tag: {
|
|
15
16
|
type: String,
|
|
16
17
|
required: false
|
|
@@ -63,7 +64,7 @@ var stdin_default = /* @__PURE__ */defineComponent({
|
|
|
63
64
|
} = useComponentConfig("col", props);
|
|
64
65
|
const {
|
|
65
66
|
hashId
|
|
66
|
-
} =
|
|
67
|
+
} = useStyle(prefixCls);
|
|
67
68
|
const rowContext = inject(rowContextSymbol, {
|
|
68
69
|
gutter: 0,
|
|
69
70
|
currentSize: "xs"
|
|
@@ -111,16 +112,14 @@ var stdin_default = /* @__PURE__ */defineComponent({
|
|
|
111
112
|
return styles;
|
|
112
113
|
});
|
|
113
114
|
return (_ctx, _cache) => {
|
|
114
|
-
return
|
|
115
|
-
class:
|
|
116
|
-
style:
|
|
115
|
+
return _openBlock(), _createBlock(_resolveDynamicComponent(_ctx.tag), {
|
|
116
|
+
class: _normalizeClass(colClass.value),
|
|
117
|
+
style: _normalizeStyle(colStyle.value)
|
|
117
118
|
}, {
|
|
118
|
-
default:
|
|
119
|
+
default: _withCtx(() => [_renderSlot(_ctx.$slots, "default")]),
|
|
119
120
|
_: 3
|
|
120
121
|
/* FORWARDED */
|
|
121
122
|
}, 8, ["class", "style"]);
|
|
122
123
|
};
|
|
123
124
|
}
|
|
124
|
-
});
|
|
125
|
-
|
|
126
|
-
export { stdin_default as default };
|
|
125
|
+
});
|
package/components/col/index.js
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
import { withInstall } from '../utils
|
|
2
|
-
import
|
|
3
|
-
export
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
export { _Col as Col, stdin_default as default };
|
|
1
|
+
import { withInstall } from '../utils';
|
|
2
|
+
import Col from './col.vue';
|
|
3
|
+
export * from './col';
|
|
4
|
+
const _Col = withInstall(Col);
|
|
5
|
+
export { _Col as Col };
|
|
6
|
+
export default _Col;
|
|
@@ -1,58 +1,58 @@
|
|
|
1
|
-
import { getStyleHook } from '../../theme
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
const
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
1
|
+
import { getStyleHook } from '../../theme';
|
|
2
|
+
import { rowColumns, rowSizes } from '../../row';
|
|
3
|
+
export const getColSizeStyle = (token, size) => {
|
|
4
|
+
const { componentCls } = token;
|
|
5
|
+
return Array(rowColumns)
|
|
6
|
+
.fill(0)
|
|
7
|
+
.map((_, i) => {
|
|
8
|
+
i += 1;
|
|
9
|
+
const sizeFrag = size === null ? '' : `${size}-`;
|
|
10
|
+
const prefixCls = size === null ? componentCls : `${componentCls}-${size}${componentCls}`;
|
|
11
|
+
return {
|
|
12
|
+
[`${prefixCls}-${sizeFrag}${i}`]: {
|
|
13
|
+
display: i === 0 ? 'none' : 'block',
|
|
14
|
+
maxWidth: (1 / rowColumns) * i * 100 + '%',
|
|
15
|
+
flex: `0 0 ${(1 / rowColumns) * i * 100 + '%'}`,
|
|
16
|
+
'&-guttered': {
|
|
17
|
+
display: i === 0 ? 'none' : 'block',
|
|
18
|
+
},
|
|
19
|
+
},
|
|
20
|
+
[`${prefixCls}-${sizeFrag}offset-${i}`]: {
|
|
21
|
+
marginLeft: (1 / rowColumns) * i * 100 + '%',
|
|
22
|
+
},
|
|
23
|
+
[`${prefixCls}-${sizeFrag}pull-${i}`]: {
|
|
24
|
+
position: 'relative',
|
|
25
|
+
right: (1 / rowColumns) * i * 100 + '%',
|
|
26
|
+
},
|
|
27
|
+
[`${prefixCls}-${sizeFrag}push-${i}`]: {
|
|
28
|
+
position: 'relative',
|
|
29
|
+
right: (1 / rowColumns) * i * 100 + '%',
|
|
30
|
+
},
|
|
31
|
+
};
|
|
32
|
+
})
|
|
33
|
+
.reduce((mergedCssbject, cssbject) => {
|
|
34
|
+
return {
|
|
35
|
+
...mergedCssbject,
|
|
36
|
+
...cssbject,
|
|
37
|
+
};
|
|
38
|
+
}, {});
|
|
37
39
|
};
|
|
38
40
|
const getColStyle = (token) => {
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
41
|
+
const { componentCls } = token;
|
|
42
|
+
const sizes = [null, ...rowSizes];
|
|
43
|
+
return {
|
|
44
|
+
[componentCls]: {
|
|
45
|
+
position: 'relative',
|
|
46
|
+
boxSizing: 'border-box',
|
|
47
|
+
},
|
|
48
|
+
...sizes.reduce((obj, size) => {
|
|
49
|
+
return {
|
|
50
|
+
...obj,
|
|
51
|
+
...getColSizeStyle(token, size),
|
|
52
|
+
};
|
|
53
|
+
}, {}),
|
|
54
|
+
};
|
|
53
55
|
};
|
|
54
|
-
|
|
55
|
-
|
|
56
|
+
export default getStyleHook('Col', (token) => {
|
|
57
|
+
return [getColStyle(token)];
|
|
56
58
|
});
|
|
57
|
-
|
|
58
|
-
export { stdin_default as default, getColSizeStyle };
|