@fox-js/phone-skills 4.0.1-0

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 (98) hide show
  1. package/README.md +30 -0
  2. package/foxui/SKILL.md +442 -0
  3. package/foxui/references/fox-action-sheet/doc.md +74 -0
  4. package/foxui/references/fox-actionsheet-item/doc.md +499 -0
  5. package/foxui/references/fox-animate/doc.md +66 -0
  6. package/foxui/references/fox-audio/doc.md +76 -0
  7. package/foxui/references/fox-avatar/doc.md +70 -0
  8. package/foxui/references/fox-back-top/doc.md +69 -0
  9. package/foxui/references/fox-badge/doc.md +72 -0
  10. package/foxui/references/fox-barrage/doc.md +116 -0
  11. package/foxui/references/fox-button/doc.md +203 -0
  12. package/foxui/references/fox-calendar/doc.md +346 -0
  13. package/foxui/references/fox-calendar-item/doc.md +331 -0
  14. package/foxui/references/fox-cascader/doc.md +78 -0
  15. package/foxui/references/fox-cascader-item/doc.md +710 -0
  16. package/foxui/references/fox-cell/doc.md +74 -0
  17. package/foxui/references/fox-checkbox-item/doc.md +387 -0
  18. package/foxui/references/fox-circle-progress/doc.md +65 -0
  19. package/foxui/references/fox-collapse/doc.md +71 -0
  20. package/foxui/references/fox-count-down/doc.md +78 -0
  21. package/foxui/references/fox-count-up/doc.md +178 -0
  22. package/foxui/references/fox-date-item/doc.md +437 -0
  23. package/foxui/references/fox-date-picker/doc.md +438 -0
  24. package/foxui/references/fox-dialog/doc.md +242 -0
  25. package/foxui/references/fox-divider/doc.md +149 -0
  26. package/foxui/references/fox-domain-provider/doc.md +93 -0
  27. package/foxui/references/fox-drag/doc.md +64 -0
  28. package/foxui/references/fox-dropdown/doc.md +138 -0
  29. package/foxui/references/fox-elevator/doc.md +66 -0
  30. package/foxui/references/fox-ellipsis/doc.md +69 -0
  31. package/foxui/references/fox-empty/doc.md +67 -0
  32. package/foxui/references/fox-fixed-nav/doc.md +72 -0
  33. package/foxui/references/fox-floating-button/doc.md +142 -0
  34. package/foxui/references/fox-grid/doc.md +69 -0
  35. package/foxui/references/fox-group/doc.md +295 -0
  36. package/foxui/references/fox-icon/doc.md +65 -0
  37. package/foxui/references/fox-image/doc.md +75 -0
  38. package/foxui/references/fox-image-preview/doc.md +79 -0
  39. package/foxui/references/fox-indicator/doc.md +70 -0
  40. package/foxui/references/fox-infinite-loading/doc.md +74 -0
  41. package/foxui/references/fox-input-item/doc.md +210 -0
  42. package/foxui/references/fox-input-number/doc.md +199 -0
  43. package/foxui/references/fox-input-number-item/doc.md +213 -0
  44. package/foxui/references/fox-item/doc.md +207 -0
  45. package/foxui/references/fox-layout/doc.md +273 -0
  46. package/foxui/references/fox-link-item/doc.md +158 -0
  47. package/foxui/references/fox-list/doc.md +71 -0
  48. package/foxui/references/fox-mapping/doc.md +251 -0
  49. package/foxui/references/fox-menu/doc.md +425 -0
  50. package/foxui/references/fox-message-box/doc.md +200 -0
  51. package/foxui/references/fox-money-item/doc.md +174 -0
  52. package/foxui/references/fox-more-button/doc.md +208 -0
  53. package/foxui/references/fox-navbar/doc.md +75 -0
  54. package/foxui/references/fox-notice-bar/doc.md +71 -0
  55. package/foxui/references/fox-notify/doc.md +72 -0
  56. package/foxui/references/fox-number-keyboard/doc.md +77 -0
  57. package/foxui/references/fox-over-lay/doc.md +70 -0
  58. package/foxui/references/fox-page/doc.md +76 -0
  59. package/foxui/references/fox-pagination/doc.md +73 -0
  60. package/foxui/references/fox-picker/doc.md +668 -0
  61. package/foxui/references/fox-picker-item/doc.md +389 -0
  62. package/foxui/references/fox-popover/doc.md +70 -0
  63. package/foxui/references/fox-popover-dialog/doc.md +113 -0
  64. package/foxui/references/fox-popup/doc.md +88 -0
  65. package/foxui/references/fox-price/doc.md +67 -0
  66. package/foxui/references/fox-progress/doc.md +74 -0
  67. package/foxui/references/fox-pull-refresh/doc.md +77 -0
  68. package/foxui/references/fox-radio-item/doc.md +384 -0
  69. package/foxui/references/fox-range/doc.md +65 -0
  70. package/foxui/references/fox-rate/doc.md +141 -0
  71. package/foxui/references/fox-rate-item/doc.md +137 -0
  72. package/foxui/references/fox-rolling-provider/doc.md +87 -0
  73. package/foxui/references/fox-search-bar/doc.md +91 -0
  74. package/foxui/references/fox-short-password/doc.md +78 -0
  75. package/foxui/references/fox-side-nav-bar/doc.md +68 -0
  76. package/foxui/references/fox-signature/doc.md +202 -0
  77. package/foxui/references/fox-skeleton/doc.md +73 -0
  78. package/foxui/references/fox-steps/doc.md +162 -0
  79. package/foxui/references/fox-steps-bar/doc.md +610 -0
  80. package/foxui/references/fox-sticky/doc.md +68 -0
  81. package/foxui/references/fox-swipe/doc.md +176 -0
  82. package/foxui/references/fox-swiper/doc.md +254 -0
  83. package/foxui/references/fox-switch/doc.md +162 -0
  84. package/foxui/references/fox-switch-item/doc.md +190 -0
  85. package/foxui/references/fox-tabbar/doc.md +63 -0
  86. package/foxui/references/fox-table/doc.md +640 -0
  87. package/foxui/references/fox-tabs/doc.md +67 -0
  88. package/foxui/references/fox-tabs-bar/doc.md +533 -0
  89. package/foxui/references/fox-tag/doc.md +213 -0
  90. package/foxui/references/fox-text/doc.md +84 -0
  91. package/foxui/references/fox-textarea-item/doc.md +106 -0
  92. package/foxui/references/fox-toast/doc.md +149 -0
  93. package/foxui/references/fox-tour/doc.md +89 -0
  94. package/foxui/references/fox-trend-arrow/doc.md +72 -0
  95. package/foxui/references/fox-uploader/doc.md +96 -0
  96. package/foxui/references/fox-video/doc.md +245 -0
  97. package/foxui/references/fox-water-mark/doc.md +81 -0
  98. package/package.json +21 -0
@@ -0,0 +1,213 @@
1
+ <!--
2
+ * @Author: 江成
3
+ * @Date: 2026-04-27 00:37:28
4
+ * @LastEditors: 江成
5
+ * @LastEditTime: 2026-05-12 22:33:21
6
+ -->
7
+ ---
8
+ title: Tag 组件使用规范
9
+ impact: HIGH
10
+ type: capability
11
+ description: 标签
12
+ tags: [foxui, fox-tag, FoxTag]
13
+ version: "4.0.0"
14
+ author: jiangcheng
15
+ related: ["fox-js","fox-cell-group","fox-cell"]
16
+ ---
17
+
18
+ # Tag 组件使用规范
19
+
20
+ ## 1. 核心职责 (Core Responsibility)
21
+ Tag 是 foxui 中用于 **标签** 的标准组件。
22
+ - **基于**: NutUI `nut-tag` 进行了二次封装 (若为纯自研组件则填 "自定义开发")
23
+ - **核心增强**: 基于 NutUI 组件二次封装、适配 H5 与小程序多端、支持插槽扩展自定义内容、支持主题定制
24
+ - **适用场景**: 标签
25
+
26
+ > 💡 **关键原则**: 在所有 标签 中,**必须**优先使用此组件,禁止直接使用原生 NutUI 组件。
27
+
28
+ ---
29
+
30
+ ## 2. 关键 API 说明 (Key API)
31
+
32
+ ### 2.1 Props 属性
33
+
34
+ | 属性名 | 类型 | 必填 | 默认值 | 说明 |
35
+ | :--- | :--- | :---: | :---: | :--- |
36
+ | `type` | 标签类型,可选值为primary success danger warning | String | default |
37
+ | `color` | 标签颜色 | String | - |
38
+ | `text-color` | 文本颜色,优先级高于color属性 | String | white |
39
+ | `plain` | 是否为空心样式 | Boolean | false |
40
+ | `round` | 是否为圆角样式 | Boolean | false |
41
+ | `mark` | 是否为标记样式 | Boolean | false |
42
+ | `closeable` | 是否为可关闭标签 | Boolean | false |
43
+ | `text` | 文本样式 | Boolean | false |
44
+ | `light` | 轻样式 | Boolean | false |
45
+
46
+ ### 2.2 Events 事件
47
+
48
+ | 事件名 | 类型 | 说明 |
49
+ | :--- | :--- | :--- |
50
+ | `click` | 点击事件 | event |
51
+ | `close` | 关闭事件 | event |
52
+
53
+ ### 2.3 Methods 方法
54
+
55
+ | 方法名 | 参数 | 说明 |
56
+ | :--- | :--- | :--- |
57
+
58
+
59
+ ### 2.4 Slots 插槽
60
+
61
+ | 插槽名 | 说明 |
62
+ | :--- | :--- |
63
+ | `default` | 标签显示内容 |
64
+
65
+ ## 3. 例子 (Examples)
66
+
67
+ ## 代码演示
68
+
69
+ ### 基础用法
70
+
71
+ ```html
72
+ <template>
73
+ <fox-cell-group title="基础用法">
74
+ <fox-cell title="primary 类型">
75
+ <template v-slot:link>
76
+ <fox-tag type="primary">标签</fox-tag>
77
+ </template>
78
+ </fox-cell>
79
+ <fox-cell title="success 类型">
80
+ <template v-slot:link>
81
+ <fox-tag type="success">标签</fox-tag>
82
+ </template>
83
+ </fox-cell>
84
+ <fox-cell title="danger 类型">
85
+ <template v-slot:link>
86
+ <fox-tag type="danger">标签</fox-tag>
87
+ </template>
88
+ </fox-cell>
89
+ <fox-cell title="warning 类型">
90
+ <template v-slot:link>
91
+ <fox-tag type="warning">标签</fox-tag>
92
+ </template>
93
+ </fox-cell>
94
+ <fox-cell title="default 类型">
95
+ <template v-slot:link>
96
+ <fox-tag type="default">标签</fox-tag>
97
+ </template>
98
+ </fox-cell>
99
+ <fox-cell title="轻primary 类型">
100
+ <template v-slot:link>
101
+ <fox-tag type="primary" light>标签</fox-tag>
102
+ </template>
103
+ </fox-cell>
104
+ <fox-cell title="轻success 类型">
105
+ <template v-slot:link>
106
+ <fox-tag type="success" light>标签</fox-tag>
107
+ </template>
108
+ </fox-cell>
109
+ <fox-cell title="轻danger 类型">
110
+ <template v-slot:link>
111
+ <fox-tag type="danger" light>标签</fox-tag>
112
+ </template>
113
+ </fox-cell>
114
+ <fox-cell title="轻warning 类型">
115
+ <template v-slot:link>
116
+ <fox-tag type="warning" light>标签</fox-tag>
117
+ </template>
118
+ </fox-cell>
119
+ <fox-cell title="轻default 类型">
120
+ <template v-slot:link>
121
+ <fox-tag type="default" light>标签</fox-tag>
122
+ </template>
123
+ </fox-cell>
124
+ </fox-cell-group>
125
+ </template>
126
+
127
+ ```
128
+
129
+ ### 样式风格
130
+
131
+ ```html
132
+ <template>
133
+ <fox-cell-group title="样式风格">
134
+ <fox-cell title="空心样式">
135
+ <template v-slot:link>
136
+ <fox-tag plain>标签</fox-tag>
137
+ </template>
138
+ </fox-cell>
139
+ <fox-cell title="圆角样式">
140
+ <template v-slot:link>
141
+ <fox-tag round type="primary">标签</fox-tag>
142
+ </template>
143
+ </fox-cell>
144
+ <fox-cell title="标记样式">
145
+ <template v-slot:link>
146
+ <fox-tag mark type="primary">标签</fox-tag>
147
+ </template>
148
+ </fox-cell>
149
+ <fox-cell title="可关闭标签">
150
+ <template v-slot:link>
151
+ <fox-tag v-if="show" closeable @close="close" type="primary">标签</fox-tag>
152
+ </template>
153
+ </fox-cell>
154
+ <fox-cell title="文字样式">
155
+ <template v-slot:link>
156
+ <fox-tag text type="primary">标签</fox-tag>
157
+ </template>
158
+ </fox-cell>
159
+ </fox-cell-group>
160
+ </template>
161
+
162
+
163
+ <script lang="ts">
164
+ import { ref } from 'vue';
165
+
166
+ export default {
167
+ setup() {
168
+ const show = ref(true);
169
+ const close = () => {
170
+ show.value = false;
171
+ };
172
+
173
+ return {
174
+ close,
175
+ show
176
+ };
177
+ }
178
+ };
179
+ </script>
180
+
181
+ ```
182
+
183
+
184
+ ### 颜色自定义
185
+
186
+ ```html
187
+ <template>
188
+ <fox-cell-group title="颜色自定义">
189
+ <fox-cell title="背景颜色">
190
+ <template v-slot:link>
191
+ <fox-tag color="#FA685D">标签</fox-tag>
192
+ </template>
193
+ </fox-cell>
194
+ <fox-cell title="文字颜色">
195
+ <template v-slot:link>
196
+ <fox-tag color="#E9E9E9" textColor="#999999">标签</fox-tag>
197
+ </template>
198
+ </fox-cell>
199
+ <fox-cell title="空心颜色">
200
+ <template v-slot:link>
201
+ <fox-tag color="#FA2400" plain>标签</fox-tag>
202
+ </template>
203
+ </fox-cell>
204
+ </fox-cell-group>
205
+ </template>
206
+
207
+ ```
208
+
209
+ ## 4. 相关组件 (Related Components)
210
+ - **fox-js**: 与 Tag 配合使用的相关组件
211
+ - **fox-cell-group**: 与 Tag 配合使用的相关组件
212
+ - **fox-cell**: 与 Tag 配合使用的相关组件
213
+
@@ -0,0 +1,84 @@
1
+ <!--
2
+ * @Author: 江成
3
+ * @Date: 2026-04-27 00:37:28
4
+ * @LastEditors: 江成
5
+ * @LastEditTime: 2026-05-12 22:33:21
6
+ -->
7
+ ---
8
+ title: Text 组件使用规范
9
+ impact: HIGH
10
+ type: capability
11
+ description: 文本
12
+ tags: [foxui, fox-text, FoxText]
13
+ version: "4.0.0"
14
+ author: jiangcheng
15
+ related: ["fox-js","fox-group","fox-row-item","fox-slot-item"]
16
+ ---
17
+
18
+ # Text 组件使用规范
19
+
20
+ ## 1. 核心职责 (Core Responsibility)
21
+ Text 是 foxui 中用于 **文本** 的标准组件。
22
+ - **基于**: NutUI `nut-text` 进行了二次封装 (若为纯自研组件则填 "自定义开发")
23
+ - **核心增强**: 基于 NutUI 组件二次封装、适配 H5 与小程序多端、支持插槽扩展自定义内容、支持主题定制
24
+ - **适用场景**: 文本
25
+
26
+ > 💡 **关键原则**: 在所有 文本 中,**必须**优先使用此组件,禁止直接使用原生 NutUI 组件。
27
+
28
+ ---
29
+
30
+ ## 2. 关键 API 说明 (Key API)
31
+
32
+ ### 2.1 Props 属性
33
+
34
+ | 属性名 | 类型 | 必填 | 默认值 | 说明 |
35
+ | :--- | :--- | :---: | :---: | :--- |
36
+ | `tag` | 文本标签 | String | span |
37
+ | `show-overflow-tooltip` | 映射数据源 | String Boolean | true |
38
+ | `show-arrow` | tooltip是否显示箭头 | Boolean | true |
39
+ | `show-after` | tooltip在触发后多久显示内容,单位毫秒 | Number | 300 |
40
+ | `hide-after` | tooltip延迟关闭,单位毫秒 | Number | 0 |
41
+ | `type` | 类型 | primary | success |
42
+ | `size` | 尺寸 | large | default |
43
+ | `truncated` | 显示省略号 | Boolean | true |
44
+ | `number-format` | 是否数字格式化 | Boolean | false |
45
+ | `digits` | 分块长度 | Number | 4 |
46
+ | `separator` | 分块分割符 | String | 空格 |
47
+ | `decimal-length` | 小数长度 | Number | 0 |
48
+ | `auto-padding` | 是否自动填充 | Boolean | false |
49
+ | `highlight-filter` | 高亮过滤器 | String | Funciton |
50
+ | `color` | mark颜色 | String | - |
51
+ | `text-color` | 文本位置 | left、right | left |
52
+ | `text-postion` | 文本颜色 | String | - |
53
+ | `mark` | 是否为标记样式 | Boolean | false |
54
+ | `divide` | 分割线 | Boolean | false |
55
+
56
+ ### 2.2 Events 事件
57
+
58
+ | 事件名 | 类型 | 说明 |
59
+ | :--- | :--- | :--- |
60
+ | `click` | 点击事件 | event |
61
+
62
+ ### 2.3 Methods 方法
63
+
64
+ | 方法名 | 参数 | 说明 |
65
+ | :--- | :--- | :--- |
66
+
67
+
68
+ ### 2.4 Slots 插槽
69
+
70
+ | 插槽名 | 说明 |
71
+ | :--- | :--- |
72
+ | `default` | 标签显示内容 |
73
+ | `mark` | 标签mark内容 |
74
+
75
+ ## 3. 例子 (Examples)
76
+
77
+
78
+
79
+ ## 4. 相关组件 (Related Components)
80
+ - **fox-js**: 与 Text 配合使用的相关组件
81
+ - **fox-group**: 与 Text 配合使用的相关组件
82
+ - **fox-row-item**: 与 Text 配合使用的相关组件
83
+ - **fox-slot-item**: 与 Text 配合使用的相关组件
84
+
@@ -0,0 +1,106 @@
1
+ <!--
2
+ * @Author: 江成
3
+ * @Date: 2026-04-27 00:37:28
4
+ * @LastEditors: 江成
5
+ * @LastEditTime: 2026-05-12 22:33:21
6
+ -->
7
+ ---
8
+ title: TextareaItem 组件使用规范
9
+ impact: HIGH
10
+ type: capability
11
+ description: 多行文本输入
12
+ tags: [foxui, fox-textarea-item, FoxTextareaItem]
13
+ version: "4.0.0"
14
+ author: jiangcheng
15
+ related: ["fox-js"]
16
+ ---
17
+
18
+ # TextareaItem 组件使用规范
19
+
20
+ ## 1. 核心职责 (Core Responsibility)
21
+ TextareaItem 是 foxui 中用于 **多行文本输入** 的标准组件。
22
+ - **基于**: NutUI `nut-textarea-item` 进行了二次封装 (若为纯自研组件则填 "自定义开发")
23
+ - **核心增强**: 基于 NutUI 组件二次封装、支持 v-model 双向绑定、支持占位符提示、支持禁用/只读状态、适配 H5 与小程序多端、支持主题定制
24
+ - **适用场景**: 多行文本输入
25
+
26
+ > 💡 **关键原则**: 在所有 多行文本输入 中,**必须**优先使用此组件,禁止直接使用原生 NutUI 组件。
27
+
28
+ ---
29
+
30
+ ## 2. 关键 API 说明 (Key API)
31
+
32
+ ### 2.1 Props 属性
33
+
34
+ | 属性名 | 类型 | 必填 | 默认值 | 说明 |
35
+ | :--- | :--- | :---: | :---: | :--- |
36
+ | `placeholder` | 设置占位提示文字 | String | '请输入内容' |
37
+ | `max-length` | 限制最长输入字符 | String、Number | - |
38
+ | `rows` | textarea的高度,优先级高于autosize属性 | String、Number | 2 |
39
+ | `limit-show` | textarea是否展示输入字符。须配合max-length使用 | Boolean | false |
40
+ | `autosize` | 高度是否可拉伸 | Boolean | false |
41
+ | `text-align` | 文本位置,可选值left,center,right | String | left |
42
+ | `readonly` | 只读属性 | Boolean | false |
43
+ | `disabled` | 禁用属性 | Boolean | false |
44
+ | `autofocus` | 自动获取焦点 | Boolean | false |
45
+
46
+ ### 2.2 Events 事件
47
+
48
+ | 事件名 | 类型 | 说明 |
49
+ | :--- | :--- | :--- |
50
+ | `change` | 输入框值改变时触发 | value |
51
+ | `focus` | 聚焦时触发 | event |
52
+ | `blur` | 失焦时触发 | value, event |
53
+
54
+ ### 2.3 Methods 方法
55
+
56
+ | 方法名 | 参数 | 说明 |
57
+ | :--- | :--- | :--- |
58
+
59
+
60
+ ### 2.4 Slots 插槽
61
+
62
+ | 插槽名 | 说明 |
63
+ | :--- | :--- |
64
+
65
+
66
+ ## 3. 例子 (Examples)
67
+
68
+ ## 代码演示
69
+ ### 基础用法
70
+ ```html
71
+ <template>
72
+   <fox-textarea-item v-model="value" />
73
+ </template>
74
+ <script>
75
+ import { ref } from 'vue';
76
+ export default {
77
+   setup() {
78
+     const value = ref('');
79
+     return { value };
80
+   },
81
+ };
82
+ </script>
83
+ ```
84
+ ### 显示字数统计
85
+ ```html
86
+ <template>
87
+   <fox-textarea-item v-model="value" limit-show max-length="20" />
88
+ </template>
89
+ ```
90
+ ### 高度自定义,拉伸
91
+ ```html
92
+ <template>
93
+   <fox-textarea-item v-model="value" rows="10" autosize />
94
+ </template>
95
+ ```
96
+ ### 只读、禁用
97
+ ```html
98
+ <template>
99
+   <fox-textarea-item readonly model-value="textarea只读状态" />
100
+   <fox-textarea-item disabled model-value="textarea禁用状态" limit-show max-length="20" />
101
+ </template>
102
+ ```
103
+
104
+ ## 4. 相关组件 (Related Components)
105
+ - **fox-js**: 与 TextareaItem 配合使用的相关组件
106
+
@@ -0,0 +1,149 @@
1
+ <!--
2
+ * @Author: 江成
3
+ * @Date: 2026-04-27 00:37:28
4
+ * @LastEditors: 江成
5
+ * @LastEditTime: 2026-05-12 22:33:21
6
+ -->
7
+ ---
8
+ title: Toast 组件使用规范
9
+ impact: HIGH
10
+ type: capability
11
+ description: 轻提示
12
+ tags: [foxui, fox-toast, FoxToast]
13
+ version: "4.0.0"
14
+ author: jiangcheng
15
+ related: ["fox-js"]
16
+ ---
17
+
18
+ # Toast 组件使用规范
19
+
20
+ ## 1. 核心职责 (Core Responsibility)
21
+ Toast 是 foxui 中用于 **轻提示** 的标准组件。
22
+ - **基于**: NutUI `nut-toast` 进行了二次封装 (若为纯自研组件则填 "自定义开发")
23
+ - **核心增强**: 基于 NutUI 组件二次封装
24
+ - **适用场景**: 轻提示
25
+
26
+ > 💡 **关键原则**: 在所有 轻提示 中,**必须**优先使用此组件,禁止直接使用原生 NutUI 组件。
27
+
28
+ ---
29
+
30
+ ## 2. 关键 API 说明 (Key API)
31
+
32
+ ### 2.1 Props 属性
33
+
34
+ | 属性名 | 类型 | 必填 | 默认值 | 说明 |
35
+ | :--- | :--- | :---: | :---: | :--- |
36
+
37
+
38
+ ### 2.2 Events 事件
39
+
40
+ | 事件名 | 类型 | 说明 |
41
+ | :--- | :--- | :--- |
42
+
43
+
44
+ ### 2.3 Methods 方法
45
+
46
+ | 方法名 | 参数 | 说明 |
47
+ | :--- | :--- | :--- |
48
+
49
+
50
+ ### 2.4 Slots 插槽
51
+
52
+ | 插槽名 | 说明 |
53
+ | :--- | :--- |
54
+
55
+
56
+ ## 3. 例子 (Examples)
57
+
58
+ ## 代码演示
59
+
60
+ #### 全局使用方式
61
+ ``` javascript
62
+ import { getCurrentInstance } from 'vue'
63
+
64
+ export default {
65
+ setup() {
66
+ const { proxy } = getCurrentInstance();
67
+ proxy.$toast.text('全局使用方式')
68
+ return {};
69
+ },
70
+ };
71
+ ```
72
+
73
+ #### 文字提示
74
+ ``` javascript
75
+ import { Toast } from '@fox-js/foxui'
76
+
77
+ export default {
78
+ setup() {
79
+ Toast.text('网络失败,请稍后再试~')
80
+ return {};
81
+ },
82
+ };
83
+ ```
84
+ #### 标题提示
85
+
86
+ ``` javascript
87
+ Toast.text(msg,{title:'标题文字' });
88
+ ```
89
+ #### 成功提示
90
+
91
+ ``` javascript
92
+ Toast.success('成功提示');
93
+ ```
94
+
95
+ #### 失败提示
96
+
97
+ ``` javascript
98
+ Toast.fail('失败提示');
99
+ ```
100
+
101
+ #### 警告提示
102
+
103
+ ``` javascript
104
+ Toast.warn('警告提示');
105
+ ```
106
+
107
+ #### 加载提示
108
+
109
+ ``` javascript
110
+ Toast.loading('加载中');
111
+ ```
112
+
113
+ #### Toast不消失
114
+
115
+ ``` javascript
116
+ Toast.text(msg,{
117
+ duration:0
118
+ });
119
+ ```
120
+ #### Toast自定义底部高度
121
+
122
+ ``` javascript
123
+ Toast.text(msg, {
124
+ center: false,
125
+ bottom: '10%'
126
+ });
127
+ ```
128
+
129
+ #### Loading带透明罩
130
+ ``` javascript
131
+ Toast.loading(msg,{
132
+ cover:true
133
+ });
134
+ ```
135
+
136
+
137
+ #### 支持在JS模块中导入使用
138
+
139
+ ``` javascript
140
+ import { Toast } from "@fox-js/foxui"
141
+ Toast.text('在js模块中使用')
142
+ // 返回实例,可以手动调用实例中的hide方法关闭提示
143
+ const toast = Toast.loading('在js模块中使用')
144
+ toast.hide();
145
+ ```
146
+
147
+ ## 4. 相关组件 (Related Components)
148
+ - **fox-js**: 与 Toast 配合使用的相关组件
149
+
@@ -0,0 +1,89 @@
1
+ <!--
2
+ * @Author: 江成
3
+ * @Date: 2026-04-27 00:37:28
4
+ * @LastEditors: 江成
5
+ * @LastEditTime: 2026-05-12 22:33:21
6
+ -->
7
+ ---
8
+ title: Tour 组件使用规范
9
+ impact: HIGH
10
+ type: capability
11
+ description: 漫游式引导组件,用以展示指标趋势
12
+ tags: [foxui, fox-tour, FoxTour]
13
+ version: "4.0.0"
14
+ author: jiangcheng
15
+ related: ["fox-js","fox-cell","fox-switch","fox-tour-content-inner","fox-custom-tour","fox-customword-tour","fox-customstyle-tour","fox-divider"]
16
+ ---
17
+
18
+ # Tour 组件使用规范
19
+
20
+ ## 1. 核心职责 (Core Responsibility)
21
+ Tour 是 foxui 中用于 **漫游式引导组件,用以展示指标趋势** 的标准组件。
22
+ - **基于**: NutUI `nut-tour` 进行了二次封装 (若为纯自研组件则填 "自定义开发")
23
+ - **核心增强**: 基于 NutUI 组件二次封装、支持 v-model 双向绑定、适配 H5 与小程序多端、支持插槽扩展自定义内容、支持主题定制
24
+ - **适用场景**: 漫游式引导组件,用以展示指标趋势
25
+
26
+ > 💡 **关键原则**: 在所有 漫游式引导组件,用以展示指标趋势 中,**必须**优先使用此组件,禁止直接使用原生 NutUI 组件。
27
+
28
+ ---
29
+
30
+ ## 2. 关键 API 说明 (Key API)
31
+
32
+ ### 2.1 Props 属性
33
+
34
+ | 属性名 | 类型 | 必填 | 默认值 | 说明 |
35
+ | :--- | :--- | :---: | :---: | :--- |
36
+ | `v-model` | 是否展示引导弹出层 | boolean | false |
37
+ | `type` | 引导类型 | string | step |
38
+ | `steps` | 引导步骤内容 | StepOptions | |
39
+ | `offset` | 镂空遮罩相对于目标元素的偏移量 | number, number | 8, 10 |
40
+ | `current` | 类型为 step 时,默认展示第几步 | number | 0 |
41
+ | `custom-class` | 自定义 class 值 | string | '' |
42
+ | `location` | 弹出层位置,同 Popopver 的location 属性 | string | 'bottom' |
43
+ | `next-step-Txt` | 下一步按钮文案 | string | '下一步' |
44
+ | `prev-step-Txt` | 上一步按钮文案 | string | '上一步' |
45
+ | `complete-txt` | 完成按钮文案 | string | '完成' |
46
+ | `mask` | 是否显示镂空遮罩 | boolean | true |
47
+ | `bg-color` | 自定义背景色 | boolean | '' |
48
+ | `theme` | 气泡遮罩层主题,同 Popopver 的theme 属性 | string | 'light' |
49
+ | `mask-width` | 镂空遮罩层宽度 | number \ | string |
50
+ | `mask-height` | 镂空遮罩层高度 | number \ | string |
51
+ | `close-on-click-overlay` | 是否在点击镂空遮罩层后关闭,同 Popopver 的closeOnClickOverlay 属性 | Boolean | true |
52
+ | `show-prev-step` | 是否展示上一步按钮 | boolean | true |
53
+ | `show-title-bar` | 是否展示标题栏 | boolean | false |
54
+
55
+ ### 2.2 Events 事件
56
+
57
+ | 事件名 | 类型 | 说明 |
58
+ | :--- | :--- | :--- |
59
+ | `change` | 切换步骤时触发 |
60
+ | `close` | 气泡层关闭时触发 |
61
+
62
+ ### 2.3 Methods 方法
63
+
64
+ | 方法名 | 参数 | 说明 |
65
+ | :--- | :--- | :--- |
66
+
67
+
68
+ ### 2.4 Slots 插槽
69
+
70
+ | 插槽名 | 说明 |
71
+ | :--- | :--- |
72
+ | `default` | 自定义气泡层内容 |
73
+ | `prev-step` | 自定义上一步内容 |
74
+ | `next-step` | 自定义下一步内容 |
75
+
76
+ ## 3. 例子 (Examples)
77
+
78
+
79
+
80
+ ## 4. 相关组件 (Related Components)
81
+ - **fox-js**: 与 Tour 配合使用的相关组件
82
+ - **fox-cell**: 与 Tour 配合使用的相关组件
83
+ - **fox-switch**: 与 Tour 配合使用的相关组件
84
+ - **fox-tour-content-inner**: 与 Tour 配合使用的相关组件
85
+ - **fox-custom-tour**: 与 Tour 配合使用的相关组件
86
+ - **fox-customword-tour**: 与 Tour 配合使用的相关组件
87
+ - **fox-customstyle-tour**: 与 Tour 配合使用的相关组件
88
+ - **fox-divider**: 与 Tour 配合使用的相关组件
89
+
@@ -0,0 +1,72 @@
1
+ <!--
2
+ * @Author: 江成
3
+ * @Date: 2026-04-27 00:37:28
4
+ * @LastEditors: 江成
5
+ * @LastEditTime: 2026-05-12 22:33:21
6
+ -->
7
+ ---
8
+ title: TrendArrow 组件使用规范
9
+ impact: HIGH
10
+ type: capability
11
+ description: 带有箭头指示的百分比数字,用以展示指标趋势
12
+ tags: [foxui, fox-trend-arrow, FoxTrendArrow]
13
+ version: "4.0.0"
14
+ author: jiangcheng
15
+ related: ["fox-js","fox-cell"]
16
+ ---
17
+
18
+ # TrendArrow 组件使用规范
19
+
20
+ ## 1. 核心职责 (Core Responsibility)
21
+ TrendArrow 是 foxui 中用于 **带有箭头指示的百分比数字,用以展示指标趋势** 的标准组件。
22
+ - **基于**: NutUI `nut-trend-arrow` 进行了二次封装 (若为纯自研组件则填 "自定义开发")
23
+ - **核心增强**: 基于 NutUI 组件二次封装、支持插槽扩展自定义内容、支持主题定制
24
+ - **适用场景**: 带有箭头指示的百分比数字,用以展示指标趋势
25
+
26
+ > 💡 **关键原则**: 在所有 带有箭头指示的百分比数字,用以展示指标趋势 中,**必须**优先使用此组件,禁止直接使用原生 NutUI 组件。
27
+
28
+ ---
29
+
30
+ ## 2. 关键 API 说明 (Key API)
31
+
32
+ ### 2.1 Props 属性
33
+
34
+ | 属性名 | 类型 | 必填 | 默认值 | 说明 |
35
+ | :--- | :--- | :---: | :---: | :--- |
36
+ | `rate` | 数值,大于0时箭头向上,小于0时箭头向下 | number | - |
37
+ | `digits` | 小数位精度 | number | 2 |
38
+ | `show-sign` | 是否显示加减号 | boolean | false |
39
+ | `show-zero` | 是否显示 0 | boolean | false |
40
+ | `arrow-left` | 是否在数字左侧显示箭头 | boolean | false |
41
+ | `sync-text-color` | 文字颜色是否与箭头同步 | boolean | true |
42
+ | `text-color` | 文字颜色 | string | 333333 |
43
+ | `rise-color` | 向上箭头颜色 | string | fa2c19 |
44
+ | `drop-color` | 向下箭头颜色 | string | 64b578 |
45
+
46
+ ### 2.2 Events 事件
47
+
48
+ | 事件名 | 类型 | 说明 |
49
+ | :--- | :--- | :--- |
50
+
51
+
52
+ ### 2.3 Methods 方法
53
+
54
+ | 方法名 | 参数 | 说明 |
55
+ | :--- | :--- | :--- |
56
+
57
+
58
+ ### 2.4 Slots 插槽
59
+
60
+ | 插槽名 | 说明 |
61
+ | :--- | :--- |
62
+ | `up-icon` | 自定义向上箭头图标,默认使用 TriangleUp |
63
+ | `down-icon` | 自定义向下箭头图标,默认使用 TriangleDown |
64
+
65
+ ## 3. 例子 (Examples)
66
+
67
+
68
+
69
+ ## 4. 相关组件 (Related Components)
70
+ - **fox-js**: 与 TrendArrow 配合使用的相关组件
71
+ - **fox-cell**: 与 TrendArrow 配合使用的相关组件
72
+