@ibiz-template/vue3-components 0.7.41-alpha.97 → 0.7.41-alpha.99
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/ibiz-markdown-editor-BxT3t2N6.js +1 -0
- package/dist/index-DY8xatG5.js +339 -0
- package/dist/{index.es-Bx7ry_G4.js → index.es-BxDgOess.js} +1 -1
- package/dist/index.min.css +1 -1
- package/dist/index.system.min.js +1 -1
- package/dist/map-chart-DbBbP4qh.js +1 -0
- package/dist/map-chart-user-CfTAGaU5.js +1 -0
- package/dist/wang-editor-Ct_jRlrK.js +1 -0
- package/dist/{xlsx-util-DXx8himL.js → xlsx-util-Bi2h7Kj8.js} +2 -2
- package/es/common/high-light-code/high-light-code-util.mjs +0 -1
- package/es/common/map-chart/map-chart.css +1 -1
- package/es/common/map-chart/map-chart.mjs +9 -2
- package/es/common/map-chart-user/map-chart-user.css +1 -1
- package/es/common/map-chart-user/map-chart-user.mjs +13 -5
- package/es/common/pagination/pagination.css +1 -1
- package/es/common/pagination/pagination.mjs +42 -2
- package/es/common/rawitem/rawitem.css +1 -1
- package/es/common/rawitem/rawitem.mjs +2 -0
- package/es/common/sort-bar/sort-bar.css +1 -1
- package/es/common/sort-bar/sort-bar.mjs +9 -1
- package/es/control/app-menu/app-menu.css +1 -1
- package/es/control/app-menu/app-menu.mjs +42 -20
- package/es/control/calendar/calendar-util.mjs +1 -1
- package/es/control/calendar/calendar.css +1 -1
- package/es/control/calendar/calendar.mjs +86 -51
- package/es/control/calendar/components/calendar-daily/calendar-daily.css +1 -1
- package/es/control/calendar/components/calendar-daily/calendar-daily.mjs +13 -8
- package/es/control/calendar/components/calendar-user/calendar-user.css +1 -1
- package/es/control/calendar/components/calendar-user/calendar-user.mjs +16 -8
- package/es/control/calendar/components/calendar-user2/calendar-user2.css +1 -0
- package/es/control/calendar/components/calendar-user2/calendar-user2.mjs +214 -0
- package/es/control/calendar/components/calendar-user2/index.mjs +9 -0
- package/es/control/calendar/components/calendar-week/calendar-week.css +1 -1
- package/es/control/calendar/components/calendar-week/calendar-week.mjs +10 -5
- package/es/control/calendar/components/custom-calendar/custom-calendar.css +1 -1
- package/es/control/calendar/components/custom-calendar/custom-calendar.mjs +26 -16
- package/es/control/calendar/components/custom-calendar/use-custom-calendar.mjs +2 -2
- package/es/control/calendar/components/interface/calendar-daily.mjs +8 -0
- package/es/control/calendar/components/interface/calendar-user.mjs +8 -0
- package/es/control/calendar/components/interface/calendar-week.mjs +8 -0
- package/es/control/calendar/components/interface/custom-calendar.mjs +8 -0
- package/es/control/dashboard/custom-dashboard-container/custom-dashboard-container.mjs +10 -3
- package/es/control/dashboard/dashboard.mjs +10 -3
- package/es/control/dashboard/portlet/actionbar-portlet/actionbar-portlet.mjs +10 -2
- package/es/control/dashboard/portlet/chart-portlet/chart-portlet.mjs +11 -3
- package/es/control/dashboard/portlet/container-portlet/container-portlet.mjs +11 -3
- package/es/control/dashboard/portlet/filter-portlet/filter-portlet.css +1 -1
- package/es/control/dashboard/portlet/filter-portlet/filter-portlet.mjs +12 -3
- package/es/control/dashboard/portlet/html-portlet/html-portlet.mjs +10 -2
- package/es/control/dashboard/portlet/list-portlet/list-portlet.mjs +10 -2
- package/es/control/dashboard/portlet/menu-portlet/menu-portlet.mjs +10 -2
- package/es/control/dashboard/portlet/portlet-layout/portlet-layout.css +1 -1
- package/es/control/dashboard/portlet/portlet-layout/portlet-layout.mjs +20 -8
- package/es/control/dashboard/portlet/rawitem-portlet/rawitem-portlet.mjs +10 -2
- package/es/control/dashboard/portlet/report-portlet/report-portlet.mjs +10 -2
- package/es/control/dashboard/portlet/view-portlet/view-portlet.mjs +10 -2
- package/es/control/data-view/data-view.css +1 -1
- package/es/control/data-view/data-view.mjs +42 -22
- package/es/control/drbar/drbar.css +1 -1
- package/es/control/drbar/drbar.mjs +24 -14
- package/es/control/drtab/drtab.css +1 -1
- package/es/control/drtab/drtab.mjs +36 -18
- package/es/control/drtab/flow-drtab.css +1 -1
- package/es/control/drtab/flow-drtab.mjs +21 -10
- package/es/control/form/edit-form/edit-form.css +1 -1
- package/es/control/form/form/form.mjs +12 -6
- package/es/control/form/form-detail/form-button/form-button.css +1 -1
- package/es/control/form/form-detail/form-button/form-button.mjs +11 -3
- package/es/control/form/form-detail/form-button-list/form-button-list.mjs +10 -3
- package/es/control/form/form-detail/form-druipart/form-druipart.mjs +11 -3
- package/es/control/form/form-detail/form-group-panel/form-group-panel.mjs +18 -9
- package/es/control/form/form-detail/form-iframe/form-iframe.mjs +10 -3
- package/es/control/form/form-detail/form-item/form-item-container/form-item-container.css +1 -1
- package/es/control/form/form-detail/form-item/form-item-container/form-item-container.mjs +16 -6
- package/es/control/form/form-detail/form-item/form-item.css +1 -1
- package/es/control/form/form-detail/form-item/form-item.mjs +12 -5
- package/es/control/form/form-detail/form-mdctrl/form-mdctrl-form/form-mdctrl-form.css +1 -1
- package/es/control/form/form-detail/form-mdctrl/form-mdctrl-form/form-mdctrl-form.mjs +19 -6
- package/es/control/form/form-detail/form-mdctrl/form-mdctrl-md/form-mdctrl-md.css +1 -1
- package/es/control/form/form-detail/form-mdctrl/form-mdctrl-md/form-mdctrl-md.mjs +18 -7
- package/es/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/form-mdctrl-repeater.mjs +16 -4
- package/es/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-grid/repeater-grid.css +1 -1
- package/es/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-grid/repeater-grid.mjs +24 -7
- package/es/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-grid2/repeater-grid2.mjs +16 -6
- package/es/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-multi-form/repeater-multi-form.mjs +1 -0
- package/es/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-single-form/repeater-single-form.css +1 -1
- package/es/control/form/form-detail/form-mdctrl/form-mdctrl.css +1 -1
- package/es/control/form/form-detail/form-mdctrl/form-mdctrl.mjs +14 -5
- package/es/control/form/form-detail/form-mdctrl/mdctrl-container/mdctrl-container.css +1 -1
- package/es/control/form/form-detail/form-mdctrl/mdctrl-container/mdctrl-container.mjs +22 -7
- package/es/control/form/form-detail/form-mdctrl/mdctrl-container2/mdctrl-container2.mjs +12 -4
- package/es/control/form/form-detail/form-page/form-page.mjs +16 -6
- package/es/control/form/form-detail/form-rawitem/form-rawitem.mjs +13 -4
- package/es/control/form/form-detail/form-tab-page/form-tab-page.mjs +10 -3
- package/es/control/form/form-detail/form-tab-panel/form-tab-panel.mjs +16 -6
- package/es/control/form/search-form/advance-search/advance-search.mjs +2 -3
- package/es/control/form/search-form/search-form.css +1 -1
- package/es/control/grid/grid/grid-control.util.mjs +1 -1
- package/es/control/grid/grid/grid.css +1 -1
- package/es/control/grid/grid/grid.mjs +44 -18
- package/es/control/grid/grid-column/grid-column-header/grid-column-header.css +1 -1
- package/es/control/grid/grid-column/grid-field-column/grid-field-column.css +1 -1
- package/es/control/grid/grid-column/grid-field-edit-column/grid-edit-item/grid-edit-item.css +1 -1
- package/es/control/grid/grid-column/grid-ua-column/grid-ua-column.css +1 -1
- package/es/control/grid/row-edit-popover/row-edit-popover.css +1 -1
- package/es/control/kanban/kanban.css +1 -1
- package/es/control/kanban/kanban.mjs +46 -24
- package/es/control/list/list.css +1 -1
- package/es/control/list/list.mjs +35 -18
- package/es/control/map/map.css +1 -1
- package/es/control/map/map.mjs +23 -13
- package/es/control/medit-view-panel/medit-view-panel.css +1 -1
- package/es/control/medit-view-panel/medit-view-panel.mjs +32 -17
- package/es/control/search-bar/search-bar.css +1 -1
- package/es/control/search-bar/search-bar.mjs +22 -10
- package/es/control/search-bar/search-groups/search-groups.css +1 -1
- package/es/control/search-bar/search-groups/search-groups.mjs +16 -6
- package/es/control/toolbar/toolbar.css +1 -1
- package/es/control/toolbar/toolbar.mjs +94 -61
- package/es/control/tree/tree.css +1 -1
- package/es/control/tree/tree.mjs +27 -11
- package/es/control/tree-grid/tree-grid.mjs +44 -12
- package/es/control/tree-grid-ex/tree-grid-ex.css +1 -1
- package/es/control/tree-grid-ex/tree-grid-ex.mjs +24 -7
- package/es/control/wizard-panel/wizard-panel.css +1 -1
- package/es/control/wizard-panel/wizard-panel.mjs +29 -10
- package/es/editor/code/monaco-editor/monaco-editor.mjs +19 -5
- package/es/editor/dropdown-list/ibiz-dropdown/ibiz-dropdown.mjs +10 -6
- package/es/editor/markdown/ibiz-markdown-editor/ibiz-markdown-editor.css +1 -1
- package/es/editor/markdown/ibiz-markdown-editor/ibiz-markdown-editor.mjs +14 -2
- package/es/editor/upload/ibiz-file-upload/ibiz-file-upload.mjs +6 -4
- package/es/editor/upload/ibiz-image-cropping/ibiz-image-cropping.mjs +1 -1
- package/es/editor/upload/ibiz-image-upload/ibiz-image-upload.mjs +1 -1
- package/es/editor/upload/upload-editor.controller.mjs +9 -1
- package/es/editor/upload/use/use-custom-upload.mjs +62 -13
- package/es/editor/upload/use/use-iview-upload.mjs +45 -2
- package/es/index.mjs +1 -0
- package/es/locale/index.mjs +29 -1
- package/es/panel-component/panel-button/panel-button.css +1 -1
- package/es/panel-component/panel-view-header/panel-view-header.css +1 -1
- package/es/panel-component/searchform-buttons/searchform-buttons.css +1 -1
- package/es/panel-component/searchform-buttons/searchform-buttons.mjs +10 -3
- package/es/util/index.mjs +1 -0
- package/es/util/pagination/use-pagination.mjs +33 -1
- package/es/util/path-util/path-util.mjs +14 -0
- package/lib/common/high-light-code/high-light-code-util.cjs +0 -1
- package/lib/common/map-chart/map-chart.cjs +8 -1
- package/lib/common/map-chart/map-chart.css +1 -1
- package/lib/common/map-chart-user/map-chart-user.cjs +12 -4
- package/lib/common/map-chart-user/map-chart-user.css +1 -1
- package/lib/common/pagination/pagination.cjs +42 -2
- package/lib/common/pagination/pagination.css +1 -1
- package/lib/common/rawitem/rawitem.cjs +2 -0
- package/lib/common/rawitem/rawitem.css +1 -1
- package/lib/common/sort-bar/sort-bar.cjs +9 -1
- package/lib/common/sort-bar/sort-bar.css +1 -1
- package/lib/control/app-menu/app-menu.cjs +40 -18
- package/lib/control/app-menu/app-menu.css +1 -1
- package/lib/control/calendar/calendar-util.cjs +1 -1
- package/lib/control/calendar/calendar.cjs +85 -50
- package/lib/control/calendar/calendar.css +1 -1
- package/lib/control/calendar/components/calendar-daily/calendar-daily.cjs +13 -8
- package/lib/control/calendar/components/calendar-daily/calendar-daily.css +1 -1
- package/lib/control/calendar/components/calendar-user/calendar-user.cjs +16 -8
- package/lib/control/calendar/components/calendar-user/calendar-user.css +1 -1
- package/lib/control/calendar/components/calendar-user2/calendar-user2.cjs +216 -0
- package/lib/control/calendar/components/calendar-user2/calendar-user2.css +1 -0
- package/lib/control/calendar/components/calendar-user2/index.cjs +14 -0
- package/lib/control/calendar/components/calendar-week/calendar-week.cjs +10 -5
- package/lib/control/calendar/components/calendar-week/calendar-week.css +1 -1
- package/lib/control/calendar/components/custom-calendar/custom-calendar.cjs +26 -16
- package/lib/control/calendar/components/custom-calendar/custom-calendar.css +1 -1
- package/lib/control/calendar/components/custom-calendar/use-custom-calendar.cjs +2 -2
- package/lib/control/calendar/components/interface/calendar-daily.cjs +8 -0
- package/lib/control/calendar/components/interface/calendar-user.cjs +8 -0
- package/lib/control/calendar/components/interface/calendar-week.cjs +8 -0
- package/lib/control/calendar/components/interface/custom-calendar.cjs +8 -0
- package/lib/control/dashboard/custom-dashboard-container/custom-dashboard-container.cjs +9 -2
- package/lib/control/dashboard/dashboard.cjs +9 -2
- package/lib/control/dashboard/portlet/actionbar-portlet/actionbar-portlet.cjs +9 -1
- package/lib/control/dashboard/portlet/chart-portlet/chart-portlet.cjs +10 -2
- package/lib/control/dashboard/portlet/container-portlet/container-portlet.cjs +10 -2
- package/lib/control/dashboard/portlet/filter-portlet/filter-portlet.cjs +11 -2
- package/lib/control/dashboard/portlet/filter-portlet/filter-portlet.css +1 -1
- package/lib/control/dashboard/portlet/html-portlet/html-portlet.cjs +9 -1
- package/lib/control/dashboard/portlet/list-portlet/list-portlet.cjs +9 -1
- package/lib/control/dashboard/portlet/menu-portlet/menu-portlet.cjs +9 -1
- package/lib/control/dashboard/portlet/portlet-layout/portlet-layout.cjs +19 -7
- package/lib/control/dashboard/portlet/portlet-layout/portlet-layout.css +1 -1
- package/lib/control/dashboard/portlet/rawitem-portlet/rawitem-portlet.cjs +9 -1
- package/lib/control/dashboard/portlet/report-portlet/report-portlet.cjs +9 -1
- package/lib/control/dashboard/portlet/view-portlet/view-portlet.cjs +9 -1
- package/lib/control/data-view/data-view.cjs +40 -20
- package/lib/control/data-view/data-view.css +1 -1
- package/lib/control/drbar/drbar.cjs +23 -13
- package/lib/control/drbar/drbar.css +1 -1
- package/lib/control/drtab/drtab.cjs +34 -16
- package/lib/control/drtab/drtab.css +1 -1
- package/lib/control/drtab/flow-drtab.cjs +20 -9
- package/lib/control/drtab/flow-drtab.css +1 -1
- package/lib/control/form/edit-form/edit-form.css +1 -1
- package/lib/control/form/form/form.cjs +10 -4
- package/lib/control/form/form-detail/form-button/form-button.cjs +10 -2
- package/lib/control/form/form-detail/form-button/form-button.css +1 -1
- package/lib/control/form/form-detail/form-button-list/form-button-list.cjs +9 -2
- package/lib/control/form/form-detail/form-druipart/form-druipart.cjs +10 -2
- package/lib/control/form/form-detail/form-group-panel/form-group-panel.cjs +17 -8
- package/lib/control/form/form-detail/form-iframe/form-iframe.cjs +9 -2
- package/lib/control/form/form-detail/form-item/form-item-container/form-item-container.cjs +15 -5
- package/lib/control/form/form-detail/form-item/form-item-container/form-item-container.css +1 -1
- package/lib/control/form/form-detail/form-item/form-item.cjs +11 -4
- package/lib/control/form/form-detail/form-item/form-item.css +1 -1
- package/lib/control/form/form-detail/form-mdctrl/form-mdctrl-form/form-mdctrl-form.cjs +18 -5
- package/lib/control/form/form-detail/form-mdctrl/form-mdctrl-form/form-mdctrl-form.css +1 -1
- package/lib/control/form/form-detail/form-mdctrl/form-mdctrl-md/form-mdctrl-md.cjs +17 -6
- package/lib/control/form/form-detail/form-mdctrl/form-mdctrl-md/form-mdctrl-md.css +1 -1
- package/lib/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/form-mdctrl-repeater.cjs +15 -3
- package/lib/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-grid/repeater-grid.cjs +23 -6
- package/lib/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-grid/repeater-grid.css +1 -1
- package/lib/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-grid2/repeater-grid2.cjs +15 -5
- package/lib/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-multi-form/repeater-multi-form.cjs +1 -0
- package/lib/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-single-form/repeater-single-form.css +1 -1
- package/lib/control/form/form-detail/form-mdctrl/form-mdctrl.cjs +13 -4
- package/lib/control/form/form-detail/form-mdctrl/form-mdctrl.css +1 -1
- package/lib/control/form/form-detail/form-mdctrl/mdctrl-container/mdctrl-container.cjs +21 -6
- package/lib/control/form/form-detail/form-mdctrl/mdctrl-container/mdctrl-container.css +1 -1
- package/lib/control/form/form-detail/form-mdctrl/mdctrl-container2/mdctrl-container2.cjs +11 -3
- package/lib/control/form/form-detail/form-page/form-page.cjs +15 -5
- package/lib/control/form/form-detail/form-rawitem/form-rawitem.cjs +12 -3
- package/lib/control/form/form-detail/form-tab-page/form-tab-page.cjs +9 -2
- package/lib/control/form/form-detail/form-tab-panel/form-tab-panel.cjs +15 -5
- package/lib/control/form/search-form/advance-search/advance-search.cjs +1 -2
- package/lib/control/form/search-form/search-form.css +1 -1
- package/lib/control/grid/grid/grid-control.util.cjs +1 -1
- package/lib/control/grid/grid/grid.cjs +42 -16
- package/lib/control/grid/grid/grid.css +1 -1
- package/lib/control/grid/grid-column/grid-column-header/grid-column-header.css +1 -1
- package/lib/control/grid/grid-column/grid-field-column/grid-field-column.css +1 -1
- package/lib/control/grid/grid-column/grid-field-edit-column/grid-edit-item/grid-edit-item.css +1 -1
- package/lib/control/grid/grid-column/grid-ua-column/grid-ua-column.css +1 -1
- package/lib/control/grid/row-edit-popover/row-edit-popover.css +1 -1
- package/lib/control/kanban/kanban.cjs +45 -23
- package/lib/control/kanban/kanban.css +1 -1
- package/lib/control/list/list.cjs +34 -17
- package/lib/control/list/list.css +1 -1
- package/lib/control/map/map.cjs +21 -11
- package/lib/control/map/map.css +1 -1
- package/lib/control/medit-view-panel/medit-view-panel.cjs +31 -16
- package/lib/control/medit-view-panel/medit-view-panel.css +1 -1
- package/lib/control/search-bar/search-bar.cjs +21 -9
- package/lib/control/search-bar/search-bar.css +1 -1
- package/lib/control/search-bar/search-groups/search-groups.cjs +15 -5
- package/lib/control/search-bar/search-groups/search-groups.css +1 -1
- package/lib/control/toolbar/toolbar.cjs +92 -59
- package/lib/control/toolbar/toolbar.css +1 -1
- package/lib/control/tree/tree.cjs +26 -10
- package/lib/control/tree/tree.css +1 -1
- package/lib/control/tree-grid/tree-grid.cjs +42 -10
- package/lib/control/tree-grid-ex/tree-grid-ex.cjs +22 -5
- package/lib/control/tree-grid-ex/tree-grid-ex.css +1 -1
- package/lib/control/wizard-panel/wizard-panel.cjs +28 -9
- package/lib/control/wizard-panel/wizard-panel.css +1 -1
- package/lib/editor/code/monaco-editor/monaco-editor.cjs +19 -5
- package/lib/editor/dropdown-list/ibiz-dropdown/ibiz-dropdown.cjs +10 -6
- package/lib/editor/markdown/ibiz-markdown-editor/ibiz-markdown-editor.cjs +14 -2
- package/lib/editor/markdown/ibiz-markdown-editor/ibiz-markdown-editor.css +1 -1
- package/lib/editor/upload/ibiz-file-upload/ibiz-file-upload.cjs +6 -4
- package/lib/editor/upload/ibiz-image-cropping/ibiz-image-cropping.cjs +1 -1
- package/lib/editor/upload/ibiz-image-upload/ibiz-image-upload.cjs +1 -1
- package/lib/editor/upload/upload-editor.controller.cjs +9 -1
- package/lib/editor/upload/use/use-custom-upload.cjs +62 -13
- package/lib/editor/upload/use/use-iview-upload.cjs +45 -2
- package/lib/index.cjs +2 -0
- package/lib/locale/index.cjs +29 -1
- package/lib/panel-component/panel-button/panel-button.css +1 -1
- package/lib/panel-component/panel-view-header/panel-view-header.css +1 -1
- package/lib/panel-component/searchform-buttons/searchform-buttons.cjs +9 -2
- package/lib/panel-component/searchform-buttons/searchform-buttons.css +1 -1
- package/lib/util/index.cjs +2 -0
- package/lib/util/pagination/use-pagination.cjs +33 -1
- package/lib/util/path-util/path-util.cjs +16 -0
- package/package.json +5 -5
- package/dist/ibiz-markdown-editor-CQRvKzXG.js +0 -1
- package/dist/index-YyzbGEva.js +0 -339
- package/dist/map-chart-nwkjjlMK.js +0 -1
- package/dist/map-chart-user-D2lgUtGX.js +0 -1
- package/dist/wang-editor-BnRUlcfv.js +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { isVNode, defineComponent, createVNode, resolveComponent, renderSlot, h } from 'vue';
|
|
2
|
-
import { ControlType, ScriptFactory, findChildFormDetails } from '@ibiz-template/runtime';
|
|
3
|
-
import { useNamespace, useControlPopoverzIndex } from '@ibiz-template/vue3-util';
|
|
2
|
+
import { ControlType, filterPresetAttrs, ScriptFactory, findChildFormDetails } from '@ibiz-template/runtime';
|
|
3
|
+
import { useNamespace, useControlPopoverzIndex, useSemanticNode } from '@ibiz-template/vue3-util';
|
|
4
4
|
import './form.css';
|
|
5
5
|
|
|
6
6
|
"use strict";
|
|
@@ -28,9 +28,8 @@ const FormControl = /* @__PURE__ */ defineComponent({
|
|
|
28
28
|
form: c
|
|
29
29
|
};
|
|
30
30
|
const renderAttrs = (model) => {
|
|
31
|
-
var _a;
|
|
32
31
|
const attrs = {};
|
|
33
|
-
(
|
|
32
|
+
filterPresetAttrs(model.controlAttributes).forEach((item) => {
|
|
34
33
|
if (item.attrName && item.attrValue) {
|
|
35
34
|
attrs[item.attrName] = ScriptFactory.execSingleLine(item.attrValue, {
|
|
36
35
|
...props.controller.getEventArgs(),
|
|
@@ -40,6 +39,10 @@ const FormControl = /* @__PURE__ */ defineComponent({
|
|
|
40
39
|
});
|
|
41
40
|
return attrs;
|
|
42
41
|
};
|
|
42
|
+
const {
|
|
43
|
+
semanticClass,
|
|
44
|
+
semanticStyle
|
|
45
|
+
} = useSemanticNode(c);
|
|
43
46
|
const renderByDetailType = (detail, isRoot = false) => {
|
|
44
47
|
const {
|
|
45
48
|
hidden,
|
|
@@ -98,7 +101,9 @@ const FormControl = /* @__PURE__ */ defineComponent({
|
|
|
98
101
|
c,
|
|
99
102
|
FormDetail,
|
|
100
103
|
slotProps,
|
|
101
|
-
renderByDetailType
|
|
104
|
+
renderByDetailType,
|
|
105
|
+
semanticClass,
|
|
106
|
+
semanticStyle
|
|
102
107
|
};
|
|
103
108
|
},
|
|
104
109
|
render() {
|
|
@@ -137,7 +142,8 @@ const FormControl = /* @__PURE__ */ defineComponent({
|
|
|
137
142
|
}
|
|
138
143
|
}
|
|
139
144
|
return createVNode(resolveComponent("iBizControlBase"), {
|
|
140
|
-
"class": this.ns.b(),
|
|
145
|
+
"class": [this.ns.b(), this.semanticClass("root")],
|
|
146
|
+
"style": this.semanticStyle("root"),
|
|
141
147
|
"controller": this.c
|
|
142
148
|
}, _isSlot(slots) ? slots : {
|
|
143
149
|
default: () => [slots]
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.ibiz-form-button{--ibiz-form-button-icon-margin:var(--ibiz-spacing-extra-tight);--ibiz-form-button-icon-max-width:var(--ibiz-width-icon-medium);--ibiz-form-button-icon-max-height:var(--ibiz-width-icon-medium);width:100%;height:100%;padding:var(--ibiz-
|
|
1
|
+
.ibiz-form-button{--ibiz-form-button-icon-margin:var(--ibiz-spacing-extra-tight);--ibiz-form-button-icon-max-width:var(--ibiz-width-icon-medium);--ibiz-form-button-icon-max-height:var(--ibiz-width-icon-medium);--ibiz-form-button-padding:var(--ibiz-spacing-tight);width:100%;height:100%;padding:var(--ibiz-form-button-padding);overflow:hidden}.ibiz-form-button .el-button{width:100%;height:100%}.ibiz-form-button .el-button .ibiz-form-button-content{display:flex;align-items:center;justify-content:flex-start}.ibiz-form-button .el-button .ibiz-form-button-content i,.ibiz-form-button .el-button .ibiz-form-button-content img{display:inline-block;max-width:var(--ibiz-form-button-icon-max-width);max-height:var(--ibiz-form-button-icon-max-height)}.ibiz-form-button .el-button .ibiz-form-button-content .ibiz-icon+.ibiz-form-button-content--caption{margin-left:var(--ibiz-form-button-icon-margin)}.ibiz-form-button.is-loading .el-button .ibiz-icon{display:none}.ibiz-form-button.is-readonly{display:none}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent, createVNode, resolveComponent, computed } from 'vue';
|
|
2
2
|
import { FormButtonController } from '@ibiz-template/runtime';
|
|
3
|
-
import { useNamespace } from '@ibiz-template/vue3-util';
|
|
3
|
+
import { useNamespace, useSemanticNode } from '@ibiz-template/vue3-util';
|
|
4
4
|
import { showTitle } from '@ibiz-template/core';
|
|
5
5
|
import '../../../../util/index.mjs';
|
|
6
6
|
import './form-button.css';
|
|
@@ -21,6 +21,11 @@ const FormButton = /* @__PURE__ */ defineComponent({
|
|
|
21
21
|
},
|
|
22
22
|
setup(props) {
|
|
23
23
|
const ns = useNamespace("form-button");
|
|
24
|
+
const c = props.controller;
|
|
25
|
+
const {
|
|
26
|
+
semanticClass,
|
|
27
|
+
semanticStyle
|
|
28
|
+
} = useSemanticNode(c.form);
|
|
24
29
|
const captionText = computed(() => {
|
|
25
30
|
const {
|
|
26
31
|
caption,
|
|
@@ -33,7 +38,9 @@ const FormButton = /* @__PURE__ */ defineComponent({
|
|
|
33
38
|
});
|
|
34
39
|
return {
|
|
35
40
|
ns,
|
|
36
|
-
captionText
|
|
41
|
+
captionText,
|
|
42
|
+
semanticClass,
|
|
43
|
+
semanticStyle
|
|
37
44
|
};
|
|
38
45
|
},
|
|
39
46
|
render() {
|
|
@@ -41,7 +48,8 @@ const FormButton = /* @__PURE__ */ defineComponent({
|
|
|
41
48
|
return null;
|
|
42
49
|
}
|
|
43
50
|
return createVNode("div", {
|
|
44
|
-
"class": [this.ns.b(), this.ns.m(this.modelData.codeName), this.ns.is("loading", this.controller.state.loading), this.ns.is("readonly", this.controller.state.readonly), this.modelData.detailStyle && this.ns.m(this.modelData.detailStyle.toLowerCase()), ...this.controller.containerClass]
|
|
51
|
+
"class": [this.ns.b(), this.ns.m(this.modelData.codeName), this.ns.is("loading", this.controller.state.loading), this.ns.is("readonly", this.controller.state.readonly), this.semanticClass("button", this.controller), this.modelData.detailStyle && this.ns.m(this.modelData.detailStyle.toLowerCase()), ...this.controller.containerClass],
|
|
52
|
+
"style": this.semanticStyle("button", this.controller)
|
|
45
53
|
}, [createVNode(resolveComponent("el-button"), {
|
|
46
54
|
"sime": "small",
|
|
47
55
|
"onClick": this.controller.onClick.bind(this.controller),
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent, createVNode, resolveComponent } from 'vue';
|
|
2
2
|
import { FormButtonListController } from '@ibiz-template/runtime';
|
|
3
|
-
import { useNamespace } from '@ibiz-template/vue3-util';
|
|
3
|
+
import { useNamespace, useSemanticNode } from '@ibiz-template/vue3-util';
|
|
4
4
|
import './form-button-list.css';
|
|
5
5
|
|
|
6
6
|
"use strict";
|
|
@@ -20,6 +20,10 @@ const FormButtonList = /* @__PURE__ */ defineComponent({
|
|
|
20
20
|
var _a;
|
|
21
21
|
const ns = useNamespace("form-button-list");
|
|
22
22
|
const c = props.controller;
|
|
23
|
+
const {
|
|
24
|
+
semanticClass,
|
|
25
|
+
semanticStyle
|
|
26
|
+
} = useSemanticNode(c.form);
|
|
23
27
|
const isDesignPreview = ((_a = c.context) == null ? void 0 : _a.srfrunmode) === "DESIGN";
|
|
24
28
|
const handleClick = async (id, e) => {
|
|
25
29
|
e == null ? void 0 : e.stopPropagation();
|
|
@@ -29,7 +33,9 @@ const FormButtonList = /* @__PURE__ */ defineComponent({
|
|
|
29
33
|
};
|
|
30
34
|
return {
|
|
31
35
|
ns,
|
|
32
|
-
handleClick
|
|
36
|
+
handleClick,
|
|
37
|
+
semanticClass,
|
|
38
|
+
semanticStyle
|
|
33
39
|
};
|
|
34
40
|
},
|
|
35
41
|
render() {
|
|
@@ -38,7 +44,8 @@ const FormButtonList = /* @__PURE__ */ defineComponent({
|
|
|
38
44
|
} = this.controller;
|
|
39
45
|
if (state.visible) {
|
|
40
46
|
return createVNode(resolveComponent("iBizButtonList"), {
|
|
41
|
-
"class": [this.ns.b(), ...this.controller.containerClass],
|
|
47
|
+
"class": [this.ns.b(), this.semanticClass("button.list", this.controller), ...this.controller.containerClass],
|
|
48
|
+
"style": this.semanticStyle("button.list", this.controller),
|
|
42
49
|
"model": this.modelData,
|
|
43
50
|
"disabled": state.disabled,
|
|
44
51
|
"buttonsState": state.buttonsState,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent, createVNode, resolveComponent, h } from 'vue';
|
|
2
|
-
import { useNamespace, useController } from '@ibiz-template/vue3-util';
|
|
2
|
+
import { useNamespace, useController, useSemanticNode } from '@ibiz-template/vue3-util';
|
|
3
3
|
import { FormDRUIPartController } from '@ibiz-template/runtime';
|
|
4
4
|
import './form-druipart.css';
|
|
5
5
|
|
|
@@ -20,6 +20,11 @@ const FormDRUIPart = /* @__PURE__ */ defineComponent({
|
|
|
20
20
|
var _a;
|
|
21
21
|
const ns = useNamespace("form-druipart");
|
|
22
22
|
useController(props.controller);
|
|
23
|
+
const c = props.controller;
|
|
24
|
+
const {
|
|
25
|
+
semanticClass,
|
|
26
|
+
semanticStyle
|
|
27
|
+
} = useSemanticNode(c.form);
|
|
23
28
|
const isDesignPreview = ((_a = props.controller.context) == null ? void 0 : _a.srfrunmode) === "DESIGN";
|
|
24
29
|
const onCreated = (event) => {
|
|
25
30
|
props.controller.setEmbedView(event.view);
|
|
@@ -27,7 +32,9 @@ const FormDRUIPart = /* @__PURE__ */ defineComponent({
|
|
|
27
32
|
return {
|
|
28
33
|
ns,
|
|
29
34
|
isDesignPreview,
|
|
30
|
-
onCreated
|
|
35
|
+
onCreated,
|
|
36
|
+
semanticClass,
|
|
37
|
+
semanticStyle
|
|
31
38
|
};
|
|
32
39
|
},
|
|
33
40
|
render() {
|
|
@@ -43,7 +50,8 @@ const FormDRUIPart = /* @__PURE__ */ defineComponent({
|
|
|
43
50
|
}
|
|
44
51
|
const viewShell = resolveComponent("IBizViewShell");
|
|
45
52
|
return createVNode("div", {
|
|
46
|
-
"class": [this.ns.b(), this.ns.m(this.modelData.codeName), ...this.controller.containerClass],
|
|
53
|
+
"class": [this.ns.b(), this.ns.m(this.modelData.codeName), this.semanticClass("druipart", this.controller), ...this.controller.containerClass],
|
|
54
|
+
"style": this.semanticStyle("druipart", this.controller),
|
|
47
55
|
"onClick": (event) => this.controller.onClick(event)
|
|
48
56
|
}, [h(viewShell, {
|
|
49
57
|
context: this.controller.navContext,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { isVNode, defineComponent, createVNode, resolveComponent, withDirectives, resolveDirective, computed } from 'vue';
|
|
2
2
|
import { FormGroupPanelController } from '@ibiz-template/runtime';
|
|
3
|
-
import { useNamespace } from '@ibiz-template/vue3-util';
|
|
3
|
+
import { useNamespace, useSemanticNode } from '@ibiz-template/vue3-util';
|
|
4
4
|
import './form-group-panel.css';
|
|
5
5
|
|
|
6
6
|
"use strict";
|
|
@@ -22,6 +22,10 @@ const FormGroupPanel = /* @__PURE__ */ defineComponent({
|
|
|
22
22
|
setup(props) {
|
|
23
23
|
const ns = useNamespace("form-group");
|
|
24
24
|
const c = props.controller;
|
|
25
|
+
const {
|
|
26
|
+
semanticClass,
|
|
27
|
+
semanticStyle
|
|
28
|
+
} = useSemanticNode(c.form);
|
|
25
29
|
const zIndex = props.controller.form.state.zIndex;
|
|
26
30
|
const changeCollapse = () => {
|
|
27
31
|
if (!c.disableClose) {
|
|
@@ -49,7 +53,9 @@ const FormGroupPanel = /* @__PURE__ */ defineComponent({
|
|
|
49
53
|
zIndex,
|
|
50
54
|
captionText,
|
|
51
55
|
changeCollapse,
|
|
52
|
-
onActionClick
|
|
56
|
+
onActionClick,
|
|
57
|
+
semanticClass,
|
|
58
|
+
semanticStyle
|
|
53
59
|
};
|
|
54
60
|
},
|
|
55
61
|
render() {
|
|
@@ -76,7 +82,7 @@ const FormGroupPanel = /* @__PURE__ */ defineComponent({
|
|
|
76
82
|
})) ? _slot : {
|
|
77
83
|
default: () => [_slot]
|
|
78
84
|
});
|
|
79
|
-
const classArr = [this.ns.b(), this.ns.m(this.modelData.codeName), this.modelData.detailStyle ? this.ns.m(this.modelData.detailStyle.toLowerCase()) : "", ...this.controller.containerClass];
|
|
85
|
+
const classArr = [this.ns.b(), this.ns.m(this.modelData.codeName), this.semanticClass("group", this.controller), this.modelData.detailStyle ? this.ns.m(this.modelData.detailStyle.toLowerCase()) : "", ...this.controller.containerClass];
|
|
80
86
|
if (this.modelData.showCaption === true) {
|
|
81
87
|
classArr.push(this.ns.m("show-header"));
|
|
82
88
|
classArr.push(this.ns.b("collapse"));
|
|
@@ -91,9 +97,9 @@ const FormGroupPanel = /* @__PURE__ */ defineComponent({
|
|
|
91
97
|
let header = null;
|
|
92
98
|
if (this.modelData.showCaption) {
|
|
93
99
|
header = createVNode("div", {
|
|
94
|
-
"class": [this.ns.b("header")],
|
|
100
|
+
"class": [this.ns.b("header"), this.semanticClass("group.header", this.controller)],
|
|
95
101
|
"onClick": this.changeCollapse,
|
|
96
|
-
"style": this.controller.model.labelCssStyle
|
|
102
|
+
"style": [this.controller.model.labelCssStyle, this.semanticStyle("group.header", this.controller)]
|
|
97
103
|
}, [createVNode("div", {
|
|
98
104
|
"class": [this.ns.be("header", "left")]
|
|
99
105
|
}, [createVNode("div", {
|
|
@@ -105,7 +111,8 @@ const FormGroupPanel = /* @__PURE__ */ defineComponent({
|
|
|
105
111
|
"class": [this.ns.be("header", "right")]
|
|
106
112
|
}, [this.modelData.uiactionGroup && createVNode(resolveComponent("iBizActionToolbar"), {
|
|
107
113
|
"zIndex": this.zIndex,
|
|
108
|
-
"class": this.ns.e("toolbar"),
|
|
114
|
+
"class": [this.ns.e("toolbar"), this.semanticClass("group.action", this.controller)],
|
|
115
|
+
"style": this.semanticStyle("group.action", this.controller),
|
|
109
116
|
"action-details": this.modelData.uiactionGroup.uiactionGroupDetails,
|
|
110
117
|
"actions-state": state.actionGroupState,
|
|
111
118
|
"onActionClick": this.onActionClick,
|
|
@@ -134,7 +141,8 @@ const FormGroupPanel = /* @__PURE__ */ defineComponent({
|
|
|
134
141
|
let footer = null;
|
|
135
142
|
if (this.modelData.showMoreMode === 2) {
|
|
136
143
|
footer = createVNode("div", {
|
|
137
|
-
"class": [this.ns.b("footer")]
|
|
144
|
+
"class": [this.ns.b("footer"), this.semanticClass("group.footer", this.controller)],
|
|
145
|
+
"style": this.semanticStyle("group.footer", this.controller)
|
|
138
146
|
}, [createVNode("div", {
|
|
139
147
|
"class": this.ns.be("footer", "show-more-button"),
|
|
140
148
|
"onClick": () => {
|
|
@@ -144,12 +152,13 @@ const FormGroupPanel = /* @__PURE__ */ defineComponent({
|
|
|
144
152
|
}
|
|
145
153
|
return withDirectives(createVNode("div", {
|
|
146
154
|
"class": classArr,
|
|
155
|
+
"style": this.semanticStyle("group", this.controller),
|
|
147
156
|
"element-loading-text": this.controller.state.loadingText,
|
|
148
157
|
"id": "".concat(this.controller.form.view.model.codeName, "_").concat(this.controller.form.model.codeName, "_").concat(this.modelData.codeName),
|
|
149
158
|
"onClick": (event) => this.controller.onClick(event)
|
|
150
159
|
}, [header, createVNode("div", {
|
|
151
|
-
"class": this.ns.b("content"),
|
|
152
|
-
"style": this.controller.model.cssStyle
|
|
160
|
+
"class": [this.ns.b("content"), this.semanticClass("group.content", this.controller)],
|
|
161
|
+
"style": [this.controller.model.cssStyle, this.semanticStyle("group.content", this.controller)]
|
|
153
162
|
}, [content]), footer]), [[resolveDirective("loading"), this.controller.state.loading]]);
|
|
154
163
|
}
|
|
155
164
|
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent, withDirectives, createVNode, resolveDirective, ref, computed } from 'vue';
|
|
2
|
-
import { useNamespace, useController } from '@ibiz-template/vue3-util';
|
|
2
|
+
import { useNamespace, useController, useSemanticNode } from '@ibiz-template/vue3-util';
|
|
3
3
|
import { FormIFrameController } from '@ibiz-template/runtime';
|
|
4
4
|
import './form-iframe.css';
|
|
5
5
|
|
|
@@ -20,6 +20,10 @@ const FormIFrame = /* @__PURE__ */ defineComponent({
|
|
|
20
20
|
const c = props.controller;
|
|
21
21
|
const ns = useNamespace("form-iframe");
|
|
22
22
|
useController(c);
|
|
23
|
+
const {
|
|
24
|
+
semanticClass,
|
|
25
|
+
semanticStyle
|
|
26
|
+
} = useSemanticNode(c.form);
|
|
23
27
|
const loading = ref(true);
|
|
24
28
|
const url = computed(() => {
|
|
25
29
|
return c.calcIFrameUrl();
|
|
@@ -31,7 +35,9 @@ const FormIFrame = /* @__PURE__ */ defineComponent({
|
|
|
31
35
|
ns,
|
|
32
36
|
url,
|
|
33
37
|
loading,
|
|
34
|
-
onLoad
|
|
38
|
+
onLoad,
|
|
39
|
+
semanticClass,
|
|
40
|
+
semanticStyle
|
|
35
41
|
};
|
|
36
42
|
},
|
|
37
43
|
render() {
|
|
@@ -39,7 +45,8 @@ const FormIFrame = /* @__PURE__ */ defineComponent({
|
|
|
39
45
|
return null;
|
|
40
46
|
}
|
|
41
47
|
return withDirectives(createVNode("div", {
|
|
42
|
-
"class": this.ns.b()
|
|
48
|
+
"class": [this.ns.b(), this.semanticClass("iframe", this.controller)],
|
|
49
|
+
"style": this.semanticStyle("iframe", this.controller)
|
|
43
50
|
}, [createVNode("iframe", {
|
|
44
51
|
"class": this.ns.e("iframe"),
|
|
45
52
|
"src": this.url,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.ibiz-form-item-container{
|
|
1
|
+
.ibiz-form-item-container{width:100%;height:100%;padding:var(--ibiz-spacing-tight) var(--ibiz-spacing-extra-tight) var(--ibiz-spacing-tight) var(--ibiz-spacing-extra-tight)}.ibiz-form-item-container__label{flex-shrink:0;font-size:var(--ibiz-form-item-label-font-size);color:var(--ibiz-form-item-label-color)}.ibiz-form-item-container__label--content{display:flex;align-items:center;max-width:100%}.ibiz-form-item-container__label--content.is-tooltip{cursor:pointer}.ibiz-form-item-container__label--icon{padding-right:var(--ibiz-form-item-icon-gap)}.ibiz-form-item-container__label--text{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ibiz-form-item-container__popper.el-popper{padding:var(--ibiz-spacing-extra-tight);border:1px solid var(--ibiz-color-border);border-radius:0;box-shadow:var(--ibiz-shadow-elevated)}.ibiz-form-item-container__popper.el-popper table{border-spacing:0;border-collapse:collapse}.ibiz-form-item-container__popper.el-popper table tr td,.ibiz-form-item-container__popper.el-popper table tr th{padding:var(--ibiz-spacing-extra-tight) var(--ibiz-spacing-tight);border:1px solid var(--ibiz-color-border)}.ibiz-form-item-container__popper.el-popper .el-popper__arrow{display:block}.ibiz-form-item-container__popper--content{max-width:500px;padding:var(--ibiz-spacing-extra-tight)}.ibiz-form-item-container__popper--content a{color:var(--ibiz-color-link)}.ibiz-form-item-container__popper--tooltip{min-width:50px;min-height:20px}.ibiz-form-item-container__popper.is-md.el-popper.el-popper{padding:0}.ibiz-form-item-container__popper.is-md.el-popper.el-popper .ibiz-form-item-container__popper--content{padding:0}.ibiz-form-item-container__popper.is-md .ibiz-markdown{max-height:100vh;padding:0 calc(var(--ibiz-spacing-extra-tight) + var(--ibiz-spacing-extra-tight));overflow:auto}.ibiz-form-item-container__popper.is-md .ibiz-form-item-container__popper--tooltip{padding:calc(var(--ibiz-spacing-extra-tight) + var(--ibiz-spacing-extra-tight)) 0}.ibiz-form-item-container__popper.is-md .ibiz-markdown-cherry{width:auto!important}.ibiz-form-item-container__popper.is-md .cherry-previewer p:only-child{margin:0}.ibiz-form-item-container__popper.is-md .cherry-previewer>p:first-child{margin-top:0}.ibiz-form-item-container__popper.is-md .cherry-sidebar,.ibiz-form-item-container__popper.is-md .cherry-toolbar,.ibiz-form-item-container__popper.is-md .cherry-toolbar-button{display:none}.ibiz-form-item-container__popper.is-md .cherry{font-size:inherit;line-height:inherit}.ibiz-form-item-container__popper.is-md .cherry,.ibiz-form-item-container__popper.is-md .cherry .cherry-previewer{padding:0;background-color:transparent;border:none!important;box-shadow:none}.ibiz-form-item-container--left,.ibiz-form-item-container--right{display:flex;min-height:var(--ibiz-form-item-label-line-height)}.ibiz-form-item-container--left .ibiz-form-item-container__label,.ibiz-form-item-container--right .ibiz-form-item-container__label{width:var(--ibiz-form-item-label-width)}.ibiz-form-item-container--left .ibiz-form-item-container__content,.ibiz-form-item-container--right .ibiz-form-item-container__content{width:calc(100% - var(--ibiz-form-item-label-width))}.ibiz-form-item-container--bottom,.ibiz-form-item-container--top{display:flex;flex-flow:column nowrap}.ibiz-form-item-container--top .ibiz-form-item-container__label{margin-bottom:var(--ibiz-form-item-label-gap)}.ibiz-form-item-container--bottom .ibiz-form-item-container__label{margin-top:var(--ibiz-form-item-label-gap)}.ibiz-form-item-container--left .ibiz-form-item-container__label{padding:var(--ibiz-form-item-label-left-padding);line-height:var(--ibiz-form-item-label-line-height)}.ibiz-form-item-container--left .ibiz-form-item-container__label--content{float:right}.ibiz-form-item-container--right .ibiz-form-item-container__label{padding:var(--ibiz-form-item-label-right-padding);line-height:var(--ibiz-form-item-label-line-height)}.ibiz-form-item-container--right .ibiz-form-item-container__label--content{float:left}.ibiz-form-item-container.is-required .ibiz-form-item-container__label--content::before{display:inline-block;margin-right:var(--ibiz-form-item-label-require-gap);font-family:SimSun;line-height:1;color:var(--ibiz-form-item-label-require-color);content:"*"}.ibiz-form-item-container__content{display:flex;flex-flow:column nowrap;position:relative;flex-grow:1}.ibiz-form-item-container__content--label-left,.ibiz-form-item-container__content--label-none,.ibiz-form-item-container__content--label-right{height:100%}.ibiz-form-item-container__editor{position:relative;flex-grow:1;height:100%}.ibiz-form-item-container__error{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;position:absolute;top:100%;width:100%;font-size:var(--ibiz-form-item-error-font-size);line-height:calc(var(--ibiz-form-item-error-font-size) + 2px);color:var(--ibiz-form-item-error-color);word-wrap:break-word}.ibiz-form-item-container.is-error .ibiz-form-item-container__editor .el-input__wrapper{box-shadow:0 0 0 1px var(--ibiz-form-item-error-color) inset}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent, createVNode, withDirectives, resolveDirective, ref, watch, onUnmounted, computed, resolveComponent } from 'vue';
|
|
2
|
-
import { renderTooltip, useNamespace, IBizIcon } from '@ibiz-template/vue3-util';
|
|
2
|
+
import { renderTooltip, useNamespace, useSemanticNode, IBizIcon } from '@ibiz-template/vue3-util';
|
|
3
3
|
import { showTitle } from '@ibiz-template/core';
|
|
4
4
|
import './form-item-container.css';
|
|
5
5
|
|
|
@@ -15,6 +15,10 @@ const IBizFormItemContainer = /* @__PURE__ */ defineComponent({
|
|
|
15
15
|
setup(props) {
|
|
16
16
|
const ns = useNamespace("form-item-container");
|
|
17
17
|
const c = props.controller;
|
|
18
|
+
const {
|
|
19
|
+
semanticClass,
|
|
20
|
+
semanticStyle
|
|
21
|
+
} = useSemanticNode(c.form);
|
|
18
22
|
const visible = ref(false);
|
|
19
23
|
const {
|
|
20
24
|
sysImage,
|
|
@@ -104,7 +108,8 @@ const IBizFormItemContainer = /* @__PURE__ */ defineComponent({
|
|
|
104
108
|
},
|
|
105
109
|
content: () => {
|
|
106
110
|
return createVNode("div", {
|
|
107
|
-
"class": ns.em("popper", "content")
|
|
111
|
+
"class": [ns.em("popper", "content"), semanticClass("item.tooltip", props.controller)],
|
|
112
|
+
"style": semanticStyle("item.tooltip", props.controller)
|
|
108
113
|
}, [createVNode("div", {
|
|
109
114
|
"class": ns.em("popper", "tooltip")
|
|
110
115
|
}, [renderTipContent()]), c.state.inputTipUrl && createVNode("a", {
|
|
@@ -119,7 +124,8 @@ const IBizFormItemContainer = /* @__PURE__ */ defineComponent({
|
|
|
119
124
|
const form = props.controller.form;
|
|
120
125
|
const showTipsIcon = enableInputTip && form.showTipsIcon;
|
|
121
126
|
return createVNode("div", {
|
|
122
|
-
"class": [ns.e("label"), ...c.labelClass || []]
|
|
127
|
+
"class": [ns.e("label"), semanticClass("item.label", props.controller), ...c.labelClass || []],
|
|
128
|
+
"style": semanticStyle("item.label", props.controller)
|
|
123
129
|
}, [showTipsIcon && createVNode("div", {
|
|
124
130
|
"class": [ns.em("label", "content"), ns.is("tooltip", enableInputTip)]
|
|
125
131
|
}, [renderTipsIcon(), sysImage && createVNode(IBizIcon, {
|
|
@@ -133,7 +139,9 @@ const IBizFormItemContainer = /* @__PURE__ */ defineComponent({
|
|
|
133
139
|
return {
|
|
134
140
|
ns,
|
|
135
141
|
showError,
|
|
136
|
-
renderLabel
|
|
142
|
+
renderLabel,
|
|
143
|
+
semanticClass,
|
|
144
|
+
semanticStyle
|
|
137
145
|
};
|
|
138
146
|
},
|
|
139
147
|
render() {
|
|
@@ -145,10 +153,12 @@ const IBizFormItemContainer = /* @__PURE__ */ defineComponent({
|
|
|
145
153
|
const content = createVNode("div", {
|
|
146
154
|
"class": [this.ns.e("content"), this.ns.em("content", "label-".concat(labelPos == null ? void 0 : labelPos.toLowerCase()))]
|
|
147
155
|
}, [withDirectives(createVNode("div", {
|
|
148
|
-
"class": [this.ns.e("editor")]
|
|
156
|
+
"class": [this.ns.e("editor"), this.semanticClass("item.content", this.controller)],
|
|
157
|
+
"style": this.semanticStyle("item.content", this.controller)
|
|
149
158
|
}, [(_b = (_a = this.$slots).default) == null ? void 0 : _b.call(_a)]), [[resolveDirective("tooltip"), renderTooltip(this.controller.data, this.controller.model, this.controller.form)]]), this.showError && this.controller.state.error ? createVNode("div", {
|
|
150
159
|
"title": showTitle(this.controller.state.error),
|
|
151
|
-
"class": [this.ns.e("error")]
|
|
160
|
+
"class": [this.ns.e("error"), this.semanticClass("item.error", this.controller)],
|
|
161
|
+
"style": this.semanticStyle("item.error", this.controller)
|
|
152
162
|
}, [this.controller.state.error]) : null]);
|
|
153
163
|
return createVNode("div", {
|
|
154
164
|
"class": [this.ns.b(), this.ns.m(labelPos == null ? void 0 : labelPos.toLowerCase()), this.ns.is("required", this.controller.state.required), this.ns.is("error", !!this.controller.state.error)],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.ibiz-form-item{border-color:var(--ibiz-color-border);--ibiz-form-item-label-color:var(--ibiz-color-text-1);--ibiz-form-item-text-color:var(--ibiz-color-text-2);--ibiz-form-item-hover-color:var(--ibiz-color-text-0);--ibiz-form-item-hover-bg-color:var(--ibiz-color-fill-1);--ibiz-form-item-readonly-color:var(--ibiz-color-disabled-text);--ibiz-form-item-border-color:transparent;--ibiz-form-item-font-size:var(--ibiz-font-size-regular);--ibiz-form-item-placeholder-color:var(--ibiz-color-text-3);--ibiz-form-item-disabled-color:var(--ibiz-color-disabled-text);--ibiz-form-item-disabled-bg-color:var(--ibiz-color-disabled-fill);--ibiz-form-item-disabled-border-color:var(--ibiz-color-disabled-border);--ibiz-form-item-active-bg:var(--ibiz-color-fill-2);--ibiz-form-item-active-border:var(--ibiz-active-bg);--ibiz-form-item-focus-bg:var(--ibiz-color-fill-0);--ibiz-form-item-focus-border:var(--ibiz-color-focus-border);--ibiz-form-item-line-height:var(--ibiz-editor-default-line-height);--ibiz-form-item-font-weight:var(--ibiz-font-weight-regular);--ibiz-form-item-hover-edit-padding:var(--ibiz-spacing-none) 11px}.ibiz-form-item.is-compositeItem{--ibiz-form-
|
|
1
|
+
.ibiz-form-item{border-color:var(--ibiz-color-border);--ibiz-form-item-label-color:var(--ibiz-color-text-1);--ibiz-form-item-text-color:var(--ibiz-color-text-2);--ibiz-form-item-hover-color:var(--ibiz-color-text-0);--ibiz-form-item-hover-bg-color:var(--ibiz-color-fill-1);--ibiz-form-item-readonly-color:var(--ibiz-color-disabled-text);--ibiz-form-item-border-color:transparent;--ibiz-form-item-font-size:var(--ibiz-font-size-regular);--ibiz-form-item-placeholder-color:var(--ibiz-color-text-3);--ibiz-form-item-disabled-color:var(--ibiz-color-disabled-text);--ibiz-form-item-disabled-bg-color:var(--ibiz-color-disabled-fill);--ibiz-form-item-disabled-border-color:var(--ibiz-color-disabled-border);--ibiz-form-item-active-bg:var(--ibiz-color-fill-2);--ibiz-form-item-active-border:var(--ibiz-active-bg);--ibiz-form-item-focus-bg:var(--ibiz-color-fill-0);--ibiz-form-item-focus-border:var(--ibiz-color-focus-border);--ibiz-form-item-line-height:var(--ibiz-editor-default-line-height);--ibiz-form-item-font-weight:var(--ibiz-font-weight-regular);--ibiz-form-item-hover-edit-padding:var(--ibiz-spacing-none) 11px;--ibiz-form-item-label-font-size:var(--ibiz-font-size-regular);--ibiz-form-item-label-line-height:var(--ibiz-height-control-default);--ibiz-form-item-label-color:var(--ibiz-color-text-1);--ibiz-form-item-label-width:130px;--ibiz-form-item-label-left-padding:0 var(--ibiz-spacing-base-tight) 0 0;--ibiz-form-item-label-right-padding:0 0 0 var(--ibiz-spacing-base-tight);--ibiz-form-item-label-gap:var(--ibiz-spacing-extra-tight);--ibiz-form-item-label-require-color:var(--ibiz-color-danger);--ibiz-form-item-label-require-gap:var(--ibiz-spacing-extra-tight);--ibiz-form-item-icon-gap:var(--ibiz-spacing-extra-tight);--ibiz-form-item-error-font-size:var(--ibiz-font-size-small);--ibiz-form-item-error-color:var(--ibiz-color-danger)}.ibiz-form-item.is-compositeItem{--ibiz-form-compositeItem-gap:var(--ibiz-spacing-tight)}.ibiz-form-item.is-compositeItem .ibiz-form-item__composite-separator{line-height:var(--ibiz-form-item-container-line-height)}.ibiz-form-item.is-compositeItem .ibiz-form-item-container__editor{display:flex;gap:var(--ibiz-form-compositeItem-gap)}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { isVNode, defineComponent, createVNode, createTextVNode, resolveComponent, h, withDirectives, resolveDirective, computed } from 'vue';
|
|
2
|
-
import { renderTooltip, useNamespace, computedAsync } from '@ibiz-template/vue3-util';
|
|
2
|
+
import { renderTooltip, useNamespace, useSemanticNode, computedAsync } from '@ibiz-template/vue3-util';
|
|
3
3
|
import { CompositeFormItem } from './composite-form-item/composite-form-item.mjs';
|
|
4
4
|
import './form-item.css';
|
|
5
5
|
|
|
@@ -26,6 +26,10 @@ const FormItem = /* @__PURE__ */ defineComponent({
|
|
|
26
26
|
setup(props) {
|
|
27
27
|
const ns = useNamespace("form-item");
|
|
28
28
|
const c = props.controller;
|
|
29
|
+
const {
|
|
30
|
+
semanticClass,
|
|
31
|
+
semanticStyle
|
|
32
|
+
} = useSemanticNode(c.form);
|
|
29
33
|
const onValueChange = (val, name, ignore = false) => {
|
|
30
34
|
props.controller.setDataValue(val, name, ignore);
|
|
31
35
|
};
|
|
@@ -45,7 +49,9 @@ const FormItem = /* @__PURE__ */ defineComponent({
|
|
|
45
49
|
c,
|
|
46
50
|
showTitle,
|
|
47
51
|
CustomHtml,
|
|
48
|
-
onValueChange
|
|
52
|
+
onValueChange,
|
|
53
|
+
semanticClass,
|
|
54
|
+
semanticStyle
|
|
49
55
|
};
|
|
50
56
|
},
|
|
51
57
|
render() {
|
|
@@ -110,13 +116,14 @@ const FormItem = /* @__PURE__ */ defineComponent({
|
|
|
110
116
|
}
|
|
111
117
|
if (this.c.isCustomCode)
|
|
112
118
|
return withDirectives(createVNode("div", {
|
|
113
|
-
"class": [this.ns.b(), this.ns.e("script"), this.ns.m(this.modelData.id), this.ns.is("compositeItem", compositeItem), ...this.c.containerClass],
|
|
119
|
+
"class": [this.ns.b(), this.ns.e("script"), this.semanticClass("item", this.controller), this.ns.m(this.modelData.id), compositeItem ? this.semanticClass("compositeItem", this.controller) : "", this.ns.is("compositeItem", compositeItem), ...this.c.containerClass],
|
|
120
|
+
"style": [this.modelData.cssStyle, this.semanticStyle("item", this.controller), compositeItem ? this.semanticStyle("compositeItem", this.controller) : ""],
|
|
114
121
|
"innerHTML": this.CustomHtml
|
|
115
122
|
}, null), [[resolveDirective("tooltip"), renderTooltip(this.c.data, this.c.model, this.c.form)]]);
|
|
116
123
|
return createVNode(resolveComponent("iBizFormItemContainer"), {
|
|
117
124
|
"id": "".concat(this.c.form.view.model.codeName, "_").concat(this.c.form.model.codeName, "_").concat(this.modelData.codeName),
|
|
118
|
-
"class": [this.ns.b(), this.ns.m(this.modelData.id), this.ns.is("compositeItem", compositeItem), ...this.c.containerClass],
|
|
119
|
-
"style": this.modelData.cssStyle,
|
|
125
|
+
"class": [this.ns.b(), this.ns.m(this.modelData.id), this.semanticClass("item", this.controller), compositeItem ? this.semanticClass("compositeItem", this.controller) : "", this.ns.is("compositeItem", compositeItem), ...this.c.containerClass],
|
|
126
|
+
"style": [this.modelData.cssStyle, this.semanticStyle("item", this.controller), compositeItem ? this.semanticStyle("compositeItem", this.controller) : ""],
|
|
120
127
|
"controller": this.c,
|
|
121
128
|
"onClick": (event) => this.c.onClick(event)
|
|
122
129
|
}, _isSlot(editor) ? editor : {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.ibiz-form-mdctrl-form-item{display:flex}.ibiz-form-mdctrl-form-item__form{flex-grow:1}.ibiz-form-mdctrl-form-item-actions{flex-shrink:0;width:
|
|
1
|
+
.ibiz-form-mdctrl-form-item{display:flex}.ibiz-form-mdctrl-form-item__form{flex-grow:1}.ibiz-form-mdctrl-form-item-actions{flex-shrink:0;width:var(--ibiz-form-mdctrl-button-width);text-align:center}.ibiz-form-mdctrl-form-item-actions .el-button+.el-button{margin-left:var(--ibiz-spacing-none)}.ibiz-form-mdctrl-form-item-actions__btn{margin-top:var(--ibiz-form-mdctrl-button-gap)}.ibiz-form-mdctrl-form-no-data{width:100%;display:flex;justify-content:flex-end}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { isVNode, defineComponent, createVNode, resolveComponent, h, computed } from 'vue';
|
|
2
2
|
import { FormMDCtrlFormController } from '@ibiz-template/runtime';
|
|
3
|
-
import { useNamespace } from '@ibiz-template/vue3-util';
|
|
3
|
+
import { useNamespace, useSemanticNode } from '@ibiz-template/vue3-util';
|
|
4
4
|
import './form-mdctrl-form.css';
|
|
5
5
|
|
|
6
6
|
"use strict";
|
|
@@ -17,13 +17,18 @@ const FormMDCtrlForm = /* @__PURE__ */ defineComponent({
|
|
|
17
17
|
},
|
|
18
18
|
setup(props) {
|
|
19
19
|
const ns = useNamespace("form-mdctrl-form");
|
|
20
|
+
const {
|
|
21
|
+
semanticClass,
|
|
22
|
+
semanticStyle
|
|
23
|
+
} = useSemanticNode(props.controller.form);
|
|
20
24
|
const showActions = computed(() => {
|
|
21
25
|
return props.controller.enableCreate || props.controller.enableDelete;
|
|
22
26
|
});
|
|
23
27
|
const renderAddBtn = () => {
|
|
24
28
|
let _slot;
|
|
25
29
|
return createVNode(resolveComponent("el-button"), {
|
|
26
|
-
"class": [ns.be("item-actions", "create"), ns.be("item-actions", "btn")],
|
|
30
|
+
"class": [ns.be("item-actions", "create"), ns.be("item-actions", "btn"), semanticClass("mdctrl.button", props.controller, "create")],
|
|
31
|
+
"style": semanticStyle("mdctrl.button", props.controller, "create"),
|
|
27
32
|
"onClick": () => props.controller.create()
|
|
28
33
|
}, _isSlot(_slot = ibiz.i18n.t("app.add")) ? _slot : {
|
|
29
34
|
default: () => [_slot]
|
|
@@ -36,7 +41,9 @@ const FormMDCtrlForm = /* @__PURE__ */ defineComponent({
|
|
|
36
41
|
ns,
|
|
37
42
|
showActions,
|
|
38
43
|
onCreated,
|
|
39
|
-
renderAddBtn
|
|
44
|
+
renderAddBtn,
|
|
45
|
+
semanticClass,
|
|
46
|
+
semanticStyle
|
|
40
47
|
};
|
|
41
48
|
},
|
|
42
49
|
render() {
|
|
@@ -47,6 +54,8 @@ const FormMDCtrlForm = /* @__PURE__ */ defineComponent({
|
|
|
47
54
|
} = this.controller;
|
|
48
55
|
if (model.detailStyle === "STYLE2") {
|
|
49
56
|
return createVNode(resolveComponent("iBizMDCtrlContainer2"), {
|
|
57
|
+
"class": this.semanticClass("mdctrl", this.controller),
|
|
58
|
+
"style": this.semanticStyle("mdctrl", this.controller),
|
|
50
59
|
"controller": this.controller,
|
|
51
60
|
"items": state.items
|
|
52
61
|
}, {
|
|
@@ -57,7 +66,8 @@ const FormMDCtrlForm = /* @__PURE__ */ defineComponent({
|
|
|
57
66
|
return createVNode("div", null, [ibiz.i18n.t("control.form.formMDctrlForm.noFindProvider")]);
|
|
58
67
|
}
|
|
59
68
|
const formComponent = h(resolveComponent(formProvider.component), {
|
|
60
|
-
class: this.ns.be("item", "form"),
|
|
69
|
+
class: [this.ns.be("item", "form"), this.semanticClass("mdctrl.form", this.controller)],
|
|
70
|
+
style: this.semanticStyle("mdctrl.form", this.controller),
|
|
61
71
|
key: data.id,
|
|
62
72
|
modelData: model.contentControl,
|
|
63
73
|
context: data.context,
|
|
@@ -71,8 +81,10 @@ const FormMDCtrlForm = /* @__PURE__ */ defineComponent({
|
|
|
71
81
|
});
|
|
72
82
|
}
|
|
73
83
|
return createVNode(resolveComponent("iBizMDCtrlContainer"), {
|
|
74
|
-
"class": this.ns.b(),
|
|
84
|
+
"class": [this.ns.b(), this.semanticClass("mdctrl", this.controller)],
|
|
85
|
+
"style": this.semanticStyle("mdctrl", this.controller),
|
|
75
86
|
"items": state.items,
|
|
87
|
+
"controller": this.controller,
|
|
76
88
|
"enableCreate": this.controller.enableCreate,
|
|
77
89
|
"enableDelete": this.controller.enableDelete,
|
|
78
90
|
"onAddClick": () => this.controller.create(),
|
|
@@ -86,7 +98,8 @@ const FormMDCtrlForm = /* @__PURE__ */ defineComponent({
|
|
|
86
98
|
return createVNode("div", null, [ibiz.i18n.t("control.form.formMDctrlForm.noFindProvider")]);
|
|
87
99
|
}
|
|
88
100
|
const formComponent = h(resolveComponent(formProvider.component), {
|
|
89
|
-
class: this.ns.be("item", "form"),
|
|
101
|
+
class: [this.ns.be("item", "form"), this.semanticClass("mdctrl.form", this.controller)],
|
|
102
|
+
style: this.semanticStyle("mdctrl.form", this.controller),
|
|
90
103
|
key: data.id,
|
|
91
104
|
modelData: model.contentControl,
|
|
92
105
|
mdCtrlFormIndex: index,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.ibiz-form-mdctrl-md{--ibiz-form-mdctrl-md-empty-image-width:64px;--ibiz-form-mdctrl-md-empty-padding:var(--ibiz-spacing-none);--ibiz-form-mdctrl-md-empty-margin-top:var(--ibiz-spacing-tight);display:flex}.ibiz-form-mdctrl-md-content{flex-grow:1}.ibiz-form-mdctrl-md-content .ibiz-no-data{--el-empty-image-width:var(--ibiz-form-mdctrl-md-empty-image-width);--el-empty-description-margin-top:var(--ibiz-form-mdctrl-md-empty-margin-top);--el-empty-padding:var(--ibiz-form-mdctrl-md-empty-padding);line-height:1}.ibiz-form-mdctrl-md-actions{flex-shrink:0;width:
|
|
1
|
+
.ibiz-form-mdctrl-md{--ibiz-form-mdctrl-md-empty-image-width:64px;--ibiz-form-mdctrl-md-empty-padding:var(--ibiz-spacing-none);--ibiz-form-mdctrl-md-empty-margin-top:var(--ibiz-spacing-tight);display:flex}.ibiz-form-mdctrl-md-content{flex-grow:1}.ibiz-form-mdctrl-md-content .ibiz-no-data{--el-empty-image-width:var(--ibiz-form-mdctrl-md-empty-image-width);--el-empty-description-margin-top:var(--ibiz-form-mdctrl-md-empty-margin-top);--el-empty-padding:var(--ibiz-form-mdctrl-md-empty-padding);line-height:1}.ibiz-form-mdctrl-md-actions{flex-shrink:0;width:var(--ibiz-form-mdctrl-button-width);text-align:center}.ibiz-form-mdctrl-md-actions .el-button+.el-button{margin-left:var(--ibiz-spacing-none)}.ibiz-form-mdctrl-md-actions__btn{margin-bottom:var(--ibiz-form-mdctrl-button-gap)}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { isVNode, defineComponent, h, resolveComponent, createVNode, computed, ref } from 'vue';
|
|
2
2
|
import { FormMDCtrlMDController } from '@ibiz-template/runtime';
|
|
3
|
-
import { useNamespace } from '@ibiz-template/vue3-util';
|
|
3
|
+
import { useNamespace, useSemanticNode } from '@ibiz-template/vue3-util';
|
|
4
4
|
import './form-mdctrl-md.css';
|
|
5
5
|
import { showTitle } from '@ibiz-template/core';
|
|
6
6
|
|
|
@@ -18,6 +18,10 @@ const FormMDCtrlMD = /* @__PURE__ */ defineComponent({
|
|
|
18
18
|
},
|
|
19
19
|
setup(props) {
|
|
20
20
|
const ns = useNamespace("form-mdctrl-md");
|
|
21
|
+
const {
|
|
22
|
+
semanticClass,
|
|
23
|
+
semanticStyle
|
|
24
|
+
} = useSemanticNode(props.controller.form);
|
|
21
25
|
const showActions = computed(() => {
|
|
22
26
|
return props.controller.enableCreate || props.controller.enableDelete;
|
|
23
27
|
});
|
|
@@ -48,7 +52,8 @@ const FormMDCtrlMD = /* @__PURE__ */ defineComponent({
|
|
|
48
52
|
return createVNode(resolveComponent("el-button"), {
|
|
49
53
|
"type": "danger",
|
|
50
54
|
"disabled": !isSelected.value,
|
|
51
|
-
"class": [ns.be("actions", "remove"), ns.be("actions", "btn")]
|
|
55
|
+
"class": [ns.be("actions", "remove"), ns.be("actions", "btn"), semanticClass("mdctrl.button", props.controller, "remove")],
|
|
56
|
+
"style": semanticStyle("mdctrl.button", props.controller, "remove")
|
|
52
57
|
}, _isSlot(_slot = ibiz.i18n.t("app.delete")) ? _slot : {
|
|
53
58
|
default: () => [_slot]
|
|
54
59
|
});
|
|
@@ -58,7 +63,8 @@ const FormMDCtrlMD = /* @__PURE__ */ defineComponent({
|
|
|
58
63
|
return createVNode(resolveComponent("el-button"), {
|
|
59
64
|
"type": "danger",
|
|
60
65
|
"disabled": !isSelected.value,
|
|
61
|
-
"class": [ns.be("actions", "remove"), ns.be("actions", "btn")],
|
|
66
|
+
"class": [ns.be("actions", "remove"), ns.be("actions", "btn"), semanticClass("mdctrl.button", props.controller, "remove")],
|
|
67
|
+
"style": semanticStyle("mdctrl.button", props.controller, "remove"),
|
|
62
68
|
"onClick": () => handleRemove()
|
|
63
69
|
}, _isSlot(_slot2 = ibiz.i18n.t("app.delete")) ? _slot2 : {
|
|
64
70
|
default: () => [_slot2]
|
|
@@ -69,7 +75,9 @@ const FormMDCtrlMD = /* @__PURE__ */ defineComponent({
|
|
|
69
75
|
showActions,
|
|
70
76
|
onCreated,
|
|
71
77
|
onSelectionChange,
|
|
72
|
-
renderRemoveBtn
|
|
78
|
+
renderRemoveBtn,
|
|
79
|
+
semanticClass,
|
|
80
|
+
semanticStyle
|
|
73
81
|
};
|
|
74
82
|
},
|
|
75
83
|
render() {
|
|
@@ -80,7 +88,8 @@ const FormMDCtrlMD = /* @__PURE__ */ defineComponent({
|
|
|
80
88
|
} = this.controller;
|
|
81
89
|
let controlComponent = null;
|
|
82
90
|
const controlProps = {
|
|
83
|
-
class: this.ns.b("content"),
|
|
91
|
+
class: [this.ns.b("content"), this.semanticClass("mdctrl.md", this.controller)],
|
|
92
|
+
style: this.semanticStyle("mdctrl.md", this.controller),
|
|
84
93
|
modelData: model.contentControl,
|
|
85
94
|
context: this.controller.form.context,
|
|
86
95
|
params: this.controller.form.params,
|
|
@@ -93,11 +102,13 @@ const FormMDCtrlMD = /* @__PURE__ */ defineComponent({
|
|
|
93
102
|
}
|
|
94
103
|
controlComponent = h(resolveComponent(mdProvider.component), controlProps);
|
|
95
104
|
return createVNode("div", {
|
|
96
|
-
"class": this.ns.b()
|
|
105
|
+
"class": [this.ns.b(), this.semanticClass("mdctrl", this.controller)],
|
|
106
|
+
"style": this.semanticStyle("mdctrl", this.controller)
|
|
97
107
|
}, [controlComponent, this.showActions && createVNode("div", {
|
|
98
108
|
"class": this.ns.b("actions")
|
|
99
109
|
}, [this.controller.enableCreate && createVNode(resolveComponent("el-button"), {
|
|
100
|
-
"class": [this.ns.be("actions", "create"), this.ns.be("actions", "btn")],
|
|
110
|
+
"class": [this.ns.be("actions", "create"), this.ns.be("actions", "btn"), this.semanticClass("mdctrl.button", this.controller, "create")],
|
|
111
|
+
"style": this.semanticStyle("mdctrl.button", this.controller, "create"),
|
|
101
112
|
"onClick": () => this.controller.create()
|
|
102
113
|
}, _isSlot(_slot3 = ibiz.i18n.t("app.add")) ? _slot3 : {
|
|
103
114
|
default: () => [_slot3]
|