@ibiz-template/vue3-components 0.7.38-alpha.12 → 0.7.38-alpha.21
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/dist/index-3cxXHoLs.js +4 -0
- package/dist/{index-B_Fo_3Rt.js → index-CiEIUSX9.js} +1 -1
- package/dist/{index-BvI3oZGL.js → index-HW5stxcy.js} +1 -1
- package/dist/index.min.css +1 -1
- package/dist/index.system.min.js +1 -1
- package/dist/{xlsx-util-XDKOLzzW.js → xlsx-util-BlkeQIMu.js} +1 -1
- package/es/common/action-toolbar/action-toolbar.mjs +6 -3
- package/es/common/control-navigation/control-navigation.css +1 -0
- package/es/common/control-navigation/control-navigation.d.ts +32 -0
- package/es/common/control-navigation/control-navigation.mjs +116 -0
- package/es/common/control-navigation/provider/calendar-navigation.provider.d.ts +17 -0
- package/es/common/control-navigation/provider/calendar-navigation.provider.mjs +55 -0
- package/es/common/control-navigation/provider/index.d.ts +10 -0
- package/es/common/control-navigation/provider/index.mjs +17 -0
- package/es/common/control-navigation/provider/navigation-base.provider.d.ts +84 -0
- package/es/common/control-navigation/provider/navigation-base.provider.mjs +142 -0
- package/es/common/control-navigation/provider/tree-navigation.provider.d.ts +30 -0
- package/es/common/control-navigation/provider/tree-navigation.provider.mjs +81 -0
- package/es/common/custom-theme/custom-theme-model.mjs +5 -13
- package/es/common/gantt-setting/gantt-setting.css +1 -0
- package/es/common/gantt-setting/gantt-setting.d.ts +53 -0
- package/es/common/gantt-setting/gantt-setting.mjs +217 -0
- package/es/common/grid-setting/grid-setting.css +1 -1
- package/es/common/grid-setting/grid-setting.d.ts +2 -1
- package/es/common/grid-setting/grid-setting.mjs +20 -4
- package/es/common/index.mjs +6 -0
- package/es/common/nav-split/nav-split.css +1 -0
- package/es/common/nav-split/nav-split.d.ts +57 -0
- package/es/common/nav-split/nav-split.mjs +209 -0
- package/es/common/pql-editor/utils/index.mjs +30 -40
- package/es/common/split/split.css +1 -1
- package/es/control/app-menu/app-menu.css +1 -1
- package/es/control/app-menu/app-menu.d.ts +3 -0
- package/es/control/app-menu/app-menu.mjs +54 -16
- package/es/control/app-menu/custom-menu-design/custom-menu-design.mjs +11 -3
- package/es/control/app-menu/index.d.ts +3 -0
- package/es/control/calendar/calendar.css +1 -1
- package/es/control/calendar/calendar.d.ts +12 -1
- package/es/control/calendar/calendar.mjs +42 -10
- package/es/control/calendar/index.d.ts +12 -1
- package/es/control/dashboard/custom-dashboard-container/custom-dashboard-container.d.ts +3 -0
- package/es/control/dashboard/portlet/filter-portlet/filter-portlet-design/filter-portlet-design.mjs +2 -1
- package/es/control/data-view/data-view.css +1 -1
- package/es/control/data-view/data-view.d.ts +1 -0
- package/es/control/data-view/data-view.mjs +21 -3
- package/es/control/data-view/index.d.ts +1 -0
- package/es/control/drbar/drbar.controller.mjs +1 -1
- package/es/control/drtab/drtab-control.util.mjs +1 -1
- package/es/control/drtab/drtab.controller.d.ts +9 -1
- package/es/control/drtab/drtab.controller.mjs +26 -2
- package/es/control/drtab/drtab.css +1 -1
- package/es/control/drtab/drtab.d.ts +3 -1
- package/es/control/drtab/drtab.mjs +68 -9
- package/es/control/drtab/index.d.ts +3 -1
- package/es/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-grid/repeater-grid.d.ts +4 -0
- package/es/control/form/form-detail/form-tab-panel/form-tab-panel.css +1 -1
- package/es/control/form/form-detail/form-tab-panel/form-tab-panel.mjs +1 -1
- package/es/control/gantt/gantt.css +1 -1
- package/es/control/gantt/gantt.d.ts +2 -4
- package/es/control/gantt/gantt.mjs +82 -25
- package/es/control/gantt/index.d.ts +2 -4
- package/es/control/grid/grid/grid-control.util.mjs +2 -2
- package/es/control/grid/grid/grid.css +1 -1
- package/es/control/grid/grid/grid.mjs +75 -71
- package/es/control/list/index.d.ts +1 -0
- package/es/control/list/list.css +1 -1
- package/es/control/list/list.d.ts +1 -0
- package/es/control/list/list.mjs +23 -5
- package/es/control/map/map.d.ts +9 -0
- package/es/control/map/map.mjs +4 -0
- package/es/control/search-bar/search-groups/search-groups.mjs +2 -2
- package/es/control/toolbar/toolbar.mjs +3 -0
- package/es/control/tree/el-tree-util.d.ts +39 -1
- package/es/control/tree/el-tree-util.mjs +70 -2
- package/es/control/tree/index.d.ts +16 -14
- package/es/control/tree/tree.css +1 -1
- package/es/control/tree/tree.d.ts +16 -14
- package/es/control/tree/tree.mjs +60 -31
- package/es/editor/data-picker/ibiz-picker-embed-view/ibiz-picker-embed-view.css +1 -1
- package/es/editor/data-picker/ibiz-picker-embed-view/ibiz-picker-embed-view.d.ts +3 -8
- package/es/editor/data-picker/ibiz-picker-embed-view/ibiz-picker-embed-view.mjs +22 -23
- package/es/editor/data-picker/ibiz-picker-select-view/ibiz-picker-select-view.mjs +1 -0
- package/es/editor/date-range/ibiz-date-range-picker/ibiz-date-range-picker.mjs +3 -1
- package/es/editor/dropdown-list/ibiz-dropdown/ibiz-dropdown.css +1 -1
- package/es/locale/en/index.d.ts +17 -0
- package/es/locale/en/index.mjs +18 -1
- package/es/locale/zh-CN/index.d.ts +17 -0
- package/es/locale/zh-CN/index.mjs +18 -1
- package/es/panel-component/auth-userinfo/auth-userinfo.css +1 -1
- package/es/panel-component/index-actions/index-actions.css +1 -1
- package/es/panel-component/index.mjs +2 -1
- package/es/panel-component/nav-breadcrumb/nav-breadcrumb.controller.mjs +8 -31
- package/es/panel-component/nav-breadcrumb/nav-breadcrumb.service.d.ts +1 -1
- package/es/panel-component/nav-breadcrumb/nav-breadcrumb.service.mjs +1 -1
- package/es/panel-component/nav-pos-index/nav-pos-index.controller.mjs +7 -2
- package/es/panel-component/panel-app-title/index.mjs +4 -0
- package/es/panel-component/panel-app-title/panel-app-title.controller.mjs +8 -0
- package/es/panel-component/panel-app-title/panel-app-title.css +1 -1
- package/es/panel-component/panel-app-title/panel-app-title.mjs +112 -108
- package/es/panel-component/panel-index-view-search/panel-index-view-search.css +1 -1
- package/es/util/fullscreen/fullscreen-util.mjs +1 -1
- package/es/util/notification-util/notification-util.d.ts +10 -1
- package/es/util/notification-util/notification-util.mjs +36 -0
- package/es/util/notification-util/upload-manager/file-type.d.ts +8 -0
- package/es/util/notification-util/upload-manager/file-type.mjs +207 -0
- package/es/util/notification-util/upload-manager/upload-manager.css +1 -0
- package/es/util/notification-util/upload-manager/upload-manager.d.ts +64 -0
- package/es/util/notification-util/upload-manager/upload-manager.mjs +159 -0
- package/es/util/pagination/use-pagination.mjs +5 -4
- package/es/view-engine/tab-exp-view.engine.d.ts +9 -0
- package/es/view-engine/tab-exp-view.engine.mjs +20 -1
- package/lib/common/action-toolbar/action-toolbar.cjs +6 -3
- package/lib/common/control-navigation/control-navigation.cjs +118 -0
- package/lib/common/control-navigation/control-navigation.css +1 -0
- package/lib/common/control-navigation/provider/calendar-navigation.provider.cjs +57 -0
- package/lib/common/control-navigation/provider/index.cjs +19 -0
- package/lib/common/control-navigation/provider/navigation-base.provider.cjs +144 -0
- package/lib/common/control-navigation/provider/tree-navigation.provider.cjs +83 -0
- package/lib/common/custom-theme/custom-theme-model.cjs +5 -13
- package/lib/common/gantt-setting/gantt-setting.cjs +219 -0
- package/lib/common/gantt-setting/gantt-setting.css +1 -0
- package/lib/common/grid-setting/grid-setting.cjs +20 -4
- package/lib/common/grid-setting/grid-setting.css +1 -1
- package/lib/common/index.cjs +6 -0
- package/lib/common/nav-split/nav-split.cjs +211 -0
- package/lib/common/nav-split/nav-split.css +1 -0
- package/lib/common/pql-editor/utils/index.cjs +30 -40
- package/lib/common/split/split.css +1 -1
- package/lib/control/app-menu/app-menu.cjs +52 -14
- package/lib/control/app-menu/app-menu.css +1 -1
- package/lib/control/app-menu/custom-menu-design/custom-menu-design.cjs +10 -2
- package/lib/control/calendar/calendar.cjs +42 -10
- package/lib/control/calendar/calendar.css +1 -1
- package/lib/control/dashboard/portlet/filter-portlet/filter-portlet-design/filter-portlet-design.cjs +2 -1
- package/lib/control/data-view/data-view.cjs +21 -3
- package/lib/control/data-view/data-view.css +1 -1
- package/lib/control/drbar/drbar.controller.cjs +1 -1
- package/lib/control/drtab/drtab-control.util.cjs +1 -1
- package/lib/control/drtab/drtab.cjs +67 -8
- package/lib/control/drtab/drtab.controller.cjs +26 -2
- package/lib/control/drtab/drtab.css +1 -1
- package/lib/control/form/form-detail/form-tab-panel/form-tab-panel.cjs +1 -1
- package/lib/control/form/form-detail/form-tab-panel/form-tab-panel.css +1 -1
- package/lib/control/gantt/gantt.cjs +80 -23
- package/lib/control/gantt/gantt.css +1 -1
- package/lib/control/grid/grid/grid-control.util.cjs +2 -2
- package/lib/control/grid/grid/grid.cjs +75 -71
- package/lib/control/grid/grid/grid.css +1 -1
- package/lib/control/list/list.cjs +23 -5
- package/lib/control/list/list.css +1 -1
- package/lib/control/map/map.cjs +4 -0
- package/lib/control/search-bar/search-groups/search-groups.cjs +2 -2
- package/lib/control/toolbar/toolbar.cjs +3 -0
- package/lib/control/tree/el-tree-util.cjs +70 -0
- package/lib/control/tree/tree.cjs +58 -29
- package/lib/control/tree/tree.css +1 -1
- package/lib/editor/data-picker/ibiz-picker-embed-view/ibiz-picker-embed-view.cjs +21 -22
- package/lib/editor/data-picker/ibiz-picker-embed-view/ibiz-picker-embed-view.css +1 -1
- package/lib/editor/data-picker/ibiz-picker-select-view/ibiz-picker-select-view.cjs +1 -0
- package/lib/editor/date-range/ibiz-date-range-picker/ibiz-date-range-picker.cjs +3 -1
- package/lib/editor/dropdown-list/ibiz-dropdown/ibiz-dropdown.css +1 -1
- package/lib/locale/en/index.cjs +18 -1
- package/lib/locale/zh-CN/index.cjs +18 -1
- package/lib/panel-component/auth-userinfo/auth-userinfo.css +1 -1
- package/lib/panel-component/index-actions/index-actions.css +1 -1
- package/lib/panel-component/index.cjs +1 -0
- package/lib/panel-component/nav-breadcrumb/nav-breadcrumb.controller.cjs +7 -30
- package/lib/panel-component/nav-breadcrumb/nav-breadcrumb.service.cjs +1 -1
- package/lib/panel-component/nav-pos-index/nav-pos-index.controller.cjs +7 -2
- package/lib/panel-component/panel-app-title/index.cjs +4 -0
- package/lib/panel-component/panel-app-title/panel-app-title.cjs +112 -108
- package/lib/panel-component/panel-app-title/panel-app-title.controller.cjs +8 -0
- package/lib/panel-component/panel-app-title/panel-app-title.css +1 -1
- package/lib/panel-component/panel-index-view-search/panel-index-view-search.css +1 -1
- package/lib/util/fullscreen/fullscreen-util.cjs +1 -1
- package/lib/util/notification-util/notification-util.cjs +36 -0
- package/lib/util/notification-util/upload-manager/file-type.cjs +209 -0
- package/lib/util/notification-util/upload-manager/upload-manager.cjs +161 -0
- package/lib/util/notification-util/upload-manager/upload-manager.css +1 -0
- package/lib/util/pagination/use-pagination.cjs +5 -4
- package/lib/view-engine/tab-exp-view.engine.cjs +19 -0
- package/package.json +10 -10
- package/dist/index-VQ3FT6ih.js +0 -4
- /package/es/node_modules/.pnpm/{@ibiz-template_core@0.7.35-alpha.1_axios@1.7.7_lodash-es@4.17.21_qs@6.13.0_qx-util@0.4.8_ramda@0.29.1 → @ibiz-template_core@0.7.38-alpha.16_axios@1.7.7_lodash-es@4.17.21_qs@6.13.0_qx-util@0.4.8_ramda@0.29.1}/node_modules/@ibiz-template/core/out/utils/namespace/namespace.mjs +0 -0
- /package/lib/node_modules/.pnpm/{@ibiz-template_core@0.7.35-alpha.1_axios@1.7.7_lodash-es@4.17.21_qs@6.13.0_qx-util@0.4.8_ramda@0.29.1 → @ibiz-template_core@0.7.38-alpha.16_axios@1.7.7_lodash-es@4.17.21_qs@6.13.0_qx-util@0.4.8_ramda@0.29.1}/node_modules/@ibiz-template/core/out/utils/namespace/namespace.cjs +0 -0
|
@@ -0,0 +1,209 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var vue = require('vue');
|
|
4
|
+
|
|
5
|
+
"use strict";
|
|
6
|
+
const pdf = vue.createVNode("svg", {
|
|
7
|
+
"class": "icon",
|
|
8
|
+
"viewBox": "0 0 1024 1024",
|
|
9
|
+
"version": "1.1",
|
|
10
|
+
"xmlns": "http://www.w3.org/2000/svg",
|
|
11
|
+
"p-id": "9641"
|
|
12
|
+
}, [vue.createVNode("path", {
|
|
13
|
+
"d": "M852.537678 966.322357c7.542461 0 14.818718-3.016984 20.142807-8.341075s8.341075-12.600347 8.341075-20.142807V262.033969c0-6.743847-2.395841-13.22149-6.743848-18.368111L725.469393 67.793414c-5.412825-6.388908-13.39896-10.115771-21.740034-10.115771h-532.231543c-7.542461 0-14.818718 3.016984-20.142807 8.341075s-8.341075 12.600347-8.341075 20.142807v851.67695c0 7.542461 3.016984 14.818718 8.341075 20.142807s12.600347 8.341075 20.142807 8.341075h681.039862z",
|
|
14
|
+
"fill": "#CA223D",
|
|
15
|
+
"p-id": "9642"
|
|
16
|
+
}, null), vue.createVNode("path", {
|
|
17
|
+
"d": "M881.02156 265.228423v-3.194454c0-6.743847-2.395841-13.22149-6.743848-18.368111L725.469393 67.793414c-5.412825-6.388908-13.39896-10.115771-21.740034-10.115771h-1.331023v207.55078h178.623224z",
|
|
18
|
+
"opacity": ".15",
|
|
19
|
+
"p-id": "9643"
|
|
20
|
+
}, null), vue.createVNode("path", {
|
|
21
|
+
"d": "M359.083258 657.52513c-10.293241 0-16.14974-4.614211-19.432929-9.494627-10.027036-15.262392 2.040901-40.640555 14.197574-52.442288 6.300173-6.033969 25.023224-21.562565 65.131369-37.889775 8.07487-19.07799 15.97227-40.55182 23.071057-62.469324 11.801733-36.647487 18.989255-74.271057 22.982323-100.447834-8.696014-16.061005-34.162912-65.042634-34.162912-83.676949 0-10.470711 2.307106-18.989255 7.010052-25.200693 4.880416-6.566378 11.979203-10.204506 20.054073-10.204507 9.228423 0 18.456846 4.702946 25.466898 12.955286 7.098787 8.25234 11.00312 19.255459 11.003119 30.702253 0 17.569497-2.307106 44.012478-6.300173 71.254073 17.392028 31.323397 36.292548 59.984749 52.087348 78.885269 15.617331 18.634315 34.340381 35.493934 55.902946 50.223917 37.97851-3.283189 82.878336-4.348007 99.205546 2.218371 20.852686 8.429809 24.40208 22.272444 20.763952 32.476949-6.388908 17.924437-34.87279 27.951473-58.742461 20.586482-9.760832-3.016984-35.493934-12.067938-66.994801-32.47695-26.176776 2.484575-53.240901 6.388908-78.619064 11.358059-27.507799 5.32409-53.063432 12.422877-76.045754 21.030156-19.521664 44.278683-37.357366 70.10052-53.152166 76.755633-9.583362 4.259272-17.303293 5.856499-23.425997 5.856499z m-0.976083-22.272444c1.419757 0.17747 6.033969 0.266205 15.883536-3.904332 5.945234-2.484575 16.948354-15.351127 30.968457-42.947661-21.917504 11.00312-32.388215 20.054073-35.582669 23.159792-7.808666 7.453726-12.067938 19.699133-11.269324 23.692201z m271.794801-95.478683c15.97227 8.07487 28.128943 12.245407 33.985442 14.108839 14.996187 4.614211 29.105026-2.57331 31.145927-6.388908-0.621144-0.798614-2.57331-2.662045-7.986135-4.880416-5.235355-2.129636-24.490815-4.170537-57.145234-2.839515z m-181.728943 6.477643l-0.443674 1.064818c18.72305-6.033969 38.777123-11.091854 59.807279-15.173656 17.480763-3.371924 35.848873-6.300173 54.128249-8.607279l-0.709878-0.532409 2.129636-0.17747c-14.818718-11.979203-28.128943-25.023224-39.841941-39.043328-14.996187-17.835702-29.193761-39.487002-40.37435-57.943847l-0.17747 1.153553-0.532409-0.887349c-4.348007 22.893588-10.559445 49.691508-18.989255 76.045754-4.880416 15.173657-10.204506 30.258579-15.706066 44.456153l0.709879-0.35494z m9.849567-248.368804c-0.887348 0-1.508492 0.17747-2.307106 1.242288-0.798614 1.064818-2.57331 4.259272-2.57331 11.890468 0 4.525477 5.50156 20.586482 17.037088 44.722357 1.419757-14.108839 2.129636-26.709185 2.129636-36.381283 0-13.842634-9.494627-21.47383-14.286308-21.47383z",
|
|
22
|
+
"fill": "#FFFFFF",
|
|
23
|
+
"p-id": "9644"
|
|
24
|
+
}, null), vue.createVNode("path", {
|
|
25
|
+
"d": "M404.808319 775.25851h17.125823l1.419757 8.252339h0.532409c6.655113-5.679029 14.996187-10.293241 23.514732-10.293241 19.699133 0 31.323397 16.14974 31.323397 40.640555 0 27.330329-16.415945 43.213865-33.896707 43.213865-7.010052 0-13.665165-3.105719-19.787869-8.696014l0.532409 13.132755v24.224611h-20.763951v-110.47487z m52.442288 38.954592c0-15.262392-4.880416-23.692201-15.794801-23.692201-5.412825 0-10.293241 2.75078-15.794801 8.25234v35.05026c5.14662 4.436742 10.293241 5.945234 14.552513 5.945234 9.583362 0.088735 17.037088-8.163605 17.037089-25.555633zM492.034662 815.366655c0-26.088042 16.238475-42.060312 33.453033-42.060312 8.962218 0 14.552513 3.460659 20.231542 8.696014l-0.887348-12.511612v-28.128943h20.941421v113.758059h-16.948353l-1.685962-8.252339h-0.443674c-5.856499 5.679029-13.842634 10.293241-22.094974 10.293241-19.787868-0.088735-32.565685-15.706066-32.565685-41.794108z m52.885962 16.238475v-35.05026c-4.880416-4.436742-9.849567-5.945234-14.818718-5.945234-8.962218 0-16.504679 8.518544-16.504679 24.490815 0 16.504679 5.945234 24.757019 16.504679 24.757019 5.50156 0 10.204506-2.307106 14.818718-8.25234zM630.993414 757.600277c-2.75078-0.976083-5.856499-1.685962-8.429809-1.685962-6.300173 0-9.672097 3.726863-9.672097 12.511612v6.832583h14.996187v16.504679h-14.996187v63.356672h-20.941421v-63.267937h-10.648181v-15.528596l10.648181-0.887349v-6.566378c0-16.682149 7.719931-29.459965 27.774003-29.459965 6.122704 0 11.535529 1.419757 15.084922 2.839515l-3.815598 15.351126z",
|
|
26
|
+
"fill": "#FFFFFF",
|
|
27
|
+
"p-id": "9645"
|
|
28
|
+
}, null)]);
|
|
29
|
+
const txt = vue.createVNode("svg", {
|
|
30
|
+
"class": "icon",
|
|
31
|
+
"viewBox": "0 0 1024 1024",
|
|
32
|
+
"version": "1.1",
|
|
33
|
+
"xmlns": "http://www.w3.org/2000/svg",
|
|
34
|
+
"p-id": "11602"
|
|
35
|
+
}, [vue.createVNode("path", {
|
|
36
|
+
"d": "M146.879977 0A52.335992 52.335992 0 0 0 95.999985 51.167992v921.647856a49.039992 49.039992 0 0 0 15.279998 35.791994A49.839992 49.839992 0 0 0 146.863977 1023.99984h746.287883a48.559992 48.559992 0 0 0 35.567995-15.359998A50.719992 50.719992 0 0 0 943.999853 972.815848V290.015955L655.679898 0H146.847977h0.016z",
|
|
37
|
+
"fill": "#3662EC",
|
|
38
|
+
"p-id": "11603"
|
|
39
|
+
}, null), vue.createVNode("path", {
|
|
40
|
+
"d": "M943.999853 287.999955H706.84789A52.127992 52.127992 0 0 1 655.999898 237.199963V0l287.951955 287.999955H943.999853z",
|
|
41
|
+
"fill": "#FFFFFF",
|
|
42
|
+
"fill-opacity": ".7",
|
|
43
|
+
"p-id": "11604"
|
|
44
|
+
}, null), vue.createVNode("path", {
|
|
45
|
+
"d": "M336.831947 751.999883h45.823993v-152.575977h51.711992V561.279912h-148.991977v38.143994h51.455992V751.999883z m102.399984 0h48.639993l16.383997-37.119995c4.351999-9.983998 8.703999-19.967997 13.055998-31.743995h1.024c5.119999 11.775998 9.471999 21.759997 14.079998 31.743995L550.079914 751.999883h50.943992l-52.479992-95.999985 49.151993-94.719986h-48.383993l-13.823998 34.303995c-3.839999 8.959999-7.935999 18.943997-12.287998 31.231995h-1.024c-5.375999-12.287998-9.471999-22.271997-13.823997-31.231995l-15.359998-34.303995h-50.943992l49.407992 92.671986L439.231931 751.999883z m217.855966 0h45.823993v-152.575977h51.711992V561.279912h-148.991977v38.143994h51.455992V751.999883z",
|
|
46
|
+
"fill": "#FFFFFF",
|
|
47
|
+
"p-id": "11605"
|
|
48
|
+
}, null)]);
|
|
49
|
+
const xls = vue.createVNode("svg", {
|
|
50
|
+
"class": "icon",
|
|
51
|
+
"viewBox": "0 0 1024 1024",
|
|
52
|
+
"version": "1.1",
|
|
53
|
+
"xmlns": "http://www.w3.org/2000/svg",
|
|
54
|
+
"p-id": "17449"
|
|
55
|
+
}, [vue.createVNode("path", {
|
|
56
|
+
"d": "M947.2 216.064l-192.256-204.8A38.144 38.144 0 0 0 728.064 0h-614.4a40.192 40.192 0 0 0-38.912 41.472v941.056A40.192 40.192 0 0 0 113.664 1024H921.6a40.192 40.192 0 0 0 38.912-41.472V245.504A42.752 42.752 0 0 0 947.2 216.064zM652.8 768l-137.216-203.008L378.624 768h-95.488l184.576-264.704L295.424 256h95.488l124.672 185.088L640 256h95.488L563.2 503.04 748.032 768z",
|
|
57
|
+
"fill": "#25C273",
|
|
58
|
+
"p-id": "17450"
|
|
59
|
+
}, null)]);
|
|
60
|
+
const zip = vue.createVNode("svg", {
|
|
61
|
+
"class": "icon",
|
|
62
|
+
"viewBox": "0 0 1024 1024",
|
|
63
|
+
"version": "1.1",
|
|
64
|
+
"xmlns": "http://www.w3.org/2000/svg",
|
|
65
|
+
"p-id": "19451"
|
|
66
|
+
}, [vue.createVNode("path", {
|
|
67
|
+
"d": "M854.6 288.7c6 6 9.4 14.1 9.4 22.6V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h424.7c8.5 0 16.7 3.4 22.7 9.4l215.2 215.3zM790.2 326L602 137.8V326h188.2zM296 136v64h64v-64h-64z m64 64v64h64v-64h-64z m-64 64v64h64v-64h-64z m64 64v64h64v-64h-64z m-64 64v64h64v-64h-64z m64 64v64h64v-64h-64z m-64 64v64h64v-64h-64z m0 64v160h128V584H296z m48 48h32v64h-32v-64z",
|
|
68
|
+
"fill": "#515151",
|
|
69
|
+
"p-id": "19452"
|
|
70
|
+
}, null)]);
|
|
71
|
+
const doc = vue.createVNode("svg", {
|
|
72
|
+
"class": "icon",
|
|
73
|
+
"viewBox": "0 0 1024 1024",
|
|
74
|
+
"version": "1.1",
|
|
75
|
+
"xmlns": "http://www.w3.org/2000/svg",
|
|
76
|
+
"p-id": "26339"
|
|
77
|
+
}, [vue.createVNode("path", {
|
|
78
|
+
"d": "M794.574 930.64h-562.47c-24.262 0-44-19.738-44-44V142.99c0-24.262 19.738-44 44-44h344.009v64H252.104v703.65h522.471V345h64v541.64c-0.001 24.261-19.739 44-44.001 44z",
|
|
79
|
+
"fill": "",
|
|
80
|
+
"p-id": "26340"
|
|
81
|
+
}, null), vue.createVNode("path", {
|
|
82
|
+
"d": "M619 301.79h220v64H619z",
|
|
83
|
+
"fill": "",
|
|
84
|
+
"p-id": "26341"
|
|
85
|
+
}, null), vue.createVNode("path", {
|
|
86
|
+
"d": "M618 98.228h64v266.078h-64z",
|
|
87
|
+
"fill": "",
|
|
88
|
+
"p-id": "26342"
|
|
89
|
+
}, null), vue.createVNode("path", {
|
|
90
|
+
"d": "M632.307 136.573l51.007-38.649 155.153 204.764-51.008 38.649zM916.137 779.999H110.146c-6.6 0-12-5.4-12-12V493.127c0-6.6 5.4-12 12-12h805.991c6.6 0 12 5.4 12 12v274.872c0 6.6-5.4 12-12 12z",
|
|
91
|
+
"fill": "",
|
|
92
|
+
"p-id": "26343"
|
|
93
|
+
}, null), vue.createVNode("path", {
|
|
94
|
+
"d": "M266.631 551.092h47.454c52.831 0 85.559 24.867 85.559 77.998 0 52.918-32.728 79.271-83.688 79.271h-49.324V551.092z m45.35 131.978c32.26 0 52.363-15.727 52.363-53.98 0-38.467-20.104-52.92-52.363-52.92h-10.753v106.9h10.753zM436.581 629.09c0-51.219 31.559-80.973 77.376-80.973s77.376 29.967 77.376 80.973-31.559 82.246-77.376 82.246-77.376-31.24-77.376-82.246z m119.453 0c0-33.793-16.363-53.982-42.077-53.982s-42.077 20.189-42.077 53.982c0 33.578 16.363 55.043 42.077 55.043s42.077-21.465 42.077-55.043zM628.271 630.365c0-51.857 36.701-82.248 80.415-82.248 21.975 0 39.507 9.564 50.728 20.189l-18.234 19.979c-8.649-7.652-18.701-13.178-31.792-13.178-26.182 0-45.817 20.402-45.817 54.193 0 34.217 17.766 54.832 45.116 54.832 14.728 0 26.416-6.375 35.767-15.514l18.233 19.553c-14.26 15.088-32.728 23.164-55.169 23.164-43.714 0.001-79.247-28.478-79.247-80.97z",
|
|
95
|
+
"fill": "#FFFFFF",
|
|
96
|
+
"p-id": "26344"
|
|
97
|
+
}, null)]);
|
|
98
|
+
const image = vue.createVNode("svg", {
|
|
99
|
+
"class": "icon",
|
|
100
|
+
"viewBox": "0 0 1024 1024",
|
|
101
|
+
"version": "1.1",
|
|
102
|
+
"xmlns": "http://www.w3.org/2000/svg",
|
|
103
|
+
"p-id": "27355"
|
|
104
|
+
}, [vue.createVNode("path", {
|
|
105
|
+
"d": "M170.65984 42.65984l682.65984 0q53.00224 0 90.50112 37.49888t37.49888 90.50112l0 682.65984q0 53.00224-37.49888 90.50112t-90.50112 37.49888l-682.65984 0q-53.00224 0-90.50112-37.49888t-37.49888-90.50112l0-682.65984q0-53.00224 37.49888-90.50112t90.50112-37.49888zM896 742.99392l-213.34016-213.34016-366.32576 366.32576 537.00608 0q17.67424 0 30.16704-12.4928t12.4928-30.16704l0-110.32576zM853.34016 128l-682.65984 0q-17.67424 0-30.16704 12.4928t-12.4928 30.16704l0 682.65984q0 17.67424 12.4928 30.16704t30.16704 12.4928l25.00608 0 486.99392-486.99392 213.34016 213.34016 0-451.66592q0-17.67424-12.4928-30.16704t-30.16704-12.4928zM341.34016 213.34016q53.00224 0 90.50112 37.49888t37.49888 90.50112-37.49888 90.50112-90.50112 37.49888-90.50112-37.49888-37.49888-90.50112 37.49888-90.50112 90.50112-37.49888zM341.34016 298.65984q-17.67424 0-30.16704 12.4928t-12.4928 30.16704 12.4928 30.16704 30.16704 12.4928 30.16704-12.4928 12.4928-30.16704-12.4928-30.16704-30.16704-12.4928z",
|
|
106
|
+
"fill": "#444444",
|
|
107
|
+
"p-id": "27356"
|
|
108
|
+
}, null)]);
|
|
109
|
+
const audio = vue.createVNode("svg", {
|
|
110
|
+
"class": "icon",
|
|
111
|
+
"viewBox": "0 0 1024 1024",
|
|
112
|
+
"version": "1.1",
|
|
113
|
+
"xmlns": "http://www.w3.org/2000/svg",
|
|
114
|
+
"p-id": "28365"
|
|
115
|
+
}, [vue.createVNode("path", {
|
|
116
|
+
"d": "M622.95253333 327.29173333l0.02133334-224.4384H176.6688V921.14133333h670.72853333V327.29173333H622.95253333z m5.1552 195.20533334c-9.32266667-19.97866667-28.90666667-28.61866667-46.624-30.93866667-17.4432-2.34346667-33.1712 1.17973333-44.7872 3.58826667v153.4144c1.2448 22.29866667-12.25066667 46.25066667-36.144 60.04693333-31.80586667 18.3552-70.0032 11.75253333-85.3056-14.752-15.3024-26.5088-1.92213333-62.88 29.8848-81.2416 24.368-14.0736 52.48853333-13.49013333 71.18826667-0.53013333V489.48266667l-0.12053333-0.0544 0.12053333-0.2784V442.35733333c0-5.64266667 4.57066667-10.30613333 10.208-10.31146666a10.18026667 10.18026667 0 0 1 9.16266667 5.86026666c16.0512 13.97013333 31.22346667 19.11466667 48.1472 25.62453334 13.45173333 5.19466667 25.44 13.16693333 32.98666666 24.08533333 7.73333333 10.6656 11.0208 24.26346667 11.328 34.9568l-0.0448-0.07573333z",
|
|
117
|
+
"fill": "#2C2C2C",
|
|
118
|
+
"p-id": "28366"
|
|
119
|
+
}, null), vue.createVNode("path", {
|
|
120
|
+
"d": "M833.74933333 293.94026667L656.82346667 119.28533333l0.28373333 174.65386667z",
|
|
121
|
+
"fill": "#2C2C2C",
|
|
122
|
+
"p-id": "28367"
|
|
123
|
+
}, null)]);
|
|
124
|
+
const video = vue.createVNode("svg", {
|
|
125
|
+
"class": "icon",
|
|
126
|
+
"viewBox": "0 0 1024 1024",
|
|
127
|
+
"version": "1.1",
|
|
128
|
+
"xmlns": "http://www.w3.org/2000/svg",
|
|
129
|
+
"p-id": "30241"
|
|
130
|
+
}, [vue.createVNode("path", {
|
|
131
|
+
"d": "M838.85646561 290.47900106L659.12225186 113.05176719l0.28823703 177.42615027z",
|
|
132
|
+
"fill": "#2C2C2C",
|
|
133
|
+
"p-id": "30242"
|
|
134
|
+
}, null), vue.createVNode("path", {
|
|
135
|
+
"d": "M624.71368465 324.35985608l0.02167197-228.00091428H171.34608254V927.63564021h681.37501799V324.35985608H624.71368465z m13.17655027 250.27210159c-0.75418413 2.25821799-3.01240211 3.76658624-5.27062011 5.27603809L437.46255238 699.71166138c-7.53425608 5.2771217-18.08633227 3.01240211-23.35695238-5.27062011a20.12783068 20.12783068 0 0 1-2.25821799-9.04370794V446.53985186c0-9.79897566 7.53425608-17.33323175 17.33214815-17.33323175 3.01240211 0 6.02480424 0.75526773 9.04262433 2.26471957l194.4082963 119.8090836c7.51800211 4.51535238 10.53040424 15.06201059 5.25978413 23.35153439z",
|
|
136
|
+
"fill": "#2C2C2C",
|
|
137
|
+
"p-id": "30243"
|
|
138
|
+
}, null)]);
|
|
139
|
+
const exe = vue.createVNode("svg", {
|
|
140
|
+
"class": "icon",
|
|
141
|
+
"viewBox": "0 0 1024 1024",
|
|
142
|
+
"version": "1.1",
|
|
143
|
+
"xmlns": "http://www.w3.org/2000/svg",
|
|
144
|
+
"p-id": "31313"
|
|
145
|
+
}, [vue.createVNode("path", {
|
|
146
|
+
"d": "M112 16h736v992H112z",
|
|
147
|
+
"fill": "#EDF2F9",
|
|
148
|
+
"p-id": "31314"
|
|
149
|
+
}, null), vue.createVNode("path", {
|
|
150
|
+
"d": "M480 576a128 128 0 1 0 0 256 128 128 0 0 0 0-256z m0 192a64 64 0 1 1 0-128 64 64 0 0 1 0 128z",
|
|
151
|
+
"fill": "#C2CDDC",
|
|
152
|
+
"p-id": "31315"
|
|
153
|
+
}, null), vue.createVNode("path", {
|
|
154
|
+
"d": "M480 784c44.192 0 80-35.808 80-80s-35.808-80-80-80-80 35.808-80 80 35.808 80 80 80z m0-128a48 48 0 1 1 0 96 48 48 0 0 1 0-96z m-176 80h36.016a144.208 144.208 0 0 0 18.576 44.16l-25.664 25.664a15.984 15.984 0 0 0 0 22.624l22.624 22.624a15.984 15.984 0 0 0 22.624 0l25.536-25.536a141.92 141.92 0 0 0 44.304 18.768V880a16 16 0 0 0 16 16h32a16 16 0 0 0 16-16v-35.68a141.92 141.92 0 0 0 44.304-18.768l25.536 25.536a15.984 15.984 0 0 0 22.624 0l22.624-22.624a15.984 15.984 0 0 0 0-22.624l-25.664-25.664a143.824 143.824 0 0 0 18.576-44.16H656a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16h-36.016a144.208 144.208 0 0 0-18.576-44.16l25.664-25.664a15.984 15.984 0 0 0 0-22.624l-22.624-22.624a15.984 15.984 0 0 0-22.624 0l-25.536 25.536a142.288 142.288 0 0 0-44.304-18.768V528a16 16 0 0 0-16-16h-32a16 16 0 0 0-16 16v35.68a142.288 142.288 0 0 0-44.304 18.768l-25.536-25.536a15.984 15.984 0 0 0-22.624 0l-22.624 22.624a15.984 15.984 0 0 0 0 22.624l25.664 25.664a143.824 143.824 0 0 0-18.576 44.16H304a16 16 0 0 0-16 16v32A16 16 0 0 0 304 736z m176-144a112 112 0 1 1 0 224 112 112 0 0 1 0-224zM896 128h-32V32a32 32 0 0 0-32-32H128a32 32 0 0 0-32 32v960a32 32 0 0 0 32 32h704a32 32 0 0 0 32-32V416h32a32 32 0 0 0 32-32V160a32 32 0 0 0-32-32z m-64 0H448a32 32 0 0 0-32 32v224a32 32 0 0 0 32 32h384v576H128V32h704v96z",
|
|
155
|
+
"fill": "#8592A5",
|
|
156
|
+
"p-id": "31316"
|
|
157
|
+
}, null), vue.createVNode("path", {
|
|
158
|
+
"d": "M603.952 214.112v20.8h-47.824v27.2h36.624v20h-36.624v27.76h47.824v20.8h-75.04v-116.56h75.04zM648.032 270.752l-36.08-56.64h27.04a8.48 8.48 0 0 1 3.872 0.688 5.824 5.824 0 0 1 2.192 2.288l23.216 39.28a13.376 13.376 0 0 1 0.912-2c0.336-0.64 0.736-1.312 1.152-2l20.336-34.896c1.328-2.24 3.136-3.36 5.44-3.36h25.92l-36.56 55.44 37.376 61.12h-27.056a6.688 6.688 0 0 1-4.272-1.28 10.016 10.016 0 0 1-2.608-3.024l-23.344-40.816a15.84 15.84 0 0 1-1.456 3.04l-21.76 37.76a11.008 11.008 0 0 1-2.56 3.008 6.016 6.016 0 0 1-4 1.312h-25.264l37.504-59.92zM808.288 214.112v20.8h-47.84v27.2h36.624v20h-36.624v27.76h47.84v20.8h-75.04v-116.56h75.04z",
|
|
159
|
+
"fill": "#FFFFFF",
|
|
160
|
+
"p-id": "31317"
|
|
161
|
+
}, null)]);
|
|
162
|
+
const other = vue.createVNode("svg", {
|
|
163
|
+
"class": "icon",
|
|
164
|
+
"viewBox": "0 0 1024 1024",
|
|
165
|
+
"version": "1.1",
|
|
166
|
+
"xmlns": "http://www.w3.org/2000/svg",
|
|
167
|
+
"p-id": "21634"
|
|
168
|
+
}, [vue.createVNode("path", {
|
|
169
|
+
"d": "M640 42.688H170.688A42.688 42.688 0 0 0 128 85.376v853.312c0 23.616 19.072 42.688 42.688 42.688h682.688a42.688 42.688 0 0 0 42.752-42.688v-640c-100.16-99.968-156.16-156.096-256.128-256zM499.2 853.312a42.688 42.688 0 1 1 0-85.376 42.688 42.688 0 0 1 0 85.376z m88-239.36c-26.496 13.568-42.688 23.936-48.384 31.168-9.6 11.072-18.304 27.2-18.24 37.568q0.128 10.88 0 42.688h-51.2v-42.688c0-36.16 8.704-48.512 17.408-62.912 7.68-11.072 19.008-21.504 33.984-31.104 33.856-19.264 54.208-31.744 61.504-37.568 22.208-18.816 33.28-41.92 33.28-69.376 0-38.656-17.344-65.6-52.032-81.024a125.632 125.632 0 0 0-51.328-10.112c-49.216 0-83.392 22.72-102.72 68.032l-9.344 28.16c-1.024 3.904-1.728 8.192-2.24 12.992l-56.384-12.288c11.072-69.376 45.12-115.008 102.016-136.704a194.56 194.56 0 0 1 72.96-12.992c54.016 0 96.896 16.384 128.704 49.216l15.232 18.112c13.952 21.696 21.504 46.976 22.4 75.904-0.128 54.848-32 99.2-95.616 132.992zM640 298.752V128l170.688 170.688H640z",
|
|
170
|
+
"fill": "#515151",
|
|
171
|
+
"p-id": "21635"
|
|
172
|
+
}, null)]);
|
|
173
|
+
function getFileSvgByType(type) {
|
|
174
|
+
switch (type) {
|
|
175
|
+
case "text/csv":
|
|
176
|
+
case "text/plain":
|
|
177
|
+
return txt;
|
|
178
|
+
case "application/pdf":
|
|
179
|
+
return pdf;
|
|
180
|
+
case "application/msword":
|
|
181
|
+
case "application/vnd.openxmlformats-officedocument.wordprocessingml.document":
|
|
182
|
+
return doc;
|
|
183
|
+
case "image/jpeg":
|
|
184
|
+
case "image/png":
|
|
185
|
+
case "image/gif":
|
|
186
|
+
return image;
|
|
187
|
+
case "audio/mpeg":
|
|
188
|
+
case "audio/wav":
|
|
189
|
+
case "audio/ogg":
|
|
190
|
+
return audio;
|
|
191
|
+
case "video/mp4":
|
|
192
|
+
case "video/x-msvideo":
|
|
193
|
+
case "video/x-matroska":
|
|
194
|
+
return video;
|
|
195
|
+
case "application/zip":
|
|
196
|
+
case "application/x-rar-compressed":
|
|
197
|
+
return zip;
|
|
198
|
+
case "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":
|
|
199
|
+
case "application/vnd.ms-excel":
|
|
200
|
+
return xls;
|
|
201
|
+
case "application/x-msdownload":
|
|
202
|
+
case "application/x-apple-diskimage":
|
|
203
|
+
return exe;
|
|
204
|
+
default:
|
|
205
|
+
return other;
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
exports.getFileSvgByType = getFileSvgByType;
|
|
@@ -0,0 +1,161 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var vue = require('vue');
|
|
4
|
+
var vue3Util = require('@ibiz-template/vue3-util');
|
|
5
|
+
var qxUtil = require('qx-util');
|
|
6
|
+
var core = require('@ibiz-template/core');
|
|
7
|
+
var fileType = require('./file-type.cjs');
|
|
8
|
+
require('./upload-manager.css');
|
|
9
|
+
|
|
10
|
+
"use strict";
|
|
11
|
+
const IBizUploadManager = /* @__PURE__ */ vue.defineComponent({
|
|
12
|
+
name: "IBizUploadManager",
|
|
13
|
+
props: {
|
|
14
|
+
params: {
|
|
15
|
+
type: Object,
|
|
16
|
+
required: true
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
emits: {
|
|
20
|
+
close: () => true,
|
|
21
|
+
uploadComplete: (_data) => true
|
|
22
|
+
},
|
|
23
|
+
setup(props, {
|
|
24
|
+
emit
|
|
25
|
+
}) {
|
|
26
|
+
const ns = vue3Util.useNamespace("upload-manager");
|
|
27
|
+
const fileList = vue.ref([]);
|
|
28
|
+
const showFileList = vue.ref(true);
|
|
29
|
+
for (let i = 0; i < props.params.files.length; i++) {
|
|
30
|
+
fileList.value.push({
|
|
31
|
+
file: props.params.files[i],
|
|
32
|
+
status: 10,
|
|
33
|
+
progress: 0
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
const uploading = vue.computed(() => {
|
|
37
|
+
return fileList.value.findIndex((item) => item.status === 10) !== -1;
|
|
38
|
+
});
|
|
39
|
+
const uploadStatus = vue.computed(() => {
|
|
40
|
+
return fileList.value.findIndex((item) => item.status === 30) === -1;
|
|
41
|
+
});
|
|
42
|
+
const progress = vue.computed(() => {
|
|
43
|
+
const uploaded = fileList.value.filter((item) => item.status !== 10);
|
|
44
|
+
return Math.floor(uploaded.length / fileList.value.length * 100);
|
|
45
|
+
});
|
|
46
|
+
vue.watch(() => uploading.value, () => {
|
|
47
|
+
if (!uploading.value) {
|
|
48
|
+
const data = fileList.value.filter((item) => item.status === 20 && !!item.data).map((item) => item.data);
|
|
49
|
+
emit("uploadComplete", data);
|
|
50
|
+
}
|
|
51
|
+
});
|
|
52
|
+
const onClose = () => {
|
|
53
|
+
emit("close");
|
|
54
|
+
};
|
|
55
|
+
const onChangeShowFileList = () => {
|
|
56
|
+
showFileList.value = !showFileList.value;
|
|
57
|
+
};
|
|
58
|
+
const uploadFile = async (item) => {
|
|
59
|
+
const data = new FormData();
|
|
60
|
+
data.append("file", item.file);
|
|
61
|
+
const headers = {
|
|
62
|
+
Authorization: "Bearer ".concat(qxUtil.getCookie(core.CoreConst.TOKEN)),
|
|
63
|
+
...props.params.headers
|
|
64
|
+
};
|
|
65
|
+
const res = await ibiz.net.axios({
|
|
66
|
+
url: props.params.uploadUrl,
|
|
67
|
+
method: "post",
|
|
68
|
+
headers,
|
|
69
|
+
data,
|
|
70
|
+
onUploadProgress: (ProgressEvent) => {
|
|
71
|
+
const percentCompleted = Math.round(ProgressEvent.loaded * 100 / (ProgressEvent.total || 1));
|
|
72
|
+
item.progress = percentCompleted;
|
|
73
|
+
}
|
|
74
|
+
});
|
|
75
|
+
return res;
|
|
76
|
+
};
|
|
77
|
+
vue.onMounted(async () => {
|
|
78
|
+
for (let i = 0; i < fileList.value.length; i++) {
|
|
79
|
+
const item = fileList.value[i];
|
|
80
|
+
uploadFile(item).then((res) => {
|
|
81
|
+
item.data = res.data;
|
|
82
|
+
item.status = res.status === 200 ? 20 : 30;
|
|
83
|
+
item.statusText = res.statusText;
|
|
84
|
+
}).catch((error) => {
|
|
85
|
+
item.status = 30;
|
|
86
|
+
item.statusText = error.message ? error.message : ibiz.i18n.t("util.uploadManager.failed");
|
|
87
|
+
});
|
|
88
|
+
}
|
|
89
|
+
});
|
|
90
|
+
return {
|
|
91
|
+
ns,
|
|
92
|
+
fileList,
|
|
93
|
+
uploading,
|
|
94
|
+
progress,
|
|
95
|
+
uploadStatus,
|
|
96
|
+
showFileList,
|
|
97
|
+
onClose,
|
|
98
|
+
onChangeShowFileList
|
|
99
|
+
};
|
|
100
|
+
},
|
|
101
|
+
render() {
|
|
102
|
+
return vue.createVNode("div", {
|
|
103
|
+
"class": this.ns.b()
|
|
104
|
+
}, [vue.createVNode("div", {
|
|
105
|
+
"class": this.ns.e("header")
|
|
106
|
+
}, [vue.createVNode("div", {
|
|
107
|
+
"class": this.ns.em("header", "loading")
|
|
108
|
+
}, [this.uploading ? vue.createVNode(vue.resolveComponent("el-progress"), {
|
|
109
|
+
"type": "circle",
|
|
110
|
+
"percentage": this.progress,
|
|
111
|
+
"showText": false
|
|
112
|
+
}, null) : this.uploadStatus ? vue.createVNode("ion-icon", {
|
|
113
|
+
"name": "checkmark-circle",
|
|
114
|
+
"class": "icon success"
|
|
115
|
+
}, null) : vue.createVNode("ion-icon", {
|
|
116
|
+
"name": "close-circle",
|
|
117
|
+
"class": "icon danger"
|
|
118
|
+
}, null)]), vue.createVNode("div", {
|
|
119
|
+
"class": this.ns.em("header", "title")
|
|
120
|
+
}, [vue.createVNode("span", {
|
|
121
|
+
"class": "caption"
|
|
122
|
+
}, [ibiz.i18n.t("util.uploadManager.title")]), vue.createVNode("span", {
|
|
123
|
+
"class": "progress"
|
|
124
|
+
}, ["".concat(this.fileList.filter((item) => item.status === 20).length, " / ").concat(this.fileList.length)])]), vue.createVNode("div", {
|
|
125
|
+
"class": this.ns.em("header", "actions")
|
|
126
|
+
}, [vue.createVNode("ion-icon", {
|
|
127
|
+
"name": this.showFileList ? "chevron-down-outline" : "chevron-up-outline",
|
|
128
|
+
"class": "icon down-up",
|
|
129
|
+
"onClick": this.onChangeShowFileList
|
|
130
|
+
}, null), vue.createVNode("ion-icon", {
|
|
131
|
+
"name": "close-outline",
|
|
132
|
+
"class": "icon close",
|
|
133
|
+
"onClick": this.onClose
|
|
134
|
+
}, null)])]), this.showFileList && vue.createVNode("div", {
|
|
135
|
+
"class": this.ns.e("content")
|
|
136
|
+
}, [this.fileList.map((item) => {
|
|
137
|
+
return vue.createVNode("div", {
|
|
138
|
+
"class": this.ns.e("file-item")
|
|
139
|
+
}, [vue.createVNode("div", {
|
|
140
|
+
"class": this.ns.em("file-item", "icon")
|
|
141
|
+
}, [fileType.getFileSvgByType(item.file.type)]), vue.createVNode("div", {
|
|
142
|
+
"class": this.ns.em("file-item", "name")
|
|
143
|
+
}, [item.file.name]), vue.createVNode("div", {
|
|
144
|
+
"class": this.ns.em("file-item", "status")
|
|
145
|
+
}, [item.status === 10 && vue.createVNode(vue.resolveComponent("el-progress"), {
|
|
146
|
+
"type": "circle",
|
|
147
|
+
"percentage": item.progress
|
|
148
|
+
}, null), item.status === 20 && vue.createVNode("ion-icon", {
|
|
149
|
+
"name": "checkmark-circle",
|
|
150
|
+
"class": "icon success"
|
|
151
|
+
}, null), item.status === 30 && vue.createVNode("ion-icon", {
|
|
152
|
+
"name": "close-circle",
|
|
153
|
+
"class": "icon danger"
|
|
154
|
+
}, null)]), item.status === 30 && vue.createVNode("div", {
|
|
155
|
+
"class": this.ns.em("file-item", "status-text")
|
|
156
|
+
}, [item.statusText])]);
|
|
157
|
+
})])]);
|
|
158
|
+
}
|
|
159
|
+
});
|
|
160
|
+
|
|
161
|
+
exports.IBizUploadManager = IBizUploadManager;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.ibiz-upload-manager-notic{--el-notification-width:400px;--el-notification-padding:0;--el-notification-group-margin-left:0;--el-notification-group-margin-right:0}.ibiz-upload-manager-notic .el-notification__group{width:100%}.ibiz-upload-manager .icon{font-size:20px}.ibiz-upload-manager .icon.success{color:var(--ibiz-color-success-hover)}.ibiz-upload-manager .icon.danger{color:var(--ibiz-color-danger)}.ibiz-upload-manager__header{display:flex;line-height:30px;align-items:center;padding:var(--ibiz-spacing-base);padding-left:var(--ibiz-spacing-loose)}.ibiz-upload-manager__header--loading{display:flex;align-items:center}.ibiz-upload-manager__header--loading .el-progress-circle{--el-fill-color-light:var(--ibiz-color-disabled-bg);width:30px!important;height:30px!important}.ibiz-upload-manager__header--loading .icon{font-size:30px}.ibiz-upload-manager__header--title{display:flex;flex-grow:1;align-items:center;margin-left:12px}.ibiz-upload-manager__header--title .caption{font-size:var(--ibiz-font-size-header-6)}.ibiz-upload-manager__header--title .progress{color:var(--ibiz-color-disabled-text);margin-left:var(--ibiz-spacing-tight)}.ibiz-upload-manager__header--actions{display:flex;align-items:center;color:var(--ibiz-color-disabled-text)}.ibiz-upload-manager__header--actions .icon{font-size:24px;cursor:pointer;margin-left:var(--ibiz-spacing-extra-tight)}.ibiz-upload-manager__header--actions .icon.down-up{font-size:20px}.ibiz-upload-manager__header--actions .icon:hover{color:var(--ibiz-color-primary-hover)}.ibiz-upload-manager__content{max-height:240px;overflow-y:auto;padding:0 var(--ibiz-spacing-base) var(--ibiz-spacing-base) var(--ibiz-spacing-loose)}.ibiz-upload-manager__file-item{height:48px;display:flex;position:relative;align-items:center;padding:var(--ibiz-spacing-base-tight) 0}.ibiz-upload-manager__file-item--icon{display:flex;align-items:center}.ibiz-upload-manager__file-item--icon svg{width:20px;height:20px}.ibiz-upload-manager__file-item--name{flex-grow:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin:0 var(--ibiz-spacing-base-tight)}.ibiz-upload-manager__file-item--status{display:flex;align-items:center}.ibiz-upload-manager__file-item--status .el-progress{padding-left:var(--ibiz-spacing-base)}.ibiz-upload-manager__file-item--status .el-progress-circle{--el-fill-color-light:var(--ibiz-color-disabled-bg);width:20px!important;height:20px!important}.ibiz-upload-manager__file-item--status .el-progress__text{font-size:var(--ibiz-font-size-small)!important;left:-45px!important}.ibiz-upload-manager__file-item--status-text{left:32px;bottom:-6px;position:absolute;color:var(--ibiz-color-danger);font-size:var(--ibiz-font-size-small)}
|
|
@@ -20,7 +20,7 @@ function usePagination(c) {
|
|
|
20
20
|
return;
|
|
21
21
|
}
|
|
22
22
|
c.state.curPage = page;
|
|
23
|
-
if (c.
|
|
23
|
+
if (c.runMode === "DESIGN") {
|
|
24
24
|
initGridItems();
|
|
25
25
|
return;
|
|
26
26
|
}
|
|
@@ -31,13 +31,14 @@ function usePagination(c) {
|
|
|
31
31
|
return;
|
|
32
32
|
}
|
|
33
33
|
c.state.size = size;
|
|
34
|
-
if (c.
|
|
34
|
+
if (c.runMode === "DESIGN") {
|
|
35
35
|
initGridItems();
|
|
36
36
|
return;
|
|
37
37
|
}
|
|
38
|
-
if (c.state.curPage
|
|
39
|
-
c.
|
|
38
|
+
if (c.state.curPage !== 1) {
|
|
39
|
+
c.state.curPage = 1;
|
|
40
40
|
}
|
|
41
|
+
c.load();
|
|
41
42
|
}
|
|
42
43
|
function onPageRefresh() {
|
|
43
44
|
c.load();
|
|
@@ -35,6 +35,25 @@ class TabExpViewEngine extends runtime.ViewEngineBase {
|
|
|
35
35
|
)) == null ? void 0 : _a.value;
|
|
36
36
|
this.view.slotProps.tabexppanel.defaultTabName = this.view.state.srfnav || srfdefaultnav;
|
|
37
37
|
}
|
|
38
|
+
/**
|
|
39
|
+
* 分页导航视图刷新
|
|
40
|
+
*
|
|
41
|
+
* @author tony001
|
|
42
|
+
* @date 2024-10-21 11:10:47
|
|
43
|
+
* @return {*} {Promise<void>}
|
|
44
|
+
*/
|
|
45
|
+
async refresh() {
|
|
46
|
+
await this.loadEntityData();
|
|
47
|
+
this.tabExpPanel.refresh();
|
|
48
|
+
}
|
|
49
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/explicit-module-boundary-types
|
|
50
|
+
async call(key, args) {
|
|
51
|
+
if (key === runtime.SysUIActionTag.REFRESH) {
|
|
52
|
+
await this.refresh();
|
|
53
|
+
return null;
|
|
54
|
+
}
|
|
55
|
+
return super.call(key, args);
|
|
56
|
+
}
|
|
38
57
|
async onMounted() {
|
|
39
58
|
await super.onMounted();
|
|
40
59
|
await this.loadEntityData();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ibiz-template/vue3-components",
|
|
3
|
-
"version": "0.7.38-alpha.
|
|
3
|
+
"version": "0.7.38-alpha.21",
|
|
4
4
|
"description": "使用 rollup 编译 vue 组件或者 jsx",
|
|
5
5
|
"main": "lib/index.cjs",
|
|
6
6
|
"module": "es/index.mjs",
|
|
@@ -30,17 +30,17 @@
|
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"@floating-ui/dom": "^1.5.3",
|
|
32
32
|
"@ibiz-template-plugin/ai-chat": "^0.0.5",
|
|
33
|
-
"@ibiz-template-plugin/gantt": "0.1.8-alpha.
|
|
33
|
+
"@ibiz-template-plugin/gantt": "0.1.8-alpha.83",
|
|
34
34
|
"@ibiz-template-plugin/bi-report": "0.0.24",
|
|
35
35
|
"@ibiz-template-plugin/data-view": "0.0.3",
|
|
36
|
-
"@ibiz-template/core": "0.7.
|
|
37
|
-
"@ibiz-template/devtool": "0.0.
|
|
38
|
-
"@ibiz-template/model-helper": "0.7.38-alpha.
|
|
39
|
-
"@ibiz-template/runtime": "0.7.38-alpha.
|
|
36
|
+
"@ibiz-template/core": "0.7.38-alpha.16",
|
|
37
|
+
"@ibiz-template/devtool": "0.0.2",
|
|
38
|
+
"@ibiz-template/model-helper": "0.7.38-alpha.23",
|
|
39
|
+
"@ibiz-template/runtime": "0.7.38-alpha.23",
|
|
40
40
|
"@ibiz-template/theme": "^0.7.0",
|
|
41
|
-
"@ibiz-template/vue3-util": "0.7.38-alpha.
|
|
42
|
-
"@ibiz-template/web-theme": "^1.1.
|
|
43
|
-
"@ibiz/model-core": "^0.1.
|
|
41
|
+
"@ibiz-template/vue3-util": "0.7.38-alpha.23",
|
|
42
|
+
"@ibiz-template/web-theme": "^1.1.24",
|
|
43
|
+
"@ibiz/model-core": "^0.1.58",
|
|
44
44
|
"@imengyu/vue3-context-menu": "^1.3.5",
|
|
45
45
|
"@monaco-editor/loader": "^1.4.0",
|
|
46
46
|
"@wangeditor/editor": "^5.1.23",
|
|
@@ -105,7 +105,7 @@
|
|
|
105
105
|
"@ibiz-template/runtime": "^0.7.0",
|
|
106
106
|
"@ibiz-template/theme": "^0.7.0",
|
|
107
107
|
"@ibiz-template/vue3-util": "^0.7.0",
|
|
108
|
-
"@ibiz/model-core": "^0.1.
|
|
108
|
+
"@ibiz/model-core": "^0.1.58",
|
|
109
109
|
"@imengyu/vue3-context-menu": "^1.3.3",
|
|
110
110
|
"@monaco-editor/loader": "^1.3.3",
|
|
111
111
|
"@wangeditor/editor": "^5.1.23",
|