@qqt-product/ui 17.0.0 → 20.0.0

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.
@@ -42,16 +42,16 @@ declare const _default: SFCWithInstall<DefineComponent<{
42
42
  dataFormat: Ref<string>;
43
43
  showInputNumber: Ref<boolean>;
44
44
  showClassName: Ref<boolean>;
45
- show: Ref<boolean>;
46
- realValue: Ref<number | undefined>;
45
+ inputRef: Ref<any>;
47
46
  classes: ComputedRef<{
48
47
  [key: string]: string | boolean;
49
48
  }>;
50
- handleChange: (val: number) => void;
51
- handleClick: () => void;
52
- currencyValue: Ref<string>;
53
- formatValue: Ref<string>;
49
+ isEditing: Ref<boolean>;
50
+ innerValue: Ref<number | undefined>;
54
51
  isCurrencyType: ComputedRef<boolean>;
52
+ formattedValue: ComputedRef<string>;
53
+ enterEditMode: () => void;
54
+ handleValueChange: (val: number | undefined) => void;
55
55
  }, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, ("change" | "update:value")[], "change" | "update:value", VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
56
56
  readonly config: {
57
57
  readonly type: ObjectConstructor;
@@ -38,16 +38,16 @@ declare const _sfc_main: DefineComponent<{
38
38
  dataFormat: Ref<string>;
39
39
  showInputNumber: Ref<boolean>;
40
40
  showClassName: Ref<boolean>;
41
- show: Ref<boolean>;
42
- realValue: Ref<number | undefined>;
41
+ inputRef: Ref<any>;
43
42
  classes: ComputedRef<{
44
43
  [key: string]: string | boolean;
45
44
  }>;
46
- handleChange: (val: number) => void;
47
- handleClick: () => void;
48
- currencyValue: Ref<string>;
49
- formatValue: Ref<string>;
45
+ isEditing: Ref<boolean>;
46
+ innerValue: Ref<number | undefined>;
50
47
  isCurrencyType: ComputedRef<boolean>;
48
+ formattedValue: ComputedRef<string>;
49
+ enterEditMode: () => void;
50
+ handleValueChange: (val: number | undefined) => void;
51
51
  }, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, ("change" | "update:value")[], "change" | "update:value", VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
52
52
  readonly config: {
53
53
  readonly type: ObjectConstructor;
@@ -7,8 +7,10 @@
7
7
  */
8
8
  export declare const currency: (value: string, _currency: string, decimals: number) => string;
9
9
  /**
10
- * 小数位数换算
11
- * @param {String} sign
12
- * @param {Number} dataFormatLen 格式化小数
10
+ * 格式化浮点数(不四舍五入)
11
+ * @param {number|null|undefined} num - 要格式化的数值
12
+ * @param {string|null} format - 格式字符串(如 '#.0000'),优先级高于 decimalPlaces
13
+ * @param {number} [decimalPlaces=4] - 小数位数(默认4位),仅当 format 为 null/undefined 时生效
14
+ * @returns {string} 格式化后的字符串(num为null/undefined时返回空字符串)
13
15
  */
14
- export declare const formatFloat: (value: any, dataFormat: string, setLength?: number) => string;
16
+ export declare const formatFloat: (num: number | null | undefined, format?: string | null, decimalPlaces?: number) => string;
@@ -1163,6 +1163,7 @@ declare const _default: SFCWithInstall<DefineComponent<{
1163
1163
  changeLangHandle: () => void;
1164
1164
  }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{}>>, {}, {}>;
1165
1165
  customPerson: DefineComponent<{}, {
1166
+ token: string;
1166
1167
  srmI18n: SrmI18n;
1167
1168
  userInfo: {
1168
1169
  token: string;
@@ -1178,6 +1179,7 @@ declare const _default: SFCWithInstall<DefineComponent<{
1178
1179
  personalSetting: () => void;
1179
1180
  handleLogout: () => void;
1180
1181
  nickname: Ref<string>;
1182
+ imgUrlForToken: (imgUrl: string | undefined) => string | undefined;
1181
1183
  avatarUrl: ComputedRef<string>;
1182
1184
  handlePersonalSettings: () => void;
1183
1185
  readonly SettingOutlined: SettingOutlinedIconType;
@@ -241,6 +241,7 @@ declare const _sfc_main: DefineComponent<{}, {
241
241
  changeLangHandle: () => void;
242
242
  }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{}>>, {}, {}>;
243
243
  customPerson: DefineComponent<{}, {
244
+ token: string;
244
245
  srmI18n: SrmI18n;
245
246
  userInfo: {
246
247
  token: string;
@@ -256,6 +257,7 @@ declare const _sfc_main: DefineComponent<{}, {
256
257
  personalSetting: () => void;
257
258
  handleLogout: () => void;
258
259
  nickname: Ref<string>;
260
+ imgUrlForToken: (imgUrl: string | undefined) => string | undefined;
259
261
  avatarUrl: ComputedRef<string>;
260
262
  handlePersonalSettings: () => void;
261
263
  readonly SettingOutlined: SettingOutlinedIconType;
@@ -3,6 +3,7 @@ import type { SettingOutlinedIconType } from '@ant-design/icons-vue/lib/icons/Se
3
3
  import type { SrmI18n } from '../../../../../utils/type';
4
4
  import type { DefineComponent, Ref, ComputedRef, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes } from 'vue';
5
5
  declare const _sfc_main: DefineComponent<{}, {
6
+ token: string;
6
7
  srmI18n: SrmI18n;
7
8
  userInfo: {
8
9
  token: string;
@@ -18,6 +19,7 @@ declare const _sfc_main: DefineComponent<{}, {
18
19
  personalSetting: () => void;
19
20
  handleLogout: () => void;
20
21
  nickname: Ref<string>;
22
+ imgUrlForToken: (imgUrl: string | undefined) => string | undefined;
21
23
  avatarUrl: ComputedRef<string>;
22
24
  handlePersonalSettings: () => void;
23
25
  readonly SettingOutlined: SettingOutlinedIconType;
@@ -182,6 +182,7 @@ declare const _sfc_main: DefineComponent<{}, {
182
182
  changeLangHandle: () => void;
183
183
  }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{}>>, {}, {}>;
184
184
  customPerson: DefineComponent<{}, {
185
+ token: string;
185
186
  srmI18n: SrmI18n;
186
187
  userInfo: {
187
188
  token: string;
@@ -197,6 +198,7 @@ declare const _sfc_main: DefineComponent<{}, {
197
198
  personalSetting: () => void;
198
199
  handleLogout: () => void;
199
200
  nickname: Ref<string>;
201
+ imgUrlForToken: (imgUrl: string | undefined) => string | undefined;
200
202
  avatarUrl: ComputedRef<string>;
201
203
  handlePersonalSettings: () => void;
202
204
  readonly SettingOutlined: SettingOutlinedIconType;
@@ -1160,6 +1160,7 @@ declare const _sfc_main: DefineComponent<{
1160
1160
  changeLangHandle: () => void;
1161
1161
  }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{}>>, {}, {}>;
1162
1162
  customPerson: DefineComponent<{}, {
1163
+ token: string;
1163
1164
  srmI18n: SrmI18n;
1164
1165
  userInfo: {
1165
1166
  token: string;
@@ -1175,6 +1176,7 @@ declare const _sfc_main: DefineComponent<{
1175
1176
  personalSetting: () => void;
1176
1177
  handleLogout: () => void;
1177
1178
  nickname: Ref<string>;
1179
+ imgUrlForToken: (imgUrl: string | undefined) => string | undefined;
1178
1180
  avatarUrl: ComputedRef<string>;
1179
1181
  handlePersonalSettings: () => void;
1180
1182
  readonly SettingOutlined: SettingOutlinedIconType;
@@ -79,7 +79,6 @@ export interface LayoutConfigType {
79
79
  showWebProcurement?: boolean;
80
80
  showI18n?: boolean;
81
81
  showChatBi?: boolean;
82
- showListChatBi?: boolean;
83
82
  showAiKnowledgeBase?: boolean;
84
83
  [propName: string]: any;
85
84
  }
@@ -317,6 +317,7 @@ declare const _default: SFCWithInstall<DefineComponent<{
317
317
  recordModalRef: Ref<any>;
318
318
  editNavModalRef: Ref<any>;
319
319
  importModalRef: Ref<any>;
320
+ selectTemplateKey: Ref<number>;
320
321
  }, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, ("tagCheckChange" | "link-click" | "add-button-click" | "getGridInstance" | "cell-click" | "sort-change" | "filter-change" | "resizable-change")[], "tagCheckChange" | "link-click" | "add-button-click" | "getGridInstance" | "cell-click" | "sort-change" | "filter-change" | "resizable-change", VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
321
322
  loading: {
322
323
  type: BooleanConstructor;
@@ -310,6 +310,7 @@ declare const _sfc_main: DefineComponent<{
310
310
  recordModalRef: Ref<any>;
311
311
  editNavModalRef: Ref<any>;
312
312
  importModalRef: Ref<any>;
313
+ selectTemplateKey: Ref<number>;
313
314
  }, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, ("tagCheckChange" | "link-click" | "add-button-click" | "getGridInstance" | "cell-click" | "sort-change" | "filter-change" | "resizable-change")[], "tagCheckChange" | "link-click" | "add-button-click" | "getGridInstance" | "cell-click" | "sort-change" | "filter-change" | "resizable-change", VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
314
315
  loading: {
315
316
  type: BooleanConstructor;
@@ -1,3 +1,5 @@
1
+ import type { EyeOutlinedIconType } from '@ant-design/icons-vue/lib/icons/EyeOutlined';
2
+ import type { DeleteOutlinedIconType } from '@ant-design/icons-vue/lib/icons/DeleteOutlined';
1
3
  import type { PictureOutlinedIconType } from '@ant-design/icons-vue/lib/icons/PictureOutlined';
2
4
  import type { UploadFiles } from './src/upload-image-type';
3
5
  import type { UploadFile } from 'ant-design-vue';
@@ -64,6 +66,7 @@ declare const _default: SFCWithInstall<DefineComponent<{
64
66
  }, {
65
67
  props: any;
66
68
  emit: (event: "change" | "update:value", ...args: any[]) => void;
69
+ token: string;
67
70
  layoutProps: EditPageLayoutProps;
68
71
  currentRow: Ref<CurrentRow>;
69
72
  headId: Ref<string>;
@@ -169,12 +172,15 @@ declare const _default: SFCWithInstall<DefineComponent<{
169
172
  srmI18n: SrmI18n;
170
173
  uploadStatues: Ref<boolean>;
171
174
  uploadNumber: Ref<number>;
175
+ imgUrlForToken: (imgUrl: string | undefined) => string | undefined;
172
176
  handleUploadImage: () => void;
173
177
  beforeUpload: (file: UploadFile<any>, uploadFiles: UploadFile<any>[]) => boolean;
174
178
  handlePreview: (file: UploadFiles) => Promise<void>;
175
179
  handleItemRemove: (file: any) => void;
176
180
  isImageUrlFun: () => boolean;
177
181
  readonly PictureOutlined: PictureOutlinedIconType;
182
+ readonly DeleteOutlined: DeleteOutlinedIconType;
183
+ readonly EyeOutlined: EyeOutlinedIconType;
178
184
  Preview: DefineComponent<{
179
185
  readonly url: {
180
186
  readonly type: PropType<string>;
@@ -1,3 +1,5 @@
1
+ import type { EyeOutlinedIconType } from '@ant-design/icons-vue/lib/icons/EyeOutlined';
2
+ import type { DeleteOutlinedIconType } from '@ant-design/icons-vue/lib/icons/DeleteOutlined';
1
3
  import type { PictureOutlinedIconType } from '@ant-design/icons-vue/lib/icons/PictureOutlined';
2
4
  import type { SrmI18n } from '../../../utils/type';
3
5
  import type { UploadFileStatus, FileType } from 'ant-design-vue/es/upload/interface';
@@ -59,6 +61,7 @@ declare const _sfc_main: DefineComponent<{
59
61
  }, {
60
62
  props: any;
61
63
  emit: (event: "change" | "update:value", ...args: any[]) => void;
64
+ token: string;
62
65
  layoutProps: EditPageLayoutProps;
63
66
  currentRow: Ref<CurrentRow>;
64
67
  headId: Ref<string>;
@@ -164,12 +167,15 @@ declare const _sfc_main: DefineComponent<{
164
167
  srmI18n: SrmI18n;
165
168
  uploadStatues: Ref<boolean>;
166
169
  uploadNumber: Ref<number>;
170
+ imgUrlForToken: (imgUrl: string | undefined) => string | undefined;
167
171
  handleUploadImage: () => void;
168
172
  beforeUpload: (file: UploadFile, uploadFiles: UploadFile[]) => boolean;
169
173
  handlePreview: (file: UploadFiles) => Promise<void>;
170
174
  handleItemRemove: (file: any) => void;
171
175
  isImageUrlFun: () => boolean;
172
176
  readonly PictureOutlined: PictureOutlinedIconType;
177
+ readonly DeleteOutlined: DeleteOutlinedIconType;
178
+ readonly EyeOutlined: EyeOutlinedIconType;
173
179
  Preview: DefineComponent<{
174
180
  readonly url: {
175
181
  readonly type: PropType<string>;