@cregis/ui 1.0.6 → 1.0.9
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.css +1 -1
- package/dist/index.js +7321 -0
- package/dist/types/index.d.ts +65 -2
- package/package.json +16 -20
- package/dist/es/cregis-ui.js +0 -3046
- package/dist/es/logo.png +0 -0
- package/dist/umd/cregis-ui.umd.cjs +0 -1
- package/dist/umd/index.css +0 -1
- package/dist/umd/logo.png +0 -0
package/dist/types/index.d.ts
CHANGED
|
@@ -211,6 +211,18 @@ export declare interface ConfirmOptions {
|
|
|
211
211
|
|
|
212
212
|
export declare type ConfirmParam = string | ConfirmOptions;
|
|
213
213
|
|
|
214
|
+
declare interface CregisTableProps {
|
|
215
|
+
maxHeight?: string;
|
|
216
|
+
headerHeight?: number;
|
|
217
|
+
headerBg?: string;
|
|
218
|
+
columnHeight?: number;
|
|
219
|
+
loading?: boolean;
|
|
220
|
+
initing?: boolean;
|
|
221
|
+
dataList: DataItem[];
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
export declare type DataItem = Record<string, any>;
|
|
225
|
+
|
|
214
226
|
declare const _default: DefineComponent<DialogProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
215
227
|
"update:modelValue": (visible: boolean) => any;
|
|
216
228
|
"after-leave": () => any;
|
|
@@ -274,15 +286,15 @@ export declare const Input: DefineComponent<InputProps, {
|
|
|
274
286
|
focus: () => Promise<void>;
|
|
275
287
|
updateTextWidth: () => void;
|
|
276
288
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
277
|
-
"update:modelValue": (value: string | number) => any;
|
|
278
289
|
input: (value: string | number) => any;
|
|
290
|
+
"update:modelValue": (value: string | number) => any;
|
|
279
291
|
change: (value: string | number) => any;
|
|
280
292
|
focus: (value: FocusEvent) => any;
|
|
281
293
|
blur: (value: FocusEvent) => any;
|
|
282
294
|
clear: () => any;
|
|
283
295
|
}, string, PublicProps, Readonly<InputProps> & Readonly<{
|
|
284
|
-
"onUpdate:modelValue"?: (value: string | number) => any;
|
|
285
296
|
onInput?: (value: string | number) => any;
|
|
297
|
+
"onUpdate:modelValue"?: (value: string | number) => any;
|
|
286
298
|
onChange?: (value: string | number) => any;
|
|
287
299
|
onFocus?: (value: FocusEvent) => any;
|
|
288
300
|
onBlur?: (value: FocusEvent) => any;
|
|
@@ -328,6 +340,8 @@ export declare interface InputProps {
|
|
|
328
340
|
clearText?: string;
|
|
329
341
|
}
|
|
330
342
|
|
|
343
|
+
export declare type LanguageKey = 'zh-CN' | 'zh-TW' | 'en-US';
|
|
344
|
+
|
|
331
345
|
/** 函数式轻提示,默认停留 1s,可通过对象配置时长;已有提示展示时忽略新调用 */
|
|
332
346
|
export declare function Message(source: MessageParam): void;
|
|
333
347
|
|
|
@@ -483,6 +497,8 @@ export declare const Select: DefineComponent<SelectProps, {}, {}, {}, {}, Compon
|
|
|
483
497
|
searchText: string;
|
|
484
498
|
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
485
499
|
|
|
500
|
+
export declare type SelectAllMode = 'none' | 'some' | 'all';
|
|
501
|
+
|
|
486
502
|
export declare interface SelectContext {
|
|
487
503
|
modelValue: ComputedRef<StringOrNumber_3 | StringOrNumber_3[] | undefined>;
|
|
488
504
|
multiple: ComputedRef<boolean>;
|
|
@@ -528,10 +544,14 @@ export declare interface SelectScrollPayload {
|
|
|
528
544
|
scrollLeft: number;
|
|
529
545
|
}
|
|
530
546
|
|
|
547
|
+
export declare const setCregisUILocale: (lang: LanguageKey) => void;
|
|
548
|
+
|
|
531
549
|
declare type Size = 'large' | 'medium' | 'small' | 'extraSmall';
|
|
532
550
|
|
|
533
551
|
declare type Size_2 = 'large' | 'medium' | 'small' | 'extraSmall';
|
|
534
552
|
|
|
553
|
+
export declare type SortValue = 'asc' | 'desc' | '';
|
|
554
|
+
|
|
535
555
|
export { StringOrNumber }
|
|
536
556
|
|
|
537
557
|
declare type StringOrNumber_2 = string | number;
|
|
@@ -564,6 +584,49 @@ export declare interface SwitchProps {
|
|
|
564
584
|
beforeChange?: () => boolean | Promise<boolean>;
|
|
565
585
|
}
|
|
566
586
|
|
|
587
|
+
export declare const TableList: DefineComponent<CregisTableProps, {
|
|
588
|
+
openSelect: () => void;
|
|
589
|
+
closeSelect: () => void;
|
|
590
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
591
|
+
"row-click": (...args: any[]) => void;
|
|
592
|
+
"update:selected-list": (...args: any[]) => void;
|
|
593
|
+
"selected-change": (...args: any[]) => void;
|
|
594
|
+
}, string, PublicProps, Readonly<CregisTableProps> & Readonly<{
|
|
595
|
+
"onRow-click"?: (...args: any[]) => any;
|
|
596
|
+
"onUpdate:selected-list"?: (...args: any[]) => any;
|
|
597
|
+
"onSelected-change"?: (...args: any[]) => any;
|
|
598
|
+
}>, {
|
|
599
|
+
columnHeight: number;
|
|
600
|
+
headerHeight: number;
|
|
601
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
602
|
+
|
|
603
|
+
export declare const TableListColumn: DefineComponent<TableListColumnProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
604
|
+
selectChange: (...args: any[]) => void;
|
|
605
|
+
}, string, PublicProps, Readonly<TableListColumnProps> & Readonly<{
|
|
606
|
+
onSelectChange?: (...args: any[]) => any;
|
|
607
|
+
}>, {
|
|
608
|
+
type: "default" | "select";
|
|
609
|
+
hidden: boolean;
|
|
610
|
+
align: "left" | "center" | "right";
|
|
611
|
+
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
612
|
+
|
|
613
|
+
declare interface TableListColumnProps {
|
|
614
|
+
data?: DataItem;
|
|
615
|
+
index?: number;
|
|
616
|
+
columnHeight?: number;
|
|
617
|
+
minTableWidth?: number;
|
|
618
|
+
type?: 'default' | 'select';
|
|
619
|
+
selected?: boolean;
|
|
620
|
+
blank?: boolean;
|
|
621
|
+
prop?: string;
|
|
622
|
+
label?: string;
|
|
623
|
+
width?: string;
|
|
624
|
+
widthPercent?: number;
|
|
625
|
+
minWidth?: string;
|
|
626
|
+
align?: 'left' | 'center' | 'right';
|
|
627
|
+
hidden?: boolean;
|
|
628
|
+
}
|
|
629
|
+
|
|
567
630
|
export declare const TabPane: DefineComponent<TabPaneProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<TabPaneProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
568
631
|
|
|
569
632
|
export declare interface TabPaneProps {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cregis/ui",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.9",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|
|
7
7
|
"dist"
|
|
@@ -9,55 +9,55 @@
|
|
|
9
9
|
"sideEffects": [
|
|
10
10
|
"dist/index.css"
|
|
11
11
|
],
|
|
12
|
-
"main": "./dist/
|
|
13
|
-
"module": "./dist/
|
|
12
|
+
"main": "./dist/index.js",
|
|
13
|
+
"module": "./dist/index.js",
|
|
14
14
|
"types": "./dist/types/index.d.ts",
|
|
15
15
|
"exports": {
|
|
16
16
|
".": {
|
|
17
17
|
"types": "./dist/types/index.d.ts",
|
|
18
|
-
"import": "./dist/
|
|
19
|
-
"require": "./dist/umd/cregis-ui.umd.cjs"
|
|
18
|
+
"import": "./dist/index.js"
|
|
20
19
|
},
|
|
21
|
-
"./dist/":
|
|
22
|
-
"import": "./dist/",
|
|
23
|
-
"require": "./dist/"
|
|
24
|
-
}
|
|
20
|
+
"./dist/index.css": "./dist/index.css"
|
|
25
21
|
},
|
|
26
22
|
"scripts": {
|
|
27
23
|
"dev": "vite --host",
|
|
28
|
-
"build": "
|
|
29
|
-
"build-only": "run-p build-es build-umd",
|
|
30
|
-
"build-umd": "vite build --config vite.umd.config.ts",
|
|
31
|
-
"build-es": "vite build --config vite.es.config.ts",
|
|
32
|
-
"move-style": "move-file dist/es/index.css dist/index.css",
|
|
24
|
+
"build": "vite build --config vite.es.config.ts",
|
|
33
25
|
"preview": "vite preview",
|
|
34
26
|
"prepare": "husky install"
|
|
35
27
|
},
|
|
36
28
|
"peerDependencies": {
|
|
37
29
|
"@cregis/icon": "^0.1.10",
|
|
38
|
-
"
|
|
30
|
+
"@cregis/tokens": "^1.0.0",
|
|
31
|
+
"vue": "^3.5.0",
|
|
32
|
+
"vue-i18n": "^11.0.0"
|
|
39
33
|
},
|
|
40
34
|
"devDependencies": {
|
|
41
35
|
"@commitlint/cli": "^20.1.0",
|
|
42
36
|
"@commitlint/config-conventional": "^20.0.0",
|
|
43
37
|
"@cregis/icon": "^0.1.14",
|
|
38
|
+
"@cregis/tokens": "^1.0.0",
|
|
39
|
+
"@popperjs/core": "^2.11.8",
|
|
40
|
+
"lodash-es": "^4.18.1",
|
|
44
41
|
"@rushstack/eslint-patch": "^1.14.1",
|
|
45
42
|
"@types/lodash-es": "^4.17.12",
|
|
46
43
|
"@types/node": "^24.6.0",
|
|
47
44
|
"@vitejs/plugin-vue": "^6.0.1",
|
|
48
45
|
"@vue/eslint-config-typescript": "^14.6.0",
|
|
49
46
|
"@vue/tsconfig": "^0.8.1",
|
|
47
|
+
"autoprefixer": "^10.5.4",
|
|
50
48
|
"husky": "^9.1.7",
|
|
51
49
|
"lint-staged": "^16.2.6",
|
|
52
50
|
"move-file-cli": "^3.0.0",
|
|
53
|
-
"
|
|
51
|
+
"postcss": "^8.5.22",
|
|
54
52
|
"prettier": "^3.6.2",
|
|
55
53
|
"stylelint": "^16.25.0",
|
|
56
54
|
"stylelint-config-standard": "^39.0.1",
|
|
55
|
+
"tailwindcss": "^3.4.19",
|
|
57
56
|
"typescript": "~5.9.3",
|
|
58
57
|
"vite": "^7.1.7",
|
|
59
58
|
"vite-plugin-dts": "^4.5.4",
|
|
60
59
|
"vue": "^3.5.24",
|
|
60
|
+
"vue-i18n": "^11.4.8",
|
|
61
61
|
"vue-tsc": "^3.1.0"
|
|
62
62
|
},
|
|
63
63
|
"husky": {
|
|
@@ -76,9 +76,5 @@
|
|
|
76
76
|
"*.{ts,tsx,js,json,html,yml,css,less,scss,md}": [
|
|
77
77
|
"prettier --write"
|
|
78
78
|
]
|
|
79
|
-
},
|
|
80
|
-
"dependencies": {
|
|
81
|
-
"@popperjs/core": "^2.11.8",
|
|
82
|
-
"lodash-es": "^4.18.1"
|
|
83
79
|
}
|
|
84
80
|
}
|