x-next 0.0.0-alpha.35 → 0.0.0-alpha.36

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.
@@ -0,0 +1,9 @@
1
+ import { Ref } from 'vue';
2
+ export declare const useIndex: ({ itemRef, selector, index, parentClassName, }: {
3
+ itemRef: Ref<HTMLElement | undefined | null>;
4
+ selector: string;
5
+ index?: Ref<number | undefined>;
6
+ parentClassName?: string;
7
+ }) => {
8
+ innerIndex: import('vue').ComputedRef<number>;
9
+ };
@@ -4,4 +4,6 @@ export * from './message';
4
4
  export * from './message-box';
5
5
  export * from './notification';
6
6
  export * from './space';
7
+ export * from './timeline';
8
+ export * from './timeline-item';
7
9
  export * from './trend-chart';
@@ -184,9 +184,9 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
184
184
  };
185
185
  }>> & Readonly<{
186
186
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
187
+ onChange?: ((...args: any[]) => any) | undefined;
187
188
  onInput?: ((...args: any[]) => any) | undefined;
188
189
  onBlur?: ((...args: any[]) => any) | undefined;
189
- onChange?: ((...args: any[]) => any) | undefined;
190
190
  onFocus?: ((...args: any[]) => any) | undefined;
191
191
  onClear?: ((...args: any[]) => any) | undefined;
192
192
  onPressEnter?: ((...args: any[]) => any) | undefined;
@@ -93,9 +93,9 @@ export declare const XInput: {
93
93
  };
94
94
  }>> & Readonly<{
95
95
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
96
+ onChange?: ((...args: any[]) => any) | undefined;
96
97
  onInput?: ((...args: any[]) => any) | undefined;
97
98
  onBlur?: ((...args: any[]) => any) | undefined;
98
- onChange?: ((...args: any[]) => any) | undefined;
99
99
  onFocus?: ((...args: any[]) => any) | undefined;
100
100
  onClear?: ((...args: any[]) => any) | undefined;
101
101
  onPressEnter?: ((...args: any[]) => any) | undefined;
@@ -226,9 +226,9 @@ export declare const XInput: {
226
226
  };
227
227
  }>> & Readonly<{
228
228
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
229
+ onChange?: ((...args: any[]) => any) | undefined;
229
230
  onInput?: ((...args: any[]) => any) | undefined;
230
231
  onBlur?: ((...args: any[]) => any) | undefined;
231
- onChange?: ((...args: any[]) => any) | undefined;
232
232
  onFocus?: ((...args: any[]) => any) | undefined;
233
233
  onClear?: ((...args: any[]) => any) | undefined;
234
234
  onPressEnter?: ((...args: any[]) => any) | undefined;
@@ -356,9 +356,9 @@ export declare const XInput: {
356
356
  };
357
357
  }>> & Readonly<{
358
358
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
359
+ onChange?: ((...args: any[]) => any) | undefined;
359
360
  onInput?: ((...args: any[]) => any) | undefined;
360
361
  onBlur?: ((...args: any[]) => any) | undefined;
361
- onChange?: ((...args: any[]) => any) | undefined;
362
362
  onFocus?: ((...args: any[]) => any) | undefined;
363
363
  onClear?: ((...args: any[]) => any) | undefined;
364
364
  onPressEnter?: ((...args: any[]) => any) | undefined;
@@ -0,0 +1,58 @@
1
+ export declare const XTimeline: {
2
+ new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
3
+ reverse: {
4
+ type: BooleanConstructor;
5
+ };
6
+ lineType: {
7
+ type: import('vue').PropType<import('./src/types').LineType>;
8
+ default: string;
9
+ };
10
+ }>> & Readonly<{
11
+ onChange?: ((...args: any[]) => any) | undefined;
12
+ "onUpdate:current"?: ((...args: any[]) => any) | undefined;
13
+ }>, () => any, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, ("change" | "update:current")[], import('vue').PublicProps, {
14
+ reverse: boolean;
15
+ lineType: import('./src/types').LineType;
16
+ }, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
17
+ P: {};
18
+ B: {};
19
+ D: {};
20
+ C: {};
21
+ M: {};
22
+ Defaults: {};
23
+ }, Readonly<import('vue').ExtractPropTypes<{
24
+ reverse: {
25
+ type: BooleanConstructor;
26
+ };
27
+ lineType: {
28
+ type: import('vue').PropType<import('./src/types').LineType>;
29
+ default: string;
30
+ };
31
+ }>> & Readonly<{
32
+ onChange?: ((...args: any[]) => any) | undefined;
33
+ "onUpdate:current"?: ((...args: any[]) => any) | undefined;
34
+ }>, () => any, {}, {}, {}, {
35
+ reverse: boolean;
36
+ lineType: import('./src/types').LineType;
37
+ }>;
38
+ __isFragment?: never;
39
+ __isTeleport?: never;
40
+ __isSuspense?: never;
41
+ } & import('vue').ComponentOptionsBase<Readonly<import('vue').ExtractPropTypes<{
42
+ reverse: {
43
+ type: BooleanConstructor;
44
+ };
45
+ lineType: {
46
+ type: import('vue').PropType<import('./src/types').LineType>;
47
+ default: string;
48
+ };
49
+ }>> & Readonly<{
50
+ onChange?: ((...args: any[]) => any) | undefined;
51
+ "onUpdate:current"?: ((...args: any[]) => any) | undefined;
52
+ }>, () => any, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, ("change" | "update:current")[], "change" | "update:current", {
53
+ reverse: boolean;
54
+ lineType: import('./src/types').LineType;
55
+ }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & {
56
+ install(app: import('vue').App): void;
57
+ };
58
+ export { XTimeline as default };
@@ -0,0 +1,12 @@
1
+ import { InjectionKey } from 'vue';
2
+ import { LineType } from './types';
3
+ export interface TimelineContext {
4
+ reverse: boolean;
5
+ parentCls: string;
6
+ count: number;
7
+ lineType: LineType;
8
+ }
9
+ /**
10
+ * @description 之所以命名为context从行为上讲Provide和Inject形似上下文
11
+ */
12
+ export declare const timelineInjectionKey: InjectionKey<TimelineContext>;
@@ -0,0 +1,31 @@
1
+ import { PropType } from 'vue';
2
+ import { CSSColor, LineType } from './types';
3
+ /**
4
+ * @description Timeline Props
5
+ */
6
+ export declare const timelineProps: {
7
+ /**
8
+ * @description 是否倒序
9
+ */
10
+ reverse: {
11
+ type: BooleanConstructor;
12
+ };
13
+ /**
14
+ * @description 轴线样式
15
+ */
16
+ lineType: {
17
+ type: PropType<LineType>;
18
+ default: string;
19
+ };
20
+ };
21
+ /**
22
+ * @description Item Props
23
+ */
24
+ export declare const timelineItemProps: {
25
+ /**
26
+ * @description 小圆点颜色
27
+ */
28
+ dotColor: {
29
+ type: PropType<CSSColor>;
30
+ };
31
+ };
@@ -0,0 +1,12 @@
1
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
2
+ dotColor: {
3
+ type: import('vue').PropType<import('./types').CSSColor>;
4
+ };
5
+ }>, () => any, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, "close"[], "close", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
6
+ dotColor: {
7
+ type: import('vue').PropType<import('./types').CSSColor>;
8
+ };
9
+ }>> & Readonly<{
10
+ onClose?: ((...args: any[]) => any) | undefined;
11
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
12
+ export default _default;
@@ -0,0 +1,24 @@
1
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
2
+ reverse: {
3
+ type: BooleanConstructor;
4
+ };
5
+ lineType: {
6
+ type: import('vue').PropType<import('./types').LineType>;
7
+ default: string;
8
+ };
9
+ }>, () => any, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, ("change" | "update:current")[], "change" | "update:current", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
10
+ reverse: {
11
+ type: BooleanConstructor;
12
+ };
13
+ lineType: {
14
+ type: import('vue').PropType<import('./types').LineType>;
15
+ default: string;
16
+ };
17
+ }>> & Readonly<{
18
+ onChange?: ((...args: any[]) => any) | undefined;
19
+ "onUpdate:current"?: ((...args: any[]) => any) | undefined;
20
+ }>, {
21
+ reverse: boolean;
22
+ lineType: import('./types').LineType;
23
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
24
+ export default _default;
@@ -0,0 +1,9 @@
1
+ import { CSSProperties } from 'vue';
2
+ /**
3
+ * @description 目前还不能对类型进行校验
4
+ */
5
+ export type CSSColor = CSSProperties['color'];
6
+ /**
7
+ * @description 轴线样式
8
+ */
9
+ export type LineType = 'dotted' | 'dashed' | 'solid';
@@ -0,0 +1,34 @@
1
+ export declare const XTimelineItem: {
2
+ new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
3
+ dotColor: {
4
+ type: import('vue').PropType<import('../timeline/src/types').CSSColor>;
5
+ };
6
+ }>> & Readonly<{
7
+ onClose?: ((...args: any[]) => any) | undefined;
8
+ }>, () => any, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, "close"[], import('vue').PublicProps, {}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
9
+ P: {};
10
+ B: {};
11
+ D: {};
12
+ C: {};
13
+ M: {};
14
+ Defaults: {};
15
+ }, Readonly<import('vue').ExtractPropTypes<{
16
+ dotColor: {
17
+ type: import('vue').PropType<import('../timeline/src/types').CSSColor>;
18
+ };
19
+ }>> & Readonly<{
20
+ onClose?: ((...args: any[]) => any) | undefined;
21
+ }>, () => any, {}, {}, {}, {}>;
22
+ __isFragment?: never;
23
+ __isTeleport?: never;
24
+ __isSuspense?: never;
25
+ } & import('vue').ComponentOptionsBase<Readonly<import('vue').ExtractPropTypes<{
26
+ dotColor: {
27
+ type: import('vue').PropType<import('../timeline/src/types').CSSColor>;
28
+ };
29
+ }>> & Readonly<{
30
+ onClose?: ((...args: any[]) => any) | undefined;
31
+ }>, () => any, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, "close"[], "close", {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & {
32
+ install(app: import('vue').App): void;
33
+ };
34
+ export { XTimelineItem as default };