@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,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: Divider 组件使用规范
9
+ impact: HIGH
10
+ type: capability
11
+ description: 用于将内容分隔为多个区域。
12
+ tags: [foxui, fox-divider, FoxDivider]
13
+ version: "4.0.0"
14
+ author: jiangcheng
15
+ related: ["fox-js","fox-cell"]
16
+ ---
17
+
18
+ # Divider 组件使用规范
19
+
20
+ ## 1. 核心职责 (Core Responsibility)
21
+ Divider 是 foxui 中用于 **用于将内容分隔为多个区域。** 的标准组件。
22
+ - **基于**: NutUI `nut-divider` 进行了二次封装 (若为纯自研组件则填 "自定义开发")
23
+ - **核心增强**: 基于 NutUI 组件二次封装、适配 H5 与小程序多端、支持插槽扩展自定义内容
24
+ - **适用场景**: 用于将内容分隔为多个区域。
25
+
26
+ > 💡 **关键原则**: 在所有 用于将内容分隔为多个区域。 中,**必须**优先使用此组件,禁止直接使用原生 NutUI 组件。
27
+
28
+ ---
29
+
30
+ ## 2. 关键 API 说明 (Key API)
31
+
32
+ ### 2.1 Props 属性
33
+
34
+ | 属性名 | 类型 | 必填 | 默认值 | 说明 |
35
+ | :--- | :--- | :---: | :---: | :--- |
36
+ | `dashed` | 是否使用虚线 | Boolean | false |
37
+ | `hairline` | 是否使用 0.5px 线 | Boolean | true |
38
+ | `content-position` | 内容位置,可选值为left right | String | center |
39
+ | `direction` | 水平还是垂直类型 | String | 'horizontal' |
40
+
41
+ ### 2.2 Events 事件
42
+
43
+ | 事件名 | 类型 | 说明 |
44
+ | :--- | :--- | :--- |
45
+
46
+
47
+ ### 2.3 Methods 方法
48
+
49
+ | 方法名 | 参数 | 说明 |
50
+ | :--- | :--- | :--- |
51
+
52
+
53
+ ### 2.4 Slots 插槽
54
+
55
+ | 插槽名 | 说明 |
56
+ | :--- | :--- |
57
+ | `default` | 内容 |
58
+
59
+ ## 3. 例子 (Examples)
60
+
61
+ ## 代码演示
62
+
63
+ ### 基础用法
64
+
65
+ 默认渲染一条水平分割线。
66
+
67
+ ``` html
68
+ <template>
69
+ <fox-cell>
70
+ <fox-divider />
71
+ </fox-cell>
72
+ </template>
73
+ ```
74
+
75
+ ### 展示文本
76
+
77
+ 通过插槽可以在分割线中间插入内容。
78
+
79
+
80
+ ``` html
81
+ <template>
82
+ <fox-cell>
83
+ <fox-divider>文本</fox-divider>
84
+ </fox-cell>
85
+ </template>
86
+ ```
87
+
88
+ ### 内容位置
89
+
90
+ 通过 content-position 指定内容所在位置。
91
+
92
+
93
+ ``` html
94
+ <template>
95
+ <fox-cell>
96
+ <fox-divider content-position="left">文本</fox-divider>
97
+ </fox-cell>
98
+ <fox-cell>
99
+ <fox-divider content-position="right">文本</fox-divider>
100
+ </fox-cell>
101
+ </template>
102
+ ```
103
+
104
+ ### 虚线
105
+
106
+ 添加 dashed 属性使分割线渲染为虚线。
107
+
108
+
109
+ ``` html
110
+ <template>
111
+ <fox-cell>
112
+ <fox-divider dashed>文本</fox-divider>
113
+ </fox-cell>
114
+ </template>
115
+ ```
116
+
117
+ ### 自定义样式
118
+
119
+ 可以直接通过 style 属性设置分割线的样式。
120
+
121
+
122
+ ``` html
123
+ <template>
124
+ <fox-cell>
125
+ <fox-divider :style="{ color: '#1989fa', borderColor: '#1989fa', padding: '0 16px' }">文本</fox-divider>
126
+ </fox-cell>
127
+ </template>
128
+ ```
129
+
130
+ ### 垂直分割线
131
+
132
+ ``` html
133
+ <template>
134
+ <fox-cell>
135
+ <div :style="{fontSize: '14px'}">
136
+ 文本
137
+ <fox-divider direction="vertical" />
138
+ <a href="#" :style="{ color: '#1989fa' }">链接</a>
139
+ <fox-divider direction="vertical" />
140
+ <a href="#" :style="{ color: '#1989fa' }">链接</a>
141
+ </div>
142
+ </fox-cell>
143
+ </template>
144
+ ```
145
+
146
+ ## 4. 相关组件 (Related Components)
147
+ - **fox-js**: 与 Divider 配合使用的相关组件
148
+ - **fox-cell**: 与 Divider 配合使用的相关组件
149
+
@@ -0,0 +1,93 @@
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: DomainProvider 组件使用规范
9
+ impact: HIGH
10
+ type: capability
11
+ description: 设置领域配置
12
+ tags: [foxui, fox-domain-provider, FoxDomainProvider]
13
+ version: "4.0.0"
14
+ author: jiangcheng
15
+ related: ["fox-js","fox-card-navigator"]
16
+ ---
17
+
18
+ # DomainProvider 组件使用规范
19
+
20
+ ## 1. 核心职责 (Core Responsibility)
21
+ DomainProvider 是 foxui 中用于 **设置领域配置** 的标准组件。
22
+ - **基于**: NutUI `nut-domain-provider` 进行了二次封装 (若为纯自研组件则填 "自定义开发")
23
+ - **核心增强**: 基于 NutUI 组件二次封装、适配 H5 与小程序多端、支持插槽扩展自定义内容
24
+ - **适用场景**: 设置领域配置
25
+
26
+ > 💡 **关键原则**: 在所有 设置领域配置 中,**必须**优先使用此组件,禁止直接使用原生 NutUI 组件。
27
+
28
+ ---
29
+
30
+ ## 2. 关键 API 说明 (Key API)
31
+
32
+ ### 2.1 Props 属性
33
+
34
+ | 属性名 | 类型 | 必填 | 默认值 | 说明 |
35
+ | :--- | :--- | :---: | :---: | :--- |
36
+ | `name` | 领域名称 | String | - |
37
+ | `config` | 领域配置参数 | Object | - |
38
+
39
+ ### 2.2 Events 事件
40
+
41
+ | 事件名 | 类型 | 说明 |
42
+ | :--- | :--- | :--- |
43
+
44
+
45
+ ### 2.3 Methods 方法
46
+
47
+ | 方法名 | 参数 | 说明 |
48
+ | :--- | :--- | :--- |
49
+
50
+
51
+ ### 2.4 Slots 插槽
52
+
53
+ | 插槽名 | 说明 |
54
+ | :--- | :--- |
55
+ | `default` | 内容 |
56
+
57
+ ## 3. 例子 (Examples)
58
+
59
+ ## 代码演示
60
+ ### 基础用法
61
+ 设置范围内的domain配置,例如UI参数
62
+ ``` ts
63
+ <script lang="ts" setup>
64
+ // router view name
65
+ const routerViewName = '_root_welcome'
66
+ //domain配置
67
+ const UIOptions = ref({
68
+   // page layout
69
+   pageLayout: {
70
+     headerHeight: 0,
71
+     footerHeight: 80,
72
+     // header padding
73
+     headerPadding: {},
74
+     // content padding
75
+     contentPadding: {
76
+       top: 0,
77
+       left: 32,
78
+       right: 32
79
+     }
80
+   }
81
+ })
82
+ </script>
83
+ <template>
84
+   <fox-domain-provider name="home" :config="UIOptions">
85
+     <fox-card-navigator :router-view-name="routerViewName" :transition="false"> </fox-card-navigator>
86
+   </fox-domain-provider>
87
+ </template>
88
+ ```
89
+
90
+ ## 4. 相关组件 (Related Components)
91
+ - **fox-js**: 与 DomainProvider 配合使用的相关组件
92
+ - **fox-card-navigator**: 与 DomainProvider 配合使用的相关组件
93
+
@@ -0,0 +1,64 @@
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: Drag 组件使用规范
9
+ impact: HIGH
10
+ type: capability
11
+ description: 拖拽组件
12
+ tags: [foxui, fox-drag, FoxDrag]
13
+ version: "4.0.0"
14
+ author: jiangcheng
15
+ related: ["fox-js"]
16
+ ---
17
+
18
+ # Drag 组件使用规范
19
+
20
+ ## 1. 核心职责 (Core Responsibility)
21
+ Drag 是 foxui 中用于 **拖拽组件** 的标准组件。
22
+ - **基于**: NutUI `nut-drag` 进行了二次封装 (若为纯自研组件则填 "自定义开发")
23
+ - **核心增强**: 基于 NutUI 组件二次封装
24
+ - **适用场景**: 拖拽组件
25
+
26
+ > 💡 **关键原则**: 在所有 拖拽组件 中,**必须**优先使用此组件,禁止直接使用原生 NutUI 组件。
27
+
28
+ ---
29
+
30
+ ## 2. 关键 API 说明 (Key API)
31
+
32
+ ### 2.1 Props 属性
33
+
34
+ | 属性名 | 类型 | 必填 | 默认值 | 说明 |
35
+ | :--- | :--- | :---: | :---: | :--- |
36
+ | `attract` | 是否开启自动吸边 | Boolean | false |
37
+ | `direction` | 拖拽元素的拖拽方向限制,x/y/all三选一 | String | 'all' |
38
+ | `boundary` | 拖拽元素的拖拽边界 | Object | top: 0,left: 0,right: 0,bottom: 0 |
39
+
40
+ ### 2.2 Events 事件
41
+
42
+ | 事件名 | 类型 | 说明 |
43
+ | :--- | :--- | :--- |
44
+
45
+
46
+ ### 2.3 Methods 方法
47
+
48
+ | 方法名 | 参数 | 说明 |
49
+ | :--- | :--- | :--- |
50
+
51
+
52
+ ### 2.4 Slots 插槽
53
+
54
+ | 插槽名 | 说明 |
55
+ | :--- | :--- |
56
+
57
+
58
+ ## 3. 例子 (Examples)
59
+
60
+
61
+
62
+ ## 4. 相关组件 (Related Components)
63
+ - **fox-js**: 与 Drag 配合使用的相关组件
64
+
@@ -0,0 +1,138 @@
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: Dropdown 组件使用规范
9
+ impact: HIGH
10
+ type: capability
11
+ description: 下拉弹框
12
+ tags: [foxui, fox-dropdown, FoxDropdown]
13
+ version: "4.0.0"
14
+ author: jiangcheng
15
+ related: ["fox-js","fox-page","fox-header-bar","fox-row-item","fox-text","fox-content","fox-group","fox-link-item"]
16
+ ---
17
+
18
+ # Dropdown 组件使用规范
19
+
20
+ ## 1. 核心职责 (Core Responsibility)
21
+ Dropdown 是 foxui 中用于 **下拉弹框** 的标准组件。
22
+ - **基于**: NutUI `nut-dropdown` 进行了二次封装 (若为纯自研组件则填 "自定义开发")
23
+ - **核心增强**: 基于 NutUI 组件二次封装、支持 v-model 双向绑定、支持插槽扩展自定义内容
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
+ | `default` | 弹框内容 |
55
+
56
+ ## 3. 例子 (Examples)
57
+
58
+ ## 代码演示
59
+ ### 基础用法
60
+ ```html
61
+ <!--
62
+  * @version: 1.0
63
+  * @Author: 江成
64
+  * @Date: 2024-04-14 20:38:50
65
+ -->
66
+ <script lang="ts" setup>
67
+ import { computed, ref, reactive } from 'vue'
68
+ import { useRouter } from '@fox-js/fox'
69
+ import { UploadCloud, MoreH } from '@fox-js/icons-vue'
70
+ import { imageTree } from './data'
71
+ // 获取router
72
+ const router = useRouter()
73
+ // visible
74
+ const visible = ref(false)
75
+ // 显示top popover
76
+ const onToggleVisible = () => {
77
+   visible.value = !visible.value
78
+ }
79
+ // selected text
80
+ const selectedText = ref('')
81
+ // on selected
82
+ const onSelected = (item: Record<string, any>) => {
83
+   selectedText.value = item.text
84
+   visible.value = false
85
+ }
86
+ //content padding
87
+ const contentPadding = {
88
+   top: 0,
89
+   right: 0,
90
+   bottom: 0,
91
+   left: 0
92
+ }
93
+ // 回退处理
94
+ const onBack = () => {
95
+   router.back()
96
+ }
97
+ </script>
98
+ <template>
99
+   <fox-page header-height="auto" :content-padding="contentPadding">
100
+     <fox-header-bar @back="onBack">
101
+       <template v-slot:default>Dropdwon</template>
102
+       <template v-slot:bottom>
103
+         <fox-row-item class="my-top-select-row" align="space-between">
104
+           <fox-text><span class="label">当前选择:</span>{{ selectedText }}</fox-text>
105
+           <MoreH @click="onToggleVisible" width="16px" height="16px"></MoreH>
106
+         </fox-row-item>
107
+       </template>
108
+     </fox-header-bar>
109
+     <fox-content class="my-content">
110
+       <fox-dropdown v-model:visible="visible">
111
+         <fox-group label-width="150px">
112
+           <fox-link-item v-for="(item, index) in imageTree" @click="onSelected(item)">
113
+             {{ item.text }}
114
+           </fox-link-item>
115
+         </fox-group>
116
+       </fox-dropdown>
117
+     </fox-content>
118
+   </fox-page>
119
+ </template>
120
+ <style lang="scss" scoped>
121
+ .my-top-select-row {
122
+   .label {
123
+     color: rgba(51, 51, 51, 1);
124
+   }
125
+ }
126
+ </style>
127
+ ```
128
+
129
+ ## 4. 相关组件 (Related Components)
130
+ - **fox-js**: 与 Dropdown 配合使用的相关组件
131
+ - **fox-page**: 与 Dropdown 配合使用的相关组件
132
+ - **fox-header-bar**: 与 Dropdown 配合使用的相关组件
133
+ - **fox-row-item**: 与 Dropdown 配合使用的相关组件
134
+ - **fox-text**: 与 Dropdown 配合使用的相关组件
135
+ - **fox-content**: 与 Dropdown 配合使用的相关组件
136
+ - **fox-group**: 与 Dropdown 配合使用的相关组件
137
+ - **fox-link-item**: 与 Dropdown 配合使用的相关组件
138
+
@@ -0,0 +1,66 @@
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: Elevator 组件使用规范
9
+ impact: HIGH
10
+ type: capability
11
+ description: 用于列表快速定位以及索引的显示
12
+ tags: [foxui, fox-elevator, FoxElevator]
13
+ version: "4.0.0"
14
+ author: jiangcheng
15
+ related: ["fox-js","fox-icon"]
16
+ ---
17
+
18
+ # Elevator 组件使用规范
19
+
20
+ ## 1. 核心职责 (Core Responsibility)
21
+ Elevator 是 foxui 中用于 **用于列表快速定位以及索引的显示** 的标准组件。
22
+ - **基于**: NutUI `nut-elevator` 进行了二次封装 (若为纯自研组件则填 "自定义开发")
23
+ - **核心增强**: 基于 NutUI 组件二次封装、适配 H5 与小程序多端、支持插槽扩展自定义内容、支持主题定制
24
+ - **适用场景**: 用于列表快速定位以及索引的显示
25
+
26
+ > 💡 **关键原则**: 在所有 用于列表快速定位以及索引的显示 中,**必须**优先使用此组件,禁止直接使用原生 NutUI 组件。
27
+
28
+ ---
29
+
30
+ ## 2. 关键 API 说明 (Key API)
31
+
32
+ ### 2.1 Props 属性
33
+
34
+ | 属性名 | 类型 | 必填 | 默认值 | 说明 |
35
+ | :--- | :--- | :---: | :---: | :--- |
36
+ | `height` | 电梯区域的高度 | Number、String | 200px |
37
+ | `accept-key` | 索引 key 值 | String | title |
38
+ | `index-list` | 索引列表 | Array(item需包含 id、name属性, name支持传入 html 结构) | id: 0, name: '' |
39
+
40
+ ### 2.2 Events 事件
41
+
42
+ | 事件名 | 类型 | 说明 |
43
+ | :--- | :--- | :--- |
44
+ | `click-item` | 点击内容 | key: string, item: id: 0, name: '' |
45
+ | `click-index` | 点击索引 | key: string |
46
+
47
+ ### 2.3 Methods 方法
48
+
49
+ | 方法名 | 参数 | 说明 |
50
+ | :--- | :--- | :--- |
51
+ | `scrollTo` | 滚动到对应索引的位置 | index:number |
52
+
53
+ ### 2.4 Slots 插槽
54
+
55
+ | 插槽名 | 说明 |
56
+ | :--- | :--- |
57
+
58
+
59
+ ## 3. 例子 (Examples)
60
+
61
+
62
+
63
+ ## 4. 相关组件 (Related Components)
64
+ - **fox-js**: 与 Elevator 配合使用的相关组件
65
+ - **fox-icon**: 与 Elevator 配合使用的相关组件
66
+
@@ -0,0 +1,69 @@
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: Ellipsis 组件使用规范
9
+ impact: HIGH
10
+ type: capability
11
+ description: 文本省略
12
+ tags: [foxui, fox-ellipsis, FoxEllipsis]
13
+ version: "4.0.0"
14
+ author: jiangcheng
15
+ related: ["fox-js"]
16
+ ---
17
+
18
+ # Ellipsis 组件使用规范
19
+
20
+ ## 1. 核心职责 (Core Responsibility)
21
+ Ellipsis 是 foxui 中用于 **文本省略** 的标准组件。
22
+ - **基于**: NutUI `nut-ellipsis` 进行了二次封装 (若为纯自研组件则填 "自定义开发")
23
+ - **核心增强**: 基于 NutUI 组件二次封装、适配 H5 与小程序多端、支持主题定制
24
+ - **适用场景**: 文本省略
25
+
26
+ > 💡 **关键原则**: 在所有 文本省略 中,**必须**优先使用此组件,禁止直接使用原生 NutUI 组件。
27
+
28
+ ---
29
+
30
+ ## 2. 关键 API 说明 (Key API)
31
+
32
+ ### 2.1 Props 属性
33
+
34
+ | 属性名 | 类型 | 必填 | 默认值 | 说明 |
35
+ | :--- | :--- | :---: | :---: | :--- |
36
+ | `content` | 文本内容 | String | - |
37
+ | `direction` | 省略位置 | 'start' | 'end' |
38
+ | `rows` | 展示几行 | Number | 1 |
39
+ | `expand-text` | 展开操作的文案 | String | '' |
40
+ | `collapse-text` | 收起操作的文案 | String | '' |
41
+ | `symbol` | 省略的符号 | String | '...' |
42
+ | `line-height` | 容器的行高 | String、Number | 20 |
43
+
44
+ ### 2.2 Events 事件
45
+
46
+ | 事件名 | 类型 | 说明 |
47
+ | :--- | :--- | :--- |
48
+ | `click` | 文本点击是触发 | -- |
49
+ | `change` | 点击展开收起时触发 | -- |
50
+
51
+ ### 2.3 Methods 方法
52
+
53
+ | 方法名 | 参数 | 说明 |
54
+ | :--- | :--- | :--- |
55
+
56
+
57
+ ### 2.4 Slots 插槽
58
+
59
+ | 插槽名 | 说明 |
60
+ | :--- | :--- |
61
+
62
+
63
+ ## 3. 例子 (Examples)
64
+
65
+
66
+
67
+ ## 4. 相关组件 (Related Components)
68
+ - **fox-js**: 与 Ellipsis 配合使用的相关组件
69
+
@@ -0,0 +1,67 @@
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: Empty 组件使用规范
9
+ impact: HIGH
10
+ type: capability
11
+ description: 空状态时占位提示
12
+ tags: [foxui, fox-empty, FoxEmpty]
13
+ version: "4.0.0"
14
+ author: jiangcheng
15
+ related: ["fox-js","fox-button"]
16
+ ---
17
+
18
+ # Empty 组件使用规范
19
+
20
+ ## 1. 核心职责 (Core Responsibility)
21
+ Empty 是 foxui 中用于 **空状态时占位提示** 的标准组件。
22
+ - **基于**: NutUI `nut-empty` 进行了二次封装 (若为纯自研组件则填 "自定义开发")
23
+ - **核心增强**: 基于 NutUI 组件二次封装、适配 H5 与小程序多端、支持插槽扩展自定义内容、支持主题定制
24
+ - **适用场景**: 空状态时占位提示
25
+
26
+ > 💡 **关键原则**: 在所有 空状态时占位提示 中,**必须**优先使用此组件,禁止直接使用原生 NutUI 组件。
27
+
28
+ ---
29
+
30
+ ## 2. 关键 API 说明 (Key API)
31
+
32
+ ### 2.1 Props 属性
33
+
34
+ | 属性名 | 类型 | 必填 | 默认值 | 说明 |
35
+ | :--- | :--- | :---: | :---: | :--- |
36
+ | `image` | 图片类型,可选值为 error network search,支持传入图片 URL | String | empty |
37
+ | `image-size` | 图片大小,Number 类型单位为 px | Number \ | String |
38
+ | `description` | 图片下方的描述文字 | String | 无内容 |
39
+
40
+ ### 2.2 Events 事件
41
+
42
+ | 事件名 | 类型 | 说明 |
43
+ | :--- | :--- | :--- |
44
+
45
+
46
+ ### 2.3 Methods 方法
47
+
48
+ | 方法名 | 参数 | 说明 |
49
+ | :--- | :--- | :--- |
50
+
51
+
52
+ ### 2.4 Slots 插槽
53
+
54
+ | 插槽名 | 说明 |
55
+ | :--- | :--- |
56
+ | `default` | 自定义底部内容 |
57
+ | `image` | 自定义图片 |
58
+ | `description` | 自定义描述文字 |
59
+
60
+ ## 3. 例子 (Examples)
61
+
62
+
63
+
64
+ ## 4. 相关组件 (Related Components)
65
+ - **fox-js**: 与 Empty 配合使用的相关组件
66
+ - **fox-button**: 与 Empty 配合使用的相关组件
67
+