@squirrel-cloud/ui-vue 0.2.46 → 0.3.1

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 (80) hide show
  1. package/dist/components/article/article.d.ts +7 -1
  2. package/dist/components/blur/blur.d.ts +17 -0
  3. package/dist/components/blur/index.d.ts +2 -0
  4. package/dist/components/button/button-group.d.ts +0 -1
  5. package/dist/components/checkbox/checkbox-group.d.ts +27 -0
  6. package/dist/components/checkbox/checkbox.d.ts +15 -0
  7. package/dist/components/checkbox/index.d.ts +4 -0
  8. package/dist/components/checkbox/injection-keys.d.ts +6 -0
  9. package/dist/components/divider/divider.d.ts +22 -0
  10. package/dist/components/divider/index.d.ts +2 -0
  11. package/dist/components/form/form.d.ts +8 -9
  12. package/dist/components/image/image.d.ts +26 -0
  13. package/dist/components/image/index.d.ts +2 -0
  14. package/dist/components/index.d.ts +6 -1
  15. package/dist/components/input/input.d.ts +5 -2
  16. package/dist/components/only-child/index.d.ts +2 -0
  17. package/dist/components/only-child/only-child.d.ts +5 -0
  18. package/dist/components/popover/popover.d.ts +24 -2
  19. package/dist/components/progress/progress.d.ts +0 -1
  20. package/dist/components/radio/index.d.ts +4 -0
  21. package/dist/components/radio/injection-keys.d.ts +6 -0
  22. package/dist/components/radio/radio-group.d.ts +27 -0
  23. package/dist/components/radio/radio.d.ts +15 -0
  24. package/dist/components/switch/index.d.ts +2 -0
  25. package/dist/components/switch/switch.d.ts +15 -0
  26. package/dist/components/tag/check-tag.d.ts +0 -2
  27. package/dist/components/tag/tag.d.ts +0 -1
  28. package/dist/components/text/text.d.ts +1 -2
  29. package/dist/components/timeline/timeline-item.d.ts +1 -3
  30. package/dist/props/button/button-group.d.ts +1 -1
  31. package/dist/props/checkbox/checkbox-group.d.ts +16 -0
  32. package/dist/props/checkbox/checkbox.d.ts +38 -0
  33. package/dist/props/checkbox/index.d.ts +2 -0
  34. package/dist/props/divider/divider.d.ts +19 -0
  35. package/dist/props/divider/index.d.ts +1 -0
  36. package/dist/props/form/form.d.ts +19 -7
  37. package/dist/props/image/image.d.ts +38 -0
  38. package/dist/props/image/index.d.ts +1 -0
  39. package/dist/props/index.d.ts +5 -1
  40. package/dist/props/input/input.d.ts +14 -6
  41. package/dist/props/progress/progress.d.ts +4 -4
  42. package/dist/props/radio/index.d.ts +2 -0
  43. package/dist/props/radio/radio-group.d.ts +16 -0
  44. package/dist/props/radio/radio.d.ts +34 -0
  45. package/dist/props/switch/index.d.ts +1 -0
  46. package/dist/props/switch/switch.d.ts +34 -0
  47. package/dist/props/tag/check-tag.d.ts +1 -6
  48. package/dist/props/tag/tag.d.ts +3 -3
  49. package/dist/props/text/text.d.ts +2 -6
  50. package/dist/props/timeline/timeline-item.d.ts +1 -5
  51. package/dist/props/timeline/timeline.d.ts +5 -1
  52. package/dist/squirrel-cloud-ui-vue.js +2721 -2247
  53. package/dist/squirrel-cloud-ui-vue.umd.cjs +25 -38
  54. package/dist/style.css +1 -1
  55. package/dist/typings/ComponentType.d.ts +7 -3
  56. package/dist/typings/DividerDirection.d.ts +4 -0
  57. package/dist/typings/Form.d.ts +71 -8
  58. package/dist/typings/Image.d.ts +34 -0
  59. package/dist/typings/InputType.d.ts +1 -1
  60. package/dist/typings/LineType.d.ts +10 -1
  61. package/dist/typings/ProgressVariant.d.ts +4 -0
  62. package/dist/typings/RequiredMarkType.d.ts +4 -0
  63. package/dist/typings/SelectionVariant.d.ts +4 -0
  64. package/dist/typings/SwitchVariant.d.ts +4 -0
  65. package/dist/typings/TagVariant.d.ts +4 -0
  66. package/dist/typings/TimelineVariant.d.ts +4 -0
  67. package/dist/typings/contexts/CheckboxGroupContext.d.ts +11 -0
  68. package/dist/typings/contexts/FormContext.d.ts +0 -5
  69. package/dist/typings/contexts/RadioGroupContext.d.ts +11 -0
  70. package/dist/typings/contexts/SelectionContext.d.ts +36 -0
  71. package/dist/typings/contexts/index.d.ts +3 -0
  72. package/dist/typings/index.d.ts +8 -3
  73. package/package.json +1 -1
  74. package/dist/components/textarea/index.d.ts +0 -2
  75. package/dist/components/textarea/textarea.d.ts +0 -39
  76. package/dist/props/textarea/index.d.ts +0 -1
  77. package/dist/props/textarea/textarea.d.ts +0 -24
  78. package/dist/typings/ProgressTheme.d.ts +0 -4
  79. package/dist/typings/TagTheme.d.ts +0 -9
  80. package/dist/typings/TimelineTheme.d.ts +0 -4
@@ -1,4 +1,4 @@
1
- import { PropType } from 'vue';
1
+ import { Component, PropType } from 'vue';
2
2
  import { MarkdownItPlugin } from '../../../typings';
3
3
  declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
4
4
  text: {
@@ -9,6 +9,9 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
9
9
  type: BooleanConstructor;
10
10
  default: boolean;
11
11
  };
12
+ customNodeMap: {
13
+ type: PropType<Record<string, Component>>;
14
+ };
12
15
  plugins: {
13
16
  type: PropType<MarkdownItPlugin[]>;
14
17
  };
@@ -23,6 +26,9 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
23
26
  type: BooleanConstructor;
24
27
  default: boolean;
25
28
  };
29
+ customNodeMap: {
30
+ type: PropType<Record<string, Component>>;
31
+ };
26
32
  plugins: {
27
33
  type: PropType<MarkdownItPlugin[]>;
28
34
  };
@@ -0,0 +1,17 @@
1
+ declare function __VLS_template(): {
2
+ attrs: Partial<{}>;
3
+ slots: {
4
+ default?(_: {}): any;
5
+ };
6
+ refs: {};
7
+ rootEl: HTMLSpanElement;
8
+ };
9
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
10
+ declare const __VLS_component: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLSpanElement>;
11
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
12
+ export default _default;
13
+ type __VLS_WithTemplateSlots<T, S> = T & {
14
+ new (): {
15
+ $slots: S;
16
+ };
17
+ };
@@ -0,0 +1,2 @@
1
+ import { default as SqBlur } from './blur';
2
+ export { SqBlur };
@@ -9,7 +9,6 @@ declare function __VLS_template(): {
9
9
  };
10
10
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
11
11
  declare const __VLS_component: import('vue').DefineComponent<ButtonGroupProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ButtonGroupProps> & Readonly<{}>, {
12
- size: import('../..').ComponentSize;
13
12
  round: boolean;
14
13
  disabled: boolean;
15
14
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
@@ -0,0 +1,27 @@
1
+ import { CheckboxGroupProps } from '../../props';
2
+ declare function __VLS_template(): {
3
+ attrs: Partial<{}>;
4
+ slots: {
5
+ default?(_: {}): any;
6
+ };
7
+ refs: {};
8
+ rootEl: HTMLDivElement;
9
+ };
10
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
11
+ declare const __VLS_component: import('vue').DefineComponent<CheckboxGroupProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
12
+ change: (value: never[]) => any;
13
+ "update:value": (value: never[]) => any;
14
+ }, string, import('vue').PublicProps, Readonly<CheckboxGroupProps> & Readonly<{
15
+ onChange?: ((value: never[]) => any) | undefined;
16
+ "onUpdate:value"?: ((value: never[]) => any) | undefined;
17
+ }>, {
18
+ disabled: boolean;
19
+ items: string[] | number[];
20
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
21
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
22
+ export default _default;
23
+ type __VLS_WithTemplateSlots<T, S> = T & {
24
+ new (): {
25
+ $slots: S;
26
+ };
27
+ };
@@ -0,0 +1,15 @@
1
+ import { CheckboxProps } from '../../props';
2
+ type __VLS_Props = CheckboxProps;
3
+ type __VLS_PublicProps = {
4
+ 'checked'?: boolean;
5
+ } & __VLS_Props;
6
+ declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
7
+ change: (value: boolean) => any;
8
+ "update:checked": (value: boolean) => any;
9
+ }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
10
+ onChange?: ((value: boolean) => any) | undefined;
11
+ "onUpdate:checked"?: ((value: boolean) => any) | undefined;
12
+ }>, {
13
+ disabled: boolean;
14
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLLabelElement>;
15
+ export default _default;
@@ -0,0 +1,4 @@
1
+ import { default as SqCheckbox } from './checkbox';
2
+ import { default as SqCheckboxGroup } from './checkbox-group';
3
+ export { SqCheckbox, SqCheckboxGroup };
4
+ export * from './injection-keys';
@@ -0,0 +1,6 @@
1
+ import { Ref, InjectionKey } from 'vue';
2
+ import { CheckboxGroupContext } from '../../../typings';
3
+ /**
4
+ * 复选框组注入键
5
+ */
6
+ export declare const CheckboxGroupContextKeys: InjectionKey<Ref<CheckboxGroupContext>>;
@@ -0,0 +1,22 @@
1
+ import { DividerProps } from '../../props';
2
+ declare function __VLS_template(): {
3
+ attrs: Partial<{}>;
4
+ slots: {
5
+ default?(_: {}): any;
6
+ };
7
+ refs: {};
8
+ rootEl: HTMLDivElement;
9
+ };
10
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
11
+ declare const __VLS_component: import('vue').DefineComponent<DividerProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<DividerProps> & Readonly<{}>, {
12
+ variant: import('../..').LineType;
13
+ direction: import('../..').DividerDirection;
14
+ orientation: import('../..').Alignment;
15
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
16
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
17
+ export default _default;
18
+ type __VLS_WithTemplateSlots<T, S> = T & {
19
+ new (): {
20
+ $slots: S;
21
+ };
22
+ };
@@ -0,0 +1,2 @@
1
+ import { default as SqDivider } from './divider';
2
+ export { SqDivider };
@@ -1,5 +1,4 @@
1
1
  import { FormProps } from '../../props';
2
- type __VLS_Props = FormProps;
3
2
  /**
4
3
  * 重置表单并清除验证结果
5
4
  */
@@ -9,9 +8,6 @@ declare function resetFields(): void;
9
8
  * @param all 是否验证整个表单
10
9
  */
11
10
  declare function validate(all?: boolean): Promise<(boolean | undefined)[]>;
12
- type __VLS_PublicProps = {
13
- 'formData': Record<string, unknown>;
14
- } & __VLS_Props;
15
11
  declare function __VLS_template(): {
16
12
  attrs: Partial<{}>;
17
13
  slots: Partial<Record<string, (_: {}) => any>>;
@@ -19,21 +15,24 @@ declare function __VLS_template(): {
19
15
  rootEl: HTMLFormElement;
20
16
  };
21
17
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
22
- declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {
18
+ declare const __VLS_component: import('vue').DefineComponent<FormProps, {
23
19
  resetFields: typeof resetFields;
24
20
  validate: typeof validate;
25
21
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
26
22
  validate: (key: string, status: boolean | undefined, list: string[]) => any;
27
- "update:formData": (value: Record<string, unknown>) => any;
28
- }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
23
+ "update:formData": (data: Record<string, unknown>) => any;
24
+ }, string, import('vue').PublicProps, Readonly<FormProps> & Readonly<{
29
25
  onValidate?: ((key: string, status: boolean | undefined, list: string[]) => any) | undefined;
30
- "onUpdate:formData"?: ((value: Record<string, unknown>) => any) | undefined;
26
+ "onUpdate:formData"?: ((data: Record<string, unknown>) => any) | undefined;
31
27
  }>, {
32
28
  size: import('../../../typings').ComponentSize;
33
29
  round: boolean;
34
30
  disabled: boolean;
31
+ layout: import('../../../typings').FormLayout;
32
+ invalidStatus: import('../../../typings').ComponentTypeWarn;
35
33
  readonly: boolean;
36
- showMessage: boolean;
34
+ hasFeedback: boolean;
35
+ requiredMark: import('../../../typings').RequiredMarkType;
37
36
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLFormElement>;
38
37
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
39
38
  export default _default;
@@ -0,0 +1,26 @@
1
+ import { ImageProps } from '../../props';
2
+ declare function __VLS_template(): {
3
+ attrs: Partial<{}>;
4
+ slots: {
5
+ error?(_: {}): any;
6
+ };
7
+ refs: {
8
+ imgRef: HTMLDivElement;
9
+ };
10
+ rootEl: HTMLDivElement;
11
+ };
12
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
13
+ declare const __VLS_component: import('vue').DefineComponent<ImageProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ImageProps> & Readonly<{}>, {
14
+ objectFit: import('../..').ImageObjectFit;
15
+ aspectRatio: string;
16
+ lazy: boolean;
17
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
18
+ imgRef: HTMLDivElement;
19
+ }, HTMLDivElement>;
20
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
21
+ export default _default;
22
+ type __VLS_WithTemplateSlots<T, S> = T & {
23
+ new (): {
24
+ $slots: S;
25
+ };
26
+ };
@@ -0,0 +1,2 @@
1
+ import { default as SqImage } from './image';
2
+ export { SqImage };
@@ -2,15 +2,20 @@ export * from './alert';
2
2
  export * from './article';
3
3
  export * from './avatar';
4
4
  export * from './backtop';
5
+ export * from './blur';
5
6
  export * from './button';
6
7
  export * from './card';
8
+ export * from './checkbox';
9
+ export * from './divider';
7
10
  export * from './form';
11
+ export * from './image';
8
12
  export * from './input';
9
13
  export * from './message';
10
14
  export * from './pagination';
11
15
  export * from './popover';
12
16
  export * from './progress';
17
+ export * from './radio';
18
+ export * from './switch';
13
19
  export * from './tag';
14
20
  export * from './text';
15
- export * from './textarea';
16
21
  export * from './timeline';
@@ -18,7 +18,7 @@ declare function __VLS_template(): {
18
18
  suffix?(_: {}): any;
19
19
  };
20
20
  refs: {
21
- inputRef: HTMLInputElement;
21
+ inputRef: HTMLTextAreaElement;
22
22
  };
23
23
  rootEl: HTMLDivElement;
24
24
  };
@@ -42,10 +42,13 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
42
42
  type: import('../..').InputType;
43
43
  round: boolean;
44
44
  disabled: boolean;
45
+ resize: import('../..').TextareaResizeType;
45
46
  readonly: boolean;
46
47
  autocomplete: string;
48
+ rows: number | string;
49
+ cols: number | string;
47
50
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
48
- inputRef: HTMLInputElement;
51
+ inputRef: HTMLTextAreaElement;
49
52
  }, HTMLDivElement>;
50
53
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
51
54
  export default _default;
@@ -0,0 +1,2 @@
1
+ import { default as SqOnlyChild } from './only-child';
2
+ export { SqOnlyChild };
@@ -0,0 +1,5 @@
1
+ import { VNode } from 'vue';
2
+ declare const _default: import('vue').DefineComponent<{}, () => VNode<import('vue').RendererNode, import('vue').RendererElement, {
3
+ [key: string]: any;
4
+ }> | null, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
5
+ export default _default;
@@ -10,7 +10,18 @@ declare function __VLS_template(): {
10
10
  default?(_: {}): any;
11
11
  };
12
12
  refs: {
13
- triggerRef: HTMLSpanElement;
13
+ triggerRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{}>, () => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
14
+ [key: string]: any;
15
+ }> | null, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
16
+ P: {};
17
+ B: {};
18
+ D: {};
19
+ C: {};
20
+ M: {};
21
+ Defaults: {};
22
+ }, Readonly<{}> & Readonly<{}>, () => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
23
+ [key: string]: any;
24
+ }> | null, {}, {}, {}, {}> | null;
14
25
  popverRef: HTMLDivElement;
15
26
  };
16
27
  rootEl: any;
@@ -29,7 +40,18 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
29
40
  showAfter: number;
30
41
  hideAfter: number;
31
42
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
32
- triggerRef: HTMLSpanElement;
43
+ triggerRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{}>, () => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
44
+ [key: string]: any;
45
+ }> | null, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
46
+ P: {};
47
+ B: {};
48
+ D: {};
49
+ C: {};
50
+ M: {};
51
+ Defaults: {};
52
+ }, Readonly<{}> & Readonly<{}>, () => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
53
+ [key: string]: any;
54
+ }> | null, {}, {}, {}, {}> | null;
33
55
  popverRef: HTMLDivElement;
34
56
  }, any>;
35
57
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
@@ -17,7 +17,6 @@ declare const __VLS_component: import('vue').DefineComponent<ProgressProps, {},
17
17
  type: import('../..').ComponentType;
18
18
  min: number;
19
19
  max: number;
20
- theme: import('../..').ProgressTheme;
21
20
  label: boolean;
22
21
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
23
22
  progressRef: HTMLDivElement;
@@ -0,0 +1,4 @@
1
+ import { default as SqRadio } from './radio';
2
+ import { default as SqRadioGroup } from './radio-group';
3
+ export { SqRadio, SqRadioGroup };
4
+ export * from './injection-keys';
@@ -0,0 +1,6 @@
1
+ import { Ref, InjectionKey } from 'vue';
2
+ import { RadioGroupContext } from '../../../typings';
3
+ /**
4
+ * 单选框组注入键
5
+ */
6
+ export declare const RadioGroupContextKeys: InjectionKey<Ref<RadioGroupContext>>;
@@ -0,0 +1,27 @@
1
+ import { RadioGroupProps } from '../../props';
2
+ declare function __VLS_template(): {
3
+ attrs: Partial<{}>;
4
+ slots: {
5
+ default?(_: {}): any;
6
+ };
7
+ refs: {};
8
+ rootEl: HTMLDivElement;
9
+ };
10
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
11
+ declare const __VLS_component: import('vue').DefineComponent<RadioGroupProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
12
+ change: (value: any) => any;
13
+ "update:value": (value: any) => any;
14
+ }, string, import('vue').PublicProps, Readonly<RadioGroupProps> & Readonly<{
15
+ onChange?: ((value: any) => any) | undefined;
16
+ "onUpdate:value"?: ((value: any) => any) | undefined;
17
+ }>, {
18
+ disabled: boolean;
19
+ items: string[] | number[];
20
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
21
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
22
+ export default _default;
23
+ type __VLS_WithTemplateSlots<T, S> = T & {
24
+ new (): {
25
+ $slots: S;
26
+ };
27
+ };
@@ -0,0 +1,15 @@
1
+ import { RadioProps } from '../../props';
2
+ type __VLS_Props = RadioProps;
3
+ type __VLS_PublicProps = {
4
+ 'checked'?: boolean;
5
+ } & __VLS_Props;
6
+ declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
7
+ change: (value: boolean) => any;
8
+ "update:checked": (value: boolean) => any;
9
+ }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
10
+ onChange?: ((value: boolean) => any) | undefined;
11
+ "onUpdate:checked"?: ((value: boolean) => any) | undefined;
12
+ }>, {
13
+ disabled: boolean;
14
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLLabelElement>;
15
+ export default _default;
@@ -0,0 +1,2 @@
1
+ import { default as SqSwitch } from './switch';
2
+ export { SqSwitch };
@@ -0,0 +1,15 @@
1
+ import { SwitchProps } from '../../props';
2
+ type __VLS_Props = SwitchProps;
3
+ type __VLS_PublicProps = {
4
+ 'checked'?: boolean;
5
+ } & __VLS_Props;
6
+ declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
7
+ click: (value: boolean, e: MouseEvent) => any;
8
+ change: (value: boolean, e: Event) => any;
9
+ "update:checked": (value: boolean) => any;
10
+ }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
11
+ onClick?: ((value: boolean, e: MouseEvent) => any) | undefined;
12
+ onChange?: ((value: boolean, e: Event) => any) | undefined;
13
+ "onUpdate:checked"?: ((value: boolean) => any) | undefined;
14
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLLabelElement>;
15
+ export default _default;
@@ -13,8 +13,6 @@ declare const __VLS_component: import('vue').DefineComponent<CheckTagProps, {},
13
13
  }, string, import('vue').PublicProps, Readonly<CheckTagProps> & Readonly<{
14
14
  onChange?: ((newVal: boolean) => any) | undefined;
15
15
  }>, {
16
- type: import('../..').ComponentType;
17
- theme: import('../..').TagThemeBase;
18
16
  size: import('../..').ComponentSize;
19
17
  checked: boolean;
20
18
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLSpanElement>;
@@ -9,7 +9,6 @@ declare function __VLS_template(): {
9
9
  };
10
10
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
11
11
  declare const __VLS_component: import('vue').DefineComponent<TagProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<TagProps> & Readonly<{}>, {
12
- theme: import('../..').TagTheme;
13
12
  size: import('../..').ComponentSize;
14
13
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLSpanElement>;
15
14
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
@@ -10,8 +10,7 @@ declare function __VLS_template(): {
10
10
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
11
11
  declare const __VLS_component: import('vue').DefineComponent<TextProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<TextProps> & Readonly<{}>, {
12
12
  size: import('../..').ComponentSize;
13
- rowNum: number;
14
- ellipsis: boolean;
13
+ ellipsis: boolean | number;
15
14
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLSpanElement>;
16
15
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
17
16
  export default _default;
@@ -8,9 +8,7 @@ declare function __VLS_template(): {
8
8
  rootEl: HTMLDivElement;
9
9
  };
10
10
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
11
- declare const __VLS_component: import('vue').DefineComponent<TimelineItemProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<TimelineItemProps> & Readonly<{}>, {
12
- theme: import('../..').TimelineTheme;
13
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
11
+ declare const __VLS_component: import('vue').DefineComponent<TimelineItemProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<TimelineItemProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
14
12
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
15
13
  export default _default;
16
14
  type __VLS_WithTemplateSlots<T, S> = T & {
@@ -1,4 +1,4 @@
1
- import { ButtonProps } from './button';
1
+ import { ButtonProps } from '.';
2
2
  type PickKeys = 'size' | 'type' | 'round' | 'disabled';
3
3
  /**
4
4
  * 按钮组属性
@@ -0,0 +1,16 @@
1
+ import { CheckboxProps } from '.';
2
+ type ExcludeKeys = 'indeterminate' | 'autofocus' | 'label';
3
+ /**
4
+ * 复选框组属性
5
+ */
6
+ export interface CheckboxGroupProps extends Omit<CheckboxProps, ExcludeKeys> {
7
+ /**
8
+ * 复选框组列表
9
+ */
10
+ items?: string[] | number[];
11
+ /**
12
+ * 选中项列表
13
+ */
14
+ value?: string[] | number[];
15
+ }
16
+ export {};
@@ -0,0 +1,38 @@
1
+ import { ComponentSize, SelectionVariant } from '../../typings';
2
+ /**
3
+ * 复选框属性
4
+ */
5
+ export interface CheckboxProps {
6
+ /**
7
+ * 关联表单
8
+ */
9
+ form?: string;
10
+ /**
11
+ * 名称
12
+ */
13
+ name?: string;
14
+ /**
15
+ * 是否禁用
16
+ */
17
+ disabled?: boolean;
18
+ /**
19
+ * 复选框大小
20
+ */
21
+ size?: ComponentSize;
22
+ /**
23
+ * 是否为半选状态
24
+ */
25
+ indeterminate?: boolean;
26
+ /**
27
+ * 复选框变体
28
+ */
29
+ variant?: SelectionVariant;
30
+ /**
31
+ * 是否自动获取焦点
32
+ */
33
+ autofocus?: boolean;
34
+ /**
35
+ * 复选框标签
36
+ */
37
+ label?: string | number;
38
+ }
@@ -0,0 +1,2 @@
1
+ export * from './checkbox';
2
+ export * from './checkbox-group';
@@ -0,0 +1,19 @@
1
+ import { DividerDirection, LineType, Alignment } from '../../typings';
2
+ import { TextProps } from '..';
3
+ /**
4
+ * 分割线属性
5
+ */
6
+ export interface DividerProps extends TextProps {
7
+ /**
8
+ * 分割线方向
9
+ */
10
+ direction?: DividerDirection;
11
+ /**
12
+ * 分割线变体
13
+ */
14
+ variant?: LineType;
15
+ /**
16
+ * 内容对齐方式
17
+ */
18
+ orientation?: Alignment;
19
+ }
@@ -0,0 +1 @@
1
+ export * from './divider';
@@ -1,4 +1,4 @@
1
- import { ComponentSize, FormConfig } from '../../typings';
1
+ import { ComponentSize, ComponentTypeWarn, FormConfig, FormLayout, RequiredMarkType } from '../../typings';
2
2
  /**
3
3
  * 表单属性
4
4
  */
@@ -7,10 +7,18 @@ export interface FormProps {
7
7
  * 是否圆角组件
8
8
  */
9
9
  round?: boolean;
10
+ /**
11
+ * 表单布局
12
+ */
13
+ layout?: FormLayout;
10
14
  /**
11
15
  * 是否显示状态图标
12
16
  */
13
17
  showStatusIcon?: boolean;
18
+ /**
19
+ * 校验不通过时状态
20
+ */
21
+ invalidStatus?: ComponentTypeWarn;
14
22
  /**
15
23
  * 是否禁用
16
24
  */
@@ -32,15 +40,19 @@ export interface FormProps {
32
40
  */
33
41
  step?: number;
34
42
  /**
35
- * 是否展示错误信息
43
+ * 是否展示反馈信息
44
+ */
45
+ hasFeedback?: boolean;
46
+ /**
47
+ * 必填标记类型
36
48
  */
37
- showMessage?: boolean;
49
+ requiredMark?: RequiredMarkType;
38
50
  /**
39
- * 是否隐藏必填项星号标记
51
+ * 表单项列表
40
52
  */
41
- hideRequiredAsterisk?: boolean;
53
+ items: FormConfig[];
42
54
  /**
43
- * 表单项配置
55
+ * 表单数据
44
56
  */
45
- config: FormConfig[];
57
+ formData: Record<string, unknown>;
46
58
  }
@@ -0,0 +1,38 @@
1
+ import { ImageCrossorigin, ImageObjectFit, ImageSource } from '../../typings';
2
+ /**
3
+ * 图片属性
4
+ */
5
+ export interface ImageProps {
6
+ /**
7
+ * 图片描述
8
+ */
9
+ alt: string;
10
+ /**
11
+ * 跨域类型
12
+ */
13
+ crossorigin?: ImageCrossorigin;
14
+ /**
15
+ * 内容缩放
16
+ */
17
+ objectFit?: ImageObjectFit;
18
+ /**
19
+ * 备选图片
20
+ */
21
+ fallback?: string;
22
+ /**
23
+ * 图片源
24
+ */
25
+ src: string;
26
+ /**
27
+ * 图片长宽比
28
+ */
29
+ aspectRatio?: string;
30
+ /**
31
+ * 是否懒加载
32
+ */
33
+ lazy?: boolean;
34
+ /**
35
+ * 图片备选源
36
+ */
37
+ source?: ImageSource[];
38
+ }
@@ -0,0 +1 @@
1
+ export * from './image';