@oinone/kunlun-vue-admin-base 7.1.0 → 7.2.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/dist/oinone-kunlun-vue-admin-base.css +1 -1
- package/dist/oinone-kunlun-vue-admin-base.esm.js +18 -18
- package/dist/oinone-kunlun-vue-admin-base.scss +1 -1
- package/dist/types/src/action/component/action-bar/ActionBarWidget.d.ts +1 -0
- package/dist/types/src/action/component/action-bar/DefaultActionBar.vue.d.ts +12 -6
- package/dist/types/src/action/view-actions/biz-audit/BizAuditRecordDetail.vue.d.ts +1 -1
- package/dist/types/src/action/view-actions/biz-audit/BizAuditRecordDetailFieldValue.vue.d.ts +1 -1
- package/dist/types/src/action/view-actions/biz-audit/service.d.ts +1 -1
- package/dist/types/src/basic/field/complex/select/SelectFieldWidget.d.ts +1 -0
- package/dist/types/src/basic/form/DefaultForm.vue.d.ts +10 -1
- package/dist/types/src/basic/table/BaseTableWidget.d.ts +2 -2
- package/dist/types/src/basic/table-column/BaseTableColumnWidget.d.ts +5 -0
- package/dist/types/src/basic/table-column/BaseTableFieldWidget.d.ts +0 -5
- package/dist/types/src/basic/token/BaseFieldWidget.d.ts +2 -1
- package/dist/types/src/components/select/base/BaseSelect.vue.d.ts +2 -1
- package/dist/types/src/components/select/base/index.d.ts +1 -0
- package/dist/types/src/components/select/base/useSelectId.d.ts +1 -0
- package/dist/types/src/components/select/department-select/DepartmentModal.vue.d.ts +3 -3
- package/dist/types/src/components/select/department-select/DepartmentTree.vue.d.ts +1 -1
- package/dist/types/src/components/select/modal-select/ModalSelect.vue.d.ts +2 -0
- package/dist/types/src/components/select/organizational-structure-tree/OrganizationalStructureTree.vue.d.ts +5 -2
- package/dist/types/src/components/sortable-group/SortableGroup.vue.d.ts +1 -1
- package/dist/types/src/field/businees-audit/FormBizAuditField.vue.d.ts +1 -1
- package/dist/types/src/field/cascader/DefaultCascader.vue.d.ts +1 -1
- package/dist/types/src/field/detail/date/DetailWeekPickerFieldWidget.d.ts +3 -0
- package/dist/types/src/field/detail/date/index.d.ts +1 -0
- package/dist/types/src/field/detail/index.d.ts +1 -1
- package/dist/types/src/field/detail/m2m/table/DetailM2MTableFieldWidget.d.ts +1 -0
- package/dist/types/src/field/detail/number/DetailFloatFieldWidget.d.ts +3 -0
- package/dist/types/src/field/detail/number/DetailIntegerFieldWidget.d.ts +3 -0
- package/dist/types/src/field/detail/number/DetailMoneyFieldWidget.d.ts +3 -0
- package/dist/types/src/field/detail/number/index.d.ts +4 -0
- package/dist/types/src/field/detail/o2m/table/DetailO2MTableFieldWidget.d.ts +1 -0
- package/dist/types/src/field/form/abstract/department/AbstractFormDepartmentFieldWidget.d.ts +4 -0
- package/dist/types/src/field/form/abstract/employee/AbstractFormEmployeeFieldWidget.d.ts +4 -0
- package/dist/types/src/field/form/abstract/radio/FormRelationFieldRadioWidget.d.ts +2 -1
- package/dist/types/src/field/form/abstract/role/AbstractFormRoleFieldWidget.d.ts +4 -0
- package/dist/types/src/field/form/abstract/select/DefaultMultipleSelect.vue.d.ts +2 -1
- package/dist/types/src/field/form/abstract/select/DefaultSingleSelect.vue.d.ts +2 -1
- package/dist/types/src/field/form/date/DefaultDatePicker.vue.d.ts +1 -1
- package/dist/types/src/field/form/date/DefaultDateTimePicker.vue.d.ts +1 -1
- package/dist/types/src/field/form/date/DefaultTimePicker.vue.d.ts +1 -1
- package/dist/types/src/field/form/date/DefaultYearPicker.vue.d.ts +1 -1
- package/dist/types/src/field/form/date/range/DefaultDateRangePicker.vue.d.ts +1 -1
- package/dist/types/src/field/form/date/range/DefaultDateTimeRangePicker.vue.d.ts +1 -1
- package/dist/types/src/field/form/date/range/DefaultTimeRangePicker.vue.d.ts +1 -1
- package/dist/types/src/field/form/date/range/DefaultYearRangePicker.vue.d.ts +1 -1
- package/dist/types/src/field/form/enum/select/multi/MultiEnumSelect.vue.d.ts +1 -1
- package/dist/types/src/field/form/enum/select/single/EnumSelect.vue.d.ts +1 -1
- package/dist/types/src/field/form/enum/thumbnail/FormEnumThumbnail.vue.d.ts +2 -1
- package/dist/types/src/field/form/string/expression/model-field-select/modelFieldSelectControlWidget.d.ts +2 -0
- package/dist/types/src/field/form/text/DomainExpGenerator/DomainExpGenerator.vue.d.ts +1 -1
- package/dist/types/src/field/form/text/DomainExpGenerator/ExpItem.vue.d.ts +4 -0
- package/dist/types/src/field/form/text/DomainExpGenerator/ExpRight.vue.d.ts +1 -1
- package/dist/types/src/field/gallery/number/GalleryFloatFieldWidget.d.ts +3 -0
- package/dist/types/src/field/gallery/number/GalleryIntegerFieldWidget.d.ts +3 -0
- package/dist/types/src/field/gallery/number/GalleryMoneyFieldWidget.d.ts +3 -0
- package/dist/types/src/field/gallery/number/index.d.ts +3 -0
- package/dist/types/src/field/prop/RelationSelectProps.d.ts +1 -0
- package/dist/types/src/field/resource/language-badge/FormResourceLangBadge.vue.d.ts +2 -1
- package/dist/types/src/field/search/enum/TabSelect.vue.d.ts +1 -1
- package/dist/types/src/field/search/enum/TagSelect.vue.d.ts +1 -1
- package/dist/types/src/field/table/date/TableWeekPickerFieldWidget.d.ts +3 -0
- package/dist/types/src/field/table/date/index.d.ts +1 -0
- package/dist/types/src/field/table/date/range/editor/DefaultEditorDateRangePicker.vue.d.ts +1 -1
- package/dist/types/src/field/table/date/range/editor/DefaultEditorDateTimeRangePicker.vue.d.ts +1 -1
- package/dist/types/src/field/table/date/range/editor/DefaultEditorTimeRangePicker.vue.d.ts +1 -1
- package/dist/types/src/field/table/date/range/editor/DefaultEditorYearRangePicker.vue.d.ts +1 -1
- package/dist/types/src/field/table/html/TableRichText.vue.d.ts +1 -1
- package/dist/types/src/field/table/number/TableFloatFieldWidget.d.ts +3 -0
- package/dist/types/src/field/table/number/TableIntegerFieldWidget.d.ts +3 -0
- package/dist/types/src/field/table/number/index.d.ts +2 -0
- package/dist/types/src/field/table-layout-column/TableLayoutColumnWidget.d.ts +8 -5
- package/dist/types/src/field/table-operation-column/TableOperationColumn.vue.d.ts +1 -1
- package/dist/types/src/field/tree-select/DefaultTreeSelect.vue.d.ts +1 -1
- package/dist/types/src/permission/permission/field/FieldPermission.vue.d.ts +1 -1
- package/dist/types/src/permission/permission/field/index.d.ts +0 -2
- package/dist/types/src/permission/permission/index.d.ts +0 -1
- package/dist/types/src/permission/system-permission/field/permission-field/FieldPermission.vue.d.ts +1 -1
- package/dist/types/src/permission/system-permission/field/permission-user/UserPermission.vue.d.ts +1 -1
- package/dist/types/src/permission/system-permission/service/index.d.ts +3 -0
- package/dist/types/src/util/jumpDesignerPage.d.ts +0 -9
- package/dist/types/src/view/application-screen/apps-business-screen/components/Card.vue.d.ts +1 -1
- package/dist/types/src/view/application-screen/apps-business-screen/components/CardList.vue.d.ts +1 -1
- package/dist/types/src/view/application-screen/gallery/AppsGalleryWidget.d.ts +0 -2
- package/dist/types/src/view/application-screen/gallery/Gallery.vue.d.ts +1 -1
- package/dist/types/src/view/detail/DefaultDetail.vue.d.ts +9 -0
- package/dist/types/src/view/detail/DetailWidget.d.ts +1 -0
- package/dist/types/src/view/gallery/GalleryWidget.d.ts +2 -2
- package/dist/types/src/view/homepage-setting/components/MultiSelect.vue.d.ts +2 -1
- package/dist/types/src/view/homepage-setting/components/SingleSelect.vue.d.ts +2 -1
- package/dist/types/src/view/homepage-setting/field/HomepageSettingFieldWidget.d.ts +1 -1
- package/dist/types/src/view/homepage-setting/view/advanced-homepage-setting/AdvancedHomepageSetting.vue.d.ts +84 -0
- package/dist/types/src/view/iframe-view/menu/Menu.vue.d.ts +73 -1
- package/dist/types/src/view/index.d.ts +0 -2
- package/dist/types/src/view/login/BaseLoginWidget.d.ts +3 -2
- package/dist/types/src/view/login/LoginWidget.d.ts +0 -1
- package/dist/types/src/view/reset-password/FirstResetPassword.vue.d.ts +1 -1
- package/dist/types/src/view/reset-password/ForgetPassword.vue.d.ts +1 -1
- package/dist/types/src/view/search/SearchPrefer.vue.d.ts +1 -1
- package/dist/types/src/view/table/DefaultTable.vue.d.ts +28 -1
- package/dist/types/src/view/table/TableWidget.d.ts +3 -1
- package/dist/types/src/view/view/DetailView.d.ts +1 -0
- package/dist/types/src/view/workbench/Workbench.vue.d.ts +1 -1
- package/package.json +22 -22
- package/src/action/client-actions/SaveDraftActionWidget.ts +42 -27
- package/src/action/component/action/ActionWidget.ts +4 -4
- package/src/action/component/action/DefaultAction.vue +6 -1
- package/src/action/component/action-bar/ActionBarWidget.ts +13 -0
- package/src/action/component/action-bar/DefaultActionBar.vue +27 -9
- package/src/action/component/action-bar/DefaultMoreActionItem.vue +2 -2
- package/src/action/component/action-bar/style/index.scss +16 -0
- package/src/action/server-actions/ServerActionWidget.ts +2 -2
- package/src/action/url-actions/UrlActionWidget.ts +1 -1
- package/src/action/view-actions/BackActionWidget.ts +2 -3
- package/src/action/view-actions/biz-audit/RegisterDetail.ts +2 -2
- package/src/action/view-actions/biz-audit/service.ts +1 -1
- package/src/action/view-actions/popup/util.ts +1 -1
- package/src/basic/element/BaseElementListViewWidget.ts +4 -1
- package/src/basic/element/BaseElementObjectViewWidget.ts +4 -1
- package/src/basic/field/complex/select/SelectFieldWidget.ts +9 -0
- package/src/basic/form/DefaultForm.vue +17 -2
- package/src/basic/form-item/DefaultFormItem.vue +4 -4
- package/src/basic/form-item/style/index.scss +2 -2
- package/src/basic/table/BaseTableWidget.ts +8 -12
- package/src/basic/table-column/BaseTableColumnWidget.ts +86 -2
- package/src/basic/table-column/BaseTableFieldWidget.ts +1 -86
- package/src/basic/table-column/DefaultGroupCell.vue +21 -31
- package/src/basic/token/BaseFieldWidget.ts +32 -1
- package/src/basic/token/BaseView.ts +1 -0
- package/src/components/index.scss +1 -0
- package/src/components/oio-manage-group/OioManageGroup.vue +3 -2
- package/src/components/select/base/BaseSelect.vue +44 -8
- package/src/components/select/base/index.ts +1 -0
- package/src/components/select/base/useSelectId.ts +7 -0
- package/src/components/select/company-select/CompanySelect.vue +1 -0
- package/src/components/select/department-select/DepartmentModal.vue +7 -5
- package/src/components/select/department-select/DepartmentTree.vue +2 -2
- package/src/components/select/employee-select/DepartmentEmployeeSelectPanel.vue +0 -1
- package/src/components/select/modal-select/ModalSelect.vue +50 -6
- package/src/components/select/modal-select/style/index.scss +5 -0
- package/src/components/select/organizational-structure-tree/OrganizationalStructureTree.vue +31 -5
- package/src/components/select/table-select/TableSelect.vue +10 -1
- package/src/components/sortable-group/SortableGroup.vue +1 -1
- package/src/components/upload/UploadDraggable.vue +1 -1
- package/src/components/user-prefer/SimpleUserPreferSetting.vue +2 -1
- package/src/container/collapse/DefaultCollapsePanel.vue +1 -0
- package/src/container/group/DefaultGroup.vue +3 -4
- package/src/container/tabs/DefaultTabWidget.ts +2 -1
- package/src/field/detail/date/DetailWeekPickerFieldWidget.ts +13 -0
- package/src/field/detail/date/index.ts +1 -0
- package/src/field/detail/date/range/use-date-time-range-picker.ts +1 -1
- package/src/field/detail/date/use-date-time-picker.ts +1 -1
- package/src/field/detail/index.ts +1 -1
- package/src/field/detail/m2m/table/DetailM2MTableFieldWidget.ts +16 -0
- package/src/field/detail/number/DetailFloatFieldWidget.ts +12 -0
- package/src/field/detail/number/DetailIntegerFieldWidget.ts +12 -0
- package/src/field/detail/number/DetailMoneyFieldWidget.ts +12 -0
- package/src/field/detail/number/DetailNumberWidget.ts +0 -9
- package/src/field/detail/number/index.ts +4 -0
- package/src/field/detail/o2m/table/DetailO2MTableFieldWidget.ts +16 -0
- package/src/field/detail/string/color/DefaultColorPicker.vue +2 -3
- package/src/field/form/abstract/department/AbstractFormDepartmentFieldWidget.ts +11 -0
- package/src/field/form/abstract/employee/AbstractFormEmployeeFieldWidget.ts +11 -0
- package/src/field/form/abstract/radio/FormRelationFieldRadioWidget.ts +3 -1
- package/src/field/form/abstract/role/AbstractFormRoleFieldWidget.ts +11 -0
- package/src/field/form/abstract/select/DefaultMultipleSelect.vue +1 -0
- package/src/field/form/abstract/select/DefaultSingleSelect.vue +1 -0
- package/src/field/form/enum/thumbnail/FormEnumThumbnail.vue +15 -3
- package/src/field/form/integer/FormIntegerSliderFieldWidget.ts +1 -1
- package/src/field/form/m2m/upload/FormM2MUploadDraggableFieldWidget.ts +3 -3
- package/src/field/form/m2o/upload/FormM2OUploadDraggableFieldWidget.ts +3 -3
- package/src/field/form/o2m/upload/FormO2MUploadDraggableFieldWidget.ts +3 -3
- package/src/field/form/o2o/upload/FormO2OUploadDraggableFieldWidget.ts +3 -3
- package/src/field/form/string/color/DefaultColorPicker.vue +2 -3
- package/src/field/form/string/download/FormStringDownloadFieldWidget.ts +2 -2
- package/src/field/form/string/expression/model-field-select/modelFieldSelectControlWidget.ts +3 -0
- package/src/field/form/string/upload/FormStringUploadDraggableFieldWidget.ts +2 -2
- package/src/field/form/text/DomainExpGenerator/ExpRight.vue +2 -2
- package/src/field/gallery/number/GalleryFloatFieldWidget.ts +12 -0
- package/src/field/gallery/number/GalleryIntegerFieldWidget.ts +12 -0
- package/src/field/gallery/number/GalleryMoneyFieldWidget.ts +12 -0
- package/src/field/gallery/number/GalleryNumberWidget.ts +0 -9
- package/src/field/gallery/number/index.ts +3 -0
- package/src/field/prop/RelationSelectProps.ts +34 -0
- package/src/field/resource/resource-date-time-format/constant.ts +4 -4
- package/src/field/resource/resource-date-time-format/resource-date-format/FormResourceDateFormat.vue +61 -1
- package/src/field/table/date/TableWeekPickerFieldWidget.ts +13 -0
- package/src/field/table/date/TableYearFieldWidget.ts +1 -1
- package/src/field/table/date/index.ts +1 -0
- package/src/field/table/date/range/TableDateTimeRangeFieldWidget.ts +1 -1
- package/src/field/table/enum/TableEnum.vue +3 -3
- package/src/field/table/number/TableFloatFieldWidget.ts +12 -0
- package/src/field/table/number/TableIntegerFieldWidget.ts +12 -0
- package/src/field/table/number/TableNumberWidget.ts +1 -9
- package/src/field/table/number/index.ts +2 -0
- package/src/field/table-layout-column/TableLayoutColumnWidget.ts +37 -17
- package/src/file/excel/service/ExcelExportService.ts +1 -1
- package/src/file/print/service/PrintService.ts +1 -1
- package/src/icon-manage/view/search/IconSearch.vue +29 -35
- package/src/icon-manage/view/search/style/IconSearch.scss +37 -33
- package/src/main-view/DefaultMetadataMainViewWidget.ts +1 -1
- package/src/permission/permission/field/FieldPermissionWidget.ts +2 -4
- package/src/permission/permission/field/index.ts +0 -2
- package/src/permission/permission/index.ts +0 -1
- package/src/permission/system-permission/PermissionWidget.ts +12 -11
- package/src/permission/system-permission/components/Config.vue +17 -7
- package/src/permission/system-permission/components/Empty.vue +1 -1
- package/src/permission/system-permission/components/RoleDialog.vue +4 -4
- package/src/permission/system-permission/service/index.ts +77 -60
- package/src/plugins/translate.ts +6 -3
- package/src/shim-translate.d.ts +4 -1
- package/src/style/antdComponents/All.scss +0 -27
- package/src/style/root.scss +1 -1
- package/src/tags/context/runtime-context-helper.ts +6 -6
- package/src/tags/resolve/internal/widget-resolve.ts +5 -1
- package/src/util/collection-actions.ts +1 -1
- package/src/util/jumpDesignerPage.ts +11 -24
- package/src/view/application-screen/apps-business-screen/components/Card.vue +2 -2
- package/src/view/application-screen/apps-business-screen/components/RelationGraph.vue +2 -2
- package/src/view/application-screen/gallery/AppsGalleryWidget.ts +108 -133
- package/src/view/application-screen/gallery/Gallery.vue +2 -2
- package/src/view/company-setting/CompanySetting.vue +16 -14
- package/src/view/detail/DefaultDetail.vue +6 -5
- package/src/view/detail/DetailWidget.ts +12 -1
- package/src/view/gallery/GalleryWidget.ts +3 -3
- package/src/view/homepage-setting/field/HomepageSettingFieldWidget.ts +5 -5
- package/src/view/homepage-setting/hook/useHomepageSetting.ts +1 -1
- package/src/view/index.ts +0 -2
- package/src/view/login/BaseLoginWidget.ts +12 -6
- package/src/view/login/LoginWidget.ts +0 -2
- package/src/view/login/SSOLoginWidget.ts +1 -3
- package/src/view/login-page-setting/LoginPageSetting.vue +6 -7
- package/src/view/paas-install/PaaSInstall.vue +2 -2
- package/src/view/paas-manager/PaaSManager.vue +2 -2
- package/src/view/popup/PopupWidget.ts +2 -2
- package/src/view/quick-fill/Excel.vue +2 -1
- package/src/view/quick-fill/QuickFill.vue +9 -10
- package/src/view/system-style/localData.ts +8 -8
- package/src/view/table/DefaultTable.vue +81 -43
- package/src/view/table/DefaultTableFooterOperator.vue +2 -2
- package/src/view/table/TableUserPrefer.vue +1 -1
- package/src/view/table/TableWidget.ts +16 -5
- package/src/view/table/style/index.scss +6 -0
- package/src/view/unauthorized/Unauthorized.vue +1 -1
- package/src/view/view/DetailView.ts +12 -0
- package/src/view/view-control/card-col-control/DefaultCardColControl.vue +2 -2
- package/src/view/view-control/group-control/DefaultGroupControl.vue +2 -2
- package/src/view/view-control/sort-control/DefaultSortControl.vue +2 -2
- package/src/view/workbench/Workbench.vue +2 -2
- package/dist/types/src/permission/permission/action/PermissionSubmitActionWidget.d.ts +0 -7
- package/dist/types/src/permission/permission/action/index.d.ts +0 -1
- package/dist/types/src/permission/permission/field/ActionPermissionWidget.d.ts +0 -65
- package/dist/types/src/permission/permission/field/DataPermissionWidget.d.ts +0 -19
- package/dist/types/src/view/paas-install/PaaSInstall.d.ts +0 -6
- package/dist/types/src/view/paas-install/PaaSInstall.vue.d.ts +0 -22
- package/dist/types/src/view/paas-install/field/custom-table/CodeFoucsTable.vue.d.ts +0 -24
- package/dist/types/src/view/paas-install/field/custom-table/CustomTable.d.ts +0 -13
- package/dist/types/src/view/paas-install/field/index.d.ts +0 -2
- package/dist/types/src/view/paas-install/field/upload-and-select/UploadAndSelect.d.ts +0 -6
- package/dist/types/src/view/paas-install/field/upload-and-select/UploadAndSelect.vue.d.ts +0 -65
- package/dist/types/src/view/paas-install/index.d.ts +0 -2
- package/dist/types/src/view/paas-install/service.d.ts +0 -2
- package/dist/types/src/view/paas-manager/PaaSManager.d.ts +0 -6
- package/dist/types/src/view/paas-manager/PaaSManager.vue.d.ts +0 -23
- package/dist/types/src/view/paas-manager/service.d.ts +0 -2
- package/src/permission/permission/action/PermissionSubmitActionWidget.ts +0 -161
- package/src/permission/permission/action/index.ts +0 -1
- package/src/permission/permission/field/ActionPermissionWidget.ts +0 -472
- package/src/permission/permission/field/DataPermissionWidget.ts +0 -135
- package/src/view/login/view.vue +0 -7
- package/src/view/paas-install/PaaSInstall.ts +0 -23
- package/src/view/paas-install/README.md +0 -1
- package/src/view/paas-install/field/custom-table/CodeFoucsTable.vue +0 -115
- package/src/view/paas-install/field/custom-table/CustomTable.ts +0 -166
- package/src/view/paas-install/field/index.ts +0 -2
- package/src/view/paas-install/field/upload-and-select/UploadAndSelect.ts +0 -29
- package/src/view/paas-install/field/upload-and-select/UploadAndSelect.vue +0 -157
- package/src/view/paas-install/index.ts +0 -2
- package/src/view/paas-install/service.ts +0 -37
- package/src/view/paas-manager/PaaSManager.ts +0 -23
- package/src/view/paas-manager/service.ts +0 -37
|
@@ -2,12 +2,12 @@ import { type RuntimeView, ViewCache } from '@oinone/kunlun-engine';
|
|
|
2
2
|
import { ViewType } from '@oinone/kunlun-meta';
|
|
3
3
|
import { SPI } from '@oinone/kunlun-spi';
|
|
4
4
|
import { Widget } from '@oinone/kunlun-vue-widget';
|
|
5
|
-
import { FormWidget } from '../../form';
|
|
6
5
|
import { FormFieldWidget } from '../../../basic/field';
|
|
7
6
|
import { createRuntimeContextForWidget } from '../../../tags';
|
|
8
|
-
import {
|
|
7
|
+
import { FormWidget } from '../../form';
|
|
9
8
|
import { BindingTypeEnum, type HomepageConfigRule } from '../typing';
|
|
10
9
|
import type { WidgetConstructor } from './AbstractHomepageSettingFieldWidget';
|
|
10
|
+
import { AbstractHomepageSettingFieldWidget } from './AbstractHomepageSettingFieldWidget';
|
|
11
11
|
|
|
12
12
|
const HomepageSettingField_MODEL = 'base.HomePageConfigRules';
|
|
13
13
|
|
|
@@ -15,7 +15,7 @@ const HomepageSettingField_MODEL = 'base.HomePageConfigRules';
|
|
|
15
15
|
export class HomepageSettingFieldWidget extends AbstractHomepageSettingFieldWidget<HomepageConfigRule[]> {
|
|
16
16
|
protected loadNodeWidgets() {
|
|
17
17
|
this.isReady = false;
|
|
18
|
-
this.createNodeWidgets().
|
|
18
|
+
this.createNodeWidgets().finally(() => {
|
|
19
19
|
this.isReady = true;
|
|
20
20
|
});
|
|
21
21
|
}
|
|
@@ -39,7 +39,7 @@ export class HomepageSettingFieldWidget extends AbstractHomepageSettingFieldWidg
|
|
|
39
39
|
console.error(`Invalid view UiDesignerTreeNodeMetadataForm`);
|
|
40
40
|
return [];
|
|
41
41
|
}
|
|
42
|
-
|
|
42
|
+
const widget: { new (): FormWidget } = FormWidget;
|
|
43
43
|
const runtimeContext = createRuntimeContextForWidget(view);
|
|
44
44
|
const data = this.initData(initData);
|
|
45
45
|
this.useHomepageSetting.setUnCommittedRule(data);
|
|
@@ -63,7 +63,7 @@ export class HomepageSettingFieldWidget extends AbstractHomepageSettingFieldWidg
|
|
|
63
63
|
this.activeRecords![0][this.itemName] = this.runtimeHomepageConfigRules;
|
|
64
64
|
const nodes = this.runtimeHomepageConfigRules!;
|
|
65
65
|
const length = nodes.length;
|
|
66
|
-
|
|
66
|
+
const widget: WidgetConstructor = FormWidget;
|
|
67
67
|
for (let i = 0; i < length; i++) {
|
|
68
68
|
const runtimeContext = createRuntimeContextForWidget(view);
|
|
69
69
|
const data = this.initData(nodes[i]);
|
|
@@ -90,7 +90,7 @@ export function useHomepageSetting() {
|
|
|
90
90
|
allModuleRules.push(rule);
|
|
91
91
|
}
|
|
92
92
|
} else {
|
|
93
|
-
console.warn('
|
|
93
|
+
console.warn('Failed to save the rule that does not exist in the module.');
|
|
94
94
|
}
|
|
95
95
|
});
|
|
96
96
|
homepageSettingMap.set(ALL, allModuleRules);
|
package/src/view/index.ts
CHANGED
|
@@ -9,8 +9,6 @@ export * from './homepage';
|
|
|
9
9
|
export * from './homepage-setting';
|
|
10
10
|
export * from './login';
|
|
11
11
|
export * from './reset-password';
|
|
12
|
-
export * from './paas-manager/PaaSManager';
|
|
13
|
-
export * from './paas-install';
|
|
14
12
|
export * from './iframe-view';
|
|
15
13
|
export * from './view';
|
|
16
14
|
export * from './workbench';
|
|
@@ -26,6 +26,8 @@ import { Widget } from '@oinone/kunlun-vue-widget';
|
|
|
26
26
|
import { BaseI18nRouterWidget } from '../../basic';
|
|
27
27
|
|
|
28
28
|
export class BaseLoginWidget extends BaseI18nRouterWidget {
|
|
29
|
+
protected moduleName = SYSTEM_MODULE_NAME.USER;
|
|
30
|
+
|
|
29
31
|
protected matched: Matched | undefined;
|
|
30
32
|
|
|
31
33
|
protected router!: Router;
|
|
@@ -161,8 +163,8 @@ export class BaseLoginWidget extends BaseI18nRouterWidget {
|
|
|
161
163
|
@Widget.Reactive()
|
|
162
164
|
protected currentLanguage: RuntimeLanguage = {} as RuntimeLanguage;
|
|
163
165
|
|
|
164
|
-
protected async getCurrentLanguage() {
|
|
165
|
-
return localStorage.getItem(LOGIN_LANGUAGE_STORAGE_KEY)
|
|
166
|
+
protected async getCurrentLanguage(): Promise<string | null> {
|
|
167
|
+
return localStorage.getItem(LOGIN_LANGUAGE_STORAGE_KEY);
|
|
166
168
|
}
|
|
167
169
|
|
|
168
170
|
protected async getCurrentLanguageIsoCode() {
|
|
@@ -184,7 +186,7 @@ export class BaseLoginWidget extends BaseI18nRouterWidget {
|
|
|
184
186
|
}
|
|
185
187
|
}
|
|
186
188
|
|
|
187
|
-
protected async queryLanguageSetting(langCode) {
|
|
189
|
+
protected async queryLanguageSetting(langCode: string | null): Promise<MajorConfig> {
|
|
188
190
|
const mutation = `
|
|
189
191
|
{
|
|
190
192
|
appConfigQuery {
|
|
@@ -198,7 +200,7 @@ export class BaseLoginWidget extends BaseI18nRouterWidget {
|
|
|
198
200
|
lang: langCode,
|
|
199
201
|
translationOnlyGlobal: true
|
|
200
202
|
});
|
|
201
|
-
return result.data.appConfigQuery.queryListByWrapper;
|
|
203
|
+
return result.data.appConfigQuery.queryListByWrapper?.[0] as MajorConfig;
|
|
202
204
|
}
|
|
203
205
|
|
|
204
206
|
protected async initLanguages(): Promise<void> {
|
|
@@ -270,8 +272,12 @@ export class BaseLoginWidget extends BaseI18nRouterWidget {
|
|
|
270
272
|
this.isoStorageKey = LOGIN_LANGUAGE_ISO_STORAGE_KEY;
|
|
271
273
|
this.initLanguages().then(async () => {
|
|
272
274
|
const language = await this.getCurrentLanguage();
|
|
273
|
-
await this.queryLanguageSetting(language);
|
|
274
|
-
|
|
275
|
+
const currentLanguage = (await this.queryLanguageSetting(language))?.extend?.currentLanguage as string;
|
|
276
|
+
if (currentLanguage) {
|
|
277
|
+
this.initCurrentLanguage(currentLanguage);
|
|
278
|
+
} else {
|
|
279
|
+
this.initCurrentLanguage(CurrentLanguage.DEFAULT_LANGUAGE);
|
|
280
|
+
}
|
|
275
281
|
super.beforeMount();
|
|
276
282
|
});
|
|
277
283
|
}
|
|
@@ -24,8 +24,6 @@ import LoginComponent from './Login.vue';
|
|
|
24
24
|
})
|
|
25
25
|
)
|
|
26
26
|
export class LoginWidget extends BaseLoginWidget {
|
|
27
|
-
protected moduleName = SYSTEM_MODULE_NAME.USER;
|
|
28
|
-
|
|
29
27
|
@Widget.Method()
|
|
30
28
|
protected handleRegister() {
|
|
31
29
|
console.error('you should to overwrite function `handleRegister` in LoginPageWidget if you want register working');
|
|
@@ -182,43 +182,42 @@ const { isFullScreen, trigger } = useFullscreen(loginPageRef);
|
|
|
182
182
|
|
|
183
183
|
const layoutConfigs = [
|
|
184
184
|
{
|
|
185
|
-
url: genStaticPath('
|
|
185
|
+
url: genStaticPath('right-login.png'),
|
|
186
186
|
name: OioLoginThemeName.STAND_RIGHT,
|
|
187
187
|
tips: translateValueByKey(
|
|
188
188
|
'请上传jpg、png格式的图片或mp4、mov、avi格式视频。尺寸建议为1200*1080px,文件大小不超过50MB'
|
|
189
189
|
)
|
|
190
190
|
},
|
|
191
191
|
{
|
|
192
|
-
url: genStaticPath('
|
|
192
|
+
url: genStaticPath('left-login.png'),
|
|
193
193
|
name: OioLoginThemeName.STAND_LEFT,
|
|
194
194
|
tips: translateValueByKey(
|
|
195
195
|
'请上传jpg、png格式的图片或mp4、mov、avi格式视频。尺寸建议为1200*1080px,文件大小不超过50MB'
|
|
196
196
|
)
|
|
197
197
|
},
|
|
198
198
|
{
|
|
199
|
-
url: genStaticPath('
|
|
199
|
+
url: genStaticPath('bg-left-login.png'),
|
|
200
200
|
name: OioLoginThemeName.LEFT_STICK,
|
|
201
201
|
tips: translateValueByKey(
|
|
202
202
|
'请上传jpg、png格式的图片或mp4、mov、avi格式视频。尺寸建议为1200*1080px,文件大小不超过50MB'
|
|
203
203
|
)
|
|
204
204
|
},
|
|
205
205
|
{
|
|
206
|
-
url: genStaticPath('
|
|
206
|
+
url: genStaticPath('bg-center-login.png'),
|
|
207
207
|
name: OioLoginThemeName.CENTER_STICK,
|
|
208
208
|
tips: translateValueByKey(
|
|
209
209
|
'请上传jpg、png格式的图片或mp4、mov、avi格式视频。尺寸建议为1920*1080px,文件大小不超过50MB'
|
|
210
210
|
)
|
|
211
211
|
},
|
|
212
212
|
{
|
|
213
|
-
url: genStaticPath('
|
|
213
|
+
url: genStaticPath('bg-right-login.png'),
|
|
214
214
|
name: OioLoginThemeName.RIGHT_STICK,
|
|
215
215
|
tips: translateValueByKey(
|
|
216
216
|
'请上传jpg、png格式的图片或mp4、mov、avi格式视频。尺寸建议为1920*1080px,文件大小不超过50MB'
|
|
217
217
|
)
|
|
218
218
|
},
|
|
219
|
-
|
|
220
219
|
{
|
|
221
|
-
url: genStaticPath('logo
|
|
220
|
+
url: genStaticPath('logo-top.png'),
|
|
222
221
|
name: OioLoginThemeName.CENTER_STICK_LOGO,
|
|
223
222
|
tips: translateValueByKey(
|
|
224
223
|
'请上传jpg、png格式的图片或mp4、mov、avi格式视频。尺寸建议为1920*1080px,文件大小不超过50MB'
|
|
@@ -113,7 +113,7 @@ export default defineComponent({
|
|
|
113
113
|
const action = getActionByModel(model, actionName);
|
|
114
114
|
|
|
115
115
|
if (!action) {
|
|
116
|
-
console.error('action
|
|
116
|
+
console.error('action match exception');
|
|
117
117
|
return;
|
|
118
118
|
}
|
|
119
119
|
|
|
@@ -135,7 +135,7 @@ export default defineComponent({
|
|
|
135
135
|
await executeServerAction(action, item);
|
|
136
136
|
loadData();
|
|
137
137
|
} else {
|
|
138
|
-
console.error('
|
|
138
|
+
console.error('Jump Exception');
|
|
139
139
|
}
|
|
140
140
|
};
|
|
141
141
|
|
|
@@ -127,7 +127,7 @@ export default defineComponent({
|
|
|
127
127
|
const action = getActionByModel(model, actionName);
|
|
128
128
|
|
|
129
129
|
if (!action) {
|
|
130
|
-
console.error('action
|
|
130
|
+
console.error('action match exception');
|
|
131
131
|
return;
|
|
132
132
|
}
|
|
133
133
|
|
|
@@ -148,7 +148,7 @@ export default defineComponent({
|
|
|
148
148
|
await executeServerAction(action, item);
|
|
149
149
|
loadData();
|
|
150
150
|
} else {
|
|
151
|
-
console.error('
|
|
151
|
+
console.error('Jump Exception');
|
|
152
152
|
}
|
|
153
153
|
};
|
|
154
154
|
|
|
@@ -286,7 +286,7 @@ export abstract class PopupWidget<Props extends PopupWidgetProps = PopupWidgetPr
|
|
|
286
286
|
if (this.submitCallChaining) {
|
|
287
287
|
result = (await this.submitCallChaining.syncCall())?.records || [];
|
|
288
288
|
}
|
|
289
|
-
let finalShowRecords: ActiveRecord[] = this.activeRecords || [];
|
|
289
|
+
let finalShowRecords: ActiveRecord[] = deepClone(this.activeRecords) || [];
|
|
290
290
|
const viewAction = this.action;
|
|
291
291
|
if (viewAction) {
|
|
292
292
|
const { model, resModel } = viewAction;
|
|
@@ -301,7 +301,7 @@ export abstract class PopupWidget<Props extends PopupWidgetProps = PopupWidgetPr
|
|
|
301
301
|
break;
|
|
302
302
|
}
|
|
303
303
|
case PopupSubmitType.all: {
|
|
304
|
-
const result: ActiveRecord[] = this.dataSource || [];
|
|
304
|
+
const result: ActiveRecord[] = deepClone(this.dataSource) || [];
|
|
305
305
|
finalParameters = {
|
|
306
306
|
showRecords: result,
|
|
307
307
|
submitRecords: result
|
|
@@ -86,6 +86,7 @@
|
|
|
86
86
|
</template>
|
|
87
87
|
|
|
88
88
|
<script setup lang="ts">
|
|
89
|
+
import { translateValueByKey } from '@oinone/kunlun-engine';
|
|
89
90
|
import { OioSpin } from '@oinone/kunlun-vue-ui-antd';
|
|
90
91
|
import { Select as ASelect } from 'ant-design-vue';
|
|
91
92
|
import { computed, defineExpose, defineProps, nextTick, onMounted, onUnmounted, ref, watch } from 'vue';
|
|
@@ -151,7 +152,7 @@ const tableHeaderValues = ref<TableFieldOption[]>([]);
|
|
|
151
152
|
const selectOptions = computed(() => {
|
|
152
153
|
return [
|
|
153
154
|
{
|
|
154
|
-
label: '不粘贴',
|
|
155
|
+
label: translateValueByKey('不粘贴'),
|
|
155
156
|
key: NON_CUT,
|
|
156
157
|
value: NON_CUT,
|
|
157
158
|
readonly: true,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div class="default-table-footer-operator-quick-fill" @click="onToggleModal(true)">
|
|
3
3
|
<oio-icon size="14" icon="oinone-file-text-outlined" color="var(--oio-primary-color)"></oio-icon>
|
|
4
|
-
{{ $translate('快速填报
|
|
4
|
+
{{ $translate('快速填报') }}
|
|
5
5
|
</div>
|
|
6
6
|
|
|
7
7
|
<oio-modal
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
<div class="quick-fill-modal-content-desc" v-if="step === 0">
|
|
22
22
|
<template v-if="type === 'create'">
|
|
23
23
|
<div class="quick-fill-modal-content-desc-item">
|
|
24
|
-
{{ $translate('支持将Excel内容粘贴至本表格,粘贴后内容将自动追加至表格末尾') }}
|
|
24
|
+
{{ $translate('支持将 Excel 内容粘贴至本表格,粘贴后内容将自动追加至表格末尾') }}
|
|
25
25
|
</div>
|
|
26
26
|
<div class="quick-fill-modal-content-desc-item">{{ $translate('系统已自动隐藏不支持粘贴的字段列') }}</div>
|
|
27
27
|
<div class="quick-fill-modal-content-desc-item">
|
|
@@ -54,12 +54,12 @@
|
|
|
54
54
|
|
|
55
55
|
<template #footer>
|
|
56
56
|
<div v-if="step === 0">
|
|
57
|
-
<oio-button @click="onToggleModal(false)"
|
|
58
|
-
<oio-button type="primary" @click="onHandlerSure"
|
|
57
|
+
<oio-button @click="onToggleModal(false)">{{ $translate('取消') }}</oio-button>
|
|
58
|
+
<oio-button type="primary" @click="onHandlerSure">{{ $translate('确定') }}</oio-button>
|
|
59
59
|
</div>
|
|
60
60
|
<div v-else>
|
|
61
|
-
<oio-button @click="onStepChange(0)"
|
|
62
|
-
<oio-button type="primary" @click="onSubmit"
|
|
61
|
+
<oio-button @click="onStepChange(0)">{{ $translate('上一步') }}</oio-button>
|
|
62
|
+
<oio-button type="primary" @click="onSubmit">{{ $translate('继续填报') }}</oio-button>
|
|
63
63
|
</div>
|
|
64
64
|
</template>
|
|
65
65
|
</oio-modal>
|
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
import { type ActiveRecord, type RuntimeModelField, translateValueByKey } from '@oinone/kunlun-engine';
|
|
70
70
|
import { OioButton, OioIcon, OioModal } from '@oinone/kunlun-vue-ui-antd';
|
|
71
71
|
import { ModalWidth, OioCloseIcon } from '@oinone/kunlun-vue-ui-common';
|
|
72
|
-
import {
|
|
72
|
+
import { Radio as ARadio, RadioGroup as ARadioGroup, Modal } from 'ant-design-vue';
|
|
73
73
|
import { computed, createVNode, defineComponent, type PropType, ref, watch } from 'vue';
|
|
74
74
|
import Excel from './Excel.vue';
|
|
75
75
|
import { QuickFillType, type TableFieldOption } from './type';
|
|
@@ -171,7 +171,7 @@ export default defineComponent({
|
|
|
171
171
|
class: 'oio-modal oio-quick-fill-witch-mode-modal',
|
|
172
172
|
icon: createVNode(OioIcon, { icon: 'oinone-tixing1', size: '18' }),
|
|
173
173
|
closeIcon: createVNode(OioCloseIcon),
|
|
174
|
-
title: translateValueByKey(
|
|
174
|
+
title: translateValueByKey('确认关闭?'),
|
|
175
175
|
closable: true,
|
|
176
176
|
content: translateValueByKey('本页数据将丢失,请确认后再继续'),
|
|
177
177
|
okText: translateValueByKey('确定'),
|
|
@@ -192,7 +192,7 @@ export default defineComponent({
|
|
|
192
192
|
|
|
193
193
|
const onChangeRadio = (val) => {
|
|
194
194
|
const nextType = val.target.value;
|
|
195
|
-
const str = `确认要切换为${nextType === QuickFillType.update ? '编辑已有' : '新增'}
|
|
195
|
+
const str = `确认要切换为${nextType === QuickFillType.update ? '编辑已有' : '新增'}数据吗?`;
|
|
196
196
|
if (excelRef.value.getCellStatus()) {
|
|
197
197
|
const _modal = Modal.confirm({
|
|
198
198
|
class: 'oio-modal oio-quick-fill-witch-mode-modal',
|
|
@@ -202,7 +202,6 @@ export default defineComponent({
|
|
|
202
202
|
closable: true,
|
|
203
203
|
content: translateValueByKey('切换后,本页数据将丢失,请确认后再继续'),
|
|
204
204
|
okText: translateValueByKey('确定'),
|
|
205
|
-
|
|
206
205
|
cancelText: translateValueByKey('取消'),
|
|
207
206
|
onOk: () => {
|
|
208
207
|
type.value = nextType;
|
|
@@ -15,8 +15,8 @@ enum ThemeType {
|
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
export const hostImage = () => genStaticPath('computer-samples.png?x-oss-process=image/resize,m_lfit,h_800');
|
|
18
|
-
export const lightMode = () => genStaticPath('light-mode
|
|
19
|
-
export const darkMode = () => genStaticPath('dark-mode
|
|
18
|
+
export const lightMode = () => genStaticPath('light-mode.png?x-oss-process=image/resize,m_lfit,h_800');
|
|
19
|
+
export const darkMode = () => genStaticPath('dark-mode.png?x-oss-process=image/resize,m_lfit,h_800');
|
|
20
20
|
|
|
21
21
|
interface ReturnValue<T> {
|
|
22
22
|
style: T;
|
|
@@ -93,20 +93,20 @@ class SystemThemeConfig {
|
|
|
93
93
|
public get previewImages() {
|
|
94
94
|
return {
|
|
95
95
|
// 深色 - 大
|
|
96
|
-
[DefaultThemeName.DARK_LARGE]: genStaticPath('
|
|
96
|
+
[DefaultThemeName.DARK_LARGE]: genStaticPath('table-pagelarge-black.png'),
|
|
97
97
|
// 深色 - 中
|
|
98
|
-
[DefaultThemeName.DARK_MEDIUM]: genStaticPath('
|
|
98
|
+
[DefaultThemeName.DARK_MEDIUM]: genStaticPath('table-pagemiddle-black.png'),
|
|
99
99
|
// 深色 - 小
|
|
100
|
-
[DefaultThemeName.DARK_SMALL]: genStaticPath('
|
|
100
|
+
[DefaultThemeName.DARK_SMALL]: genStaticPath('table-pagesmall-black.png'),
|
|
101
101
|
|
|
102
102
|
// 浅色 - 大
|
|
103
|
-
[DefaultThemeName.DEFAULT_LARGE]: genStaticPath('
|
|
103
|
+
[DefaultThemeName.DEFAULT_LARGE]: genStaticPath('table-pagelarge.png'),
|
|
104
104
|
|
|
105
105
|
// 浅色 - 中
|
|
106
|
-
[DefaultThemeName.DEFAULT_MEDIUM]: genStaticPath('
|
|
106
|
+
[DefaultThemeName.DEFAULT_MEDIUM]: genStaticPath('table-pagemiddle.png'),
|
|
107
107
|
|
|
108
108
|
// 浅色 - 小
|
|
109
|
-
[DefaultThemeName.DEFAULT_SMALL]: genStaticPath('
|
|
109
|
+
[DefaultThemeName.DEFAULT_SMALL]: genStaticPath('table-pagesmall.png')
|
|
110
110
|
};
|
|
111
111
|
}
|
|
112
112
|
|
|
@@ -7,6 +7,7 @@ import { DEFAULT_PREFIX } from '@oinone/kunlun-theme';
|
|
|
7
7
|
import {
|
|
8
8
|
type ActiveEditorContext,
|
|
9
9
|
type CheckedChangeEvent,
|
|
10
|
+
GROUP_TREE_KEY,
|
|
10
11
|
OioColumn,
|
|
11
12
|
OioTable,
|
|
12
13
|
type OioTableInstance,
|
|
@@ -33,9 +34,7 @@ import {
|
|
|
33
34
|
OioSpin,
|
|
34
35
|
OioTooltip,
|
|
35
36
|
PropRecordHelper,
|
|
36
|
-
StyleHelper
|
|
37
|
-
useInjectOioDefaultFormContext,
|
|
38
|
-
useProviderOioDefaultFormContext
|
|
37
|
+
StyleHelper
|
|
39
38
|
} from '@oinone/kunlun-vue-ui-antd';
|
|
40
39
|
import { DslRender } from '@oinone/kunlun-vue-widget';
|
|
41
40
|
import { debounce } from 'lodash-es';
|
|
@@ -354,6 +353,9 @@ export default defineComponent({
|
|
|
354
353
|
treeConfig: {
|
|
355
354
|
type: Object as PropType<VxeTablePropTypes.TreeConfig>
|
|
356
355
|
},
|
|
356
|
+
onToggleTreeExpand: {
|
|
357
|
+
type: Function
|
|
358
|
+
},
|
|
357
359
|
autoLineHeight: {
|
|
358
360
|
type: Boolean,
|
|
359
361
|
default: false
|
|
@@ -402,6 +404,10 @@ export default defineComponent({
|
|
|
402
404
|
type: Function,
|
|
403
405
|
required: true
|
|
404
406
|
},
|
|
407
|
+
enableGrouping: {
|
|
408
|
+
type: Boolean,
|
|
409
|
+
default: false
|
|
410
|
+
},
|
|
405
411
|
enabledGroupView: {
|
|
406
412
|
type: Boolean,
|
|
407
413
|
default: false
|
|
@@ -427,14 +433,18 @@ export default defineComponent({
|
|
|
427
433
|
},
|
|
428
434
|
onKeydown: {
|
|
429
435
|
type: Function
|
|
436
|
+
},
|
|
437
|
+
currentLineHeight: {
|
|
438
|
+
type: Number
|
|
439
|
+
},
|
|
440
|
+
onLineHeightChange: {
|
|
441
|
+
type: Function
|
|
430
442
|
}
|
|
431
443
|
},
|
|
432
444
|
setup(props) {
|
|
433
445
|
const defaultTableRef = ref<HTMLElement>(null as any);
|
|
434
446
|
const table = ref<OioTableInstance | undefined>();
|
|
435
447
|
|
|
436
|
-
const formContext = useInjectOioDefaultFormContext();
|
|
437
|
-
|
|
438
448
|
const tableContentElement = computed(
|
|
439
449
|
() => defaultTableRef.value && defaultTableRef.value.querySelector('.oio-table-content-wrapper')!
|
|
440
450
|
);
|
|
@@ -536,7 +546,19 @@ export default defineComponent({
|
|
|
536
546
|
return StyleHelper.parse(props.template?.style);
|
|
537
547
|
});
|
|
538
548
|
|
|
539
|
-
const calcHeight = ref('');
|
|
549
|
+
const $$calcHeight = ref('');
|
|
550
|
+
const calcHeight = computed<string, number>({
|
|
551
|
+
get() {
|
|
552
|
+
if (props.currentLineHeight === undefined) {
|
|
553
|
+
return $$calcHeight.value;
|
|
554
|
+
}
|
|
555
|
+
return `${props.currentLineHeight}px`;
|
|
556
|
+
},
|
|
557
|
+
set(val) {
|
|
558
|
+
$$calcHeight.value = `${val}px`;
|
|
559
|
+
props.onLineHeightChange?.(val);
|
|
560
|
+
}
|
|
561
|
+
});
|
|
540
562
|
|
|
541
563
|
const tableLineHeight = computed(() => {
|
|
542
564
|
if (typeof props.lineHeight === 'number') {
|
|
@@ -554,14 +576,30 @@ export default defineComponent({
|
|
|
554
576
|
return 'var(--oio-table-thead-height)';
|
|
555
577
|
});
|
|
556
578
|
|
|
557
|
-
const calcHeaderHeight = ref('');
|
|
558
|
-
const tableHeaderHeight = computed(() => {
|
|
559
|
-
|
|
560
|
-
|
|
579
|
+
// const calcHeaderHeight = ref('');
|
|
580
|
+
// const tableHeaderHeight = computed(() => {
|
|
581
|
+
// if (calcHeaderHeight.value) {
|
|
582
|
+
// return calcHeaderHeight.value;
|
|
583
|
+
// }
|
|
584
|
+
//
|
|
585
|
+
// return 'var(--oio-table-thead-height)';
|
|
586
|
+
// });
|
|
587
|
+
|
|
588
|
+
const onToggleTreeExpand = (...args) => {
|
|
589
|
+
if (props.onToggleTreeExpand) {
|
|
590
|
+
const res = props.onToggleTreeExpand(...args);
|
|
591
|
+
if (res) {
|
|
592
|
+
nextTick(() => {
|
|
593
|
+
calcTableColumnHeight();
|
|
594
|
+
});
|
|
595
|
+
}
|
|
596
|
+
return res;
|
|
561
597
|
}
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
598
|
+
nextTick(() => {
|
|
599
|
+
calcTableColumnHeight();
|
|
600
|
+
});
|
|
601
|
+
return true;
|
|
602
|
+
};
|
|
565
603
|
|
|
566
604
|
const onToggleRowExpand = (...args) => {
|
|
567
605
|
props.onToggleRowExpand?.(...args);
|
|
@@ -586,28 +624,29 @@ export default defineComponent({
|
|
|
586
624
|
|
|
587
625
|
if (defaultHeight > 0 && operationHeight > 0) {
|
|
588
626
|
if (operationHeight >= defaultHeight) {
|
|
589
|
-
calcHeight.value =
|
|
627
|
+
calcHeight.value = operationHeight;
|
|
590
628
|
} else if (defaultHeight) {
|
|
591
|
-
calcHeight.value =
|
|
629
|
+
calcHeight.value = defaultHeight;
|
|
592
630
|
}
|
|
593
631
|
}
|
|
594
632
|
}
|
|
595
633
|
|
|
596
|
-
|
|
597
|
-
const
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
}
|
|
634
|
+
// fixme @zbh 20260228 此处在处理多级表头高度时,无法判断单行高度和整体高度,暂时移除
|
|
635
|
+
// const headerTable = tableEle.querySelector('.vxe-table--main-wrapper > .vxe-table--header-wrapper');
|
|
636
|
+
// const fixedRightColumn = tableEle.querySelector(
|
|
637
|
+
// '.vxe-table--fixed-wrapper > .vxe-table--fixed-right-wrapper .vxe-header--column'
|
|
638
|
+
// );
|
|
639
|
+
// if (headerTable && fixedRightColumn) {
|
|
640
|
+
// const headerTableHeight = headerTable?.getBoundingClientRect().height;
|
|
641
|
+
// const fixedRightColumnHeight = fixedRightColumn?.getBoundingClientRect().height;
|
|
642
|
+
// if (headerTableHeight > 0 && fixedRightColumnHeight > 0) {
|
|
643
|
+
// if (headerTableHeight >= fixedRightColumnHeight) {
|
|
644
|
+
// calcHeaderHeight.value = `${headerTableHeight}px`;
|
|
645
|
+
// } else if (fixedRightColumnHeight) {
|
|
646
|
+
// calcHeaderHeight.value = `${fixedRightColumnHeight}px`;
|
|
647
|
+
// }
|
|
648
|
+
// }
|
|
649
|
+
// }
|
|
611
650
|
|
|
612
651
|
if (!props.autoLineHeight) {
|
|
613
652
|
return;
|
|
@@ -760,19 +799,12 @@ export default defineComponent({
|
|
|
760
799
|
{ immediate: true }
|
|
761
800
|
);
|
|
762
801
|
|
|
763
|
-
useProviderOioDefaultFormContext({
|
|
764
|
-
...formContext,
|
|
765
|
-
getTriggerContainer: (triggerNode) => {
|
|
766
|
-
return document.body;
|
|
767
|
-
}
|
|
768
|
-
});
|
|
769
|
-
|
|
770
802
|
return {
|
|
771
803
|
defaultTableRef,
|
|
772
804
|
table,
|
|
773
805
|
style,
|
|
774
806
|
tableLineHeight,
|
|
775
|
-
tableHeaderHeight,
|
|
807
|
+
// tableHeaderHeight,
|
|
776
808
|
|
|
777
809
|
pagination,
|
|
778
810
|
editorMode,
|
|
@@ -787,6 +819,7 @@ export default defineComponent({
|
|
|
787
819
|
onCheckedChange,
|
|
788
820
|
onCheckedAllChange,
|
|
789
821
|
onRadioChange,
|
|
822
|
+
onToggleTreeExpand,
|
|
790
823
|
onToggleRowExpand
|
|
791
824
|
};
|
|
792
825
|
},
|
|
@@ -859,6 +892,7 @@ export default defineComponent({
|
|
|
859
892
|
groupViewFooterFoldControl,
|
|
860
893
|
|
|
861
894
|
treeConfig,
|
|
895
|
+
onToggleTreeExpand,
|
|
862
896
|
scrollX,
|
|
863
897
|
scrollY,
|
|
864
898
|
|
|
@@ -1078,7 +1112,6 @@ export default defineComponent({
|
|
|
1078
1112
|
beforeEditMethod: activeEditorBefore,
|
|
1079
1113
|
showIcon: editorShowIcon
|
|
1080
1114
|
},
|
|
1081
|
-
treeConfig,
|
|
1082
1115
|
emptyText,
|
|
1083
1116
|
emptyImage,
|
|
1084
1117
|
showFooter,
|
|
@@ -1093,6 +1126,12 @@ export default defineComponent({
|
|
|
1093
1126
|
onResizableChange,
|
|
1094
1127
|
customConfig: { usingSimpleUserPrefer }
|
|
1095
1128
|
};
|
|
1129
|
+
if (treeConfig) {
|
|
1130
|
+
tableProps.treeConfig = {
|
|
1131
|
+
...treeConfig,
|
|
1132
|
+
toggleMethod: onToggleTreeExpand
|
|
1133
|
+
};
|
|
1134
|
+
}
|
|
1096
1135
|
if (selectMode) {
|
|
1097
1136
|
const selectTrigger = allowRowClick ? TableSelectTrigger.cell : TableSelectTrigger.row;
|
|
1098
1137
|
switch (selectMode) {
|
|
@@ -1146,6 +1185,9 @@ export default defineComponent({
|
|
|
1146
1185
|
if (!this.inline) {
|
|
1147
1186
|
classs.push('default-main-table');
|
|
1148
1187
|
}
|
|
1188
|
+
if (this.treeConfig?.children === GROUP_TREE_KEY.CHILDREN_KEY && !this.enabledGroupView) {
|
|
1189
|
+
classs.push('default-table-group-hidden-expand');
|
|
1190
|
+
}
|
|
1149
1191
|
|
|
1150
1192
|
return createVNode(
|
|
1151
1193
|
createVNode(
|
|
@@ -1171,10 +1213,6 @@ export default defineComponent({
|
|
|
1171
1213
|
.vxe-table--render-default.vxe-editable.size--mini .vxe-body--column {
|
|
1172
1214
|
height: v-bind(tableLineHeight);
|
|
1173
1215
|
}
|
|
1174
|
-
|
|
1175
|
-
> .vxe-table--render-default.size--mini .vxe-header--column.col--ellipsis {
|
|
1176
|
-
height: v-bind(tableHeaderHeight);
|
|
1177
|
-
}
|
|
1178
1216
|
}
|
|
1179
1217
|
|
|
1180
1218
|
&.default-table-line-height-auto {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
<div class="default-table-footer-operator">
|
|
3
3
|
<div class="default-table-footer-operator-add-one" v-if="showAddBtn" @click.stop="onAddRow">
|
|
4
4
|
<oio-icon size="14" icon="oinone-plus-outlined" color="var(--oio-primary-color)"></oio-icon>
|
|
5
|
-
{{ $translate('添加一行
|
|
5
|
+
{{ $translate('添加一行') }}
|
|
6
6
|
</div>
|
|
7
7
|
|
|
8
8
|
<!-- 快速填报 -->
|
|
@@ -11,8 +11,8 @@
|
|
|
11
11
|
</template>
|
|
12
12
|
|
|
13
13
|
<script lang="ts">
|
|
14
|
-
import { defineComponent } from 'vue';
|
|
15
14
|
import { OioIcon } from '@oinone/kunlun-vue-ui-antd';
|
|
15
|
+
import { defineComponent } from 'vue';
|
|
16
16
|
import Element from '../../tags/Element.vue';
|
|
17
17
|
|
|
18
18
|
export default defineComponent({
|