@ibiz-template/vue3-components 0.2.11 → 0.2.12
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-7GWpRewm.js +2 -0
- package/dist/ibiz-markdown-editor-7GWpRewm.js.map +1 -0
- package/dist/index.min.css +1 -1
- package/dist/index.system.min.js +5 -5
- package/dist/index.system.min.js.map +1 -1
- package/es/common/index.d.ts +0 -8
- package/es/common/index.mjs +2 -8
- package/es/control/chart/index.mjs +1 -2
- package/es/control/form/form-detail/form-druipart/form-druipart.css +1 -1
- package/es/control/form/form-detail/form-mdctrl/form-mdctrl-container/form-mdctrl-container.css +1 -1
- package/es/control/form/form-detail/form-mdctrl/form-mdctrl-container/form-mdctrl-container.d.ts +1 -0
- package/es/control/form/form-detail/form-mdctrl/form-mdctrl-container/form-mdctrl-container.mjs +7 -3
- package/es/control/form/form-detail/form-mdctrl/form-mdctrl-data-view/form-mdctrl-data-view.mjs +1 -1
- package/es/control/form/form-detail/form-mdctrl/form-mdctrl-form/form-mdctrl-form.mjs +1 -1
- package/es/control/form/form-detail/form-mdctrl/form-mdctrl-grid/form-mdctrl-grid.mjs +1 -1
- package/es/control/form/form-detail/form-mdctrl/form-mdctrl-list/form-mdctrl-list.mjs +1 -1
- package/es/control/toolbar/toolbar.mjs +2 -2
- package/es/control/tree/el-tree-util.d.ts +1 -1
- package/es/control/tree/index.d.ts +1 -1
- package/es/control/tree/tree.d.ts +1 -1
- package/es/devtool/index.mjs +1 -1
- package/es/editor/array/ibiz-array/ibiz-array.d.ts +1 -1
- package/es/editor/autocomplete/ibiz-autocomplete/ibiz-autocomplete.d.ts +1 -1
- package/es/editor/cascader/ibiz-cascader/ibiz-cascader.d.ts +1 -1
- package/es/editor/check-box/ibiz-checkbox/ibiz-checkbox.d.ts +1 -1
- package/es/editor/check-box-list/ibiz-checkbox-list/ibiz-checkbox-list.d.ts +1 -1
- package/es/editor/code/monaco-editor/monaco-editor.d.ts +1 -1
- package/es/editor/code/monaco-editor/monaco-editor.mjs +1 -3
- package/es/editor/color-picker/ibiz-color-picker/ibiz-color-picker.d.ts +1 -1
- package/es/editor/data-picker/ibiz-mpicker/ibiz-mpicker.d.ts +1 -1
- package/es/editor/data-picker/ibiz-picker/ibiz-picker.d.ts +1 -1
- package/es/editor/data-picker/ibiz-picker-dropdown/ibiz-picker-dropdown.d.ts +1 -1
- package/es/editor/data-picker/ibiz-picker-embed-view/ibiz-picker-embed-view.css +1 -1
- package/es/editor/data-picker/ibiz-picker-embed-view/ibiz-picker-embed-view.d.ts +1 -1
- package/es/editor/data-picker/ibiz-picker-link/ibiz-picker-link.d.ts +1 -1
- package/es/editor/data-picker/ibiz-picker-select-view/ibiz-picker-select-view.css +1 -1
- package/es/editor/data-picker/ibiz-picker-select-view/ibiz-picker-select-view.d.ts +4 -3
- package/es/editor/data-picker/ibiz-picker-select-view/ibiz-picker-select-view.mjs +25 -5
- package/es/editor/date-picker/ibiz-date-picker/ibiz-date-picker.d.ts +1 -1
- package/es/editor/date-range/ibiz-date-range-picker/ibiz-date-range-picker.d.ts +1 -1
- package/es/editor/dropdown-list/ibiz-dropdown/ibiz-dropdown.d.ts +1 -1
- package/es/editor/html/wang-editor/wang-editor.d.ts +1 -1
- package/es/editor/index.mjs +54 -1
- package/es/editor/list-box/ibiz-list-box/ibiz-list-box.d.ts +1 -1
- package/es/editor/markdown/ibiz-markdown-editor/ibiz-markdown-editor.mjs +1 -3
- package/es/editor/number-range/ibiz-number-range-picker/ibiz-number-range-picker.d.ts +1 -1
- package/es/editor/preset/preset-rawitem/ibiz-preset-rawitem/ibiz-preset-rawitem.d.ts +1 -1
- package/es/editor/radio-button-list/ibiz-radio/ibiz-radio.d.ts +1 -1
- package/es/editor/rate/ibiz-rate/ibiz-rate.d.ts +1 -1
- package/es/editor/raw/ibiz-raw/ibiz-raw.d.ts +1 -1
- package/es/editor/slider/ibiz-slider/ibiz-slider.d.ts +1 -1
- package/es/editor/span/span/span.d.ts +3 -3
- package/es/editor/span/span/span.mjs +30 -2
- package/es/editor/span/span-link/span-link.d.ts +3 -3
- package/es/editor/stepper/ibiz-stepper/ibiz-stepper.d.ts +1 -1
- package/es/editor/switch/ibiz-switch/ibiz-switch.d.ts +1 -1
- package/es/editor/text-box/ibiz-input-ip/ibiz-input-ip.d.ts +1 -1
- package/es/editor/text-box/ibiz-input-number/ibiz-input-number.d.ts +1 -1
- package/es/editor/text-box/input/input.d.ts +2 -2
- package/es/editor/upload/ibiz-file-upload/ibiz-file-upload.d.ts +1 -1
- package/es/editor/upload/ibiz-image-preview/ibiz-image-preview.d.ts +1 -1
- package/es/editor/upload/ibiz-image-upload/ibiz-image-upload.d.ts +1 -1
- package/es/index.mjs +4 -45
- package/es/node_modules/.pnpm/{element-plus@2.4.1_vue@3.3.7 → element-plus@2.4.2_vue@3.3.8}/node_modules/element-plus/dist/locale/zh-cn.mjs +1 -1
- package/es/panel-component/auth-userinfo/auth-userinfo.mjs +1 -3
- package/es/panel-component/index-actions/index-actions.d.ts +1 -1
- package/es/panel-component/index-actions/index-actions.mjs +1 -3
- package/es/panel-component/index-actions/index-actions.provider.mjs +1 -2
- package/es/panel-component/index-actions/index.d.ts +2 -2
- package/es/panel-component/index.d.ts +0 -7
- package/es/panel-component/index.mjs +2 -28
- package/es/panel-component/nav-pos-index/nav-pos-index.controller.mjs +1 -2
- package/es/panel-component/panel-button/index.d.ts +1 -1
- package/es/panel-component/panel-button/panel-button.d.ts +1 -1
- package/es/util/app-drawer/app-drawer-component.mjs +1 -4
- package/es/util/app-float-window/app-float-window-component.mjs +1 -4
- package/es/util/app-modal/app-modal-component.mjs +1 -4
- package/es/util/app-popover/app-popover-component.d.ts +1 -1
- package/es/util/app-popover/app-popover-component.mjs +1 -4
- package/es/util/index.d.ts +0 -4
- package/es/util/index.mjs +0 -6
- package/es/util/open-view-util/open-view-util.mjs +1 -3
- package/es/view/index.d.ts +0 -4
- package/es/view/index.mjs +0 -6
- package/lib/common/index.cjs +7 -20
- package/lib/control/chart/index.cjs +2 -3
- package/lib/control/form/form-detail/form-druipart/form-druipart.css +1 -1
- package/lib/control/form/form-detail/form-mdctrl/form-mdctrl-container/form-mdctrl-container.cjs +6 -2
- package/lib/control/form/form-detail/form-mdctrl/form-mdctrl-container/form-mdctrl-container.css +1 -1
- package/lib/control/form/form-detail/form-mdctrl/form-mdctrl-data-view/form-mdctrl-data-view.cjs +1 -1
- package/lib/control/form/form-detail/form-mdctrl/form-mdctrl-form/form-mdctrl-form.cjs +1 -1
- package/lib/control/form/form-detail/form-mdctrl/form-mdctrl-grid/form-mdctrl-grid.cjs +1 -1
- package/lib/control/form/form-detail/form-mdctrl/form-mdctrl-list/form-mdctrl-list.cjs +1 -1
- package/lib/control/toolbar/toolbar.cjs +2 -2
- package/lib/devtool/index.cjs +1 -1
- package/lib/editor/code/monaco-editor/monaco-editor.cjs +1 -3
- package/lib/editor/data-picker/ibiz-picker-embed-view/ibiz-picker-embed-view.css +1 -1
- package/lib/editor/data-picker/ibiz-picker-select-view/ibiz-picker-select-view.cjs +25 -5
- package/lib/editor/data-picker/ibiz-picker-select-view/ibiz-picker-select-view.css +1 -1
- package/lib/editor/index.cjs +54 -1
- package/lib/editor/markdown/ibiz-markdown-editor/ibiz-markdown-editor.cjs +1 -3
- package/lib/editor/span/span/span.cjs +30 -2
- package/lib/index.cjs +30 -114
- package/lib/node_modules/.pnpm/{element-plus@2.4.1_vue@3.3.7 → element-plus@2.4.2_vue@3.3.8}/node_modules/element-plus/dist/locale/zh-cn.cjs +1 -1
- package/lib/panel-component/auth-userinfo/auth-userinfo.cjs +1 -3
- package/lib/panel-component/index-actions/index-actions.cjs +1 -3
- package/lib/panel-component/index-actions/index-actions.provider.cjs +2 -3
- package/lib/panel-component/index.cjs +51 -101
- package/lib/panel-component/nav-pos-index/nav-pos-index.controller.cjs +3 -4
- package/lib/util/app-drawer/app-drawer-component.cjs +2 -5
- package/lib/util/app-float-window/app-float-window-component.cjs +2 -5
- package/lib/util/app-modal/app-modal-component.cjs +2 -5
- package/lib/util/app-popover/app-popover-component.cjs +2 -5
- package/lib/util/index.cjs +0 -12
- package/lib/util/open-view-util/open-view-util.cjs +6 -8
- package/lib/view/index.cjs +2 -14
- package/package.json +4 -4
- package/dist/ibiz-markdown-editor-ruHo8Z-f.js +0 -2
- package/dist/ibiz-markdown-editor-ruHo8Z-f.js.map +0 -1
- package/es/common/code-list/code-list.css +0 -1
- package/es/common/code-list/code-list.d.ts +0 -57
- package/es/common/code-list/code-list.mjs +0 -84
- package/es/common/control-base/control-base.css +0 -1
- package/es/common/control-base/control-base.d.ts +0 -1
- package/es/common/control-base/control-base.mjs +0 -98
- package/es/common/control-loading-placeholder/control-loading-placeholder.d.ts +0 -30
- package/es/common/control-loading-placeholder/control-loading-placeholder.mjs +0 -30
- package/es/common/control-shell/control-shell.css +0 -1
- package/es/common/control-shell/control-shell.d.ts +0 -20
- package/es/common/control-shell/control-shell.mjs +0 -55
- package/es/common/icon/icon.d.ts +0 -28
- package/es/common/icon/icon.mjs +0 -88
- package/es/common/router-view/router-view.d.ts +0 -29
- package/es/common/router-view/router-view.mjs +0 -75
- package/es/common/view-shell/view-shell.css +0 -1
- package/es/common/view-shell/view-shell.d.ts +0 -39
- package/es/common/view-shell/view-shell.mjs +0 -76
- package/es/panel-component/grid-container/grid-container.controller.d.ts +0 -14
- package/es/panel-component/grid-container/grid-container.controller.mjs +0 -12
- package/es/panel-component/grid-container/grid-container.css +0 -1
- package/es/panel-component/grid-container/grid-container.d.ts +0 -37
- package/es/panel-component/grid-container/grid-container.mjs +0 -105
- package/es/panel-component/grid-container/grid-container.provider.d.ts +0 -15
- package/es/panel-component/grid-container/grid-container.provider.mjs +0 -21
- package/es/panel-component/grid-container/grid-container.state.d.ts +0 -12
- package/es/panel-component/grid-container/grid-container.state.mjs +0 -7
- package/es/panel-component/grid-container/index.d.ts +0 -38
- package/es/panel-component/grid-container/index.mjs +0 -17
- package/es/panel-component/multi-data-container/index.d.ts +0 -37
- package/es/panel-component/multi-data-container/index.mjs +0 -20
- package/es/panel-component/multi-data-container/multi-data-container-item.controller.d.ts +0 -60
- package/es/panel-component/multi-data-container/multi-data-container-item.controller.mjs +0 -123
- package/es/panel-component/multi-data-container/multi-data-container-itm.state.d.ts +0 -19
- package/es/panel-component/multi-data-container/multi-data-container-itm.state.mjs +0 -23
- package/es/panel-component/multi-data-container/multi-data-container.controller.d.ts +0 -106
- package/es/panel-component/multi-data-container/multi-data-container.controller.mjs +0 -266
- package/es/panel-component/multi-data-container/multi-data-container.css +0 -1
- package/es/panel-component/multi-data-container/multi-data-container.d.ts +0 -35
- package/es/panel-component/multi-data-container/multi-data-container.mjs +0 -86
- package/es/panel-component/multi-data-container/multi-data-container.provider.d.ts +0 -15
- package/es/panel-component/multi-data-container/multi-data-container.provider.mjs +0 -21
- package/es/panel-component/multi-data-container/multi-data-container.state.d.ts +0 -19
- package/es/panel-component/multi-data-container/multi-data-container.state.mjs +0 -23
- package/es/panel-component/nav-pos/index.d.ts +0 -28
- package/es/panel-component/nav-pos/index.mjs +0 -14
- package/es/panel-component/nav-pos/nav-pos.controller.d.ts +0 -161
- package/es/panel-component/nav-pos/nav-pos.controller.mjs +0 -281
- package/es/panel-component/nav-pos/nav-pos.css +0 -1
- package/es/panel-component/nav-pos/nav-pos.d.ts +0 -28
- package/es/panel-component/nav-pos/nav-pos.mjs +0 -102
- package/es/panel-component/nav-pos/nav-pos.provider.d.ts +0 -22
- package/es/panel-component/nav-pos/nav-pos.provider.mjs +0 -30
- package/es/panel-component/nav-pos/nav-pos.state.d.ts +0 -49
- package/es/panel-component/nav-pos/nav-pos.state.mjs +0 -53
- package/es/panel-component/panel-container/index.d.ts +0 -27
- package/es/panel-component/panel-container/index.mjs +0 -21
- package/es/panel-component/panel-container/panel-container.controller.d.ts +0 -14
- package/es/panel-component/panel-container/panel-container.controller.mjs +0 -12
- package/es/panel-component/panel-container/panel-container.css +0 -1
- package/es/panel-component/panel-container/panel-container.d.ts +0 -26
- package/es/panel-component/panel-container/panel-container.mjs +0 -69
- package/es/panel-component/panel-container/panel-container.provider.d.ts +0 -15
- package/es/panel-component/panel-container/panel-container.provider.mjs +0 -21
- package/es/panel-component/panel-container/panel-container.state.d.ts +0 -12
- package/es/panel-component/panel-container/panel-container.state.mjs +0 -7
- package/es/panel-component/panel-ctrl-pos/index.d.ts +0 -25
- package/es/panel-component/panel-ctrl-pos/index.mjs +0 -13
- package/es/panel-component/panel-ctrl-pos/panel-ctrl-pos.controller.d.ts +0 -35
- package/es/panel-component/panel-ctrl-pos/panel-ctrl-pos.controller.mjs +0 -39
- package/es/panel-component/panel-ctrl-pos/panel-ctrl-pos.css +0 -1
- package/es/panel-component/panel-ctrl-pos/panel-ctrl-pos.d.ts +0 -24
- package/es/panel-component/panel-ctrl-pos/panel-ctrl-pos.mjs +0 -44
- package/es/panel-component/panel-ctrl-pos/panel-ctrl-pos.provider.d.ts +0 -16
- package/es/panel-component/panel-ctrl-pos/panel-ctrl-pos.provider.mjs +0 -21
- package/es/panel-component/panel-field/index.d.ts +0 -26
- package/es/panel-component/panel-field/index.mjs +0 -13
- package/es/panel-component/panel-field/panel-field.controller.d.ts +0 -74
- package/es/panel-component/panel-field/panel-field.controller.mjs +0 -111
- package/es/panel-component/panel-field/panel-field.css +0 -1
- package/es/panel-component/panel-field/panel-field.d.ts +0 -27
- package/es/panel-component/panel-field/panel-field.mjs +0 -72
- package/es/panel-component/panel-field/panel-field.provider.d.ts +0 -14
- package/es/panel-component/panel-field/panel-field.provider.mjs +0 -21
- package/es/panel-component/panel-field/panel-field.state.d.ts +0 -12
- package/es/panel-component/panel-field/panel-field.state.mjs +0 -7
- package/es/panel-component/panel-rawitem/index.d.ts +0 -25
- package/es/panel-component/panel-rawitem/index.mjs +0 -17
- package/es/panel-component/panel-rawitem/panel-rawitem.controller.d.ts +0 -28
- package/es/panel-component/panel-rawitem/panel-rawitem.controller.mjs +0 -28
- package/es/panel-component/panel-rawitem/panel-rawitem.css +0 -1
- package/es/panel-component/panel-rawitem/panel-rawitem.d.ts +0 -26
- package/es/panel-component/panel-rawitem/panel-rawitem.mjs +0 -49
- package/es/panel-component/panel-rawitem/panel-rawitem.provider.d.ts +0 -14
- package/es/panel-component/panel-rawitem/panel-rawitem.provider.mjs +0 -21
- package/es/panel-component/scroll-container/index.d.ts +0 -25
- package/es/panel-component/scroll-container/index.mjs +0 -45
- package/es/panel-component/scroll-container/scroll-container/index.d.ts +0 -3
- package/es/panel-component/scroll-container/scroll-container/index.mjs +0 -5
- package/es/panel-component/scroll-container/scroll-container/scroll-container.controller.d.ts +0 -22
- package/es/panel-component/scroll-container/scroll-container/scroll-container.controller.mjs +0 -12
- package/es/panel-component/scroll-container/scroll-container/scroll-container.css +0 -1
- package/es/panel-component/scroll-container/scroll-container/scroll-container.d.ts +0 -26
- package/es/panel-component/scroll-container/scroll-container/scroll-container.mjs +0 -111
- package/es/panel-component/scroll-container/scroll-container/scroll-container.provider.d.ts +0 -16
- package/es/panel-component/scroll-container/scroll-container/scroll-container.provider.mjs +0 -21
- package/es/panel-component/scroll-container/scroll-container-item/index.d.ts +0 -3
- package/es/panel-component/scroll-container/scroll-container-item/index.mjs +0 -5
- package/es/panel-component/scroll-container/scroll-container-item/scroll-container-item.controller.d.ts +0 -21
- package/es/panel-component/scroll-container/scroll-container-item/scroll-container-item.controller.mjs +0 -7
- package/es/panel-component/scroll-container/scroll-container-item/scroll-container-item.css +0 -1
- package/es/panel-component/scroll-container/scroll-container-item/scroll-container-item.d.ts +0 -26
- package/es/panel-component/scroll-container/scroll-container-item/scroll-container-item.mjs +0 -63
- package/es/panel-component/scroll-container/scroll-container-item/scroll-container-item.provider.d.ts +0 -16
- package/es/panel-component/scroll-container/scroll-container-item/scroll-container-item.provider.mjs +0 -21
- package/es/panel-component/single-data-container/index.d.ts +0 -37
- package/es/panel-component/single-data-container/index.mjs +0 -20
- package/es/panel-component/single-data-container/single-data-container.controller.d.ts +0 -121
- package/es/panel-component/single-data-container/single-data-container.controller.mjs +0 -291
- package/es/panel-component/single-data-container/single-data-container.css +0 -1
- package/es/panel-component/single-data-container/single-data-container.d.ts +0 -35
- package/es/panel-component/single-data-container/single-data-container.mjs +0 -76
- package/es/panel-component/single-data-container/single-data-container.provider.d.ts +0 -15
- package/es/panel-component/single-data-container/single-data-container.provider.mjs +0 -21
- package/es/panel-component/single-data-container/single-data-container.state.d.ts +0 -19
- package/es/panel-component/single-data-container/single-data-container.state.mjs +0 -23
- package/es/util/overlay-container/overlay-container.d.ts +0 -92
- package/es/util/overlay-container/overlay-container.mjs +0 -139
- package/es/util/overlay-popover-container/overlay-popover-container.d.ts +0 -16
- package/es/util/overlay-popover-container/overlay-popover-container.mjs +0 -10
- package/es/util/overlay-view-util/overlay-view-util.d.ts +0 -8
- package/es/util/overlay-view-util/overlay-view-util.mjs +0 -63
- package/es/util/router-callback/router-callback-item.d.ts +0 -61
- package/es/util/router-callback/router-callback-item.mjs +0 -88
- package/es/util/router-callback/router-callback.d.ts +0 -59
- package/es/util/router-callback/router-callback.mjs +0 -92
- package/es/util/store/app-store/app-store.d.ts +0 -9
- package/es/util/store/app-store/app-store.mjs +0 -10
- package/es/util/store/index.d.ts +0 -3
- package/es/util/store/index.mjs +0 -8
- package/es/util/store/ui-store/ui-store.d.ts +0 -31
- package/es/util/store/ui-store/ui-store.mjs +0 -15
- package/es/util/store/ui-store/z-index.d.ts +0 -34
- package/es/util/store/ui-store/z-index.mjs +0 -18
- package/es/view/app-redirect-view/app-redirect-view.d.ts +0 -1
- package/es/view/app-redirect-view/app-redirect-view.mjs +0 -27
- package/es/view/common/index.d.ts +0 -50
- package/es/view/common/index.mjs +0 -14
- package/es/view/common/view.css +0 -1
- package/es/view/common/view.d.ts +0 -52
- package/es/view/common/view.mjs +0 -137
- package/es/view/common/view.provider.d.ts +0 -13
- package/es/view/common/view.provider.mjs +0 -14
- package/es/view/portal-view/index.d.ts +0 -42
- package/es/view/portal-view/index.mjs +0 -20
- package/es/view/portal-view/portal-view.d.ts +0 -43
- package/es/view/portal-view/portal-view.mjs +0 -91
- package/es/view/portal-view/portal-view.provider.d.ts +0 -13
- package/es/view/portal-view/portal-view.provider.mjs +0 -14
- package/es/view/todo-redirect/todo-redirect.d.ts +0 -1
- package/es/view/todo-redirect/todo-redirect.mjs +0 -52
- package/lib/common/code-list/code-list.cjs +0 -86
- package/lib/common/code-list/code-list.css +0 -1
- package/lib/common/control-base/control-base.cjs +0 -100
- package/lib/common/control-base/control-base.css +0 -1
- package/lib/common/control-loading-placeholder/control-loading-placeholder.cjs +0 -32
- package/lib/common/control-shell/control-shell.cjs +0 -57
- package/lib/common/control-shell/control-shell.css +0 -1
- package/lib/common/icon/icon.cjs +0 -90
- package/lib/common/router-view/router-view.cjs +0 -77
- package/lib/common/view-shell/view-shell.cjs +0 -78
- package/lib/common/view-shell/view-shell.css +0 -1
- package/lib/panel-component/grid-container/grid-container.cjs +0 -107
- package/lib/panel-component/grid-container/grid-container.controller.cjs +0 -14
- package/lib/panel-component/grid-container/grid-container.css +0 -1
- package/lib/panel-component/grid-container/grid-container.provider.cjs +0 -23
- package/lib/panel-component/grid-container/grid-container.state.cjs +0 -9
- package/lib/panel-component/grid-container/index.cjs +0 -25
- package/lib/panel-component/multi-data-container/index.cjs +0 -28
- package/lib/panel-component/multi-data-container/multi-data-container-item.controller.cjs +0 -125
- package/lib/panel-component/multi-data-container/multi-data-container-itm.state.cjs +0 -25
- package/lib/panel-component/multi-data-container/multi-data-container.cjs +0 -88
- package/lib/panel-component/multi-data-container/multi-data-container.controller.cjs +0 -268
- package/lib/panel-component/multi-data-container/multi-data-container.css +0 -1
- package/lib/panel-component/multi-data-container/multi-data-container.provider.cjs +0 -23
- package/lib/panel-component/multi-data-container/multi-data-container.state.cjs +0 -25
- package/lib/panel-component/nav-pos/index.cjs +0 -22
- package/lib/panel-component/nav-pos/nav-pos.cjs +0 -104
- package/lib/panel-component/nav-pos/nav-pos.controller.cjs +0 -283
- package/lib/panel-component/nav-pos/nav-pos.css +0 -1
- package/lib/panel-component/nav-pos/nav-pos.provider.cjs +0 -32
- package/lib/panel-component/nav-pos/nav-pos.state.cjs +0 -55
- package/lib/panel-component/panel-container/index.cjs +0 -29
- package/lib/panel-component/panel-container/panel-container.cjs +0 -71
- package/lib/panel-component/panel-container/panel-container.controller.cjs +0 -14
- package/lib/panel-component/panel-container/panel-container.css +0 -1
- package/lib/panel-component/panel-container/panel-container.provider.cjs +0 -23
- package/lib/panel-component/panel-container/panel-container.state.cjs +0 -9
- package/lib/panel-component/panel-ctrl-pos/index.cjs +0 -20
- package/lib/panel-component/panel-ctrl-pos/panel-ctrl-pos.cjs +0 -46
- package/lib/panel-component/panel-ctrl-pos/panel-ctrl-pos.controller.cjs +0 -41
- package/lib/panel-component/panel-ctrl-pos/panel-ctrl-pos.css +0 -1
- package/lib/panel-component/panel-ctrl-pos/panel-ctrl-pos.provider.cjs +0 -23
- package/lib/panel-component/panel-field/index.cjs +0 -20
- package/lib/panel-component/panel-field/panel-field.cjs +0 -74
- package/lib/panel-component/panel-field/panel-field.controller.cjs +0 -113
- package/lib/panel-component/panel-field/panel-field.css +0 -1
- package/lib/panel-component/panel-field/panel-field.provider.cjs +0 -23
- package/lib/panel-component/panel-field/panel-field.state.cjs +0 -9
- package/lib/panel-component/panel-rawitem/index.cjs +0 -24
- package/lib/panel-component/panel-rawitem/panel-rawitem.cjs +0 -51
- package/lib/panel-component/panel-rawitem/panel-rawitem.controller.cjs +0 -30
- package/lib/panel-component/panel-rawitem/panel-rawitem.css +0 -1
- package/lib/panel-component/panel-rawitem/panel-rawitem.provider.cjs +0 -23
- package/lib/panel-component/scroll-container/index.cjs +0 -56
- package/lib/panel-component/scroll-container/scroll-container/index.cjs +0 -11
- package/lib/panel-component/scroll-container/scroll-container/scroll-container.cjs +0 -113
- package/lib/panel-component/scroll-container/scroll-container/scroll-container.controller.cjs +0 -14
- package/lib/panel-component/scroll-container/scroll-container/scroll-container.css +0 -1
- package/lib/panel-component/scroll-container/scroll-container/scroll-container.provider.cjs +0 -23
- package/lib/panel-component/scroll-container/scroll-container-item/index.cjs +0 -11
- package/lib/panel-component/scroll-container/scroll-container-item/scroll-container-item.cjs +0 -65
- package/lib/panel-component/scroll-container/scroll-container-item/scroll-container-item.controller.cjs +0 -9
- package/lib/panel-component/scroll-container/scroll-container-item/scroll-container-item.css +0 -1
- package/lib/panel-component/scroll-container/scroll-container-item/scroll-container-item.provider.cjs +0 -23
- package/lib/panel-component/single-data-container/index.cjs +0 -28
- package/lib/panel-component/single-data-container/single-data-container.cjs +0 -78
- package/lib/panel-component/single-data-container/single-data-container.controller.cjs +0 -293
- package/lib/panel-component/single-data-container/single-data-container.css +0 -1
- package/lib/panel-component/single-data-container/single-data-container.provider.cjs +0 -23
- package/lib/panel-component/single-data-container/single-data-container.state.cjs +0 -25
- package/lib/util/overlay-container/overlay-container.cjs +0 -141
- package/lib/util/overlay-popover-container/overlay-popover-container.cjs +0 -12
- package/lib/util/overlay-view-util/overlay-view-util.cjs +0 -70
- package/lib/util/router-callback/router-callback-item.cjs +0 -90
- package/lib/util/router-callback/router-callback.cjs +0 -95
- package/lib/util/store/app-store/app-store.cjs +0 -12
- package/lib/util/store/index.cjs +0 -12
- package/lib/util/store/ui-store/ui-store.cjs +0 -17
- package/lib/util/store/ui-store/z-index.cjs +0 -20
- package/lib/view/app-redirect-view/app-redirect-view.cjs +0 -29
- package/lib/view/common/index.cjs +0 -17
- package/lib/view/common/view.cjs +0 -139
- package/lib/view/common/view.css +0 -1
- package/lib/view/common/view.provider.cjs +0 -16
- package/lib/view/portal-view/index.cjs +0 -23
- package/lib/view/portal-view/portal-view.cjs +0 -93
- package/lib/view/portal-view/portal-view.provider.cjs +0 -16
- package/lib/view/todo-redirect/todo-redirect.cjs +0 -54
|
@@ -4,10 +4,7 @@ var vue = require('vue');
|
|
|
4
4
|
var dom = require('@floating-ui/dom');
|
|
5
5
|
var runtime = require('@ibiz-template/runtime');
|
|
6
6
|
var vue3Util = require('@ibiz-template/vue3-util');
|
|
7
|
-
var overlayPopoverContainer = require('../overlay-popover-container/overlay-popover-container.cjs');
|
|
8
|
-
require('../store/index.cjs');
|
|
9
7
|
require('./app-popover-component.css');
|
|
10
|
-
var uiStore = require('../store/ui-store/ui-store.cjs');
|
|
11
8
|
|
|
12
9
|
"use strict";
|
|
13
10
|
async function computePos(element, el, arrEl, opts) {
|
|
@@ -73,7 +70,7 @@ const AppPopoverComponent = /* @__PURE__ */ vue.defineComponent({
|
|
|
73
70
|
});
|
|
74
71
|
const {
|
|
75
72
|
zIndex
|
|
76
|
-
} =
|
|
73
|
+
} = vue3Util.useUIStore();
|
|
77
74
|
const popoverZIndex = zIndex.increment();
|
|
78
75
|
function onMouseenter(e) {
|
|
79
76
|
e.stopPropagation();
|
|
@@ -172,7 +169,7 @@ const AppPopoverComponent = /* @__PURE__ */ vue.defineComponent({
|
|
|
172
169
|
}
|
|
173
170
|
});
|
|
174
171
|
function createPopover(render, opts) {
|
|
175
|
-
return new
|
|
172
|
+
return new vue3Util.OverlayPopoverContainer(AppPopoverComponent, render, opts);
|
|
176
173
|
}
|
|
177
174
|
|
|
178
175
|
exports.createPopover = createPopover;
|
package/lib/util/index.cjs
CHANGED
|
@@ -6,14 +6,8 @@ var modalUtil = require('./modal-util/modal-util.cjs');
|
|
|
6
6
|
var confirmUtil = require('./confirm-util/confirm-util.cjs');
|
|
7
7
|
var notificationUtil = require('./notification-util/notification-util.cjs');
|
|
8
8
|
var openViewUtil = require('./open-view-util/open-view-util.cjs');
|
|
9
|
-
var overlayContainer = require('./overlay-container/overlay-container.cjs');
|
|
10
9
|
var overlayController = require('./overlay-controller/overlay-controller.cjs');
|
|
11
|
-
var overlayPopoverContainer = require('./overlay-popover-container/overlay-popover-container.cjs');
|
|
12
|
-
var routerCallback = require('./router-callback/router-callback.cjs');
|
|
13
|
-
var index = require('./store/index.cjs');
|
|
14
10
|
var usePagination = require('./pagination/use-pagination.cjs');
|
|
15
|
-
var appStore = require('./store/app-store/app-store.cjs');
|
|
16
|
-
var uiStore = require('./store/ui-store/ui-store.cjs');
|
|
17
11
|
|
|
18
12
|
"use strict";
|
|
19
13
|
|
|
@@ -23,11 +17,5 @@ exports.ModalUtil = modalUtil.ModalUtil;
|
|
|
23
17
|
exports.ConfirmUtil = confirmUtil.ConfirmUtil;
|
|
24
18
|
exports.NotificationUtil = notificationUtil.NotificationUtil;
|
|
25
19
|
exports.OpenViewUtil = openViewUtil.OpenViewUtil;
|
|
26
|
-
exports.OverlayContainer = overlayContainer.OverlayContainer;
|
|
27
20
|
exports.OverlayController = overlayController.OverlayController;
|
|
28
|
-
exports.OverlayPopoverContainer = overlayPopoverContainer.OverlayPopoverContainer;
|
|
29
|
-
exports.routerCallback = routerCallback.routerCallback;
|
|
30
|
-
exports.piniaInstance = index.piniaInstance;
|
|
31
21
|
exports.usePagination = usePagination.usePagination;
|
|
32
|
-
exports.useAppStore = appStore.useAppStore;
|
|
33
|
-
exports.useUIStore = uiStore.useUIStore;
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var vue3Util = require('@ibiz-template/vue3-util');
|
|
4
|
-
var overlayViewUtil = require('../overlay-view-util/overlay-view-util.cjs');
|
|
5
|
-
var routerCallback = require('../router-callback/router-callback.cjs');
|
|
6
4
|
|
|
7
5
|
"use strict";
|
|
8
6
|
class OpenViewUtil {
|
|
@@ -11,7 +9,7 @@ class OpenViewUtil {
|
|
|
11
9
|
this.router = router;
|
|
12
10
|
}
|
|
13
11
|
push(path) {
|
|
14
|
-
return
|
|
12
|
+
return vue3Util.routerCallback.open(this.router, path);
|
|
15
13
|
}
|
|
16
14
|
async root(appViewId, context, params) {
|
|
17
15
|
const appView = await ibiz.hub.config.view.get(appViewId);
|
|
@@ -21,7 +19,7 @@ class OpenViewUtil {
|
|
|
21
19
|
context,
|
|
22
20
|
params
|
|
23
21
|
);
|
|
24
|
-
return
|
|
22
|
+
return vue3Util.routerCallback.open(this.router, path);
|
|
25
23
|
}
|
|
26
24
|
/**
|
|
27
25
|
* 模态打开视图
|
|
@@ -40,7 +38,7 @@ class OpenViewUtil {
|
|
|
40
38
|
height: appView.height || "80%",
|
|
41
39
|
footerHide: true
|
|
42
40
|
};
|
|
43
|
-
return
|
|
41
|
+
return vue3Util.openViewModal(
|
|
44
42
|
{
|
|
45
43
|
context,
|
|
46
44
|
params,
|
|
@@ -51,7 +49,7 @@ class OpenViewUtil {
|
|
|
51
49
|
}
|
|
52
50
|
async popover(appViewId, event, context, params) {
|
|
53
51
|
const appView = await ibiz.hub.config.view.get(appViewId);
|
|
54
|
-
return
|
|
52
|
+
return vue3Util.openViewPopover(
|
|
55
53
|
event,
|
|
56
54
|
{
|
|
57
55
|
context,
|
|
@@ -73,13 +71,13 @@ class OpenViewUtil {
|
|
|
73
71
|
*/
|
|
74
72
|
async drawer(appViewId, context, params) {
|
|
75
73
|
const appView = await ibiz.hub.config.view.get(appViewId);
|
|
76
|
-
const placement =
|
|
74
|
+
const placement = vue3Util.getDrawerPlacement(appView.openMode);
|
|
77
75
|
const opts = {
|
|
78
76
|
width: appView.width,
|
|
79
77
|
height: appView.height,
|
|
80
78
|
placement
|
|
81
79
|
};
|
|
82
|
-
return
|
|
80
|
+
return vue3Util.openViewDrawer(
|
|
83
81
|
{
|
|
84
82
|
context,
|
|
85
83
|
params,
|
package/lib/view/index.cjs
CHANGED
|
@@ -1,25 +1,13 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var _404View = require('./404-view/404-view.cjs');
|
|
4
|
-
var appRedirectView = require('./app-redirect-view/app-redirect-view.cjs');
|
|
5
|
-
var index = require('./common/index.cjs');
|
|
6
4
|
var loginView = require('./login-view/login-view.cjs');
|
|
7
|
-
var
|
|
8
|
-
var index$1 = require('./portal-view/index.cjs');
|
|
9
|
-
var index$2 = require('./wf-step-trace-view/index.cjs');
|
|
10
|
-
var view_provider = require('./common/view.provider.cjs');
|
|
11
|
-
var portalView_provider = require('./portal-view/portal-view.provider.cjs');
|
|
5
|
+
var index = require('./wf-step-trace-view/index.cjs');
|
|
12
6
|
var wfStepTraceView_provider = require('./wf-step-trace-view/wf-step-trace-view.provider.cjs');
|
|
13
7
|
|
|
14
8
|
"use strict";
|
|
15
9
|
|
|
16
10
|
exports.View404 = _404View.View404;
|
|
17
|
-
exports.AppRedirectView = appRedirectView.AppRedirectView;
|
|
18
|
-
exports.IBizView = index.IBizView;
|
|
19
11
|
exports.LoginView = loginView.LoginView;
|
|
20
|
-
exports.
|
|
21
|
-
exports.IBizPortalView = index$1.IBizPortalView;
|
|
22
|
-
exports.IBizWFStepTraceView = index$2.IBizWFStepTraceView;
|
|
23
|
-
exports.ViewProvider = view_provider.ViewProvider;
|
|
24
|
-
exports.PortalViewProvider = portalView_provider.PortalViewProvider;
|
|
12
|
+
exports.IBizWFStepTraceView = index.IBizWFStepTraceView;
|
|
25
13
|
exports.WFStepTraceViewProvider = wfStepTraceView_provider.WFStepTraceViewProvider;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ibiz-template/vue3-components",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.12",
|
|
4
4
|
"description": "使用 rollup 编译 vue 组件或者 jsx",
|
|
5
5
|
"main": "lib/index.cjs",
|
|
6
6
|
"module": "es/index.mjs",
|
|
@@ -26,10 +26,10 @@
|
|
|
26
26
|
"@floating-ui/dom": "^1.5.3",
|
|
27
27
|
"@ibiz-template-plugin/ai-chat": "^0.0.1",
|
|
28
28
|
"@ibiz-template/core": "^0.2.6",
|
|
29
|
-
"@ibiz-template/model-helper": "^0.2.
|
|
30
|
-
"@ibiz-template/runtime": "^0.2.
|
|
29
|
+
"@ibiz-template/model-helper": "^0.2.12",
|
|
30
|
+
"@ibiz-template/runtime": "^0.2.12",
|
|
31
31
|
"@ibiz-template/theme": "^0.2.0",
|
|
32
|
-
"@ibiz-template/vue3-util": "^0.2.
|
|
32
|
+
"@ibiz-template/vue3-util": "^0.2.12",
|
|
33
33
|
"@ibiz/model-core": "^0.0.20",
|
|
34
34
|
"@imengyu/vue3-context-menu": "^1.3.3",
|
|
35
35
|
"@monaco-editor/loader": "^1.4.0",
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
System.register(["vue","@ibiz-template/vue3-util","qx-util","cherry-markdown","@ibiz-template/core","element-plus","./index.system.min.js","lodash-es","@floating-ui/dom","@ibiz-template/runtime","interactjs","ramda","dayjs","vue-router","pinia","vuedraggable","qs","vue-i18n"],function(q){"use strict";var p,o,s,k,w,v,C,y,U,M,x,z,D,I,B;return{setters:[function(t){p=t.defineComponent,o=t.ref,s=t.watch,k=t.onMounted,w=t.onUnmounted,v=t.createVNode,C=t.nextTick},function(t){y=t.getMarkDownProps,U=t.getEditorEmits,M=t.useNamespace},function(t){x=t.createUUID,z=t.getCookie},function(t){D=t.default},function(t){I=t.CoreConst},null,function(t){B=t.useUIStore},null,null,null,null,null,null,null,null,null,null,null],execute:function(){const t=q("default",p({name:"IBizMarkDown",props:y(),emits:U(),setup(d,{emit:R}){const f=M("markdown"),i=d.controller,u=o(""),l=o(null),O=x(),j=o({Authorization:`Bearer ${z(I.TOKEN)}`}),E=o(""),S=o(""),{UIStore:N}=B(),c=o(N.theme),m=o("editOnly");let T=null,_=0;const b=o({});s(()=>d.data,e=>{if(e){const n=i.calcBaseUrl(e);E.value=n.uploadUrl,S.value=n.downloadUrl}},{immediate:!0,deep:!0});const h=o(),V=(e,n)=>{const r=new FormData;r.append("file",e),ibiz.net.axios({url:E.value,method:"post",headers:j.value,data:r}).then(a=>{if(a.status===200&&a.data.fileid){const K=S.value.replace("%fileId%",a.data.fileid);n(K)}}).catch(a=>{ibiz.log.error("\u4E0A\u4F20\u51FA\u9519",a)})},A=()=>{var e;return(e=l.value)==null?void 0:e.getHtml()},g=()=>{var e;return(e=l.value)==null?void 0:e.getMarkdown()},$=e=>{var n;(n=l.value)==null||n.setMarkdown(e,!1)};s(()=>d.value,(e,n)=>{e!==n&&(e?u.value=e:u.value="")},{immediate:!0}),s(u,(e,n)=>{const r=g();e!==n&&r!==e&&$(e)});const F=e=>{R("change",g())},P=(e,n)=>({[e]:n}),H=()=>{d.disabled&&(m.value="previewOnly"),C(()=>{l.value=new D({id:O,value:u.value,theme:c.value,fileUpload:V,emoji:{useUnicode:!0},header:{anchorStyle:"autonumber"},editor:{height:"100%",defaultModel:m.value,codemirror:{autofocus:!1}},toolbars:{theme:c.value,toolbar:["bold","italic","underline","strikethrough","|","color","header","|","list","image",{insert:["link","hr","br","code","formula","toc","table","line-table","bar-table"]},"settings","togglePreview"],bubble:["bold","italic","underline","strikethrough","sub","sup","|","size","color"],float:["h1","h2","h3","|","checklist","quote","quickTable","code"],customMenu:[],sidebar:[]},callback:{afterChange:F,beforeImageMounted:P}})})};s(()=>N.theme,e=>{var n;c.value=e,(n=l.value)==null||n.setTheme(c.value)});const W=()=>{if(window.ResizeObserver&&h.value){const e={width:`${h.value.offsetWidth}px`};typeof i.parent.model.height=="number"&&Object.assign(e,{height:`${i.parent.model.height}px`}),b.value=f.cssVarBlock(e),T=new ResizeObserver(n=>{const r=n[0].contentRect.width;if(r!==_){const a={width:`${n[0].contentRect.width}px`};typeof i.parent.model.height=="number"&&Object.assign(a,{height:`${i.parent.model.height}px`}),b.value=f.cssVarBlock(a),_=r}}),T.observe(h.value)}};return k(()=>{H(),W()}),w(()=>{l.value=null}),{ns:f,currentVal:u,id:O,editor:l,markDownBox:h,headers:j,theme:c,defaultModel:m,cssVars:b,getCherryHtml:A,getCherryContent:g,setCherryContent:$}},render(){return v("div",{ref:"markDownBox",class:[this.ns.b(),this.ns.is("disabled",this.disabled)]},[v("div",{id:this.id,style:this.cssVars,class:this.ns.b("cherry")},null)])}}))}}});
|
|
2
|
-
//# sourceMappingURL=ibiz-markdown-editor-ruHo8Z-f.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ibiz-markdown-editor-ruHo8Z-f.js","sources":["../src/editor/markdown/ibiz-markdown-editor/ibiz-markdown-editor.tsx"],"sourcesContent":["import {\n defineComponent,\n nextTick,\n onMounted,\n onUnmounted,\n Ref,\n ref,\n watch,\n} from 'vue';\nimport {\n getMarkDownProps,\n getEditorEmits,\n useNamespace,\n} from '@ibiz-template/vue3-util';\nimport { getCookie, createUUID } from 'qx-util';\nimport Cherry from 'cherry-markdown';\nimport { CoreConst } from '@ibiz-template/core';\nimport { MarkDownEditorController } from '../markdown-editor.controller';\nimport { useUIStore } from '../../../util';\nimport './ibiz-markdown-editor.scss';\n\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nconst IBizMarkDown: any = defineComponent({\n name: 'IBizMarkDown',\n props: getMarkDownProps<MarkDownEditorController>(),\n emits: getEditorEmits(),\n setup(props, { emit }) {\n const ns = useNamespace('markdown');\n\n const c = props.controller!;\n\n const currentVal = ref<string>('');\n\n const editor = ref<Cherry | null>(null);\n\n const id = createUUID();\n\n // 请求头\n const headers: Ref<IData> = ref({\n Authorization: `Bearer ${getCookie(CoreConst.TOKEN)}`,\n });\n\n // 上传文件路径\n const uploadUrl: Ref<string> = ref('');\n\n // 下载文件路径\n const downloadUrl: Ref<string> = ref('');\n\n // 编辑器主题\n const { UIStore } = useUIStore();\n const theme = ref(UIStore.theme);\n\n // 编辑器模式\n const defaultModel = ref('editOnly');\n\n // 浏览器ResizeObserver对象\n let resizeObserver: ResizeObserver | null = null;\n\n // 上次监听到的markdown外层宽度,一旦发生变化就重新计算\n let lastMarkDownWidth = 0;\n\n // 样式变量\n const cssVars = ref({});\n\n // data响应式变更基础路径\n watch(\n () => props.data,\n newVal => {\n if (newVal) {\n const urls = c.calcBaseUrl(newVal);\n uploadUrl.value = urls.uploadUrl;\n downloadUrl.value = urls.downloadUrl;\n }\n },\n { immediate: true, deep: true },\n );\n\n // markdown Ref\n const markDownBox = ref();\n\n // 自定义图片上传\n const fileUpload = (file: Blob, callback: (_url: string) => void) => {\n const formData = new FormData();\n formData.append('file', file);\n ibiz.net\n .axios({\n url: uploadUrl.value,\n method: 'post',\n headers: headers.value,\n data: formData,\n })\n .then((res: IData) => {\n if (res.status === 200 && res.data.fileid) {\n const url = downloadUrl.value.replace('%fileId%', res.data.fileid);\n callback(url);\n }\n })\n .catch(error => {\n ibiz.log.error('上传出错', error);\n });\n };\n\n // 获取渲染后html内容\n const getCherryHtml = () => {\n const result = editor.value?.getHtml();\n return result;\n };\n\n // 获取markdown内容\n const getCherryContent = () => {\n const result = editor.value?.getMarkdown();\n return result;\n };\n\n // 设置markdown内容\n const setCherryContent = (val: string) => {\n editor.value?.setMarkdown(val, false);\n };\n\n watch(\n () => props.value,\n (newVal, oldVal) => {\n if (newVal !== oldVal) {\n if (!newVal) {\n currentVal.value = '';\n } else {\n currentVal.value = newVal;\n }\n }\n },\n { immediate: true },\n );\n\n watch(currentVal, (newVal, oldVal) => {\n const content = getCherryContent();\n if (newVal !== oldVal && content !== newVal) {\n setCherryContent(newVal);\n }\n });\n\n // 变更事件回调\n const afterChange = (_e: IData) => {\n emit('change', getCherryContent());\n };\n\n // 图片加载回调\n const beforeImageMounted = (e: string, src: string) => {\n return { [e]: src };\n };\n\n const editorInit = () => {\n if (props.disabled) {\n defaultModel.value = 'previewOnly';\n }\n nextTick(() => {\n editor.value = new Cherry({\n id,\n value: currentVal.value,\n theme: theme.value,\n fileUpload,\n emoji: {\n useUnicode: true,\n },\n header: {\n anchorStyle: 'autonumber',\n },\n editor: {\n // 编辑器的高度,默认100%,如果挂载点存在内联设置的height则以内联样式为主\n height: '100%',\n // defaultModel 编辑器初始化后的默认模式,一共有三种模式:1、双栏编辑预览模式;2、纯编辑模式;3、预览模式\n // edit&preview: 双栏编辑预览模式\n // editOnly: 纯编辑模式(没有预览,可通过toolbar切换成双栏或预览模式)\n // previewOnly: 预览模式(没有编辑框,toolbar只显示“返回编辑”按钮,可通过toolbar切换成编辑模式)\n defaultModel: defaultModel.value,\n codemirror: {\n // 是否自动focus 默认为true\n autofocus: false,\n },\n },\n toolbars: {\n theme: theme.value,\n toolbar: [\n 'bold',\n 'italic',\n 'underline',\n 'strikethrough',\n '|',\n 'color',\n 'header',\n '|',\n 'list',\n 'image',\n {\n insert: [\n 'link',\n 'hr',\n 'br',\n 'code',\n 'formula',\n 'toc',\n 'table',\n 'line-table',\n 'bar-table',\n ],\n },\n 'settings',\n 'togglePreview',\n ],\n bubble: [\n 'bold',\n 'italic',\n 'underline',\n 'strikethrough',\n 'sub',\n 'sup',\n '|',\n 'size',\n 'color',\n ],\n float: [\n 'h1',\n 'h2',\n 'h3',\n '|',\n 'checklist',\n 'quote',\n 'quickTable',\n 'code',\n ],\n customMenu: [],\n sidebar: [],\n },\n callback: {\n afterChange,\n beforeImageMounted,\n },\n });\n });\n };\n\n watch(\n () => UIStore.theme,\n newVal => {\n theme.value = newVal;\n editor.value?.setTheme(theme.value);\n },\n );\n\n const calcMarkDownStyle = () => {\n if (window.ResizeObserver && markDownBox.value) {\n const tempCssVars = {\n width: `${markDownBox.value.offsetWidth}px`,\n };\n if (typeof c.parent.model.height === 'number') {\n Object.assign(tempCssVars, {\n height: `${c.parent.model.height}px`,\n });\n }\n cssVars.value = ns.cssVarBlock(tempCssVars);\n resizeObserver = new ResizeObserver(entries => {\n // 处理组件高度变化\n const width = entries[0].contentRect.width;\n if (width !== lastMarkDownWidth) {\n const tempCssVars2 = {\n width: `${entries[0].contentRect.width}px`,\n };\n if (typeof c.parent.model.height === 'number') {\n Object.assign(tempCssVars2, {\n height: `${c.parent.model.height}px`,\n });\n }\n cssVars.value = ns.cssVarBlock(tempCssVars2);\n lastMarkDownWidth = width;\n }\n });\n resizeObserver.observe(markDownBox.value);\n }\n };\n\n onMounted(() => {\n editorInit();\n calcMarkDownStyle();\n });\n\n onUnmounted(() => {\n editor.value = null;\n });\n\n return {\n ns,\n currentVal,\n id,\n editor,\n markDownBox,\n headers,\n theme,\n defaultModel,\n cssVars,\n getCherryHtml,\n getCherryContent,\n setCherryContent,\n };\n },\n render() {\n return (\n <div\n ref='markDownBox'\n class={[this.ns.b(), this.ns.is('disabled', this.disabled)]}\n >\n <div\n id={this.id}\n style={this.cssVars}\n class={this.ns.b('cherry')}\n ></div>\n </div>\n );\n },\n});\n\nexport default IBizMarkDown;\n"],"names":["IBizMarkDown","exports","defineComponent","name","getMarkDownProps","props","emits","setup","emit","ns","useNamespace","c","ref","currentVal","editor","createUUID","id","headers","Authorization","getCookie","useUIStore","uploadUrl","resizeObserver","lastMarkDownWidth","watch","newVal","UIStore","urls","downloadUrl","formData","file","res","value","error","immediate","deep","getCherryHtml","_a","getCherryContent","fileUpload","FormData","ibiz","setCherryContent","val","method","data","oldVal","status","callback","result","content","getMarkdown","beforeImageMounted","src","editorInit","Cherry","theme","disabled","nextTick","emoji","useUnicode","header","anchorStyle","height","calcMarkDownStyle","markDownBox","tempCssVars","codemirror","autofocus","toolbars","insert","entries","width","bubble","float","customMenu","sidebar","tempCssVars2","cssVars","onMounted","parent","Object","defaultModel","cssVarBlock","_createVNode"],"mappings":"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"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.ibiz-code-list__item{color:var(--ibiz-code-list-item-color)}
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import { CodeListItem } from '@ibiz-template/runtime';
|
|
2
|
-
import { PropType } from 'vue';
|
|
3
|
-
import { IAppCodeList } from '@ibiz/model-core';
|
|
4
|
-
import './code-list.scss';
|
|
5
|
-
export declare const IBizCodeList: import("vue").DefineComponent<{
|
|
6
|
-
codeListItems: {
|
|
7
|
-
type: {
|
|
8
|
-
(arrayLength: number): CodeListItem[];
|
|
9
|
-
(...items: CodeListItem[]): CodeListItem[];
|
|
10
|
-
new (arrayLength: number): CodeListItem[];
|
|
11
|
-
new (...items: CodeListItem[]): CodeListItem[];
|
|
12
|
-
isArray(arg: any): arg is any[];
|
|
13
|
-
readonly prototype: any[];
|
|
14
|
-
from<T>(arrayLike: ArrayLike<T>): T[];
|
|
15
|
-
from<T_1, U>(arrayLike: ArrayLike<T_1>, mapfn: (v: T_1, k: number) => U, thisArg?: any): U[];
|
|
16
|
-
from<T_2>(iterable: Iterable<T_2> | ArrayLike<T_2>): T_2[];
|
|
17
|
-
from<T_3, U_1>(iterable: Iterable<T_3> | ArrayLike<T_3>, mapfn: (v: T_3, k: number) => U_1, thisArg?: any): U_1[];
|
|
18
|
-
of<T_4>(...items: T_4[]): T_4[];
|
|
19
|
-
readonly [Symbol.species]: ArrayConstructor;
|
|
20
|
-
};
|
|
21
|
-
};
|
|
22
|
-
codeList: {
|
|
23
|
-
type: PropType<IAppCodeList>;
|
|
24
|
-
required: true;
|
|
25
|
-
};
|
|
26
|
-
value: {
|
|
27
|
-
type: (StringConstructor | NumberConstructor)[];
|
|
28
|
-
};
|
|
29
|
-
}, {
|
|
30
|
-
items: import("vue").Ref<IData[]>;
|
|
31
|
-
ns: import("@ibiz-template/core").Namespace;
|
|
32
|
-
emptyText: string | undefined;
|
|
33
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
34
|
-
codeListItems: {
|
|
35
|
-
type: {
|
|
36
|
-
(arrayLength: number): CodeListItem[];
|
|
37
|
-
(...items: CodeListItem[]): CodeListItem[];
|
|
38
|
-
new (arrayLength: number): CodeListItem[];
|
|
39
|
-
new (...items: CodeListItem[]): CodeListItem[];
|
|
40
|
-
isArray(arg: any): arg is any[];
|
|
41
|
-
readonly prototype: any[];
|
|
42
|
-
from<T>(arrayLike: ArrayLike<T>): T[];
|
|
43
|
-
from<T_1, U>(arrayLike: ArrayLike<T_1>, mapfn: (v: T_1, k: number) => U, thisArg?: any): U[];
|
|
44
|
-
from<T_2>(iterable: Iterable<T_2> | ArrayLike<T_2>): T_2[];
|
|
45
|
-
from<T_3, U_1>(iterable: Iterable<T_3> | ArrayLike<T_3>, mapfn: (v: T_3, k: number) => U_1, thisArg?: any): U_1[];
|
|
46
|
-
of<T_4>(...items: T_4[]): T_4[];
|
|
47
|
-
readonly [Symbol.species]: ArrayConstructor;
|
|
48
|
-
};
|
|
49
|
-
};
|
|
50
|
-
codeList: {
|
|
51
|
-
type: PropType<IAppCodeList>;
|
|
52
|
-
required: true;
|
|
53
|
-
};
|
|
54
|
-
value: {
|
|
55
|
-
type: (StringConstructor | NumberConstructor)[];
|
|
56
|
-
};
|
|
57
|
-
}>>, {}, {}>;
|
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
import { ref, watch, createVNode, defineComponent } from 'vue';
|
|
2
|
-
import { useNamespace } from '@ibiz-template/vue3-util';
|
|
3
|
-
import { isNil } from 'ramda';
|
|
4
|
-
import './code-list.css';
|
|
5
|
-
|
|
6
|
-
"use strict";
|
|
7
|
-
const IBizCodeList = /* @__PURE__ */ defineComponent({
|
|
8
|
-
name: "IBizCodeList",
|
|
9
|
-
props: {
|
|
10
|
-
codeListItems: {
|
|
11
|
-
type: Array
|
|
12
|
-
},
|
|
13
|
-
codeList: {
|
|
14
|
-
type: Object,
|
|
15
|
-
required: true
|
|
16
|
-
},
|
|
17
|
-
value: {
|
|
18
|
-
type: [String, Number]
|
|
19
|
-
}
|
|
20
|
-
},
|
|
21
|
-
setup(props) {
|
|
22
|
-
const ns = useNamespace("code-list");
|
|
23
|
-
const items = ref([]);
|
|
24
|
-
const findCodeListItem = (codelist, value) => {
|
|
25
|
-
if (codelist) {
|
|
26
|
-
const findItem = codelist.find((item) => item.value == value);
|
|
27
|
-
if (findItem) {
|
|
28
|
-
return findItem;
|
|
29
|
-
}
|
|
30
|
-
for (let i = 0; i < codelist.length; i++) {
|
|
31
|
-
const childrenItem = findCodeListItem(codelist[i].children, value);
|
|
32
|
-
if (childrenItem) {
|
|
33
|
-
return childrenItem;
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
};
|
|
38
|
-
watch(() => props.value, (newVal, oldVal) => {
|
|
39
|
-
if (newVal !== oldVal) {
|
|
40
|
-
if (isNil(newVal) || newVal === "") {
|
|
41
|
-
items.value = [];
|
|
42
|
-
} else {
|
|
43
|
-
let values;
|
|
44
|
-
if (typeof newVal === "string") {
|
|
45
|
-
values = newVal.split(",");
|
|
46
|
-
} else {
|
|
47
|
-
values = [newVal];
|
|
48
|
-
}
|
|
49
|
-
items.value = values.map((val) => {
|
|
50
|
-
const findItem = findCodeListItem(props.codeListItems, val);
|
|
51
|
-
return {
|
|
52
|
-
text: (findItem == null ? void 0 : findItem.text) || val,
|
|
53
|
-
color: findItem == null ? void 0 : findItem.color,
|
|
54
|
-
textCls: findItem == null ? void 0 : findItem.textCls
|
|
55
|
-
};
|
|
56
|
-
});
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
}, {
|
|
60
|
-
immediate: true
|
|
61
|
-
});
|
|
62
|
-
const emptyText = props.codeList.emptyText === "\u672A\u5B9A\u4E49" ? "- - -" : props.codeList.emptyText;
|
|
63
|
-
return {
|
|
64
|
-
items,
|
|
65
|
-
ns,
|
|
66
|
-
emptyText
|
|
67
|
-
};
|
|
68
|
-
},
|
|
69
|
-
render() {
|
|
70
|
-
return createVNode("span", {
|
|
71
|
-
"class": this.ns.b()
|
|
72
|
-
}, [this.items.length === 0 ? this.emptyText : this.items.map((item, index) => {
|
|
73
|
-
var _a;
|
|
74
|
-
return [index !== 0 ? (_a = this.codeList) == null ? void 0 : _a.textSeparator : null, createVNode("span", {
|
|
75
|
-
"class": [this.ns.e("item"), item.textCls ? item.textCls : null],
|
|
76
|
-
"style": this.ns.cssVarBlock({
|
|
77
|
-
"item-color": `${item.color}`
|
|
78
|
-
})
|
|
79
|
-
}, [item.text])];
|
|
80
|
-
})]);
|
|
81
|
-
}
|
|
82
|
-
});
|
|
83
|
-
|
|
84
|
-
export { IBizCodeList };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.ibiz-control{width:100%;height:100%}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const IBizControlBase: any;
|
|
@@ -1,98 +0,0 @@
|
|
|
1
|
-
import { reactive, resolveComponent, h, createVNode, defineComponent } from 'vue';
|
|
2
|
-
import { useNamespace } from '@ibiz-template/vue3-util';
|
|
3
|
-
import { isNil } from 'ramda';
|
|
4
|
-
|
|
5
|
-
"use strict";
|
|
6
|
-
const IBizControlBase = /* @__PURE__ */ defineComponent({
|
|
7
|
-
name: "IBizControlBase",
|
|
8
|
-
props: {
|
|
9
|
-
controller: {
|
|
10
|
-
type: Object,
|
|
11
|
-
required: true
|
|
12
|
-
}
|
|
13
|
-
},
|
|
14
|
-
setup(props) {
|
|
15
|
-
const ns = useNamespace("control");
|
|
16
|
-
const {
|
|
17
|
-
controlType,
|
|
18
|
-
sysCss,
|
|
19
|
-
codeName
|
|
20
|
-
} = props.controller.model;
|
|
21
|
-
const typeClass = controlType.toLowerCase();
|
|
22
|
-
const sysCssName = sysCss == null ? void 0 : sysCss.cssName;
|
|
23
|
-
const model = props.controller.model;
|
|
24
|
-
const controls = props.controller.model.controls;
|
|
25
|
-
const onLayoutPanelCreated = (controller) => {
|
|
26
|
-
props.controller.setLayoutPanel(controller);
|
|
27
|
-
};
|
|
28
|
-
const inlineStyle = reactive({});
|
|
29
|
-
if (model.controlType.endsWith("EXPBAR") === false) {
|
|
30
|
-
if (!isNil(model.width)) {
|
|
31
|
-
inlineStyle.width = `${model.width}px`;
|
|
32
|
-
}
|
|
33
|
-
if (!isNil(model.height)) {
|
|
34
|
-
inlineStyle.height = `${model.height}px`;
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
return {
|
|
38
|
-
ns,
|
|
39
|
-
typeClass,
|
|
40
|
-
sysCssName,
|
|
41
|
-
inlineStyle,
|
|
42
|
-
codeName,
|
|
43
|
-
controls,
|
|
44
|
-
onLayoutPanelCreated
|
|
45
|
-
};
|
|
46
|
-
},
|
|
47
|
-
render() {
|
|
48
|
-
var _a, _b, _c;
|
|
49
|
-
const {
|
|
50
|
-
state,
|
|
51
|
-
controlPanel,
|
|
52
|
-
providers
|
|
53
|
-
} = this.controller;
|
|
54
|
-
let layoutPanel = null;
|
|
55
|
-
if (state.isCreated && controlPanel) {
|
|
56
|
-
const slots = {
|
|
57
|
-
...this.$slots
|
|
58
|
-
};
|
|
59
|
-
if ((_a = this.controls) == null ? void 0 : _a.length) {
|
|
60
|
-
this.controls.forEach((ctrl) => {
|
|
61
|
-
const slotKey = ctrl.name;
|
|
62
|
-
const ctrlProps = {
|
|
63
|
-
context: this.controller.context,
|
|
64
|
-
params: this.controller.params
|
|
65
|
-
};
|
|
66
|
-
const outCtrlSlot = slots[slotKey];
|
|
67
|
-
if (outCtrlSlot) {
|
|
68
|
-
slots[slotKey] = () => {
|
|
69
|
-
return outCtrlSlot(ctrlProps);
|
|
70
|
-
};
|
|
71
|
-
} else {
|
|
72
|
-
slots[slotKey] = () => {
|
|
73
|
-
const comp = resolveComponent("IBizControlShell");
|
|
74
|
-
return h(comp, {
|
|
75
|
-
modelData: ctrl,
|
|
76
|
-
...ctrlProps
|
|
77
|
-
});
|
|
78
|
-
};
|
|
79
|
-
}
|
|
80
|
-
});
|
|
81
|
-
}
|
|
82
|
-
const provider = providers[controlPanel.name];
|
|
83
|
-
layoutPanel = h(resolveComponent(provider.component), {
|
|
84
|
-
modelData: controlPanel,
|
|
85
|
-
context: this.controller.context,
|
|
86
|
-
params: this.controller.params,
|
|
87
|
-
provider,
|
|
88
|
-
onControllerAppear: this.onLayoutPanelCreated
|
|
89
|
-
}, slots);
|
|
90
|
-
}
|
|
91
|
-
return createVNode("div", {
|
|
92
|
-
"class": [this.ns.b(), this.ns.b(this.typeClass), this.ns.m(this.codeName), this.sysCssName],
|
|
93
|
-
"style": this.inlineStyle
|
|
94
|
-
}, [layoutPanel || ((_c = (_b = this.$slots).default) == null ? void 0 : _c.call(_b))]);
|
|
95
|
-
}
|
|
96
|
-
});
|
|
97
|
-
|
|
98
|
-
export { IBizControlBase };
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { PropType } from 'vue';
|
|
2
|
-
export declare const ControlLoadingPlaceholder: import("vue").DefineComponent<{
|
|
3
|
-
modelData: {
|
|
4
|
-
type: PropType<IData>;
|
|
5
|
-
required: true;
|
|
6
|
-
};
|
|
7
|
-
context: {
|
|
8
|
-
type: PropType<IContext>;
|
|
9
|
-
required: true;
|
|
10
|
-
};
|
|
11
|
-
params: {
|
|
12
|
-
type: PropType<IParams>;
|
|
13
|
-
default: () => {};
|
|
14
|
-
};
|
|
15
|
-
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
16
|
-
modelData: {
|
|
17
|
-
type: PropType<IData>;
|
|
18
|
-
required: true;
|
|
19
|
-
};
|
|
20
|
-
context: {
|
|
21
|
-
type: PropType<IContext>;
|
|
22
|
-
required: true;
|
|
23
|
-
};
|
|
24
|
-
params: {
|
|
25
|
-
type: PropType<IParams>;
|
|
26
|
-
default: () => {};
|
|
27
|
-
};
|
|
28
|
-
}>>, {
|
|
29
|
-
params: IParams;
|
|
30
|
-
}, {}>;
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { inject, defineComponent } from 'vue';
|
|
2
|
-
|
|
3
|
-
"use strict";
|
|
4
|
-
const ControlLoadingPlaceholder = /* @__PURE__ */ defineComponent({
|
|
5
|
-
name: "ControlLoadingPlaceholder",
|
|
6
|
-
props: {
|
|
7
|
-
modelData: {
|
|
8
|
-
type: Object,
|
|
9
|
-
required: true
|
|
10
|
-
},
|
|
11
|
-
context: {
|
|
12
|
-
type: Object,
|
|
13
|
-
required: true
|
|
14
|
-
},
|
|
15
|
-
params: {
|
|
16
|
-
type: Object,
|
|
17
|
-
default: () => ({})
|
|
18
|
-
}
|
|
19
|
-
},
|
|
20
|
-
setup(props) {
|
|
21
|
-
const ctx = inject("ctx");
|
|
22
|
-
ctx.evt.emit("onForecast", props.modelData.name);
|
|
23
|
-
return {};
|
|
24
|
-
},
|
|
25
|
-
render() {
|
|
26
|
-
return null;
|
|
27
|
-
}
|
|
28
|
-
});
|
|
29
|
-
|
|
30
|
-
export { ControlLoadingPlaceholder };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.ibiz-control-shell{position:relative;width:100%;height:100%}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { IControlProvider } from '@ibiz-template/runtime';
|
|
2
|
-
import { PropType } from 'vue';
|
|
3
|
-
import './control-shell.scss';
|
|
4
|
-
import { IControl } from '@ibiz/model-core';
|
|
5
|
-
export declare const IBizControlShell: import("vue").DefineComponent<{
|
|
6
|
-
modelData: {
|
|
7
|
-
type: PropType<IControl>;
|
|
8
|
-
required: true;
|
|
9
|
-
};
|
|
10
|
-
}, {
|
|
11
|
-
ns: import("@ibiz-template/core").Namespace;
|
|
12
|
-
isComplete: import("vue").Ref<boolean>;
|
|
13
|
-
errMsg: import("vue").Ref<string>;
|
|
14
|
-
provider: import("vue").Ref<IControlProvider | undefined>;
|
|
15
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
16
|
-
modelData: {
|
|
17
|
-
type: PropType<IControl>;
|
|
18
|
-
required: true;
|
|
19
|
-
};
|
|
20
|
-
}>>, {}, {}>;
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import { inject, ref, resolveComponent, h, createVNode, resolveDirective, withDirectives, defineComponent } from 'vue';
|
|
2
|
-
import { getControlProvider } from '@ibiz-template/runtime';
|
|
3
|
-
import { useNamespace } from '@ibiz-template/vue3-util';
|
|
4
|
-
import './control-shell.css';
|
|
5
|
-
|
|
6
|
-
"use strict";
|
|
7
|
-
const IBizControlShell = /* @__PURE__ */ defineComponent({
|
|
8
|
-
name: "IBizControlShell",
|
|
9
|
-
props: {
|
|
10
|
-
modelData: {
|
|
11
|
-
type: Object,
|
|
12
|
-
required: true
|
|
13
|
-
}
|
|
14
|
-
},
|
|
15
|
-
setup(props) {
|
|
16
|
-
const ctx = inject("ctx");
|
|
17
|
-
ctx.evt.emit("onForecast", props.modelData.name);
|
|
18
|
-
const isComplete = ref(false);
|
|
19
|
-
const errMsg = ref("");
|
|
20
|
-
const provider = ref();
|
|
21
|
-
getControlProvider(props.modelData).then((item) => {
|
|
22
|
-
if (!item) {
|
|
23
|
-
errMsg.value = `\u672A\u627E\u5230\u5BF9\u5E94\u90E8\u4EF6\u7684\u9002\u914D\u5668`;
|
|
24
|
-
} else {
|
|
25
|
-
provider.value = item;
|
|
26
|
-
}
|
|
27
|
-
isComplete.value = true;
|
|
28
|
-
}).catch((err) => {
|
|
29
|
-
ibiz.log.error(err);
|
|
30
|
-
errMsg.value = err.message;
|
|
31
|
-
isComplete.value = true;
|
|
32
|
-
});
|
|
33
|
-
const ns = useNamespace("control-shell");
|
|
34
|
-
return {
|
|
35
|
-
ns,
|
|
36
|
-
isComplete,
|
|
37
|
-
errMsg,
|
|
38
|
-
provider
|
|
39
|
-
};
|
|
40
|
-
},
|
|
41
|
-
render() {
|
|
42
|
-
if (this.isComplete && this.provider) {
|
|
43
|
-
return h(resolveComponent(this.provider.component), {
|
|
44
|
-
provider: this.provider,
|
|
45
|
-
...this.$props,
|
|
46
|
-
...this.$attrs
|
|
47
|
-
}, this.$slots);
|
|
48
|
-
}
|
|
49
|
-
return withDirectives(createVNode("div", {
|
|
50
|
-
"class": this.ns.b()
|
|
51
|
-
}, [this.isComplete ? this.errMsg : null]), [[resolveDirective("loading"), !this.isComplete]]);
|
|
52
|
-
}
|
|
53
|
-
});
|
|
54
|
-
|
|
55
|
-
export { IBizControlShell };
|
package/es/common/icon/icon.d.ts
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { PropType, VNode } from 'vue';
|
|
2
|
-
import { ISysImage } from '@ibiz/model-core';
|
|
3
|
-
import { IIcon } from '@ibiz-template/runtime';
|
|
4
|
-
export declare const IBizIcon: import("vue").DefineComponent<{
|
|
5
|
-
icon: {
|
|
6
|
-
type: PropType<ISysImage | IIcon>;
|
|
7
|
-
};
|
|
8
|
-
size: {
|
|
9
|
-
type: PropType<"small" | "medium" | "large">;
|
|
10
|
-
};
|
|
11
|
-
baseDir: {
|
|
12
|
-
type: StringConstructor;
|
|
13
|
-
default: string;
|
|
14
|
-
};
|
|
15
|
-
}, () => VNode | null, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
16
|
-
icon: {
|
|
17
|
-
type: PropType<ISysImage | IIcon>;
|
|
18
|
-
};
|
|
19
|
-
size: {
|
|
20
|
-
type: PropType<"small" | "medium" | "large">;
|
|
21
|
-
};
|
|
22
|
-
baseDir: {
|
|
23
|
-
type: StringConstructor;
|
|
24
|
-
default: string;
|
|
25
|
-
};
|
|
26
|
-
}>>, {
|
|
27
|
-
baseDir: string;
|
|
28
|
-
}, {}>;
|