cnhis-design-vue 3.1.9-beta.11 → 3.1.9-beta.12

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.
Files changed (49) hide show
  1. package/es/packages/big-table/src/BigTable.vue_vue_type_script_setup_true_lang.js +34 -13
  2. package/es/packages/chunk-upload/index.d.ts +22 -1
  3. package/es/packages/chunk-upload/src/chunk-upload-new.vue.d.ts +32 -0
  4. package/es/packages/chunk-upload/src/chunk-upload-new.vue_vue_type_script_setup_true_lang.js +3 -2
  5. package/es/packages/chunk-upload/src/hooks/upload-data.d.ts +29 -27
  6. package/es/packages/chunk-upload/src/hooks/upload-data.js +32 -29
  7. package/es/packages/chunk-upload/src/hooks/vod-data.d.ts +21 -42
  8. package/es/packages/chunk-upload/src/hooks/vod-data.js +26 -31
  9. package/es/packages/chunk-upload/src/vod-chunk-upload/vod-chunk-upload.vue.d.ts +31 -2
  10. package/es/packages/chunk-upload/src/vod-chunk-upload/vod-chunk-upload.vue_vue_type_script_setup_true_lang.js +16 -6
  11. package/es/packages/chunk-upload/style/index.css +2 -0
  12. package/es/packages/fabric-chart/src/Center.js +4 -0
  13. package/es/packages/fabric-chart/src/Center.vue.d.ts +2 -0
  14. package/es/packages/fabric-chart/src/Center.vue_vue_type_script_setup_true_lang.js +15 -0
  15. package/es/packages/fabric-chart/src/FabricChart.vue_vue_type_script_setup_true_lang.js +14 -5
  16. package/es/packages/fabric-chart/src/Top.js +4 -0
  17. package/es/packages/fabric-chart/src/Top.vue_vue_type_script_setup_true_lang.js +128 -0
  18. package/es/packages/fabric-chart/src/hooks/useDraw.d.ts +35 -0
  19. package/es/packages/fabric-chart/src/hooks/useDraw.js +75 -0
  20. package/es/packages/fabric-chart/src/hooks/useGrid.d.ts +1 -0
  21. package/es/packages/fabric-chart/src/hooks/useGrid.js +47 -0
  22. package/es/packages/fabric-chart/src/interface.d.ts +80 -0
  23. package/es/packages/fabric-chart/src/interface.js +4 -0
  24. package/es/packages/index.css +24 -4
  25. package/es/packages/scale-view/index.d.ts +137 -0
  26. package/es/packages/scale-view/src/ScaleView.vue.d.ts +119 -0
  27. package/es/packages/scale-view/src/ScaleView.vue_vue_type_script_setup_true_lang.js +24 -22
  28. package/es/packages/scale-view/src/components/formitem/r-checkbox.d.ts +9 -0
  29. package/es/packages/scale-view/src/components/formitem/r-checkbox.js +46 -7
  30. package/es/packages/scale-view/src/components/formitem/r-datetime.js +3 -1
  31. package/es/packages/scale-view/src/components/formitem/r-radio.d.ts +9 -0
  32. package/es/packages/scale-view/src/components/formitem/r-radio.js +12 -6
  33. package/es/packages/scale-view/src/hooks/scaleview-computed.js +5 -13
  34. package/es/packages/scale-view/src/hooks/scaleview-props.d.ts +28 -0
  35. package/es/packages/scale-view/src/hooks/scaleview-props.js +21 -0
  36. package/es/packages/scale-view/src/hooks/scaleview-state.d.ts +32 -31
  37. package/es/packages/scale-view/src/hooks/scaleview-state.js +41 -38
  38. package/es/packages/scale-view/src/hooks/use-component.d.ts +103 -2
  39. package/es/packages/scale-view/style/index.css +3 -0
  40. package/es/packages/select-label/index.d.ts +46 -2
  41. package/es/packages/select-label/src/LabelFormContent.vue.d.ts +1 -1
  42. package/es/packages/select-label/src/SelectLabel.vue.d.ts +58 -8
  43. package/es/packages/select-label/src/SelectLabel.vue_vue_type_script_setup_true_lang.js +20 -2
  44. package/es/packages/select-label/src/components/label-classify.vue_vue_type_script_setup_true_lang.js +4 -1
  45. package/es/packages/select-label/style/index.css +10 -0
  46. package/es/src/components/player-vod/video-modal.js +1 -1
  47. package/package.json +3 -2
  48. package/es/packages/fabric-chart/index.d.ts +0 -108
  49. package/es/packages/fabric-chart/src/FabricChart.vue.d.ts +0 -109
@@ -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, createCommentVNode, unref, mergeProps, withCtx, createBlock, toDisplayString, Fragment, createElementVNode, renderSlot, withDirectives, vShow } from 'vue';
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 _hoisted_2 = /* @__PURE__ */ createElementVNode("i", {
31
+ const _hoisted_4 = /* @__PURE__ */ createElementVNode("i", {
27
32
  class: "disabled-checked-tips"
28
33
  }, null, -1);
29
- const _hoisted_3 = ["innerHTML"];
30
- const _hoisted_4 = ["innerHTML"];
31
- const _hoisted_5 = {
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
@@ -2177,15 +2186,27 @@ var script = /* @__PURE__ */ defineComponent({
2177
2186
  xGrid
2178
2187
  });
2179
2188
  return (_ctx, _cache) => {
2180
- return openBlock(), createElementBlock("div", {
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.visibleCheckAllWrap || state.visibleTreeCheck || state.hasRefresh,
2198
+ mt: state.hasRefresh,
2183
2199
  "expand-padding": !props.isNestTable
2184
2200
  }]),
2185
2201
  style: normalizeStyle({
2186
2202
  height: state.tableHeight
2187
2203
  })
2188
- }, [createCommentVNode(' <div v-if="state.hasRefresh && !props.isNestTable" class="check-wrap">\n <p class="check-wrap-title">\n <span>\u7CFB\u7EDF\u68C0\u6D4B\u5230\u6709\u6570\u636E\u66F4\u65B0,</span>\n <span class="check-wrap-btn" @click="refreshTable">\u70B9\u51FB\u67E5\u770B</span>\n </p>\n </div> '), 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({
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", _hoisted_1, [createVNode(script$1, {
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(() => [_hoisted_2]),
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, _hoisted_3)) : (openBlock(), createElementBlock(Fragment, {
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, _hoisted_4)]),
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", _hoisted_5, toDisplayString(_ctx.refreshRow) + "\u6761\u66F4\u65B0", 1)], 512), [[vShow, props.refreshRow > 0 && !props.isNestTable]])], 6);
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;
@@ -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, UploadState, statusSet } from './hooks/upload-data.js';
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({ ...UploadState });
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 UploadState: {
2
- spinning: boolean;
3
- uploadConfig: {};
4
- progress: number;
5
- options: {
6
- target: {};
7
- chunkSize: number;
8
- fileParameterName: string;
9
- maxChunkRetries: number;
10
- simultaneousUploads: number;
11
- prioritizeFirstAndLastChunk: boolean;
12
- forceChunkSize: boolean;
13
- testChunks: boolean;
14
- headers: {};
15
- query(): void;
16
- processParams: {};
17
- parseTimeRemaining: {};
18
- processResponse: {};
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 UploadState = {
2
- spinning: false,
3
- uploadConfig: {},
4
- progress: 0,
5
- options: {
6
- target: {},
7
- chunkSize: 3 * 1024 * 1024,
8
- fileParameterName: "file",
9
- maxChunkRetries: 3,
10
- simultaneousUploads: 3,
11
- prioritizeFirstAndLastChunk: true,
12
- forceChunkSize: true,
13
- testChunks: false,
14
- headers: {},
15
- query() {
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
- processParams: {},
18
- parseTimeRemaining: {},
19
- processResponse: {}
20
- },
21
- attrs: {},
22
- collapse: false,
23
- configList: [],
24
- share: 1,
25
- baseUrl: "http://192.168.20.113:12060",
26
- headers: {
27
- Authorization: "bearer d012a22a9f284801b1bed4c20f3715de"
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, UploadState, statusSet };
96
+ export { UploadProps, getUploadData, statusSet };
@@ -1,44 +1,23 @@
1
- export declare const VodProps: {
2
- formData: {
3
- type: ObjectConstructor;
4
- default: () => {};
5
- };
6
- defList: (ArrayConstructor | StringConstructor)[];
7
- source: StringConstructor;
8
- limitNum: {
9
- default: number;
10
- };
11
- defFileList: {
12
- default: string;
13
- };
14
- isLock: BooleanConstructor;
15
- isDetail: {
16
- type: BooleanConstructor;
17
- default: boolean;
18
- };
19
- getChunkUploadConfig: {
20
- type: FunctionConstructor;
21
- default: () => Promise<{}>;
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 VodProps = {
2
- formData: { type: Object, default: () => ({}) },
3
- defList: [Array, String],
4
- source: String,
5
- limitNum: { default: 1 },
6
- defFileList: { default: "" },
7
- isLock: Boolean,
8
- isDetail: { type: Boolean, default: false },
9
- getChunkUploadConfig: { type: Function, default: () => Promise.resolve({}) }
10
- };
11
- const VodState = {
12
- videoVisible: false,
13
- fileList: [],
14
- cacheFileObj: {},
15
- playerOptions: {},
16
- vodClient: null,
17
- chunkUploadVisible: false,
18
- uploader: null,
19
- autoStart: true,
20
- timeOuts: 6e4 * 5,
21
- configList: [],
22
- draggableOptions: {
23
- group: "upload-com-item",
24
- filter: ".uploading-item",
25
- delayOnTouchOnly: true,
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 { VodProps, VodState };
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 { VodProps, VodState } from '../hooks/vod-data.js';
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: { ...VodProps },
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 state = reactive({ ...VodState });
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
- !_ctx.isDetail ? withDirectives((openBlock(), createElementBlock("div", {
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) && !_ctx.isDetail ? (openBlock(), createElementBlock("div", {
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: _ctx.getChunkUploadConfig,
328
+ getChunkUploadConfig: __props.getChunkUploadConfig,
319
329
  onGetSumbitList: getSumbitList
320
330
  }, null, 8, ["modelValue", "modalTitle", "max_size", "maxLength", "propsCategoryMap", "defaultList", "getChunkUploadConfig"])
321
331
  ]);
@@ -289,8 +289,10 @@
289
289
  position: relative;
290
290
  top: 50%;
291
291
  left: 50%;
292
+ font-size: 46px;
292
293
  transform: translate(-50%, -50%);
293
294
  transition: all 0.25s ease-out;
295
+ cursor: pointer;
294
296
  }
295
297
  .c-icon-wrap .theme_outlined {
296
298
  display: inline-block;
@@ -0,0 +1,4 @@
1
+ import script from './Center.vue_vue_type_script_setup_true_lang.js';
2
+ export { default } from './Center.vue_vue_type_script_setup_true_lang.js';
3
+
4
+ script.__file = "packages/fabric-chart/src/Center.vue";
@@ -0,0 +1,2 @@
1
+ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
2
+ export default _default;
@@ -0,0 +1,15 @@
1
+ import { defineComponent } from 'vue';
2
+ import useGrid from './hooks/useGrid.js';
3
+ import { drawLine } from './hooks/useDraw.js';
4
+
5
+ var script = /* @__PURE__ */ defineComponent({
6
+ __name: "Center",
7
+ setup(__props) {
8
+ useGrid(drawLine);
9
+ return (_ctx, _cache) => {
10
+ return null;
11
+ };
12
+ }
13
+ });
14
+
15
+ export { script as default };