@squirrel-cloud/ui-vue 0.2.35 → 0.2.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.
Files changed (49) hide show
  1. package/dist/components/message/message.d.ts +2 -2
  2. package/dist/index.d.ts +2 -2
  3. package/dist/props/alert/alert.d.ts +1 -1
  4. package/dist/props/avatar/avatar.d.ts +1 -1
  5. package/dist/props/button/button.d.ts +1 -1
  6. package/dist/props/form/form.d.ts +1 -1
  7. package/dist/props/index.d.ts +1 -0
  8. package/dist/props/input/input.d.ts +1 -1
  9. package/dist/props/message/index.d.ts +1 -0
  10. package/dist/props/message/message.d.ts +34 -0
  11. package/dist/props/pagination/pagination-btn.d.ts +1 -1
  12. package/dist/props/pagination/pagination-pager.d.ts +1 -1
  13. package/dist/props/pagination/pagination.d.ts +1 -1
  14. package/dist/props/popover/popover.d.ts +1 -1
  15. package/dist/props/progress/progress.d.ts +1 -1
  16. package/dist/props/tag/check-tag.d.ts +1 -1
  17. package/dist/props/tag/tag.d.ts +1 -1
  18. package/dist/props/text/text.d.ts +1 -1
  19. package/dist/props/textarea/textarea.d.ts +1 -1
  20. package/dist/props/timeline/timeline-item.d.ts +1 -1
  21. package/dist/props/timeline/timeline.d.ts +1 -1
  22. package/{typings → dist/typings}/Form.d.ts +1 -1
  23. package/{typings → dist/typings}/Message.d.ts +1 -41
  24. package/package.json +5 -3
  25. /package/{typings → dist/typings}/Alignment.d.ts +0 -0
  26. /package/{typings → dist/typings}/ButtonType.d.ts +0 -0
  27. /package/{typings → dist/typings}/ComponentSize.d.ts +0 -0
  28. /package/{typings → dist/typings}/ComponentType.d.ts +0 -0
  29. /package/{typings → dist/typings}/InputMode.d.ts +0 -0
  30. /package/{typings → dist/typings}/InputType.d.ts +0 -0
  31. /package/{typings → dist/typings}/LineType.d.ts +0 -0
  32. /package/{typings → dist/typings}/MarkdownItPlugin.d.ts +0 -0
  33. /package/{typings → dist/typings}/MdNodeItem.d.ts +0 -0
  34. /package/{typings → dist/typings}/MessageQueueItem.d.ts +0 -0
  35. /package/{typings → dist/typings}/PaginationLayout.d.ts +0 -0
  36. /package/{typings → dist/typings}/PopoverPlacement.d.ts +0 -0
  37. /package/{typings → dist/typings}/PopoverTrigger.d.ts +0 -0
  38. /package/{typings → dist/typings}/ProgressTheme.d.ts +0 -0
  39. /package/{typings → dist/typings}/TagTheme.d.ts +0 -0
  40. /package/{typings → dist/typings}/TextareaResizeType.d.ts +0 -0
  41. /package/{typings → dist/typings}/TimelineTheme.d.ts +0 -0
  42. /package/{typings → dist/typings}/TriggerType.d.ts +0 -0
  43. /package/{typings → dist/typings}/contexts/ButtonGroupContext.d.ts +0 -0
  44. /package/{typings → dist/typings}/contexts/FormContext.d.ts +0 -0
  45. /package/{typings → dist/typings}/contexts/index.d.ts +0 -0
  46. /package/{typings → dist/typings}/index.d.ts +0 -0
  47. /package/{typings → dist/typings}/utils/Arrayable.d.ts +0 -0
  48. /package/{typings → dist/typings}/utils/Promiseable.d.ts +0 -0
  49. /package/{typings → dist/typings}/utils/index.d.ts +0 -0
@@ -1,4 +1,4 @@
1
- import { MessageProps } from '../../../typings';
1
+ import { MessageProps } from '../../props';
2
2
  /**
3
3
  * 关闭消息提示
4
4
  */
@@ -6,7 +6,7 @@ declare function close(): void;
6
6
  declare const _default: import('vue').DefineComponent<MessageProps, {
7
7
  close: typeof close;
8
8
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<MessageProps> & Readonly<{}>, {
9
- type: import('../../../typings').ComponentType;
9
+ type: import('../..').ComponentType;
10
10
  closeAfter: number;
11
11
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
12
12
  export default _default;
package/dist/index.d.ts CHANGED
@@ -1,3 +1,3 @@
1
1
  export * from './components';
2
- export * from './props';
3
- export type * from '../typings';
2
+ export type * from './props';
3
+ export type * from './typings';
@@ -1,5 +1,5 @@
1
1
  import { Component } from 'vue';
2
- import { ComponentType } from '../../../typings';
2
+ import { ComponentType } from '../../typings';
3
3
  /**
4
4
  * 提示属性
5
5
  */
@@ -1,4 +1,4 @@
1
- import { ComponentSize } from '../../../typings';
1
+ import { ComponentSize } from '../../typings';
2
2
  /**
3
3
  * 头像属性
4
4
  */
@@ -1,5 +1,5 @@
1
1
  import { Component } from 'vue';
2
- import { ButtonType, ComponentSize, ComponentType } from '../../../typings';
2
+ import { ButtonType, ComponentSize, ComponentType } from '../../typings';
3
3
  /**
4
4
  * 按钮属性
5
5
  */
@@ -1,4 +1,4 @@
1
- import { ComponentSize, FormConfig } from '../../../typings';
1
+ import { ComponentSize, FormConfig } from '../../typings';
2
2
  /**
3
3
  * 表单属性
4
4
  */
@@ -5,6 +5,7 @@ export * from './button';
5
5
  export * from './card';
6
6
  export * from './form';
7
7
  export * from './input';
8
+ export * from './message';
8
9
  export * from './pagination';
9
10
  export * from './popover';
10
11
  export * from './progress';
@@ -1,5 +1,5 @@
1
1
  import { Component } from 'vue';
2
- import { ComponentSize, ComponentTypeBase, InputMode, InputType } from '../../../typings';
2
+ import { ComponentSize, ComponentTypeBase, InputMode, InputType } from '../../typings';
3
3
  /**
4
4
  * 输入框属性
5
5
  */
@@ -0,0 +1 @@
1
+ export * from './message';
@@ -0,0 +1,34 @@
1
+ import { ComponentType } from '../../typings';
2
+ /**
3
+ * 消息提示配置项
4
+ */
5
+ export interface MessageProps {
6
+ /**
7
+ * 消息内容
8
+ */
9
+ message: string;
10
+ /**
11
+ * 消息类型
12
+ */
13
+ type: ComponentType;
14
+ /**
15
+ * 顶部间距
16
+ */
17
+ offsetTop: number;
18
+ /**
19
+ * 销毁回调
20
+ */
21
+ onDestroy: () => void;
22
+ /**
23
+ * 关闭回调
24
+ */
25
+ onClose: () => void;
26
+ /**
27
+ * 关闭时间延迟
28
+ */
29
+ closeAfter?: number;
30
+ /**
31
+ * 消息提示ID
32
+ */
33
+ id: string;
34
+ }
@@ -1,4 +1,4 @@
1
- import { ComponentSize } from '../../../typings';
1
+ import { ComponentSize } from '../../typings';
2
2
  /**
3
3
  * 分页器按钮属性
4
4
  */
@@ -1,4 +1,4 @@
1
- import { ComponentSize } from '../../../typings';
1
+ import { ComponentSize } from '../../typings';
2
2
  /**
3
3
  * 分页器页数选择器属性
4
4
  */
@@ -1,4 +1,4 @@
1
- import { ComponentSize, PaginationLayout } from '../../../typings';
1
+ import { ComponentSize, PaginationLayout } from '../../typings';
2
2
  /**
3
3
  * 分页器属性
4
4
  */
@@ -1,4 +1,4 @@
1
- import { PopoverTrigger, PopoverPlacement } from '../../../typings';
1
+ import { PopoverTrigger, PopoverPlacement } from '../../typings';
2
2
  /**
3
3
  * 气泡框属性
4
4
  */
@@ -1,4 +1,4 @@
1
- import { ComponentType, ProgressTheme } from '../../../typings';
1
+ import { ComponentType, ProgressTheme } from '../../typings';
2
2
  /**
3
3
  * 进度条属性
4
4
  */
@@ -1,5 +1,5 @@
1
1
  import { TagProps } from '..';
2
- import { TagThemeBase } from '../../../typings';
2
+ import { TagThemeBase } from '../../typings';
3
3
  /**
4
4
  * 可选中标签属性
5
5
  */
@@ -1,4 +1,4 @@
1
- import { TagTheme, ComponentSize, ComponentType } from '../../../typings';
1
+ import { TagTheme, ComponentSize, ComponentType } from '../../typings';
2
2
  /**
3
3
  * 标签属性
4
4
  */
@@ -1,4 +1,4 @@
1
- import { ComponentSize } from '../../../typings';
1
+ import { ComponentSize } from '../../typings';
2
2
  /**
3
3
  * 文本属性
4
4
  */
@@ -1,4 +1,4 @@
1
- import { TextareaResizeType } from '../../../typings';
1
+ import { TextareaResizeType } from '../../typings';
2
2
  import { InputProps } from '..';
3
3
  /**
4
4
  * 排除属性
@@ -1,5 +1,5 @@
1
1
  import { Component } from 'vue';
2
- import { ComponentType, TimelineTheme } from '../../../typings';
2
+ import { ComponentType, TimelineTheme } from '../../typings';
3
3
  /**
4
4
  * 时间线项目属性
5
5
  */
@@ -1,4 +1,4 @@
1
- import { Alignment } from '../../../typings';
1
+ import { Alignment } from '../../typings';
2
2
  /**
3
3
  * 时间线属性
4
4
  */
@@ -1,4 +1,4 @@
1
- import type { InputProps, TextareaProps } from '@/props'
1
+ import type { InputProps, TextareaProps } from '../props'
2
2
  import type { Arrayable, Promiseable, TriggerType } from '.'
3
3
 
4
4
  /**
@@ -1,44 +1,4 @@
1
- import type { ComponentType } from 'typings'
2
-
3
- /**
4
- * 消息提示配置项
5
- */
6
- export declare interface MessageProps {
7
- /**
8
- * 消息内容
9
- */
10
- message: string
11
-
12
- /**
13
- * 消息类型
14
- */
15
- type: ComponentType
16
-
17
- /**
18
- * 顶部间距
19
- */
20
- offsetTop: number
21
-
22
- /**
23
- * 销毁回调
24
- */
25
- onDestroy: () => void
26
-
27
- /**
28
- * 关闭回调
29
- */
30
- onClose: () => void
31
-
32
- /**
33
- * 关闭时间延迟
34
- */
35
- closeAfter?: number
36
-
37
- /**
38
- * 消息提示ID
39
- */
40
- id: string
41
- }
1
+ import type { MessageProps } from '../props'
42
2
 
43
3
  /**
44
4
  * 用户传递参数
package/package.json CHANGED
@@ -2,12 +2,11 @@
2
2
  "name": "@squirrel-cloud/ui-vue",
3
3
  "description": "松鼠的坚果屋前端VUE框架",
4
4
  "license": "GPL-3.0",
5
- "version": "0.2.35",
5
+ "version": "0.2.36",
6
6
  "private": false,
7
7
  "type": "module",
8
8
  "files": [
9
- "dist",
10
- "typings"
9
+ "dist"
11
10
  ],
12
11
  "keywords": [
13
12
  "squirrel-cloud",
@@ -32,6 +31,7 @@
32
31
  "scripts": {
33
32
  "dev": "vite",
34
33
  "build": "run-p type-check \"build-only {@}\" --",
34
+ "postbuild": "node scripts/replace-typings.ts",
35
35
  "preview": "vite preview",
36
36
  "build-only": "vite build",
37
37
  "type-check": "vue-tsc --build",
@@ -62,6 +62,7 @@
62
62
  "devDependencies": {
63
63
  "@floating-ui/vue": "^1.1.9",
64
64
  "@tsconfig/node22": "^22.0.0",
65
+ "@types/cpx": "^1.5.5",
65
66
  "@types/markdown-it": "^14.1.2",
66
67
  "@types/node": "^22.13.4",
67
68
  "@vitejs/plugin-vue": "^5.2.1",
@@ -69,6 +70,7 @@
69
70
  "@vue/eslint-config-prettier": "^10.2.0",
70
71
  "@vue/eslint-config-typescript": "^14.4.0",
71
72
  "@vue/tsconfig": "^0.7.0",
73
+ "cpx": "^1.5.0",
72
74
  "eslint": "^9.21.0",
73
75
  "eslint-plugin-vue": "^9.32.0",
74
76
  "jiti": "^2.4.2",
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes