cnhis-design-vue 3.1.9-beta.10 → 3.1.9-beta.13
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/packages/big-table/src/BigTable.vue_vue_type_script_setup_true_lang.js +35 -14
- package/es/packages/chunk-upload/index.d.ts +22 -1
- package/es/packages/chunk-upload/src/chunk-upload-new.vue.d.ts +32 -0
- package/es/packages/chunk-upload/src/chunk-upload-new.vue_vue_type_script_setup_true_lang.js +3 -2
- package/es/packages/chunk-upload/src/hooks/upload-data.d.ts +29 -27
- package/es/packages/chunk-upload/src/hooks/upload-data.js +32 -29
- package/es/packages/chunk-upload/src/hooks/vod-data.d.ts +21 -42
- package/es/packages/chunk-upload/src/hooks/vod-data.js +26 -31
- package/es/packages/chunk-upload/src/vod-chunk-upload/vod-chunk-upload.vue.d.ts +31 -2
- package/es/packages/chunk-upload/src/vod-chunk-upload/vod-chunk-upload.vue_vue_type_script_setup_true_lang.js +16 -6
- package/es/packages/chunk-upload/style/index.css +2 -0
- package/es/packages/fabric-chart/index.d.ts +7 -81
- package/es/packages/fabric-chart/src/FabricChart.vue.d.ts +7 -82
- package/es/packages/fabric-chart/src/FabricChart.vue_vue_type_script_setup_true_lang.js +16 -4
- package/es/packages/fabric-chart/src/hooks/useCenter.d.ts +4 -0
- package/es/packages/fabric-chart/src/hooks/useCenter.js +7 -0
- package/es/packages/fabric-chart/src/hooks/useDraw.d.ts +42 -0
- package/es/packages/fabric-chart/src/hooks/useDraw.js +76 -0
- package/es/packages/fabric-chart/src/hooks/useGrid.d.ts +4 -0
- package/es/packages/fabric-chart/src/hooks/useGrid.js +45 -0
- package/es/packages/fabric-chart/src/hooks/useLeft.d.ts +4 -0
- package/es/packages/fabric-chart/src/hooks/useLeft.js +66 -0
- package/es/packages/fabric-chart/src/hooks/useTop.d.ts +4 -0
- package/es/packages/fabric-chart/src/hooks/useTop.js +124 -0
- package/es/packages/fabric-chart/src/interface.d.ts +88 -0
- package/es/packages/fabric-chart/src/interface.js +4 -0
- package/es/packages/fabric-chart/src/utils/index.d.ts +2 -0
- package/es/packages/fabric-chart/src/utils/index.js +15352 -0
- package/es/packages/form-render/index.d.ts +3 -3
- package/es/packages/form-render/index.js +1 -0
- package/es/packages/form-render/src/FormRender.vue.d.ts +4 -4
- package/es/packages/form-render/src/FormRender.vue_vue_type_script_setup_true_lang.js +23 -9
- package/es/packages/form-render/src/components/cascader.js +0 -1
- package/es/packages/form-render/src/hooks/index.d.ts +1 -0
- package/es/packages/form-render/src/hooks/index.js +1 -0
- package/es/packages/form-render/src/hooks/useAsyncQueue.js +1 -1
- package/es/packages/form-render/src/hooks/useFieldList2Schema.js +1 -1
- package/es/packages/form-render/src/hooks/useFormField.js +1 -3
- package/es/packages/form-render/src/hooks/useInitialData.d.ts +5 -0
- package/es/packages/form-render/src/hooks/useInitialData.js +11 -0
- package/es/packages/form-render/src/types/index.d.ts +1 -1
- package/es/packages/form-render/style/index.css +1 -1
- package/es/packages/index.css +38 -9
- package/es/packages/index.js +1 -0
- package/es/packages/scale-view/index.d.ts +137 -0
- package/es/packages/scale-view/src/ScaleView.vue.d.ts +119 -0
- package/es/packages/scale-view/src/ScaleView.vue_vue_type_script_setup_true_lang.js +30 -24
- package/es/packages/scale-view/src/components/composables/choose-common.d.ts +1 -0
- package/es/packages/scale-view/src/components/composables/choose-common.js +6 -1
- package/es/packages/scale-view/src/components/formitem/r-checkbox.d.ts +9 -0
- package/es/packages/scale-view/src/components/formitem/r-checkbox.js +57 -12
- package/es/packages/scale-view/src/components/formitem/r-datetime.js +5 -2
- package/es/packages/scale-view/src/components/formitem/r-radio.d.ts +9 -0
- package/es/packages/scale-view/src/components/formitem/r-radio.js +26 -13
- package/es/packages/scale-view/src/hooks/scaleview-computed.js +5 -13
- package/es/packages/scale-view/src/hooks/scaleview-init.js +3 -1
- package/es/packages/scale-view/src/hooks/scaleview-props.d.ts +28 -0
- package/es/packages/scale-view/src/hooks/scaleview-props.js +21 -0
- package/es/packages/scale-view/src/hooks/scaleview-state.d.ts +32 -31
- package/es/packages/scale-view/src/hooks/scaleview-state.js +41 -38
- package/es/packages/scale-view/src/hooks/use-component.d.ts +103 -2
- package/es/packages/scale-view/style/index.css +16 -4
- package/es/packages/select-label/index.d.ts +46 -2
- package/es/packages/select-label/src/LabelFormContent.vue.d.ts +1 -1
- package/es/packages/select-label/src/LabelFormContent.vue_vue_type_script_setup_true_lang.js +1 -2
- package/es/packages/select-label/src/SelectLabel.vue.d.ts +58 -8
- package/es/packages/select-label/src/SelectLabel.vue_vue_type_script_setup_true_lang.js +20 -2
- package/es/packages/select-label/src/components/label-classify.vue_vue_type_script_setup_true_lang.js +4 -1
- package/es/packages/select-label/style/index.css +10 -0
- package/es/src/assets/img/failure.d.ts +2 -1
- package/es/src/assets/img/icon-asc.d.ts +2 -1
- package/es/src/assets/img/icon-desc.d.ts +2 -1
- package/es/src/assets/img/no-permission.d.ts +2 -1
- package/es/src/assets/img/nodata.d.ts +2 -1
- package/es/src/assets/img/notfound.d.ts +2 -1
- package/es/src/assets/img/qr.d.ts +2 -1
- package/es/src/assets/img/success.d.ts +2 -1
- package/es/src/assets/img/video.d.ts +2 -1
- package/es/src/assets/img/video_default_cover.d.ts +2 -1
- package/es/src/assets/img/video_hover.d.ts +2 -1
- package/es/src/assets/img/video_play_hover.d.ts +2 -1
- package/es/src/assets/img/xb_big.d.ts +2 -1
- package/es/src/assets/img/xb_small.d.ts +2 -1
- package/es/src/components/player-vod/video-modal.js +1 -1
- package/package.json +2 -4
- package/test.ts +326 -0
- package/es/packages/big-table/style/index.less +0 -551
- package/es/packages/bpmn-workflow/src/BpmnWorkflow.d.js +0 -1
- package/es/packages/bpmn-workflow/style/index.less +0 -29
- package/es/packages/bpmn-workflow/types/BpmnViewer.d.js +0 -1
- package/es/packages/bpmn-workflow/types/ModelingModule.d.js +0 -1
- package/es/packages/bpmn-workflow/types/MoveCanvasModule.d.js +0 -1
- package/es/packages/button-print/style/index.less +0 -30
- package/es/packages/chunk-upload/style/index.less +0 -395
- package/es/packages/drag-layout/style/index.less +0 -208
- package/es/packages/editor/style/index.less +0 -0
- package/es/packages/fabric-chart/style/index.less +0 -0
- package/es/packages/field-set/style/index.less +0 -157
- package/es/packages/form-render/style/index.less +0 -129
- package/es/packages/form-table/style/index.less +0 -301
- package/es/packages/grid/style/index.less +0 -13
- package/es/packages/index.less +0 -3069
- package/es/packages/info-header/style/index.less +0 -149
- package/es/packages/map/style/index.less +0 -60
- package/es/packages/scale-view/style/index.less +0 -753
- package/es/packages/select-label/style/index.less +0 -151
- package/es/packages/select-person/style/index.less +0 -229
- package/es/packages/time-line/style/index.less +0 -35
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent, ref, reactive, useAttrs, computed, onMounted, onUnmounted, onActivated, createVNode, h, resolveComponent, Teleport, createTextVNode, isVNode, nextTick, watch, openBlock, createElementBlock, normalizeClass, normalizeStyle,
|
|
1
|
+
import { defineComponent, ref, reactive, useAttrs, computed, onMounted, onUnmounted, onActivated, createVNode, h, resolveComponent, Teleport, createTextVNode, isVNode, nextTick, watch, openBlock, createElementBlock, Fragment, createCommentVNode, createElementVNode, normalizeClass, normalizeStyle, unref, mergeProps, withCtx, createBlock, toDisplayString, renderSlot, withDirectives, vShow } from 'vue';
|
|
2
2
|
import bigTableState from './bigTableState.js';
|
|
3
3
|
import bigTableProps from './bigTableProps.js';
|
|
4
4
|
import bigTableEmits from './bigTableEmits.js';
|
|
@@ -21,14 +21,19 @@ import qr from '../../../src/assets/img/qr';
|
|
|
21
21
|
import script$1 from './components/NoData.vue_vue_type_script_setup_true_lang.js';
|
|
22
22
|
|
|
23
23
|
const _hoisted_1 = {
|
|
24
|
+
key: 0,
|
|
25
|
+
class: "check-wrap"
|
|
26
|
+
};
|
|
27
|
+
const _hoisted_2 = /* @__PURE__ */ createElementVNode("span", null, "\u7CFB\u7EDF\u68C0\u6D4B\u5230\u6709\u6570\u636E\u66F4\u65B0,", -1);
|
|
28
|
+
const _hoisted_3 = {
|
|
24
29
|
key: 0
|
|
25
30
|
};
|
|
26
|
-
const
|
|
31
|
+
const _hoisted_4 = /* @__PURE__ */ createElementVNode("i", {
|
|
27
32
|
class: "disabled-checked-tips"
|
|
28
33
|
}, null, -1);
|
|
29
|
-
const
|
|
30
|
-
const
|
|
31
|
-
const
|
|
34
|
+
const _hoisted_5 = ["innerHTML"];
|
|
35
|
+
const _hoisted_6 = ["innerHTML"];
|
|
36
|
+
const _hoisted_7 = {
|
|
32
37
|
class: "refresh-row"
|
|
33
38
|
};
|
|
34
39
|
function _isSlot(s) {
|
|
@@ -931,6 +936,10 @@ var script = /* @__PURE__ */ defineComponent({
|
|
|
931
936
|
const config = (tableOptions == null ? void 0 : tableOptions.config) || {};
|
|
932
937
|
return config || void 0;
|
|
933
938
|
};
|
|
939
|
+
const refreshTable = () => {
|
|
940
|
+
state.hasRefresh = false;
|
|
941
|
+
emit("refreshTable");
|
|
942
|
+
};
|
|
934
943
|
const getRowClassName = (params) => {
|
|
935
944
|
const {
|
|
936
945
|
rowClassName = null
|
|
@@ -1258,7 +1267,7 @@ var script = /* @__PURE__ */ defineComponent({
|
|
|
1258
1267
|
let forbiddenBatchSelect = !checkMethod(data);
|
|
1259
1268
|
if (state.selectType == "checkbox" && forbiddenBatchSelect) {
|
|
1260
1269
|
table == null ? void 0 : table.setAllCheckboxRow(false);
|
|
1261
|
-
const checked2 = getRowClassName(
|
|
1270
|
+
const checked2 = getRowClassName({
|
|
1262
1271
|
row
|
|
1263
1272
|
}) == "single--checked";
|
|
1264
1273
|
const value = !checked2 ? [] : [row];
|
|
@@ -2177,15 +2186,27 @@ var script = /* @__PURE__ */ defineComponent({
|
|
|
2177
2186
|
xGrid
|
|
2178
2187
|
});
|
|
2179
2188
|
return (_ctx, _cache) => {
|
|
2180
|
-
return openBlock(), createElementBlock(
|
|
2189
|
+
return openBlock(), createElementBlock(Fragment, null, [createCommentVNode(` <div
|
|
2190
|
+
class="big-table custom-big-table"
|
|
2191
|
+
:class="{
|
|
2192
|
+
mt: state.visibleCheckAllWrap || state.visibleTreeCheck || state.hasRefresh,
|
|
2193
|
+
'expand-padding': !props.isNestTable
|
|
2194
|
+
}"
|
|
2195
|
+
:style="{ height: state.tableHeight }"
|
|
2196
|
+
> `), createElementVNode("div", {
|
|
2181
2197
|
class: normalizeClass(["big-table custom-big-table", {
|
|
2182
|
-
mt: state.
|
|
2198
|
+
mt: state.hasRefresh,
|
|
2183
2199
|
"expand-padding": !props.isNestTable
|
|
2184
2200
|
}]),
|
|
2185
2201
|
style: normalizeStyle({
|
|
2186
2202
|
height: state.tableHeight
|
|
2187
2203
|
})
|
|
2188
|
-
}, [
|
|
2204
|
+
}, [state.hasRefresh && !props.isNestTable ? (openBlock(), createElementBlock("div", _hoisted_1, [createElementVNode("p", {
|
|
2205
|
+
class: "check-wrap-title"
|
|
2206
|
+
}, [_hoisted_2, createElementVNode("span", {
|
|
2207
|
+
class: "check-wrap-btn",
|
|
2208
|
+
onClick: refreshTable
|
|
2209
|
+
}, "\u70B9\u51FB\u67E5\u770B")])])) : createCommentVNode("v-if", true), createCommentVNode(" \u5168\u9009 \u9009\u62E9\u6846 "), createCommentVNode(' <div\n v-show="state.visibleCheckAllWrap && !props.isInlineOperating && !props.isNestTable"\n class="check-wrap"\n >\n <p class="check-wrap-title">\n <span>\u5DF2\u52FE\u9009\u6570\u636E\u5171{{ allSelectedLength }}\u6761</span>\n <span v-show="state.visibleCheckAllWrapMore">\n \uFF08\u5F53\u524D\u9875{{ state.currentPageSelectedLength }}\u6761\uFF09\n </span>\n </p>\n <template v-if="state.visibleCheckAllWrapMore && !props.asyncCount">\n <p v-if="!visibleCancelCheckAllBtn" class="check-wrap-btn" @click="handleCheckAll">\n <span v-if="pageVO.total > maxCheckSize">\n {{ `\u52FE\u9009\u5168\u90E8\u9875 ${maxCheckSize}\u6761\u6570\u636E` }}\n </span>\n <span v-else>\n {{ `\u52FE\u9009\u5168\u90E8\u9875 ${pageVO.total}\u6761\u6570\u636E` }}\n </span>\n </p>\n <p v-else class="check-wrap-btn" @click="handleCancelAllCheck">\u53D6\u6D88\u5168\u90E8\u52FE\u9009</p>\n </template>\n </div> '), createCommentVNode(" \u6811\u72B6\u8868\u683C\u5DF2\u9009 "), createCommentVNode(' <div\n v-show="state.visibleTreeCheck && !props.isInlineOperating && !props.isNestTable"\n class="check-wrap"\n >\n <p class="check-wrap-title">\n <span>\u5DF2\u52FE\u9009\u6570\u636E\u5171{{ state.treeTableLength }}\u6761</span>\n </p>\n </div> '), createVNode(unref(CGrid), mergeProps({
|
|
2189
2210
|
ref_key: "xGrid",
|
|
2190
2211
|
ref: xGrid,
|
|
2191
2212
|
border: "",
|
|
@@ -2258,7 +2279,7 @@ var script = /* @__PURE__ */ defineComponent({
|
|
|
2258
2279
|
onCellMouseenter: handleCellMouseenter,
|
|
2259
2280
|
onKeydown: unref(keyDown)
|
|
2260
2281
|
}), {
|
|
2261
|
-
empty: withCtx(() => [state.isShowEmpty ? (openBlock(), createElementBlock("div",
|
|
2282
|
+
empty: withCtx(() => [state.isShowEmpty ? (openBlock(), createElementBlock("div", _hoisted_3, [createVNode(script$1, {
|
|
2262
2283
|
"no-data-img": props.emptyItems.noDataImg,
|
|
2263
2284
|
"no-data-tip": props.emptyItems.noDataTip,
|
|
2264
2285
|
"show-img": !props.isNestTable
|
|
@@ -2271,7 +2292,7 @@ var script = /* @__PURE__ */ defineComponent({
|
|
|
2271
2292
|
trigger: "hover",
|
|
2272
2293
|
placement: "right"
|
|
2273
2294
|
}, {
|
|
2274
|
-
trigger: withCtx(() => [
|
|
2295
|
+
trigger: withCtx(() => [_hoisted_4]),
|
|
2275
2296
|
default: withCtx(() => [createTextVNode(" " + toDisplayString(row.forbiddenBatchSelectReason), 1)]),
|
|
2276
2297
|
_: 2
|
|
2277
2298
|
}, 1024)) : (openBlock(), createBlock(unref(NCheckbox), {
|
|
@@ -2284,7 +2305,7 @@ var script = /* @__PURE__ */ defineComponent({
|
|
|
2284
2305
|
}) => [createCommentVNode(" \u5206\u7EC4\u7EDF\u8BA1 "), _ctx.groupCountFields && _ctx.groupCountFields.length ? (openBlock(), createElementBlock("span", {
|
|
2285
2306
|
key: 0,
|
|
2286
2307
|
innerHTML: state.groupText
|
|
2287
|
-
}, null, 8,
|
|
2308
|
+
}, null, 8, _hoisted_5)) : (openBlock(), createElementBlock(Fragment, {
|
|
2288
2309
|
key: 1
|
|
2289
2310
|
}, [createCommentVNode(" \u4E00\u822C\u7EDF\u8BA1 "), createVNode(unref(NTooltip), {
|
|
2290
2311
|
trigger: "hover"
|
|
@@ -2292,7 +2313,7 @@ var script = /* @__PURE__ */ defineComponent({
|
|
|
2292
2313
|
trigger: withCtx(() => [createTextVNode(toDisplayString(getFooterTitle(column)), 1)]),
|
|
2293
2314
|
default: withCtx(() => [createElementVNode("div", {
|
|
2294
2315
|
innerHTML: getFooterTooltipTitle(column)
|
|
2295
|
-
}, null, 8,
|
|
2316
|
+
}, null, 8, _hoisted_6)]),
|
|
2296
2317
|
_: 2
|
|
2297
2318
|
}, 1024)], 2112))]),
|
|
2298
2319
|
nest_table_content: withCtx(({
|
|
@@ -2315,7 +2336,7 @@ var script = /* @__PURE__ */ defineComponent({
|
|
|
2315
2336
|
}, [createVNode(unref(NIcon), {
|
|
2316
2337
|
size: "14",
|
|
2317
2338
|
component: unref(SyncOutline)
|
|
2318
|
-
}, null, 8, ["component"]), createElementVNode("p",
|
|
2339
|
+
}, null, 8, ["component"]), createElementVNode("p", _hoisted_7, toDisplayString(_ctx.refreshRow) + "\u6761\u66F4\u65B0", 1)], 512), [[vShow, props.refreshRow > 0 && !props.isNestTable]])], 6)], 2112);
|
|
2319
2340
|
};
|
|
2320
2341
|
}
|
|
2321
2342
|
});
|
|
@@ -23,6 +23,27 @@ declare const VodChunkUpload: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
23
23
|
default: () => Promise<{}>;
|
|
24
24
|
};
|
|
25
25
|
}, {
|
|
26
|
+
VodState: {
|
|
27
|
+
videoVisible: boolean;
|
|
28
|
+
fileList: never[];
|
|
29
|
+
cacheFileObj: {};
|
|
30
|
+
playerOptions: {};
|
|
31
|
+
vodClient: null;
|
|
32
|
+
chunkUploadVisible: boolean;
|
|
33
|
+
uploader: null;
|
|
34
|
+
autoStart: boolean;
|
|
35
|
+
timeOuts: number;
|
|
36
|
+
configList: never[];
|
|
37
|
+
draggableOptions: {
|
|
38
|
+
group: string;
|
|
39
|
+
filter: string;
|
|
40
|
+
delayOnTouchOnly: boolean;
|
|
41
|
+
delay: number;
|
|
42
|
+
touchStartThreshold: number;
|
|
43
|
+
chosenClass: string;
|
|
44
|
+
dragClass: string;
|
|
45
|
+
};
|
|
46
|
+
};
|
|
26
47
|
state: {
|
|
27
48
|
videoVisible: boolean;
|
|
28
49
|
fileList: never[];
|
|
@@ -1746,9 +1767,9 @@ declare const VodChunkUpload: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
1746
1767
|
}, {
|
|
1747
1768
|
isDetail: boolean;
|
|
1748
1769
|
isLock: boolean;
|
|
1770
|
+
getChunkUploadConfig: Function;
|
|
1749
1771
|
formData: Record<string, any>;
|
|
1750
1772
|
limitNum: number;
|
|
1751
1773
|
defFileList: string;
|
|
1752
|
-
getChunkUploadConfig: Function;
|
|
1753
1774
|
}>>;
|
|
1754
1775
|
export default VodChunkUpload;
|
|
@@ -24,6 +24,35 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
24
24
|
default: () => Promise<{}>;
|
|
25
25
|
};
|
|
26
26
|
}, {
|
|
27
|
+
UploadState: {
|
|
28
|
+
spinning: boolean;
|
|
29
|
+
uploadConfig: {};
|
|
30
|
+
progress: number;
|
|
31
|
+
options: {
|
|
32
|
+
target: {};
|
|
33
|
+
chunkSize: number;
|
|
34
|
+
fileParameterName: string;
|
|
35
|
+
maxChunkRetries: number;
|
|
36
|
+
simultaneousUploads: number;
|
|
37
|
+
prioritizeFirstAndLastChunk: boolean;
|
|
38
|
+
forceChunkSize: boolean;
|
|
39
|
+
testChunks: boolean;
|
|
40
|
+
headers: {};
|
|
41
|
+
query(): void;
|
|
42
|
+
processParams: {};
|
|
43
|
+
parseTimeRemaining: {};
|
|
44
|
+
processResponse: {};
|
|
45
|
+
};
|
|
46
|
+
attrs: {};
|
|
47
|
+
collapse: boolean;
|
|
48
|
+
configList: never[];
|
|
49
|
+
share: number;
|
|
50
|
+
baseUrl: string;
|
|
51
|
+
headers: {
|
|
52
|
+
Authorization: string;
|
|
53
|
+
};
|
|
54
|
+
withCredentials: boolean;
|
|
55
|
+
};
|
|
27
56
|
instance: import("axios").AxiosInstance;
|
|
28
57
|
count: number;
|
|
29
58
|
uploaderDom: any;
|
|
@@ -1706,6 +1735,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1706
1735
|
textColorLineInner: string;
|
|
1707
1736
|
textColorLineOuter: string;
|
|
1708
1737
|
fillColor: string;
|
|
1738
|
+
/**
|
|
1739
|
+
* 格式化进度跳
|
|
1740
|
+
*/
|
|
1709
1741
|
fillColorInfo: string;
|
|
1710
1742
|
fillColorSuccess: string;
|
|
1711
1743
|
fillColorWarning: string;
|
package/es/packages/chunk-upload/src/chunk-upload-new.vue_vue_type_script_setup_true_lang.js
CHANGED
|
@@ -2,7 +2,7 @@ import { defineComponent, ref, reactive, onMounted, nextTick, onUnmounted, resol
|
|
|
2
2
|
import SparkMD5 from 'spark-md5';
|
|
3
3
|
import axios from 'axios';
|
|
4
4
|
import { useMessage, NIcon, NProgress, NButton } from 'naive-ui';
|
|
5
|
-
import { UploadProps,
|
|
5
|
+
import { UploadProps, getUploadData, statusSet } from './hooks/upload-data.js';
|
|
6
6
|
import { UploadComputed } from './hooks/upload-computed.js';
|
|
7
7
|
import { FolderOutline, DocumentAttachOutline, Close } from '@vicons/ionicons5';
|
|
8
8
|
|
|
@@ -27,10 +27,11 @@ var script = /* @__PURE__ */ defineComponent({
|
|
|
27
27
|
emits: ["getSumbitList", "closeUpload"],
|
|
28
28
|
setup(__props, { expose, emit }) {
|
|
29
29
|
const props = __props;
|
|
30
|
+
const { UploadState } = getUploadData();
|
|
30
31
|
var instance = axios.create({});
|
|
31
32
|
const uploaderDom = ref(null);
|
|
32
33
|
const uploadBtnDom = ref(null);
|
|
33
|
-
const state = reactive(
|
|
34
|
+
const state = reactive(UploadState);
|
|
34
35
|
const message = useMessage();
|
|
35
36
|
const { initState, uploadArguments, autoStart, btnAttrs } = UploadComputed(props, state);
|
|
36
37
|
initState();
|
|
@@ -1,31 +1,33 @@
|
|
|
1
|
-
export declare const
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
1
|
+
export declare const getUploadData: () => {
|
|
2
|
+
UploadState: {
|
|
3
|
+
spinning: boolean;
|
|
4
|
+
uploadConfig: {};
|
|
5
|
+
progress: number;
|
|
6
|
+
options: {
|
|
7
|
+
target: {};
|
|
8
|
+
chunkSize: number;
|
|
9
|
+
fileParameterName: string;
|
|
10
|
+
maxChunkRetries: number;
|
|
11
|
+
simultaneousUploads: number;
|
|
12
|
+
prioritizeFirstAndLastChunk: boolean;
|
|
13
|
+
forceChunkSize: boolean;
|
|
14
|
+
testChunks: boolean;
|
|
15
|
+
headers: {};
|
|
16
|
+
query(): void;
|
|
17
|
+
processParams: {};
|
|
18
|
+
parseTimeRemaining: {};
|
|
19
|
+
processResponse: {};
|
|
20
|
+
};
|
|
21
|
+
attrs: {};
|
|
22
|
+
collapse: boolean;
|
|
23
|
+
configList: never[];
|
|
24
|
+
share: number;
|
|
25
|
+
baseUrl: string;
|
|
26
|
+
headers: {
|
|
27
|
+
Authorization: string;
|
|
28
|
+
};
|
|
29
|
+
withCredentials: boolean;
|
|
19
30
|
};
|
|
20
|
-
attrs: {};
|
|
21
|
-
collapse: boolean;
|
|
22
|
-
configList: never[];
|
|
23
|
-
share: number;
|
|
24
|
-
baseUrl: string;
|
|
25
|
-
headers: {
|
|
26
|
-
Authorization: string;
|
|
27
|
-
};
|
|
28
|
-
withCredentials: boolean;
|
|
29
31
|
};
|
|
30
32
|
export declare const UploadProps: {
|
|
31
33
|
propsCategoryMap: {
|
|
@@ -1,32 +1,35 @@
|
|
|
1
|
-
const
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
1
|
+
const getUploadData = () => {
|
|
2
|
+
const UploadState = {
|
|
3
|
+
spinning: false,
|
|
4
|
+
uploadConfig: {},
|
|
5
|
+
progress: 0,
|
|
6
|
+
options: {
|
|
7
|
+
target: {},
|
|
8
|
+
chunkSize: 3 * 1024 * 1024,
|
|
9
|
+
fileParameterName: "file",
|
|
10
|
+
maxChunkRetries: 3,
|
|
11
|
+
simultaneousUploads: 3,
|
|
12
|
+
prioritizeFirstAndLastChunk: true,
|
|
13
|
+
forceChunkSize: true,
|
|
14
|
+
testChunks: false,
|
|
15
|
+
headers: {},
|
|
16
|
+
query() {
|
|
17
|
+
},
|
|
18
|
+
processParams: {},
|
|
19
|
+
parseTimeRemaining: {},
|
|
20
|
+
processResponse: {}
|
|
16
21
|
},
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
},
|
|
29
|
-
withCredentials: false
|
|
22
|
+
attrs: {},
|
|
23
|
+
collapse: false,
|
|
24
|
+
configList: [],
|
|
25
|
+
share: 1,
|
|
26
|
+
baseUrl: "http://192.168.20.113:12060",
|
|
27
|
+
headers: {
|
|
28
|
+
Authorization: "bearer d012a22a9f284801b1bed4c20f3715de"
|
|
29
|
+
},
|
|
30
|
+
withCredentials: false
|
|
31
|
+
};
|
|
32
|
+
return { UploadState };
|
|
30
33
|
};
|
|
31
34
|
const UploadProps = {
|
|
32
35
|
propsCategoryMap: { type: String, default: "" },
|
|
@@ -90,4 +93,4 @@ const statusSet = (file, status) => {
|
|
|
90
93
|
file.file_upload_status = { ...statusMap[status] };
|
|
91
94
|
};
|
|
92
95
|
|
|
93
|
-
export { UploadProps,
|
|
96
|
+
export { UploadProps, getUploadData, statusSet };
|
|
@@ -1,44 +1,23 @@
|
|
|
1
|
-
export declare const
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
};
|
|
23
|
-
};
|
|
24
|
-
export declare const VodState: {
|
|
25
|
-
videoVisible: boolean;
|
|
26
|
-
fileList: never[];
|
|
27
|
-
cacheFileObj: {};
|
|
28
|
-
playerOptions: {};
|
|
29
|
-
vodClient: null;
|
|
30
|
-
chunkUploadVisible: boolean;
|
|
31
|
-
uploader: null;
|
|
32
|
-
autoStart: boolean;
|
|
33
|
-
timeOuts: number;
|
|
34
|
-
configList: never[];
|
|
35
|
-
draggableOptions: {
|
|
36
|
-
group: string;
|
|
37
|
-
filter: string;
|
|
38
|
-
delayOnTouchOnly: boolean;
|
|
39
|
-
delay: number;
|
|
40
|
-
touchStartThreshold: number;
|
|
41
|
-
chosenClass: string;
|
|
42
|
-
dragClass: string;
|
|
1
|
+
export declare const getVodData: () => {
|
|
2
|
+
VodState: {
|
|
3
|
+
videoVisible: boolean;
|
|
4
|
+
fileList: never[];
|
|
5
|
+
cacheFileObj: {};
|
|
6
|
+
playerOptions: {};
|
|
7
|
+
vodClient: null;
|
|
8
|
+
chunkUploadVisible: boolean;
|
|
9
|
+
uploader: null;
|
|
10
|
+
autoStart: boolean;
|
|
11
|
+
timeOuts: number;
|
|
12
|
+
configList: never[];
|
|
13
|
+
draggableOptions: {
|
|
14
|
+
group: string;
|
|
15
|
+
filter: string;
|
|
16
|
+
delayOnTouchOnly: boolean;
|
|
17
|
+
delay: number;
|
|
18
|
+
touchStartThreshold: number;
|
|
19
|
+
chosenClass: string;
|
|
20
|
+
dragClass: string;
|
|
21
|
+
};
|
|
43
22
|
};
|
|
44
23
|
};
|
|
@@ -1,33 +1,28 @@
|
|
|
1
|
-
const
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
delay: 100,
|
|
27
|
-
touchStartThreshold: 3,
|
|
28
|
-
chosenClass: "upload-chosen-draing",
|
|
29
|
-
dragClass: "upload-sortable-drag"
|
|
30
|
-
}
|
|
1
|
+
const getVodData = () => {
|
|
2
|
+
const VodState = {
|
|
3
|
+
videoVisible: false,
|
|
4
|
+
fileList: [],
|
|
5
|
+
cacheFileObj: {},
|
|
6
|
+
playerOptions: {},
|
|
7
|
+
vodClient: null,
|
|
8
|
+
chunkUploadVisible: false,
|
|
9
|
+
uploader: null,
|
|
10
|
+
autoStart: true,
|
|
11
|
+
timeOuts: 6e4 * 5,
|
|
12
|
+
configList: [],
|
|
13
|
+
draggableOptions: {
|
|
14
|
+
group: "upload-com-item",
|
|
15
|
+
filter: ".uploading-item",
|
|
16
|
+
delayOnTouchOnly: true,
|
|
17
|
+
delay: 100,
|
|
18
|
+
touchStartThreshold: 3,
|
|
19
|
+
chosenClass: "upload-chosen-draing",
|
|
20
|
+
dragClass: "upload-sortable-drag"
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
return {
|
|
24
|
+
VodState
|
|
25
|
+
};
|
|
31
26
|
};
|
|
32
27
|
|
|
33
|
-
export {
|
|
28
|
+
export { getVodData };
|
|
@@ -21,6 +21,27 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
21
21
|
default: () => Promise<{}>;
|
|
22
22
|
};
|
|
23
23
|
}, {
|
|
24
|
+
VodState: {
|
|
25
|
+
videoVisible: boolean;
|
|
26
|
+
fileList: never[];
|
|
27
|
+
cacheFileObj: {};
|
|
28
|
+
playerOptions: {};
|
|
29
|
+
vodClient: null;
|
|
30
|
+
chunkUploadVisible: boolean;
|
|
31
|
+
uploader: null;
|
|
32
|
+
autoStart: boolean;
|
|
33
|
+
timeOuts: number;
|
|
34
|
+
configList: never[];
|
|
35
|
+
draggableOptions: {
|
|
36
|
+
group: string;
|
|
37
|
+
filter: string;
|
|
38
|
+
delayOnTouchOnly: boolean;
|
|
39
|
+
delay: number;
|
|
40
|
+
touchStartThreshold: number;
|
|
41
|
+
chosenClass: string;
|
|
42
|
+
dragClass: string;
|
|
43
|
+
};
|
|
44
|
+
};
|
|
24
45
|
state: {
|
|
25
46
|
videoVisible: boolean;
|
|
26
47
|
fileList: never[];
|
|
@@ -136,6 +157,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
136
157
|
updatePosition(oldIndex: any, newIndex: any): void;
|
|
137
158
|
getRelatedContextFromMoveEvent({ to, related }: {
|
|
138
159
|
to: any;
|
|
160
|
+
/**
|
|
161
|
+
* 支持的格式
|
|
162
|
+
* MP4、TS、MOV、MXF、MPG、FLV、WMV、AVI、M4V、F4V、MPEG、3GP、ASF、MKV、HLS
|
|
163
|
+
*/
|
|
164
|
+
/**
|
|
165
|
+
* simple-uploader 配置文档
|
|
166
|
+
* https://github.com/simple-uploader/Uploader/blob/develop/README_zh-CN.md#%E9%85%8D%E7%BD%AE
|
|
167
|
+
*/
|
|
139
168
|
related: any;
|
|
140
169
|
}): any;
|
|
141
170
|
getVmIndexFromDomIndex(domIndex: any): any;
|
|
@@ -268,7 +297,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
268
297
|
opacity3Depth: string;
|
|
269
298
|
opacity4Depth: string;
|
|
270
299
|
opacity5Depth: string;
|
|
271
|
-
}, any>>>;
|
|
300
|
+
}, any>>>; /** 获取提交的数据 */
|
|
272
301
|
}, {
|
|
273
302
|
mergedClsPrefix: import("vue").ComputedRef<string>;
|
|
274
303
|
mergedStyle: import("vue").ComputedRef<{
|
|
@@ -1744,9 +1773,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1744
1773
|
}, {
|
|
1745
1774
|
isDetail: boolean;
|
|
1746
1775
|
isLock: boolean;
|
|
1776
|
+
getChunkUploadConfig: Function;
|
|
1747
1777
|
formData: Record<string, any>;
|
|
1748
1778
|
limitNum: number;
|
|
1749
1779
|
defFileList: string;
|
|
1750
|
-
getChunkUploadConfig: Function;
|
|
1751
1780
|
}>;
|
|
1752
1781
|
export default _default;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent, reactive, computed, onMounted, openBlock, createElementBlock, withDirectives, normalizeClass, unref, createElementVNode, Fragment, vShow, createCommentVNode, createVNode, withCtx, normalizeStyle, toDisplayString, withModifiers, createBlock, createTextVNode } from 'vue';
|
|
2
2
|
import Draggable from 'vuedraggable';
|
|
3
3
|
import vexutils from '../../../../src/utils/vexutils';
|
|
4
|
-
import {
|
|
4
|
+
import { getVodData } from '../hooks/vod-data.js';
|
|
5
5
|
import { VodComputed } from '../hooks/vod-computed.js';
|
|
6
6
|
import videoModal from '../../../../src/components/player-vod/video-modal';
|
|
7
7
|
import vodUploadModal from '../vod-upload-modal.js';
|
|
@@ -40,11 +40,21 @@ const _hoisted_18 = /* @__PURE__ */ createTextVNode("\u786E\u5B9A");
|
|
|
40
40
|
const _hoisted_19 = ["onClick"];
|
|
41
41
|
var script = /* @__PURE__ */ defineComponent({
|
|
42
42
|
__name: "vod-chunk-upload",
|
|
43
|
-
props: {
|
|
43
|
+
props: {
|
|
44
|
+
formData: { type: Object, default: () => ({}) },
|
|
45
|
+
defList: [Array, String],
|
|
46
|
+
source: String,
|
|
47
|
+
limitNum: { default: 1 },
|
|
48
|
+
defFileList: { default: "" },
|
|
49
|
+
isLock: Boolean,
|
|
50
|
+
isDetail: { type: Boolean, default: false },
|
|
51
|
+
getChunkUploadConfig: { type: Function, default: () => Promise.resolve({}) }
|
|
52
|
+
},
|
|
44
53
|
emits: ["vodFileList"],
|
|
45
54
|
setup(__props, { emit }) {
|
|
46
55
|
const props = __props;
|
|
47
|
-
const
|
|
56
|
+
const { VodState } = getVodData();
|
|
57
|
+
const state = reactive(VodState);
|
|
48
58
|
const mainForm = {};
|
|
49
59
|
const {
|
|
50
60
|
isShowBtn,
|
|
@@ -189,7 +199,7 @@ var script = /* @__PURE__ */ defineComponent({
|
|
|
189
199
|
});
|
|
190
200
|
return (_ctx, _cache) => {
|
|
191
201
|
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
192
|
-
!
|
|
202
|
+
!__props.isDetail ? withDirectives((openBlock(), createElementBlock("div", {
|
|
193
203
|
key: 0,
|
|
194
204
|
class: normalizeClass(["c-chunk-uploader-btn", { "disable-upload": unref(isDisabled) }]),
|
|
195
205
|
onClick: handleBtnOnClick
|
|
@@ -286,7 +296,7 @@ var script = /* @__PURE__ */ defineComponent({
|
|
|
286
296
|
])
|
|
287
297
|
])
|
|
288
298
|
], 64)) : createCommentVNode("v-if", true),
|
|
289
|
-
["done", "error"].includes(element.status) && !unref(isDisabled) && !
|
|
299
|
+
["done", "error"].includes(element.status) && !unref(isDisabled) && !__props.isDetail ? (openBlock(), createElementBlock("div", {
|
|
290
300
|
key: 3,
|
|
291
301
|
onClick: withModifiers(($event) => handleDelFileList(index), ["stop"]),
|
|
292
302
|
class: "uploader-preview-delete"
|
|
@@ -315,7 +325,7 @@ var script = /* @__PURE__ */ defineComponent({
|
|
|
315
325
|
maxLength: unref(maxlength),
|
|
316
326
|
propsCategoryMap: unref(allow_format),
|
|
317
327
|
defaultList: state.fileList,
|
|
318
|
-
getChunkUploadConfig:
|
|
328
|
+
getChunkUploadConfig: __props.getChunkUploadConfig,
|
|
319
329
|
onGetSumbitList: getSumbitList
|
|
320
330
|
}, null, 8, ["modelValue", "modalTitle", "max_size", "maxLength", "propsCategoryMap", "defaultList", "getChunkUploadConfig"])
|
|
321
331
|
]);
|