@aplus-frontend/ui 6.17.1 → 6.17.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/src/ap-action/group/index.vue.mjs +3 -3
- package/es/src/ap-action/item/index.vue2.mjs +5 -5
- package/es/src/ap-action/item-dropdown/index.vue.mjs +7 -7
- package/es/src/ap-action/item-modal/index.vue.mjs +2 -2
- package/es/src/ap-action/item-popconfirm/index.vue.mjs +2 -2
- package/es/src/ap-button/ap-action-button.vue.mjs +2 -2
- package/es/src/ap-button/ap-button.vue.mjs +2 -2
- package/es/src/ap-button/ap-confirm-button.vue.mjs +2 -2
- package/es/src/ap-descriptions/ap-descriptions.vue.mjs +4 -4
- package/es/src/ap-descriptions/help-message/index.vue2.mjs +4 -4
- package/es/src/ap-download/ap-download.vue.mjs +1 -1
- package/es/src/ap-drawer/components/ApDrawerClose.vue2.mjs +2 -2
- package/es/src/ap-field/checkbox/index.vue.mjs +1 -1
- package/es/src/ap-field/date/index.vue.mjs +4 -4
- package/es/src/ap-field/date-range/index.vue.mjs +8 -8
- package/es/src/ap-field/index.mjs +36 -36
- package/es/src/ap-field/number/index.vue.mjs +8 -8
- package/es/src/ap-field/radio/index.vue.mjs +1 -1
- package/es/src/ap-field/rate/index.vue.mjs +2 -2
- package/es/src/ap-field/segmented/index.vue.mjs +1 -1
- package/es/src/ap-field/select/index.vue.mjs +2 -2
- package/es/src/ap-field/select/use-select-options.d.ts +2 -2
- package/es/src/ap-field/slider/index.vue.mjs +4 -4
- package/es/src/ap-field/switch/index.vue.mjs +3 -3
- package/es/src/ap-field/text/index.vue2.mjs +2 -2
- package/es/src/ap-field/text/password.vue.mjs +2 -2
- package/es/src/ap-field/text-area/index.vue.mjs +3 -3
- package/es/src/ap-field/tree-select/index.vue.mjs +3 -3
- package/es/src/ap-field/tree-select/use-request.d.ts +4 -4
- package/es/src/ap-form/ap-form.vue.d.ts +2 -1
- package/es/src/ap-form/ap-form.vue2.mjs +2 -2
- package/es/src/ap-form/drawer-form/index.vue.d.ts +4 -3
- package/es/src/ap-form/drawer-form/index.vue.mjs +9 -9
- package/es/src/ap-form/item/index.vue.mjs +7 -7
- package/es/src/ap-form/item-group/index.vue.mjs +1 -1
- package/es/src/ap-form/items/checkbox/index.vue.mjs +2 -2
- package/es/src/ap-form/items/date/index.vue.mjs +2 -2
- package/es/src/ap-form/items/date-range/index.vue.mjs +2 -2
- package/es/src/ap-form/items/number/index.vue.mjs +2 -2
- package/es/src/ap-form/items/radio/index.vue.mjs +2 -2
- package/es/src/ap-form/items/select/index.vue.d.ts +6 -6
- package/es/src/ap-form/items/select/index.vue.mjs +2 -2
- package/es/src/ap-form/items/switch/index.vue.mjs +2 -2
- package/es/src/ap-form/items/text/group.vue2.mjs +2 -2
- package/es/src/ap-form/items/text/index.vue2.mjs +2 -2
- package/es/src/ap-form/items/text/password.vue.mjs +2 -2
- package/es/src/ap-form/items/text-area/index.vue.mjs +2 -2
- package/es/src/ap-form/items/tree-select/index.vue.mjs +2 -2
- package/es/src/ap-form/modal-form/index.vue.d.ts +4 -3
- package/es/src/ap-form/modal-form/index.vue.mjs +7 -7
- package/es/src/ap-form/render/item.vue.mjs +2 -2
- package/es/src/ap-form/search-form/components/popover-filter.vue2.mjs +10 -10
- package/es/src/ap-form/search-form/components/popover-sorter/index.vue2.mjs +23 -23
- package/es/src/ap-form/search-form/components/popover-sorter/sortable-item.vue2.mjs +2 -2
- package/es/src/ap-form/search-form/index.vue.d.ts +4 -3
- package/es/src/ap-form/search-form/index.vue.mjs +1 -1
- package/es/src/ap-form/set/index.vue.mjs +1 -1
- package/es/src/ap-grid/editable/form-item.vue.d.ts +4 -2
- package/es/src/ap-grid/editable/form-item.vue.mjs +2 -2
- package/es/src/ap-grid/editable/index.vue.d.ts +4 -2
- package/es/src/ap-grid/editable/index.vue.mjs +2 -2
- package/es/src/ap-grid/index.vue.d.ts +4 -2
- package/es/src/ap-grid/index.vue.mjs +19 -19
- package/es/src/ap-list/index.vue.d.ts +4 -2
- package/es/src/ap-list/index.vue.mjs +1 -1
- package/es/src/ap-modal/utils/confirm.d.ts +1 -1
- package/es/src/ap-table/ap-table.vue.d.ts +4 -2
- package/es/src/ap-table/ap-table.vue2.mjs +13 -13
- package/es/src/ap-table/components/index/index.vue2.mjs +2 -2
- package/es/src/ap-table/components/paragraph-ellipsis/index.vue2.mjs +3 -3
- package/es/src/ap-table/components/setting/modal/index.vue2.mjs +3 -3
- package/es/src/ap-table/components/setting/select-group/index.vue2.mjs +1 -1
- package/es/src/ap-table/components/setting/sortable/index.vue2.mjs +1 -1
- package/es/src/ap-table/components/setting/sortable/item.vue2.mjs +1 -1
- package/es/src/ap-table/components/setting/sorter/index.vue2.mjs +11 -11
- package/es/src/ap-table/components/setting/tree-select/index.vue2.mjs +1 -1
- package/es/src/ap-table/components/status/index.vue2.mjs +2 -2
- package/es/src/ap-table/constants.d.ts +5 -5
- package/es/src/ap-table/constants.mjs +45 -45
- package/es/src/ap-table/hooks/use-table-column-state.d.ts +4 -4
- package/es/src/ap-table/hooks/use-table-column-state.mjs +3 -3
- package/es/src/ap-tag/ap-tag-group.vue.mjs +8 -8
- package/es/src/ap-tag/ap-tag.vue.mjs +2 -2
- package/es/src/ap-upload/apUpload.vue.mjs +5 -5
- package/es/src/ap-upload/components/MultipleFile.vue.d.ts +1 -1
- package/es/src/ap-upload/components/MultipleFile.vue2.mjs +3 -3
- package/es/src/ap-upload/components/Picture.vue.d.ts +7 -2
- package/es/src/ap-upload/components/Picture.vue2.mjs +6 -6
- package/es/src/ap-upload/components/SingleFile.vue2.mjs +7 -7
- package/es/src/business/ap-appendix/ap-appendix.vue2.mjs +1 -1
- package/es/src/business/ap-appendix/icons/file-icon.vue.mjs +2 -2
- package/es/src/business/ap-batch-action/ApBatchAction.vue2.mjs +6 -6
- package/es/src/business/ap-batch-action-group/ApBatchActionGroup.vue2.mjs +9 -9
- package/es/src/business/ap-batch-action-group/MenuItemGroup.vue2.mjs +1 -1
- package/es/src/business/ap-batch-action-group/index.d.ts +3 -3
- package/es/src/business/ap-button-group/ApButtonGroup.vue2.mjs +1 -1
- package/es/src/business/ap-card/ApCard.vue2.mjs +9 -9
- package/es/src/business/ap-draggable-grid/ApDraggableGrid.vue.d.ts +10 -1
- package/es/src/business/ap-draggable-grid/ApDraggableGrid.vue2.mjs +105 -104
- package/es/src/business/ap-draggable-grid/constans.d.ts +4 -0
- package/es/src/business/ap-draggable-grid/constans.mjs +4 -0
- package/es/src/business/ap-draggable-grid/index.d.ts +16 -1
- package/es/src/business/ap-expand-alert/ApExpandAlert.vue.d.ts +4 -2
- package/es/src/business/ap-expand-alert/ApExpandAlert.vue2.mjs +11 -11
- package/es/src/business/ap-expand-alert/index.d.ts +6 -4
- package/es/src/business/ap-export-group/ApExportGroup.vue2.mjs +7 -7
- package/es/src/business/ap-image/ApImage.vue2.mjs +1 -1
- package/es/src/business/ap-input-radio/ApInputRadio.vue2.mjs +2 -2
- package/es/src/business/ap-keep-alive/keep-alive.mjs +3 -3
- package/es/src/business/ap-ladder/components/RenderValue.mjs +2 -2
- package/es/src/business/ap-radio-group/ap-radio-group.vue2.mjs +1 -1
- package/es/src/business/ap-select-layout/index.d.ts +4 -2
- package/es/src/business/ap-select-layout/select-layout.vue.d.ts +4 -2
- package/es/src/business/ap-select-layout/select-layout.vue2.mjs +4 -4
- package/es/src/business/ap-status/ApStatus.vue2.mjs +8 -8
- package/es/src/business/ap-status/group/ApStatusGroup.vue2.mjs +4 -4
- package/es/src/business/ap-summary/ap-summary.vue2.mjs +1 -1
- package/es/src/business/ap-table-modal/index.d.ts +5 -17
- package/es/src/business/ap-table-modal/modal-title.vue2.mjs +2 -2
- package/es/src/business/ap-table-modal/table-layout/index.vue2.mjs +14 -14
- package/es/src/business/ap-table-modal/table-modal.vue2.mjs +3 -3
- package/es/src/business/ap-title/ApTitle.vue2.mjs +7 -7
- package/es/src/business/ap-upload-file/ap-upload-single/ap-upload-single.vue.mjs +1 -1
- package/es/src/business/ap-upload-file/icon/delete-icon.vue.mjs +2 -2
- package/es/src/business/ap-upload-file/icon/file-icon.vue.mjs +2 -2
- package/es/src/business/ap-view/ap-view.vue2.mjs +2 -2
- package/es/src/business/ap-view/components/main-button-content.vue.d.ts +3 -2
- package/es/src/business/ap-view/components/main-button-content.vue2.mjs +5 -5
- package/es/src/business/ap-view/components/menu-list-content.vue.d.ts +3 -2
- package/es/src/business/ap-view/components/menu-list-content.vue2.mjs +6 -6
- package/es/src/business/ap-view/icons/line-delete.vue.mjs +2 -2
- package/es/src/business/ap-view/icons/line-down.vue.mjs +2 -2
- package/es/src/business/ap-view/icons/line-eye.vue.mjs +2 -2
- package/es/src/business/batch-input-group/form-item.vue.mjs +2 -2
- package/es/src/business/batch-input-group/index.vue.mjs +1 -1
- package/es/src/business/batch-input-group/popover-input/index.vue2.mjs +2 -2
- package/es/src/check-card/index.vue2.mjs +3 -3
- package/es/src/config-provider/hooks/use-namespace.d.ts +1 -5
- package/es/src/editable-table/form-item.vue.d.ts +4 -2
- package/es/src/editable-table/form-item.vue.mjs +2 -2
- package/es/src/editable-table/index.vue.d.ts +4 -2
- package/es/src/editable-table/index.vue.mjs +2 -2
- package/es/src/full-screen/index.vue.mjs +3 -3
- package/es/src/hooks/useFullScreen.mjs +5 -5
- package/es/src/mask/index.vue.mjs +10 -10
- package/es/src/portal/index.vue.mjs +2 -2
- package/es/src/scroll-bar/index.vue.mjs +3 -3
- package/es/src/scroll-bar/internal.vue.mjs +2 -2
- package/es/src/scroll-view/index.vue.d.ts +5 -5
- package/es/src/scroll-view/index.vue.mjs +9 -9
- package/es/src/splitter/Panel.vue2.mjs +4 -4
- package/es/src/splitter/SplitBar.vue2.mjs +7 -7
- package/es/src/splitter/Splitter.vue2.mjs +5 -5
- package/es/src/tests/wrapper.d.ts +4 -4
- package/es/src/text/group.vue.mjs +2 -2
- package/es/src/text/index.vue.mjs +5 -5
- package/es/src/version.d.ts +1 -1
- package/es/src/version.mjs +1 -1
- package/es/src/work-order-modal/help-message.vue2.mjs +2 -2
- package/es/src/work-order-modal/work-order-modal.vue.d.ts +3 -2
- package/es/src/work-order-modal/work-order-modal.vue.mjs +2 -2
- package/lib/src/ap-action/item-dropdown/index.vue.js +1 -1
- package/lib/src/ap-field/index.js +1 -1
- package/lib/src/ap-field/select/use-select-options.d.ts +2 -2
- package/lib/src/ap-field/tree-select/use-request.d.ts +4 -4
- package/lib/src/ap-form/ap-form.vue.d.ts +2 -1
- package/lib/src/ap-form/drawer-form/index.vue.d.ts +4 -3
- package/lib/src/ap-form/items/select/index.vue.d.ts +6 -6
- package/lib/src/ap-form/modal-form/index.vue.d.ts +4 -3
- package/lib/src/ap-form/search-form/index.vue.d.ts +4 -3
- package/lib/src/ap-grid/editable/form-item.vue.d.ts +4 -2
- package/lib/src/ap-grid/editable/index.vue.d.ts +4 -2
- package/lib/src/ap-grid/index.vue.d.ts +4 -2
- package/lib/src/ap-list/index.vue.d.ts +4 -2
- package/lib/src/ap-modal/utils/confirm.d.ts +1 -1
- package/lib/src/ap-table/ap-table.vue.d.ts +4 -2
- package/lib/src/ap-table/constants.d.ts +5 -5
- package/lib/src/ap-table/constants.js +1 -1
- package/lib/src/ap-table/hooks/use-table-column-state.d.ts +4 -4
- package/lib/src/ap-upload/apUpload.vue.js +1 -1
- package/lib/src/ap-upload/components/MultipleFile.vue.d.ts +1 -1
- package/lib/src/ap-upload/components/Picture.vue.d.ts +7 -2
- package/lib/src/business/ap-batch-action-group/index.d.ts +3 -3
- package/lib/src/business/ap-draggable-grid/ApDraggableGrid.vue.d.ts +10 -1
- package/lib/src/business/ap-draggable-grid/ApDraggableGrid.vue2.js +1 -1
- package/lib/src/business/ap-draggable-grid/constans.d.ts +4 -0
- package/lib/src/business/ap-draggable-grid/constans.js +1 -1
- package/lib/src/business/ap-draggable-grid/index.d.ts +16 -1
- package/lib/src/business/ap-expand-alert/ApExpandAlert.vue.d.ts +4 -2
- package/lib/src/business/ap-expand-alert/index.d.ts +6 -4
- package/lib/src/business/ap-select-layout/index.d.ts +4 -2
- package/lib/src/business/ap-select-layout/select-layout.vue.d.ts +4 -2
- package/lib/src/business/ap-table-modal/index.d.ts +5 -17
- package/lib/src/business/ap-view/components/main-button-content.vue.d.ts +3 -2
- package/lib/src/business/ap-view/components/menu-list-content.vue.d.ts +3 -2
- package/lib/src/config-provider/hooks/use-namespace.d.ts +1 -5
- package/lib/src/editable-table/form-item.vue.d.ts +4 -2
- package/lib/src/editable-table/index.vue.d.ts +4 -2
- package/lib/src/scroll-view/index.vue.d.ts +5 -5
- package/lib/src/tests/wrapper.d.ts +4 -4
- package/lib/src/version.d.ts +1 -1
- package/lib/src/version.js +1 -1
- package/lib/src/work-order-modal/work-order-modal.vue.d.ts +3 -2
- package/package.json +3 -3
- package/theme/antd-global-overwrite/admin/alert.css +37 -0
- package/theme/antd-global-overwrite/admin/alert.less +51 -0
- package/theme/antd-global-overwrite/admin/button.css +27 -0
- package/theme/antd-global-overwrite/admin/button.less +31 -0
- package/theme/antd-global-overwrite/admin/field.css +42 -0
- package/theme/antd-global-overwrite/admin/field.less +43 -0
- package/theme/antd-global-overwrite/admin/form.css +57 -0
- package/theme/antd-global-overwrite/admin/form.less +97 -0
- package/theme/antd-global-overwrite/admin/message.css +10 -0
- package/theme/antd-global-overwrite/admin/message.less +13 -0
- package/theme/antd-global-overwrite/admin/modal.css +94 -0
- package/theme/antd-global-overwrite/admin/modal.less +128 -0
- package/theme/antd-global-overwrite/admin/pagination.css +122 -0
- package/theme/antd-global-overwrite/admin/pagination.less +91 -0
- package/theme/antd-global-overwrite/admin/steps.css +127 -0
- package/theme/antd-global-overwrite/admin/steps.less +197 -0
- package/theme/antd-global-overwrite/admin/table.css +78 -0
- package/theme/antd-global-overwrite/admin/table.less +62 -0
- package/theme/antd-global-overwrite/admin/tooltip.css +3 -0
- package/theme/antd-global-overwrite/admin/tooltip.less +3 -0
- package/theme/antd-global-overwrite/aplus/alert.css +40 -0
- package/theme/antd-global-overwrite/aplus/alert.less +55 -0
- package/theme/antd-global-overwrite/aplus/button.css +27 -0
- package/theme/antd-global-overwrite/aplus/button.less +31 -0
- package/theme/antd-global-overwrite/aplus/field.css +42 -0
- package/theme/antd-global-overwrite/aplus/field.less +43 -0
- package/theme/antd-global-overwrite/aplus/form.css +87 -0
- package/theme/antd-global-overwrite/aplus/form.less +133 -0
- package/theme/antd-global-overwrite/aplus/message.css +10 -0
- package/theme/antd-global-overwrite/aplus/message.less +13 -0
- package/theme/antd-global-overwrite/aplus/modal.css +87 -0
- package/theme/antd-global-overwrite/aplus/modal.less +120 -0
- package/theme/antd-global-overwrite/aplus/pagination.css +147 -0
- package/theme/antd-global-overwrite/aplus/pagination.less +108 -0
- package/theme/antd-global-overwrite/aplus/steps.css +125 -0
- package/theme/antd-global-overwrite/aplus/steps.less +198 -0
- package/theme/antd-global-overwrite/aplus/table.css +78 -0
- package/theme/antd-global-overwrite/aplus/table.less +61 -0
- package/theme/antd-global-overwrite/aplus/tooltip.css +3 -0
- package/theme/antd-global-overwrite/aplus/tooltip.less +3 -0
- package/theme/ap-draggable-grid/ap-draggable-grid.css +4 -2
- package/theme/ap-draggable-grid/ap-draggable-grid.less +6 -2
- package/theme/ap-table/ap-table-pagination.css +12 -0
- package/theme/ap-table/ap-table-pagination.less +14 -0
- package/theme/index.css +4 -2
- package/theme/ui-mode.css +60 -0
- package/theme/ui-mode.less +109 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as x, ref as _, computed as B,
|
|
1
|
+
import { defineComponent as x, ref as _, computed as B, openBlock as i, createElementBlock as f, mergeProps as E, unref as o, createElementVNode as O, normalizeClass as y, createVNode as b, createSlots as N, withCtx as m, createBlock as c, resolveDynamicComponent as v, h as w, createCommentVNode as V } from "vue";
|
|
2
2
|
import "../../../config-provider/index.mjs";
|
|
3
3
|
import { Tooltip as h } from "@aplus-frontend/antdv";
|
|
4
4
|
import { CopyOutlined as j, CheckOutlined as S } from "@ant-design/icons-vue";
|
|
@@ -65,7 +65,7 @@ const G = /* @__PURE__ */ x({
|
|
|
65
65
|
O("div", {
|
|
66
66
|
class: y([o(u)("content")])
|
|
67
67
|
}, [
|
|
68
|
-
b(o(h), null,
|
|
68
|
+
b(o(h), null, N({
|
|
69
69
|
default: m(() => {
|
|
70
70
|
var s;
|
|
71
71
|
return [
|
|
@@ -98,7 +98,7 @@ const G = /* @__PURE__ */ x({
|
|
|
98
98
|
]),
|
|
99
99
|
_: 1
|
|
100
100
|
}, 8, ["title"])
|
|
101
|
-
], 2)) :
|
|
101
|
+
], 2)) : V("", !0)
|
|
102
102
|
], 16);
|
|
103
103
|
};
|
|
104
104
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as G, ref as y, unref as e, computed as L, useSlots as M, createVNode as l, cloneVNode as P,
|
|
1
|
+
import { defineComponent as G, ref as y, unref as e, computed as L, useSlots as M, createVNode as l, cloneVNode as P, openBlock as T, createElementBlock as q, Fragment as H, createBlock as J, resolveDynamicComponent as Q, createCommentVNode as W, withCtx as r, createElementVNode as s, normalizeClass as i, toDisplayString as c, createTextVNode as S, isRef as X } from "vue";
|
|
2
2
|
import { Button as x, Modal as Y, RadioGroup as Z, RadioButton as B, Divider as N } from "@aplus-frontend/antdv";
|
|
3
3
|
import { getSingleVNode as ee } from "../../../../utils/slot.mjs";
|
|
4
4
|
import { useInjectApTable as te } from "../../../context.mjs";
|
|
@@ -58,9 +58,9 @@ const Te = /* @__PURE__ */ G({
|
|
|
58
58
|
const p = h(o.value);
|
|
59
59
|
E(p), I(p), (n = (t = m.config) == null ? void 0 : t.onChange) == null || n.call(t, p);
|
|
60
60
|
}
|
|
61
|
-
return (p, t) => (T(), q(H, null, [e(k) ? (T(), J(
|
|
61
|
+
return (p, t) => (T(), q(H, null, [e(k) ? (T(), J(Q(e(k)), {
|
|
62
62
|
key: 0
|
|
63
|
-
})) :
|
|
63
|
+
})) : W("", !0), l(e(Y), {
|
|
64
64
|
open: u.value,
|
|
65
65
|
"onUpdate:open": t[2] || (t[2] = (n) => u.value = n),
|
|
66
66
|
title: e(a)("ap.apTable.setting.title"),
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as P, ref as U, computed as p, unref as l, watch as x,
|
|
1
|
+
import { defineComponent as P, ref as U, computed as p, unref as l, watch as x, openBlock as s, createElementBlock as v, createElementVNode as k, normalizeClass as D, createVNode as u, withCtx as i, createBlock as h, resolveDynamicComponent as w, Fragment as L, renderList as j, mergeProps as z } from "vue";
|
|
2
2
|
import { Checkbox as b, Row as F, Col as I } from "@aplus-frontend/antdv";
|
|
3
3
|
import "../../../../config-provider/index.mjs";
|
|
4
4
|
import { useInjectApTable as R } from "../../../context.mjs";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as f, ref as c,
|
|
1
|
+
import { defineComponent as f, ref as c, openBlock as n, createElementBlock as u, normalizeClass as m, unref as r, createVNode as i, withCtx as k, createBlock as y, createCommentVNode as p } from "vue";
|
|
2
2
|
import "./item.vue.mjs";
|
|
3
3
|
import "../../../../config-provider/index.mjs";
|
|
4
4
|
import V from "vuedraggable";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as E,
|
|
1
|
+
import { defineComponent as E, openBlock as s, createElementBlock as g, normalizeClass as t, unref as e, createElementVNode as p, createVNode as c, createCommentVNode as r, createBlock as u, resolveDynamicComponent as I, withCtx as d } from "vue";
|
|
2
2
|
import { Space as O, Tooltip as m } from "@aplus-frontend/antdv";
|
|
3
3
|
import { HolderOutlined as D, VerticalAlignTopOutlined as k, VerticalAlignMiddleOutlined as z, DeleteOutlined as A } from "@ant-design/icons-vue";
|
|
4
4
|
import "../../../../config-provider/index.mjs";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as A, ref as L, unref as n, computed as O, watch as $,
|
|
1
|
+
import { defineComponent as A, ref as L, unref as n, computed as O, watch as $, openBlock as c, createElementBlock as y, normalizeClass as d, createVNode as m, withCtx as v, createElementVNode as g, toDisplayString as k, createTextVNode as q, createBlock as b, createCommentVNode as p } from "vue";
|
|
2
2
|
import { Flex as G, Button as H, Divider as J } from "@aplus-frontend/antdv";
|
|
3
3
|
import N from "vuedraggable";
|
|
4
4
|
import "../sortable/index.vue.mjs";
|
|
@@ -112,8 +112,8 @@ const W = { key: 0 }, X = { key: 1 }, Y = { key: 2 }, re = /* @__PURE__ */ A({
|
|
|
112
112
|
align: "center",
|
|
113
113
|
justify: "space-between"
|
|
114
114
|
}, {
|
|
115
|
-
default:
|
|
116
|
-
|
|
115
|
+
default: v(() => [
|
|
116
|
+
g("span", {
|
|
117
117
|
class: d(n(r)("header-title"))
|
|
118
118
|
}, k(n(h)("ap.apTable.setting.selectCount", { count: z.value })), 3),
|
|
119
119
|
m(n(H), {
|
|
@@ -122,7 +122,7 @@ const W = { key: 0 }, X = { key: 1 }, Y = { key: 2 }, re = /* @__PURE__ */ A({
|
|
|
122
122
|
style: { padding: "0" },
|
|
123
123
|
onClick: x.onReset
|
|
124
124
|
}, {
|
|
125
|
-
default:
|
|
125
|
+
default: v(() => [
|
|
126
126
|
q(k(n(h)("ap.apTable.setting.reset")), 1)
|
|
127
127
|
]),
|
|
128
128
|
_: 1
|
|
@@ -131,11 +131,11 @@ const W = { key: 0 }, X = { key: 1 }, Y = { key: 2 }, re = /* @__PURE__ */ A({
|
|
|
131
131
|
_: 1
|
|
132
132
|
}, 8, ["class"]),
|
|
133
133
|
m(n(J), { style: { margin: "0px" } }),
|
|
134
|
-
|
|
134
|
+
g("div", {
|
|
135
135
|
class: d(n(r)("content"))
|
|
136
136
|
}, [
|
|
137
137
|
i.value.length ? (c(), y("div", W, [
|
|
138
|
-
|
|
138
|
+
g("span", {
|
|
139
139
|
class: d(n(r)("section-title"))
|
|
140
140
|
}, k(n(h)("ap.apTable.setting.fixToLeft")), 3),
|
|
141
141
|
m(n(N), {
|
|
@@ -143,7 +143,7 @@ const W = { key: 0 }, X = { key: 1 }, Y = { key: 2 }, re = /* @__PURE__ */ A({
|
|
|
143
143
|
"item-key": "key",
|
|
144
144
|
"onUpdate:modelValue": D
|
|
145
145
|
}, {
|
|
146
|
-
item:
|
|
146
|
+
item: v(({ element: o }) => [
|
|
147
147
|
C(o) ? (c(), b(R, {
|
|
148
148
|
key: 0,
|
|
149
149
|
value: o
|
|
@@ -153,7 +153,7 @@ const W = { key: 0 }, X = { key: 1 }, Y = { key: 2 }, re = /* @__PURE__ */ A({
|
|
|
153
153
|
}, 8, ["model-value"])
|
|
154
154
|
])) : p("", !0),
|
|
155
155
|
s.value.length ? (c(), y("div", X, [
|
|
156
|
-
|
|
156
|
+
g("span", {
|
|
157
157
|
class: d(n(r)("section-title"))
|
|
158
158
|
}, k(n(h)("ap.apTable.setting.unFixed")), 3),
|
|
159
159
|
m(n(N), {
|
|
@@ -161,7 +161,7 @@ const W = { key: 0 }, X = { key: 1 }, Y = { key: 2 }, re = /* @__PURE__ */ A({
|
|
|
161
161
|
"item-key": "key",
|
|
162
162
|
"onUpdate:modelValue": E
|
|
163
163
|
}, {
|
|
164
|
-
item:
|
|
164
|
+
item: v(({ element: o }) => [
|
|
165
165
|
C(o) ? (c(), b(R, {
|
|
166
166
|
key: 0,
|
|
167
167
|
value: o
|
|
@@ -171,7 +171,7 @@ const W = { key: 0 }, X = { key: 1 }, Y = { key: 2 }, re = /* @__PURE__ */ A({
|
|
|
171
171
|
}, 8, ["model-value"])
|
|
172
172
|
])) : p("", !0),
|
|
173
173
|
u.value.length ? (c(), y("div", Y, [
|
|
174
|
-
|
|
174
|
+
g("span", {
|
|
175
175
|
class: d(n(r)("section-title"))
|
|
176
176
|
}, k(n(h)("ap.apTable.setting.fixToRight")), 3),
|
|
177
177
|
m(n(N), {
|
|
@@ -179,7 +179,7 @@ const W = { key: 0 }, X = { key: 1 }, Y = { key: 2 }, re = /* @__PURE__ */ A({
|
|
|
179
179
|
"item-key": "key",
|
|
180
180
|
"onUpdate:modelValue": j
|
|
181
181
|
}, {
|
|
182
|
-
item:
|
|
182
|
+
item: v(({ element: o }) => [
|
|
183
183
|
C(o) ? (c(), b(R, {
|
|
184
184
|
key: 0,
|
|
185
185
|
value: o
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as x, computed as w, unref as o,
|
|
1
|
+
import { defineComponent as x, computed as w, unref as o, openBlock as c, createElementBlock as i, createVNode as s, withCtx as d, Fragment as m, renderList as B, createBlock as u, mergeProps as I, resolveDynamicComponent as L } from "vue";
|
|
2
2
|
import { Row as N, Col as k, Checkbox as P } from "@aplus-frontend/antdv";
|
|
3
3
|
import "../select-group/index.vue.mjs";
|
|
4
4
|
import { useInjectApTable as U } from "../../../context.mjs";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as n, computed as o,
|
|
1
|
+
import { defineComponent as n, computed as o, openBlock as u, createBlock as a, unref as m, normalizeProps as p, mergeProps as l, createCommentVNode as c } from "vue";
|
|
2
2
|
import { Badge as s } from "@aplus-frontend/antdv";
|
|
3
3
|
const _ = /* @__PURE__ */ n({
|
|
4
4
|
name: "ApTableStatus",
|
|
@@ -9,7 +9,7 @@ const _ = /* @__PURE__ */ n({
|
|
|
9
9
|
},
|
|
10
10
|
setup(t) {
|
|
11
11
|
const e = t, r = o(() => e.valueEnum[e.value]);
|
|
12
|
-
return (d, f) => r.value ? (
|
|
12
|
+
return (d, f) => r.value ? (u(), a(m(s), p(l({ key: 0 }, r.value)), null, 16)) : c("", !0);
|
|
13
13
|
}
|
|
14
14
|
});
|
|
15
15
|
export {
|
|
@@ -11,7 +11,7 @@ import { VueNode, CustomSlotsType } from '@aplus-frontend/antdv/es/_util/type';
|
|
|
11
11
|
import { OnCleanup } from '@vue/reactivity';
|
|
12
12
|
import { RadioGroupChildOption } from '@aplus-frontend/antdv/es/radio/Group';
|
|
13
13
|
import { RadioGroupButtonStyle, RadioGroupOptionType } from '@aplus-frontend/antdv/es/radio/interface';
|
|
14
|
-
import { RadioChangeEvent, TreeSelectProps, CheckboxOptionType } from '@aplus-frontend/antdv';
|
|
14
|
+
import { RadioChangeEvent, SelectProps, TreeSelectProps, CheckboxOptionType } from '@aplus-frontend/antdv';
|
|
15
15
|
import { SelectValue, DefaultOptionType, LabeledValue, BaseOptionType } from '@aplus-frontend/antdv/es/select';
|
|
16
16
|
import { SelectHandler, FieldNames, FilterFunc } from '@aplus-frontend/antdv/es/vc-select/Select';
|
|
17
17
|
import { RenderDOMFunc, DropdownRender, CustomTagProps, DisplayValueType } from '@aplus-frontend/antdv/es/vc-select/BaseSelect';
|
|
@@ -950,14 +950,14 @@ export declare const apTableFormItemMap: {
|
|
|
950
950
|
readonly onClickOption?: ((e: MouseEvent, value: SelectValue, selected: boolean) => boolean | Promise<boolean>) | undefined;
|
|
951
951
|
readonly labelInValue?: boolean | undefined;
|
|
952
952
|
readonly emptyText?: string | undefined;
|
|
953
|
-
readonly request?: ((value?: string, extraParams?: Recordable) => Promise<
|
|
953
|
+
readonly request?: ((value?: string, extraParams?: Recordable) => Promise< SelectProps["options"]>) | undefined;
|
|
954
954
|
readonly multiple?: boolean | undefined;
|
|
955
|
-
readonly value?:
|
|
955
|
+
readonly value?: SelectProps["value"];
|
|
956
956
|
readonly 'onUpdate:value'?: (((val: SelectValue) => void) & ((...args: any[]) => any)) | undefined;
|
|
957
|
-
readonly searchMode?: "filter" | "request" | undefined;
|
|
957
|
+
readonly searchMode?: ("filter" | "request") | undefined;
|
|
958
958
|
readonly refetchOnFocus?: boolean | undefined;
|
|
959
959
|
readonly lazy?: boolean | undefined;
|
|
960
|
-
readonly addAll?: boolean | number | undefined;
|
|
960
|
+
readonly addAll?: (boolean | number) | undefined;
|
|
961
961
|
readonly params?: Recordable | undefined;
|
|
962
962
|
readonly searchDelay?: number | undefined;
|
|
963
963
|
} & VNodeProps & AllowedComponentProps & ComponentCustomProps;
|
|
@@ -3,57 +3,57 @@ import "../ap-field/index.mjs";
|
|
|
3
3
|
import "../ap-form/index.mjs";
|
|
4
4
|
import "./components/index/index.vue.mjs";
|
|
5
5
|
import "./components/status/index.vue.mjs";
|
|
6
|
-
import o from "../ap-form/items/
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import i from "../ap-form/items/switch/index.vue.mjs";
|
|
6
|
+
import o from "../ap-form/items/date/index.vue.mjs";
|
|
7
|
+
import r from "../ap-form/items/date-range/index.vue.mjs";
|
|
8
|
+
import t from "../ap-form/items/number/index.vue.mjs";
|
|
9
|
+
import i from "../ap-form/items/radio/index.vue.mjs";
|
|
11
10
|
import f from "../ap-form/items/select/index.vue.mjs";
|
|
12
|
-
import a from "../ap-form/items/
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
import
|
|
18
|
-
import
|
|
19
|
-
import
|
|
20
|
-
import
|
|
21
|
-
import
|
|
22
|
-
import
|
|
23
|
-
import { ApFieldText as
|
|
24
|
-
import
|
|
25
|
-
import
|
|
26
|
-
import
|
|
27
|
-
import
|
|
28
|
-
import
|
|
29
|
-
import
|
|
11
|
+
import a from "../ap-form/items/switch/index.vue.mjs";
|
|
12
|
+
import { ApFormItemText as m } from "../ap-form/items/text/index.mjs";
|
|
13
|
+
import e from "../ap-form/items/text-area/index.vue.mjs";
|
|
14
|
+
import _ from "../ap-form/items/checkbox/index.vue.mjs";
|
|
15
|
+
import s from "../ap-form/items/tree-select/index.vue.mjs";
|
|
16
|
+
import c from "../ap-field/date/index.vue.mjs";
|
|
17
|
+
import p from "../ap-field/date-range/index.vue.mjs";
|
|
18
|
+
import n from "../ap-field/number/index.vue.mjs";
|
|
19
|
+
import $ from "../ap-field/radio/index.vue.mjs";
|
|
20
|
+
import d from "../ap-field/select/index.vue.mjs";
|
|
21
|
+
import x from "../ap-field/switch/index.vue.mjs";
|
|
22
|
+
import { ApFieldText as l } from "../ap-field/text/index.mjs";
|
|
23
|
+
import b from "../ap-field/text-area/index.vue.mjs";
|
|
24
|
+
import h from "../ap-field/checkbox/index.vue.mjs";
|
|
25
|
+
import w from "../ap-action/group/index.vue.mjs";
|
|
26
|
+
import A from "./components/index/index.vue2.mjs";
|
|
27
|
+
import u from "./components/status/index.vue2.mjs";
|
|
28
|
+
import F from "../ap-field/text/password.vue.mjs";
|
|
29
|
+
import I from "../ap-field/tree-select/index.vue.mjs";
|
|
30
30
|
const Z = {
|
|
31
|
-
date:
|
|
32
|
-
dateRange:
|
|
33
|
-
number:
|
|
34
|
-
radio:
|
|
31
|
+
date: o,
|
|
32
|
+
dateRange: r,
|
|
33
|
+
number: t,
|
|
34
|
+
radio: i,
|
|
35
35
|
select: f,
|
|
36
|
-
switch:
|
|
36
|
+
switch: a,
|
|
37
37
|
text: m,
|
|
38
|
-
textArea:
|
|
39
|
-
checkbox:
|
|
38
|
+
textArea: e,
|
|
39
|
+
checkbox: _,
|
|
40
40
|
password: m.Password,
|
|
41
|
-
treeSelect:
|
|
41
|
+
treeSelect: s
|
|
42
42
|
}, mm = {
|
|
43
|
-
date:
|
|
44
|
-
dateRange:
|
|
45
|
-
number:
|
|
46
|
-
radio:
|
|
47
|
-
select:
|
|
48
|
-
switch:
|
|
49
|
-
text:
|
|
50
|
-
textArea:
|
|
51
|
-
checkbox:
|
|
52
|
-
action:
|
|
53
|
-
index:
|
|
54
|
-
status:
|
|
55
|
-
password:
|
|
56
|
-
treeSelect:
|
|
43
|
+
date: c,
|
|
44
|
+
dateRange: p,
|
|
45
|
+
number: n,
|
|
46
|
+
radio: $,
|
|
47
|
+
select: d,
|
|
48
|
+
switch: x,
|
|
49
|
+
text: l,
|
|
50
|
+
textArea: b,
|
|
51
|
+
checkbox: h,
|
|
52
|
+
action: w,
|
|
53
|
+
index: A,
|
|
54
|
+
status: u,
|
|
55
|
+
password: F,
|
|
56
|
+
treeSelect: I
|
|
57
57
|
}, om = [
|
|
58
58
|
"action",
|
|
59
59
|
"index"
|
|
@@ -4,18 +4,18 @@ export declare const useTableColumnState: (columnSetting: ApTableSettingType, pe
|
|
|
4
4
|
columnState: Ref<{
|
|
5
5
|
key: string | number;
|
|
6
6
|
show?: boolean | undefined;
|
|
7
|
-
fixed?: "left" | "right" | undefined;
|
|
7
|
+
fixed?: ("left" | "right") | undefined;
|
|
8
8
|
disabled?: boolean | undefined;
|
|
9
9
|
label?: any;
|
|
10
|
-
children?:
|
|
10
|
+
children?: any[] | undefined;
|
|
11
11
|
order?: number | undefined;
|
|
12
12
|
}[], ApColumnState[] | {
|
|
13
13
|
key: string | number;
|
|
14
14
|
show?: boolean | undefined;
|
|
15
|
-
fixed?: "left" | "right" | undefined;
|
|
15
|
+
fixed?: ("left" | "right") | undefined;
|
|
16
16
|
disabled?: boolean | undefined;
|
|
17
17
|
label?: any;
|
|
18
|
-
children?:
|
|
18
|
+
children?: any[] | undefined;
|
|
19
19
|
order?: number | undefined;
|
|
20
20
|
}[]>;
|
|
21
21
|
selectAll: () => void;
|
|
@@ -2,7 +2,7 @@ import { ref as P, shallowRef as W, unref as i, computed as X, watchEffect as q
|
|
|
2
2
|
import { isDef as H } from "../../utils/index.mjs";
|
|
3
3
|
import L, { customCloneColumnStates as T, getColumnStateString as Q } from "../components/setting/utils.mjs";
|
|
4
4
|
import { useInjectApTable as U } from "../context.mjs";
|
|
5
|
-
import { isObject as N, mergeWith as F, isBoolean as V,
|
|
5
|
+
import { isObject as N, mergeWith as F, isBoolean as V, isString as Y, omit as Z, isNumber as B } from "lodash-unified";
|
|
6
6
|
import "../../config-provider/index.mjs";
|
|
7
7
|
import { useToken as $ } from "@aplus-frontend/antdv/es/theme/internal";
|
|
8
8
|
import { getTableTitle as K } from "../utils.mjs";
|
|
@@ -46,7 +46,7 @@ const he = (r, o, n) => {
|
|
|
46
46
|
var y, A;
|
|
47
47
|
const b = (m == null ? void 0 : m[f.key]) || {}, g = {
|
|
48
48
|
key: f.key,
|
|
49
|
-
label:
|
|
49
|
+
label: Y(f.title) ? K(
|
|
50
50
|
f,
|
|
51
51
|
a("table-header", "title"),
|
|
52
52
|
void 0,
|
|
@@ -60,7 +60,7 @@ const he = (r, o, n) => {
|
|
|
60
60
|
G
|
|
61
61
|
),
|
|
62
62
|
disabled: !1,
|
|
63
|
-
...
|
|
63
|
+
...Z(b, ["children", "fixed"])
|
|
64
64
|
};
|
|
65
65
|
return g.children = (A = f.children) != null && A.length ? d(
|
|
66
66
|
f.children,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as D, ref as b, computed as n, unref as f, watch as N, nextTick as S, onMounted as j, onUnmounted as G,
|
|
1
|
+
import { defineComponent as D, ref as b, computed as n, unref as f, watch as N, nextTick as S, onMounted as j, onUnmounted as G, openBlock as u, createBlock as d, mergeProps as k, withCtx as g, renderSlot as R, createTextVNode as A, toDisplayString as W, createElementVNode as o, normalizeClass as _, normalizeStyle as T, createElementBlock as E, Fragment as F, renderList as I, createCommentVNode as U } from "vue";
|
|
2
2
|
import { Tooltip as q } from "@aplus-frontend/antdv";
|
|
3
3
|
import H from "@ant-design/icons-vue";
|
|
4
4
|
import "./ap-tag.vue2.mjs";
|
|
@@ -79,8 +79,8 @@ const ce = /* @__PURE__ */ D({
|
|
|
79
79
|
window.removeEventListener("resize", w);
|
|
80
80
|
}), (e, t) => (u(), d(f(q), k({ trigger: "hover" }, B.value), {
|
|
81
81
|
title: g(() => [
|
|
82
|
-
|
|
83
|
-
|
|
82
|
+
R(e.$slots, "tooltip", { tags: e.list }, () => [
|
|
83
|
+
A(W(L.value), 1)
|
|
84
84
|
])
|
|
85
85
|
]),
|
|
86
86
|
default: g(() => [
|
|
@@ -88,12 +88,12 @@ const ce = /* @__PURE__ */ D({
|
|
|
88
88
|
ref_key: "container",
|
|
89
89
|
ref: c,
|
|
90
90
|
class: _(M.value),
|
|
91
|
-
style:
|
|
91
|
+
style: T({
|
|
92
92
|
pointerEvents: p.value ? "auto" : "none"
|
|
93
93
|
// opacity: isUpdating ? '0' : '1'
|
|
94
94
|
})
|
|
95
95
|
}, [
|
|
96
|
-
(u(!0),
|
|
96
|
+
(u(!0), E(F, null, I(e.list, (s, l) => (u(), d(X, k({ ref_for: !0 }, s, {
|
|
97
97
|
key: l,
|
|
98
98
|
style: {
|
|
99
99
|
display: l >= m.value ? "none" : "inline-block",
|
|
@@ -102,7 +102,7 @@ const ce = /* @__PURE__ */ D({
|
|
|
102
102
|
}), null, 16, ["style"]))), 128)),
|
|
103
103
|
p.value && r.value.symbol === "icon" ? (u(), d(f(H), {
|
|
104
104
|
key: 0,
|
|
105
|
-
style:
|
|
105
|
+
style: T({
|
|
106
106
|
color: e.ellipsisColor || r.value.iconColor,
|
|
107
107
|
cursor: "pointer"
|
|
108
108
|
})
|
|
@@ -163,11 +163,11 @@ const ce = /* @__PURE__ */ D({
|
|
|
163
163
|
], -1)
|
|
164
164
|
])),
|
|
165
165
|
_: 1
|
|
166
|
-
}, 8, ["style"])) : p.value && r.value.symbol === "text" ? (u(),
|
|
166
|
+
}, 8, ["style"])) : p.value && r.value.symbol === "text" ? (u(), E("span", {
|
|
167
167
|
key: 1,
|
|
168
168
|
class: _(P.value),
|
|
169
169
|
style: { cursor: "pointer" }
|
|
170
|
-
},
|
|
170
|
+
}, W(r.value.text), 3)) : U("", !0)
|
|
171
171
|
], 6)
|
|
172
172
|
]),
|
|
173
173
|
_: 3
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as $, computed as n,
|
|
1
|
+
import { defineComponent as $, computed as n, openBlock as S, createElementBlock as b, normalizeStyle as w, normalizeClass as i, createVNode as z, unref as B } from "vue";
|
|
2
2
|
import "../config-provider/index.mjs";
|
|
3
3
|
import { TypographyText as v } from "@aplus-frontend/antdv";
|
|
4
4
|
import { useGlobalConfig as I } from "../config-provider/hooks/use-global-config.mjs";
|
|
@@ -32,7 +32,7 @@ const A = /* @__PURE__ */ $({
|
|
|
32
32
|
const t = [r("inner-wrapper"), a("inner-wrapper", e.size)];
|
|
33
33
|
return e.disabled && (l.value === "aplus" ? t.push(a("inner-wrapper", "disabled")) : t.push(a("inner-wrapper", "disabled-admin"))), t;
|
|
34
34
|
});
|
|
35
|
-
return (t, s) => (
|
|
35
|
+
return (t, s) => (S(), b("span", {
|
|
36
36
|
style: w(c.value),
|
|
37
37
|
class: i(u.value)
|
|
38
38
|
}, [
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as A, ref as g, computed as v, provide as t,
|
|
1
|
+
import { defineComponent as A, ref as g, computed as v, provide as t, openBlock as y, createElementBlock as R, normalizeClass as U, unref as $, createBlock as k, resolveDynamicComponent as T, mergeProps as B, createSlots as L, renderList as q, withCtx as P, renderSlot as V, normalizeProps as w, guardReactiveProps as D } from "vue";
|
|
2
2
|
import "../config-provider/index.mjs";
|
|
3
3
|
import "./components/SingleFile.vue.mjs";
|
|
4
4
|
import "./components/MultipleFile.vue.mjs";
|
|
@@ -8,9 +8,9 @@ import { injectLocaleToOss as I } from "./hooks/useOss.mjs";
|
|
|
8
8
|
import { Form as H } from "@aplus-frontend/antdv";
|
|
9
9
|
import { useLocale as J } from "../config-provider/hooks/use-locale.mjs";
|
|
10
10
|
import { useNamespace as K } from "../config-provider/hooks/use-namespace.mjs";
|
|
11
|
-
import Q from "./components/
|
|
11
|
+
import Q from "./components/SingleFile.vue2.mjs";
|
|
12
12
|
import W from "./components/MultipleFile.vue2.mjs";
|
|
13
|
-
import X from "./components/
|
|
13
|
+
import X from "./components/Picture.vue2.mjs";
|
|
14
14
|
import { useGlobalConfig as C } from "../config-provider/hooks/use-global-config.mjs";
|
|
15
15
|
const pe = /* @__PURE__ */ A({
|
|
16
16
|
name: "AplusFileUpload",
|
|
@@ -91,9 +91,9 @@ const pe = /* @__PURE__ */ A({
|
|
|
91
91
|
const { t: u, lang: F } = J();
|
|
92
92
|
G(u), I(u, F);
|
|
93
93
|
const { b: M } = K("ap-upload"), n = g(null), e = S, N = x, _ = {
|
|
94
|
-
singleFile:
|
|
94
|
+
singleFile: Q,
|
|
95
95
|
multipleFile: W,
|
|
96
|
-
picture:
|
|
96
|
+
picture: X
|
|
97
97
|
}, s = H.useInjectFormItemContext(), E = v({
|
|
98
98
|
get() {
|
|
99
99
|
return e.value;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { UploadFile, UploadChangeParam } from '@aplus-frontend/antdv';
|
|
2
2
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions, CreateComponentPublicInstanceWithMixins, ExtractPropTypes, PropType, GlobalComponents, GlobalDirectives } from 'vue';
|
|
3
|
-
import { UploadType, UploadFile, FileType, HttpRequestHeader, ShowUploadListInterface, UploadListType, UploadLocale, UploadListProgressProps, ItemRender } from '@aplus-frontend/antdv/es/upload/interface';
|
|
3
|
+
import { UploadType, UploadFile, FileType, HttpRequestHeader, ShowUploadListInterface, UploadChangeParam, UploadListType, UploadLocale, UploadListProgressProps, ItemRender } from '@aplus-frontend/antdv/es/upload/interface';
|
|
4
4
|
import { UploadRequestOption } from '@aplus-frontend/antdv/es/vc-upload/interface';
|
|
5
5
|
import { VueNode } from '@aplus-frontend/antdv/es/_util/type';
|
|
6
6
|
declare function setValue(val: (string | Record<string, any>)[]): void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as G, inject as s, ref as H, watch as J, nextTick as K,
|
|
1
|
+
import { defineComponent as G, inject as s, ref as H, watch as J, nextTick as K, openBlock as h, createElementBlock as C, normalizeClass as Q, unref as n, createVNode as U, withCtx as b, createElementVNode as S, createTextVNode as X, toDisplayString as L, withModifiers as Y, createBlock as Z, resolveDynamicComponent as ee, createCommentVNode as te } from "vue";
|
|
2
2
|
import "../../config-provider/index.mjs";
|
|
3
3
|
import { getPath as oe, getName as se, getReturnData as M } from "../utils/returnData.mjs";
|
|
4
4
|
import { useOss as ae, getOssInstance as ne } from "../hooks/useOss.mjs";
|
|
@@ -201,8 +201,8 @@ const de = { class: "multiple-file-context" }, fe = { key: 0 }, ge = { key: 1 },
|
|
|
201
201
|
}, ["stop"]))
|
|
202
202
|
}, [
|
|
203
203
|
typeof n(f) == "string" ? (h(), C("div", fe, L(n(f) || `${n(r)("ap.apUpload.supportExtension")}:${n(ce)(n(y))}`), 1)) : n(f) ? (h(), C("div", ge, [
|
|
204
|
-
(h(), ee(
|
|
205
|
-
])) :
|
|
204
|
+
(h(), Z(ee(n(f))))
|
|
205
|
+
])) : te("", !0)
|
|
206
206
|
])
|
|
207
207
|
])
|
|
208
208
|
]),
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { Oss } from '../hooks/useOss';
|
|
2
|
-
import { actionResponse } from '@aplus-frontend/oss';
|
|
3
2
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
4
3
|
declare function setValue(val?: (string | Record<string, any>)[]): void;
|
|
5
4
|
interface UploadFile extends File {
|
|
@@ -18,7 +17,13 @@ declare function __VLS_template(): {
|
|
|
18
17
|
pictureContext?(_: {
|
|
19
18
|
fileList: {
|
|
20
19
|
oss: {
|
|
21
|
-
pauseUpload: (() => Promise<
|
|
20
|
+
pauseUpload: (() => Promise<{
|
|
21
|
+
status: number;
|
|
22
|
+
previewUrl?: string;
|
|
23
|
+
saveUrl?: string;
|
|
24
|
+
originalFileName?: string;
|
|
25
|
+
message: string;
|
|
26
|
+
}>) | undefined;
|
|
22
27
|
};
|
|
23
28
|
}[];
|
|
24
29
|
remove: typeof handleRemove;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as Y, inject as c, ref as $, watch as Z, nextTick as F,
|
|
1
|
+
import { defineComponent as Y, inject as c, ref as $, watch as Z, nextTick as F, openBlock as g, createElementBlock as h, normalizeClass as ee, unref as i, createElementVNode as d, renderSlot as te, Fragment as ne, renderList as ae, withDirectives as se, createVNode as k, createCommentVNode as I, vShow as oe, toDisplayString as C } from "vue";
|
|
2
2
|
import "../../config-provider/index.mjs";
|
|
3
3
|
import { getPath as ie, getName as re, getReturnData as M } from "../utils/returnData.mjs";
|
|
4
4
|
import { CloseOutlined as ce, PlusOutlined as ue } from "@ant-design/icons-vue";
|
|
@@ -191,7 +191,7 @@ const ve = ["accept"], xe = { class: "picture-context" }, ye = { class: "picture
|
|
|
191
191
|
);
|
|
192
192
|
return o.value.splice(a, 1), Promise.resolve(!0);
|
|
193
193
|
}
|
|
194
|
-
return (e, a) => (
|
|
194
|
+
return (e, a) => (g(), h("div", {
|
|
195
195
|
class: ee({
|
|
196
196
|
[i(S)()]: !0,
|
|
197
197
|
[i(S)("admin")]: i(B) === "admin"
|
|
@@ -218,7 +218,7 @@ const ve = ["accept"], xe = { class: "picture-context" }, ye = { class: "picture
|
|
|
218
218
|
}),
|
|
219
219
|
remove: R
|
|
220
220
|
}, () => [
|
|
221
|
-
(
|
|
221
|
+
(g(!0), h(ne, null, ae(i(o), (t) => (g(), h("div", {
|
|
222
222
|
key: t.uid,
|
|
223
223
|
class: "picture-item"
|
|
224
224
|
}, [
|
|
@@ -234,7 +234,7 @@ const ve = ["accept"], xe = { class: "picture-context" }, ye = { class: "picture
|
|
|
234
234
|
}, [
|
|
235
235
|
k(i(ce))
|
|
236
236
|
], 8, Ue),
|
|
237
|
-
t.status === "uploading" ? (
|
|
237
|
+
t.status === "uploading" ? (g(), h("div", ke, [
|
|
238
238
|
k(i(me), {
|
|
239
239
|
percent: t.percent,
|
|
240
240
|
"stroke-color": "#ffffff",
|
|
@@ -249,7 +249,7 @@ const ve = ["accept"], xe = { class: "picture-context" }, ye = { class: "picture
|
|
|
249
249
|
])
|
|
250
250
|
]))), 128))
|
|
251
251
|
]),
|
|
252
|
-
i(p) === void 0 || i(o).length < i(p) ? (
|
|
252
|
+
i(p) === void 0 || i(o).length < i(p) ? (g(), h("div", {
|
|
253
253
|
key: 0,
|
|
254
254
|
class: "picture-upload",
|
|
255
255
|
onClick: G
|
|
@@ -259,7 +259,7 @@ const ve = ["accept"], xe = { class: "picture-context" }, ye = { class: "picture
|
|
|
259
259
|
])) : I("", !0)
|
|
260
260
|
]),
|
|
261
261
|
d("div", Ce, [
|
|
262
|
-
i(E) ? (
|
|
262
|
+
i(E) ? (g(), h("div", Se, C(i(E)), 1)) : (g(), h("div", Ee, C(`${i(l)("ap.apUpload.supportExtension")}:${i(de)(i(w))},${i(l)(
|
|
263
263
|
"ap.apUpload.maxUploadPictureSize",
|
|
264
264
|
{ maxSize: i(U) }
|
|
265
265
|
)}`), 1))
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as oe, inject as o, ref as _, watch as le, computed as se,
|
|
1
|
+
import { defineComponent as oe, inject as o, ref as _, watch as le, computed as se, openBlock as k, createElementBlock as z, normalizeClass as re, unref as a, createElementVNode as i, toDisplayString as A, createCommentVNode as b, normalizeStyle as ie, createBlock as ce, withModifiers as ue, createVNode as pe } from "vue";
|
|
2
2
|
import "../../config-provider/index.mjs";
|
|
3
3
|
import { getName as ve, getReturnData as I } from "../utils/returnData.mjs";
|
|
4
4
|
import { useOss as de, useOssInit as fe } from "../hooks/useOss.mjs";
|
|
@@ -184,13 +184,13 @@ const we = ["accept"], De = {
|
|
|
184
184
|
class: "state-un-icon",
|
|
185
185
|
src: a(j)
|
|
186
186
|
}, null, 8, Ue),
|
|
187
|
-
i("div", Fe,
|
|
188
|
-
i("div", Ce,
|
|
187
|
+
i("div", Fe, A(a(J)), 1),
|
|
188
|
+
i("div", Ce, A(typeof a(F) == "string" && a(F).length > 0 ? a(F) : `${a(r)("ap.apUpload.supportExtension")}:${a(ge)(
|
|
189
189
|
a(D)
|
|
190
190
|
)},${a(r)("ap.apUpload.maxWarnUploadFileSize", {
|
|
191
191
|
maxSize: a(U)
|
|
192
192
|
})}`), 1)
|
|
193
|
-
])) :
|
|
193
|
+
])) : b("", !0),
|
|
194
194
|
[2, 3].includes(s.value) ? (k(), z("div", Ee, [
|
|
195
195
|
i("div", Se, [
|
|
196
196
|
i("img", { src: a(j) }, null, 8, Ne)
|
|
@@ -201,9 +201,9 @@ const we = ["accept"], De = {
|
|
|
201
201
|
style: ie({
|
|
202
202
|
color: P.value ? "#0070FF" : "#182948"
|
|
203
203
|
})
|
|
204
|
-
},
|
|
204
|
+
}, A((c = n.value) == null ? void 0 : c.name), 5),
|
|
205
205
|
i("div", ze, [
|
|
206
|
-
P.value ?
|
|
206
|
+
P.value ? b("", !0) : (k(), ce(a(he), {
|
|
207
207
|
key: 0,
|
|
208
208
|
percent: m.value,
|
|
209
209
|
size: 4,
|
|
@@ -219,7 +219,7 @@ const we = ["accept"], De = {
|
|
|
219
219
|
}, [
|
|
220
220
|
pe(a(_e))
|
|
221
221
|
])
|
|
222
|
-
])) :
|
|
222
|
+
])) : b("", !0)
|
|
223
223
|
], 34);
|
|
224
224
|
};
|
|
225
225
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as T, computed as d, ref as V,
|
|
1
|
+
import { defineComponent as T, computed as d, ref as V, openBlock as s, createElementBlock as u, mergeProps as S, unref as t, renderSlot as p, createVNode as g, withCtx as v, createElementVNode as c, normalizeClass as n, createBlock as C, createCommentVNode as h, Fragment as j, renderList as D, createSlots as E, createTextVNode as U, toDisplayString as z } from "vue";
|
|
2
2
|
import G from "./icons/file-icon.vue.mjs";
|
|
3
3
|
import { Tooltip as P, TypographyText as q } from "@aplus-frontend/antdv";
|
|
4
4
|
import { IconVariantDownload as H } from "@aplus-frontend/icon";
|