@oinone/kunlun-vue-admin-base 7.2.1 → 7.2.2

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.
@@ -43,6 +43,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
43
43
  direction: {
44
44
  type: StringConstructor;
45
45
  };
46
+ overflow: {
47
+ type: BooleanConstructor;
48
+ default: undefined;
49
+ };
46
50
  operatorColumnDirection: {
47
51
  type: PropType<OperationColumnDirection | keyof typeof OperationColumnDirection>;
48
52
  };
@@ -126,6 +130,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
126
130
  direction: {
127
131
  type: StringConstructor;
128
132
  };
133
+ overflow: {
134
+ type: BooleanConstructor;
135
+ default: undefined;
136
+ };
129
137
  operatorColumnDirection: {
130
138
  type: PropType<OperationColumnDirection | keyof typeof OperationColumnDirection>;
131
139
  };
@@ -163,6 +171,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
163
171
  }>> & Readonly<{}>, {
164
172
  invisible: boolean;
165
173
  inline: boolean;
174
+ overflow: boolean;
166
175
  isFloat: boolean;
167
176
  }, {}, {
168
177
  DownOutlined: import("@ant-design/icons-vue/lib/icons/DownOutlined").DownOutlinedIconType;
@@ -14,6 +14,7 @@ export declare class BaseActionGroupWidget<T extends ActiveRecordsWidgetProps =
14
14
  */
15
15
  protected refreshCallChaining: CallChaining<boolean> | undefined;
16
16
  protected showActionNames: string[] | undefined;
17
+ protected get overflow(): boolean | undefined;
17
18
  protected showActionNamesProcess(): string[];
18
19
  protected resetShowActionNames(): void;
19
20
  protected $$mounted(): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oinone/kunlun-vue-admin-base",
3
- "version": "7.2.1",
3
+ "version": "7.2.2",
4
4
  "type": "module",
5
5
  "main": "dist/oinone-kunlun-vue-admin-base.esm.js",
6
6
  "scripts": {
@@ -17,13 +17,13 @@
17
17
  "doc": "typedoc --out docs src/index.ts"
18
18
  },
19
19
  "dependencies": {
20
- "@oinone/kunlun-vue-admin-layout": "7.2.1",
21
- "@oinone/kunlun-vue-router": "7.2.1",
22
- "@oinone/kunlun-vue-ui": "7.2.1",
23
- "@oinone/kunlun-vue-ui-antd": "7.2.1",
24
- "@oinone/kunlun-vue-ui-common": "7.2.1",
25
- "@oinone/kunlun-vue-ui-el": "7.2.1",
26
- "@oinone/kunlun-vue-widget": "7.2.1",
20
+ "@oinone/kunlun-vue-admin-layout": "7.2.2",
21
+ "@oinone/kunlun-vue-router": "7.2.2",
22
+ "@oinone/kunlun-vue-ui": "7.2.2",
23
+ "@oinone/kunlun-vue-ui-antd": "7.2.2",
24
+ "@oinone/kunlun-vue-ui-common": "7.2.2",
25
+ "@oinone/kunlun-vue-ui-el": "7.2.2",
26
+ "@oinone/kunlun-vue-widget": "7.2.2",
27
27
  "@wangeditor/editor": "5.1.23",
28
28
  "@wangeditor/editor-for-vue": "5.1.11",
29
29
  "@wangeditor/plugin-upload-attachment": "1.1.0",
@@ -149,6 +149,10 @@ export default defineComponent({
149
149
  direction: {
150
150
  type: String
151
151
  },
152
+ overflow: {
153
+ type: Boolean,
154
+ default: undefined
155
+ },
152
156
  operatorColumnDirection: {
153
157
  type: String as PropType<OperationColumnDirection | keyof typeof OperationColumnDirection>
154
158
  },
@@ -338,6 +342,9 @@ export default defineComponent({
338
342
  if (this.justify) {
339
343
  classList.push(`${actionBarClassName}-${this.justify}`);
340
344
  }
345
+ if (this.overflow !== false) {
346
+ classList.push(`${actionBarClassName}-overflow`);
347
+ }
341
348
  if (this.isFloat) {
342
349
  classList.push(`${actionBarClassName}-float`);
343
350
  }
@@ -8,7 +8,16 @@
8
8
  display: flex;
9
9
  align-items: center;
10
10
  flex-flow: row nowrap;
11
- overflow: auto hidden;
11
+
12
+ &.action-bar-overflow {
13
+ overflow: auto hidden;
14
+
15
+ .action-bar-left,
16
+ .action-bar-center,
17
+ .action-bar-right {
18
+ overflow: auto hidden;
19
+ }
20
+ }
12
21
 
13
22
  &.action-bar-flatten {
14
23
  gap: 12px var(--oio-margin-md);
@@ -40,7 +49,6 @@
40
49
  display: flex;
41
50
  flex-flow: row nowrap;
42
51
  align-items: center;
43
- overflow: auto hidden;
44
52
  gap: 12px var(--oio-margin-md);
45
53
  }
46
54
 
@@ -1,4 +1,4 @@
1
- import { CallChaining, CastHelper } from '@oinone/kunlun-shared';
1
+ import { BooleanHelper, CallChaining, CastHelper } from '@oinone/kunlun-shared';
2
2
  import { type ActiveRecordsWidgetProps, executeInvisible, Widget } from '@oinone/kunlun-vue-widget';
3
3
  import { BaseActionWidget, BaseElementWidget } from './token';
4
4
 
@@ -26,6 +26,11 @@ export class BaseActionGroupWidget<
26
26
  @Widget.Reactive()
27
27
  protected showActionNames: string[] | undefined;
28
28
 
29
+ @Widget.Reactive()
30
+ protected get overflow() {
31
+ return BooleanHelper.toBoolean(this.getDsl().overflow);
32
+ }
33
+
29
34
  protected showActionNamesProcess(): string[] {
30
35
  const showActionNames: Set<string> = new Set();
31
36
  this.getChildren().forEach((widget) => {
@@ -1,4 +1,4 @@
1
- import { OINONE_HOMEPAGE_KEY, translateValueByKey } from '@oinone/kunlun-engine';
1
+ import { ClearCache, OINONE_HOMEPAGE_KEY, translateValueByKey } from '@oinone/kunlun-engine';
2
2
  import { SYSTEM_MODULE_NAME } from '@oinone/kunlun-meta';
3
3
  import {
4
4
  gql,
@@ -394,7 +394,7 @@ export class LoginWidget extends BaseLoginWidget {
394
394
  } else {
395
395
  const parameters = (await homepageMaybeRuntimeContext(undefined, true)) as any;
396
396
  localStorage.setItem(OINONE_HOMEPAGE_KEY, JSON.stringify(parameters));
397
-
397
+ ClearCache.clear();
398
398
  this.router.push({
399
399
  segments: [
400
400
  {