@ibiz-template/vue3-util 0.7.39 → 0.7.40-alpha.8
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/index.min.css +1 -1
- package/dist/index.system.min.js +1 -1
- package/es/common/badge/badge.d.ts +1 -1
- package/es/common/code-list/code-list.d.ts +2 -2
- package/es/common/control-loading-placeholder/control-loading-placeholder.d.ts +8 -8
- package/es/common/control-shell/control-shell.d.ts +1 -1
- package/es/common/custom-render/custom-render.d.ts +1 -1
- package/es/common/icon/icon.d.ts +1 -1
- package/es/common/router-view/router-view.d.ts +3 -4
- package/es/common/router-view/router-view.d.ts.map +1 -1
- package/es/common/view-shell/view-shell.d.ts +7 -7
- package/es/control/panel/panel/index.d.ts +8 -8
- package/es/control/panel/panel/panel.d.ts +8 -8
- package/es/control/panel/view-layout-panel/index.d.ts +8 -8
- package/es/control/panel/view-layout-panel/view-layout-panel.d.ts +9 -9
- package/es/control/panel/view-layout-panel/view-layout-panel.d.ts.map +1 -1
- package/es/hooks/app/app.hooks.d.ts +38 -13
- package/es/hooks/app/app.hooks.d.ts.map +1 -1
- package/es/hooks/app/app.hooks.mjs +29 -10
- package/es/panel-component/auth-wxmp-qrcode/auth-wxmp-qrcode.d.ts +1 -1
- package/es/panel-component/auth-wxmp-qrcode/index.d.ts +1 -1
- package/es/panel-component/grid-container/grid-container.d.ts +1 -1
- package/es/panel-component/grid-container/index.d.ts +1 -1
- package/es/panel-component/multi-data-container/index.d.ts +1 -1
- package/es/panel-component/multi-data-container/multi-data-container.d.ts +2 -2
- package/es/panel-component/multi-data-container/multi-data-container.d.ts.map +1 -1
- package/es/panel-component/multi-data-container-raw/index.d.ts +1 -1
- package/es/panel-component/multi-data-container-raw/multi-data-container-raw.d.ts +2 -2
- package/es/panel-component/multi-data-container-raw/multi-data-container-raw.d.ts.map +1 -1
- package/es/panel-component/nav-pos/index.d.ts +1 -1
- package/es/panel-component/nav-pos/nav-pos.d.ts +1 -1
- package/es/panel-component/panel-container/index.d.ts +1 -1
- package/es/panel-component/panel-container/panel-container.d.ts +1 -1
- package/es/panel-component/panel-container-group/index.d.ts +1 -1
- package/es/panel-component/panel-container-group/panel-container-group.d.ts +1 -1
- package/es/panel-component/panel-container-image/index.d.ts +1 -1
- package/es/panel-component/panel-container-image/panel-container-image.d.ts +1 -1
- package/es/panel-component/panel-container-tabs/index.d.ts +1 -1
- package/es/panel-component/panel-container-tabs/panel-container-tabs.d.ts +1 -1
- package/es/panel-component/panel-ctrl-pos/index.d.ts +1 -1
- package/es/panel-component/panel-ctrl-pos/panel-ctrl-pos.d.ts +1 -1
- package/es/panel-component/panel-ctrl-view-page-caption/index.d.ts +1 -1
- package/es/panel-component/panel-ctrl-view-page-caption/panel-ctrl-view-page-caption.d.ts +1 -1
- package/es/panel-component/panel-field/index.d.ts +3 -3
- package/es/panel-component/panel-field/panel-field.d.ts +3 -3
- package/es/panel-component/panel-item-render/index.d.ts +1 -1
- package/es/panel-component/panel-item-render/panel-item-render.d.ts +1 -1
- package/es/panel-component/panel-rawitem/index.d.ts +1 -1
- package/es/panel-component/panel-rawitem/panel-rawitem.d.ts +1 -1
- package/es/panel-component/panel-tab-page/index.d.ts +1 -1
- package/es/panel-component/panel-tab-page/panel-tab-page.d.ts +1 -1
- package/es/panel-component/scroll-container/index.d.ts +1 -1
- package/es/panel-component/scroll-container/scroll-container/scroll-container.d.ts +1 -1
- package/es/panel-component/scroll-container/scroll-container-item/scroll-container-item.d.ts +1 -1
- package/es/panel-component/single-data-container/index.d.ts +1 -1
- package/es/panel-component/single-data-container/single-data-container.d.ts +2 -2
- package/es/panel-component/single-data-container/single-data-container.d.ts.map +1 -1
- package/es/panel-component/teleport-placeholder/index.d.ts +1 -1
- package/es/panel-component/teleport-placeholder/teleport-placeholder.d.ts +1 -1
- package/es/props/editor/array.d.ts +2 -2
- package/es/props/editor/autocomplete.d.ts +2 -2
- package/es/props/editor/cascader.d.ts +2 -2
- package/es/props/editor/check-box-list.d.ts +2 -2
- package/es/props/editor/check-box.d.ts +2 -2
- package/es/props/editor/code.d.ts +2 -2
- package/es/props/editor/color-picker.d.ts +2 -2
- package/es/props/editor/common.d.ts +1 -1
- package/es/props/editor/data-picker.d.ts +2 -2
- package/es/props/editor/date-picker.d.ts +2 -2
- package/es/props/editor/date-range.d.ts +2 -2
- package/es/props/editor/dropdown-list.d.ts +2 -2
- package/es/props/editor/html.d.ts +2 -2
- package/es/props/editor/list-box.d.ts +2 -2
- package/es/props/editor/number-range.d.ts +2 -2
- package/es/props/editor/radio-button-list.d.ts +2 -2
- package/es/props/editor/rate.d.ts +2 -2
- package/es/props/editor/raw.d.ts +2 -2
- package/es/props/editor/slider.d.ts +2 -2
- package/es/props/editor/span.d.ts +2 -2
- package/es/props/editor/stepper.d.ts +2 -2
- package/es/props/editor/switch.d.ts +2 -2
- package/es/props/editor/text-box.d.ts +6 -6
- package/es/props/editor/upload.d.ts +2 -2
- package/es/use/click-outside/click-outside.d.ts.map +1 -1
- package/es/util/install.d.ts.map +1 -1
- package/es/view/app-redirect-view/app-redirect-view.d.ts +1 -1
- package/es/view/app-redirect-view/app-redirect-view.d.ts.map +1 -1
- package/es/view/common/index.d.ts +10 -10
- package/es/view/common/view.d.ts +8 -8
- package/es/view/de-redirect-view/de-redirect-view.d.ts +17 -8
- package/es/view/de-redirect-view/de-redirect-view.d.ts.map +1 -1
- package/es/view/de-redirect-view/de-redirect-view.mjs +17 -1
- package/es/view/de-redirect-view/index.d.ts +17 -8
- package/es/view/de-redirect-view/index.d.ts.map +1 -1
- package/es/view/html-view/html-view.d.ts +8 -8
- package/es/view/html-view/index.d.ts +8 -8
- package/es/view/portal-view/index.d.ts +8 -8
- package/es/view/portal-view/portal-view.d.ts +8 -8
- package/es/view/todo-redirect/todo-redirect.d.ts +1 -1
- package/es/view/todo-redirect/todo-redirect.d.ts.map +1 -1
- package/lib/hooks/app/app.hooks.cjs +28 -9
- package/lib/view/de-redirect-view/de-redirect-view.cjs +16 -0
- package/package.json +6 -7
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export declare const IBizPortalView: import("../../util").TypeWithInstall<import("vue").DefineComponent<{
|
|
2
|
-
context: import("vue").PropType<
|
|
2
|
+
context: import("vue").PropType<import("@ibiz-template/core").IApiContext>;
|
|
3
3
|
params: {
|
|
4
|
-
type: import("vue").PropType<
|
|
4
|
+
type: import("vue").PropType<import("@ibiz-template/core").IApiParams>;
|
|
5
5
|
default: () => {};
|
|
6
6
|
};
|
|
7
7
|
modelData: {
|
|
@@ -12,17 +12,17 @@ export declare const IBizPortalView: import("../../util").TypeWithInstall<import
|
|
|
12
12
|
type: import("vue").PropType<import("@ibiz-template/runtime").IModal>;
|
|
13
13
|
};
|
|
14
14
|
state: {
|
|
15
|
-
type: import("vue").PropType<
|
|
15
|
+
type: import("vue").PropType<import("@ibiz-template/core").IApiData>;
|
|
16
16
|
};
|
|
17
17
|
}, {
|
|
18
18
|
c: import("@ibiz-template/runtime").ViewController<import("@ibiz/model-core").IAppView, import("@ibiz-template/runtime").IViewState, import("@ibiz-template/runtime").IViewEvent>;
|
|
19
19
|
ns: import("@ibiz-template/core").Namespace;
|
|
20
20
|
controls: import("@ibiz/model-core").IControl[] | undefined;
|
|
21
21
|
viewClassNames: (string | undefined)[];
|
|
22
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").
|
|
23
|
-
context: import("vue").PropType<
|
|
22
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
23
|
+
context: import("vue").PropType<import("@ibiz-template/core").IApiContext>;
|
|
24
24
|
params: {
|
|
25
|
-
type: import("vue").PropType<
|
|
25
|
+
type: import("vue").PropType<import("@ibiz-template/core").IApiParams>;
|
|
26
26
|
default: () => {};
|
|
27
27
|
};
|
|
28
28
|
modelData: {
|
|
@@ -33,9 +33,9 @@ export declare const IBizPortalView: import("../../util").TypeWithInstall<import
|
|
|
33
33
|
type: import("vue").PropType<import("@ibiz-template/runtime").IModal>;
|
|
34
34
|
};
|
|
35
35
|
state: {
|
|
36
|
-
type: import("vue").PropType<
|
|
36
|
+
type: import("vue").PropType<import("@ibiz-template/core").IApiData>;
|
|
37
37
|
};
|
|
38
38
|
}>>, {
|
|
39
|
-
params:
|
|
39
|
+
params: import("@ibiz-template/core").IApiParams;
|
|
40
40
|
}, {}>>;
|
|
41
41
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -2,9 +2,9 @@ import { IModal, ViewController } from '@ibiz-template/runtime';
|
|
|
2
2
|
import { IAppPortalView } from '@ibiz/model-core';
|
|
3
3
|
import { PropType } from 'vue';
|
|
4
4
|
export declare const PortalView: import("vue").DefineComponent<{
|
|
5
|
-
context: PropType<
|
|
5
|
+
context: PropType<import("@ibiz-template/core").IApiContext>;
|
|
6
6
|
params: {
|
|
7
|
-
type: PropType<
|
|
7
|
+
type: PropType<import("@ibiz-template/core").IApiParams>;
|
|
8
8
|
default: () => {};
|
|
9
9
|
};
|
|
10
10
|
modelData: {
|
|
@@ -15,17 +15,17 @@ export declare const PortalView: import("vue").DefineComponent<{
|
|
|
15
15
|
type: PropType<IModal>;
|
|
16
16
|
};
|
|
17
17
|
state: {
|
|
18
|
-
type: PropType<
|
|
18
|
+
type: PropType<import("@ibiz-template/core").IApiData>;
|
|
19
19
|
};
|
|
20
20
|
}, {
|
|
21
21
|
c: ViewController<import("@ibiz/model-core").IAppView, import("@ibiz-template/runtime").IViewState, import("@ibiz-template/runtime").IViewEvent>;
|
|
22
22
|
ns: import("@ibiz-template/core").Namespace;
|
|
23
23
|
controls: import("@ibiz/model-core").IControl[] | undefined;
|
|
24
24
|
viewClassNames: (string | undefined)[];
|
|
25
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").
|
|
26
|
-
context: PropType<
|
|
25
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
26
|
+
context: PropType<import("@ibiz-template/core").IApiContext>;
|
|
27
27
|
params: {
|
|
28
|
-
type: PropType<
|
|
28
|
+
type: PropType<import("@ibiz-template/core").IApiParams>;
|
|
29
29
|
default: () => {};
|
|
30
30
|
};
|
|
31
31
|
modelData: {
|
|
@@ -36,9 +36,9 @@ export declare const PortalView: import("vue").DefineComponent<{
|
|
|
36
36
|
type: PropType<IModal>;
|
|
37
37
|
};
|
|
38
38
|
state: {
|
|
39
|
-
type: PropType<
|
|
39
|
+
type: PropType<import("@ibiz-template/core").IApiData>;
|
|
40
40
|
};
|
|
41
41
|
}>>, {
|
|
42
|
-
params:
|
|
42
|
+
params: import("@ibiz-template/core").IApiParams;
|
|
43
43
|
}, {}>;
|
|
44
44
|
//# sourceMappingURL=portal-view.d.ts.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const TodoRedirect: import("vue").DefineComponent<{}, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").
|
|
1
|
+
export declare const TodoRedirect: import("vue").DefineComponent<{}, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
|
|
2
2
|
//# sourceMappingURL=todo-redirect.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"todo-redirect.d.ts","sourceRoot":"","sources":["../../../src/view/todo-redirect/todo-redirect.tsx"],"names":[],"mappings":"AAIA,eAAO,MAAM,YAAY,
|
|
1
|
+
{"version":3,"file":"todo-redirect.d.ts","sourceRoot":"","sources":["../../../src/view/todo-redirect/todo-redirect.tsx"],"names":[],"mappings":"AAIA,eAAO,MAAM,YAAY,4NA8CvB,CAAC"}
|
|
@@ -6,21 +6,40 @@ var qxUtil = require('qx-util');
|
|
|
6
6
|
class AppHooks {
|
|
7
7
|
}
|
|
8
8
|
/**
|
|
9
|
-
* 创建 Vue
|
|
10
|
-
*
|
|
11
|
-
* @author chitanda
|
|
12
|
-
* @date 2024-02-04 17:02:41
|
|
9
|
+
* @description 创建 Vue 应用实例钩子
|
|
13
10
|
* @static
|
|
11
|
+
* @memberof AppHooks
|
|
14
12
|
*/
|
|
15
13
|
AppHooks.createApp = new qxUtil.SyncSeriesHook();
|
|
16
14
|
/**
|
|
17
|
-
* 用于在多实例下,挂载到已经创建的 Vue
|
|
18
|
-
*
|
|
19
|
-
* @author chitanda
|
|
20
|
-
* @date 2024-02-04 18:02:49
|
|
15
|
+
* @description 用于在多实例下,挂载到已经创建的 Vue 实例上插件钩子
|
|
21
16
|
* @static
|
|
17
|
+
* @memberof AppHooks
|
|
22
18
|
*/
|
|
23
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
24
19
|
AppHooks.useComponent = new qxUtil.SyncSeriesHook();
|
|
20
|
+
/**
|
|
21
|
+
* @description 应用初始化前钩子
|
|
22
|
+
* @static
|
|
23
|
+
* @memberof AppHooks
|
|
24
|
+
*/
|
|
25
|
+
AppHooks.beforeInitApp = new qxUtil.AsyncSeriesHook();
|
|
26
|
+
/**
|
|
27
|
+
* @description 应用授权完成钩子
|
|
28
|
+
* @static
|
|
29
|
+
* @memberof AppHooks
|
|
30
|
+
*/
|
|
31
|
+
AppHooks.authedApp = new qxUtil.AsyncSeriesHook();
|
|
32
|
+
/**
|
|
33
|
+
* @description 应用初始化完成钩子
|
|
34
|
+
* @static
|
|
35
|
+
* @memberof AppHooks
|
|
36
|
+
*/
|
|
37
|
+
AppHooks.initedApp = new qxUtil.AsyncSeriesHook();
|
|
38
|
+
/**
|
|
39
|
+
* @description 应用销毁钩子
|
|
40
|
+
* @static
|
|
41
|
+
* @memberof AppHooks
|
|
42
|
+
*/
|
|
43
|
+
AppHooks.destoryApp = new qxUtil.AsyncSeriesHook();
|
|
25
44
|
|
|
26
45
|
exports.AppHooks = AppHooks;
|
|
@@ -21,6 +21,10 @@ const DeRedirectView = /* @__PURE__ */ vue.defineComponent({
|
|
|
21
21
|
modelData: {
|
|
22
22
|
type: Object,
|
|
23
23
|
required: true
|
|
24
|
+
},
|
|
25
|
+
isEmbedCtrlNav: {
|
|
26
|
+
type: Boolean,
|
|
27
|
+
default: false
|
|
24
28
|
}
|
|
25
29
|
},
|
|
26
30
|
setup(props) {
|
|
@@ -39,6 +43,18 @@ const DeRedirectView = /* @__PURE__ */ vue.defineComponent({
|
|
|
39
43
|
}
|
|
40
44
|
});
|
|
41
45
|
});
|
|
46
|
+
if (props.isEmbedCtrlNav) {
|
|
47
|
+
vue.watch(() => [c.context, c.params], () => {
|
|
48
|
+
runtime.getDERedirectToView(vue.toRaw(props.modelData), vue.toRaw(c.context), vue.toRaw(c.params)).then(async (result) => {
|
|
49
|
+
if (result.type === "view") {
|
|
50
|
+
toViewId.value = result.viewId;
|
|
51
|
+
toViewContext.value = result.context;
|
|
52
|
+
}
|
|
53
|
+
});
|
|
54
|
+
}, {
|
|
55
|
+
deep: true
|
|
56
|
+
});
|
|
57
|
+
}
|
|
42
58
|
return {
|
|
43
59
|
c,
|
|
44
60
|
toViewId,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ibiz-template/vue3-util",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.40-alpha.8",
|
|
4
4
|
"description": "通用组件库(vue3)",
|
|
5
5
|
"main": "lib/index.cjs",
|
|
6
6
|
"types": "es/index.d.ts",
|
|
@@ -37,10 +37,10 @@
|
|
|
37
37
|
"license": "MIT",
|
|
38
38
|
"devDependencies": {
|
|
39
39
|
"@ibiz-template/cli": "^0.3.10",
|
|
40
|
-
"@ibiz-template/core": "^0.7.
|
|
41
|
-
"@ibiz-template/runtime": "^0.7.
|
|
40
|
+
"@ibiz-template/core": "^0.7.40-alpha.7",
|
|
41
|
+
"@ibiz-template/runtime": "^0.7.40-alpha.8",
|
|
42
42
|
"@ibiz-template/theme": "^0.7.39",
|
|
43
|
-
"@ibiz/model-core": "^0.1.
|
|
43
|
+
"@ibiz/model-core": "^0.1.71",
|
|
44
44
|
"@types/path-browserify": "^1.0.2",
|
|
45
45
|
"@types/qs": "^6.9.11",
|
|
46
46
|
"@types/systemjs": "^6.13.5",
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
"peerDependencies": {
|
|
58
58
|
"@ibiz-template/core": "^0.6.0",
|
|
59
59
|
"@ibiz-template/runtime": "^0.6.0",
|
|
60
|
-
"@ibiz/model-core": "^0.1.
|
|
60
|
+
"@ibiz/model-core": "^0.1.71",
|
|
61
61
|
"dayjs": "^1.11.10",
|
|
62
62
|
"path-browserify": "^1.0.1",
|
|
63
63
|
"pinia": "^2.1.7",
|
|
@@ -66,6 +66,5 @@
|
|
|
66
66
|
"ramda": "^0.29.0",
|
|
67
67
|
"vue": "^3.3.8",
|
|
68
68
|
"vue-router": "^4.2.4"
|
|
69
|
-
}
|
|
70
|
-
"gitHead": "763fadf3223009ad5ac7bbb63fc03b6c7b0d6905"
|
|
69
|
+
}
|
|
71
70
|
}
|