cnhis-design-vue 3.1.9-beta.8 → 3.1.10
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/README.md +22 -22
- package/es/packages/big-table/index.d.ts +1 -1
- package/es/packages/big-table/index.js +5 -5
- package/es/packages/big-table/src/BigTable.vue_vue_type_script_setup_true_lang.js +41 -20
- package/es/packages/big-table/src/components/NoData.vue_vue_type_script_setup_true_lang.js +4 -4
- package/es/packages/big-table/src/components/edit-form/edit-select-table.js +2 -2
- package/es/packages/big-table/src/components/edit-form/edit-select.js +1 -1
- package/es/packages/big-table/src/hooks/useEvent.js +1 -1
- package/es/packages/big-table/src/hooks/useFormat.js +1 -1
- package/es/packages/big-table/src/hooks/useNestTable.js +1 -1
- package/es/packages/big-table/src/hooks/useTableParse.js +1 -1
- package/es/packages/big-table/src/utils.js +2 -2
- package/es/packages/big-table/style/index.css +1 -6
- package/es/packages/bpmn-workflow/index.d.ts +1 -1
- package/es/packages/bpmn-workflow/index.js +2 -2
- package/es/packages/button-print/index.d.ts +1 -1
- package/es/packages/button-print/index.js +2 -2
- package/es/packages/chunk-upload/index.d.ts +23 -2
- package/es/packages/chunk-upload/index.js +3 -3
- package/es/packages/chunk-upload/src/chunk-upload-new.vue.d.ts +33 -3
- 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 +32 -3
- package/es/packages/chunk-upload/src/vod-chunk-upload/vod-chunk-upload.vue_vue_type_script_setup_true_lang.js +21 -11
- package/es/packages/chunk-upload/style/index.css +3 -1
- package/es/packages/drag-layout/index.d.ts +1 -1
- package/es/packages/drag-layout/index.js +3 -3
- package/es/packages/drag-layout/src/DragLayout.vue.d.ts +2 -3
- package/es/packages/drag-layout/src/DragLayout.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/packages/editor/index.d.ts +1 -1
- package/es/packages/editor/index.js +2 -2
- package/es/packages/fabric-chart/index.d.ts +21 -58
- package/es/packages/fabric-chart/index.js +2 -2
- package/es/packages/fabric-chart/src/FabricChart.vue.d.ts +20 -66
- package/es/packages/fabric-chart/src/FabricChart.vue_vue_type_script_setup_true_lang.js +98 -13
- 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 +15334 -0
- package/es/packages/field-set/index.d.ts +1 -1
- package/es/packages/field-set/index.js +2 -2
- package/es/packages/form-render/index.d.ts +12 -12
- package/es/packages/form-render/index.js +3 -2
- package/es/packages/form-render/src/FormRender.vue.d.ts +5 -5
- 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.d.ts +1 -1
- package/es/packages/form-render/src/components/cascader.js +0 -1
- package/es/packages/form-render/src/components/checkbox.d.ts +1 -1
- package/es/packages/form-render/src/components/complex.js +1 -1
- package/es/packages/form-render/src/components/radio.d.ts +1 -1
- package/es/packages/form-render/src/components/select.d.ts +1 -1
- package/es/packages/form-render/src/components/slider.js +1 -1
- package/es/packages/form-render/src/constants/index.d.ts +1 -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/useChangeContext.d.ts +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/useFormItemDeps.js +1 -1
- package/es/packages/form-render/src/hooks/useFormValidator.d.ts +1 -1
- 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/fieldItem.d.ts +1 -1
- package/es/packages/form-render/src/types/index.d.ts +2 -2
- package/es/packages/form-render/src/utils/index.d.ts +1 -1
- package/es/packages/form-render/style/index.css +1 -1
- package/es/packages/form-table/index.d.ts +391 -391
- package/es/packages/form-table/index.js +2 -2
- package/es/packages/form-table/src/FormTable.vue.d.ts +45 -45
- package/es/packages/form-table/src/FormTable.vue_vue_type_script_setup_true_lang.js +5 -5
- package/es/packages/form-table/src/components/index.d.ts +43 -43
- package/es/packages/form-table/src/components/table-age.vue.d.ts +10 -10
- package/es/packages/form-table/src/components/table-age.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/packages/form-table/src/components/table-date-picker.vue.d.ts +10 -10
- package/es/packages/form-table/src/components/table-digital.vue.d.ts +2 -2
- package/es/packages/form-table/src/components/table-digital.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/packages/form-table/src/components/table-input-password.vue.d.ts +2 -2
- package/es/packages/form-table/src/components/table-input-password.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/packages/form-table/src/components/table-input.vue.d.ts +2 -2
- package/es/packages/form-table/src/components/table-input.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/packages/form-table/src/components/table-month-picker.vue.d.ts +2 -2
- package/es/packages/form-table/src/components/table-month-picker.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/packages/form-table/src/components/table-search-more.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/packages/form-table/src/components/table-search.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/packages/form-table/src/components/table-select-multiple.vue.d.ts +10 -10
- package/es/packages/form-table/src/components/table-select-multiple.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/packages/form-table/src/components/table-select.vue.d.ts +10 -10
- package/es/packages/form-table/src/components/table-select.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/packages/form-table/src/components/table-textarea.vue.d.ts +10 -10
- package/es/packages/form-table/src/components/table-textarea.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/packages/form-table/src/components/table-time-picker.vue.d.ts +10 -10
- package/es/packages/form-table/src/components/table-time-picker.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/packages/form-table/src/components/table-tree-select.vue.d.ts +10 -10
- package/es/packages/form-table/src/components/table-tree-select.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/packages/form-table/src/configs/index.d.ts +1 -1
- package/es/packages/form-table/src/hooks/useBoundDate.d.ts +1 -1
- package/es/packages/form-table/src/hooks/useDateType.d.ts +1 -1
- package/es/packages/form-table/src/hooks/useDateType.js +1 -1
- package/es/packages/form-table/src/hooks/useFormCommon.d.ts +1 -1
- package/es/packages/form-table/src/hooks/useFormCommon.js +1 -1
- package/es/packages/form-table/src/hooks/useFormEvent.d.ts +1 -1
- package/es/packages/form-table/src/hooks/useFormEvent.js +1 -1
- package/es/packages/form-table/src/hooks/useItemDefault.d.ts +10 -10
- package/es/packages/form-table/src/hooks/useItemDefault.js +5 -5
- package/es/packages/form-table/src/hooks/useSearch.d.ts +10 -10
- package/es/packages/form-table/src/hooks/useSearch.js +2 -2
- package/es/packages/form-table/src/hooks/useValidate.d.ts +2 -2
- package/es/packages/form-table/src/types/index.d.ts +1 -1
- package/es/packages/grid/index.d.ts +1 -1
- package/es/packages/grid/index.js +4 -4
- package/es/packages/index.css +43 -21
- package/es/packages/index.js +1 -0
- package/es/packages/info-header/index.d.ts +6 -6
- package/es/packages/info-header/index.js +2 -2
- package/es/packages/info-header/src/InfoHeader.vue.d.ts +3 -3
- package/es/packages/info-header/src/SlotRender.d.ts +1 -1
- package/es/packages/map/index.d.ts +1 -1
- package/es/packages/map/index.js +2 -2
- package/es/packages/scale-view/index.d.ts +138 -1
- package/es/packages/scale-view/index.js +4 -4
- 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 +32 -25
- package/es/packages/scale-view/src/components/AnswerParse.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/packages/scale-view/src/components/EvaluateCountdown.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/packages/scale-view/src/components/LoadingCom.js +7 -0
- package/es/packages/scale-view/src/components/LoadingCom.vue_vue_type_template_id_413329b0_lang.js +16 -0
- package/es/packages/scale-view/src/components/NoData.vue_vue_type_script_setup_true_lang.js +4 -4
- 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-address.js +1 -1
- package/es/packages/scale-view/src/components/formitem/r-cascader.js +19 -7
- 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 +58 -13
- package/es/packages/scale-view/src/components/formitem/r-collection.js +1 -2
- package/es/packages/scale-view/src/components/formitem/r-datetime.js +6 -3
- package/es/packages/scale-view/src/components/formitem/r-map.js +2 -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/components/formitem/r-select.js +17 -8
- package/es/packages/scale-view/src/components/formitem/r-upload.js +3 -3
- package/es/packages/scale-view/src/components/formitem/text-over-tooltip/TextOverTooltip.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/packages/scale-view/src/hooks/scaleview-computed.js +6 -14
- package/es/packages/scale-view/src/hooks/scaleview-init.js +4 -2
- 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/scaleview-submit.js +1 -1
- package/es/packages/scale-view/src/hooks/scaleview-validate.js +1 -1
- package/es/packages/scale-view/src/hooks/use-component.d.ts +103 -2
- package/es/packages/scale-view/src/hooks/use-component.js +2 -2
- package/es/packages/scale-view/src/hooks/use-evaluate.js +1 -1
- package/es/packages/scale-view/src/hooks/use-event.js +1 -1
- package/es/packages/scale-view/style/index.css +19 -9
- package/es/packages/select-label/index.d.ts +47 -3
- package/es/packages/select-label/index.js +2 -2
- package/es/packages/select-label/src/LabelFormContent.vue.d.ts +2 -2
- package/es/packages/select-label/src/LabelFormContent.vue_vue_type_script_setup_true_lang.js +2 -3
- package/es/packages/select-label/src/SelectLabel.vue.d.ts +59 -9
- package/es/packages/select-label/src/SelectLabel.vue_vue_type_script_setup_true_lang.js +22 -4
- 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/packages/select-person/index.d.ts +1 -1
- package/es/packages/select-person/index.js +2 -2
- package/es/packages/select-person/src/SelectPerson.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/packages/time-line/index.d.ts +1 -1
- package/es/packages/time-line/index.js +2 -2
- package/es/src/assets/img/failure.d.ts +2 -0
- package/es/src/assets/img/failure.js +1 -0
- package/es/src/assets/img/icon-asc.d.ts +2 -0
- package/es/src/assets/img/icon-asc.js +1 -0
- package/es/src/assets/img/icon-desc.d.ts +2 -0
- package/es/src/assets/img/icon-desc.js +1 -0
- package/es/src/assets/img/no-permission.d.ts +2 -0
- package/es/src/assets/img/no-permission.js +1 -0
- package/es/src/assets/img/nodata.d.ts +2 -0
- package/es/src/assets/img/nodata.js +1 -0
- package/es/src/assets/img/notfound.d.ts +2 -0
- package/es/src/assets/img/notfound.js +1 -0
- package/es/src/assets/img/qr.d.ts +2 -0
- package/es/src/assets/img/qr.js +1 -0
- package/es/src/assets/img/success.d.ts +2 -0
- package/es/src/assets/img/success.js +1 -0
- package/es/src/assets/img/video.d.ts +2 -0
- package/es/src/assets/img/video.js +1 -0
- package/es/src/assets/img/video_default_cover.d.ts +2 -0
- package/es/src/assets/img/video_default_cover.js +1 -0
- package/es/src/assets/img/video_hover.d.ts +2 -0
- package/es/src/assets/img/video_hover.js +1 -0
- package/es/src/assets/img/video_play_hover.d.ts +2 -0
- package/es/src/assets/img/video_play_hover.js +1 -0
- package/es/src/assets/img/xb_big.d.ts +2 -0
- package/es/src/assets/img/xb_big.js +1 -0
- package/es/src/assets/img/xb_small.d.ts +2 -0
- package/es/src/assets/img/xb_small.js +1 -0
- package/es/src/components/SelectPage/SelectPage.vue.d.ts +1 -1
- package/es/src/components/TextOverTooltip/TextOverTooltip.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/src/components/player-vod/video-list.js +2 -2
- package/es/src/components/player-vod/video-modal.js +1 -1
- package/es/src/utils/loadViewer.js +1 -1
- package/es/src/utils/loadVxe.js +1 -1
- package/global.d.ts +8 -8
- package/package.json +2 -4
- package/test.ts +326 -0
- package/es/packages/big-table/style/index.less +0 -557
- 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 -3077
- 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 -755
- 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
- package/es/src/assets/img/failure.png +0 -0
- package/es/src/assets/img/icon-asc.png +0 -0
- package/es/src/assets/img/icon-desc.png +0 -0
- package/es/src/assets/img/no-permission.png +0 -0
- package/es/src/assets/img/nodata.png +0 -0
- package/es/src/assets/img/notfound.png +0 -0
- package/es/src/assets/img/qr.png +0 -0
- package/es/src/assets/img/success.png +0 -0
- package/es/src/assets/img/video.png +0 -0
- package/es/src/assets/img/video_default_cover.png +0 -0
- package/es/src/assets/img/video_hover.png +0 -0
- package/es/src/assets/img/video_play_hover.png +0 -0
- package/es/src/assets/img/xb_big.png +0 -0
- package/es/src/assets/img/xb_small.png +0 -0
package/README.md
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
# Vue 3 + Typescript + Vite
|
|
2
|
-
|
|
3
|
-
This template should help get you started developing with Vue 3 and Typescript in Vite. The template uses Vue 3 `<script setup>` SFCs, check out the [script setup docs](https://v3.vuejs.org/api/sfc-script-setup.html#sfc-script-setup) to learn more.
|
|
4
|
-
|
|
5
|
-
## Recommended IDE Setup
|
|
6
|
-
|
|
7
|
-
- [VSCode](https://code.visualstudio.com/) + [Volar](https://marketplace.visualstudio.com/items?itemName=johnsoncodehk.volar)
|
|
8
|
-
|
|
9
|
-
## Type Support For `.vue` Imports in TS
|
|
10
|
-
|
|
11
|
-
Since TypeScript cannot handle type information for `.vue` imports, they are shimmed to be a generic Vue component type by default. In most cases this is fine if you don't really care about component prop types outside of templates. However, if you wish to get actual prop types in `.vue` imports (for example to get props validation when using manual `h(...)` calls), you can enable Volar's `.vue` type support plugin by running `Volar: Switch TS Plugin on/off` from VSCode command palette.
|
|
12
|
-
|
|
13
|
-
## 使用
|
|
14
|
-
```JavaScript
|
|
15
|
-
import { createApp } from "vue";
|
|
16
|
-
import App from "./App.vue";
|
|
17
|
-
import cui from "cnhis-design-vue";
|
|
18
|
-
import "cnhis-design-vue/es/index.css";
|
|
19
|
-
|
|
20
|
-
const app = createApp(App);
|
|
21
|
-
app.use(cui);
|
|
22
|
-
app.mount("#app");
|
|
1
|
+
# Vue 3 + Typescript + Vite
|
|
2
|
+
|
|
3
|
+
This template should help get you started developing with Vue 3 and Typescript in Vite. The template uses Vue 3 `<script setup>` SFCs, check out the [script setup docs](https://v3.vuejs.org/api/sfc-script-setup.html#sfc-script-setup) to learn more.
|
|
4
|
+
|
|
5
|
+
## Recommended IDE Setup
|
|
6
|
+
|
|
7
|
+
- [VSCode](https://code.visualstudio.com/) + [Volar](https://marketplace.visualstudio.com/items?itemName=johnsoncodehk.volar)
|
|
8
|
+
|
|
9
|
+
## Type Support For `.vue` Imports in TS
|
|
10
|
+
|
|
11
|
+
Since TypeScript cannot handle type information for `.vue` imports, they are shimmed to be a generic Vue component type by default. In most cases this is fine if you don't really care about component prop types outside of templates. However, if you wish to get actual prop types in `.vue` imports (for example to get props validation when using manual `h(...)` calls), you can enable Volar's `.vue` type support plugin by running `Volar: Switch TS Plugin on/off` from VSCode command palette.
|
|
12
|
+
|
|
13
|
+
## 使用
|
|
14
|
+
```JavaScript
|
|
15
|
+
import { createApp } from "vue";
|
|
16
|
+
import App from "./App.vue";
|
|
17
|
+
import cui from "cnhis-design-vue";
|
|
18
|
+
import "cnhis-design-vue/es/index.css";
|
|
19
|
+
|
|
20
|
+
const app = createApp(App);
|
|
21
|
+
app.use(cui);
|
|
22
|
+
app.mount("#app");
|
|
23
23
|
```
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { COMPONENT_NAMESPACE } from '
|
|
2
|
-
import { safeComponentRegister } from '
|
|
3
|
-
import { loadVxeTable } from '
|
|
4
|
-
import { expandXEUtils } from '
|
|
5
|
-
import { CGrid } from '
|
|
1
|
+
import { COMPONENT_NAMESPACE } from '../../src/global/variable';
|
|
2
|
+
import { safeComponentRegister } from '../../src/utils';
|
|
3
|
+
import { loadVxeTable } from '../../src/utils/loadVxe';
|
|
4
|
+
import { expandXEUtils } from '../../src/utils/utilExpand';
|
|
5
|
+
import { CGrid } from '../../packages/index';
|
|
6
6
|
import './src/BigTable.js';
|
|
7
7
|
import script from './src/BigTable.vue_vue_type_script_setup_true_lang.js';
|
|
8
8
|
|
|
@@ -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';
|
|
@@ -10,25 +10,30 @@ import { useEdit, comps } from './hooks/useEdit.js';
|
|
|
10
10
|
import { useEvent } from './hooks/useEvent.js';
|
|
11
11
|
import { SettingsSharp, CaretDown, CaretForward, CopyOutline, SyncOutline } from '@vicons/ionicons5';
|
|
12
12
|
import './components/NoData.js';
|
|
13
|
-
import TextOverTooltip from '
|
|
14
|
-
import SvgIcon from '
|
|
13
|
+
import TextOverTooltip from '../../../src/components/TextOverTooltip';
|
|
14
|
+
import SvgIcon from '../../../src/components/SvgIcon';
|
|
15
15
|
import { useMessage, NIcon, NTooltip, NPopconfirm, NButton, NInputGroup, NInput, NCheckbox, NCheckboxGroup, NSpace, NProgress, NDropdown, NSwitch, NPopover } from 'naive-ui';
|
|
16
|
-
import CGrid from '
|
|
17
|
-
import vexutils from '
|
|
16
|
+
import CGrid from '../../../packages/grid';
|
|
17
|
+
import vexutils from '../../../src/utils/vexutils';
|
|
18
18
|
import { handleTableHeight, setTableConfig, handleGroupColums, checkMethod, setTreeGroupTitle, handleName, generateEditRender, handlerInitSearchItem, getEvaluate, getMapVal, getCandidateComponents, getageShowType, isLink, showFilter, reScrollFilterWrap, hideFilterWrap, mergeConObjFn, setDefaultFormData, handleImgArr, handleImgSrc, modalDetailImage, handleQrCodeContent, getInlineEditBtn, isCopy, setVisibleCheckAllWrap, setFilterStatus, handleTableImageSize, getRowStyle, getFooterGroup, flattenRow, intersectRow, removeCheckedDisabledRows } from './utils.js';
|
|
19
|
-
import xb_big from '
|
|
20
|
-
import qr from '
|
|
19
|
+
import xb_big from '../../../src/assets/img/xb_big';
|
|
20
|
+
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
|
});
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { defineComponent, computed, openBlock, createElementBlock, unref, createCommentVNode, createElementVNode, toDisplayString } from 'vue';
|
|
2
|
-
import noData from '
|
|
3
|
-
import noPermission from '
|
|
4
|
-
import failure from '
|
|
5
|
-
import notfound from '
|
|
2
|
+
import noData from '../../../../src/assets/img/nodata';
|
|
3
|
+
import noPermission from '../../../../src/assets/img/no-permission';
|
|
4
|
+
import failure from '../../../../src/assets/img/failure';
|
|
5
|
+
import notfound from '../../../../src/assets/img/notfound';
|
|
6
6
|
|
|
7
7
|
const _hoisted_1 = { class: "no-data-tip NoData-page" };
|
|
8
8
|
const _hoisted_2 = ["src"];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent, reactive, createVNode } from 'vue';
|
|
2
2
|
import { NSelect, NPagination, NEmpty, NSpin, NSpace } from 'naive-ui';
|
|
3
|
-
import CGrid from '
|
|
4
|
-
import vexutils from '
|
|
3
|
+
import CGrid from '../../../../../packages/grid';
|
|
4
|
+
import vexutils from '../../../../../src/utils/vexutils';
|
|
5
5
|
|
|
6
6
|
var editSelectTable = defineComponent({
|
|
7
7
|
name: "EditSelectTable",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent, reactive, createVNode, mergeProps } from 'vue';
|
|
2
2
|
import { NSelect } from 'naive-ui';
|
|
3
|
-
import vexutils from '
|
|
3
|
+
import vexutils from '../../../../../src/utils/vexutils';
|
|
4
4
|
|
|
5
5
|
var EditSelect = defineComponent({
|
|
6
6
|
name: "EditSelect",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { nextTick } from 'vue';
|
|
2
|
-
import vexutils from '
|
|
3
|
-
import xb_small from '
|
|
2
|
+
import vexutils from '../../../src/utils/vexutils';
|
|
3
|
+
import xb_small from '../../../src/assets/img/xb_small';
|
|
4
4
|
|
|
5
5
|
const isJSON = (str) => {
|
|
6
6
|
if (typeof str == "string") {
|
|
@@ -13,11 +13,6 @@
|
|
|
13
13
|
flex-direction: column;
|
|
14
14
|
overflow: hidden;
|
|
15
15
|
transition: width 2s;
|
|
16
|
-
/*
|
|
17
|
-
.sort-icon-asc {
|
|
18
|
-
background-image: url('../img/icon-asc.png');
|
|
19
|
-
}
|
|
20
|
-
*/
|
|
21
16
|
}
|
|
22
17
|
.big-table-filter-wrap .sort-list {
|
|
23
18
|
margin-top: 6px;
|
|
@@ -45,7 +40,7 @@
|
|
|
45
40
|
color: rgba(0, 0, 0, 0.8);
|
|
46
41
|
}
|
|
47
42
|
.big-table-filter-wrap .sort-icon-desc {
|
|
48
|
-
background-image: url('
|
|
43
|
+
background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAABT0lEQVRYR+3WvSuGYRTH8c9TykpJSimLMvgHpLyUCQsmg/wBMss/ILvdJgspNnkbZFYGk7JQSAaLwUuX7uFxu3E/nvvqSd3XeHW6zvec65zfORUNPpUG+1cClBnIysABhiMV5y4mqt/OAliPCHCImd8AIgWf/WzMIhzFK/Z/iigWQAtuE4A2PH0HEQugG5eJ005clwBlBmrJwDwGcorBNjYybOsqwit05QQ4R1/RAB3oqQHgoWiAnL5/NKvrC/4tQBNacYesDAR5fkxHV6QU72EQczhNSfE4VpOOmY01jsOyMYYXLGElcbSIZT4W4C1MxQIIUy9sU1ltGXyeYQSfuua7L2jOWYnPKbt2HKE3dR/0Iqx593lq4AT9OQE2MZ2yDTpyXKUlF0lthP3gy8nKwBqGcgLsYCHDNuwAAe4Nk7ipZRbk9F2MWZFt+CeiEuAdAU5CIQxYYdUAAAAASUVORK5CYII=');
|
|
49
44
|
}
|
|
50
45
|
.big-table-filter-wrap .filter-header {
|
|
51
46
|
padding: 0 13px;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { COMPONENT_NAMESPACE } from '
|
|
2
|
-
import { safeComponentRegister } from '
|
|
1
|
+
import { COMPONENT_NAMESPACE } from '../../src/global/variable';
|
|
2
|
+
import { safeComponentRegister } from '../../src/utils';
|
|
3
3
|
import './src/BpmnWorkflow.js';
|
|
4
4
|
import script from './src/BpmnWorkflow.vue_vue_type_script_setup_true_lang.js';
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { COMPONENT_NAMESPACE } from '
|
|
2
|
-
import { safeComponentRegister } from '
|
|
1
|
+
import { COMPONENT_NAMESPACE } from '../../src/global/variable';
|
|
2
|
+
import { safeComponentRegister } from '../../src/utils';
|
|
3
3
|
import './src/ButtonPrint.js';
|
|
4
4
|
import script from './src/ButtonPrint.vue_vue_type_script_setup_true_lang.js';
|
|
5
5
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SFCWithInstall } from '
|
|
1
|
+
import { SFCWithInstall } from '../../../es/src/types';
|
|
2
2
|
import 'vue-simple-uploader/dist/style.css';
|
|
3
3
|
declare const VodChunkUpload: SFCWithInstall<import("vue").DefineComponent<{
|
|
4
4
|
formData: {
|
|
@@ -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;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { COMPONENT_NAMESPACE } from '
|
|
1
|
+
import { COMPONENT_NAMESPACE } from '../../src/global/variable';
|
|
2
2
|
import uploader from 'vue-simple-uploader';
|
|
3
3
|
import 'vue-simple-uploader/dist/style.css';
|
|
4
|
-
import { safeComponentRegister } from '
|
|
5
|
-
import { expandXEUtils } from '
|
|
4
|
+
import { safeComponentRegister } from '../../src/utils';
|
|
5
|
+
import { expandXEUtils } from '../../src/utils/utilExpand';
|
|
6
6
|
import script from './src/vod-chunk-upload/vod-chunk-upload.vue_vue_type_script_setup_true_lang.js';
|
|
7
7
|
|
|
8
8
|
const VodChunkUpload = script;
|
|
@@ -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;
|
|
@@ -1714,9 +1746,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1714
1746
|
}, any>>>;
|
|
1715
1747
|
}, {
|
|
1716
1748
|
mergedClsPrefix: import("vue").ComputedRef<string>;
|
|
1717
|
-
mergedIndicatorPlacement: import("vue").ComputedRef<"outside" | "inside">;
|
|
1718
|
-
* 格式化进度跳
|
|
1719
|
-
*/
|
|
1749
|
+
mergedIndicatorPlacement: import("vue").ComputedRef<"outside" | "inside">;
|
|
1720
1750
|
gapDeg: import("vue").ComputedRef<number | undefined>;
|
|
1721
1751
|
cssVars: import("vue").ComputedRef<{
|
|
1722
1752
|
'--n-bezier': 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 };
|