@squirrel-cloud/ui-vue 0.4.15 → 0.4.16

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.
@@ -10,7 +10,7 @@ declare function __VLS_template(): {
10
10
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
11
11
  declare const __VLS_component: import('vue').DefineComponent<DividerProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<DividerProps> & Readonly<{}>, {
12
12
  variant: import('../..').LineType;
13
- direction: import('../..').DividerDirection;
13
+ direction: import('../..').Direction;
14
14
  orientation: import('../..').Alignment;
15
15
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
16
16
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
@@ -29,7 +29,7 @@ declare const __VLS_component: import('vue').DefineComponent<FormProps, {
29
29
  round: boolean;
30
30
  disabled: boolean;
31
31
  readonly: boolean;
32
- layout: import('../../../typings').FormLayout;
32
+ layout: import('../../../typings').Direction;
33
33
  invalidStatus: import('../../../typings').ComponentTypeWarn;
34
34
  hasFeedback: boolean;
35
35
  requiredMark: import('../../../typings').RequiredMarkType;
@@ -14,6 +14,7 @@ export * from './form';
14
14
  export * from './image';
15
15
  export * from './image-crop';
16
16
  export * from './input';
17
+ export * from './menu';
17
18
  export * from './message';
18
19
  export * from './pagination';
19
20
  export * from './popover';
@@ -21,6 +22,7 @@ export * from './progress';
21
22
  export * from './radio';
22
23
  export * from './segmented';
23
24
  export * from './switch';
25
+ export * from './table';
24
26
  export * from './tag';
25
27
  export * from './text';
26
28
  export * from './timeline';
@@ -0,0 +1,2 @@
1
+ import { default as SqMenu } from './menu';
2
+ export { SqMenu };
@@ -0,0 +1,41 @@
1
+ import { MenuProps } from '../../props';
2
+ type __VLS_Props = MenuProps;
3
+ type __VLS_PublicProps = {
4
+ 'active'?: string | number;
5
+ } & __VLS_Props;
6
+ declare function __VLS_template(): {
7
+ attrs: Partial<{}>;
8
+ slots: {
9
+ default?(_: {
10
+ disabled?: boolean;
11
+ icon?: import('vue').Component;
12
+ text?: string;
13
+ value: string | number;
14
+ }): any;
15
+ default?(_: {
16
+ disabled?: boolean;
17
+ icon?: import('vue').Component;
18
+ text?: string;
19
+ value: string | number;
20
+ }): any;
21
+ };
22
+ refs: {};
23
+ rootEl: any;
24
+ };
25
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
26
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
27
+ click: (value: string | number, e: MouseEvent) => any;
28
+ "update:active": (value: string | number) => any;
29
+ }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
30
+ onClick?: ((value: string | number, e: MouseEvent) => any) | undefined;
31
+ "onUpdate:active"?: ((value: string | number) => any) | undefined;
32
+ }>, {
33
+ direction: import('../../../typings').Direction;
34
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
35
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
36
+ export default _default;
37
+ type __VLS_WithTemplateSlots<T, S> = T & {
38
+ new (): {
39
+ $slots: S;
40
+ };
41
+ };
@@ -0,0 +1,2 @@
1
+ import { default as SqTable } from './table';
2
+ export { SqTable };
@@ -0,0 +1,16 @@
1
+ import { TableProps } from '../../props';
2
+ declare const _default: <T>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
3
+ props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, never> & TableProps<T> & Partial<{}>> & import('vue').PublicProps;
4
+ expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
5
+ attrs: any;
6
+ slots: {
7
+ empty?(_: {}): any;
8
+ };
9
+ emit: {};
10
+ }>) => import('vue').VNode & {
11
+ __ctx?: Awaited<typeof __VLS_setup>;
12
+ };
13
+ export default _default;
14
+ type __VLS_PrettifyLocal<T> = {
15
+ [K in keyof T]: T[K];
16
+ } & {};
@@ -0,0 +1,2 @@
1
+ import { default as SqVNodeRenderer } from './vnode-renderer';
2
+ export { SqVNodeRenderer };
@@ -0,0 +1,11 @@
1
+ import { PropType, VNode } from 'vue';
2
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
3
+ content: {
4
+ type: PropType<VNode>;
5
+ };
6
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
7
+ content: {
8
+ type: PropType<VNode>;
9
+ };
10
+ }>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
11
+ export default _default;
@@ -1,4 +1,4 @@
1
- import { DividerDirection, LineType, Alignment } from '../../typings';
1
+ import { Direction, LineType, Alignment } from '../../typings';
2
2
  import { TextProps } from '..';
3
3
  /**
4
4
  * 分割线属性
@@ -7,7 +7,7 @@ export interface DividerProps extends TextProps {
7
7
  /**
8
8
  * 分割线方向
9
9
  */
10
- direction?: DividerDirection;
10
+ direction?: Direction;
11
11
  /**
12
12
  * 分割线变体
13
13
  */
@@ -1,4 +1,4 @@
1
- import { ComponentSize, ComponentTypeWarn, FormConfig, FormLayout, RequiredMarkType } from '../../typings';
1
+ import { ComponentSize, ComponentTypeWarn, FormConfig, Direction, RequiredMarkType } from '../../typings';
2
2
  /**
3
3
  * 表单属性
4
4
  */
@@ -10,7 +10,7 @@ export interface FormProps {
10
10
  /**
11
11
  * 表单布局
12
12
  */
13
- layout?: FormLayout;
13
+ layout?: Direction;
14
14
  /**
15
15
  * 是否显示状态图标
16
16
  */
@@ -13,6 +13,7 @@ export * from './image';
13
13
  export * from './image-crop';
14
14
  export * from './input';
15
15
  export * from './mask';
16
+ export * from './menu';
16
17
  export * from './message';
17
18
  export * from './pagination';
18
19
  export * from './popover';
@@ -20,6 +21,7 @@ export * from './progress';
20
21
  export * from './radio';
21
22
  export * from './segmented';
22
23
  export * from './switch';
24
+ export * from './table';
23
25
  export * from './tag';
24
26
  export * from './text';
25
27
  export * from './timeline';
@@ -0,0 +1 @@
1
+ export * from './menu';
@@ -0,0 +1,18 @@
1
+ import { Direction, MenuItem } from '../../typings';
2
+ /**
3
+ * 菜单属性
4
+ */
5
+ export interface MenuProps {
6
+ /**
7
+ * 是否使用路由
8
+ */
9
+ router?: boolean;
10
+ /**
11
+ * 菜单项列表
12
+ */
13
+ items: MenuItem[];
14
+ /**
15
+ * 菜单方向
16
+ */
17
+ direction?: Direction;
18
+ }
@@ -0,0 +1 @@
1
+ export * from './table';
@@ -0,0 +1,34 @@
1
+ import { TableColItem } from '../../typings';
2
+ /**
3
+ * 表格属性
4
+ */
5
+ export interface TableProps<T> {
6
+ /**
7
+ * 无数据占位字符
8
+ */
9
+ emptyText?: string;
10
+ /**
11
+ * 无数据时显示值
12
+ */
13
+ emptyValue?: string;
14
+ /**
15
+ * 绑定ID字段
16
+ */
17
+ rowKey?: keyof T;
18
+ /**
19
+ * 表格数据
20
+ */
21
+ data?: T[];
22
+ /**
23
+ * 是否斑马纹
24
+ */
25
+ stripe?: boolean;
26
+ /**
27
+ * 是否具有边框
28
+ */
29
+ border?: boolean;
30
+ /**
31
+ * 表格列配置
32
+ */
33
+ cols: TableColItem<T>[];
34
+ }