@aplus-frontend/ui 0.5.2 → 0.5.3
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 +3 -3
- 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-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 +30 -30
- 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/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-form/ap-form.vue2.mjs +2 -2
- 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 +3 -3
- 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.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/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/index.vue.mjs +1 -1
- package/es/src/ap-form/set/index.vue.mjs +1 -1
- package/es/src/ap-grid/hooks/use-inner-params.mjs +3 -3
- package/es/src/ap-grid/index.vue.mjs +4 -4
- package/es/src/ap-info-layout/ApInfoLayout.vue.mjs +2 -2
- package/es/src/ap-info-layout/ap-info-layout-admin/ApInfoLayoutAdmin.vue2.mjs +2 -2
- package/es/src/ap-info-layout/ap-info-layout-aplus/ap-info-layout.vue2.mjs +1 -1
- package/es/src/ap-list/index.vue.mjs +4 -4
- package/es/src/ap-table/ap-table.vue2.mjs +26 -26
- package/es/src/ap-table/components/dynamic-component/index.vue2.mjs +2 -2
- 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.mjs +40 -40
- 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.vue2.mjs +3 -3
- 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 +2 -2
- package/es/src/business/ap-batch-action-group/ApBatchActionGroup.vue2.mjs +10 -10
- package/es/src/business/ap-batch-action-group/MenuItemGroup.vue2.mjs +1 -1
- package/es/src/business/ap-button-group/ApButtonGroup.vue2.mjs +1 -1
- package/es/src/business/ap-card/ApCard.vue2.mjs +7 -7
- package/es/src/business/ap-expand-alert/ApExpandAlert.vue2.mjs +11 -11
- package/es/src/business/ap-export-group/ApExportGroup.vue2.mjs +9 -9
- package/es/src/business/ap-group-search/ap-group-search.vue2.mjs +5 -5
- package/es/src/business/ap-group-search/extension-select/index.vue2.mjs +4 -4
- package/es/src/business/ap-group-search/images/icon-down.vue.mjs +2 -2
- package/es/src/business/ap-group-search/images/icon-line-select.vue.mjs +2 -2
- package/es/src/business/ap-group-search/popover-select/index.vue2.mjs +2 -2
- 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-ladder/ApLadder.vue2.mjs +1 -1
- package/es/src/business/ap-ladder/HelpMessageIcon.vue2.mjs +1 -1
- 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/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/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/editable-table/form-item.vue.mjs +2 -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/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.mjs +9 -9
- package/es/src/work-order-modal/help-message.vue2.mjs +2 -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-table/ap-table.vue2.js +1 -1
- package/lib/src/ap-table/constants.js +1 -1
- package/lib/src/ap-upload/apUpload.vue.js +1 -1
- package/package.json +1 -1
- package/theme/antd-global-overwrite/admin/index.css +54 -54
- package/theme/antd-global-overwrite/admin/table.css +54 -54
- package/theme/antd-global-overwrite/admin/table.less +4 -3
- package/theme/antd-global-overwrite/aplus/index.css +54 -54
- package/theme/antd-global-overwrite/aplus/table.css +54 -54
- package/theme/antd-global-overwrite/aplus/table.less +4 -3
- package/es/src/theme/antd-global-overwrite/admin/alert.css +0 -50
- package/es/src/theme/antd-global-overwrite/admin/button.css +0 -27
- package/es/src/theme/antd-global-overwrite/admin/form.css +0 -60
- package/es/src/theme/antd-global-overwrite/admin/index.css +0 -838
- package/es/src/theme/antd-global-overwrite/admin/message.css +0 -17
- package/es/src/theme/antd-global-overwrite/admin/modal.css +0 -117
- package/es/src/theme/antd-global-overwrite/admin/pagination.css +0 -122
- package/es/src/theme/antd-global-overwrite/admin/steps.css +0 -127
- package/es/src/theme/antd-global-overwrite/admin/table.css +0 -318
- package/es/src/theme/antd-global-overwrite/aplus/alert.css +0 -50
- package/es/src/theme/antd-global-overwrite/aplus/button.css +0 -27
- package/es/src/theme/antd-global-overwrite/aplus/form.css +0 -93
- package/es/src/theme/antd-global-overwrite/aplus/index.css +0 -873
- package/es/src/theme/antd-global-overwrite/aplus/message.css +0 -17
- package/es/src/theme/antd-global-overwrite/aplus/modal.css +0 -111
- package/es/src/theme/antd-global-overwrite/aplus/pagination.css +0 -147
- package/es/src/theme/antd-global-overwrite/aplus/steps.css +0 -125
- package/es/src/theme/antd-global-overwrite/aplus/table.css +0 -303
- package/es/src/theme/reset.css +0 -257
- package/lib/src/theme/antd-global-overwrite/admin/alert.css +0 -50
- package/lib/src/theme/antd-global-overwrite/admin/button.css +0 -27
- package/lib/src/theme/antd-global-overwrite/admin/form.css +0 -60
- package/lib/src/theme/antd-global-overwrite/admin/index.css +0 -838
- package/lib/src/theme/antd-global-overwrite/admin/message.css +0 -17
- package/lib/src/theme/antd-global-overwrite/admin/modal.css +0 -117
- package/lib/src/theme/antd-global-overwrite/admin/pagination.css +0 -122
- package/lib/src/theme/antd-global-overwrite/admin/steps.css +0 -127
- package/lib/src/theme/antd-global-overwrite/admin/table.css +0 -318
- package/lib/src/theme/antd-global-overwrite/aplus/alert.css +0 -50
- package/lib/src/theme/antd-global-overwrite/aplus/button.css +0 -27
- package/lib/src/theme/antd-global-overwrite/aplus/form.css +0 -93
- package/lib/src/theme/antd-global-overwrite/aplus/index.css +0 -873
- package/lib/src/theme/antd-global-overwrite/aplus/message.css +0 -17
- package/lib/src/theme/antd-global-overwrite/aplus/modal.css +0 -111
- package/lib/src/theme/antd-global-overwrite/aplus/pagination.css +0 -147
- package/lib/src/theme/antd-global-overwrite/aplus/steps.css +0 -125
- package/lib/src/theme/antd-global-overwrite/aplus/table.css +0 -303
- package/lib/src/theme/reset.css +0 -257
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as Ne, useSlots as Ie, ref as h, computed as s, unref as t,
|
|
1
|
+
import { defineComponent as Ne, useSlots as Ie, ref as h, computed as s, unref as t, createVNode as f, Fragment as Y, watch as I, openBlock as m, createElementBlock as k, normalizeClass as y, normalizeStyle as K, mergeProps as w, createSlots as Z, withCtx as v, renderList as ee, createBlock as oe, resolveDynamicComponent as Ke, renderSlot as R, createCommentVNode as re, createElementVNode as E, normalizeProps as Ee, guardReactiveProps as Oe } from "vue";
|
|
2
2
|
import { Divider as Ve, Table as Le } from "@aplus-frontend/antdv";
|
|
3
3
|
import { useToken as $e } from "@aplus-frontend/antdv/es/theme/internal";
|
|
4
4
|
import { ApForm as Ae } from "../ap-form/index.mjs";
|
|
@@ -6,7 +6,7 @@ import { noRenderAsFormItemValueList as ae } from "./constants.mjs";
|
|
|
6
6
|
import "../config-provider/index.mjs";
|
|
7
7
|
import { useTablePaging as De } from "./hooks/use-table-paging-ng.mjs";
|
|
8
8
|
import { isUndefined as b, omit as te, isBoolean as We } from "lodash-unified";
|
|
9
|
-
import { getColumnOrder as le, updateFormProps as je, getFieldProps as _e, getSearchFormItemRenderNode as He, recursionApColumns as ne,
|
|
9
|
+
import { getColumnOrder as le, updateFormProps as je, getFieldProps as _e, getSearchFormItemRenderNode as He, recursionApColumns as ne, apColumnToColumn as Ue, getTableTitle as qe, getTableRenderType as Me, getTableRenderProps as Ge, getTableCellRenderNode as Je, falseToUndefined as Qe } from "./utils.mjs";
|
|
10
10
|
import Xe from "./hooks/use-table-content-height.mjs";
|
|
11
11
|
import Ye from "./hooks/use-table-row-selection.mjs";
|
|
12
12
|
import { getScrollbarSize as Ze, isDef as eo } from "../utils/index.mjs";
|
|
@@ -17,9 +17,9 @@ import "../scroll-bar/index.mjs";
|
|
|
17
17
|
import { useStickyScroll as ro } from "./hooks/use-sticky-scroll.mjs";
|
|
18
18
|
import { useNamespace as ao } from "../config-provider/hooks/use-namespace.mjs";
|
|
19
19
|
import { useGlobalConfig as to } from "../config-provider/hooks/use-global-config.mjs";
|
|
20
|
-
import lo from "./components/
|
|
21
|
-
import no from "
|
|
22
|
-
import so from "
|
|
20
|
+
import lo from "./components/paragraph-ellipsis/index.vue2.mjs";
|
|
21
|
+
import no from "./components/setting/modal/index.vue2.mjs";
|
|
22
|
+
import so from "../scroll-bar/index.vue.mjs";
|
|
23
23
|
const No = /* @__PURE__ */ Ne({
|
|
24
24
|
name: "ApTable",
|
|
25
25
|
__name: "ap-table",
|
|
@@ -243,7 +243,7 @@ const No = /* @__PURE__ */ Ne({
|
|
|
243
243
|
function a(l, d) {
|
|
244
244
|
return l.map((n) => ({
|
|
245
245
|
resizable: eo(n.resizable) ? n.resizable : o.columnResizable,
|
|
246
|
-
...te(
|
|
246
|
+
...te(Ue(n), ["ellipsis"]),
|
|
247
247
|
// tips: 此函数内部依赖查询&筛选的相应式值
|
|
248
248
|
...he(n),
|
|
249
249
|
fixed: d ? d.fixed : n.fixed,
|
|
@@ -262,7 +262,7 @@ const No = /* @__PURE__ */ Ne({
|
|
|
262
262
|
}), ze = Je(G, Be, S.record, t(L)), J = ((Q = n.renderText) == null ? void 0 : Q.call(n, {
|
|
263
263
|
value: p,
|
|
264
264
|
...S
|
|
265
|
-
})) || p, Pe = n.renderText ?
|
|
265
|
+
})) || p, Pe = n.renderText ? f(Y, null, [(X = n.renderText) == null ? void 0 : X.call(n, {
|
|
266
266
|
value: p,
|
|
267
267
|
...S
|
|
268
268
|
})]) : ze;
|
|
@@ -312,7 +312,7 @@ const No = /* @__PURE__ */ Ne({
|
|
|
312
312
|
...a,
|
|
313
313
|
// tips 如果是前端分页,则默认会走缓存
|
|
314
314
|
preserveSelectedRowKeys: b(o.dataSource) ? a.preserveSelectedRowKeys : !0
|
|
315
|
-
} :
|
|
315
|
+
} : Qe(o.rowSelection),
|
|
316
316
|
loading: b(o.loading) ? e.loading : o.loading,
|
|
317
317
|
pagination: o.pagination === !1 ? !1 : e.pagination,
|
|
318
318
|
scroll: t(ve)
|
|
@@ -322,7 +322,7 @@ const No = /* @__PURE__ */ Ne({
|
|
|
322
322
|
return [c(), o.card ? null : c("wrapper"), o.adaptive ? c("adaptive") : null, D.value && ((e = i.value) != null && e.visible) ? ie(`sticky-${j === 0 ? "absolute" : "relative"}`) : null].filter(Boolean);
|
|
323
323
|
});
|
|
324
324
|
function Te(e, a, r) {
|
|
325
|
-
return ae.includes(e.valueType) ? r : e.copyable || e.ellipsis ?
|
|
325
|
+
return ae.includes(e.valueType) ? r : e.copyable || e.ellipsis ? f(lo, {
|
|
326
326
|
copyable: e.copyable,
|
|
327
327
|
ellipsis: e.ellipsis ? We(e.ellipsis) ? {
|
|
328
328
|
tooltip: r,
|
|
@@ -379,18 +379,18 @@ const No = /* @__PURE__ */ Ne({
|
|
|
379
379
|
},
|
|
380
380
|
y: void 0
|
|
381
381
|
}
|
|
382
|
-
}), (e, a) => (
|
|
382
|
+
}), (e, a) => (m(), k("div", {
|
|
383
383
|
ref_key: "tableWrapperRef",
|
|
384
384
|
ref: $,
|
|
385
|
-
class:
|
|
385
|
+
class: y(Ce.value),
|
|
386
386
|
style: K(t(ce)({
|
|
387
387
|
"scroll-bar-width": `${t(j)}px`
|
|
388
388
|
}))
|
|
389
|
-
}, [t(b)(e.dataSource) && e.searchForm !== !1 && _.value.length > 0 ? (
|
|
389
|
+
}, [t(b)(e.dataSource) && e.searchForm !== !1 && _.value.length > 0 ? (m(), k("div", {
|
|
390
390
|
key: 0,
|
|
391
|
-
class:
|
|
391
|
+
class: y(e.card ? t(B)("search-wrapper") : null),
|
|
392
392
|
style: K(e.searchFormWrapperStyle)
|
|
393
|
-
}, [
|
|
393
|
+
}, [f(t(Ae).SearchForm, w(e.searchForm || {}, {
|
|
394
394
|
ref_key: "formRef",
|
|
395
395
|
ref: P,
|
|
396
396
|
"custom-reset": "",
|
|
@@ -398,7 +398,7 @@ const No = /* @__PURE__ */ Ne({
|
|
|
398
398
|
onSubmit: t(H),
|
|
399
399
|
onReset: t(U)
|
|
400
400
|
}), Z({
|
|
401
|
-
default: v(() => [(
|
|
401
|
+
default: v(() => [(m(!0), k(Y, null, ee(_.value, (r) => (m(), oe(Ke(r.renderNode.Comp), w({
|
|
402
402
|
key: r.dataIndex,
|
|
403
403
|
item: r,
|
|
404
404
|
ref_for: !0
|
|
@@ -411,33 +411,33 @@ const No = /* @__PURE__ */ Ne({
|
|
|
411
411
|
name: "extra",
|
|
412
412
|
fn: v(() => [R(e.$slots, "searchFormExtra")]),
|
|
413
413
|
key: "0"
|
|
414
|
-
} : void 0]), 1040, ["submit-loading", "onSubmit", "onReset"])], 6)) :
|
|
414
|
+
} : void 0]), 1040, ["submit-loading", "onSubmit", "onReset"])], 6)) : re("", !0), E("div", {
|
|
415
415
|
ref_key: "contentRef",
|
|
416
416
|
ref: fe,
|
|
417
|
-
class:
|
|
417
|
+
class: y([t(B)("table-wrapper"), e.card ? t(B)("table-wrapper-card") : null]),
|
|
418
418
|
style: K(e.tableWrapperStyle)
|
|
419
419
|
}, [E("div", {
|
|
420
|
-
class:
|
|
421
|
-
}, [e.settings ? (
|
|
420
|
+
class: y(t(c)("header-wrapper"))
|
|
421
|
+
}, [e.settings ? (m(), k("div", {
|
|
422
422
|
key: 0,
|
|
423
|
-
class:
|
|
423
|
+
class: y(t(c)("header"))
|
|
424
424
|
}, [E("div", {
|
|
425
|
-
class:
|
|
425
|
+
class: y(t(V)("header", "title"))
|
|
426
426
|
}, [R(e.$slots, "title", w({
|
|
427
427
|
selectedRows: t(F),
|
|
428
428
|
selectedRowKeys: t(T).selectedRowKeys,
|
|
429
429
|
shownColumns: u.value
|
|
430
|
-
}, x))], 2), C.title ? (
|
|
430
|
+
}, x))], 2), C.title ? (m(), oe(t(Ve), {
|
|
431
431
|
key: 0,
|
|
432
432
|
type: "vertical"
|
|
433
|
-
})) :
|
|
433
|
+
})) : re("", !0), f(no, {
|
|
434
434
|
config: e.settings === !0 ? {} : e.settings
|
|
435
435
|
}, null, 8, ["config"])], 2)) : R(e.$slots, "title", w({
|
|
436
436
|
key: 1,
|
|
437
437
|
selectedRows: t(F),
|
|
438
438
|
selectedRowKeys: t(T).selectedRowKeys,
|
|
439
439
|
shownColumns: u.value
|
|
440
|
-
}, x))], 2),
|
|
440
|
+
}, x))], 2), f(t(Le), w({
|
|
441
441
|
ref_key: "antdTableRef",
|
|
442
442
|
ref: A,
|
|
443
443
|
class: t(c)("table")
|
|
@@ -457,7 +457,7 @@ const No = /* @__PURE__ */ Ne({
|
|
|
457
457
|
name: "bottomPaginationTop",
|
|
458
458
|
fn: v(() => {
|
|
459
459
|
var r, l;
|
|
460
|
-
return [
|
|
460
|
+
return [f(t(so), {
|
|
461
461
|
ref_key: "scrollBarRef",
|
|
462
462
|
ref: i,
|
|
463
463
|
"scroll-container": (l = (r = A.value) == null ? void 0 : r.table) == null ? void 0 : l.scrollBodyRef,
|
|
@@ -465,7 +465,7 @@ const No = /* @__PURE__ */ Ne({
|
|
|
465
465
|
}, null, 8, ["scroll-container"])];
|
|
466
466
|
}),
|
|
467
467
|
key: "0"
|
|
468
|
-
} : void 0,
|
|
468
|
+
} : void 0, ee(t(te)(C, ["title", "searchFormExtra", "headerCell", "summary"]), (r, l) => ({
|
|
469
469
|
name: l,
|
|
470
470
|
fn: v((d) => [R(e.$slots, l, Ee(Oe(d || {})))])
|
|
471
471
|
}))]), 1040, ["class", "size", "table-layout", "columns"])], 6)], 6));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as n,
|
|
1
|
+
import { defineComponent as n, openBlock as o, createBlock as t, resolveDynamicComponent as r } from "vue";
|
|
2
2
|
const s = /* @__PURE__ */ n({
|
|
3
3
|
name: "ApTableDynamicComponent",
|
|
4
4
|
inheritAttrs: !1,
|
|
@@ -7,7 +7,7 @@ const s = /* @__PURE__ */ n({
|
|
|
7
7
|
customRender: { type: Function }
|
|
8
8
|
},
|
|
9
9
|
setup(p) {
|
|
10
|
-
return (e, a) => (
|
|
10
|
+
return (e, a) => (o(), t(r(e.customRender(e.$attrs))));
|
|
11
11
|
}
|
|
12
12
|
});
|
|
13
13
|
export {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as n, computed as l,
|
|
1
|
+
import { defineComponent as n, computed as l, openBlock as s, createElementBlock as p, normalizeClass as d, toDisplayString as m } from "vue";
|
|
2
2
|
import "../../../config-provider/index.mjs";
|
|
3
3
|
import { useNamespace as c } from "../../../config-provider/hooks/use-namespace.mjs";
|
|
4
4
|
const _ = /* @__PURE__ */ n({
|
|
@@ -10,7 +10,7 @@ const _ = /* @__PURE__ */ n({
|
|
|
10
10
|
},
|
|
11
11
|
setup(e) {
|
|
12
12
|
const o = e, { m: a } = c("ap-table-index"), r = l(() => [o.bordered ? a("bordered") : null].filter(Boolean));
|
|
13
|
-
return (t, i) => (
|
|
13
|
+
return (t, i) => (s(), p("div", {
|
|
14
14
|
class: d(r.value)
|
|
15
15
|
}, m(t.value), 3));
|
|
16
16
|
}
|
|
@@ -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 l, createElementVNode as O, normalizeClass as y, createVNode as v, createSlots as N, withCtx as m, createBlock as c, resolveDynamicComponent as b, h, createCommentVNode as j } from "vue";
|
|
2
2
|
import "../../../config-provider/index.mjs";
|
|
3
3
|
import { Tooltip as w } from "@aplus-frontend/antdv";
|
|
4
4
|
import { CopyOutlined as S, CheckOutlined as V } from "@ant-design/icons-vue";
|
|
@@ -65,7 +65,7 @@ const G = /* @__PURE__ */ x({
|
|
|
65
65
|
O("div", {
|
|
66
66
|
class: y([l(u)("content")])
|
|
67
67
|
}, [
|
|
68
|
-
v(l(w), null,
|
|
68
|
+
v(l(w), 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)) : j("", !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 H, useSlots as L, createVNode as l, cloneVNode as M,
|
|
1
|
+
import { defineComponent as G, ref as y, unref as e, computed as H, useSlots as L, createVNode as l, cloneVNode as M, openBlock as x, createElementBlock as P, Fragment as q, createBlock as J, resolveDynamicComponent as Q, createCommentVNode as W, withCtx as i, createElementVNode as s, normalizeClass as r, toDisplayString as c, createTextVNode as C, isRef as X } from "vue";
|
|
2
2
|
import { Button as B, Modal as Y, RadioGroup as Z, RadioButton as _, Divider as h } from "@aplus-frontend/antdv";
|
|
3
3
|
import { getSingleVNode as ee } from "../../../../utils/slot.mjs";
|
|
4
4
|
import { useInjectApTable as te } from "../../../context.mjs";
|
|
@@ -62,9 +62,9 @@ const re = {
|
|
|
62
62
|
const p = N(n.value);
|
|
63
63
|
E(p), I(p), (o = (t = m.config) == null ? void 0 : t.onChange) == null || o.call(t, p);
|
|
64
64
|
}
|
|
65
|
-
return (p, t) => (x(), P(q, null, [e(k) ? (x(), J(
|
|
65
|
+
return (p, t) => (x(), P(q, null, [e(k) ? (x(), J(Q(e(k)), {
|
|
66
66
|
key: 0
|
|
67
|
-
})) :
|
|
67
|
+
})) : W("", !0), l(e(Y), {
|
|
68
68
|
open: u.value,
|
|
69
69
|
"onUpdate:open": t[2] || (t[2] = (o) => u.value = o),
|
|
70
70
|
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, 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 {
|
|
@@ -3,53 +3,53 @@ 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/date/index.vue.mjs";
|
|
7
|
+
import r from "../ap-form/items/date-range/index.vue.mjs";
|
|
8
|
+
import i from "../ap-form/items/number/index.vue.mjs";
|
|
9
|
+
import t from "../ap-form/items/radio/index.vue.mjs";
|
|
10
|
+
import a from "../ap-form/items/select/index.vue.mjs";
|
|
11
|
+
import f from "../ap-form/items/switch/index.vue.mjs";
|
|
6
12
|
import { ApFormItemText as m } from "../ap-form/items/text/index.mjs";
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import s from "../ap-field/text/password.vue.mjs";
|
|
16
|
-
import p from "./components/status/index.vue2.mjs";
|
|
17
|
-
import c from "./components/index/index.vue2.mjs";
|
|
18
|
-
import n from "../ap-action/group/index.vue.mjs";
|
|
19
|
-
import $ from "../ap-field/checkbox/index.vue.mjs";
|
|
20
|
-
import d from "../ap-field/text-area/index.vue.mjs";
|
|
13
|
+
import _ from "../ap-form/items/text-area/index.vue.mjs";
|
|
14
|
+
import e from "../ap-form/items/checkbox/index.vue.mjs";
|
|
15
|
+
import s from "../ap-field/date/index.vue.mjs";
|
|
16
|
+
import p from "../ap-field/date-range/index.vue.mjs";
|
|
17
|
+
import c from "../ap-field/number/index.vue.mjs";
|
|
18
|
+
import n from "../ap-field/radio/index.vue.mjs";
|
|
19
|
+
import $ from "../ap-field/select/index.vue.mjs";
|
|
20
|
+
import d from "../ap-field/switch/index.vue.mjs";
|
|
21
21
|
import { ApFieldText as x } from "../ap-field/text/index.mjs";
|
|
22
|
-
import b from "../ap-field/
|
|
23
|
-
import l from "../ap-field/
|
|
24
|
-
import h from "../ap-
|
|
25
|
-
import w from "
|
|
26
|
-
import A from "
|
|
27
|
-
import u from "../ap-field/
|
|
22
|
+
import b from "../ap-field/text-area/index.vue.mjs";
|
|
23
|
+
import l from "../ap-field/checkbox/index.vue.mjs";
|
|
24
|
+
import h from "../ap-action/group/index.vue.mjs";
|
|
25
|
+
import w from "./components/index/index.vue2.mjs";
|
|
26
|
+
import A from "./components/status/index.vue2.mjs";
|
|
27
|
+
import u from "../ap-field/text/password.vue.mjs";
|
|
28
28
|
const U = {
|
|
29
|
-
date:
|
|
30
|
-
dateRange:
|
|
31
|
-
number:
|
|
32
|
-
radio:
|
|
33
|
-
select:
|
|
34
|
-
switch:
|
|
29
|
+
date: o,
|
|
30
|
+
dateRange: r,
|
|
31
|
+
number: i,
|
|
32
|
+
radio: t,
|
|
33
|
+
select: a,
|
|
34
|
+
switch: f,
|
|
35
35
|
text: m,
|
|
36
|
-
textArea:
|
|
37
|
-
checkbox:
|
|
36
|
+
textArea: _,
|
|
37
|
+
checkbox: e,
|
|
38
38
|
password: m.Password
|
|
39
39
|
}, W = {
|
|
40
|
-
date:
|
|
41
|
-
dateRange:
|
|
42
|
-
number:
|
|
43
|
-
radio:
|
|
44
|
-
select:
|
|
45
|
-
switch:
|
|
40
|
+
date: s,
|
|
41
|
+
dateRange: p,
|
|
42
|
+
number: c,
|
|
43
|
+
radio: n,
|
|
44
|
+
select: $,
|
|
45
|
+
switch: d,
|
|
46
46
|
text: x,
|
|
47
|
-
textArea:
|
|
48
|
-
checkbox:
|
|
49
|
-
action:
|
|
50
|
-
index:
|
|
51
|
-
status:
|
|
52
|
-
password:
|
|
47
|
+
textArea: b,
|
|
48
|
+
checkbox: l,
|
|
49
|
+
action: h,
|
|
50
|
+
index: w,
|
|
51
|
+
status: A,
|
|
52
|
+
password: u
|
|
53
53
|
}, X = [
|
|
54
54
|
"action",
|
|
55
55
|
"index"
|
|
@@ -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 C, 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 C, computed as n, unref as f, watch as N, nextTick as S, onMounted as j, onUnmounted as G, openBlock as c, createBlock as d, mergeProps as b, withCtx as g, renderSlot as R, createTextVNode as A, toDisplayString as k, createElementVNode as o, normalizeClass as W, normalizeStyle as _, createElementBlock as T, 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 ue = /* @__PURE__ */ D({
|
|
|
79
79
|
window.removeEventListener("resize", y);
|
|
80
80
|
}), (e, t) => (c(), d(f(q), b({ trigger: "hover" }, $.value), {
|
|
81
81
|
title: g(() => [
|
|
82
|
-
|
|
83
|
-
|
|
82
|
+
R(e.$slots, "tooltip", { tags: e.list }, () => [
|
|
83
|
+
A(k(L.value), 1)
|
|
84
84
|
])
|
|
85
85
|
]),
|
|
86
86
|
default: g(() => [
|
|
@@ -88,12 +88,12 @@ const ue = /* @__PURE__ */ D({
|
|
|
88
88
|
ref_key: "container",
|
|
89
89
|
ref: u,
|
|
90
90
|
class: W(M.value),
|
|
91
|
-
style:
|
|
91
|
+
style: _({
|
|
92
92
|
pointerEvents: p.value ? "auto" : "none"
|
|
93
93
|
// opacity: isUpdating ? '0' : '1'
|
|
94
94
|
})
|
|
95
95
|
}, [
|
|
96
|
-
(c(!0),
|
|
96
|
+
(c(!0), T(F, null, I(e.list, (s, l) => (c(), d(X, b({ 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 ue = /* @__PURE__ */ D({
|
|
|
102
102
|
}), null, 16, ["style"]))), 128)),
|
|
103
103
|
p.value && r.value.symbol === "icon" ? (c(), d(f(H), {
|
|
104
104
|
key: 0,
|
|
105
|
-
style:
|
|
105
|
+
style: _({ color: e.ellipsisColor || r.value.iconColor })
|
|
106
106
|
}, {
|
|
107
107
|
component: g(() => t[0] || (t[0] = [
|
|
108
108
|
o("svg", {
|
|
@@ -160,10 +160,10 @@ const ue = /* @__PURE__ */ D({
|
|
|
160
160
|
], -1)
|
|
161
161
|
])),
|
|
162
162
|
_: 1
|
|
163
|
-
}, 8, ["style"])) : p.value && r.value.symbol === "text" ? (c(),
|
|
163
|
+
}, 8, ["style"])) : p.value && r.value.symbol === "text" ? (c(), T("span", {
|
|
164
164
|
key: 1,
|
|
165
165
|
class: W(P.value)
|
|
166
|
-
},
|
|
166
|
+
}, k(r.value.text), 3)) : U("", !0)
|
|
167
167
|
], 6)
|
|
168
168
|
]),
|
|
169
169
|
_: 3
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as $, computed as n,
|
|
1
|
+
import { defineComponent as $, computed as n, openBlock as b, createElementBlock as y, normalizeStyle as w, normalizeClass as p, 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";
|
|
@@ -26,7 +26,7 @@ const A = /* @__PURE__ */ $({
|
|
|
26
26
|
const t = [r("inner-wrapper"), a("inner-wrapper", e.size)];
|
|
27
27
|
return e.disabled && (o.value === "aplus" ? t.push(a("inner-wrapper", "disabled")) : t.push(a("inner-wrapper", "disabled-admin"))), t;
|
|
28
28
|
});
|
|
29
|
-
return (t, s) => (
|
|
29
|
+
return (t, s) => (b(), y("span", {
|
|
30
30
|
style: w(c.value),
|
|
31
31
|
class: p(u.value)
|
|
32
32
|
}, [
|
|
@@ -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,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
|
]),
|