@aplus-frontend/ui 0.5.37 → 0.6.0-beta.0
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/index.mjs +74 -72
- package/es/src/ap-field/select/index.vue.d.ts +2 -2
- package/es/src/ap-field/tree-select/index.vue.d.ts +3 -3
- package/es/src/ap-form/drawer-form/index.vue.d.ts +10 -10
- package/es/src/ap-form/interface.d.ts +31 -1
- package/es/src/ap-form/item/index.vue.d.ts +22 -22
- package/es/src/ap-form/items/checkbox/index.vue.d.ts +3 -3
- package/es/src/ap-form/items/date/index.vue.d.ts +3 -3
- package/es/src/ap-form/items/date-range/index.vue.d.ts +3 -3
- package/es/src/ap-form/items/number/index.vue.d.ts +13 -13
- package/es/src/ap-form/items/radio/index.vue.d.ts +3 -3
- package/es/src/ap-form/items/select/index.vue.d.ts +31 -31
- package/es/src/ap-form/items/switch/index.vue.d.ts +3 -3
- package/es/src/ap-form/items/text/index.vue.d.ts +15 -15
- package/es/src/ap-form/items/text/password.vue.d.ts +15 -15
- package/es/src/ap-form/items/text-area/index.vue.d.ts +3 -3
- package/es/src/ap-form/items/tree-select/index.vue.d.ts +35 -35
- package/es/src/ap-form/modal-form/index.vue.d.ts +10 -10
- package/es/src/ap-form/render/item.vue.d.ts +2 -2
- package/es/src/ap-form/search-form/components/popover-filter.vue.d.ts +4 -0
- package/es/src/ap-form/search-form/components/popover-filter.vue.mjs +4 -0
- package/es/src/ap-form/search-form/components/popover-filter.vue2.mjs +102 -0
- package/es/src/ap-form/search-form/components/popover-sorter/index.vue.d.ts +4 -0
- package/es/src/ap-form/search-form/components/popover-sorter/index.vue.mjs +4 -0
- package/es/src/ap-form/search-form/components/popover-sorter/index.vue2.mjs +128 -0
- package/es/src/ap-form/search-form/components/popover-sorter/sortable-item.vue.d.ts +6 -0
- package/es/src/ap-form/search-form/components/popover-sorter/sortable-item.vue.mjs +4 -0
- package/es/src/ap-form/search-form/components/popover-sorter/sortable-item.vue2.mjs +39 -0
- package/es/src/ap-form/search-form/hooks/use-count-per-row.d.ts +3 -0
- package/es/src/ap-form/search-form/hooks/use-count-per-row.mjs +17 -0
- package/es/src/ap-form/search-form/index.vue.d.ts +14 -16
- package/es/src/ap-form/search-form/index.vue.mjs +127 -127
- package/es/src/ap-grid/index.vue.mjs +97 -93
- package/es/src/ap-info-layout/ApInfoLayout.vue.mjs +21 -16
- package/es/src/ap-table/ap-table.vue2.mjs +108 -104
- package/es/src/ap-table/constants.d.ts +161 -161
- package/es/src/ap-table/context.d.ts +5 -0
- package/es/src/ap-table/context.mjs +13 -5
- package/es/src/ap-table/utils.d.ts +147 -147
- package/es/src/ap-upload/apUpload.vue.d.ts +8 -8
- package/es/src/business/ap-batch-action-group/ApBatchActionGroup.vue.d.ts +14 -1
- package/es/src/business/ap-batch-action-group/ApBatchActionGroup.vue2.mjs +65 -51
- package/es/src/business/ap-batch-action-group/index.d.ts +3 -1
- package/es/src/business/ap-size-input/ApSizeInput.d.ts +1 -1
- package/es/src/business/ap-size-input/index.d.ts +3 -3
- package/es/src/business/ap-table-modal/index.d.ts +15 -15
- package/es/src/business/ap-table-modal/table-modal.vue.d.ts +5 -5
- package/es/src/business/ap-view/ap-view.vue.d.ts +6 -0
- package/es/src/business/ap-view/ap-view.vue.mjs +4 -0
- package/es/src/business/ap-view/ap-view.vue2.mjs +171 -0
- package/es/src/business/ap-view/components/main-button-content.vue.d.ts +831 -0
- package/es/src/business/ap-view/components/main-button-content.vue.mjs +4 -0
- package/es/src/business/ap-view/components/main-button-content.vue2.mjs +175 -0
- package/es/src/business/ap-view/components/menu-list-content.vue.d.ts +832 -0
- package/es/src/business/ap-view/components/menu-list-content.vue.mjs +4 -0
- package/es/src/business/ap-view/components/menu-list-content.vue2.mjs +156 -0
- package/es/src/business/ap-view/hooks/use-view-provide.d.ts +14 -0
- package/es/src/business/ap-view/hooks/use-view-provide.mjs +8 -0
- package/es/src/business/ap-view/icons/line-delete.vue.d.ts +3 -0
- package/es/src/business/ap-view/icons/line-delete.vue.mjs +29 -0
- package/es/src/business/ap-view/icons/line-down.vue.d.ts +3 -0
- package/es/src/business/ap-view/icons/line-down.vue.mjs +29 -0
- package/es/src/business/ap-view/icons/line-eye.vue.d.ts +3 -0
- package/es/src/business/ap-view/icons/line-eye.vue.mjs +29 -0
- package/es/src/business/ap-view/index.d.ts +27 -0
- package/es/src/business/ap-view/index.mjs +8 -0
- package/es/src/business/ap-view/interface.d.ts +54 -0
- package/es/src/business/ap-view/interface.mjs +1 -0
- package/es/src/business/ap-view/style/css.d.ts +0 -0
- package/es/src/business/ap-view/style/css.js +1 -0
- package/es/src/business/ap-view/style/index.d.ts +0 -0
- package/es/src/business/ap-view/style/index.js +1 -0
- package/es/src/business/ap-view/utils/enum.d.ts +1 -0
- package/es/src/business/ap-view/utils/enum.mjs +4 -0
- package/es/src/business/ap-view/utils/uuid.d.ts +5 -0
- package/es/src/business/ap-view/utils/uuid.mjs +22 -0
- package/es/src/business/batch-input-group/form-item.vue.d.ts +3 -3
- package/es/src/business/batch-input-group/index.vue.d.ts +6 -6
- package/es/src/business/index.d.ts +1 -0
- package/es/src/business/index.mjs +25 -23
- package/es/src/config-provider/config-provider-props.d.ts +5 -0
- package/es/src/config-provider/config-provider-props.mjs +4 -0
- package/es/src/config-provider/config-provider.d.ts +25 -1
- package/es/src/config-provider/config-provider.mjs +21 -20
- package/es/src/config-provider/css-var.d.ts +14 -0
- package/es/src/config-provider/css-var.mjs +40 -12
- package/es/src/config-provider/hooks/use-global-config.d.ts +5 -0
- package/es/src/config-provider/index.d.ts +89 -3
- package/es/src/full-screen/interface.d.ts +1 -1
- package/es/src/index.mjs +61 -59
- package/es/src/locale/lang/en.mjs +22 -1
- package/es/src/locale/lang/zh-cn.mjs +22 -1
- package/es/src/path-map.mjs +2 -1
- package/es/src/utils/config-provider-preset.d.ts +4 -4
- package/es/src/work-order-modal/work-order-modal.vue.d.ts +6 -6
- package/lib/index.js +1 -1
- package/lib/src/ap-field/select/index.vue.d.ts +2 -2
- package/lib/src/ap-field/tree-select/index.vue.d.ts +3 -3
- package/lib/src/ap-form/drawer-form/index.vue.d.ts +10 -10
- package/lib/src/ap-form/interface.d.ts +31 -1
- package/lib/src/ap-form/item/index.vue.d.ts +22 -22
- package/lib/src/ap-form/items/checkbox/index.vue.d.ts +3 -3
- package/lib/src/ap-form/items/date/index.vue.d.ts +3 -3
- package/lib/src/ap-form/items/date-range/index.vue.d.ts +3 -3
- package/lib/src/ap-form/items/number/index.vue.d.ts +13 -13
- package/lib/src/ap-form/items/radio/index.vue.d.ts +3 -3
- package/lib/src/ap-form/items/select/index.vue.d.ts +31 -31
- package/lib/src/ap-form/items/switch/index.vue.d.ts +3 -3
- package/lib/src/ap-form/items/text/index.vue.d.ts +15 -15
- package/lib/src/ap-form/items/text/password.vue.d.ts +15 -15
- package/lib/src/ap-form/items/text-area/index.vue.d.ts +3 -3
- package/lib/src/ap-form/items/tree-select/index.vue.d.ts +35 -35
- package/lib/src/ap-form/modal-form/index.vue.d.ts +10 -10
- package/lib/src/ap-form/render/item.vue.d.ts +2 -2
- package/lib/src/ap-form/search-form/components/popover-filter.vue.d.ts +4 -0
- package/lib/src/ap-form/search-form/components/popover-filter.vue.js +1 -0
- package/lib/src/ap-form/search-form/components/popover-filter.vue2.js +1 -0
- package/lib/src/ap-form/search-form/components/popover-sorter/index.vue.d.ts +4 -0
- package/lib/src/ap-form/search-form/components/popover-sorter/index.vue.js +1 -0
- package/lib/src/ap-form/search-form/components/popover-sorter/index.vue2.js +1 -0
- package/lib/src/ap-form/search-form/components/popover-sorter/sortable-item.vue.d.ts +6 -0
- package/lib/src/ap-form/search-form/components/popover-sorter/sortable-item.vue.js +1 -0
- package/lib/src/ap-form/search-form/components/popover-sorter/sortable-item.vue2.js +1 -0
- package/lib/src/ap-form/search-form/hooks/use-count-per-row.d.ts +3 -0
- package/lib/src/ap-form/search-form/hooks/use-count-per-row.js +1 -0
- package/lib/src/ap-form/search-form/index.vue.d.ts +14 -16
- package/lib/src/ap-form/search-form/index.vue.js +1 -1
- package/lib/src/ap-grid/index.vue.js +1 -1
- package/lib/src/ap-info-layout/ApInfoLayout.vue.js +1 -1
- package/lib/src/ap-table/ap-table.vue2.js +1 -1
- package/lib/src/ap-table/constants.d.ts +161 -161
- package/lib/src/ap-table/context.d.ts +5 -0
- package/lib/src/ap-table/context.js +1 -1
- package/lib/src/ap-table/utils.d.ts +147 -147
- package/lib/src/ap-upload/apUpload.vue.d.ts +8 -8
- package/lib/src/business/ap-batch-action-group/ApBatchActionGroup.vue.d.ts +14 -1
- package/lib/src/business/ap-batch-action-group/ApBatchActionGroup.vue2.js +1 -1
- package/lib/src/business/ap-batch-action-group/index.d.ts +3 -1
- package/lib/src/business/ap-size-input/ApSizeInput.d.ts +1 -1
- package/lib/src/business/ap-size-input/index.d.ts +3 -3
- package/lib/src/business/ap-table-modal/index.d.ts +15 -15
- package/lib/src/business/ap-table-modal/table-modal.vue.d.ts +5 -5
- package/lib/src/business/ap-view/ap-view.vue.d.ts +6 -0
- package/lib/src/business/ap-view/ap-view.vue.js +1 -0
- package/lib/src/business/ap-view/ap-view.vue2.js +1 -0
- package/lib/src/business/ap-view/components/main-button-content.vue.d.ts +831 -0
- package/lib/src/business/ap-view/components/main-button-content.vue.js +1 -0
- package/lib/src/business/ap-view/components/main-button-content.vue2.js +1 -0
- package/lib/src/business/ap-view/components/menu-list-content.vue.d.ts +832 -0
- package/lib/src/business/ap-view/components/menu-list-content.vue.js +1 -0
- package/lib/src/business/ap-view/components/menu-list-content.vue2.js +1 -0
- package/lib/src/business/ap-view/hooks/use-view-provide.d.ts +14 -0
- package/lib/src/business/ap-view/hooks/use-view-provide.js +1 -0
- package/lib/src/business/ap-view/icons/line-delete.vue.d.ts +3 -0
- package/lib/src/business/ap-view/icons/line-delete.vue.js +1 -0
- package/lib/src/business/ap-view/icons/line-down.vue.d.ts +3 -0
- package/lib/src/business/ap-view/icons/line-down.vue.js +1 -0
- package/lib/src/business/ap-view/icons/line-eye.vue.d.ts +3 -0
- package/lib/src/business/ap-view/icons/line-eye.vue.js +1 -0
- package/lib/src/business/ap-view/index.d.ts +27 -0
- package/lib/src/business/ap-view/index.js +1 -0
- package/lib/src/business/ap-view/interface.d.ts +54 -0
- package/lib/src/business/ap-view/interface.js +1 -0
- package/lib/src/business/ap-view/style/css.cjs +1 -0
- package/lib/src/business/ap-view/style/css.d.ts +0 -0
- package/lib/src/business/ap-view/style/index.cjs +1 -0
- package/lib/src/business/ap-view/style/index.d.ts +0 -0
- package/lib/src/business/ap-view/utils/enum.d.ts +1 -0
- package/lib/src/business/ap-view/utils/enum.js +1 -0
- package/lib/src/business/ap-view/utils/uuid.d.ts +5 -0
- package/lib/src/business/ap-view/utils/uuid.js +1 -0
- package/lib/src/business/batch-input-group/form-item.vue.d.ts +3 -3
- package/lib/src/business/batch-input-group/index.vue.d.ts +6 -6
- package/lib/src/business/index.d.ts +1 -0
- package/lib/src/business/index.js +1 -1
- package/lib/src/config-provider/config-provider-props.d.ts +5 -0
- package/lib/src/config-provider/config-provider-props.js +1 -1
- package/lib/src/config-provider/config-provider.d.ts +25 -1
- package/lib/src/config-provider/config-provider.js +1 -1
- package/lib/src/config-provider/css-var.d.ts +14 -0
- package/lib/src/config-provider/css-var.js +1 -1
- package/lib/src/config-provider/hooks/use-global-config.d.ts +5 -0
- package/lib/src/config-provider/index.d.ts +89 -3
- package/lib/src/full-screen/interface.d.ts +1 -1
- package/lib/src/index.js +1 -1
- package/lib/src/locale/lang/en.js +1 -1
- package/lib/src/locale/lang/zh-cn.js +1 -1
- package/lib/src/path-map.js +1 -1
- package/lib/src/utils/config-provider-preset.d.ts +4 -4
- package/lib/src/work-order-modal/work-order-modal.vue.d.ts +6 -6
- package/package.json +7 -7
- package/theme/ap-action/item-dropdown.css +28 -0
- package/theme/ap-action/item-dropdown.less +1 -1
- package/theme/ap-action/item.css +35 -1
- package/theme/ap-action/item.less +1 -2
- package/theme/ap-appendix/ap-appendix.css +28 -0
- package/theme/ap-attachment/ap-attachment.css +28 -0
- package/theme/ap-batch-action/ap-batch-action.css +28 -0
- package/theme/ap-button/ap-button.css +28 -0
- package/theme/ap-card/ap-card.css +28 -0
- package/theme/ap-descriptions/ap-descriptions.css +28 -0
- package/theme/ap-download/ap-download.css +28 -0
- package/theme/ap-expand-alert/ap-expand-alert.css +28 -0
- package/theme/ap-field/checkbox.css +28 -0
- package/theme/ap-field/index.css +28 -0
- package/theme/ap-field/number.css +28 -0
- package/theme/ap-field/radio.css +28 -0
- package/theme/ap-field/text-area.css +28 -0
- package/theme/ap-form/ap-form-item-group.css +28 -0
- package/theme/ap-form/ap-form-item.css +28 -0
- package/theme/ap-form/drawer-form.css +28 -0
- package/theme/ap-form/index.css +169 -0
- package/theme/ap-form/item-text-group.css +28 -0
- package/theme/ap-form/item-text.css +28 -0
- package/theme/ap-form/modal-form.css +28 -0
- package/theme/ap-form/search-form-sorter.css +120 -0
- package/theme/ap-form/search-form-sorter.less +71 -0
- package/theme/ap-form/search-form.css +169 -0
- package/theme/ap-form/search-form.less +56 -0
- package/theme/ap-grid/editable.css +28 -0
- package/theme/ap-grid/index.css +176 -1
- package/theme/ap-group-search/ap-extension-select.css +28 -0
- package/theme/ap-group-search/ap-group-search.css +28 -0
- package/theme/ap-group-search/ap-popover-select.css +28 -0
- package/theme/ap-image/ap-image.css +28 -0
- package/theme/ap-input-radio/ap-input-radio.css +28 -0
- package/theme/ap-label/ap-label.css +28 -0
- package/theme/ap-ladder/ap-ladder.css +28 -0
- package/theme/ap-layout/ap-info-layout.css +28 -0
- package/theme/ap-list/index.css +28 -0
- package/theme/ap-product-info/ap-product-info.css +28 -0
- package/theme/ap-select-layout/ap-select-layout.css +28 -0
- package/theme/ap-size-input/ap-size-input.css +28 -0
- package/theme/ap-status/ap-status.css +28 -0
- package/theme/ap-summary/index.css +28 -0
- package/theme/ap-table/ap-table-index.css +28 -0
- package/theme/ap-table/ap-table-paragraph-ellipsis.css +28 -0
- package/theme/ap-table/ap-table.css +190 -13
- package/theme/ap-table/ap-table.less +0 -1
- package/theme/ap-table/setting/index.css +42 -0
- package/theme/ap-table/setting/modal.css +36 -0
- package/theme/ap-table/setting/modal.less +1 -0
- package/theme/ap-table/setting/select-group.css +28 -0
- package/theme/ap-table/setting/sortable-item-meta.css +28 -0
- package/theme/ap-table/setting/sortable-item.css +28 -0
- package/theme/ap-table/setting/sorter.css +34 -0
- package/theme/ap-table/setting/sorter.less +1 -2
- package/theme/ap-table-modal/index.css +190 -13
- package/theme/ap-tag/ap-tag-group.css +28 -0
- package/theme/ap-tag/ap-tag.css +28 -0
- package/theme/ap-title/ap-title.css +28 -0
- package/theme/ap-upload/index.css +28 -0
- package/theme/ap-upload/multiple-file.css +28 -0
- package/theme/ap-upload/picture.css +28 -0
- package/theme/ap-upload/single-file.css +28 -0
- package/theme/ap-upload/upload.css +28 -0
- package/theme/ap-upload-single/index.css +28 -0
- package/theme/ap-view/ap-view.css +149 -0
- package/theme/ap-view/ap-view.less +128 -0
- package/theme/batch-input-group/index.css +28 -0
- package/theme/batch-input-group/popover-input.css +28 -0
- package/theme/check-card/index.css +49 -1
- package/theme/check-card/index.less +3 -4
- package/theme/editable-table/index.css +176 -1
- package/theme/full-screen/index.css +28 -0
- package/theme/index.css +340 -15
- package/theme/index.less +1 -0
- package/theme/mask/index.css +28 -0
- package/theme/mixins/config.less +1 -0
- package/theme/mixins/mixins.css +28 -0
- package/theme/mixins/mixins.less +35 -0
- package/theme/scroll-bar/index.css +28 -0
- package/theme/scroll-view/index.css +28 -0
- package/theme/splitter/index.css +28 -0
- package/theme/text/group.css +28 -0
- package/theme/text/index.css +36 -1
- package/theme/text/index.less +1 -1
- package/theme/work-order-modal/index.css +28 -0
|
@@ -0,0 +1,175 @@
|
|
|
1
|
+
import { defineComponent as $, ref as I, computed as T, watch as Y, createBlock as D, openBlock as E, unref as e, withCtx as t, createElementVNode as u, normalizeClass as m, createVNode as a, createSlots as K, toDisplayString as p, createTextVNode as v } from "vue";
|
|
2
|
+
import { Popover as j, Tooltip as q, Space as N, Checkbox as B } from "@aplus-frontend/antdv";
|
|
3
|
+
import "../../../config-provider/index.mjs";
|
|
4
|
+
import L from "../icons/line-eye.vue.mjs";
|
|
5
|
+
import "../../../ap-form/ap-form.vue.mjs";
|
|
6
|
+
import { ApField as M } from "../../../ap-field/index.mjs";
|
|
7
|
+
import "../../../ap-button/index.mjs";
|
|
8
|
+
import O from "dayjs";
|
|
9
|
+
import { useViewInject as S } from "../hooks/use-view-provide.mjs";
|
|
10
|
+
import { generateUniqueKey as A } from "../utils/uuid.mjs";
|
|
11
|
+
import { useLocale as P } from "../../../config-provider/hooks/use-locale.mjs";
|
|
12
|
+
import { useNamespace as R } from "../../../config-provider/hooks/use-namespace.mjs";
|
|
13
|
+
import w from "../../../ap-form/ap-form.vue2.mjs";
|
|
14
|
+
import h from "../../../ap-button/ap-button.vue.mjs";
|
|
15
|
+
const le = /* @__PURE__ */ $({
|
|
16
|
+
__name: "main-button-content",
|
|
17
|
+
props: {
|
|
18
|
+
maxViewNum: {}
|
|
19
|
+
},
|
|
20
|
+
setup(b) {
|
|
21
|
+
const c = b, { t: o } = P(), { b: n } = R("ap-view"), _ = I(), { tableKey: k, popoverOpen: r, viewList: f, saveDataSource: s, viewListCRUD: V } = S(), y = T({
|
|
22
|
+
get: () => r.value && f.value.length < c.maxViewNum + 1,
|
|
23
|
+
set: (l) => {
|
|
24
|
+
f.value.length < c.maxViewNum + 1 && (r.value = l);
|
|
25
|
+
}
|
|
26
|
+
});
|
|
27
|
+
Y(r, (l) => {
|
|
28
|
+
var i;
|
|
29
|
+
l && ((i = _.value) == null || i.resetFields());
|
|
30
|
+
});
|
|
31
|
+
const F = async (l) => {
|
|
32
|
+
var g, x;
|
|
33
|
+
const { viewName: i, isDefault: d } = l, C = A(), z = ((g = s == null ? void 0 : s.getSearchFormValues) == null ? void 0 : g.call(s, !0)) ?? {};
|
|
34
|
+
await ((x = V.addView) == null ? void 0 : x.call(V, {
|
|
35
|
+
tableKey: k,
|
|
36
|
+
viewKey: C,
|
|
37
|
+
viewName: i,
|
|
38
|
+
isDefault: d,
|
|
39
|
+
viewConfig: z
|
|
40
|
+
})), r.value = !1;
|
|
41
|
+
};
|
|
42
|
+
return (l, i) => (E(), D(e(j), {
|
|
43
|
+
open: y.value,
|
|
44
|
+
"onUpdate:open": i[1] || (i[1] = (d) => y.value = d),
|
|
45
|
+
placement: "bottom",
|
|
46
|
+
trigger: "click",
|
|
47
|
+
arrow: !1,
|
|
48
|
+
"overlay-inner-style": {
|
|
49
|
+
padding: "12px 16px"
|
|
50
|
+
}
|
|
51
|
+
}, {
|
|
52
|
+
content: t(() => [
|
|
53
|
+
u("div", {
|
|
54
|
+
class: m([e(n)("main-content-popover")])
|
|
55
|
+
}, [
|
|
56
|
+
a(w, {
|
|
57
|
+
ref_key: "formRef",
|
|
58
|
+
ref: _,
|
|
59
|
+
layout: "vertical",
|
|
60
|
+
"initial-values": {
|
|
61
|
+
isDefault: !0,
|
|
62
|
+
viewName: `${e(o)("ap.apView.newView")} ${e(O)().format("YYYY-MM-DD").toString()}`
|
|
63
|
+
},
|
|
64
|
+
onFinish: F
|
|
65
|
+
}, {
|
|
66
|
+
default: t(() => [
|
|
67
|
+
u("div", {
|
|
68
|
+
class: m([e(n)("main-content-popover-title-content")])
|
|
69
|
+
}, [
|
|
70
|
+
u("div", {
|
|
71
|
+
class: m([e(n)("main-content-popover-title-content-title")])
|
|
72
|
+
}, p(e(o)("ap.apView.saveNewView")), 3),
|
|
73
|
+
a(w.FormItem, {
|
|
74
|
+
name: "isDefault",
|
|
75
|
+
"value-prop-name": "checked"
|
|
76
|
+
}, {
|
|
77
|
+
default: t(() => [
|
|
78
|
+
a(e(B), null, {
|
|
79
|
+
default: t(() => [
|
|
80
|
+
v(p(e(o)("ap.apView.setDefault")), 1)
|
|
81
|
+
]),
|
|
82
|
+
_: 1
|
|
83
|
+
})
|
|
84
|
+
]),
|
|
85
|
+
_: 1
|
|
86
|
+
})
|
|
87
|
+
], 2),
|
|
88
|
+
a(w.FormItem, {
|
|
89
|
+
label: e(o)("ap.apView.viewName"),
|
|
90
|
+
name: "viewName",
|
|
91
|
+
rules: [{ required: !0, message: e(o)("ap.apView.notEmpty") }]
|
|
92
|
+
}, {
|
|
93
|
+
default: t(() => [
|
|
94
|
+
a(e(M).Text, {
|
|
95
|
+
placeholder: e(o)("ap.apView.viewName"),
|
|
96
|
+
maxlength: 20,
|
|
97
|
+
"show-count": ""
|
|
98
|
+
}, null, 8, ["placeholder"])
|
|
99
|
+
]),
|
|
100
|
+
_: 1
|
|
101
|
+
}, 8, ["label", "rules"]),
|
|
102
|
+
a(w.FormItem, {
|
|
103
|
+
class: m([e(n)("main-content-popover-btn")])
|
|
104
|
+
}, {
|
|
105
|
+
default: t(() => [
|
|
106
|
+
a(e(N), { size: 8 }, {
|
|
107
|
+
default: t(() => [
|
|
108
|
+
a(e(h), {
|
|
109
|
+
size: "small",
|
|
110
|
+
onClick: i[0] || (i[0] = (d) => r.value = !1)
|
|
111
|
+
}, {
|
|
112
|
+
default: t(() => [
|
|
113
|
+
v(p(e(o)("ap.apView.cancel")), 1)
|
|
114
|
+
]),
|
|
115
|
+
_: 1
|
|
116
|
+
}),
|
|
117
|
+
a(e(h), {
|
|
118
|
+
type: "primary",
|
|
119
|
+
size: "small",
|
|
120
|
+
"html-type": "submit"
|
|
121
|
+
}, {
|
|
122
|
+
default: t(() => [
|
|
123
|
+
v(p(e(o)("ap.apView.save")), 1)
|
|
124
|
+
]),
|
|
125
|
+
_: 1
|
|
126
|
+
})
|
|
127
|
+
]),
|
|
128
|
+
_: 1
|
|
129
|
+
})
|
|
130
|
+
]),
|
|
131
|
+
_: 1
|
|
132
|
+
}, 8, ["class"])
|
|
133
|
+
]),
|
|
134
|
+
_: 1
|
|
135
|
+
}, 8, ["initial-values"])
|
|
136
|
+
], 2)
|
|
137
|
+
]),
|
|
138
|
+
default: t(() => [
|
|
139
|
+
u("div", {
|
|
140
|
+
class: m({
|
|
141
|
+
[e(n)("main-content")]: !0,
|
|
142
|
+
[e(n)("main-content-disabled")]: e(f).length >= c.maxViewNum + 1
|
|
143
|
+
})
|
|
144
|
+
}, [
|
|
145
|
+
a(e(q), { placement: "bottom" }, K({
|
|
146
|
+
default: t(() => [
|
|
147
|
+
a(e(N), { size: 4 }, {
|
|
148
|
+
default: t(() => [
|
|
149
|
+
a(L, {
|
|
150
|
+
class: m([e(n)("icon")])
|
|
151
|
+
}, null, 8, ["class"]),
|
|
152
|
+
u("div", null, p(e(o)("ap.apView.saveView")), 1)
|
|
153
|
+
]),
|
|
154
|
+
_: 1
|
|
155
|
+
})
|
|
156
|
+
]),
|
|
157
|
+
_: 2
|
|
158
|
+
}, [
|
|
159
|
+
e(f).length >= c.maxViewNum + 1 ? {
|
|
160
|
+
name: "title",
|
|
161
|
+
fn: t(() => [
|
|
162
|
+
v(p(e(o)("ap.apView.maxTip")), 1)
|
|
163
|
+
]),
|
|
164
|
+
key: "0"
|
|
165
|
+
} : void 0
|
|
166
|
+
]), 1024)
|
|
167
|
+
], 2)
|
|
168
|
+
]),
|
|
169
|
+
_: 1
|
|
170
|
+
}, 8, ["open"]));
|
|
171
|
+
}
|
|
172
|
+
});
|
|
173
|
+
export {
|
|
174
|
+
le as default
|
|
175
|
+
};
|