tang-ui-x 1.0.2 → 1.0.4

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.
@@ -1,5 +1,5 @@
1
1
  <script setup lang="uts">
2
- import TPopup from '@/components/TPopup/index.uvue'
2
+ import TPopup from '../TPopup/index.uvue'
3
3
  import type { ActionSheetAction, TActionSheetProps } from './type.uts'
4
4
 
5
5
  /**
@@ -1,5 +1,5 @@
1
1
  <script setup lang="uts" >
2
- import Icon from '@/components/TIcon'
2
+ import Icon from '../TIcon'
3
3
 
4
4
 
5
5
 
@@ -1,6 +1,6 @@
1
1
  <script setup lang="uts">
2
2
  import { inject, computed } from 'vue'
3
- import TBadge from '@/components/TBadge'
3
+ import TBadge from '../TBadge'
4
4
 
5
5
  /**
6
6
  * TGridItem 宫格项组件
@@ -1,5 +1,5 @@
1
1
  <script setup lang="uts" >
2
- import Icon from '@/components/TIcon'
2
+ import Icon from '../TIcon'
3
3
  import type { SelectOption, SelectProps, SingleSelectValue, MultipleSelectValue } from './type.uts'
4
4
 
5
5
  // 双向绑定值 - 根据 multiple 属性动态类型
@@ -1,7 +1,7 @@
1
1
  <script setup lang="uts" >
2
2
 
3
- import RadioButton from '@/components/RadioButton/index'
4
- import CheckboxButton from '@/components/CheckboxButton/index'
3
+ import RadioButton from '../RadioButton/index'
4
+ import CheckboxButton from '../CheckboxButton/index'
5
5
 
6
6
  type FormOption = { label : string; value : string | number }
7
7
  type FormSchema = {
@@ -4,7 +4,7 @@
4
4
  */
5
5
 
6
6
  import { ref } from 'vue'
7
- import type { ToastOptions, ComponentType, PositionType } from '@/types/index.uts'
7
+ import type { ToastOptions, ComponentType, PositionType } from '../types/index.uts'
8
8
 
9
9
  /** Toast 队列 */
10
10
  const toastQueue = ref<ToastOptions[]>([])
package/index.uts CHANGED
@@ -31,7 +31,7 @@ export { useToast } from './composables/useToast.uts'
31
31
  export { useModal } from './composables/useModal.uts'
32
32
 
33
33
  // 版本信息
34
- export const version: string = '1.0.2'
34
+ export const version: string = '1.0.3'
35
35
 
36
36
  // 组件列表(用于文档和类型提示)
37
37
  export const components: string[] = [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tang-ui-x",
3
- "version": "1.0.2",
3
+ "version": "1.0.4",
4
4
  "description": "UniApp X UI 组件库 - 基于 uni-app x 的移动端 UI 组件库",
5
5
  "main": "index.uts",
6
6
  "module": "index.uts",
package/types/index.uts CHANGED
@@ -50,3 +50,58 @@ export type ToastOptions = {
50
50
  */
51
51
  icon?: string
52
52
  }
53
+
54
+ /**
55
+ * 主题配置类型
56
+ */
57
+ export type ThemeConfig = {
58
+ /**
59
+ * 主色调
60
+ */
61
+ primaryColor: string
62
+
63
+ /**
64
+ * 成功色
65
+ */
66
+ successColor: string
67
+
68
+ /**
69
+ * 警告色
70
+ */
71
+ warningColor: string
72
+
73
+ /**
74
+ * 危险色
75
+ */
76
+ dangerColor: string
77
+
78
+ /**
79
+ * 信息色
80
+ */
81
+ infoColor: string
82
+
83
+ /**
84
+ * 文本色
85
+ */
86
+ textColor: string
87
+
88
+ /**
89
+ * 边框色
90
+ */
91
+ borderColor: string
92
+
93
+ /**
94
+ * 背景色
95
+ */
96
+ backgroundColor: string
97
+
98
+ /**
99
+ * 圆角大小
100
+ */
101
+ borderRadius: string
102
+
103
+ /**
104
+ * 字体大小
105
+ */
106
+ fontSize: string
107
+ }