@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 {
|
|
1
|
+
import { openBlock as t, createElementBlock as e, createStaticVNode as r } from "vue";
|
|
2
2
|
import l from "../../../../_virtual/_plugin-vue_export-helper.mjs";
|
|
3
3
|
const i = {}, o = {
|
|
4
4
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -8,7 +8,7 @@ const i = {}, o = {
|
|
|
8
8
|
viewBox: "0 0 16 16"
|
|
9
9
|
};
|
|
10
10
|
function c(n, Q) {
|
|
11
|
-
return
|
|
11
|
+
return t(), e("svg", o, Q[0] || (Q[0] = [
|
|
12
12
|
r('<defs><clipPath id="master_svg0_183_82058/183_76208"><rect x="0" y="0" width="16" height="16" rx="0"></rect></clipPath></defs><g clip-path="url(#master_svg0_183_82058/183_76208)"><g><rect x="0" y="0" width="16" height="16" rx="0" fill="#FFFFFF" fill-opacity="0.009999999776482582" style="mix-blend-mode:passthrough;"></rect></g><g><path d="M6.4678965625,11.32002357421875L11.4176265625,6.37025357421875Q11.4879565625,6.29993357421875,11.5260165625,6.20804357421875Q11.5640765625,6.11616357421875,11.5640765625,6.0167035742187505Q11.5640765625,5.967463574218749,11.5544665625,5.91916357421875Q11.5448565625,5.87086357421875,11.5260165625,5.82536357421875Q11.5071665625,5.77986357421875,11.4798065625,5.7389235742187505Q11.4524465625,5.69797357421875,11.4176265625,5.66315357421875Q11.3828065625,5.62833357421875,11.3418565625,5.6009735742187505Q11.3009165625,5.57361357421875,11.2554165625,5.55476357421875Q11.2099165625,5.535923574218749,11.1616165625,5.52631357421875Q11.1133165625,5.5167035742187505,11.0640765625,5.5167035742187505Q10.9646165625,5.5167035742187505,10.8727365625,5.55476357421875Q10.7808465625,5.59282357421875,10.7105265625,5.66315357421875L10.7102665625,5.66341357421875L5.7607865625,10.612923574218751Q5.4072265625,10.96648357421875,5.0536665625,10.612923574218751Q4.7001265624999995,10.25935357421875,5.0536765625,9.905773574218749L10.9462265625,4.01326057421875Q11.3855665625,3.57391357421875,12.0068765625,3.57391357421875Q12.6282265625,3.57391357421875,13.0675265625,4.01326157421875Q13.5069265625,4.45258357421875,13.5069265625,5.07391357421875Q13.5069265625,5.69523357421875,13.0675265625,6.13459357421875L7.1749865625,12.02712357421875Q6.4427665625,12.75934357421875,5.4072265625,12.75934357421875Q4.3716865625,12.75934357421875,3.6394565625,12.02712357421875Q2.9072265625,11.29489357421875,2.9072265625,10.25935357421875Q2.9072265625,9.22382357421875,3.6394565625,8.49159357421875L8.5891965625,3.5418455742187502Q8.6595265625,3.47151957421875,8.6975865625,3.37963357421875Q8.735646562500001,3.28774857421875,8.735646562500001,3.18829257421875Q8.735646562500001,3.13904677421875,8.7260365625,3.09074737421875Q8.7164265625,3.04244787421875,8.6975865625,2.99695077421875Q8.6787365625,2.95145357421875,8.651376562500001,2.91050757421875Q8.6240165625,2.86956157421875,8.5891965625,2.83473957421875Q8.5543765625,2.79991757421875,8.513426562500001,2.77255757421875Q8.472476562499999,2.74519857421875,8.4269865625,2.72635257421875Q8.381486562500001,2.70750757421875,8.3331865625,2.69789957421875Q8.284886562499999,2.68829257421875,8.235646562500001,2.68829257421875Q8.1361865625,2.68829257421875,8.0442965625,2.72635257421875Q7.9524165625,2.76441257421875,7.8820865625,2.83473957421875L7.8816965625,2.83512857421875L2.9323545625,7.78448357421875Q1.9072265625,8.80960357421875,1.9072265625,10.25935357421875Q1.9072265625,11.70910357421875,2.9323525625,12.73422357421875Q3.9574765625,13.75931357421875,5.4072265625,13.75931357421875Q6.8569765625,13.75931357421875,7.8820965625,12.73422357421875L13.7746265625,6.8416835742187505Q14.5069265625,6.10944357421875,14.5069265625,5.07391357421875Q14.5069265625,4.03837257421875,13.7746265625,3.30615057421875Q13.0424265625,2.57391357421875,12.0068765625,2.57391357421875Q10.9713365625,2.57391357421875,10.239126562500001,3.30615157421875L4.3465365625,9.19870357421875Q3.9072365625,9.638043574218749,3.9072365625,10.25935357421875Q3.9072365625,10.880663574218751,4.3465565625,11.32002357421875Q4.7859065625,11.75937357421875,5.4072265625,11.75937357421875Q6.0285465625,11.75937357421875,6.4678965625,11.32002357421875Z" fill-rule="evenodd" fill="currentColor" fill-opacity="1"></path></g></g>', 2)
|
|
13
13
|
]));
|
|
14
14
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as x, useSlots as D, computed as E, ref as N, watch as K,
|
|
1
|
+
import { defineComponent as x, useSlots as D, computed as E, ref as N, watch as K, openBlock as R, createElementBlock as V, normalizeClass as f, unref as t, withDirectives as T, createElementVNode as c, renderSlot as m, vShow as z, createTextVNode as v, toDisplayString as n, createVNode as O, withCtx as j, createCommentVNode as q } from "vue";
|
|
2
2
|
import { Button as F } from "@aplus-frontend/antdv";
|
|
3
3
|
import "../../config-provider/index.mjs";
|
|
4
4
|
import { useNamespace as G } from "../../config-provider/hooks/use-namespace.mjs";
|
|
@@ -33,7 +33,7 @@ const J = {
|
|
|
33
33
|
{
|
|
34
34
|
immediate: !0
|
|
35
35
|
}
|
|
36
|
-
), (e, l) => (
|
|
36
|
+
), (e, l) => (R(), V("div", {
|
|
37
37
|
class: f([t(r)()])
|
|
38
38
|
}, [
|
|
39
39
|
T(c("div", {
|
|
@@ -49,24 +49,24 @@ const J = {
|
|
|
49
49
|
class: f(t(r)("body"))
|
|
50
50
|
}, [
|
|
51
51
|
m(e.$slots, "prefix"),
|
|
52
|
-
o.showSelected ? (
|
|
52
|
+
o.showSelected ? (R(), V("div", J, [
|
|
53
53
|
c("div", M, [
|
|
54
54
|
v(n(t(d)("ap.apBatchAction.selected")) + " ", 1),
|
|
55
55
|
c("span", null, n(b.value), 1),
|
|
56
56
|
v(" " + n(t(d)("ap.apBatchAction.piecesOfData")), 1)
|
|
57
57
|
]),
|
|
58
58
|
c("div", P, [
|
|
59
|
-
|
|
59
|
+
O(t(F), {
|
|
60
60
|
type: "link",
|
|
61
61
|
onClick: l[0] || (l[0] = (h) => o.clearAll && o.clearAll())
|
|
62
62
|
}, {
|
|
63
|
-
default:
|
|
63
|
+
default: j(() => [
|
|
64
64
|
v(n(t(d)("ap.apBatchAction.empty")), 1)
|
|
65
65
|
]),
|
|
66
66
|
_: 1
|
|
67
67
|
})
|
|
68
68
|
])
|
|
69
|
-
])) :
|
|
69
|
+
])) : q("", !0),
|
|
70
70
|
m(e.$slots, "suffix")
|
|
71
71
|
], 2)
|
|
72
72
|
], 2));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as F, useSlots as O, computed as n,
|
|
1
|
+
import { defineComponent as F, useSlots as O, computed as n, openBlock as m, createBlock as d, unref as s, mergeProps as b, createSlots as g, withCtx as r, createVNode as i, createElementVNode as j, normalizeStyle as x, resolveDynamicComponent as k, h as A, renderList as B, renderSlot as C, normalizeProps as v, guardReactiveProps as y, normalizeClass as E, createCommentVNode as I } from "vue";
|
|
2
2
|
import { DropdownButton as q, Dropdown as H } from "@aplus-frontend/antdv";
|
|
3
3
|
import "../../ap-button/index.mjs";
|
|
4
4
|
import "./MenuItemGroup.vue.mjs";
|
|
@@ -61,7 +61,7 @@ const ie = /* @__PURE__ */ F({
|
|
|
61
61
|
return D({
|
|
62
62
|
columns: T,
|
|
63
63
|
dataSource: N
|
|
64
|
-
}), (t, o) => c.value.length && P.value === "dropdown" ? (
|
|
64
|
+
}), (t, o) => c.value.length && P.value === "dropdown" ? (m(), d(s(q), b({
|
|
65
65
|
key: 0,
|
|
66
66
|
class: [s(h)()]
|
|
67
67
|
}, {
|
|
@@ -75,12 +75,12 @@ const ie = /* @__PURE__ */ F({
|
|
|
75
75
|
}, { "menu-list": c.value }), null, 16, ["menu-list"])
|
|
76
76
|
]),
|
|
77
77
|
default: r(() => [
|
|
78
|
-
|
|
79
|
-
style:
|
|
78
|
+
j("span", {
|
|
79
|
+
style: x({
|
|
80
80
|
color: V.value
|
|
81
81
|
})
|
|
82
82
|
}, [
|
|
83
|
-
(
|
|
83
|
+
(m(), d(k(A("span", [_.value]))))
|
|
84
84
|
], 4)
|
|
85
85
|
]),
|
|
86
86
|
_: 2
|
|
@@ -91,9 +91,9 @@ const ie = /* @__PURE__ */ F({
|
|
|
91
91
|
C(t.$slots, l, v(y(f || {})))
|
|
92
92
|
])
|
|
93
93
|
}))
|
|
94
|
-
]), 1040, ["class"])) : c.value.length && P.value === "default" ? (
|
|
94
|
+
]), 1040, ["class"])) : c.value.length && P.value === "default" ? (m(), d(s(H), {
|
|
95
95
|
key: 1,
|
|
96
|
-
class:
|
|
96
|
+
class: E([s(h)()]),
|
|
97
97
|
disabled: p.value
|
|
98
98
|
}, g({
|
|
99
99
|
overlay: r(() => [
|
|
@@ -108,7 +108,7 @@ const ie = /* @__PURE__ */ F({
|
|
|
108
108
|
type: u.value
|
|
109
109
|
})), {
|
|
110
110
|
default: r(() => [
|
|
111
|
-
(
|
|
111
|
+
(m(), d(k(A("span", [_.value])))),
|
|
112
112
|
i(s(J))
|
|
113
113
|
]),
|
|
114
114
|
_: 1
|
|
@@ -122,7 +122,7 @@ const ie = /* @__PURE__ */ F({
|
|
|
122
122
|
C(t.$slots, l, v(y(f || {})))
|
|
123
123
|
])
|
|
124
124
|
}))
|
|
125
|
-
]), 1032, ["class", "disabled"])) :
|
|
125
|
+
]), 1032, ["class", "disabled"])) : I("", !0);
|
|
126
126
|
}
|
|
127
127
|
});
|
|
128
128
|
export {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as _, ref as v,
|
|
1
|
+
import { defineComponent as _, ref as v, openBlock as s, createBlock as a, unref as u, withCtx as d, createElementBlock as h, Fragment as t, renderList as y, mergeProps as k, createElementVNode as w, withDirectives as g, createVNode as C, vShow as b, resolveDynamicComponent as L, h as M } from "vue";
|
|
2
2
|
import { LoadingOutlined as B } from "@ant-design/icons-vue";
|
|
3
3
|
import { Menu as R, MenuItem as x } from "@aplus-frontend/antdv";
|
|
4
4
|
const D = { style: { display: "flex", "align-items": "center" } }, P = /* @__PURE__ */ _({
|
|
@@ -3,8 +3,8 @@ import { ButtonType, ButtonShape, ButtonSize } from '@aplus-frontend/antdv/es/bu
|
|
|
3
3
|
import { ButtonHTMLType } from '@aplus-frontend/antdv/es/button/buttonTypes';
|
|
4
4
|
import { VueTypeValidableDef } from '../../../node_modules/vue-types';
|
|
5
5
|
import { MouseEventHandler, FocusEventHandler } from '@aplus-frontend/antdv/es/_util/EventInterface';
|
|
6
|
+
import { ButtonProps, ItemType, MenuTheme, MenuMode, TableColumnsType } from '@aplus-frontend/antdv';
|
|
6
7
|
import { DropdownArrowOptions, Trigger, Align } from '@aplus-frontend/antdv/es/dropdown/props';
|
|
7
|
-
import { ItemType, MenuTheme, MenuMode, TableColumnsType, ButtonProps } from '@aplus-frontend/antdv';
|
|
8
8
|
import { Key } from '@aplus-frontend/antdv/es/_util/type';
|
|
9
9
|
import { CSSMotionProps } from '@aplus-frontend/antdv/es/_util/transition';
|
|
10
10
|
import { BuiltinPlacements, TriggerSubMenuAction, SelectEventHandler, MenuClickEventHandler } from '@aplus-frontend/antdv/es/menu/src/interface';
|
|
@@ -63,7 +63,7 @@ declare const ApBatchActionGroup: {
|
|
|
63
63
|
type: PropType< MouseEventHandler | MouseEventHandler[]>;
|
|
64
64
|
};
|
|
65
65
|
}>>, "type" | "onClick"> & {
|
|
66
|
-
type?:
|
|
66
|
+
type?: ButtonProps["type"] | "borderLink";
|
|
67
67
|
borderLinkColor?: string;
|
|
68
68
|
minWidth?: boolean | number | string;
|
|
69
69
|
lazy?: boolean | number;
|
|
@@ -364,7 +364,7 @@ declare const ApBatchActionGroup: {
|
|
|
364
364
|
type: PropType< MouseEventHandler | MouseEventHandler[]>;
|
|
365
365
|
};
|
|
366
366
|
}>>, "type" | "onClick"> & {
|
|
367
|
-
type?:
|
|
367
|
+
type?: ButtonProps["type"] | "borderLink";
|
|
368
368
|
borderLinkColor?: string;
|
|
369
369
|
minWidth?: boolean | number | string;
|
|
370
370
|
lazy?: boolean | number;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as k, computed as T,
|
|
1
|
+
import { defineComponent as k, computed as T, openBlock as t, createBlock as u, unref as s, normalizeProps as P, guardReactiveProps as R, withCtx as c, createElementBlock as m, Fragment as p, renderList as i, mergeProps as l, resolveDynamicComponent as f, h as y, createCommentVNode as B } from "vue";
|
|
2
2
|
import { Space as x } from "@aplus-frontend/antdv";
|
|
3
3
|
import "../../ap-button/ap-button.vue2.mjs";
|
|
4
4
|
import "../../ap-button/ap-action-button.vue2.mjs";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as h, useSlots as $, computed as l,
|
|
1
|
+
import { defineComponent as h, useSlots as $, computed as l, openBlock as r, createElementBlock as o, normalizeClass as B, unref as s, normalizeStyle as N, createBlock as c, mergeProps as b, createSlots as z, withCtx as P, renderSlot as d, isVNode as y, resolveDynamicComponent as k, toDisplayString as v, createCommentVNode as _ } from "vue";
|
|
2
2
|
import "../ap-title/ApTitle.vue.mjs";
|
|
3
3
|
import { omit as D } from "lodash-unified";
|
|
4
4
|
import "../../config-provider/index.mjs";
|
|
@@ -20,8 +20,8 @@ const w = { key: 2 }, A = { key: 2 }, I = /* @__PURE__ */ h({
|
|
|
20
20
|
return (i, E) => {
|
|
21
21
|
var u, x;
|
|
22
22
|
return r(), o("div", {
|
|
23
|
-
class:
|
|
24
|
-
style:
|
|
23
|
+
class: B([s(m)()]),
|
|
24
|
+
style: N({
|
|
25
25
|
padding: C.value
|
|
26
26
|
})
|
|
27
27
|
}, [
|
|
@@ -33,26 +33,26 @@ const w = { key: 2 }, A = { key: 2 }, I = /* @__PURE__ */ h({
|
|
|
33
33
|
}), z({ _: 2 }, [
|
|
34
34
|
t != null && t.titleSuffix || (u = e == null ? void 0 : e.titleProps) != null && u.suffix ? {
|
|
35
35
|
name: "suffix",
|
|
36
|
-
fn:
|
|
36
|
+
fn: P(() => {
|
|
37
37
|
var f, n, a;
|
|
38
38
|
return [
|
|
39
|
-
t != null && t.titleSuffix ? d(i.$slots, "titleSuffix", { key: 0 }) :
|
|
39
|
+
t != null && t.titleSuffix ? d(i.$slots, "titleSuffix", { key: 0 }) : y((f = e == null ? void 0 : e.titleProps) == null ? void 0 : f.suffix) ? (r(), c(k((n = e == null ? void 0 : e.titleProps) == null ? void 0 : n.suffix), { key: 1 })) : (r(), o("div", w, v((a = e == null ? void 0 : e.titleProps) == null ? void 0 : a.suffix), 1))
|
|
40
40
|
];
|
|
41
41
|
}),
|
|
42
42
|
key: "0"
|
|
43
43
|
} : void 0,
|
|
44
44
|
t != null && t.titlePrefix || (x = e == null ? void 0 : e.titleProps) != null && x.prefix ? {
|
|
45
45
|
name: "prefix",
|
|
46
|
-
fn:
|
|
46
|
+
fn: P(() => {
|
|
47
47
|
var f, n, a;
|
|
48
48
|
return [
|
|
49
|
-
t != null && t.titlePrefix ? d(i.$slots, "titlePrefix", { key: 0 }) :
|
|
50
|
-
|
|
49
|
+
t != null && t.titlePrefix ? d(i.$slots, "titlePrefix", { key: 0 }) : _("", !0),
|
|
50
|
+
y((f = e == null ? void 0 : e.titleProps) == null ? void 0 : f.prefix) ? (r(), c(k((n = e == null ? void 0 : e.titleProps) == null ? void 0 : n.prefix), { key: 1 })) : (r(), o("div", A, v((a = e == null ? void 0 : e.titleProps) == null ? void 0 : a.prefix), 1))
|
|
51
51
|
];
|
|
52
52
|
}),
|
|
53
53
|
key: "1"
|
|
54
54
|
} : void 0
|
|
55
|
-
]), 1040, ["class"])) :
|
|
55
|
+
]), 1040, ["class"])) : _("", !0),
|
|
56
56
|
d(i.$slots, "default")
|
|
57
57
|
], 6);
|
|
58
58
|
};
|
|
@@ -10,7 +10,7 @@ declare function __VLS_template(): {
|
|
|
10
10
|
span: number;
|
|
11
11
|
row: number;
|
|
12
12
|
col: number;
|
|
13
|
-
height?: number | string | undefined;
|
|
13
|
+
height?: (number | string) | undefined;
|
|
14
14
|
};
|
|
15
15
|
index: number;
|
|
16
16
|
}): any;
|
|
@@ -58,6 +58,10 @@ declare const __VLS_component: DefineComponent<ExtractPropTypes<{
|
|
|
58
58
|
type: BooleanConstructor;
|
|
59
59
|
default: boolean;
|
|
60
60
|
};
|
|
61
|
+
customWrapper: {
|
|
62
|
+
type: StringConstructor;
|
|
63
|
+
default: string;
|
|
64
|
+
};
|
|
61
65
|
}>, {
|
|
62
66
|
setGridItems: (items: ApDraggableGridItemBase[]) => void;
|
|
63
67
|
refreshGrid: () => void;
|
|
@@ -100,6 +104,10 @@ declare const __VLS_component: DefineComponent<ExtractPropTypes<{
|
|
|
100
104
|
type: BooleanConstructor;
|
|
101
105
|
default: boolean;
|
|
102
106
|
};
|
|
107
|
+
customWrapper: {
|
|
108
|
+
type: StringConstructor;
|
|
109
|
+
default: string;
|
|
110
|
+
};
|
|
103
111
|
}>> & Readonly<{
|
|
104
112
|
onOnGridListChange?: ((args_0: ApDraggableGridItemBase[]) => any) | undefined;
|
|
105
113
|
}>, {
|
|
@@ -112,6 +120,7 @@ declare const __VLS_component: DefineComponent<ExtractPropTypes<{
|
|
|
112
120
|
dragOverlayColor: string;
|
|
113
121
|
dragOverlayBorderColor: string;
|
|
114
122
|
disableDrag: boolean;
|
|
123
|
+
customWrapper: string;
|
|
115
124
|
}, {}, {}, {}, string, ComponentProvideOptions, true, {
|
|
116
125
|
gridContainer: HTMLDivElement;
|
|
117
126
|
}, any>;
|
|
@@ -1,48 +1,48 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { ApDraggableGridProps as
|
|
3
|
-
import { Spin as
|
|
1
|
+
import { defineComponent as H, ref as $, computed as w, useTemplateRef as M, reactive as U, watch as V, onMounted as J, onUnmounted as X, openBlock as D, createBlock as Y, unref as d, withCtx as j, createElementVNode as K, normalizeClass as L, normalizeStyle as W, createElementBlock as k, Fragment as Q, renderList as Z, renderSlot as ee, createTextVNode as re, toDisplayString as T } from "vue";
|
|
2
|
+
import { ApDraggableGridProps as te } from "./constans.mjs";
|
|
3
|
+
import { Spin as ae } from "@aplus-frontend/antdv";
|
|
4
4
|
import "../../config-provider/index.mjs";
|
|
5
|
-
import { useNamespace as
|
|
6
|
-
const
|
|
5
|
+
import { useNamespace as ne } from "../../config-provider/hooks/use-namespace.mjs";
|
|
6
|
+
const oe = ["data-span", "draggable", "onDragstart"], ue = /* @__PURE__ */ H({
|
|
7
7
|
__name: "ApDraggableGrid",
|
|
8
|
-
props:
|
|
8
|
+
props: te(),
|
|
9
9
|
emits: ["onGridListChange"],
|
|
10
|
-
setup(
|
|
11
|
-
const
|
|
12
|
-
|
|
13
|
-
() =>
|
|
10
|
+
setup(N, { expose: R, emit: B }) {
|
|
11
|
+
const o = N, { b, e: p, m: E } = ne("ap-draggable-grid"), f = $(!1), m = w(() => p("item")), S = w(() => p("dragging")), I = w(() => o.customWrapper ? `.${o.customWrapper} .${m.value}` : `.${m.value}`), O = w(() => o.customWrapper ? `.${o.customWrapper} .${m.value}:not(.${S.value})` : `.${m.value}:not(.${S.value})`), F = B, u = M("gridContainer"), i = $(null), s = U([]);
|
|
12
|
+
V(
|
|
13
|
+
() => o.gridList,
|
|
14
14
|
(e) => {
|
|
15
|
-
Array.isArray(e) &&
|
|
15
|
+
Array.isArray(e) && v(e);
|
|
16
16
|
},
|
|
17
17
|
{ deep: !0, immediate: !0 }
|
|
18
18
|
);
|
|
19
|
-
function
|
|
20
|
-
|
|
21
|
-
|
|
19
|
+
function v(e) {
|
|
20
|
+
s.splice(0, s.length), e.forEach((r) => {
|
|
21
|
+
s.push({
|
|
22
22
|
...r,
|
|
23
23
|
isDragging: !1,
|
|
24
24
|
isOverlay: !1
|
|
25
25
|
});
|
|
26
26
|
});
|
|
27
27
|
}
|
|
28
|
-
const
|
|
28
|
+
const q = (e) => ({
|
|
29
29
|
gridColumn: `${e.col} / span ${e.span}`,
|
|
30
30
|
gridRow: e.row,
|
|
31
|
-
minHeight: `${
|
|
32
|
-
boxShadow:
|
|
33
|
-
}),
|
|
31
|
+
minHeight: `${o.gridItemHeight}px`,
|
|
32
|
+
boxShadow: o.gridItemShadow ? o.gridItemShadow : "none"
|
|
33
|
+
}), x = (e) => {
|
|
34
34
|
if (e.isOverlay) {
|
|
35
35
|
const r = {};
|
|
36
|
-
return
|
|
36
|
+
return o.dragOverlayColor && (r.backgroundColor = o.dragOverlayColor), o.dragOverlayBorderColor && (r.border = `2px dashed ${o.dragOverlayBorderColor}`, r.boxSizing = "border-box"), r;
|
|
37
37
|
}
|
|
38
38
|
return {};
|
|
39
|
-
},
|
|
40
|
-
i.value = r,
|
|
41
|
-
},
|
|
42
|
-
i.value !== null && (
|
|
39
|
+
}, _ = (e, r) => {
|
|
40
|
+
i.value = r, s[r].isDragging = !0, e.dataTransfer && (e.dataTransfer.setData("text/plain", String(r)), e.dataTransfer.effectAllowed = "move");
|
|
41
|
+
}, P = () => {
|
|
42
|
+
i.value !== null && (s[i.value].isDragging = !1, h(), i.value = null), s.forEach((e) => e.isOverlay = !1);
|
|
43
43
|
};
|
|
44
|
-
function
|
|
45
|
-
const e =
|
|
44
|
+
function h() {
|
|
45
|
+
const e = s.map(
|
|
46
46
|
(r) => ({
|
|
47
47
|
span: r.span,
|
|
48
48
|
row: r.row,
|
|
@@ -50,139 +50,140 @@ const te = ["data-span", "draggable", "onDragstart"], ce = /* @__PURE__ */ W({
|
|
|
50
50
|
height: r.height ? r.height : ""
|
|
51
51
|
})
|
|
52
52
|
);
|
|
53
|
-
|
|
53
|
+
F("onGridListChange", e);
|
|
54
54
|
}
|
|
55
|
-
async function
|
|
56
|
-
if (
|
|
55
|
+
async function C() {
|
|
56
|
+
if (v([]), typeof o.request == "function")
|
|
57
57
|
try {
|
|
58
|
-
|
|
59
|
-
const e = await
|
|
60
|
-
Array.isArray(e) ?
|
|
58
|
+
f.value = !0;
|
|
59
|
+
const e = await o.request();
|
|
60
|
+
Array.isArray(e) ? v(e) : console.warn(
|
|
61
61
|
"ApDraggableGrid: 请求函数必须返回一个符合 ApDraggableGridItemBase 数组的格式"
|
|
62
62
|
);
|
|
63
63
|
} catch (e) {
|
|
64
64
|
console.error("ApDraggableGrid: 请求错误:", e);
|
|
65
65
|
} finally {
|
|
66
|
-
|
|
66
|
+
f.value = !1;
|
|
67
67
|
}
|
|
68
68
|
}
|
|
69
|
-
|
|
70
|
-
if (await
|
|
71
|
-
const e = (
|
|
72
|
-
if (
|
|
73
|
-
const
|
|
74
|
-
if (!
|
|
75
|
-
const n =
|
|
76
|
-
|
|
69
|
+
J(async () => {
|
|
70
|
+
if (await C(), y(), o.disableDrag || !u.value) return;
|
|
71
|
+
const e = (t) => {
|
|
72
|
+
if (t.preventDefault(), i.value === null || !t.target) return;
|
|
73
|
+
const a = document.elementFromPoint(t.clientX, t.clientY);
|
|
74
|
+
if (!a) return;
|
|
75
|
+
const n = a.closest(
|
|
76
|
+
O.value
|
|
77
77
|
);
|
|
78
78
|
if (!n) return;
|
|
79
|
-
const
|
|
80
|
-
document.querySelectorAll(
|
|
79
|
+
const l = Array.from(
|
|
80
|
+
document.querySelectorAll(I.value)
|
|
81
81
|
).indexOf(n);
|
|
82
|
-
|
|
83
|
-
}, r = (
|
|
84
|
-
if (
|
|
85
|
-
const
|
|
86
|
-
if (!
|
|
87
|
-
const n =
|
|
88
|
-
|
|
82
|
+
l >= 0 && l !== i.value && (s.forEach((c) => c.isOverlay = !1), s[l].isOverlay = !0, A(i.value, l) ? t.dataTransfer.dropEffect = "move" : t.dataTransfer.dropEffect = "none");
|
|
83
|
+
}, r = (t) => {
|
|
84
|
+
if (t.preventDefault(), i.value === null) return;
|
|
85
|
+
const a = document.elementFromPoint(t.clientX, t.clientY);
|
|
86
|
+
if (!a) return;
|
|
87
|
+
const n = a.closest(
|
|
88
|
+
O.value
|
|
89
89
|
);
|
|
90
90
|
if (!n) return;
|
|
91
|
-
const
|
|
92
|
-
document.querySelectorAll(
|
|
91
|
+
const l = Array.from(
|
|
92
|
+
document.querySelectorAll(I.value)
|
|
93
93
|
).indexOf(n);
|
|
94
|
-
|
|
94
|
+
l >= 0 && A(i.value, l) && (z(i.value, l), y(), h()), s.forEach((c) => {
|
|
95
95
|
c.isDragging = !1, c.isOverlay = !1;
|
|
96
96
|
}), i.value = null;
|
|
97
97
|
};
|
|
98
|
-
|
|
99
|
-
|
|
98
|
+
u.value.addEventListener("dragover", e), u.value.addEventListener("drop", r), X(() => {
|
|
99
|
+
u.value && (u.value.removeEventListener("dragover", e), u.value.removeEventListener("drop", r));
|
|
100
100
|
});
|
|
101
101
|
});
|
|
102
|
-
function
|
|
103
|
-
const
|
|
104
|
-
JSON.stringify(
|
|
105
|
-
),
|
|
106
|
-
|
|
102
|
+
function A(e, r) {
|
|
103
|
+
const t = JSON.parse(
|
|
104
|
+
JSON.stringify(s)
|
|
105
|
+
), a = t[e], n = t[r], g = a.height === n.height, l = G(
|
|
106
|
+
a.span,
|
|
107
107
|
n.row,
|
|
108
108
|
e,
|
|
109
109
|
r
|
|
110
|
-
), c =
|
|
110
|
+
), c = G(
|
|
111
111
|
n.span,
|
|
112
|
-
|
|
112
|
+
a.row,
|
|
113
113
|
r,
|
|
114
114
|
e
|
|
115
115
|
);
|
|
116
|
-
return
|
|
116
|
+
return l && c && g;
|
|
117
117
|
}
|
|
118
|
-
function
|
|
118
|
+
function G(e, r, t, a) {
|
|
119
119
|
let n = 0, g = 1;
|
|
120
|
-
return
|
|
121
|
-
|
|
120
|
+
return s.forEach((l, c) => {
|
|
121
|
+
l.row === r && c !== a && c !== t && (n += l.span, l.col <= g && (g = l.col + l.span));
|
|
122
122
|
}), n + e <= 24;
|
|
123
123
|
}
|
|
124
|
-
function
|
|
125
|
-
const
|
|
126
|
-
|
|
124
|
+
function z(e, r) {
|
|
125
|
+
const t = s[e], a = s[r], n = t.row, g = t.col;
|
|
126
|
+
t.row = a.row, t.col = a.col, a.row = n, a.col = g;
|
|
127
127
|
}
|
|
128
128
|
function y() {
|
|
129
129
|
const e = {};
|
|
130
|
-
|
|
130
|
+
s.forEach((r) => {
|
|
131
131
|
e[r.row] || (e[r.row] = []), e[r.row].push(r);
|
|
132
132
|
}), Object.keys(e).forEach((r) => {
|
|
133
|
-
const
|
|
134
|
-
e[
|
|
135
|
-
let
|
|
136
|
-
e[
|
|
137
|
-
n.col =
|
|
133
|
+
const t = parseInt(r);
|
|
134
|
+
e[t].sort((n, g) => n.col - g.col);
|
|
135
|
+
let a = 1;
|
|
136
|
+
e[t].forEach((n) => {
|
|
137
|
+
n.col = a, a += n.span;
|
|
138
138
|
});
|
|
139
139
|
});
|
|
140
140
|
}
|
|
141
|
-
return
|
|
141
|
+
return R({
|
|
142
142
|
setGridItems: (e) => {
|
|
143
|
-
|
|
143
|
+
v(e), y(), h();
|
|
144
144
|
},
|
|
145
145
|
refreshGrid: () => {
|
|
146
146
|
(async () => {
|
|
147
|
-
await
|
|
147
|
+
await C(), y(), h();
|
|
148
148
|
})();
|
|
149
149
|
}
|
|
150
|
-
}), (e, r) => (
|
|
151
|
-
default:
|
|
152
|
-
|
|
150
|
+
}), (e, r) => (D(), Y(d(ae), { spinning: f.value }, {
|
|
151
|
+
default: j(() => [
|
|
152
|
+
K("div", {
|
|
153
153
|
ref_key: "gridContainer",
|
|
154
|
-
ref:
|
|
155
|
-
class:
|
|
156
|
-
style:
|
|
154
|
+
ref: u,
|
|
155
|
+
class: L([f.value ? d(b)("loading") : d(b)(), o.customWrapper]),
|
|
156
|
+
style: W({
|
|
157
157
|
width: typeof e.gridWidth == "number" ? `${e.gridWidth}px` : e.gridWidth,
|
|
158
158
|
gap: `${e.gapWidth}px`
|
|
159
159
|
})
|
|
160
160
|
}, [
|
|
161
|
-
(
|
|
162
|
-
key:
|
|
163
|
-
class:
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
161
|
+
(D(!0), k(Q, null, Z(s, (t, a) => (D(), k("div", {
|
|
162
|
+
key: a,
|
|
163
|
+
class: L([
|
|
164
|
+
d(p)("item"),
|
|
165
|
+
o.disableDrag ? "" : d(E)("dragging"),
|
|
166
|
+
t.isDragging ? d(p)("dragging") : "",
|
|
167
|
+
t.isOverlay ? d(p)("overlay") : "",
|
|
168
|
+
o.disableDrag ? "" : d(E)("canDrag")
|
|
168
169
|
]),
|
|
169
|
-
"data-span":
|
|
170
|
-
style:
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
{ height:
|
|
170
|
+
"data-span": t.span,
|
|
171
|
+
style: W([
|
|
172
|
+
q(t),
|
|
173
|
+
x(t),
|
|
174
|
+
{ height: t.height ? t.height + "px" : "" }
|
|
174
175
|
]),
|
|
175
|
-
draggable: !
|
|
176
|
-
onDragstart: (n) =>
|
|
177
|
-
onDragend:
|
|
176
|
+
draggable: !o.disableDrag,
|
|
177
|
+
onDragstart: (n) => _(n, a),
|
|
178
|
+
onDragend: P
|
|
178
179
|
}, [
|
|
179
|
-
|
|
180
|
-
item:
|
|
181
|
-
index:
|
|
180
|
+
ee(e.$slots, "item", {
|
|
181
|
+
item: t,
|
|
182
|
+
index: a
|
|
182
183
|
}, () => [
|
|
183
|
-
|
|
184
|
+
re(T(Math.round(t.span / 24 * 100)) + "% (" + T(t.span) + "/24) ", 1)
|
|
184
185
|
])
|
|
185
|
-
], 46,
|
|
186
|
+
], 46, oe))), 128))
|
|
186
187
|
], 6)
|
|
187
188
|
]),
|
|
188
189
|
_: 3
|
|
@@ -190,5 +191,5 @@ const te = ["data-span", "draggable", "onDragstart"], ce = /* @__PURE__ */ W({
|
|
|
190
191
|
}
|
|
191
192
|
});
|
|
192
193
|
export {
|
|
193
|
-
|
|
194
|
+
ue as default
|
|
194
195
|
};
|