@xn-lib/component 0.0.19 → 0.0.22

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.
@@ -12,21 +12,21 @@ interface Props {
12
12
  virtualScroll?: boolean;
13
13
  optionHeight?: number;
14
14
  }
15
- declare var __VLS_19: {
15
+ declare var __VLS_20: {
16
16
  option: import("./types").CascaderOption;
17
17
  checked: any;
18
- }, __VLS_34: {
18
+ }, __VLS_36: {
19
19
  option: import("./types").CascaderOption;
20
20
  checked: any;
21
- }, __VLS_36: {}, __VLS_44: {};
21
+ }, __VLS_38: {}, __VLS_45: {};
22
22
  type __VLS_Slots = {} & {
23
- label?: (props: typeof __VLS_19) => any;
23
+ label?: (props: typeof __VLS_20) => any;
24
24
  } & {
25
- label?: (props: typeof __VLS_34) => any;
25
+ label?: (props: typeof __VLS_36) => any;
26
26
  } & {
27
- empty?: (props: typeof __VLS_36) => any;
27
+ empty?: (props: typeof __VLS_38) => any;
28
28
  } & {
29
- action?: (props: typeof __VLS_44) => any;
29
+ action?: (props: typeof __VLS_45) => any;
30
30
  };
31
31
  declare const __VLS_base: import("vue").DefineComponent<Props, {
32
32
  scroll: (depth: number, index: number, elSize: number) => void;
@@ -2,12 +2,12 @@ import type { TreeNode } from './types';
2
2
  interface Props {
3
3
  tmNode: TreeNode;
4
4
  }
5
- declare var __VLS_10: {
5
+ declare var __VLS_9: {
6
6
  option: import("./types").CascaderOption;
7
7
  checked: any;
8
8
  };
9
9
  type __VLS_Slots = {} & {
10
- label?: (props: typeof __VLS_10) => any;
10
+ label?: (props: typeof __VLS_9) => any;
11
11
  };
12
12
  declare const __VLS_base: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
13
13
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
@@ -14,11 +14,11 @@ interface Props {
14
14
  declare function prev(): void;
15
15
  declare function next(): void;
16
16
  declare function enter(): boolean;
17
- declare var __VLS_33: {}, __VLS_74: {};
17
+ declare var __VLS_31: {}, __VLS_69: {};
18
18
  type __VLS_Slots = {} & {
19
- 'not-found'?: (props: typeof __VLS_33) => any;
19
+ 'not-found'?: (props: typeof __VLS_31) => any;
20
20
  } & {
21
- 'not-found'?: (props: typeof __VLS_74) => any;
21
+ 'not-found'?: (props: typeof __VLS_69) => any;
22
22
  };
23
23
  declare const __VLS_base: import("vue").DefineComponent<Props, {
24
24
  prev: typeof prev;
@@ -31,18 +31,18 @@ interface Props {
31
31
  showCheckbox?: boolean;
32
32
  emitPath?: boolean;
33
33
  }
34
- declare var __VLS_26: {}, __VLS_36: {
34
+ declare var __VLS_27: {}, __VLS_38: {
35
35
  option: CascaderOption;
36
36
  checked: any;
37
- }, __VLS_39: {}, __VLS_42: {};
37
+ }, __VLS_41: {}, __VLS_44: {};
38
38
  type __VLS_Slots = {} & {
39
- 'not-found'?: (props: typeof __VLS_26) => any;
39
+ 'not-found'?: (props: typeof __VLS_27) => any;
40
40
  } & {
41
- label?: (props: typeof __VLS_36) => any;
41
+ label?: (props: typeof __VLS_38) => any;
42
42
  } & {
43
- empty?: (props: typeof __VLS_39) => any;
43
+ empty?: (props: typeof __VLS_41) => any;
44
44
  } & {
45
- action?: (props: typeof __VLS_42) => any;
45
+ action?: (props: typeof __VLS_44) => any;
46
46
  };
47
47
  declare const __VLS_base: import("vue").DefineComponent<Props, CascaderInst, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
48
48
  "update:modelValue": (value: CascaderValue | null) => any;
@@ -56,9 +56,9 @@ declare const __VLS_base: import("vue").DefineComponent<Props, CascaderInst, {},
56
56
  onFocus?: ((e: FocusEvent) => any) | undefined;
57
57
  }>, {
58
58
  disabled: boolean;
59
- showCheckbox: boolean;
60
59
  modelValue: CascaderValue | null;
61
60
  size: "large" | "default" | "small";
61
+ showCheckbox: boolean;
62
62
  placeholder: string;
63
63
  virtualScroll: boolean;
64
64
  optionHeight: number;
@@ -1,9 +1,13 @@
1
1
  import type { Plugin } from 'vue';
2
2
  import type { Component } from 'vue';
3
3
  import XnCascader from './cascader/index';
4
- export { XnCascader };
4
+ import XnTag from './tag/index';
5
+ export { XnCascader, XnTag };
5
6
  export declare const components: Record<string, Component>;
6
7
  export type { CascaderProps } from './cascader/props';
7
- export type { CascaderOption, CascaderValue, CascaderInst, ExpandTrigger, CheckStrategy, Filter, OnLoad, ValueAtom, Key, TreeNode, OnUpdateValue } from './cascader/types';
8
+ export type { TagProps } from './tag/props';
9
+ export * from './types';
10
+ export * from './cascader/types';
11
+ export * from './tag/types';
8
12
  declare const plugin: Plugin;
9
13
  export default plugin;
@@ -0,0 +1,6 @@
1
+ import type { Plugin } from 'vue';
2
+ import type { TagInst } from './types.ts';
3
+ import TagComponent from './index.vue';
4
+ declare const Tag: typeof TagComponent & Plugin;
5
+ export default Tag;
6
+ export type { TagInst as XnTagInstance };
@@ -0,0 +1,123 @@
1
+ declare var __VLS_1: {}, __VLS_3: {}, __VLS_5: {};
2
+ type __VLS_Slots = {} & {
3
+ prefix?: (props: typeof __VLS_1) => any;
4
+ } & {
5
+ default?: (props: typeof __VLS_3) => any;
6
+ } & {
7
+ suffix?: (props: typeof __VLS_5) => any;
8
+ };
9
+ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
10
+ readonly type: {
11
+ readonly type: import("vue").PropType<import("..").DefaultSize>;
12
+ readonly default: "default";
13
+ };
14
+ readonly color: {
15
+ readonly type: StringConstructor;
16
+ readonly default: undefined;
17
+ };
18
+ readonly bgColor: {
19
+ readonly type: StringConstructor;
20
+ readonly default: undefined;
21
+ };
22
+ readonly size: {
23
+ readonly type: import("vue").PropType<import("..").DefaultType>;
24
+ readonly default: "default";
25
+ };
26
+ readonly dot: {
27
+ readonly type: BooleanConstructor;
28
+ readonly default: false;
29
+ };
30
+ readonly dotColor: {
31
+ readonly type: StringConstructor;
32
+ readonly default: undefined;
33
+ };
34
+ readonly icon: {
35
+ readonly type: StringConstructor;
36
+ readonly default: undefined;
37
+ };
38
+ readonly plain: {
39
+ readonly type: BooleanConstructor;
40
+ readonly default: false;
41
+ };
42
+ readonly round: {
43
+ readonly type: BooleanConstructor;
44
+ readonly default: false;
45
+ };
46
+ readonly closable: {
47
+ readonly type: BooleanConstructor;
48
+ readonly default: false;
49
+ };
50
+ readonly border: {
51
+ readonly type: BooleanConstructor;
52
+ readonly default: true;
53
+ };
54
+ }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
55
+ close: () => any;
56
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
57
+ readonly type: {
58
+ readonly type: import("vue").PropType<import("..").DefaultSize>;
59
+ readonly default: "default";
60
+ };
61
+ readonly color: {
62
+ readonly type: StringConstructor;
63
+ readonly default: undefined;
64
+ };
65
+ readonly bgColor: {
66
+ readonly type: StringConstructor;
67
+ readonly default: undefined;
68
+ };
69
+ readonly size: {
70
+ readonly type: import("vue").PropType<import("..").DefaultType>;
71
+ readonly default: "default";
72
+ };
73
+ readonly dot: {
74
+ readonly type: BooleanConstructor;
75
+ readonly default: false;
76
+ };
77
+ readonly dotColor: {
78
+ readonly type: StringConstructor;
79
+ readonly default: undefined;
80
+ };
81
+ readonly icon: {
82
+ readonly type: StringConstructor;
83
+ readonly default: undefined;
84
+ };
85
+ readonly plain: {
86
+ readonly type: BooleanConstructor;
87
+ readonly default: false;
88
+ };
89
+ readonly round: {
90
+ readonly type: BooleanConstructor;
91
+ readonly default: false;
92
+ };
93
+ readonly closable: {
94
+ readonly type: BooleanConstructor;
95
+ readonly default: false;
96
+ };
97
+ readonly border: {
98
+ readonly type: BooleanConstructor;
99
+ readonly default: true;
100
+ };
101
+ }>> & Readonly<{
102
+ onClose?: (() => any) | undefined;
103
+ }>, {
104
+ readonly border: boolean;
105
+ readonly size: import("..").DefaultType;
106
+ readonly type: import("..").DefaultSize;
107
+ readonly color: string;
108
+ readonly bgColor: string;
109
+ readonly dot: boolean;
110
+ readonly dotColor: string;
111
+ readonly icon: string;
112
+ readonly plain: boolean;
113
+ readonly round: boolean;
114
+ readonly closable: boolean;
115
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
116
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
117
+ declare const _default: typeof __VLS_export;
118
+ export default _default;
119
+ type __VLS_WithSlots<T, S> = T & {
120
+ new (): {
121
+ $slots: S;
122
+ };
123
+ };
@@ -0,0 +1,49 @@
1
+ import type { PropType, ExtractPropTypes } from 'vue';
2
+ import type { DefaultSize, DefaultType } from '../types';
3
+ export declare const tagProps: {
4
+ readonly type: {
5
+ readonly type: PropType<DefaultSize>;
6
+ readonly default: "default";
7
+ };
8
+ readonly color: {
9
+ readonly type: StringConstructor;
10
+ readonly default: undefined;
11
+ };
12
+ readonly bgColor: {
13
+ readonly type: StringConstructor;
14
+ readonly default: undefined;
15
+ };
16
+ readonly size: {
17
+ readonly type: PropType<DefaultType>;
18
+ readonly default: "default";
19
+ };
20
+ readonly dot: {
21
+ readonly type: BooleanConstructor;
22
+ readonly default: false;
23
+ };
24
+ readonly dotColor: {
25
+ readonly type: StringConstructor;
26
+ readonly default: undefined;
27
+ };
28
+ readonly icon: {
29
+ readonly type: StringConstructor;
30
+ readonly default: undefined;
31
+ };
32
+ readonly plain: {
33
+ readonly type: BooleanConstructor;
34
+ readonly default: false;
35
+ };
36
+ readonly round: {
37
+ readonly type: BooleanConstructor;
38
+ readonly default: false;
39
+ };
40
+ readonly closable: {
41
+ readonly type: BooleanConstructor;
42
+ readonly default: false;
43
+ };
44
+ readonly border: {
45
+ readonly type: BooleanConstructor;
46
+ readonly default: true;
47
+ };
48
+ };
49
+ export type TagProps = Readonly<ExtractPropTypes<typeof tagProps>>;
@@ -0,0 +1,17 @@
1
+ import type { DefaultSize, DefaultType } from '../types';
2
+ export interface TagProps {
3
+ type?: DefaultType;
4
+ color?: string;
5
+ bgColor?: string;
6
+ size?: DefaultSize;
7
+ dot?: boolean;
8
+ dotColor?: string;
9
+ icon?: string;
10
+ plain?: boolean;
11
+ round?: boolean;
12
+ closable?: boolean;
13
+ border?: boolean;
14
+ }
15
+ export interface TagInst {
16
+ close: () => void;
17
+ }
@@ -0,0 +1,2 @@
1
+ export type DefaultType = 'success' | 'info' | 'warning' | 'danger' | 'primary' | 'default';
2
+ export type DefaultSize = 'small' | 'default' | 'large';
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "private": false,
3
3
  "name": "@xn-lib/component",
4
- "version": "0.0.19",
4
+ "version": "0.0.22",
5
5
  "description": "",
6
6
  "main": "./dist/index.umd.js",
7
7
  "module": "./dist/index.mjs",
@@ -27,7 +27,7 @@
27
27
  ],
28
28
  "repository": {
29
29
  "type": "git",
30
- "url": "https://github.com/zjwmmx/mmx-ui"
30
+ "url": "http://git.wonchuan.top/frontend/xiaoniu/xiaoniu-package"
31
31
  },
32
32
  "keywords": [],
33
33
  "license": "ISC",
@@ -42,8 +42,8 @@
42
42
  },
43
43
  "dependencies": {
44
44
  "vueuc": "0.4.65",
45
- "@xn-lib/base": "^0.0.16",
46
- "@xn-lib/core": "^0.0.16"
45
+ "@xn-lib/base": "^0.0.20",
46
+ "@xn-lib/core": "^0.0.20"
47
47
  },
48
48
  "peerDependencies": {
49
49
  "element-plus": ">=2.4.0",