@ibiz-template/vue3-components 0.7.7-dev.0 → 0.7.7

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.
@@ -37,6 +37,7 @@ export declare const IBizActionToolbar: import("vue").DefineComponent<{
37
37
  type: NumberConstructor;
38
38
  required: true;
39
39
  };
40
+ popperClass: StringConstructor;
40
41
  }, {
41
42
  ns: import("@ibiz-template/core").Namespace;
42
43
  dropdownRef: Ref<any>;
@@ -82,6 +83,7 @@ export declare const IBizActionToolbar: import("vue").DefineComponent<{
82
83
  type: NumberConstructor;
83
84
  required: true;
84
85
  };
86
+ popperClass: StringConstructor;
85
87
  }>>, {
86
88
  mode: "dropdown" | "buttons";
87
89
  groupLevelKeys: number[];
@@ -31,7 +31,8 @@ const IBizActionToolbar = /* @__PURE__ */ defineComponent({
31
31
  zIndex: {
32
32
  type: Number,
33
33
  required: true
34
- }
34
+ },
35
+ popperClass: String
35
36
  },
36
37
  setup(props, {
37
38
  emit
@@ -151,7 +152,8 @@ const IBizActionToolbar = /* @__PURE__ */ defineComponent({
151
152
  return createVNode(resolveComponent("el-dropdown"), {
152
153
  "ref": "dropdownRef",
153
154
  "onCommand": (command) => this.handleClick(command, new MouseEvent("click")),
154
- "class": [this.ns.b(), this.ns.m("dropdown")]
155
+ "class": [this.ns.b(), this.ns.m("dropdown")],
156
+ "popper-class": this.popperClass
155
157
  }, {
156
158
  default: () => createVNode("span", {
157
159
  "class": this.ns.e("caption")
@@ -389,6 +389,7 @@ export declare const CustomDashboardContainer: import("vue").DefineComponent<{
389
389
  modelType?: string | undefined;
390
390
  } | undefined;
391
391
  sysPFPluginId?: string | undefined;
392
+ priority?: number | undefined;
392
393
  user2ControlAction?: {
393
394
  adappDELogicId?: string | undefined;
394
395
  actionDesc?: string | undefined;
@@ -813,6 +814,7 @@ export declare const CustomDashboardContainer: import("vue").DefineComponent<{
813
814
  modelType?: string | undefined;
814
815
  } | undefined;
815
816
  sysPFPluginId?: string | undefined;
817
+ priority?: number | undefined;
816
818
  user2ControlAction?: {
817
819
  adappDELogicId?: string | undefined;
818
820
  actionDesc?: string | undefined;
@@ -917,6 +919,7 @@ export declare const CustomDashboardContainer: import("vue").DefineComponent<{
917
919
  modelType?: string | undefined;
918
920
  } | undefined;
919
921
  sysPFPluginId?: string | undefined;
922
+ priority?: number | undefined;
920
923
  user2ControlAction?: {
921
924
  adappDELogicId?: string | undefined;
922
925
  actionDesc?: string | undefined;
@@ -1596,6 +1599,7 @@ export declare const CustomDashboardContainer: import("vue").DefineComponent<{
1596
1599
  modelType?: string | undefined;
1597
1600
  } | undefined;
1598
1601
  sysPFPluginId?: string | undefined;
1602
+ priority?: number | undefined;
1599
1603
  user2ControlAction?: {
1600
1604
  adappDELogicId?: string | undefined;
1601
1605
  actionDesc?: string | undefined;
@@ -1978,6 +1982,7 @@ export declare const CustomDashboardContainer: import("vue").DefineComponent<{
1978
1982
  modelType?: string | undefined;
1979
1983
  } | undefined;
1980
1984
  sysPFPluginId?: string | undefined;
1985
+ priority?: number | undefined;
1981
1986
  user2ControlAction?: {
1982
1987
  adappDELogicId?: string | undefined;
1983
1988
  actionDesc?: string | undefined;
@@ -12,6 +12,7 @@ export declare const PortletLayout: import("vue").DefineComponent<{
12
12
  }, {
13
13
  c: PortletPartController<import("@ibiz/model-core").IDBPortletPart>;
14
14
  ns: import("@ibiz-template/core").Namespace;
15
+ portletType: string;
15
16
  isShowHeader: import("vue").ComputedRef<string | import("@ibiz/model-core").ISysImage | import("@ibiz/model-core").IUIActionGroup | undefined>;
16
17
  onActionClick: (detail: IUIActionGroupDetail, event: MouseEvent) => Promise<void>;
17
18
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
@@ -13,7 +13,9 @@ const PortletLayout = /* @__PURE__ */ defineComponent({
13
13
  }
14
14
  },
15
15
  setup(props) {
16
+ var _a;
16
17
  const ns = useNamespace("portlet-layout");
18
+ const portletType = "portlet-".concat((_a = props.controller.model.portletType) == null ? void 0 : _a.toLowerCase());
17
19
  const c = props.controller;
18
20
  const isShowHeader = computed(() => {
19
21
  return c.model.showTitleBar && (c.model.title || c.model.sysImage) || c.model.uiactionGroup;
@@ -24,6 +26,7 @@ const PortletLayout = /* @__PURE__ */ defineComponent({
24
26
  return {
25
27
  c,
26
28
  ns,
29
+ portletType,
27
30
  isShowHeader,
28
31
  onActionClick
29
32
  };
@@ -56,6 +59,7 @@ const PortletLayout = /* @__PURE__ */ defineComponent({
56
59
  "action-details": model.uiactionGroup.uiactionGroupDetails,
57
60
  "actions-state": state.actionGroupState,
58
61
  "mode": model.actionGroupExtractMode === "ITEMS" ? "dropdown" : "buttons",
62
+ "popperClass": this.ns.em("toolbar", "".concat(this.portletType, "-").concat(model.id)),
59
63
  "onActionClick": this.onActionClick
60
64
  }, null)])]), createVNode("div", {
61
65
  "key": "content",
@@ -574,6 +574,7 @@ export declare const RepeaterGrid: import("vue").DefineComponent<{
574
574
  modelType?: string | undefined;
575
575
  } | undefined;
576
576
  sysPFPluginId?: string | undefined;
577
+ priority?: number | undefined;
577
578
  user2ControlAction?: {
578
579
  adappDELogicId?: string | undefined;
579
580
  actionDesc?: string | undefined;
@@ -998,6 +999,7 @@ export declare const RepeaterGrid: import("vue").DefineComponent<{
998
999
  modelType?: string | undefined;
999
1000
  } | undefined;
1000
1001
  sysPFPluginId?: string | undefined;
1002
+ priority?: number | undefined;
1001
1003
  user2ControlAction?: {
1002
1004
  adappDELogicId?: string | undefined;
1003
1005
  actionDesc?: string | undefined;
@@ -1429,6 +1431,7 @@ export declare const RepeaterGrid: import("vue").DefineComponent<{
1429
1431
  modelType?: string | undefined;
1430
1432
  } | undefined;
1431
1433
  sysPFPluginId?: string | undefined;
1434
+ priority?: number | undefined;
1432
1435
  user2ControlAction?: {
1433
1436
  adappDELogicId?: string | undefined;
1434
1437
  actionDesc?: string | undefined;
@@ -1853,6 +1856,7 @@ export declare const RepeaterGrid: import("vue").DefineComponent<{
1853
1856
  modelType?: string | undefined;
1854
1857
  } | undefined;
1855
1858
  sysPFPluginId?: string | undefined;
1859
+ priority?: number | undefined;
1856
1860
  user2ControlAction?: {
1857
1861
  adappDELogicId?: string | undefined;
1858
1862
  actionDesc?: string | undefined;
@@ -1957,6 +1961,7 @@ export declare const RepeaterGrid: import("vue").DefineComponent<{
1957
1961
  modelType?: string | undefined;
1958
1962
  } | undefined;
1959
1963
  sysPFPluginId?: string | undefined;
1964
+ priority?: number | undefined;
1960
1965
  user2ControlAction?: {
1961
1966
  adappDELogicId?: string | undefined;
1962
1967
  actionDesc?: string | undefined;
@@ -2636,6 +2641,7 @@ export declare const RepeaterGrid: import("vue").DefineComponent<{
2636
2641
  modelType?: string | undefined;
2637
2642
  } | undefined;
2638
2643
  sysPFPluginId?: string | undefined;
2644
+ priority?: number | undefined;
2639
2645
  user2ControlAction?: {
2640
2646
  adappDELogicId?: string | undefined;
2641
2647
  actionDesc?: string | undefined;
@@ -3018,6 +3024,7 @@ export declare const RepeaterGrid: import("vue").DefineComponent<{
3018
3024
  modelType?: string | undefined;
3019
3025
  } | undefined;
3020
3026
  sysPFPluginId?: string | undefined;
3027
+ priority?: number | undefined;
3021
3028
  user2ControlAction?: {
3022
3029
  adappDELogicId?: string | undefined;
3023
3030
  actionDesc?: string | undefined;
@@ -3761,6 +3768,7 @@ export declare const RepeaterGrid: import("vue").DefineComponent<{
3761
3768
  modelType?: string | undefined;
3762
3769
  } | undefined;
3763
3770
  sysPFPluginId?: string | undefined;
3771
+ priority?: number | undefined;
3764
3772
  user2ControlAction?: {
3765
3773
  adappDELogicId?: string | undefined;
3766
3774
  actionDesc?: string | undefined;
@@ -4143,6 +4151,7 @@ export declare const RepeaterGrid: import("vue").DefineComponent<{
4143
4151
  modelType?: string | undefined;
4144
4152
  } | undefined;
4145
4153
  sysPFPluginId?: string | undefined;
4154
+ priority?: number | undefined;
4146
4155
  user2ControlAction?: {
4147
4156
  adappDELogicId?: string | undefined;
4148
4157
  actionDesc?: string | undefined;
@@ -4529,6 +4538,7 @@ export declare const RepeaterGrid: import("vue").DefineComponent<{
4529
4538
  modelType?: string | undefined;
4530
4539
  } | undefined;
4531
4540
  sysPFPluginId?: string | undefined;
4541
+ priority?: number | undefined;
4532
4542
  user2ControlAction?: {
4533
4543
  adappDELogicId?: string | undefined;
4534
4544
  actionDesc?: string | undefined;
@@ -4953,6 +4963,7 @@ export declare const RepeaterGrid: import("vue").DefineComponent<{
4953
4963
  modelType?: string | undefined;
4954
4964
  } | undefined;
4955
4965
  sysPFPluginId?: string | undefined;
4966
+ priority?: number | undefined;
4956
4967
  user2ControlAction?: {
4957
4968
  adappDELogicId?: string | undefined;
4958
4969
  actionDesc?: string | undefined;
@@ -5384,6 +5395,7 @@ export declare const RepeaterGrid: import("vue").DefineComponent<{
5384
5395
  modelType?: string | undefined;
5385
5396
  } | undefined;
5386
5397
  sysPFPluginId?: string | undefined;
5398
+ priority?: number | undefined;
5387
5399
  user2ControlAction?: {
5388
5400
  adappDELogicId?: string | undefined;
5389
5401
  actionDesc?: string | undefined;
@@ -5808,6 +5820,7 @@ export declare const RepeaterGrid: import("vue").DefineComponent<{
5808
5820
  modelType?: string | undefined;
5809
5821
  } | undefined;
5810
5822
  sysPFPluginId?: string | undefined;
5823
+ priority?: number | undefined;
5811
5824
  user2ControlAction?: {
5812
5825
  adappDELogicId?: string | undefined;
5813
5826
  actionDesc?: string | undefined;
@@ -5912,6 +5925,7 @@ export declare const RepeaterGrid: import("vue").DefineComponent<{
5912
5925
  modelType?: string | undefined;
5913
5926
  } | undefined;
5914
5927
  sysPFPluginId?: string | undefined;
5928
+ priority?: number | undefined;
5915
5929
  user2ControlAction?: {
5916
5930
  adappDELogicId?: string | undefined;
5917
5931
  actionDesc?: string | undefined;
@@ -6591,6 +6605,7 @@ export declare const RepeaterGrid: import("vue").DefineComponent<{
6591
6605
  modelType?: string | undefined;
6592
6606
  } | undefined;
6593
6607
  sysPFPluginId?: string | undefined;
6608
+ priority?: number | undefined;
6594
6609
  user2ControlAction?: {
6595
6610
  adappDELogicId?: string | undefined;
6596
6611
  actionDesc?: string | undefined;
@@ -6973,6 +6988,7 @@ export declare const RepeaterGrid: import("vue").DefineComponent<{
6973
6988
  modelType?: string | undefined;
6974
6989
  } | undefined;
6975
6990
  sysPFPluginId?: string | undefined;
6991
+ priority?: number | undefined;
6976
6992
  user2ControlAction?: {
6977
6993
  adappDELogicId?: string | undefined;
6978
6994
  actionDesc?: string | undefined;
@@ -7938,6 +7954,7 @@ export declare const RepeaterGrid: import("vue").DefineComponent<{
7938
7954
  modelType?: string | undefined;
7939
7955
  } | undefined;
7940
7956
  sysPFPluginId?: string | undefined;
7957
+ priority?: number | undefined;
7941
7958
  user2ControlAction?: {
7942
7959
  adappDELogicId?: string | undefined;
7943
7960
  actionDesc?: string | undefined;
@@ -8320,6 +8337,7 @@ export declare const RepeaterGrid: import("vue").DefineComponent<{
8320
8337
  modelType?: string | undefined;
8321
8338
  } | undefined;
8322
8339
  sysPFPluginId?: string | undefined;
8340
+ priority?: number | undefined;
8323
8341
  user2ControlAction?: {
8324
8342
  adappDELogicId?: string | undefined;
8325
8343
  actionDesc?: string | undefined;
@@ -8706,6 +8724,7 @@ export declare const RepeaterGrid: import("vue").DefineComponent<{
8706
8724
  modelType?: string | undefined;
8707
8725
  } | undefined;
8708
8726
  sysPFPluginId?: string | undefined;
8727
+ priority?: number | undefined;
8709
8728
  user2ControlAction?: {
8710
8729
  adappDELogicId?: string | undefined;
8711
8730
  actionDesc?: string | undefined;
@@ -9094,6 +9113,7 @@ export declare const RepeaterGrid: import("vue").DefineComponent<{
9094
9113
  modelType?: string | undefined;
9095
9114
  } | undefined;
9096
9115
  sysPFPluginId?: string | undefined;
9116
+ priority?: number | undefined;
9097
9117
  user2ControlAction?: {
9098
9118
  adappDELogicId?: string | undefined;
9099
9119
  actionDesc?: string | undefined;
@@ -9525,6 +9545,7 @@ export declare const RepeaterGrid: import("vue").DefineComponent<{
9525
9545
  modelType?: string | undefined;
9526
9546
  } | undefined;
9527
9547
  sysPFPluginId?: string | undefined;
9548
+ priority?: number | undefined;
9528
9549
  user2ControlAction?: {
9529
9550
  adappDELogicId?: string | undefined;
9530
9551
  actionDesc?: string | undefined;
@@ -9949,6 +9970,7 @@ export declare const RepeaterGrid: import("vue").DefineComponent<{
9949
9970
  modelType?: string | undefined;
9950
9971
  } | undefined;
9951
9972
  sysPFPluginId?: string | undefined;
9973
+ priority?: number | undefined;
9952
9974
  user2ControlAction?: {
9953
9975
  adappDELogicId?: string | undefined;
9954
9976
  actionDesc?: string | undefined;
@@ -10053,6 +10075,7 @@ export declare const RepeaterGrid: import("vue").DefineComponent<{
10053
10075
  modelType?: string | undefined;
10054
10076
  } | undefined;
10055
10077
  sysPFPluginId?: string | undefined;
10078
+ priority?: number | undefined;
10056
10079
  user2ControlAction?: {
10057
10080
  adappDELogicId?: string | undefined;
10058
10081
  actionDesc?: string | undefined;
@@ -10732,6 +10755,7 @@ export declare const RepeaterGrid: import("vue").DefineComponent<{
10732
10755
  modelType?: string | undefined;
10733
10756
  } | undefined;
10734
10757
  sysPFPluginId?: string | undefined;
10758
+ priority?: number | undefined;
10735
10759
  user2ControlAction?: {
10736
10760
  adappDELogicId?: string | undefined;
10737
10761
  actionDesc?: string | undefined;
@@ -11090,6 +11114,7 @@ export declare const RepeaterGrid: import("vue").DefineComponent<{
11090
11114
  modelType?: string | undefined;
11091
11115
  } | undefined;
11092
11116
  sysPFPluginId?: string | undefined;
11117
+ priority?: number | undefined;
11093
11118
  user2ControlAction?: {
11094
11119
  adappDELogicId?: string | undefined;
11095
11120
  actionDesc?: string | undefined;
@@ -11702,6 +11727,7 @@ export declare const RepeaterGrid: import("vue").DefineComponent<{
11702
11727
  modelType?: string | undefined;
11703
11728
  } | undefined;
11704
11729
  sysPFPluginId?: string | undefined;
11730
+ priority?: number | undefined;
11705
11731
  user2ControlAction?: {
11706
11732
  adappDELogicId?: string | undefined;
11707
11733
  actionDesc?: string | undefined;
@@ -12126,6 +12152,7 @@ export declare const RepeaterGrid: import("vue").DefineComponent<{
12126
12152
  modelType?: string | undefined;
12127
12153
  } | undefined;
12128
12154
  sysPFPluginId?: string | undefined;
12155
+ priority?: number | undefined;
12129
12156
  user2ControlAction?: {
12130
12157
  adappDELogicId?: string | undefined;
12131
12158
  actionDesc?: string | undefined;
@@ -12557,6 +12584,7 @@ export declare const RepeaterGrid: import("vue").DefineComponent<{
12557
12584
  modelType?: string | undefined;
12558
12585
  } | undefined;
12559
12586
  sysPFPluginId?: string | undefined;
12587
+ priority?: number | undefined;
12560
12588
  user2ControlAction?: {
12561
12589
  adappDELogicId?: string | undefined;
12562
12590
  actionDesc?: string | undefined;
@@ -12981,6 +13009,7 @@ export declare const RepeaterGrid: import("vue").DefineComponent<{
12981
13009
  modelType?: string | undefined;
12982
13010
  } | undefined;
12983
13011
  sysPFPluginId?: string | undefined;
13012
+ priority?: number | undefined;
12984
13013
  user2ControlAction?: {
12985
13014
  adappDELogicId?: string | undefined;
12986
13015
  actionDesc?: string | undefined;
@@ -13085,6 +13114,7 @@ export declare const RepeaterGrid: import("vue").DefineComponent<{
13085
13114
  modelType?: string | undefined;
13086
13115
  } | undefined;
13087
13116
  sysPFPluginId?: string | undefined;
13117
+ priority?: number | undefined;
13088
13118
  user2ControlAction?: {
13089
13119
  adappDELogicId?: string | undefined;
13090
13120
  actionDesc?: string | undefined;
@@ -13764,6 +13794,7 @@ export declare const RepeaterGrid: import("vue").DefineComponent<{
13764
13794
  modelType?: string | undefined;
13765
13795
  } | undefined;
13766
13796
  sysPFPluginId?: string | undefined;
13797
+ priority?: number | undefined;
13767
13798
  user2ControlAction?: {
13768
13799
  adappDELogicId?: string | undefined;
13769
13800
  actionDesc?: string | undefined;
@@ -14146,6 +14177,7 @@ export declare const RepeaterGrid: import("vue").DefineComponent<{
14146
14177
  modelType?: string | undefined;
14147
14178
  } | undefined;
14148
14179
  sysPFPluginId?: string | undefined;
14180
+ priority?: number | undefined;
14149
14181
  user2ControlAction?: {
14150
14182
  adappDELogicId?: string | undefined;
14151
14183
  actionDesc?: string | undefined;
@@ -15006,6 +15038,7 @@ export declare const RepeaterGrid: import("vue").DefineComponent<{
15006
15038
  modelType?: string | undefined;
15007
15039
  } | undefined;
15008
15040
  sysPFPluginId?: string | undefined;
15041
+ priority?: number | undefined;
15009
15042
  user2ControlAction?: {
15010
15043
  adappDELogicId?: string | undefined;
15011
15044
  actionDesc?: string | undefined;
@@ -15430,6 +15463,7 @@ export declare const RepeaterGrid: import("vue").DefineComponent<{
15430
15463
  modelType?: string | undefined;
15431
15464
  } | undefined;
15432
15465
  sysPFPluginId?: string | undefined;
15466
+ priority?: number | undefined;
15433
15467
  user2ControlAction?: {
15434
15468
  adappDELogicId?: string | undefined;
15435
15469
  actionDesc?: string | undefined;
@@ -16011,6 +16045,7 @@ export declare const RepeaterGrid: import("vue").DefineComponent<{
16011
16045
  modelType?: string | undefined;
16012
16046
  } | undefined;
16013
16047
  sysPFPluginId?: string | undefined;
16048
+ priority?: number | undefined;
16014
16049
  user2ControlAction?: {
16015
16050
  adappDELogicId?: string | undefined;
16016
16051
  actionDesc?: string | undefined;
@@ -16435,6 +16470,7 @@ export declare const RepeaterGrid: import("vue").DefineComponent<{
16435
16470
  modelType?: string | undefined;
16436
16471
  } | undefined;
16437
16472
  sysPFPluginId?: string | undefined;
16473
+ priority?: number | undefined;
16438
16474
  user2ControlAction?: {
16439
16475
  adappDELogicId?: string | undefined;
16440
16476
  actionDesc?: string | undefined;
@@ -16873,6 +16909,7 @@ export declare const RepeaterGrid: import("vue").DefineComponent<{
16873
16909
  modelType?: string | undefined;
16874
16910
  } | undefined;
16875
16911
  sysPFPluginId?: string | undefined;
16912
+ priority?: number | undefined;
16876
16913
  user2ControlAction?: {
16877
16914
  adappDELogicId?: string | undefined;
16878
16915
  actionDesc?: string | undefined;
@@ -17297,6 +17334,7 @@ export declare const RepeaterGrid: import("vue").DefineComponent<{
17297
17334
  modelType?: string | undefined;
17298
17335
  } | undefined;
17299
17336
  sysPFPluginId?: string | undefined;
17337
+ priority?: number | undefined;
17300
17338
  user2ControlAction?: {
17301
17339
  adappDELogicId?: string | undefined;
17302
17340
  actionDesc?: string | undefined;
@@ -17401,6 +17439,7 @@ export declare const RepeaterGrid: import("vue").DefineComponent<{
17401
17439
  modelType?: string | undefined;
17402
17440
  } | undefined;
17403
17441
  sysPFPluginId?: string | undefined;
17442
+ priority?: number | undefined;
17404
17443
  user2ControlAction?: {
17405
17444
  adappDELogicId?: string | undefined;
17406
17445
  actionDesc?: string | undefined;
@@ -18090,6 +18129,7 @@ export declare const RepeaterGrid: import("vue").DefineComponent<{
18090
18129
  modelType?: string | undefined;
18091
18130
  } | undefined;
18092
18131
  sysPFPluginId?: string | undefined;
18132
+ priority?: number | undefined;
18093
18133
  user2ControlAction?: {
18094
18134
  adappDELogicId?: string | undefined;
18095
18135
  actionDesc?: string | undefined;
@@ -18472,6 +18512,7 @@ export declare const RepeaterGrid: import("vue").DefineComponent<{
18472
18512
  modelType?: string | undefined;
18473
18513
  } | undefined;
18474
18514
  sysPFPluginId?: string | undefined;
18515
+ priority?: number | undefined;
18475
18516
  user2ControlAction?: {
18476
18517
  adappDELogicId?: string | undefined;
18477
18518
  actionDesc?: string | undefined;
@@ -26,6 +26,10 @@ const btnContent = (item) => {
26
26
  }
27
27
  return result;
28
28
  };
29
+ const calcCssName = (item) => {
30
+ var _a;
31
+ return (_a = item == null ? void 0 : item.sysCss) == null ? void 0 : _a.cssName;
32
+ };
29
33
  const ToolbarControl = /* @__PURE__ */ defineComponent({
30
34
  name: "IBizToolbarControl",
31
35
  props: {
@@ -58,10 +62,6 @@ const ToolbarControl = /* @__PURE__ */ defineComponent({
58
62
  const handleClick = async (item, event, params) => {
59
63
  await c.onItemClick(item, event, params);
60
64
  };
61
- const calcCssName = (item) => {
62
- var _a2;
63
- return (_a2 = item == null ? void 0 : item.sysCss) == null ? void 0 : _a2.cssName;
64
- };
65
65
  const renderExtraButtons = (extraButtons) => {
66
66
  return extraButtons.map((button) => {
67
67
  let _slot;
@@ -80,11 +80,12 @@ const ToolbarControl = /* @__PURE__ */ defineComponent({
80
80
  const renderSubmenu = (item) => {
81
81
  const detoolbarItems = item.detoolbarItems || [];
82
82
  const loading = detoolbarItems.findIndex((item2) => c.state.buttonsState[item2.id].loading) !== -1;
83
+ const groupButtonStyle = item.buttonStyle || "";
83
84
  return createVNode(resolveComponent("el-sub-menu"), {
84
- "class": ns.b("submenu"),
85
+ "class": [ns.b("submenu"), ns.em("item", groupButtonStyle.toLowerCase()), calcCssName(item)],
85
86
  "index": item.id,
86
87
  "title": item.tooltip,
87
- "popper-class": [ns.b("submenu-popper"), ns.bm("submenu-popper", toolbarStyle), ns.bm("submenu-popper", calcCssName(item))]
88
+ "popper-class": [ns.b("submenu-popper"), ns.bm("submenu-popper", toolbarStyle), ns.em("submenu-popper", groupButtonStyle.toLowerCase()), ns.bm("submenu-popper", calcCssName(item))]
88
89
  }, {
89
90
  default: () => {
90
91
  return detoolbarItems.map((item2) => {
@@ -147,7 +148,6 @@ const ToolbarControl = /* @__PURE__ */ defineComponent({
147
148
  title: () => {
148
149
  let _slot3;
149
150
  return createVNode(resolveComponent("el-button"), {
150
- "class": calcCssName(item),
151
151
  "loading": loading
152
152
  }, _isSlot(_slot3 = btnContent(item)) ? _slot3 : {
153
153
  default: () => [_slot3]
@@ -1,4 +1,4 @@
1
- import { ref, shallowRef, watch, onBeforeUnmount, onMounted, createTextVNode, createVNode, nextTick, onUnmounted, resolveComponent, defineComponent } from 'vue';
1
+ import { ref, shallowRef, watch, onBeforeUnmount, nextTick, onMounted, createTextVNode, createVNode, onUnmounted, resolveComponent, defineComponent } from 'vue';
2
2
  import { Toolbar, Editor } from '@wangeditor/editor-for-vue';
3
3
  import { getCookie } from 'qx-util';
4
4
  import { isNil } from 'ramda';
@@ -198,9 +198,13 @@ const IBizHtml = /* @__PURE__ */ defineComponent({
198
198
  watch(() => props.value, (newVal, oldVal) => {
199
199
  if (newVal !== oldVal && (typeof props.value === "string" || newVal == null)) {
200
200
  if (newVal == null) {
201
- valueHtml.value = "";
201
+ nextTick(() => {
202
+ valueHtml.value = "";
203
+ });
202
204
  } else {
203
- valueHtml.value = newVal;
205
+ nextTick(() => {
206
+ valueHtml.value = newVal;
207
+ });
204
208
  }
205
209
  }
206
210
  }, {
@@ -33,7 +33,8 @@ const IBizActionToolbar = /* @__PURE__ */ vue.defineComponent({
33
33
  zIndex: {
34
34
  type: Number,
35
35
  required: true
36
- }
36
+ },
37
+ popperClass: String
37
38
  },
38
39
  setup(props, {
39
40
  emit
@@ -153,7 +154,8 @@ const IBizActionToolbar = /* @__PURE__ */ vue.defineComponent({
153
154
  return vue.createVNode(vue.resolveComponent("el-dropdown"), {
154
155
  "ref": "dropdownRef",
155
156
  "onCommand": (command) => this.handleClick(command, new MouseEvent("click")),
156
- "class": [this.ns.b(), this.ns.m("dropdown")]
157
+ "class": [this.ns.b(), this.ns.m("dropdown")],
158
+ "popper-class": this.popperClass
157
159
  }, {
158
160
  default: () => vue.createVNode("span", {
159
161
  "class": this.ns.e("caption")
@@ -15,7 +15,9 @@ const PortletLayout = /* @__PURE__ */ vue.defineComponent({
15
15
  }
16
16
  },
17
17
  setup(props) {
18
+ var _a;
18
19
  const ns = vue3Util.useNamespace("portlet-layout");
20
+ const portletType = "portlet-".concat((_a = props.controller.model.portletType) == null ? void 0 : _a.toLowerCase());
19
21
  const c = props.controller;
20
22
  const isShowHeader = vue.computed(() => {
21
23
  return c.model.showTitleBar && (c.model.title || c.model.sysImage) || c.model.uiactionGroup;
@@ -26,6 +28,7 @@ const PortletLayout = /* @__PURE__ */ vue.defineComponent({
26
28
  return {
27
29
  c,
28
30
  ns,
31
+ portletType,
29
32
  isShowHeader,
30
33
  onActionClick
31
34
  };
@@ -58,6 +61,7 @@ const PortletLayout = /* @__PURE__ */ vue.defineComponent({
58
61
  "action-details": model.uiactionGroup.uiactionGroupDetails,
59
62
  "actions-state": state.actionGroupState,
60
63
  "mode": model.actionGroupExtractMode === "ITEMS" ? "dropdown" : "buttons",
64
+ "popperClass": this.ns.em("toolbar", "".concat(this.portletType, "-").concat(model.id)),
61
65
  "onActionClick": this.onActionClick
62
66
  }, null)])]), vue.createVNode("div", {
63
67
  "key": "content",
@@ -28,6 +28,10 @@ const btnContent = (item) => {
28
28
  }
29
29
  return result;
30
30
  };
31
+ const calcCssName = (item) => {
32
+ var _a;
33
+ return (_a = item == null ? void 0 : item.sysCss) == null ? void 0 : _a.cssName;
34
+ };
31
35
  const ToolbarControl = /* @__PURE__ */ vue.defineComponent({
32
36
  name: "IBizToolbarControl",
33
37
  props: {
@@ -60,10 +64,6 @@ const ToolbarControl = /* @__PURE__ */ vue.defineComponent({
60
64
  const handleClick = async (item, event, params) => {
61
65
  await c.onItemClick(item, event, params);
62
66
  };
63
- const calcCssName = (item) => {
64
- var _a2;
65
- return (_a2 = item == null ? void 0 : item.sysCss) == null ? void 0 : _a2.cssName;
66
- };
67
67
  const renderExtraButtons = (extraButtons) => {
68
68
  return extraButtons.map((button) => {
69
69
  let _slot;
@@ -82,11 +82,12 @@ const ToolbarControl = /* @__PURE__ */ vue.defineComponent({
82
82
  const renderSubmenu = (item) => {
83
83
  const detoolbarItems = item.detoolbarItems || [];
84
84
  const loading = detoolbarItems.findIndex((item2) => c.state.buttonsState[item2.id].loading) !== -1;
85
+ const groupButtonStyle = item.buttonStyle || "";
85
86
  return vue.createVNode(vue.resolveComponent("el-sub-menu"), {
86
- "class": ns.b("submenu"),
87
+ "class": [ns.b("submenu"), ns.em("item", groupButtonStyle.toLowerCase()), calcCssName(item)],
87
88
  "index": item.id,
88
89
  "title": item.tooltip,
89
- "popper-class": [ns.b("submenu-popper"), ns.bm("submenu-popper", toolbarStyle), ns.bm("submenu-popper", calcCssName(item))]
90
+ "popper-class": [ns.b("submenu-popper"), ns.bm("submenu-popper", toolbarStyle), ns.em("submenu-popper", groupButtonStyle.toLowerCase()), ns.bm("submenu-popper", calcCssName(item))]
90
91
  }, {
91
92
  default: () => {
92
93
  return detoolbarItems.map((item2) => {
@@ -149,7 +150,6 @@ const ToolbarControl = /* @__PURE__ */ vue.defineComponent({
149
150
  title: () => {
150
151
  let _slot3;
151
152
  return vue.createVNode(vue.resolveComponent("el-button"), {
152
- "class": calcCssName(item),
153
153
  "loading": loading
154
154
  }, _isSlot(_slot3 = btnContent(item)) ? _slot3 : {
155
155
  default: () => [_slot3]
@@ -202,9 +202,13 @@ const IBizHtml = /* @__PURE__ */ vue.defineComponent({
202
202
  vue.watch(() => props.value, (newVal, oldVal) => {
203
203
  if (newVal !== oldVal && (typeof props.value === "string" || newVal == null)) {
204
204
  if (newVal == null) {
205
- valueHtml.value = "";
205
+ vue.nextTick(() => {
206
+ valueHtml.value = "";
207
+ });
206
208
  } else {
207
- valueHtml.value = newVal;
209
+ vue.nextTick(() => {
210
+ valueHtml.value = newVal;
211
+ });
208
212
  }
209
213
  }
210
214
  }, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ibiz-template/vue3-components",
3
- "version": "0.7.7-dev.0",
3
+ "version": "0.7.7",
4
4
  "description": "使用 rollup 编译 vue 组件或者 jsx",
5
5
  "main": "lib/index.cjs",
6
6
  "module": "es/index.mjs",
@@ -32,12 +32,12 @@
32
32
  "@ibiz-template-plugin/gantt": "0.1.3-alpha.46",
33
33
  "@ibiz-template/core": "0.7.7-dev.0",
34
34
  "@ibiz-template/devtool": "0.0.1-dev.6",
35
- "@ibiz-template/model-helper": "0.7.7-dev.0",
36
- "@ibiz-template/runtime": "0.7.7-dev.0",
35
+ "@ibiz-template/model-helper": "0.7.7",
36
+ "@ibiz-template/runtime": "0.7.7",
37
37
  "@ibiz-template/theme": "^0.7.0",
38
- "@ibiz-template/vue3-util": "0.7.7-dev.0",
38
+ "@ibiz-template/vue3-util": "0.7.7",
39
39
  "@ibiz-template/web-theme": "^1.1.16",
40
- "@ibiz/model-core": "^0.1.22",
40
+ "@ibiz/model-core": "^0.1.23",
41
41
  "@imengyu/vue3-context-menu": "^1.3.5",
42
42
  "@monaco-editor/loader": "^1.4.0",
43
43
  "@wangeditor/editor": "^5.1.23",
@@ -100,7 +100,7 @@
100
100
  "@ibiz-template/runtime": "^0.7.0",
101
101
  "@ibiz-template/theme": "^0.7.0",
102
102
  "@ibiz-template/vue3-util": "^0.7.0",
103
- "@ibiz/model-core": "^0.1.22",
103
+ "@ibiz/model-core": "^0.1.23",
104
104
  "@imengyu/vue3-context-menu": "^1.3.3",
105
105
  "@monaco-editor/loader": "^1.3.3",
106
106
  "@wangeditor/editor": "^5.1.23",