@weitutech/by-components-v3 1.1.25 → 1.1.27

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.
Files changed (39) hide show
  1. package/README.md +6 -2
  2. package/dist/by-component-v3.css +1 -1
  3. package/dist/by-component-v3.js +11360 -8419
  4. package/dist/by-component-v3.umd.cjs +1 -1
  5. package/dist/types/packages/batch-query-selector/src/index.vue.d.ts +37 -4
  6. package/dist/types/packages/card-selector/index.d.ts +3 -0
  7. package/dist/types/packages/card-selector/src/ByCardSelector.vue.d.ts +295 -0
  8. package/dist/types/packages/card-view/index.d.ts +3 -0
  9. package/dist/types/packages/card-view/src/ByCardView.vue.d.ts +69 -0
  10. package/dist/types/packages/cascader-panel/index.d.ts +3 -0
  11. package/dist/types/packages/cascader-panel/src/ByCascaderPanel.vue.d.ts +674 -0
  12. package/dist/types/packages/cascader-panel/src/VirtualCascaderPanel.vue.d.ts +245 -0
  13. package/dist/types/packages/cascader-panel/src/VirtualList.vue.d.ts +65 -0
  14. package/dist/types/packages/customColumn/index.vue.d.ts +29 -4
  15. package/dist/types/packages/datePicker/src/datePicker.vue.d.ts +5 -4
  16. package/dist/types/packages/datePicker/src/type.d.ts +15 -1
  17. package/dist/types/packages/dialog/src/dialog.vue.d.ts +11 -7
  18. package/dist/types/packages/dialog/src/types.d.ts +25 -7
  19. package/dist/types/packages/form/src/form.vue.d.ts +19 -1
  20. package/dist/types/packages/form/src/props.d.ts +7 -1
  21. package/dist/types/packages/index.d.ts +7 -0
  22. package/dist/types/packages/page-search/index.d.ts +2 -0
  23. package/dist/types/packages/page-search/src/page-search.vue.d.ts +51 -0
  24. package/dist/types/packages/pager-unknown-total/index.vue.d.ts +24 -0
  25. package/dist/types/packages/tabs/index.d.ts +4 -0
  26. package/dist/types/packages/tabs/src/ByTabPane.vue.d.ts +61 -0
  27. package/dist/types/packages/tabs/src/ByTabs.vue.d.ts +34 -0
  28. package/dist/types/packages/tag/index.d.ts +3 -0
  29. package/dist/types/packages/tag/src/ByTag.vue.d.ts +70 -0
  30. package/dist/types/packages/utils/tableUtils.d.ts +19 -1
  31. package/dist/types/src/views/configs/config.d.ts +10 -3
  32. package/dist/types/src/views/configs/test-components.d.ts +2 -0
  33. package/dist/types/src/views/tests/CardSelectorTest.vue.d.ts +2 -0
  34. package/dist/types/src/views/tests/CardViewTest.vue.d.ts +2 -0
  35. package/dist/types/src/views/tests/CascaderPanelTest.vue.d.ts +2 -0
  36. package/dist/types/src/views/tests/PageSearchTest.vue.d.ts +2 -0
  37. package/dist/types/src/views/tests/TabsTest.vue.d.ts +2 -0
  38. package/dist/types/src/views/tests/TagTest.vue.d.ts +2 -0
  39. package/package.json +1 -1
@@ -0,0 +1,24 @@
1
+ import './index.scss';
2
+ type __VLS_Props = {
3
+ limit?: number;
4
+ page?: number;
5
+ pageSizes?: number[];
6
+ currentCount?: number;
7
+ };
8
+ declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
9
+ change: (values: {
10
+ page: number;
11
+ limit: number;
12
+ }) => any;
13
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
14
+ onChange?: (values: {
15
+ page: number;
16
+ limit: number;
17
+ }) => any;
18
+ }>, {
19
+ pageSizes: number[];
20
+ limit: number;
21
+ page: number;
22
+ currentCount: number;
23
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
24
+ export default _default;
@@ -0,0 +1,4 @@
1
+ import ByTabs from './src/ByTabs.vue';
2
+ import ByTabPane from './src/ByTabPane.vue';
3
+ export { ByTabs, ByTabPane };
4
+ export default ByTabs;
@@ -0,0 +1,61 @@
1
+ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
2
+ /**
3
+ * Tab 样式变体。default 为常规样式;subtle 为次要 tab 的置灰样式
4
+ */
5
+ variant: {
6
+ type: StringConstructor;
7
+ default: string;
8
+ validator: (value: unknown) => boolean;
9
+ };
10
+ name: {
11
+ type: (StringConstructor | NumberConstructor)[];
12
+ default: any;
13
+ };
14
+ label: {
15
+ type: StringConstructor;
16
+ default: string;
17
+ };
18
+ disabled: BooleanConstructor;
19
+ lazy: BooleanConstructor;
20
+ closable: BooleanConstructor;
21
+ }>, {}, {}, {
22
+ paneName(): string | number;
23
+ hasLabelSlot(): boolean;
24
+ paneBind(): {
25
+ label: string;
26
+ name: string | number;
27
+ disabled: boolean;
28
+ lazy: boolean;
29
+ closable: boolean;
30
+ };
31
+ }, {
32
+ syncPaneRegistration(register?: boolean): void;
33
+ }, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
34
+ /**
35
+ * Tab 样式变体。default 为常规样式;subtle 为次要 tab 的置灰样式
36
+ */
37
+ variant: {
38
+ type: StringConstructor;
39
+ default: string;
40
+ validator: (value: unknown) => boolean;
41
+ };
42
+ name: {
43
+ type: (StringConstructor | NumberConstructor)[];
44
+ default: any;
45
+ };
46
+ label: {
47
+ type: StringConstructor;
48
+ default: string;
49
+ };
50
+ disabled: BooleanConstructor;
51
+ lazy: BooleanConstructor;
52
+ closable: BooleanConstructor;
53
+ }>> & Readonly<{}>, {
54
+ label: string;
55
+ disabled: boolean;
56
+ name: string | number;
57
+ lazy: boolean;
58
+ closable: boolean;
59
+ variant: string;
60
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
61
+ export default _default;
@@ -0,0 +1,34 @@
1
+ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
2
+ /**
3
+ * 标签页风格。line 为轻量下划线;card / border-card 与 el-tabs 一致
4
+ */
5
+ type: {
6
+ type: StringConstructor;
7
+ default: string;
8
+ };
9
+ }>, {}, {
10
+ paneVariants: {};
11
+ variantStyleEl: any;
12
+ }, {
13
+ isLineType(): boolean;
14
+ tabsAttrs(): {
15
+ [x: string]: unknown;
16
+ };
17
+ variantStyle(): any;
18
+ }, {
19
+ registerPane(name: any, variant: any, register: any): void;
20
+ updateVariantStyle(style: any): void;
21
+ }, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
22
+ /**
23
+ * 标签页风格。line 为轻量下划线;card / border-card 与 el-tabs 一致
24
+ */
25
+ type: {
26
+ type: StringConstructor;
27
+ default: string;
28
+ };
29
+ }>> & Readonly<{}>, {
30
+ type: string;
31
+ }, {}, {}, {}, string, () => {
32
+ byTabsRegisterPane: (name: any, variant: any, register: any) => void;
33
+ }, true, {}, any>;
34
+ export default _default;
@@ -0,0 +1,3 @@
1
+ import ByTag from './src/ByTag.vue';
2
+ export { ByTag };
3
+ export default ByTag;
@@ -0,0 +1,70 @@
1
+ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
2
+ /**
3
+ * 类型
4
+ */
5
+ type: {
6
+ type: StringConstructor;
7
+ default: string;
8
+ };
9
+ /**
10
+ * 前缀图标类名;也可通过 #icon 插槽完全自定义。
11
+ * 同时存在时优先渲染 #icon 插槽内容。
12
+ */
13
+ icon: {
14
+ type: StringConstructor;
15
+ default: string;
16
+ };
17
+ /** 是否使用胶囊圆角(border-radius: 999px) */
18
+ round: {
19
+ type: BooleanConstructor;
20
+ default: boolean;
21
+ };
22
+ /** 是否使用虚线边框 */
23
+ dashed: {
24
+ type: BooleanConstructor;
25
+ default: boolean;
26
+ };
27
+ }>, {}, {}, {
28
+ isNativeType(): boolean;
29
+ isExtendedType(): boolean;
30
+ hasProvidedIconSlot(): boolean;
31
+ hasIcon(): boolean;
32
+ elTagType(): unknown;
33
+ elTagColor(): unknown;
34
+ tagClass(): string[];
35
+ tagAttrs(): {
36
+ [x: string]: unknown;
37
+ };
38
+ }, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
39
+ /**
40
+ * 类型
41
+ */
42
+ type: {
43
+ type: StringConstructor;
44
+ default: string;
45
+ };
46
+ /**
47
+ * 前缀图标类名;也可通过 #icon 插槽完全自定义。
48
+ * 同时存在时优先渲染 #icon 插槽内容。
49
+ */
50
+ icon: {
51
+ type: StringConstructor;
52
+ default: string;
53
+ };
54
+ /** 是否使用胶囊圆角(border-radius: 999px) */
55
+ round: {
56
+ type: BooleanConstructor;
57
+ default: boolean;
58
+ };
59
+ /** 是否使用虚线边框 */
60
+ dashed: {
61
+ type: BooleanConstructor;
62
+ default: boolean;
63
+ };
64
+ }>> & Readonly<{}>, {
65
+ type: string;
66
+ icon: string;
67
+ round: boolean;
68
+ dashed: boolean;
69
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
70
+ export default _default;
@@ -14,6 +14,8 @@ declare const removeCachedTableColumns: (name: string) => void;
14
14
  * @param {*} name 表格名称
15
15
  * @param {*} context
16
16
  */
17
+ declare const COLUMN_LAZY_MORE_FIELD = "__columnLazyMore";
18
+ declare const COLUMN_LAZY_MORE_SLOT = "columnLazyMoreHeader";
17
19
  declare const saveCachedColumns: (name: string, context: any) => void;
18
20
  /**
19
21
  * 获取列宽缓存
@@ -35,4 +37,20 @@ declare const replaceColumnWidthToColumns: (name: string, columns: any[]) => any
35
37
  * @returns 重写后的列
36
38
  */
37
39
  declare const rewriteWidthColumns: (fromColumns: any[], toColumns: any[]) => any[];
38
- export { isCachedTableColumns, saveCachedColumns, getCachedColumns, replaceColumnWidthToColumns, removeCachedTableColumns, rewriteWidthColumns, };
40
+ declare const recursiveSlot: (fields: any[], slotSet: Set<string>) => void;
41
+ declare const getColumnLazySignature: (columns: any[]) => string;
42
+ declare const sliceColumnsByLazyLeafLimit: (columns: any[], leafLimit: number, requiredField?: string, options?: {
43
+ ignoreFixed?: boolean;
44
+ }) => {
45
+ columns: any[];
46
+ remainingLeafCount: number;
47
+ };
48
+ declare const getCustomColumnGroupSignature: (groups: any[]) => string;
49
+ declare const sliceCustomColumnGroupsByLeafLimit: (groups: any[], leafLimit: number, requiredField?: string, options?: {
50
+ ignoreFixed?: boolean;
51
+ }) => {
52
+ columns: any[];
53
+ remainingLeafCount: number;
54
+ };
55
+ declare const groupedColumnsForTable: (columns: any[], fixedMaxCount?: number) => any[];
56
+ export { COLUMN_LAZY_MORE_FIELD, COLUMN_LAZY_MORE_SLOT, isCachedTableColumns, saveCachedColumns, getCachedColumns, replaceColumnWidthToColumns, removeCachedTableColumns, rewriteWidthColumns, recursiveSlot, getColumnLazySignature, sliceColumnsByLazyLeafLimit, getCustomColumnGroupSignature, sliceCustomColumnGroupsByLeafLimit, groupedColumnsForTable, };
@@ -5,6 +5,7 @@ export declare const searchFormItems: import("vue").Ref<{
5
5
  field?: string;
6
6
  startTimeField?: string;
7
7
  endTimeField?: string;
8
+ shortcutLayout?: "external" | "panel";
8
9
  suffixInputField?: string;
9
10
  actions?: string;
10
11
  hidden?: boolean;
@@ -50,6 +51,7 @@ export declare const searchFormItems: import("vue").Ref<{
50
51
  field?: string;
51
52
  startTimeField?: string;
52
53
  endTimeField?: string;
54
+ shortcutLayout?: "external" | "panel";
53
55
  suffixInputField?: string;
54
56
  actions?: string;
55
57
  hidden?: boolean;
@@ -96,7 +98,7 @@ export declare const formConfig: import("vue").Ref<{
96
98
  padding: string;
97
99
  };
98
100
  flexible: {
99
- foldField: any[];
101
+ foldField: string[];
100
102
  unfold: boolean;
101
103
  };
102
104
  isFlexible: boolean;
@@ -124,6 +126,7 @@ export declare const formConfig: import("vue").Ref<{
124
126
  field?: string;
125
127
  startTimeField?: string;
126
128
  endTimeField?: string;
129
+ shortcutLayout?: "external" | "panel";
127
130
  suffixInputField?: string;
128
131
  actions?: string;
129
132
  hidden?: boolean;
@@ -170,7 +173,7 @@ export declare const formConfig: import("vue").Ref<{
170
173
  padding: string;
171
174
  };
172
175
  flexible: {
173
- foldField: any[];
176
+ foldField: string[];
174
177
  unfold: boolean;
175
178
  };
176
179
  isFlexible: boolean;
@@ -198,6 +201,7 @@ export declare const formConfig: import("vue").Ref<{
198
201
  field?: string;
199
202
  startTimeField?: string;
200
203
  endTimeField?: string;
204
+ shortcutLayout?: "external" | "panel";
201
205
  suffixInputField?: string;
202
206
  actions?: string;
203
207
  hidden?: boolean;
@@ -244,7 +248,7 @@ export declare const formConfig: import("vue").Ref<{
244
248
  padding: string;
245
249
  };
246
250
  flexible: {
247
- foldField: any[];
251
+ foldField: string[];
248
252
  unfold: boolean;
249
253
  };
250
254
  isFlexible: boolean;
@@ -272,6 +276,7 @@ export declare const formConfig: import("vue").Ref<{
272
276
  field?: string;
273
277
  startTimeField?: string;
274
278
  endTimeField?: string;
279
+ shortcutLayout?: "external" | "panel";
275
280
  suffixInputField?: string;
276
281
  actions?: string;
277
282
  hidden?: boolean;
@@ -711,6 +716,7 @@ export declare const dialogFormItems: import("vue").Ref<{
711
716
  field?: string;
712
717
  startTimeField?: string;
713
718
  endTimeField?: string;
719
+ shortcutLayout?: "external" | "panel";
714
720
  suffixInputField?: string;
715
721
  actions?: string;
716
722
  hidden?: boolean;
@@ -756,6 +762,7 @@ export declare const dialogFormItems: import("vue").Ref<{
756
762
  field?: string;
757
763
  startTimeField?: string;
758
764
  endTimeField?: string;
765
+ shortcutLayout?: "external" | "panel";
759
766
  suffixInputField?: string;
760
767
  actions?: string;
761
768
  hidden?: boolean;
@@ -5,6 +5,8 @@ export interface TestComponent {
5
5
  icon: string;
6
6
  component: string;
7
7
  description: string;
8
+ /** 组件标签名,展示在左侧菜单标题下方 */
9
+ componentName?: string;
8
10
  }
9
11
  /**
10
12
  * 测试组件列表
@@ -0,0 +1,2 @@
1
+ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
2
+ export default _default;
@@ -0,0 +1,2 @@
1
+ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
2
+ export default _default;
@@ -0,0 +1,2 @@
1
+ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
2
+ export default _default;
@@ -0,0 +1,2 @@
1
+ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
2
+ export default _default;
@@ -0,0 +1,2 @@
1
+ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
2
+ export default _default;
@@ -0,0 +1,2 @@
1
+ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
2
+ export default _default;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "type": "module",
3
3
  "name": "@weitutech/by-components-v3",
4
- "version": "1.1.25",
4
+ "version": "1.1.27",
5
5
  "private": false,
6
6
  "main": "/src/main.ts",
7
7
  "module": "./dist/by-components-v3.js",