@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.
- package/README.md +30 -0
- package/foxui/SKILL.md +442 -0
- package/foxui/references/fox-action-sheet/doc.md +74 -0
- package/foxui/references/fox-actionsheet-item/doc.md +499 -0
- package/foxui/references/fox-animate/doc.md +66 -0
- package/foxui/references/fox-audio/doc.md +76 -0
- package/foxui/references/fox-avatar/doc.md +70 -0
- package/foxui/references/fox-back-top/doc.md +69 -0
- package/foxui/references/fox-badge/doc.md +72 -0
- package/foxui/references/fox-barrage/doc.md +116 -0
- package/foxui/references/fox-button/doc.md +203 -0
- package/foxui/references/fox-calendar/doc.md +346 -0
- package/foxui/references/fox-calendar-item/doc.md +331 -0
- package/foxui/references/fox-cascader/doc.md +78 -0
- package/foxui/references/fox-cascader-item/doc.md +710 -0
- package/foxui/references/fox-cell/doc.md +74 -0
- package/foxui/references/fox-checkbox-item/doc.md +387 -0
- package/foxui/references/fox-circle-progress/doc.md +65 -0
- package/foxui/references/fox-collapse/doc.md +71 -0
- package/foxui/references/fox-count-down/doc.md +78 -0
- package/foxui/references/fox-count-up/doc.md +178 -0
- package/foxui/references/fox-date-item/doc.md +437 -0
- package/foxui/references/fox-date-picker/doc.md +438 -0
- package/foxui/references/fox-dialog/doc.md +242 -0
- package/foxui/references/fox-divider/doc.md +149 -0
- package/foxui/references/fox-domain-provider/doc.md +93 -0
- package/foxui/references/fox-drag/doc.md +64 -0
- package/foxui/references/fox-dropdown/doc.md +138 -0
- package/foxui/references/fox-elevator/doc.md +66 -0
- package/foxui/references/fox-ellipsis/doc.md +69 -0
- package/foxui/references/fox-empty/doc.md +67 -0
- package/foxui/references/fox-fixed-nav/doc.md +72 -0
- package/foxui/references/fox-floating-button/doc.md +142 -0
- package/foxui/references/fox-grid/doc.md +69 -0
- package/foxui/references/fox-group/doc.md +295 -0
- package/foxui/references/fox-icon/doc.md +65 -0
- package/foxui/references/fox-image/doc.md +75 -0
- package/foxui/references/fox-image-preview/doc.md +79 -0
- package/foxui/references/fox-indicator/doc.md +70 -0
- package/foxui/references/fox-infinite-loading/doc.md +74 -0
- package/foxui/references/fox-input-item/doc.md +210 -0
- package/foxui/references/fox-input-number/doc.md +199 -0
- package/foxui/references/fox-input-number-item/doc.md +213 -0
- package/foxui/references/fox-item/doc.md +207 -0
- package/foxui/references/fox-layout/doc.md +273 -0
- package/foxui/references/fox-link-item/doc.md +158 -0
- package/foxui/references/fox-list/doc.md +71 -0
- package/foxui/references/fox-mapping/doc.md +251 -0
- package/foxui/references/fox-menu/doc.md +425 -0
- package/foxui/references/fox-message-box/doc.md +200 -0
- package/foxui/references/fox-money-item/doc.md +174 -0
- package/foxui/references/fox-more-button/doc.md +208 -0
- package/foxui/references/fox-navbar/doc.md +75 -0
- package/foxui/references/fox-notice-bar/doc.md +71 -0
- package/foxui/references/fox-notify/doc.md +72 -0
- package/foxui/references/fox-number-keyboard/doc.md +77 -0
- package/foxui/references/fox-over-lay/doc.md +70 -0
- package/foxui/references/fox-page/doc.md +76 -0
- package/foxui/references/fox-pagination/doc.md +73 -0
- package/foxui/references/fox-picker/doc.md +668 -0
- package/foxui/references/fox-picker-item/doc.md +389 -0
- package/foxui/references/fox-popover/doc.md +70 -0
- package/foxui/references/fox-popover-dialog/doc.md +113 -0
- package/foxui/references/fox-popup/doc.md +88 -0
- package/foxui/references/fox-price/doc.md +67 -0
- package/foxui/references/fox-progress/doc.md +74 -0
- package/foxui/references/fox-pull-refresh/doc.md +77 -0
- package/foxui/references/fox-radio-item/doc.md +384 -0
- package/foxui/references/fox-range/doc.md +65 -0
- package/foxui/references/fox-rate/doc.md +141 -0
- package/foxui/references/fox-rate-item/doc.md +137 -0
- package/foxui/references/fox-rolling-provider/doc.md +87 -0
- package/foxui/references/fox-search-bar/doc.md +91 -0
- package/foxui/references/fox-short-password/doc.md +78 -0
- package/foxui/references/fox-side-nav-bar/doc.md +68 -0
- package/foxui/references/fox-signature/doc.md +202 -0
- package/foxui/references/fox-skeleton/doc.md +73 -0
- package/foxui/references/fox-steps/doc.md +162 -0
- package/foxui/references/fox-steps-bar/doc.md +610 -0
- package/foxui/references/fox-sticky/doc.md +68 -0
- package/foxui/references/fox-swipe/doc.md +176 -0
- package/foxui/references/fox-swiper/doc.md +254 -0
- package/foxui/references/fox-switch/doc.md +162 -0
- package/foxui/references/fox-switch-item/doc.md +190 -0
- package/foxui/references/fox-tabbar/doc.md +63 -0
- package/foxui/references/fox-table/doc.md +640 -0
- package/foxui/references/fox-tabs/doc.md +67 -0
- package/foxui/references/fox-tabs-bar/doc.md +533 -0
- package/foxui/references/fox-tag/doc.md +213 -0
- package/foxui/references/fox-text/doc.md +84 -0
- package/foxui/references/fox-textarea-item/doc.md +106 -0
- package/foxui/references/fox-toast/doc.md +149 -0
- package/foxui/references/fox-tour/doc.md +89 -0
- package/foxui/references/fox-trend-arrow/doc.md +72 -0
- package/foxui/references/fox-uploader/doc.md +96 -0
- package/foxui/references/fox-video/doc.md +245 -0
- package/foxui/references/fox-water-mark/doc.md +81 -0
- package/package.json +21 -0
|
@@ -0,0 +1,141 @@
|
|
|
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: Rate 组件使用规范
|
|
9
|
+
impact: HIGH
|
|
10
|
+
type: capability
|
|
11
|
+
description: 评分组件
|
|
12
|
+
tags: [foxui, fox-rate, FoxRate]
|
|
13
|
+
version: "4.0.0"
|
|
14
|
+
author: jiangcheng
|
|
15
|
+
related: ["fox-js","fox-icon"]
|
|
16
|
+
---
|
|
17
|
+
|
|
18
|
+
# Rate 组件使用规范
|
|
19
|
+
|
|
20
|
+
## 1. 核心职责 (Core Responsibility)
|
|
21
|
+
Rate 是 foxui 中用于 **评分组件** 的标准组件。
|
|
22
|
+
- **基于**: NutUI `nut-rate` 进行了二次封装 (若为纯自研组件则填 "自定义开发")
|
|
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` | 当前 star 数,可使用 v-model 双向绑定数据 | Number | - |
|
|
37
|
+
| `count` | star 总数 | Number | 5 |
|
|
38
|
+
| `icon-size` | star 大小 | Number | 18 |
|
|
39
|
+
| `active-color` | 图标选中颜色 | String | fa200c |
|
|
40
|
+
| `void-color` | 图标未选中颜色 | String | ccc |
|
|
41
|
+
| `unchecked-icon` | 使用图标未选中图标名称/icon | String | star-n |
|
|
42
|
+
| `checked-icon` | 使用图标选中图标名称/icon | String | star-fill-n |
|
|
43
|
+
| `font-class-name` | 自定义icon 字体基础类名 | String | foxui-iconfont |
|
|
44
|
+
| `class-prefix` | 自定义icon 类名前缀,用于使用自定义图标 | String | fox-icon |
|
|
45
|
+
| `allow-half` | 是否半星 | Boolean | false |
|
|
46
|
+
| `readonly` | 是否只读 | Boolean | false |
|
|
47
|
+
| `disabled` | 是否禁用 | Boolean | false |
|
|
48
|
+
| `spacing` | 间距 | Number | 20 |
|
|
49
|
+
|
|
50
|
+
### 2.2 Events 事件
|
|
51
|
+
|
|
52
|
+
| 事件名 | 类型 | 说明 |
|
|
53
|
+
| :--- | :--- | :--- |
|
|
54
|
+
| `change` | 当前分值修改时时触发的事件 | 当前值 |
|
|
55
|
+
|
|
56
|
+
### 2.3 Methods 方法
|
|
57
|
+
|
|
58
|
+
| 方法名 | 参数 | 说明 |
|
|
59
|
+
| :--- | :--- | :--- |
|
|
60
|
+
无
|
|
61
|
+
|
|
62
|
+
### 2.4 Slots 插槽
|
|
63
|
+
|
|
64
|
+
| 插槽名 | 说明 |
|
|
65
|
+
| :--- | :--- |
|
|
66
|
+
无
|
|
67
|
+
|
|
68
|
+
## 3. 例子 (Examples)
|
|
69
|
+
|
|
70
|
+
## 代码演示
|
|
71
|
+
|
|
72
|
+
### 基础用法
|
|
73
|
+
|
|
74
|
+
``` html
|
|
75
|
+
<fox-rate v-model="value" />
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
``` javascript
|
|
79
|
+
import { ref } from 'vue';
|
|
80
|
+
setup() {
|
|
81
|
+
const value = ref(3);
|
|
82
|
+
return { value }
|
|
83
|
+
}
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
### 自定义icon
|
|
87
|
+
|
|
88
|
+
``` html
|
|
89
|
+
<fox-rate checked-icon="heart-fill1" unchecked-icon="heart" v-model="value" />
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
### 自定义数量
|
|
93
|
+
|
|
94
|
+
``` html
|
|
95
|
+
<fox-rate :total="6" v-model="value" />
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
### 自定义颜色
|
|
99
|
+
|
|
100
|
+
``` html
|
|
101
|
+
<fox-rate active-color="#FFC800" v-model="value" />
|
|
102
|
+
```
|
|
103
|
+
|
|
104
|
+
### 禁用状态
|
|
105
|
+
|
|
106
|
+
``` html
|
|
107
|
+
<fox-rate disabled v-model="value" />
|
|
108
|
+
```
|
|
109
|
+
|
|
110
|
+
### 只读
|
|
111
|
+
|
|
112
|
+
``` html
|
|
113
|
+
<fox-rate v-model="value" readOnly />
|
|
114
|
+
```
|
|
115
|
+
|
|
116
|
+
### 绑定事件
|
|
117
|
+
|
|
118
|
+
``` html
|
|
119
|
+
<fox-rate v-model="value" @change="onChange" />
|
|
120
|
+
```
|
|
121
|
+
|
|
122
|
+
``` javascript
|
|
123
|
+
import { ref } from 'vue';
|
|
124
|
+
setup() {
|
|
125
|
+
const value = ref(3);
|
|
126
|
+
const onChange = (val)=>{
|
|
127
|
+
Toast.text(val);
|
|
128
|
+
}
|
|
129
|
+
return { value }
|
|
130
|
+
}
|
|
131
|
+
```
|
|
132
|
+
### 自定义尺寸
|
|
133
|
+
|
|
134
|
+
``` html
|
|
135
|
+
<fox-rate v-model="value" icon-size="35" />
|
|
136
|
+
```
|
|
137
|
+
|
|
138
|
+
## 4. 相关组件 (Related Components)
|
|
139
|
+
- **fox-js**: 与 Rate 配合使用的相关组件
|
|
140
|
+
- **fox-icon**: 与 Rate 配合使用的相关组件
|
|
141
|
+
|
|
@@ -0,0 +1,137 @@
|
|
|
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: RateItem 组件使用规范
|
|
9
|
+
impact: HIGH
|
|
10
|
+
type: capability
|
|
11
|
+
description: 评价组件
|
|
12
|
+
tags: [foxui, fox-rate-item, FoxRateItem]
|
|
13
|
+
version: "4.0.0"
|
|
14
|
+
author: jiangcheng
|
|
15
|
+
related: ["fox-js","fox-icon"]
|
|
16
|
+
---
|
|
17
|
+
|
|
18
|
+
# RateItem 组件使用规范
|
|
19
|
+
|
|
20
|
+
## 1. 核心职责 (Core Responsibility)
|
|
21
|
+
RateItem 是 foxui 中用于 **评价组件** 的标准组件。
|
|
22
|
+
- **基于**: NutUI `nut-rate-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
|
+
| `v-model` | 当前 star 数,可使用 v-model 双向绑定数据 | Number | - |
|
|
37
|
+
| `text-align` | 文本位置,可选值left,center,right | String | left |
|
|
38
|
+
| `label` | 标签 | String | - |
|
|
39
|
+
| `label-width` | 标签宽度 | String | - |
|
|
40
|
+
| `label-position` | 标签位置可选值left,right,top | String | - |
|
|
41
|
+
| `is-required` | 左侧号是否展示 | Boolean | false |
|
|
42
|
+
| `disabled` | 是否禁用 | Boolean | false |
|
|
43
|
+
| `readonly` | 是否只读 | Boolean | false |
|
|
44
|
+
| `error-tip` | 错误提示 | String | - |
|
|
45
|
+
| `error-icon` | 错误提示图标 | Component | - |
|
|
46
|
+
| `warn-tip` | 警告提示 | String | - |
|
|
47
|
+
| `warn-icon` | 警告提示图标 | Component | - |
|
|
48
|
+
| `info-tip` | 提示 | String | - |
|
|
49
|
+
| `info-icon` | 提示图标 | Component | - |
|
|
50
|
+
| `count` | star 总数 | Number | 5 |
|
|
51
|
+
| `icon-size` | star 大小 | Number | 18 |
|
|
52
|
+
| `active-color` | 图标选中颜色 | String | fa200c |
|
|
53
|
+
| `void-color` | 图标未选中颜色 | String | ccc |
|
|
54
|
+
| `unchecked-icon` | 使用图标未选中图标名称/icon | String | star-n |
|
|
55
|
+
| `checked-icon` | 使用图标选中图标名称/icon | String | star-fill-n |
|
|
56
|
+
| `font-class-name` | 自定义icon 字体基础类名 | String | foxui-iconfont |
|
|
57
|
+
| `class-prefix` | 自定义icon 类名前缀,用于使用自定义图标 | String | fox-icon |
|
|
58
|
+
| `allow-half` | 是否半星 | Boolean | false |
|
|
59
|
+
| `readonly` | 是否只读 | Boolean | false |
|
|
60
|
+
| `disabled` | 是否禁用 | Boolean | false |
|
|
61
|
+
| `spacing` | 间距 | Number | 20 |
|
|
62
|
+
|
|
63
|
+
### 2.2 Events 事件
|
|
64
|
+
|
|
65
|
+
| 事件名 | 类型 | 说明 |
|
|
66
|
+
| :--- | :--- | :--- |
|
|
67
|
+
| `change` | 当前分值修改时时触发的事件 | 当前值 |
|
|
68
|
+
|
|
69
|
+
### 2.3 Methods 方法
|
|
70
|
+
|
|
71
|
+
| 方法名 | 参数 | 说明 |
|
|
72
|
+
| :--- | :--- | :--- |
|
|
73
|
+
无
|
|
74
|
+
|
|
75
|
+
### 2.4 Slots 插槽
|
|
76
|
+
|
|
77
|
+
| 插槽名 | 说明 |
|
|
78
|
+
| :--- | :--- |
|
|
79
|
+
无
|
|
80
|
+
|
|
81
|
+
## 3. 例子 (Examples)
|
|
82
|
+
|
|
83
|
+
## 代码演示
|
|
84
|
+
### 基础用法
|
|
85
|
+
``` html
|
|
86
|
+
<fox-rate-item v-model="value">基础</fox-rate-item>
|
|
87
|
+
```
|
|
88
|
+
``` javascript
|
|
89
|
+
import { ref } from 'vue'
|
|
90
|
+
setup() {
|
|
91
|
+
const value = ref(3)
|
|
92
|
+
return { value }
|
|
93
|
+
}
|
|
94
|
+
```
|
|
95
|
+
### 自定义icon
|
|
96
|
+
``` html
|
|
97
|
+
<fox-rate-item checked-icon="heart-fill1" unchecked-icon="heart" v-model="value"></fox-rate-item>
|
|
98
|
+
```
|
|
99
|
+
### 自定义数量
|
|
100
|
+
``` html
|
|
101
|
+
<fox-rate-item :total="6" v-model="value"></fox-rate-item>
|
|
102
|
+
```
|
|
103
|
+
### 自定义颜色
|
|
104
|
+
``` html
|
|
105
|
+
<fox-rate-item active-color="#FFC800" v-model="value"></fox-rate-item>
|
|
106
|
+
```
|
|
107
|
+
### 禁用状态
|
|
108
|
+
``` html
|
|
109
|
+
<fox-rate-item disabled v-model="value"><fox-rate-item>
|
|
110
|
+
```
|
|
111
|
+
### 只读
|
|
112
|
+
``` html
|
|
113
|
+
<fox-rate-item v-model="value" readOnly></fox-rate-item>
|
|
114
|
+
```
|
|
115
|
+
### 绑定事件
|
|
116
|
+
``` html
|
|
117
|
+
<fox-rate-item v-model="value" @change="onChange"></fox-rate-item>
|
|
118
|
+
```
|
|
119
|
+
``` javascript
|
|
120
|
+
import { ref } from 'vue';
|
|
121
|
+
setup() {
|
|
122
|
+
const value = ref(3);
|
|
123
|
+
const onChange = (val)=>{
|
|
124
|
+
Toast.text(val);
|
|
125
|
+
}
|
|
126
|
+
return { value }
|
|
127
|
+
}
|
|
128
|
+
```
|
|
129
|
+
### 自定义尺寸
|
|
130
|
+
``` html
|
|
131
|
+
<fox-rate-item v-model="value" icon-size="35"></fox-rate-item>
|
|
132
|
+
```
|
|
133
|
+
|
|
134
|
+
## 4. 相关组件 (Related Components)
|
|
135
|
+
- **fox-js**: 与 RateItem 配合使用的相关组件
|
|
136
|
+
- **fox-icon**: 与 RateItem 配合使用的相关组件
|
|
137
|
+
|
|
@@ -0,0 +1,87 @@
|
|
|
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: RollingProvider 组件使用规范
|
|
9
|
+
impact: HIGH
|
|
10
|
+
type: capability
|
|
11
|
+
description: 滚动显示配置组件
|
|
12
|
+
tags: [foxui, fox-rolling-provider, FoxRollingProvider]
|
|
13
|
+
version: "4.0.0"
|
|
14
|
+
author: jiangcheng
|
|
15
|
+
related: ["fox-js","fox-page","fox-content","fox-gruop","fox-group"]
|
|
16
|
+
---
|
|
17
|
+
|
|
18
|
+
# RollingProvider 组件使用规范
|
|
19
|
+
|
|
20
|
+
## 1. 核心职责 (Core Responsibility)
|
|
21
|
+
RollingProvider 是 foxui 中用于 **滚动显示配置组件** 的标准组件。
|
|
22
|
+
- **基于**: NutUI `nut-rolling-provider` 进行了二次封装 (若为纯自研组件则填 "自定义开发")
|
|
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
|
+
| `default` | 内容 |
|
|
55
|
+
|
|
56
|
+
## 3. 例子 (Examples)
|
|
57
|
+
|
|
58
|
+
## 代码演示
|
|
59
|
+
### 基础用法
|
|
60
|
+
``` html
|
|
61
|
+
<fox-page>
|
|
62
|
+
<fox-rolling-provider
|
|
63
|
+
:initial-visible-observer-size="3"
|
|
64
|
+
initial-invisible-observer-height="250px"
|
|
65
|
+
load-policy="rolling"
|
|
66
|
+
:root="rollingRootEl"
|
|
67
|
+
root-margin="250px 0px 250px 0px"
|
|
68
|
+
>
|
|
69
|
+
<fox-content ref="rollingRootRef">
|
|
70
|
+
<fox-gruop></fox-group>
|
|
71
|
+
<fox-gruop></fox-group>
|
|
72
|
+
<fox-gruop></fox-group>
|
|
73
|
+
<fox-gruop></fox-group>
|
|
74
|
+
<fox-gruop></fox-group>
|
|
75
|
+
<fox-gruop></fox-group>
|
|
76
|
+
</fox-content>
|
|
77
|
+
</fox-rolling-provider>
|
|
78
|
+
</fox-page>
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
## 4. 相关组件 (Related Components)
|
|
82
|
+
- **fox-js**: 与 RollingProvider 配合使用的相关组件
|
|
83
|
+
- **fox-page**: 与 RollingProvider 配合使用的相关组件
|
|
84
|
+
- **fox-content**: 与 RollingProvider 配合使用的相关组件
|
|
85
|
+
- **fox-gruop**: 与 RollingProvider 配合使用的相关组件
|
|
86
|
+
- **fox-group**: 与 RollingProvider 配合使用的相关组件
|
|
87
|
+
|
|
@@ -0,0 +1,91 @@
|
|
|
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: SearchBar 组件使用规范
|
|
9
|
+
impact: HIGH
|
|
10
|
+
type: capability
|
|
11
|
+
description: 搜索栏
|
|
12
|
+
tags: [foxui, fox-search-bar, FoxSearchBar]
|
|
13
|
+
version: "4.0.0"
|
|
14
|
+
author: jiangcheng
|
|
15
|
+
related: ["fox-js","fox-searchbar","fox-icon"]
|
|
16
|
+
---
|
|
17
|
+
|
|
18
|
+
# SearchBar 组件使用规范
|
|
19
|
+
|
|
20
|
+
## 1. 核心职责 (Core Responsibility)
|
|
21
|
+
SearchBar 是 foxui 中用于 **搜索栏** 的标准组件。
|
|
22
|
+
- **基于**: NutUI `nut-search-bar` 进行了二次封装 (若为纯自研组件则填 "自定义开发")
|
|
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` | 当前输入的值 | Number / String | '' |
|
|
37
|
+
| `label` | 搜索框左侧文本 | String | '' |
|
|
38
|
+
| `shape` | 搜索框形状,可选值为 round | String | square |
|
|
39
|
+
| `max-length` | 最大输入长度 | Number,String | '9999' |
|
|
40
|
+
| `input-type` | 输入框类型 | String | 'text' |
|
|
41
|
+
| `placeholder` | 输入框默认暗纹 | String | '请输入' |
|
|
42
|
+
| `clearable` | 是否展示清除按钮 | Boolean | true |
|
|
43
|
+
| `background` | 输入框外部背景 | String | 'fff' |
|
|
44
|
+
| `input-background` | 输入框内部背景 | String | 'f7f7f7' |
|
|
45
|
+
| `input-background` | 输入框内部背景 | String | 'f7f7f7' |
|
|
46
|
+
| `confirm-type` | 键盘右下角按钮的文字(仅支持小程序),仅在type='text'时生效,可选值 send:发送、search:搜索、next:下一个、go:前往、done:完成 | String | done |
|
|
47
|
+
| `input-background` | 输入框内部背景 | String | 'f7f7f7' |
|
|
48
|
+
| `confirm-type` | 键盘右下角按钮的文字(仅支持小程序),仅在type='text'时生效,可选值 send:发送、search:搜索、next:下一个、go:前往、done:完成 | String | done |
|
|
49
|
+
| `autofocus` | 是否自动聚焦 | boolean | false |
|
|
50
|
+
| `autoblur` | search事件触发后自动失焦 | boolean | true |
|
|
51
|
+
| `disabled` | 是否禁用输入框 | boolean | false |
|
|
52
|
+
| `readonly` | 输入框只读 | boolean | false |
|
|
53
|
+
| `input-align` | 对齐方式,可选center right | string | left |
|
|
54
|
+
|
|
55
|
+
### 2.2 Events 事件
|
|
56
|
+
|
|
57
|
+
| 事件名 | 类型 | 说明 |
|
|
58
|
+
| :--- | :--- | :--- |
|
|
59
|
+
| `change` | 输入内容时触发 | val, event |
|
|
60
|
+
| `focus` | 聚焦时触发 | val, event |
|
|
61
|
+
| `blur` | 失焦时触发 | val, event |
|
|
62
|
+
| `clear` | 点击清空时触发 | val |
|
|
63
|
+
| `search` | 按下 ENTER 键时触发 | val, event |
|
|
64
|
+
| `click-input` | 点击输入区域时触发 | event |
|
|
65
|
+
| `click-left-icon` | 点击左侧图标时触发 | val, event |
|
|
66
|
+
| `click-right-icon` | 点击右侧图标时触发 | val, event |
|
|
67
|
+
|
|
68
|
+
### 2.3 Methods 方法
|
|
69
|
+
|
|
70
|
+
| 方法名 | 参数 | 说明 |
|
|
71
|
+
| :--- | :--- | :--- |
|
|
72
|
+
无
|
|
73
|
+
|
|
74
|
+
### 2.4 Slots 插槽
|
|
75
|
+
|
|
76
|
+
| 插槽名 | 说明 |
|
|
77
|
+
| :--- | :--- |
|
|
78
|
+
| `leftin` | 输入框内 左icon |
|
|
79
|
+
| `leftout` | 输入框外 左icon |
|
|
80
|
+
| `rightin` | 输入框内 右icon |
|
|
81
|
+
| `rightout` | 输入框外 右icon |
|
|
82
|
+
|
|
83
|
+
## 3. 例子 (Examples)
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
## 4. 相关组件 (Related Components)
|
|
88
|
+
- **fox-js**: 与 SearchBar 配合使用的相关组件
|
|
89
|
+
- **fox-searchbar**: 与 SearchBar 配合使用的相关组件
|
|
90
|
+
- **fox-icon**: 与 SearchBar 配合使用的相关组件
|
|
91
|
+
|
|
@@ -0,0 +1,78 @@
|
|
|
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: ShortPassword 组件使用规范
|
|
9
|
+
impact: HIGH
|
|
10
|
+
type: capability
|
|
11
|
+
description: 短密码组件
|
|
12
|
+
tags: [foxui, fox-short-password, FoxShortPassword]
|
|
13
|
+
version: "4.0.0"
|
|
14
|
+
author: jiangcheng
|
|
15
|
+
related: ["fox-js","fox-group","fox-row-item","fox-button","fox-number-keyboard"]
|
|
16
|
+
---
|
|
17
|
+
|
|
18
|
+
# ShortPassword 组件使用规范
|
|
19
|
+
|
|
20
|
+
## 1. 核心职责 (Core Responsibility)
|
|
21
|
+
ShortPassword 是 foxui 中用于 **短密码组件** 的标准组件。
|
|
22
|
+
- **基于**: NutUI `nut-short-password` 进行了二次封装 (若为纯自研组件则填 "自定义开发")
|
|
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
|
+
| `v-model` | 密码初始值 | String |
|
|
37
|
+
| `v-model:visible` | 是否展示短密码框 | Boolean | false |
|
|
38
|
+
| `title` | 标题 | String | 请输入密码 |
|
|
39
|
+
| `desc` | 密码框描述 | String | 您使用了虚拟资产,请进行验证 |
|
|
40
|
+
| `tips` | 提示语 | String | 忘记密码 |
|
|
41
|
+
| `close-on-click-overlay` | 是否点击遮罩关闭 | Boolean | true |
|
|
42
|
+
| `no-button` | 是否隐藏底部按钮 | Boolean | true |
|
|
43
|
+
| `length` | 密码长度,取值为4~6 | String、Number | 6 |
|
|
44
|
+
| `error-msg` | 错误信息提示 | String | '' |
|
|
45
|
+
|
|
46
|
+
### 2.2 Events 事件
|
|
47
|
+
|
|
48
|
+
| 事件名 | 类型 | 说明 |
|
|
49
|
+
| :--- | :--- | :--- |
|
|
50
|
+
| `change` | 输入密码时触发事件 | 当前输入框值value |
|
|
51
|
+
| `ok` | 点击确实时触发事件 | 当前输入框值value |
|
|
52
|
+
| `cancel` | 点击弹层或取消时触发事件 | - |
|
|
53
|
+
| `close` | 点击关闭图标时触发事件 | - |
|
|
54
|
+
| `complete` | 输入完成的回调 | 当前输入框值value |
|
|
55
|
+
|
|
56
|
+
### 2.3 Methods 方法
|
|
57
|
+
|
|
58
|
+
| 方法名 | 参数 | 说明 |
|
|
59
|
+
| :--- | :--- | :--- |
|
|
60
|
+
无
|
|
61
|
+
|
|
62
|
+
### 2.4 Slots 插槽
|
|
63
|
+
|
|
64
|
+
| 插槽名 | 说明 |
|
|
65
|
+
| :--- | :--- |
|
|
66
|
+
无
|
|
67
|
+
|
|
68
|
+
## 3. 例子 (Examples)
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
## 4. 相关组件 (Related Components)
|
|
73
|
+
- **fox-js**: 与 ShortPassword 配合使用的相关组件
|
|
74
|
+
- **fox-group**: 与 ShortPassword 配合使用的相关组件
|
|
75
|
+
- **fox-row-item**: 与 ShortPassword 配合使用的相关组件
|
|
76
|
+
- **fox-button**: 与 ShortPassword 配合使用的相关组件
|
|
77
|
+
- **fox-number-keyboard**: 与 ShortPassword 配合使用的相关组件
|
|
78
|
+
|
|
@@ -0,0 +1,68 @@
|
|
|
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: SideNavBar 组件使用规范
|
|
9
|
+
impact: HIGH
|
|
10
|
+
type: capability
|
|
11
|
+
description: 垂直展示的导航栏,用于内容选择和切换
|
|
12
|
+
tags: [foxui, fox-side-nav-bar, FoxSideNavBar]
|
|
13
|
+
version: "4.0.0"
|
|
14
|
+
author: jiangcheng
|
|
15
|
+
related: ["fox-js","fox-cell","fox-popup","fox-side-navbar","fox-sub-side-navbar","fox-side-navbar-item"]
|
|
16
|
+
---
|
|
17
|
+
|
|
18
|
+
# SideNavBar 组件使用规范
|
|
19
|
+
|
|
20
|
+
## 1. 核心职责 (Core Responsibility)
|
|
21
|
+
SideNavBar 是 foxui 中用于 **垂直展示的导航栏,用于内容选择和切换** 的标准组件。
|
|
22
|
+
- **基于**: NutUI `nut-side-nav-bar` 进行了二次封装 (若为纯自研组件则填 "自定义开发")
|
|
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
|
+
| `title` | 导航标题 | string | 15 |
|
|
37
|
+
| `ikey` | 导航唯一标识 | number \ | string |
|
|
38
|
+
|
|
39
|
+
### 2.2 Events 事件
|
|
40
|
+
|
|
41
|
+
| 事件名 | 类型 | 说明 |
|
|
42
|
+
| :--- | :--- | :--- |
|
|
43
|
+
| `click` | 导航点击 | - |
|
|
44
|
+
|
|
45
|
+
### 2.3 Methods 方法
|
|
46
|
+
|
|
47
|
+
| 方法名 | 参数 | 说明 |
|
|
48
|
+
| :--- | :--- | :--- |
|
|
49
|
+
无
|
|
50
|
+
|
|
51
|
+
### 2.4 Slots 插槽
|
|
52
|
+
|
|
53
|
+
| 插槽名 | 说明 |
|
|
54
|
+
| :--- | :--- |
|
|
55
|
+
无
|
|
56
|
+
|
|
57
|
+
## 3. 例子 (Examples)
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
## 4. 相关组件 (Related Components)
|
|
62
|
+
- **fox-js**: 与 SideNavBar 配合使用的相关组件
|
|
63
|
+
- **fox-cell**: 与 SideNavBar 配合使用的相关组件
|
|
64
|
+
- **fox-popup**: 与 SideNavBar 配合使用的相关组件
|
|
65
|
+
- **fox-side-navbar**: 与 SideNavBar 配合使用的相关组件
|
|
66
|
+
- **fox-sub-side-navbar**: 与 SideNavBar 配合使用的相关组件
|
|
67
|
+
- **fox-side-navbar-item**: 与 SideNavBar 配合使用的相关组件
|
|
68
|
+
|