@squirrel-cloud/ui-vue 0.2.0 → 0.2.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.
package/README.md CHANGED
@@ -102,4 +102,8 @@ npm install @squirrel-cloud/ui-vue
102
102
  - 新增 --sq-projection-light 投影色变量
103
103
  - 新增 lg 投影档位
104
104
  - 圆角调整为 sm md lg 三档
105
- - 缩小 md 档位的投影大小
105
+ - 缩小 md 档位的投影大小
106
+
107
+ ### V0.2.1
108
+
109
+ - 新增 Card 组件
@@ -0,0 +1,22 @@
1
+ import { CardProps } from '../../props';
2
+ declare function __VLS_template(): {
3
+ attrs: Partial<{}>;
4
+ slots: {
5
+ title?(_: {}): any;
6
+ default?(_: {}): any;
7
+ footer?(_: {}): any;
8
+ };
9
+ refs: {};
10
+ rootEl: HTMLDivElement;
11
+ };
12
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
13
+ declare const __VLS_component: import('vue').DefineComponent<CardProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<CardProps> & Readonly<{}>, {
14
+ decorative: boolean;
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
+ };
@@ -1,7 +1,8 @@
1
1
  import { default as SqButton } from './button/SqButton';
2
+ import { default as SqCard } from './card/SqCard';
2
3
  import { default as SqInput } from './input/SqInput';
3
4
  import { default as SqPopover } from './popover/SqPopover';
4
5
  import { default as SqTag } from './tag/SqTag';
5
6
  import { default as SqCheckTag } from './tag/SqCheckTag';
6
7
  import { default as SqText } from './text/SqText';
7
- export { SqButton, SqInput, SqPopover, SqTag, SqCheckTag, SqText };
8
+ export { SqButton, SqCard, SqInput, SqPopover, SqTag, SqCheckTag, SqText };
@@ -0,0 +1,13 @@
1
+ /**
2
+ * 卡片属性
3
+ */
4
+ export interface CardProps {
5
+ /**
6
+ * 标题
7
+ */
8
+ title?: string;
9
+ /**
10
+ * 是否具有标题装饰线
11
+ */
12
+ decorative?: boolean;
13
+ }
@@ -1,7 +1,8 @@
1
1
  import { ButtonProps } from './button/SqButton';
2
+ import { CardProps } from './card/SqCard';
2
3
  import { InputProps } from './input/SqInput';
3
4
  import { PopperProps } from './popover/SqPopover';
4
5
  import { TagProps } from './tag/SqTag';
5
6
  import { CheckTagProps } from './tag/SqCheckTag';
6
7
  import { TextProps } from './text/SqText';
7
- export type { ButtonProps, InputProps, PopperProps, TagProps, CheckTagProps, TextProps, };
8
+ export type { ButtonProps, CardProps, InputProps, PopperProps, TagProps, CheckTagProps, TextProps, };