@fangzhongya/fang-ui 0.0.96 → 0.0.98
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/dist/components/alert/style/element.scss +2 -0
- package/dist/components/alert/style/index2.scss +0 -2
- package/dist/components/audios/index.cjs +9 -0
- package/dist/components/audios/index.css +52 -0
- package/dist/components/audios/index.d.ts +4 -0
- package/dist/components/audios/index.js +9 -0
- package/dist/components/audios/index.scss +49 -0
- package/dist/components/audios/src/data.cjs +27 -0
- package/dist/components/audios/src/data.d.ts +46 -0
- package/dist/components/audios/src/data.js +27 -0
- package/dist/components/audios/src/index.cjs +4 -0
- package/dist/components/audios/src/index.js +4 -0
- package/dist/components/audios/src/index2.cjs +238 -0
- package/dist/components/audios/src/index2.js +238 -0
- package/dist/components/audios/style/index2.scss +3 -0
- package/dist/components/autocomplete/style/element.scss +3 -1
- package/dist/components/autocomplete/style/index2.scss +0 -2
- package/dist/components/button/style/element.scss +2 -0
- package/dist/components/button/style/index2.scss +0 -2
- package/dist/components/card/style/element.scss +2 -0
- package/dist/components/card/style/index2.scss +0 -2
- package/dist/components/cascader/style/element.scss +3 -1
- package/dist/components/cascader/style/index2.scss +0 -2
- package/dist/components/cascader-panel/style/element.scss +3 -1
- package/dist/components/cascader-panel/style/index2.scss +0 -2
- package/dist/components/checkbox/style/element.scss +2 -0
- package/dist/components/checkbox/style/index2.scss +0 -2
- package/dist/components/checkbox-button/style/element.scss +2 -0
- package/dist/components/checkbox-button/style/index2.scss +0 -3
- package/dist/components/checkbox-group/style/element.scss +3 -1
- package/dist/components/checkbox-group/style/index2.scss +0 -3
- package/dist/components/collapse/style/element.scss +2 -0
- package/dist/components/collapse/style/index2.scss +0 -2
- package/dist/components/collapse-item/style/element.scss +2 -0
- package/dist/components/collapse-item/style/index2.scss +0 -3
- package/dist/components/color-picker/style/element.scss +3 -1
- package/dist/components/color-picker/style/index2.scss +0 -2
- package/dist/components/common/compons.cjs +46 -44
- package/dist/components/common/compons.js +3 -1
- package/dist/components/common/compons.scss +2 -0
- package/dist/components/common/compons2.scss +2 -0
- package/dist/components/config-provider/style/element.scss +2 -0
- package/dist/components/config-provider/style/index2.scss +0 -2
- package/dist/components/date-picker/style/element.scss +2 -0
- package/dist/components/date-picker/style/index2.scss +0 -2
- package/dist/components/date-picker-panel/style/element.scss +3 -1
- package/dist/components/date-picker-panel/style/index2.scss +0 -2
- package/dist/components/dates2/index.css +1 -1
- package/dist/components/dialog/style/element.scss +3 -1
- package/dist/components/dialog/style/index2.scss +0 -2
- package/dist/components/divider/style/element.scss +2 -0
- package/dist/components/divider/style/index2.scss +0 -2
- package/dist/components/drawer/style/element.scss +3 -1
- package/dist/components/drawer/style/index2.scss +0 -2
- package/dist/components/dropdown/style/element.scss +3 -1
- package/dist/components/dropdown/style/index2.scss +0 -2
- package/dist/components/dropdown-item/style/element.scss +2 -0
- package/dist/components/dropdown-item/style/index2.scss +0 -3
- package/dist/components/dropdown-menu/style/element.scss +2 -0
- package/dist/components/dropdown-menu/style/index2.scss +0 -3
- package/dist/components/form/style/element.scss +2 -0
- package/dist/components/form/style/index2.scss +0 -2
- package/dist/components/form-item/style/element.scss +2 -0
- package/dist/components/form-item/style/index2.scss +0 -3
- package/dist/components/forms/index.css +86 -1
- package/dist/components/forms/style/index2.scss +2 -2
- package/dist/components/full-screen/index.cjs +9 -0
- package/dist/components/full-screen/index.css +25 -0
- package/dist/components/full-screen/index.d.ts +4 -0
- package/dist/components/full-screen/index.js +9 -0
- package/dist/components/full-screen/index.scss +14 -0
- package/dist/components/full-screen/src/data.cjs +29 -0
- package/dist/components/full-screen/src/data.d.ts +35 -0
- package/dist/components/full-screen/src/data.js +29 -0
- package/dist/components/full-screen/src/index.cjs +4 -0
- package/dist/components/full-screen/src/index.js +4 -0
- package/dist/components/full-screen/src/index2.cjs +54 -0
- package/dist/components/full-screen/src/index2.js +54 -0
- package/dist/components/image/style/element.scss +3 -1
- package/dist/components/image/style/index2.scss +0 -2
- package/dist/components/image-viewer/index.cjs +9 -0
- package/dist/components/image-viewer/index.d.ts +4 -0
- package/dist/components/image-viewer/index.js +9 -0
- package/dist/components/image-viewer/index.scss +5 -0
- package/dist/components/image-viewer/src/data.cjs +11 -0
- package/dist/components/image-viewer/src/data.d.ts +14 -0
- package/dist/components/image-viewer/src/data.js +11 -0
- package/dist/components/image-viewer/src/index.cjs +4 -0
- package/dist/components/image-viewer/src/index.js +4 -0
- package/dist/components/image-viewer/src/index2.cjs +45 -0
- package/dist/components/image-viewer/src/index2.js +45 -0
- package/dist/components/image-viewer/style/element.scss +2 -0
- package/dist/components/image-viewer/style/index2.scss +2 -0
- package/dist/components/images/index.css +18 -0
- package/dist/components/images/index.scss +4 -0
- package/dist/components/images/src/data.cjs +9 -2
- package/dist/components/images/src/data.d.ts +12 -7
- package/dist/components/images/src/data.js +9 -2
- package/dist/components/images/src/index2.cjs +14 -15
- package/dist/components/images/src/index2.js +14 -15
- package/dist/components/index.cjs +264 -252
- package/dist/components/index.d.ts +8 -2
- package/dist/components/index.js +14 -2
- package/dist/components/index.scss +8 -2
- package/dist/components/index2.scss +8 -2
- package/dist/components/input/style/element.scss +2 -0
- package/dist/components/input/style/index2.scss +0 -2
- package/dist/components/input-number/style/element.scss +3 -1
- package/dist/components/input-number/style/index2.scss +0 -2
- package/dist/components/input-tag/style/element.scss +3 -1
- package/dist/components/input-tag/style/index2.scss +0 -2
- package/dist/components/labels/index.css +1 -1
- package/dist/components/loading/style/element.scss +2 -0
- package/dist/components/mention/style/element.scss +3 -1
- package/dist/components/mention/style/index2.scss +0 -2
- package/dist/components/menu/style/element.scss +3 -1
- package/dist/components/menu/style/index2.scss +0 -2
- package/dist/components/menu-item/style/element.scss +2 -0
- package/dist/components/menu-item/style/index2.scss +0 -3
- package/dist/components/menu-item-group/style/element.scss +2 -0
- package/dist/components/menu-item-group/style/index2.scss +0 -3
- package/dist/components/message/style/element.scss +3 -1
- package/dist/components/message-box/style/element.scss +3 -1
- package/dist/components/option/style/element.scss +2 -0
- package/dist/components/option-group/style/element.scss +2 -0
- package/dist/components/option-group/style/index2.scss +0 -3
- package/dist/components/page/index.css +86 -1
- package/dist/components/pagination/style/element.scss +3 -1
- package/dist/components/pagination/style/index2.scss +0 -2
- package/dist/components/players/common/util.cjs +25 -0
- package/dist/components/players/common/util.d.ts +8 -0
- package/dist/components/players/common/util.js +25 -0
- package/dist/components/popconfirm/style/element.scss +3 -1
- package/dist/components/popconfirm/style/index2.scss +0 -2
- package/dist/components/popover/style/element.scss +3 -1
- package/dist/components/popover/style/index2.scss +0 -2
- package/dist/components/radio/style/element.scss +2 -0
- package/dist/components/radio/style/index2.scss +0 -2
- package/dist/components/radio-button/style/element.scss +2 -0
- package/dist/components/radio-button/style/index2.scss +0 -3
- package/dist/components/radio-group/style/element.scss +3 -1
- package/dist/components/radio-group/style/index2.scss +0 -3
- package/dist/components/scrollbar/style/element.scss +2 -0
- package/dist/components/scrollbar/style/index2.scss +0 -2
- package/dist/components/scss/function.scss +4 -0
- package/dist/components/select/style/element.scss +3 -1
- package/dist/components/select/style/index2.scss +0 -2
- package/dist/components/selects/index.css +1 -1
- package/dist/components/selects/index.scss +1 -1
- package/dist/components/selects/src/index2.cjs +13 -11
- package/dist/components/selects/src/index2.js +3 -1
- package/dist/components/slider/style/element.scss +3 -1
- package/dist/components/slider/style/index2.scss +0 -2
- package/dist/components/sliders/index.cjs +9 -0
- package/dist/components/sliders/index.css +42 -0
- package/dist/components/sliders/index.d.ts +4 -0
- package/dist/components/sliders/index.js +9 -0
- package/dist/components/sliders/index.scss +34 -0
- package/dist/components/sliders/src/data.cjs +42 -0
- package/dist/components/sliders/src/data.d.ts +45 -0
- package/dist/components/sliders/src/data.js +42 -0
- package/dist/components/sliders/src/index.cjs +4 -0
- package/dist/components/sliders/src/index.js +4 -0
- package/dist/components/sliders/src/index2.cjs +67 -0
- package/dist/components/sliders/src/index2.js +67 -0
- package/dist/components/sliders/style/index2.scss +2 -0
- package/dist/components/sub-menu/style/element.scss +2 -0
- package/dist/components/switch/style/element.scss +2 -0
- package/dist/components/switch/style/index2.scss +0 -2
- package/dist/components/tab-pane/style/element.scss +2 -0
- package/dist/components/tab-pane/style/index2.scss +0 -3
- package/dist/components/table/style/element.scss +3 -1
- package/dist/components/table/style/index2.scss +0 -2
- package/dist/components/table-column/style/element.scss +3 -1
- package/dist/components/table-column/style/index2.scss +0 -3
- package/dist/components/tabs/style/element.scss +2 -0
- package/dist/components/tabs/style/index2.scss +0 -2
- package/dist/components/tag/style/element.scss +2 -0
- package/dist/components/tag/style/index2.scss +0 -2
- package/dist/components/text/style/element.scss +2 -0
- package/dist/components/text/style/index2.scss +0 -2
- package/dist/components/time-picker/style/element.scss +3 -1
- package/dist/components/time-picker/style/index2.scss +0 -2
- package/dist/components/time-select/style/element.scss +3 -1
- package/dist/components/time-select/style/index2.scss +0 -2
- package/dist/components/tooltip/style/element.scss +3 -1
- package/dist/components/tooltip/style/index2.scss +0 -2
- package/dist/components/transfer/style/element.scss +3 -1
- package/dist/components/transfer/style/index2.scss +0 -2
- package/dist/components/tree/style/element.scss +3 -1
- package/dist/components/tree/style/index2.scss +0 -2
- package/dist/components/tree-select/style/element.scss +2 -1
- package/dist/components/tree-select/style/index2.scss +0 -2
- package/dist/components/upload/style/element.scss +3 -1
- package/dist/components/upload/style/index2.scss +0 -2
- package/dist/components/uploads/index.cjs +9 -0
- package/dist/components/uploads/index.css +93 -0
- package/dist/components/uploads/index.d.ts +4 -0
- package/dist/components/uploads/index.js +9 -0
- package/dist/components/uploads/index.scss +84 -0
- package/dist/components/uploads/src/data.cjs +111 -0
- package/dist/components/uploads/src/data.d.ts +142 -0
- package/dist/components/uploads/src/data.js +111 -0
- package/dist/components/uploads/src/index.cjs +4 -0
- package/dist/components/uploads/src/index.js +4 -0
- package/dist/components/uploads/src/index2.cjs +417 -0
- package/dist/components/uploads/src/index2.js +417 -0
- package/dist/components/uploads/style/index2.scss +7 -0
- package/dist/components/videos/index.cjs +9 -0
- package/dist/components/videos/index.css +122 -0
- package/dist/components/videos/index.d.ts +4 -0
- package/dist/components/videos/index.js +9 -0
- package/dist/components/videos/index.scss +115 -0
- package/dist/components/videos/src/data.cjs +30 -0
- package/dist/components/videos/src/data.d.ts +49 -0
- package/dist/components/videos/src/data.js +30 -0
- package/dist/components/videos/src/index.cjs +4 -0
- package/dist/components/videos/src/index.js +4 -0
- package/dist/components/videos/src/index2.cjs +399 -0
- package/dist/components/videos/src/index2.js +399 -0
- package/dist/components/videos/style/index2.scss +5 -0
- package/dist/css/audios.css +52 -0
- package/dist/css/dates2.css +1 -1
- package/dist/css/forms.css +86 -1
- package/dist/css/full-screen.css +25 -0
- package/dist/css/images.css +18 -0
- package/dist/css/index.css +275 -1
- package/dist/css/labels.css +1 -1
- package/dist/css/page.css +86 -1
- package/dist/css/selects.css +1 -1
- package/dist/css/sliders.css +42 -0
- package/dist/css/uploads.css +93 -0
- package/dist/css/videos.css +122 -0
- package/dist/directives/index.cjs +10 -8
- package/dist/directives/index.d.ts +1 -0
- package/dist/directives/index.js +8 -6
- package/dist/directives/inserted/index.cjs +22 -0
- package/dist/directives/inserted/index.d.ts +7 -0
- package/dist/directives/inserted/index.js +22 -0
- package/dist/expand/{chunk-YQJPHB3B.cjs → chunk-IEODUGVJ.cjs} +17 -4
- package/dist/expand/{chunk-BPL5WRRH.js → chunk-XY53LCPN.js} +17 -4
- package/dist/expand/components.cjs +5 -5
- package/dist/expand/components.js +1 -1
- package/dist/expand/config.cjs +2 -2
- package/dist/expand/config.js +1 -1
- package/dist/hooks/full-screen/index.cjs +79 -0
- package/dist/hooks/full-screen/index.d.ts +7 -0
- package/dist/hooks/full-screen/index.js +79 -0
- package/dist/hooks/index.cjs +16 -12
- package/dist/hooks/index.d.ts +3 -1
- package/dist/hooks/index.js +5 -1
- package/dist/icons/index.css +155 -31
- package/dist/icons/index.json +65 -5
- package/dist/icons/vue/below.cjs +1 -2
- package/dist/icons/vue/below.js +1 -2
- package/dist/icons/vue/catalogue.cjs +25 -0
- package/dist/icons/vue/catalogue.js +25 -0
- package/dist/icons/vue/catalogue2.cjs +6 -0
- package/dist/icons/vue/catalogue2.js +6 -0
- package/dist/icons/vue/clear.cjs +1 -2
- package/dist/icons/vue/clear.js +1 -2
- package/dist/icons/vue/delete.cjs +20 -0
- package/dist/icons/vue/delete.js +20 -0
- package/dist/icons/vue/delete2.cjs +6 -0
- package/dist/icons/vue/delete2.js +6 -0
- package/dist/icons/vue/document.cjs +25 -0
- package/dist/icons/vue/document.js +25 -0
- package/dist/icons/vue/document2.cjs +6 -0
- package/dist/icons/vue/document2.js +6 -0
- package/dist/icons/vue/down.cjs +20 -0
- package/dist/icons/vue/down.js +20 -0
- package/dist/icons/vue/down2.cjs +6 -0
- package/dist/icons/vue/down2.js +6 -0
- package/dist/icons/vue/download.cjs +20 -0
- package/dist/icons/vue/download.js +20 -0
- package/dist/icons/vue/download2.cjs +6 -0
- package/dist/icons/vue/download2.js +6 -0
- package/dist/icons/vue/enter.cjs +21 -0
- package/dist/icons/vue/enter.js +21 -0
- package/dist/icons/vue/enter2.cjs +6 -0
- package/dist/icons/vue/enter2.js +6 -0
- package/dist/icons/vue/index.cjs +28 -0
- package/dist/icons/vue/index.d.ts +14 -0
- package/dist/icons/vue/index.js +42 -14
- package/dist/icons/vue/left.cjs +1 -2
- package/dist/icons/vue/left.js +1 -2
- package/dist/icons/vue/mute.cjs +20 -0
- package/dist/icons/vue/mute.js +20 -0
- package/dist/icons/vue/mute2.cjs +6 -0
- package/dist/icons/vue/mute2.js +6 -0
- package/dist/icons/vue/pause.cjs +26 -0
- package/dist/icons/vue/pause.js +26 -0
- package/dist/icons/vue/pause2.cjs +6 -0
- package/dist/icons/vue/pause2.js +6 -0
- package/dist/icons/vue/play.cjs +21 -0
- package/dist/icons/vue/play.js +21 -0
- package/dist/icons/vue/play2.cjs +6 -0
- package/dist/icons/vue/play2.js +6 -0
- package/dist/icons/vue/plus.cjs +20 -0
- package/dist/icons/vue/plus.js +20 -0
- package/dist/icons/vue/plus2.cjs +6 -0
- package/dist/icons/vue/plus2.js +6 -0
- package/dist/icons/vue/retreat.cjs +21 -0
- package/dist/icons/vue/retreat.js +21 -0
- package/dist/icons/vue/retreat2.cjs +6 -0
- package/dist/icons/vue/retreat2.js +6 -0
- package/dist/icons/vue/sound.cjs +24 -0
- package/dist/icons/vue/sound.js +24 -0
- package/dist/icons/vue/sound2.cjs +6 -0
- package/dist/icons/vue/sound2.js +6 -0
- package/dist/icons/vue/up.cjs +20 -0
- package/dist/icons/vue/up.js +20 -0
- package/dist/icons/vue/up2.cjs +6 -0
- package/dist/icons/vue/up2.js +6 -0
- package/dist/icons/vue/views.cjs +20 -0
- package/dist/icons/vue/views.js +20 -0
- package/dist/icons/vue/views2.cjs +6 -0
- package/dist/icons/vue/views2.js +6 -0
- package/dist/index.cjs +285 -271
- package/dist/index.css +275 -1
- package/dist/index.js +22 -8
- package/dist/locale/zh-cn.cjs +17 -0
- package/dist/locale/zh-cn.d.ts +17 -0
- package/dist/locale/zh-cn.js +17 -0
- package/package.json +12 -12
- /package/dist/components/{checkbox → alert}/index.css +0 -0
- /package/dist/css/{checkbox.css → alert.css} +0 -0
|
@@ -0,0 +1,417 @@
|
|
|
1
|
+
import { defineComponent, ref, useAttrs, computed, reactive, createElementBlock, openBlock, mergeProps, unref, createElementVNode, createBlock, createCommentVNode, normalizeClass, Fragment, renderList, renderSlot, createVNode, withCtx, toDisplayString } from "vue";
|
|
2
|
+
import Document from "../../../icons/vue/document.js";
|
|
3
|
+
import Download from "../../../icons/vue/download.js";
|
|
4
|
+
import Plus from "../../../icons/vue/plus.js";
|
|
5
|
+
import Views from "../../../icons/vue/views.js";
|
|
6
|
+
import Delete from "../../../icons/vue/delete.js";
|
|
7
|
+
import { Icon } from "../../icon/index.js";
|
|
8
|
+
import { Upload } from "../../upload/index.js";
|
|
9
|
+
import { Message } from "../../message/index.js";
|
|
10
|
+
import { Image } from "../../image/index.js";
|
|
11
|
+
import { ImageViewer } from "../../image-viewer/index.js";
|
|
12
|
+
import { useInherit } from "../../../hooks/inherit/index.js";
|
|
13
|
+
import { useCssName } from "../../../hooks/cssname/index.js";
|
|
14
|
+
import { useExpose } from "../../../hooks/expose/index.js";
|
|
15
|
+
import { dataHandle, types, dataSlot, dataEmits, dataProps } from "./data.js";
|
|
16
|
+
import { useLocale } from "../../../hooks/locale/index.js";
|
|
17
|
+
import { getUrlCatalogueObj } from "@fangzhongya/utils/urls/getUrlCatalogueObj";
|
|
18
|
+
import { downloadFromURL } from "@fangzhongya/utils/window/download";
|
|
19
|
+
import { getListValue } from "../../players/common/util.js";
|
|
20
|
+
const _hoisted_1 = ["title"];
|
|
21
|
+
const _hoisted_2 = ["onClick", "title"];
|
|
22
|
+
const _hoisted_3 = ["onClick", "title"];
|
|
23
|
+
const _hoisted_4 = ["onClick", "title"];
|
|
24
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
25
|
+
...{ inheritAttrs: false },
|
|
26
|
+
__name: "index",
|
|
27
|
+
props: dataProps,
|
|
28
|
+
emits: dataEmits,
|
|
29
|
+
setup(__props, { expose: __expose, emit: __emit }) {
|
|
30
|
+
const { getLocale } = useLocale();
|
|
31
|
+
const refEl = ref();
|
|
32
|
+
const elRef = ref();
|
|
33
|
+
const attrs = useInherit(useAttrs());
|
|
34
|
+
const cs = useCssName("uploads");
|
|
35
|
+
const props = __props;
|
|
36
|
+
const emit = __emit;
|
|
37
|
+
const listFuObj = dataHandle(props, emit);
|
|
38
|
+
const value = listFuObj.value;
|
|
39
|
+
const multiple = listFuObj.multiple;
|
|
40
|
+
const isloading = ref(false);
|
|
41
|
+
const accept = computed(() => {
|
|
42
|
+
if (props.accept) {
|
|
43
|
+
return props.accept;
|
|
44
|
+
} else {
|
|
45
|
+
if (props.type) {
|
|
46
|
+
const s = types[props.type];
|
|
47
|
+
if (s) {
|
|
48
|
+
return s.join(",");
|
|
49
|
+
} else if (props.type.startsWith("i")) {
|
|
50
|
+
return "image/*";
|
|
51
|
+
} else if (props.type.startsWith("a")) {
|
|
52
|
+
return "audio/*";
|
|
53
|
+
} else if (props.type.startsWith("v")) {
|
|
54
|
+
return "video/*";
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
return "";
|
|
58
|
+
}
|
|
59
|
+
});
|
|
60
|
+
const getExtension = (fileName) => {
|
|
61
|
+
const extension = fileName.toLowerCase();
|
|
62
|
+
if (extension) {
|
|
63
|
+
const ks = Object.keys(types);
|
|
64
|
+
for (let index = 0; index < ks.length; index++) {
|
|
65
|
+
const key = ks[index];
|
|
66
|
+
if (types[key].includes(extension)) {
|
|
67
|
+
return key;
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
return "";
|
|
72
|
+
};
|
|
73
|
+
const getType = (accept2 = "") => {
|
|
74
|
+
if (accept2) {
|
|
75
|
+
if (accept2.includes("image/")) {
|
|
76
|
+
return "i";
|
|
77
|
+
} else if (accept2.includes("audio/")) {
|
|
78
|
+
return "a";
|
|
79
|
+
} else if (accept2.includes("video/")) {
|
|
80
|
+
return "v";
|
|
81
|
+
} else {
|
|
82
|
+
const extension = accept2.toLowerCase().split(",")[0];
|
|
83
|
+
return getExtension(extension);
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
return "";
|
|
87
|
+
};
|
|
88
|
+
const type = computed(() => {
|
|
89
|
+
return props.type ?? getType(accept.value);
|
|
90
|
+
});
|
|
91
|
+
const getListType = (obj) => {
|
|
92
|
+
if (props.type) {
|
|
93
|
+
return props.type;
|
|
94
|
+
}
|
|
95
|
+
if (obj) {
|
|
96
|
+
if (obj.type) {
|
|
97
|
+
return obj.type;
|
|
98
|
+
} else {
|
|
99
|
+
let v = getUrlCatalogueObj(obj.url);
|
|
100
|
+
if (v.suffix) {
|
|
101
|
+
return getExtension("." + v.suffix);
|
|
102
|
+
}
|
|
103
|
+
return getType(accept.value);
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
return "";
|
|
107
|
+
};
|
|
108
|
+
const getFileList = (arr) => {
|
|
109
|
+
if (props.formatter) {
|
|
110
|
+
return arr.map((v) => {
|
|
111
|
+
return props.formatter(v);
|
|
112
|
+
});
|
|
113
|
+
} else {
|
|
114
|
+
return getListValue(arr);
|
|
115
|
+
}
|
|
116
|
+
};
|
|
117
|
+
const fileList = computed(() => {
|
|
118
|
+
if (value.value instanceof Array) {
|
|
119
|
+
return getFileList(value.value);
|
|
120
|
+
} else {
|
|
121
|
+
if (value.value) {
|
|
122
|
+
return getFileList([value.value]);
|
|
123
|
+
}
|
|
124
|
+
return [];
|
|
125
|
+
}
|
|
126
|
+
});
|
|
127
|
+
const isUp = computed(() => {
|
|
128
|
+
if (props.disabled) {
|
|
129
|
+
return false;
|
|
130
|
+
}
|
|
131
|
+
if (multiple.value) {
|
|
132
|
+
if (!value.value) {
|
|
133
|
+
return true;
|
|
134
|
+
}
|
|
135
|
+
if (props.limit) {
|
|
136
|
+
if (value.value && value.value.length < props.limit) {
|
|
137
|
+
return true;
|
|
138
|
+
} else {
|
|
139
|
+
return false;
|
|
140
|
+
}
|
|
141
|
+
} else {
|
|
142
|
+
return true;
|
|
143
|
+
}
|
|
144
|
+
} else {
|
|
145
|
+
if (value.value) {
|
|
146
|
+
return false;
|
|
147
|
+
} else {
|
|
148
|
+
return true;
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
});
|
|
152
|
+
const views = reactive({
|
|
153
|
+
show: false,
|
|
154
|
+
value: void 0
|
|
155
|
+
});
|
|
156
|
+
const getIsViews = (item) => {
|
|
157
|
+
if (props.isViews) {
|
|
158
|
+
if (typeof props.isViews === "boolean") {
|
|
159
|
+
return true;
|
|
160
|
+
} else {
|
|
161
|
+
const type2 = getListType(item);
|
|
162
|
+
if (props.isViews.includes(type2)) {
|
|
163
|
+
return true;
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
return false;
|
|
168
|
+
};
|
|
169
|
+
const onDownload = (item, index) => {
|
|
170
|
+
if (props.onDownload) {
|
|
171
|
+
props.onDownload(item, index);
|
|
172
|
+
} else {
|
|
173
|
+
downloadFromURL(item.url);
|
|
174
|
+
}
|
|
175
|
+
};
|
|
176
|
+
const onViews = (item, index) => {
|
|
177
|
+
views.value = item;
|
|
178
|
+
views.show = true;
|
|
179
|
+
emit("views", item, index);
|
|
180
|
+
};
|
|
181
|
+
const onDelete = (item, index) => {
|
|
182
|
+
if (props.onDelete) {
|
|
183
|
+
props.onDelete(
|
|
184
|
+
(is) => {
|
|
185
|
+
if (is) {
|
|
186
|
+
if (multiple.value) {
|
|
187
|
+
value.value.splice(index, 1);
|
|
188
|
+
} else {
|
|
189
|
+
value.value = "";
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
},
|
|
193
|
+
item,
|
|
194
|
+
index
|
|
195
|
+
);
|
|
196
|
+
} else {
|
|
197
|
+
if (multiple.value) {
|
|
198
|
+
value.value.splice(index, 1);
|
|
199
|
+
} else {
|
|
200
|
+
value.value = "";
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
};
|
|
204
|
+
const errorPrompt = (ts, num) => {
|
|
205
|
+
if (props.errorPrompt) {
|
|
206
|
+
props.errorPrompt(ts, num);
|
|
207
|
+
} else {
|
|
208
|
+
Message.error(ts);
|
|
209
|
+
}
|
|
210
|
+
};
|
|
211
|
+
const onBeforeUpload = (file) => {
|
|
212
|
+
const fileName = file.name.toLowerCase();
|
|
213
|
+
const ext = fileName.includes(".") ? fileName.split(".").pop() : "";
|
|
214
|
+
let is = true;
|
|
215
|
+
if (accept.value) {
|
|
216
|
+
if (!ext) {
|
|
217
|
+
const ts = getLocale("upload.error.name", file.name);
|
|
218
|
+
errorPrompt(ts, 1);
|
|
219
|
+
is = false;
|
|
220
|
+
}
|
|
221
|
+
const allowedExts = accept.value.split(",").map((ext2) => ext2.trim().toLowerCase());
|
|
222
|
+
if (!allowedExts.includes(`.${ext}`)) {
|
|
223
|
+
const ts = getLocale(
|
|
224
|
+
"upload.error.format",
|
|
225
|
+
getLocale("upload.type." + type.value),
|
|
226
|
+
accept.value,
|
|
227
|
+
file.name
|
|
228
|
+
);
|
|
229
|
+
errorPrompt(ts, 2);
|
|
230
|
+
is = false;
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
if (props.fileSize) {
|
|
234
|
+
if (file.size > props.fileSize) {
|
|
235
|
+
const ts = getLocale(
|
|
236
|
+
"upload.error.size",
|
|
237
|
+
getLocale("upload.type." + type.value),
|
|
238
|
+
props.fileSize,
|
|
239
|
+
file.name
|
|
240
|
+
);
|
|
241
|
+
errorPrompt(ts, 3);
|
|
242
|
+
is = false;
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
return is;
|
|
246
|
+
};
|
|
247
|
+
const callback = (v) => {
|
|
248
|
+
if (v) {
|
|
249
|
+
if (multiple.value) {
|
|
250
|
+
if (v instanceof Array) {
|
|
251
|
+
if (value.value) {
|
|
252
|
+
value.value.push(...v);
|
|
253
|
+
} else {
|
|
254
|
+
value.value = [...v];
|
|
255
|
+
}
|
|
256
|
+
} else {
|
|
257
|
+
if (value.value) {
|
|
258
|
+
value.value.push(v);
|
|
259
|
+
} else {
|
|
260
|
+
value.value = [v];
|
|
261
|
+
}
|
|
262
|
+
}
|
|
263
|
+
} else {
|
|
264
|
+
value.value = v;
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
isloading.value = false;
|
|
268
|
+
};
|
|
269
|
+
const httpRequest = (obj) => {
|
|
270
|
+
isloading.value = true;
|
|
271
|
+
emit("httpRequest", obj, callback);
|
|
272
|
+
};
|
|
273
|
+
__expose(
|
|
274
|
+
useExpose(
|
|
275
|
+
{
|
|
276
|
+
el: refEl
|
|
277
|
+
},
|
|
278
|
+
elRef
|
|
279
|
+
)
|
|
280
|
+
);
|
|
281
|
+
return (_ctx, _cache) => {
|
|
282
|
+
return openBlock(), createElementBlock("div", mergeProps({
|
|
283
|
+
ref_key: "refEl",
|
|
284
|
+
ref: refEl
|
|
285
|
+
}, unref(attrs).root, {
|
|
286
|
+
class: unref(cs).z()
|
|
287
|
+
}), [
|
|
288
|
+
createElementVNode("div", {
|
|
289
|
+
class: normalizeClass(unref(cs).z("list"))
|
|
290
|
+
}, [
|
|
291
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(fileList.value, (item, index) => {
|
|
292
|
+
return openBlock(), createElementBlock("div", {
|
|
293
|
+
class: normalizeClass(unref(cs).z("list-li")),
|
|
294
|
+
key: index
|
|
295
|
+
}, [
|
|
296
|
+
renderSlot(_ctx.$slots, unref(dataSlot).default, { value: item }, () => {
|
|
297
|
+
var _a;
|
|
298
|
+
return [
|
|
299
|
+
createElementVNode("div", {
|
|
300
|
+
class: normalizeClass(unref(cs).z("list-li-operation")),
|
|
301
|
+
title: item.url
|
|
302
|
+
}, [
|
|
303
|
+
props.isDownload ? (openBlock(), createElementBlock("span", {
|
|
304
|
+
key: 0,
|
|
305
|
+
onClick: ($event) => onDownload(item, index),
|
|
306
|
+
title: unref(getLocale)("upload.download")
|
|
307
|
+
}, [
|
|
308
|
+
createVNode(unref(Icon), null, {
|
|
309
|
+
default: withCtx(() => [
|
|
310
|
+
createVNode(Download)
|
|
311
|
+
]),
|
|
312
|
+
_: 1
|
|
313
|
+
})
|
|
314
|
+
], 8, _hoisted_2)) : createCommentVNode("", true),
|
|
315
|
+
getIsViews(item) ? (openBlock(), createElementBlock("span", {
|
|
316
|
+
key: 1,
|
|
317
|
+
onClick: ($event) => onViews(item, index),
|
|
318
|
+
title: unref(getLocale)("upload.views")
|
|
319
|
+
}, [
|
|
320
|
+
createVNode(unref(Icon), null, {
|
|
321
|
+
default: withCtx(() => [
|
|
322
|
+
createVNode(Views)
|
|
323
|
+
]),
|
|
324
|
+
_: 1
|
|
325
|
+
})
|
|
326
|
+
], 8, _hoisted_3)) : createCommentVNode("", true),
|
|
327
|
+
!(props.disabled || item.disabled) ? (openBlock(), createElementBlock("span", {
|
|
328
|
+
key: 2,
|
|
329
|
+
class: normalizeClass(unref(cs).z("list-li-operation-delete")),
|
|
330
|
+
onClick: ($event) => onDelete(item, index),
|
|
331
|
+
title: unref(getLocale)("upload.delete")
|
|
332
|
+
}, [
|
|
333
|
+
createVNode(unref(Icon), null, {
|
|
334
|
+
default: withCtx(() => [
|
|
335
|
+
createVNode(Delete)
|
|
336
|
+
]),
|
|
337
|
+
_: 1
|
|
338
|
+
})
|
|
339
|
+
], 10, _hoisted_4)) : createCommentVNode("", true)
|
|
340
|
+
], 10, _hoisted_1),
|
|
341
|
+
createElementVNode("div", {
|
|
342
|
+
class: normalizeClass(unref(cs).z("list-li-value"))
|
|
343
|
+
}, [
|
|
344
|
+
getListType(item).startsWith("i") ? (openBlock(), createBlock(unref(Image), {
|
|
345
|
+
key: 0,
|
|
346
|
+
class: normalizeClass(unref(cs).z("list-li-value-img")),
|
|
347
|
+
fit: "cover",
|
|
348
|
+
src: item.url
|
|
349
|
+
}, null, 8, ["class", "src"])) : (openBlock(), createElementBlock("div", {
|
|
350
|
+
key: 1,
|
|
351
|
+
class: normalizeClass(unref(cs).z("list-li-value-document"))
|
|
352
|
+
}, [
|
|
353
|
+
createElementVNode("span", {
|
|
354
|
+
class: normalizeClass(unref(cs).z("list-li-value-document-bg"))
|
|
355
|
+
}, [
|
|
356
|
+
createVNode(Document)
|
|
357
|
+
], 2),
|
|
358
|
+
createElementVNode("span", {
|
|
359
|
+
class: normalizeClass(unref(cs).z("list-li-value-document-text"))
|
|
360
|
+
}, toDisplayString(((_a = unref(getUrlCatalogueObj)(item.url)) == null ? void 0 : _a.name) || item.url), 3)
|
|
361
|
+
], 2))
|
|
362
|
+
], 2)
|
|
363
|
+
];
|
|
364
|
+
})
|
|
365
|
+
], 2);
|
|
366
|
+
}), 128)),
|
|
367
|
+
views.show ? (openBlock(), createElementBlock("div", {
|
|
368
|
+
key: 0,
|
|
369
|
+
class: normalizeClass(unref(cs).z("list-views"))
|
|
370
|
+
}, [
|
|
371
|
+
renderSlot(_ctx.$slots, unref(dataSlot).views, { views }, () => {
|
|
372
|
+
var _a;
|
|
373
|
+
return [
|
|
374
|
+
getListType(views.value).startsWith("i") ? (openBlock(), createBlock(unref(ImageViewer), {
|
|
375
|
+
key: 0,
|
|
376
|
+
"url-list": [(_a = views.value) == null ? void 0 : _a.url],
|
|
377
|
+
"show-progress": "",
|
|
378
|
+
onClose: _cache[0] || (_cache[0] = ($event) => views.show = false)
|
|
379
|
+
}, null, 8, ["url-list"])) : createCommentVNode("", true)
|
|
380
|
+
];
|
|
381
|
+
})
|
|
382
|
+
], 2)) : createCommentVNode("", true)
|
|
383
|
+
], 2),
|
|
384
|
+
isUp.value ? (openBlock(), createBlock(unref(Upload), mergeProps({ key: 0 }, unref(attrs).assem, {
|
|
385
|
+
ref_key: "elRef",
|
|
386
|
+
ref: elRef,
|
|
387
|
+
disabled: isloading.value,
|
|
388
|
+
class: unref(cs).z("upload"),
|
|
389
|
+
action: "#",
|
|
390
|
+
multiple: unref(multiple),
|
|
391
|
+
"show-file-list": false,
|
|
392
|
+
accept: accept.value,
|
|
393
|
+
limit: unref(multiple) ? props.limit : 1,
|
|
394
|
+
"before-upload": onBeforeUpload,
|
|
395
|
+
"http-request": httpRequest
|
|
396
|
+
}), {
|
|
397
|
+
trigger: withCtx(() => [
|
|
398
|
+
createElementVNode("div", {
|
|
399
|
+
class: normalizeClass(unref(cs).z("upload-trigger"))
|
|
400
|
+
}, [
|
|
401
|
+
createVNode(unref(Icon), null, {
|
|
402
|
+
default: withCtx(() => [
|
|
403
|
+
!isloading.value ? (openBlock(), createBlock(Plus, { key: 0 })) : createCommentVNode("", true)
|
|
404
|
+
]),
|
|
405
|
+
_: 1
|
|
406
|
+
})
|
|
407
|
+
], 2)
|
|
408
|
+
]),
|
|
409
|
+
_: 1
|
|
410
|
+
}, 16, ["disabled", "class", "multiple", "accept", "limit"])) : createCommentVNode("", true)
|
|
411
|
+
], 16);
|
|
412
|
+
};
|
|
413
|
+
}
|
|
414
|
+
});
|
|
415
|
+
export {
|
|
416
|
+
_sfc_main as default
|
|
417
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
+
;/* empty css */
|
|
4
|
+
const withInstall = require("../../utils/vues/withInstall.cjs");
|
|
5
|
+
require("./src/index.cjs");
|
|
6
|
+
const index_vue_vue_type_script_setup_true_lang = require("./src/index2.cjs");
|
|
7
|
+
const Videos = withInstall.withInstall(index_vue_vue_type_script_setup_true_lang.default, "Videos");
|
|
8
|
+
exports.Videos = Videos;
|
|
9
|
+
exports.default = Videos;
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
--on: rgb(91, 189, 246);
|
|
3
|
+
--color-primary: #409eff;
|
|
4
|
+
--bag-primary: #409eff;
|
|
5
|
+
--bag-primary-text: #fff;
|
|
6
|
+
--border: #eee;
|
|
7
|
+
--layout-panel-gap: 10px;
|
|
8
|
+
--layout-panel-padding: 20px;
|
|
9
|
+
--layout-form-item-padding-right: var(
|
|
10
|
+
--layout-panel-gap
|
|
11
|
+
);
|
|
12
|
+
--g-main-bg: var(--bg-color-page);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.videos {
|
|
16
|
+
display: flex;
|
|
17
|
+
height: 100%;
|
|
18
|
+
border-radius: 8px;
|
|
19
|
+
background: #000;
|
|
20
|
+
color: #fff;
|
|
21
|
+
position: relative;
|
|
22
|
+
--videos-list-width: 20%;
|
|
23
|
+
}
|
|
24
|
+
.videos.is-fullscreen {
|
|
25
|
+
border-radius: 0;
|
|
26
|
+
}
|
|
27
|
+
.videos.is-fullscreen .videos-controls-bottom {
|
|
28
|
+
position: absolute;
|
|
29
|
+
left: 0;
|
|
30
|
+
bottom: 0;
|
|
31
|
+
width: 100%;
|
|
32
|
+
}
|
|
33
|
+
.videos.is-fullscreen .videos-list {
|
|
34
|
+
background-color: rgba(238, 238, 238, 0.5);
|
|
35
|
+
position: absolute;
|
|
36
|
+
top: 0;
|
|
37
|
+
right: 0;
|
|
38
|
+
bottom: 0;
|
|
39
|
+
}
|
|
40
|
+
.videos.is-list .videos-controls-bottom {
|
|
41
|
+
width: calc(100% - var(--videos-list-width));
|
|
42
|
+
}
|
|
43
|
+
.videos-videos {
|
|
44
|
+
flex: 1;
|
|
45
|
+
height: 100%;
|
|
46
|
+
display: flex;
|
|
47
|
+
flex-direction: column;
|
|
48
|
+
position: relative;
|
|
49
|
+
}
|
|
50
|
+
.videos-videos .videos-controls-top {
|
|
51
|
+
position: absolute;
|
|
52
|
+
top: 0;
|
|
53
|
+
left: 0;
|
|
54
|
+
z-index: 100;
|
|
55
|
+
padding: 5px;
|
|
56
|
+
background-color: rgba(238, 238, 238, 0.5);
|
|
57
|
+
}
|
|
58
|
+
.videos-videos .videos-video {
|
|
59
|
+
flex: 1;
|
|
60
|
+
margin: 0 auto;
|
|
61
|
+
position: relative;
|
|
62
|
+
height: 100%;
|
|
63
|
+
width: 100%;
|
|
64
|
+
}
|
|
65
|
+
.videos-videos .videos-video video {
|
|
66
|
+
position: absolute;
|
|
67
|
+
top: 0;
|
|
68
|
+
left: 0;
|
|
69
|
+
width: 100%;
|
|
70
|
+
height: 100%;
|
|
71
|
+
object-fit: contain;
|
|
72
|
+
cursor: pointer;
|
|
73
|
+
}
|
|
74
|
+
.videos-videos .videos-controls-bottom .videos-slider {
|
|
75
|
+
display: flex;
|
|
76
|
+
align-items: center;
|
|
77
|
+
}
|
|
78
|
+
.videos-videos .videos-controls-bottom .videos-slider-slider {
|
|
79
|
+
margin-left: 10px;
|
|
80
|
+
}
|
|
81
|
+
.videos-videos .videos-controls-bottom .videos-slider .videos-duration {
|
|
82
|
+
margin-left: 20px;
|
|
83
|
+
display: flex;
|
|
84
|
+
align-items: center;
|
|
85
|
+
}
|
|
86
|
+
.videos-videos .videos-controls-bottom .videos-control {
|
|
87
|
+
display: flex;
|
|
88
|
+
align-items: center;
|
|
89
|
+
}
|
|
90
|
+
.videos-videos .videos-controls-bottom .videos-control-buts {
|
|
91
|
+
display: flex;
|
|
92
|
+
align-items: center;
|
|
93
|
+
}
|
|
94
|
+
.videos-videos .videos-controls-bottom .videos-control-volume {
|
|
95
|
+
flex: 1;
|
|
96
|
+
display: flex;
|
|
97
|
+
align-items: center;
|
|
98
|
+
justify-content: flex-end;
|
|
99
|
+
}
|
|
100
|
+
.videos-videos .videos-controls-bottom .videos-control-volume-but {
|
|
101
|
+
margin-left: 10px;
|
|
102
|
+
margin-right: 15px;
|
|
103
|
+
}
|
|
104
|
+
.videos-videos .videos-controls-bottom .videos-control-volume-slider {
|
|
105
|
+
min-width: 40px;
|
|
106
|
+
max-width: 120px;
|
|
107
|
+
margin-right: 5px;
|
|
108
|
+
}
|
|
109
|
+
.videos-videos .videos-controls-bottom .videos-control-more {
|
|
110
|
+
display: flex;
|
|
111
|
+
align-items: center;
|
|
112
|
+
}
|
|
113
|
+
.videos-videos .videos-controls-bottom .videos-control-more-rate {
|
|
114
|
+
width: 60px;
|
|
115
|
+
margin: 0 10px;
|
|
116
|
+
}
|
|
117
|
+
.videos-list {
|
|
118
|
+
width: var(--videos-list-width);
|
|
119
|
+
height: 100%;
|
|
120
|
+
box-sizing: border-box;
|
|
121
|
+
padding: 10px;
|
|
122
|
+
}
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
@use '../scss/common.scss' as *;
|
|
2
|
+
|
|
3
|
+
$videos: 'videos';
|
|
4
|
+
@include b($videos) {
|
|
5
|
+
display: flex;
|
|
6
|
+
height: 100%;
|
|
7
|
+
border-radius: 8px;
|
|
8
|
+
background: #000;
|
|
9
|
+
color: #fff;
|
|
10
|
+
position: relative;
|
|
11
|
+
#{vdm('list-width', $videos)}: 20%;
|
|
12
|
+
&.#{is('fullscreen')} {
|
|
13
|
+
border-radius: 0;
|
|
14
|
+
.#{z($videos, 'controls-bottom')} {
|
|
15
|
+
position: absolute;
|
|
16
|
+
left: 0;
|
|
17
|
+
bottom: 0;
|
|
18
|
+
width: 100%;
|
|
19
|
+
}
|
|
20
|
+
.#{z($videos, 'list')} {
|
|
21
|
+
background-color: rgba(238, 238, 238, 0.5);
|
|
22
|
+
position: absolute;
|
|
23
|
+
top: 0;
|
|
24
|
+
right: 0;
|
|
25
|
+
bottom: 0;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
&.#{is('list')} {
|
|
29
|
+
.#{z($videos, 'controls-bottom')} {
|
|
30
|
+
width: calc(100% - var(#{vdm('list-width', $videos)}));
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
&-videos {
|
|
34
|
+
flex: 1;
|
|
35
|
+
height: 100%;
|
|
36
|
+
display: flex;
|
|
37
|
+
flex-direction: column;
|
|
38
|
+
position: relative;
|
|
39
|
+
.#{z($videos, 'controls-top')} {
|
|
40
|
+
position: absolute;
|
|
41
|
+
top: 0;
|
|
42
|
+
left: 0;
|
|
43
|
+
z-index: 100;
|
|
44
|
+
padding: 5px;
|
|
45
|
+
background-color: rgba(238, 238, 238, 0.5);
|
|
46
|
+
}
|
|
47
|
+
.#{z($videos, 'video')} {
|
|
48
|
+
flex: 1;
|
|
49
|
+
margin: 0 auto;
|
|
50
|
+
position: relative;
|
|
51
|
+
height: 100%;
|
|
52
|
+
width: 100%;
|
|
53
|
+
video {
|
|
54
|
+
position: absolute;
|
|
55
|
+
top: 0;
|
|
56
|
+
left: 0;
|
|
57
|
+
width: 100%;
|
|
58
|
+
height: 100%;
|
|
59
|
+
object-fit: contain;
|
|
60
|
+
cursor: pointer;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
.#{z($videos, 'controls-bottom')} {
|
|
64
|
+
.#{z($videos, 'slider')} {
|
|
65
|
+
display: flex;
|
|
66
|
+
align-items: center;
|
|
67
|
+
&-slider {
|
|
68
|
+
margin-left: 10px;
|
|
69
|
+
}
|
|
70
|
+
.#{z($videos, 'duration')} {
|
|
71
|
+
margin-left: 20px;
|
|
72
|
+
display: flex;
|
|
73
|
+
align-items: center;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
.#{z($videos, 'control')} {
|
|
77
|
+
display: flex;
|
|
78
|
+
align-items: center;
|
|
79
|
+
&-buts {
|
|
80
|
+
display: flex;
|
|
81
|
+
align-items: center;
|
|
82
|
+
}
|
|
83
|
+
&-volume {
|
|
84
|
+
flex: 1;
|
|
85
|
+
display: flex;
|
|
86
|
+
align-items: center;
|
|
87
|
+
justify-content: flex-end;
|
|
88
|
+
&-but {
|
|
89
|
+
margin-left: 10px;
|
|
90
|
+
margin-right: 15px;
|
|
91
|
+
}
|
|
92
|
+
&-slider {
|
|
93
|
+
min-width: 40px;
|
|
94
|
+
max-width: 120px;
|
|
95
|
+
margin-right: 5px;
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
&-more {
|
|
99
|
+
display: flex;
|
|
100
|
+
align-items: center;
|
|
101
|
+
&-rate {
|
|
102
|
+
width: 60px;
|
|
103
|
+
margin: 0 10px;
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
&-list {
|
|
110
|
+
width: var(#{vdm('list-width', $videos)});
|
|
111
|
+
height: 100%;
|
|
112
|
+
box-sizing: border-box;
|
|
113
|
+
padding: 10px;
|
|
114
|
+
}
|
|
115
|
+
}
|