@cmstops/pro-compo 3.9.2-alpha.6 → 3.9.2-alpha.8
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/contentDetailList/component.js +24 -0
- package/es/contentDetailList/components/Content/index.js +2 -1
- package/es/contentDetailList/components/Doc/index.js +6 -0
- package/es/utils/index.js +6 -6
- package/lib/contentDetailList/component.js +24 -0
- package/lib/contentDetailList/components/Content/index.js +2 -1
- package/lib/contentDetailList/components/Doc/index.js +6 -0
- package/lib/utils/index.js +6 -6
- package/package.json +1 -1
|
@@ -104,6 +104,12 @@ const _sfc_main = defineComponent({
|
|
|
104
104
|
onCellMouseEnter: tableCellMouseEnter,
|
|
105
105
|
onCellMouseLeave: tableCellMouseLeave
|
|
106
106
|
}, {
|
|
107
|
+
"after-index": withCtx(() => [
|
|
108
|
+
renderSlot(_ctx.$slots, "after-index", {
|
|
109
|
+
row: element,
|
|
110
|
+
index
|
|
111
|
+
})
|
|
112
|
+
]),
|
|
107
113
|
batch: withCtx(() => [
|
|
108
114
|
renderSlot(_ctx.$slots, "batch", {
|
|
109
115
|
row: element,
|
|
@@ -128,6 +134,12 @@ const _sfc_main = defineComponent({
|
|
|
128
134
|
onCellMouseEnter: tableCellMouseEnter,
|
|
129
135
|
onCellMouseLeave: tableCellMouseLeave
|
|
130
136
|
}, {
|
|
137
|
+
"after-index": withCtx(() => [
|
|
138
|
+
renderSlot(_ctx.$slots, "after-index", {
|
|
139
|
+
row: element,
|
|
140
|
+
index
|
|
141
|
+
})
|
|
142
|
+
]),
|
|
131
143
|
tip: withCtx(() => [
|
|
132
144
|
renderSlot(_ctx.$slots, "tip", {
|
|
133
145
|
row: element,
|
|
@@ -224,6 +236,12 @@ const _sfc_main = defineComponent({
|
|
|
224
236
|
onCellMouseEnter: tableCellMouseEnter,
|
|
225
237
|
onCellMouseLeave: tableCellMouseLeave
|
|
226
238
|
}, {
|
|
239
|
+
"after-index": withCtx(() => [
|
|
240
|
+
renderSlot(_ctx.$slots, "after-index", {
|
|
241
|
+
row: item,
|
|
242
|
+
index
|
|
243
|
+
})
|
|
244
|
+
]),
|
|
227
245
|
batch: withCtx(() => [
|
|
228
246
|
renderSlot(_ctx.$slots, "batch", {
|
|
229
247
|
row: item,
|
|
@@ -248,6 +266,12 @@ const _sfc_main = defineComponent({
|
|
|
248
266
|
onCellMouseEnter: tableCellMouseEnter,
|
|
249
267
|
onCellMouseLeave: tableCellMouseLeave
|
|
250
268
|
}, {
|
|
269
|
+
"after-index": withCtx(() => [
|
|
270
|
+
renderSlot(_ctx.$slots, "after-index", {
|
|
271
|
+
row: item,
|
|
272
|
+
index
|
|
273
|
+
})
|
|
274
|
+
]),
|
|
251
275
|
tip: withCtx(() => [
|
|
252
276
|
renderSlot(_ctx.$slots, "tip", {
|
|
253
277
|
row: item,
|
|
@@ -142,7 +142,8 @@ const _sfc_main = defineComponent({
|
|
|
142
142
|
})
|
|
143
143
|
]),
|
|
144
144
|
index: withCtx(() => [
|
|
145
|
-
createElementVNode("span", _hoisted_1, toDisplayString(_ctx.index + 1), 1)
|
|
145
|
+
createElementVNode("span", _hoisted_1, toDisplayString(_ctx.index + 1), 1),
|
|
146
|
+
renderSlot(_ctx.$slots, "after-index")
|
|
146
147
|
]),
|
|
147
148
|
tip: withCtx(() => [
|
|
148
149
|
createCommentVNode(" \u5148\u6DFB\u52A0\u6587\u4EF6\u8D44\u6E90\uFF0C\u672A\u53D1\u5E03 "),
|
|
@@ -37,6 +37,12 @@ const _sfc_main = defineComponent({
|
|
|
37
37
|
index: _ctx.index
|
|
38
38
|
})
|
|
39
39
|
]),
|
|
40
|
+
"after-index": withCtx(() => [
|
|
41
|
+
renderSlot(_ctx.$slots, "after-index", {
|
|
42
|
+
row: _ctx.element,
|
|
43
|
+
index: _ctx.index
|
|
44
|
+
})
|
|
45
|
+
]),
|
|
40
46
|
batch: withCtx(() => [
|
|
41
47
|
renderSlot(_ctx.$slots, "batch", {
|
|
42
48
|
row: _ctx.item,
|
package/es/utils/index.js
CHANGED
|
@@ -137,13 +137,13 @@ async function copyContent(content) {
|
|
|
137
137
|
}
|
|
138
138
|
}
|
|
139
139
|
function mediaTime(v) {
|
|
140
|
-
const h = Math.floor(v /
|
|
141
|
-
const m = Math.floor(
|
|
142
|
-
const s = Math.floor(v
|
|
140
|
+
const h = Math.floor(v / 3600);
|
|
141
|
+
const m = Math.floor(v % 3600 / 60);
|
|
142
|
+
const s = Math.floor(v % 60);
|
|
143
143
|
let ret = "";
|
|
144
|
-
ret += `${h < 10 ? `0${h}` : h
|
|
145
|
-
ret += `${m < 10 ? `0${m}` : m
|
|
146
|
-
ret += s < 10 ? `0${s}` : s
|
|
144
|
+
ret += `${h < 10 ? `0${h}` : h}:`;
|
|
145
|
+
ret += `${m < 10 ? `0${m}` : m}:`;
|
|
146
|
+
ret += s < 10 ? `0${s}` : s;
|
|
147
147
|
return ret;
|
|
148
148
|
}
|
|
149
149
|
export { copyContent, dateYYYYDDMMHHmm, generateUUID, getRealUrl, getThemeColor, mediaTime, noCoverText, replaceSuffix, timeFormat, to, validateForm };
|
|
@@ -109,6 +109,12 @@ const _sfc_main = vue.defineComponent({
|
|
|
109
109
|
onCellMouseEnter: tableCellMouseEnter,
|
|
110
110
|
onCellMouseLeave: tableCellMouseLeave
|
|
111
111
|
}, {
|
|
112
|
+
"after-index": vue.withCtx(() => [
|
|
113
|
+
vue.renderSlot(_ctx.$slots, "after-index", {
|
|
114
|
+
row: element,
|
|
115
|
+
index: index$4
|
|
116
|
+
})
|
|
117
|
+
]),
|
|
112
118
|
batch: vue.withCtx(() => [
|
|
113
119
|
vue.renderSlot(_ctx.$slots, "batch", {
|
|
114
120
|
row: element,
|
|
@@ -133,6 +139,12 @@ const _sfc_main = vue.defineComponent({
|
|
|
133
139
|
onCellMouseEnter: tableCellMouseEnter,
|
|
134
140
|
onCellMouseLeave: tableCellMouseLeave
|
|
135
141
|
}, {
|
|
142
|
+
"after-index": vue.withCtx(() => [
|
|
143
|
+
vue.renderSlot(_ctx.$slots, "after-index", {
|
|
144
|
+
row: element,
|
|
145
|
+
index: index$4
|
|
146
|
+
})
|
|
147
|
+
]),
|
|
136
148
|
tip: vue.withCtx(() => [
|
|
137
149
|
vue.renderSlot(_ctx.$slots, "tip", {
|
|
138
150
|
row: element,
|
|
@@ -229,6 +241,12 @@ const _sfc_main = vue.defineComponent({
|
|
|
229
241
|
onCellMouseEnter: tableCellMouseEnter,
|
|
230
242
|
onCellMouseLeave: tableCellMouseLeave
|
|
231
243
|
}, {
|
|
244
|
+
"after-index": vue.withCtx(() => [
|
|
245
|
+
vue.renderSlot(_ctx.$slots, "after-index", {
|
|
246
|
+
row: item,
|
|
247
|
+
index: index$4
|
|
248
|
+
})
|
|
249
|
+
]),
|
|
232
250
|
batch: vue.withCtx(() => [
|
|
233
251
|
vue.renderSlot(_ctx.$slots, "batch", {
|
|
234
252
|
row: item,
|
|
@@ -253,6 +271,12 @@ const _sfc_main = vue.defineComponent({
|
|
|
253
271
|
onCellMouseEnter: tableCellMouseEnter,
|
|
254
272
|
onCellMouseLeave: tableCellMouseLeave
|
|
255
273
|
}, {
|
|
274
|
+
"after-index": vue.withCtx(() => [
|
|
275
|
+
vue.renderSlot(_ctx.$slots, "after-index", {
|
|
276
|
+
row: item,
|
|
277
|
+
index: index$4
|
|
278
|
+
})
|
|
279
|
+
]),
|
|
256
280
|
tip: vue.withCtx(() => [
|
|
257
281
|
vue.renderSlot(_ctx.$slots, "tip", {
|
|
258
282
|
row: item,
|
|
@@ -143,7 +143,8 @@ const _sfc_main = vue.defineComponent({
|
|
|
143
143
|
})
|
|
144
144
|
]),
|
|
145
145
|
index: vue.withCtx(() => [
|
|
146
|
-
vue.createElementVNode("span", _hoisted_1, vue.toDisplayString(_ctx.index + 1), 1)
|
|
146
|
+
vue.createElementVNode("span", _hoisted_1, vue.toDisplayString(_ctx.index + 1), 1),
|
|
147
|
+
vue.renderSlot(_ctx.$slots, "after-index")
|
|
147
148
|
]),
|
|
148
149
|
tip: vue.withCtx(() => [
|
|
149
150
|
vue.createCommentVNode(" \u5148\u6DFB\u52A0\u6587\u4EF6\u8D44\u6E90\uFF0C\u672A\u53D1\u5E03 "),
|
|
@@ -38,6 +38,12 @@ const _sfc_main = vue.defineComponent({
|
|
|
38
38
|
index: _ctx.index
|
|
39
39
|
})
|
|
40
40
|
]),
|
|
41
|
+
"after-index": vue.withCtx(() => [
|
|
42
|
+
vue.renderSlot(_ctx.$slots, "after-index", {
|
|
43
|
+
row: _ctx.element,
|
|
44
|
+
index: _ctx.index
|
|
45
|
+
})
|
|
46
|
+
]),
|
|
41
47
|
batch: vue.withCtx(() => [
|
|
42
48
|
vue.renderSlot(_ctx.$slots, "batch", {
|
|
43
49
|
row: _ctx.item,
|
package/lib/utils/index.js
CHANGED
|
@@ -144,13 +144,13 @@ async function copyContent(content) {
|
|
|
144
144
|
}
|
|
145
145
|
}
|
|
146
146
|
function mediaTime(v) {
|
|
147
|
-
const h = Math.floor(v /
|
|
148
|
-
const m = Math.floor(
|
|
149
|
-
const s = Math.floor(v
|
|
147
|
+
const h = Math.floor(v / 3600);
|
|
148
|
+
const m = Math.floor(v % 3600 / 60);
|
|
149
|
+
const s = Math.floor(v % 60);
|
|
150
150
|
let ret = "";
|
|
151
|
-
ret += `${h < 10 ? `0${h}` : h
|
|
152
|
-
ret += `${m < 10 ? `0${m}` : m
|
|
153
|
-
ret += s < 10 ? `0${s}` : s
|
|
151
|
+
ret += `${h < 10 ? `0${h}` : h}:`;
|
|
152
|
+
ret += `${m < 10 ? `0${m}` : m}:`;
|
|
153
|
+
ret += s < 10 ? `0${s}` : s;
|
|
154
154
|
return ret;
|
|
155
155
|
}
|
|
156
156
|
exports.copyContent = copyContent;
|