@xn-lib/component 0.1.22 → 0.1.24

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.
@@ -8,7 +8,8 @@ import XnEllipsis from './ellipsis/index';
8
8
  import XnEditableText from './editable-text/index';
9
9
  import XnEditableTextarea from './editable-textarea/index';
10
10
  import XnTimeRangePicker from './time-range-picker/index';
11
- export { XnCascader, XnTag, XnTransfer, XnVirtualList, XnEllipsis, XnEditableText, XnEditableTextarea, XnTimeRangePicker };
11
+ import XnTextRuleConfig from './text-rule-config';
12
+ export { XnCascader, XnTag, XnTransfer, XnVirtualList, XnEllipsis, XnEditableText, XnEditableTextarea, XnTimeRangePicker, XnTextRuleConfig };
12
13
  export declare const components: Record<string, Component>;
13
14
  export type { CascaderProps } from './cascader/props';
14
15
  export type { TagProps } from './tag/props';
@@ -16,6 +17,7 @@ export type { EllipsisProps } from './ellipsis/props';
16
17
  export type { EditableTextProps } from './editable-text/props';
17
18
  export type { EditableTextareaProps } from './editable-textarea/props';
18
19
  export type { TimeRangePickerProps, TimeRangeValue, TimeRange } from './time-range-picker/props';
20
+ export type { TextRuleConfigProps } from './text-rule-config/props';
19
21
  export * from './types';
20
22
  declare const plugin: Plugin;
21
23
  export default plugin;
@@ -8,7 +8,7 @@ type __VLS_Slots = {} & {
8
8
  };
9
9
  declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
10
10
  readonly type: {
11
- readonly type: import("vue").PropType<import("..").DefaultSize>;
11
+ readonly type: import("vue").PropType<import("..").DefaultType>;
12
12
  readonly default: "default";
13
13
  };
14
14
  readonly color: {
@@ -20,7 +20,7 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
20
20
  readonly default: undefined;
21
21
  };
22
22
  readonly size: {
23
- readonly type: import("vue").PropType<import("..").DefaultType>;
23
+ readonly type: import("vue").PropType<import("..").DefaultSize>;
24
24
  readonly default: "default";
25
25
  };
26
26
  readonly dot: {
@@ -55,7 +55,7 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
55
55
  close: () => any;
56
56
  }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
57
57
  readonly type: {
58
- readonly type: import("vue").PropType<import("..").DefaultSize>;
58
+ readonly type: import("vue").PropType<import("..").DefaultType>;
59
59
  readonly default: "default";
60
60
  };
61
61
  readonly color: {
@@ -67,7 +67,7 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
67
67
  readonly default: undefined;
68
68
  };
69
69
  readonly size: {
70
- readonly type: import("vue").PropType<import("..").DefaultType>;
70
+ readonly type: import("vue").PropType<import("..").DefaultSize>;
71
71
  readonly default: "default";
72
72
  };
73
73
  readonly dot: {
@@ -102,8 +102,8 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
102
102
  onClose?: (() => any) | undefined;
103
103
  }>, {
104
104
  readonly border: boolean;
105
- readonly size: import("..").DefaultType;
106
- readonly type: import("..").DefaultSize;
105
+ readonly size: import("..").DefaultSize;
106
+ readonly type: import("..").DefaultType;
107
107
  readonly color: string;
108
108
  readonly bgColor: string;
109
109
  readonly dot: boolean;
@@ -2,7 +2,7 @@ import type { PropType, ExtractPropTypes } from 'vue';
2
2
  import type { DefaultSize, DefaultType } from '../types';
3
3
  export declare const tagProps: {
4
4
  readonly type: {
5
- readonly type: PropType<DefaultSize>;
5
+ readonly type: PropType<DefaultType>;
6
6
  readonly default: "default";
7
7
  };
8
8
  readonly color: {
@@ -14,7 +14,7 @@ export declare const tagProps: {
14
14
  readonly default: undefined;
15
15
  };
16
16
  readonly size: {
17
- readonly type: PropType<DefaultType>;
17
+ readonly type: PropType<DefaultSize>;
18
18
  readonly default: "default";
19
19
  };
20
20
  readonly dot: {
@@ -0,0 +1,5 @@
1
+ import type { Plugin } from 'vue';
2
+ import TextRuleConfigComponent from './index.vue';
3
+ declare const TextRuleConfig: typeof TextRuleConfigComponent & Plugin;
4
+ export default TextRuleConfig;
5
+ export type { TextRuleConfigProps } from './props';
@@ -0,0 +1,45 @@
1
+ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
2
+ readonly modelValue: {
3
+ readonly type: StringConstructor;
4
+ };
5
+ readonly placeholder: {
6
+ readonly type: StringConstructor;
7
+ readonly default: "请输入";
8
+ };
9
+ readonly rows: {
10
+ readonly type: NumberConstructor;
11
+ readonly default: 3;
12
+ };
13
+ readonly wildcards: {
14
+ readonly type: import("vue").PropType<import("..").Option[]>;
15
+ readonly default: () => never[];
16
+ };
17
+ }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
18
+ "update:modelValue": (value: string) => any;
19
+ change: (value: string) => any;
20
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
21
+ readonly modelValue: {
22
+ readonly type: StringConstructor;
23
+ };
24
+ readonly placeholder: {
25
+ readonly type: StringConstructor;
26
+ readonly default: "请输入";
27
+ };
28
+ readonly rows: {
29
+ readonly type: NumberConstructor;
30
+ readonly default: 3;
31
+ };
32
+ readonly wildcards: {
33
+ readonly type: import("vue").PropType<import("..").Option[]>;
34
+ readonly default: () => never[];
35
+ };
36
+ }>> & Readonly<{
37
+ "onUpdate:modelValue"?: ((value: string) => any) | undefined;
38
+ onChange?: ((value: string) => any) | undefined;
39
+ }>, {
40
+ readonly placeholder: string;
41
+ readonly rows: number;
42
+ readonly wildcards: import("..").Option[];
43
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
44
+ declare const _default: typeof __VLS_export;
45
+ export default _default;
@@ -0,0 +1,20 @@
1
+ import { ExtractPropTypes, PropType } from 'vue';
2
+ import { Option } from '../types';
3
+ export declare const textRuleConfigProps: {
4
+ readonly modelValue: {
5
+ readonly type: StringConstructor;
6
+ };
7
+ readonly placeholder: {
8
+ readonly type: StringConstructor;
9
+ readonly default: "请输入";
10
+ };
11
+ readonly rows: {
12
+ readonly type: NumberConstructor;
13
+ readonly default: 3;
14
+ };
15
+ readonly wildcards: {
16
+ readonly type: PropType<Option[]>;
17
+ readonly default: () => never[];
18
+ };
19
+ };
20
+ export type TextRuleConfigProps = ExtractPropTypes<typeof textRuleConfigProps>;
@@ -5,3 +5,7 @@ export * from './virtual-list';
5
5
  export * from './editable-textarea';
6
6
  export type DefaultType = 'success' | 'info' | 'warning' | 'danger' | 'primary' | 'default';
7
7
  export type DefaultSize = 'small' | 'default' | 'large';
8
+ export type Option = {
9
+ label: string;
10
+ value: string;
11
+ };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "private": false,
3
3
  "name": "@xn-lib/component",
4
- "version": "0.1.22",
4
+ "version": "0.1.24",
5
5
  "description": "",
6
6
  "main": "./dist/index.umd.js",
7
7
  "module": "./dist/index.mjs",