@cmstops/pro-compo 0.3.85 → 0.3.86
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/es/selectResourceModal/component.js +5 -3
- package/es/selectResourceModal/components/List/ListVideo/index.js +1 -0
- package/es/videoThumb/component.js +8 -5
- package/lib/selectResourceModal/component.js +5 -3
- package/lib/selectResourceModal/components/List/ListVideo/index.js +1 -0
- package/lib/videoThumb/component.js +9 -6
- package/package.json +1 -1
|
@@ -110,7 +110,7 @@ const _sfc_main = defineComponent({
|
|
|
110
110
|
onOptions: (e) => handleOptions(e, onOptions)
|
|
111
111
|
}, null, 8, ["item", "select-keys", "disable", "onSelect", "onOptions"])
|
|
112
112
|
]),
|
|
113
|
-
"footer-extra": withCtx(({ type, onConfirm }) => [
|
|
113
|
+
"footer-extra": withCtx(({ type, onConfirm, isEmpty }) => [
|
|
114
114
|
createCommentVNode(" \u5982\u679C\u662F\u975E\u89C6\u9891\u5C01\u9762\u7C7B\u578B "),
|
|
115
115
|
type !== "video" ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
116
116
|
unref(selected).length ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
@@ -146,6 +146,7 @@ const _sfc_main = defineComponent({
|
|
|
146
146
|
_: 1
|
|
147
147
|
}, 8, ["onClick"]),
|
|
148
148
|
createVNode(unref(Button), {
|
|
149
|
+
disabled: isEmpty,
|
|
149
150
|
type: "primary",
|
|
150
151
|
onClick: ($event) => confirm("crop", onConfirm)
|
|
151
152
|
}, {
|
|
@@ -153,8 +154,9 @@ const _sfc_main = defineComponent({
|
|
|
153
154
|
createTextVNode(" \u7F16\u8F91 ")
|
|
154
155
|
])),
|
|
155
156
|
_: 2
|
|
156
|
-
}, 1032, ["onClick"]),
|
|
157
|
+
}, 1032, ["disabled", "onClick"]),
|
|
157
158
|
createVNode(unref(Button), {
|
|
159
|
+
disabled: isEmpty,
|
|
158
160
|
type: "primary",
|
|
159
161
|
onClick: ($event) => confirm("use", onConfirm)
|
|
160
162
|
}, {
|
|
@@ -162,7 +164,7 @@ const _sfc_main = defineComponent({
|
|
|
162
164
|
createTextVNode(" \u4F7F\u7528 ")
|
|
163
165
|
])),
|
|
164
166
|
_: 2
|
|
165
|
-
}, 1032, ["onClick"])
|
|
167
|
+
}, 1032, ["disabled", "onClick"])
|
|
166
168
|
], 64))
|
|
167
169
|
]),
|
|
168
170
|
_: 1
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { defineComponent, ref, computed, watch, onMounted, openBlock, createElementBlock, unref, createVNode, Fragment, createElementVNode, createCommentVNode, renderList, normalizeClass } from "vue";
|
|
1
|
+
import { defineComponent, ref, computed, watch, onMounted, openBlock, createElementBlock, unref, createVNode, createBlock, Fragment, createElementVNode, createCommentVNode, renderList, normalizeClass } from "vue";
|
|
2
2
|
import { Spin } from "@arco-design/web-vue";
|
|
3
3
|
import { DEFAULT_BASE_API } from "../config.js";
|
|
4
4
|
import { useVideoThumbs, useDragger } from "./scripts/useVideoThumbs.js";
|
|
5
|
+
import emptyData from "../emptyData/index.js";
|
|
5
6
|
const _hoisted_1 = { class: "video-thumb" };
|
|
6
7
|
const _hoisted_2 = {
|
|
7
8
|
key: 0,
|
|
@@ -79,7 +80,10 @@ const _sfc_main = defineComponent({
|
|
|
79
80
|
loading: unref(loading),
|
|
80
81
|
tip: "\u751F\u6210\u89C6\u9891\u5C01\u9762\u4E2D..."
|
|
81
82
|
}, null, 8, ["loading"])
|
|
82
|
-
])) : (openBlock(),
|
|
83
|
+
])) : unref(thumbs).length === 0 ? (openBlock(), createBlock(unref(emptyData), {
|
|
84
|
+
key: 1,
|
|
85
|
+
type: "empty"
|
|
86
|
+
})) : (openBlock(), createElementBlock(Fragment, { key: 2 }, [
|
|
83
87
|
createElementVNode("div", _hoisted_3, [
|
|
84
88
|
createElementVNode("img", { src: unref(curThumb) }, null, 8, _hoisted_4)
|
|
85
89
|
]),
|
|
@@ -89,13 +93,12 @@ const _sfc_main = defineComponent({
|
|
|
89
93
|
ref: videoThumbRef,
|
|
90
94
|
class: "video-thumb-list"
|
|
91
95
|
}, [
|
|
92
|
-
|
|
93
|
-
key: 0,
|
|
96
|
+
createElementVNode("div", {
|
|
94
97
|
ref_key: "videoThumbDrager",
|
|
95
98
|
ref: videoThumbDrager,
|
|
96
99
|
class: "video-thumb-list-drager",
|
|
97
100
|
onMousedown: _cache[0] || (_cache[0] = (...args) => unref(handleMousedown) && unref(handleMousedown)(...args))
|
|
98
|
-
}, null, 544)
|
|
101
|
+
}, null, 544),
|
|
99
102
|
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(thumbs), (thumb, idx) => {
|
|
100
103
|
return openBlock(), createElementBlock("div", {
|
|
101
104
|
key: thumb,
|
|
@@ -111,7 +111,7 @@ const _sfc_main = vue.defineComponent({
|
|
|
111
111
|
onOptions: (e) => handleOptions(e, onOptions)
|
|
112
112
|
}, null, 8, ["item", "select-keys", "disable", "onSelect", "onOptions"])
|
|
113
113
|
]),
|
|
114
|
-
"footer-extra": vue.withCtx(({ type, onConfirm }) => [
|
|
114
|
+
"footer-extra": vue.withCtx(({ type, onConfirm, isEmpty }) => [
|
|
115
115
|
vue.createCommentVNode(" \u5982\u679C\u662F\u975E\u89C6\u9891\u5C01\u9762\u7C7B\u578B "),
|
|
116
116
|
type !== "video" ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 0 }, [
|
|
117
117
|
vue.unref(selected).length ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 0 }, [
|
|
@@ -147,6 +147,7 @@ const _sfc_main = vue.defineComponent({
|
|
|
147
147
|
_: 1
|
|
148
148
|
}, 8, ["onClick"]),
|
|
149
149
|
vue.createVNode(vue.unref(webVue.Button), {
|
|
150
|
+
disabled: isEmpty,
|
|
150
151
|
type: "primary",
|
|
151
152
|
onClick: ($event) => confirm("crop", onConfirm)
|
|
152
153
|
}, {
|
|
@@ -154,8 +155,9 @@ const _sfc_main = vue.defineComponent({
|
|
|
154
155
|
vue.createTextVNode(" \u7F16\u8F91 ")
|
|
155
156
|
])),
|
|
156
157
|
_: 2
|
|
157
|
-
}, 1032, ["onClick"]),
|
|
158
|
+
}, 1032, ["disabled", "onClick"]),
|
|
158
159
|
vue.createVNode(vue.unref(webVue.Button), {
|
|
160
|
+
disabled: isEmpty,
|
|
159
161
|
type: "primary",
|
|
160
162
|
onClick: ($event) => confirm("use", onConfirm)
|
|
161
163
|
}, {
|
|
@@ -163,7 +165,7 @@ const _sfc_main = vue.defineComponent({
|
|
|
163
165
|
vue.createTextVNode(" \u4F7F\u7528 ")
|
|
164
166
|
])),
|
|
165
167
|
_: 2
|
|
166
|
-
}, 1032, ["onClick"])
|
|
168
|
+
}, 1032, ["disabled", "onClick"])
|
|
167
169
|
], 64))
|
|
168
170
|
]),
|
|
169
171
|
_: 1
|
|
@@ -3,6 +3,7 @@ var vue = require("vue");
|
|
|
3
3
|
var webVue = require("@arco-design/web-vue");
|
|
4
4
|
var config = require("../config.js");
|
|
5
5
|
var useVideoThumbs = require("./scripts/useVideoThumbs.js");
|
|
6
|
+
var index = require("../emptyData/index.js");
|
|
6
7
|
const _hoisted_1 = { class: "video-thumb" };
|
|
7
8
|
const _hoisted_2 = {
|
|
8
9
|
key: 0,
|
|
@@ -45,8 +46,8 @@ const _sfc_main = vue.defineComponent({
|
|
|
45
46
|
if (pos < 0 || pos > rect.width - 5)
|
|
46
47
|
return;
|
|
47
48
|
videoThumbDrager.value.style.left = `${pos}px`;
|
|
48
|
-
const
|
|
49
|
-
curThumb.value = thumbs.value[
|
|
49
|
+
const index2 = Math.floor(pos / width.value);
|
|
50
|
+
curThumb.value = thumbs.value[index2 < thumbs.value.length ? index2 : thumbs.value.length - 1];
|
|
50
51
|
}
|
|
51
52
|
function upDragger() {
|
|
52
53
|
startPos.value = 0;
|
|
@@ -80,7 +81,10 @@ const _sfc_main = vue.defineComponent({
|
|
|
80
81
|
loading: vue.unref(loading),
|
|
81
82
|
tip: "\u751F\u6210\u89C6\u9891\u5C01\u9762\u4E2D..."
|
|
82
83
|
}, null, 8, ["loading"])
|
|
83
|
-
])) : (vue.openBlock(), vue.
|
|
84
|
+
])) : vue.unref(thumbs).length === 0 ? (vue.openBlock(), vue.createBlock(vue.unref(index), {
|
|
85
|
+
key: 1,
|
|
86
|
+
type: "empty"
|
|
87
|
+
})) : (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 2 }, [
|
|
84
88
|
vue.createElementVNode("div", _hoisted_3, [
|
|
85
89
|
vue.createElementVNode("img", { src: vue.unref(curThumb) }, null, 8, _hoisted_4)
|
|
86
90
|
]),
|
|
@@ -90,13 +94,12 @@ const _sfc_main = vue.defineComponent({
|
|
|
90
94
|
ref: videoThumbRef,
|
|
91
95
|
class: "video-thumb-list"
|
|
92
96
|
}, [
|
|
93
|
-
vue.
|
|
94
|
-
key: 0,
|
|
97
|
+
vue.createElementVNode("div", {
|
|
95
98
|
ref_key: "videoThumbDrager",
|
|
96
99
|
ref: videoThumbDrager,
|
|
97
100
|
class: "video-thumb-list-drager",
|
|
98
101
|
onMousedown: _cache[0] || (_cache[0] = (...args) => vue.unref(handleMousedown) && vue.unref(handleMousedown)(...args))
|
|
99
|
-
}, null, 544)
|
|
102
|
+
}, null, 544),
|
|
100
103
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(vue.unref(thumbs), (thumb, idx) => {
|
|
101
104
|
return vue.openBlock(), vue.createElementBlock("div", {
|
|
102
105
|
key: thumb,
|