@mijadesign/nut-mcp 1.0.0-alpha.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 (58) hide show
  1. package/README.md +147 -0
  2. package/dist/index.d.ts +2 -0
  3. package/dist/index.js +16 -0
  4. package/dist/services/aliases.service.d.ts +1 -0
  5. package/dist/services/aliases.service.js +19 -0
  6. package/dist/services/doc-parser.service.d.ts +3 -0
  7. package/dist/services/doc-parser.service.js +162 -0
  8. package/dist/services/index.services.d.ts +3 -0
  9. package/dist/services/index.services.js +71 -0
  10. package/dist/services/paths.service.d.ts +5 -0
  11. package/dist/services/paths.service.js +18 -0
  12. package/dist/tools/base.tool.d.ts +8 -0
  13. package/dist/tools/base.tool.js +27 -0
  14. package/dist/tools/get-component-doc.tool.d.ts +12 -0
  15. package/dist/tools/get-component-doc.tool.js +40 -0
  16. package/dist/tools/index.d.ts +4 -0
  17. package/dist/tools/index.js +4 -0
  18. package/dist/tools/list-components.tool.d.ts +8 -0
  19. package/dist/tools/list-components.tool.js +32 -0
  20. package/dist/tools/search-components.tool.d.ts +12 -0
  21. package/dist/tools/search-components.tool.js +61 -0
  22. package/dist/types/index.d.ts +33 -0
  23. package/dist/types/index.js +1 -0
  24. package/docs/docs/aliases.json +59 -0
  25. package/docs/docs/components/base/button/index.md +415 -0
  26. package/docs/docs/components/base/cell/index.md +279 -0
  27. package/docs/docs/components/base/configprovider/index.md +215 -0
  28. package/docs/docs/components/base/image/index.md +282 -0
  29. package/docs/docs/components/base/overlay/index.md +288 -0
  30. package/docs/docs/components/dentry/cascader/index.md +1080 -0
  31. package/docs/docs/components/dentry/checkbox/index.md +842 -0
  32. package/docs/docs/components/dentry/datepicker/index.md +489 -0
  33. package/docs/docs/components/dentry/form/index.md +457 -0
  34. package/docs/docs/components/dentry/input/index.md +257 -0
  35. package/docs/docs/components/dentry/picker/index.md +621 -0
  36. package/docs/docs/components/dentry/radio/index.md +364 -0
  37. package/docs/docs/components/dentry/searchbar/index.md +317 -0
  38. package/docs/docs/components/dentry/selector/index.md +295 -0
  39. package/docs/docs/components/dentry/switch/index.md +300 -0
  40. package/docs/docs/components/dentry/textarea/index.md +231 -0
  41. package/docs/docs/components/dentry/uploader/index.md +745 -0
  42. package/docs/docs/components/exhibition/collapse/index.md +339 -0
  43. package/docs/docs/components/exhibition/swiper/index.md +385 -0
  44. package/docs/docs/components/exhibition/tag/index.md +253 -0
  45. package/docs/docs/components/feedback/dialog/index.md +306 -0
  46. package/docs/docs/components/feedback/drag/index.md +164 -0
  47. package/docs/docs/components/feedback/empty/index.md +211 -0
  48. package/docs/docs/components/feedback/infiniteloading/index.md +397 -0
  49. package/docs/docs/components/feedback/noticebar/index.md +175 -0
  50. package/docs/docs/components/feedback/popup/index.md +563 -0
  51. package/docs/docs/components/feedback/pulltorefresh/index.md +254 -0
  52. package/docs/docs/components/feedback/toast/index.md +355 -0
  53. package/docs/docs/components/layout/divider/index.md +162 -0
  54. package/docs/docs/components/layout/grid/index.md +386 -0
  55. package/docs/docs/components/layout/space/index.md +196 -0
  56. package/docs/docs/components/nav/tabs/index.md +955 -0
  57. package/docs/docs/components-index.json +233 -0
  58. package/package.json +34 -0
@@ -0,0 +1,295 @@
1
+ ---
2
+ order: 22
3
+ demoUrl: 'https://frontend.mishudata.com/mobile/demo/#/dentry/pages/selector/index'
4
+ group:
5
+ title: 数据录入
6
+ order: 5
7
+ ---
8
+
9
+ # Selector 选择组 <Badge>2.0.0</Badge>
10
+
11
+
12
+ 在一组选项中选择一个或多个。
13
+
14
+ ## 引入
15
+
16
+ ```tsx
17
+ import { Selector } from '@mijadesign/mjui-react-taro';
18
+ ```
19
+
20
+ ## 示例代码
21
+
22
+ ### 基础单选用法
23
+ 默认单选
24
+
25
+
26
+ ```tsx
27
+ import { Selector } from '@mijadesign/mjui-react-taro'
28
+ import React from 'react'
29
+
30
+ const Demo1 = () => {
31
+ return (
32
+ <Selector
33
+ selectedIcon={false}
34
+ defaultValue={0}
35
+ options={[
36
+ { label: '未出险', value: 0 },
37
+ { label: '疾病', value: 1 },
38
+ { label: '意外', value: 2 },
39
+ { label: '交通事故', value: 3 },
40
+ ]}
41
+ />
42
+ )
43
+ }
44
+ export default Demo1
45
+
46
+ ```
47
+
48
+ ### 多选用法
49
+
50
+
51
+ ```tsx
52
+ import { Selector } from '@mijadesign/mjui-react-taro'
53
+ import React from 'react'
54
+
55
+ const Demo2 = () => {
56
+ return (
57
+ <Selector
58
+ defaultValue={[0]}
59
+ multiple
60
+ options={[
61
+ { label: '未出险', value: 0 },
62
+ { label: '疾病', value: 1 },
63
+ { label: '意外', value: 2 },
64
+ { label: '交通事故', value: 3 },
65
+ ]}
66
+ />
67
+ )
68
+ }
69
+ export default Demo2
70
+
71
+ ```
72
+
73
+ ### 禁选用法
74
+
75
+
76
+ ```tsx
77
+ import { Selector } from '@mijadesign/mjui-react-taro'
78
+ import React from 'react'
79
+
80
+ const Demo2 = () => {
81
+ return (
82
+ <Selector
83
+ defaultValue={[0]}
84
+ disabled
85
+ options={[
86
+ { label: '疾病', value: 0 },
87
+ { label: '疾病', value: 1 },
88
+ ]}
89
+ />
90
+ )
91
+ }
92
+ export default Demo2
93
+
94
+ ```
95
+
96
+ ### 大小
97
+
98
+ 默认36px
99
+
100
+
101
+ ```tsx
102
+ import { Selector } from '@mijadesign/mjui-react-taro'
103
+ import React from 'react'
104
+
105
+ const Demo4 = () => {
106
+ return (
107
+ <div style={{ display: 'inline-flex', gap: '12px' }}>
108
+ <Selector defaultValue={0} size="large" options={[{ label: '疾病', value: 0 }]} />
109
+ <Selector defaultValue={0} size="default" options={[{ label: '疾病', value: 0 }]} />
110
+ <Selector defaultValue={0} size="small" options={[{ label: '疾病', value: 0 }]} />
111
+ </div>
112
+ )
113
+ }
114
+ export default Demo4
115
+
116
+ ```
117
+
118
+ ### 选择组布局
119
+ 均分时需要传入 `span`属性,固定边距时不需要传span,默认固定边距
120
+ 换行通过 `wrap`属性,默认为true
121
+
122
+
123
+ ```tsx
124
+ import { Selector } from '@mijadesign/mjui-react-taro'
125
+ import React from 'react'
126
+
127
+ const Demo5 = () => {
128
+ return (
129
+ <div>
130
+ <div
131
+ style={{ display: 'inline-flex', flexDirection: 'column', gap: '12px', width: '100%', marginBottom: '40px' }}
132
+ >
133
+ <div style={{ fontWeight: 600 }}>1、均分</div>
134
+ <Selector
135
+ defaultValue={0}
136
+ span={2}
137
+ options={[
138
+ { label: '未出险', value: 0 },
139
+ { label: '疾病', value: 1 },
140
+ ]}
141
+ />
142
+ <Selector
143
+ defaultValue={0}
144
+ span={3}
145
+ options={[
146
+ { label: '未出险', value: 0 },
147
+ { label: '疾病', value: 1 },
148
+ { label: '意外', value: 2 },
149
+ ]}
150
+ />
151
+ <Selector
152
+ defaultValue={0}
153
+ span={4}
154
+ options={[
155
+ { label: '未出险', value: 0 },
156
+ { label: '疾病', value: 1 },
157
+ { label: '意外', value: 2 },
158
+ { label: '交通事故', value: 3 },
159
+ ]}
160
+ />
161
+ </div>
162
+
163
+ <div style={{ display: 'inline-flex', flexDirection: 'column', gap: '12px', width: '100%' }}>
164
+ <div style={{ fontWeight: 600 }}>2、固定边距</div>
165
+ <div style={{ fontWeight: 600, fontSize: '13px', color: '#666' }}>2.1、左右滑动</div>
166
+ <Selector
167
+ defaultValue={0}
168
+ wrap={false}
169
+ options={[
170
+ { label: '未出险', value: 0 },
171
+ { label: '疾病', value: 1 },
172
+ { label: '意外', value: 2 },
173
+ { label: '交通事故', value: 3 },
174
+ { label: '交通事故', value: 4 },
175
+ { label: '交通事故', value: 5 },
176
+ ]}
177
+ />
178
+
179
+ <div style={{ fontWeight: 600, fontSize: '13px', color: '#666' }}>2.2、换行</div>
180
+ <Selector
181
+ defaultValue={0}
182
+ wrap
183
+ options={[
184
+ { label: '未出险', value: 0 },
185
+ { label: '疾病', value: 1 },
186
+ { label: '意外', value: 2 },
187
+ { label: '交通事故', value: 3 },
188
+ { label: '交通事故', value: 4 },
189
+ { label: '交通事故', value: 5 },
190
+ ]}
191
+ />
192
+ </div>
193
+ </div>
194
+ )
195
+ }
196
+ export default Demo5
197
+
198
+ ```
199
+
200
+ ### 支持受控
201
+ `Selector` 的 `onChange` 可获取输入的内容。
202
+
203
+
204
+ ```tsx
205
+ import { Selector, SelectorValue } from '@mijadesign/mjui-react-taro'
206
+ import React, { useState } from 'react'
207
+
208
+ const Demo6 = () => {
209
+ const [value, setValue] = useState<SelectorValue>(0)
210
+ const [mulValue, setMulValue] = useState<SelectorValue>([0, 1])
211
+
212
+ return (
213
+ <div style={{ display: 'inline-flex', flexDirection: 'column', gap: '12px' }}>
214
+ <div style={{ fontWeight: 600 }}>单选</div>
215
+ <Selector
216
+ value={value}
217
+ onChange={(v) => {
218
+ setValue(v)
219
+ }}
220
+ options={[
221
+ { label: '未出险', value: 0 },
222
+ { label: '疾病', value: 1 },
223
+ { label: '意外', value: 2 },
224
+ { label: '交通事故', value: 3 },
225
+ ]}
226
+ />
227
+
228
+ <div style={{ fontWeight: 600 }}>多选</div>
229
+ <Selector
230
+ value={mulValue}
231
+ multiple
232
+ onChange={(v) => {
233
+ setMulValue(v)
234
+ }}
235
+ options={[
236
+ { label: '未出险', value: 0 },
237
+ { label: '疾病', value: 1 },
238
+ { label: '意外', value: 2 },
239
+ { label: '交通事故', value: 3 },
240
+ ]}
241
+ />
242
+ </div>
243
+ )
244
+ }
245
+ export default Demo6
246
+
247
+ ```
248
+
249
+
250
+ ## Selector
251
+
252
+ ### Props
253
+
254
+ | 属性 | 说明 | 类型 | 默认值 |
255
+ | --- | --- | --- | --- |
256
+ | value | 当前输入的值,支持非受控 | `string` \|`number` \| `Array<string \| number>` | `-` |
257
+ | defaultValue | 当前默认值 | `string` \|`number` \| `Array<string \| number>` | `-` |
258
+ | disabled | 是否全部禁止选中 | `boolean` | `false` |
259
+ | multiple | 是否支持多选 | `boolean` | `false` |
260
+ | wrap | 是否需要换行,不换行则滚动展示 | `boolean` | `true` |
261
+ | span | 展示列数 | `number` | `-` |
262
+ | size | 选择器大小 | `SelectorOption[]` | `[]` |
263
+ | options | 可选项 | `small` \|`default` \| `large` | `default` |
264
+ | onChange | 输入内容时触发 | `(value: any, item?: SelectorOption) => void` | `-` |
265
+
266
+
267
+ #### SelectorOption
268
+
269
+ | 属性 | 说明 | 类型 | 默认值 |
270
+ | --- | --- | --- | --- |
271
+ | label | 展示的文本 | `ReactNode` | `-` |
272
+ | value | 选中的值 | `string \| number` | `-` |
273
+ | disabled | 是否全部禁止选中 | `boolean` | `-` |
274
+
275
+ ## 主题定制
276
+
277
+ ### 样式变量
278
+
279
+ 组件提供了下列 CSS 变量,可用于自定义样式,使用方法请参考 [ConfigProvider 组件](#/zh-CN/component/configprovider)。
280
+
281
+ | 名称 | 说明 | 默认值 |
282
+ | --- | --- | --- |
283
+ | \--nutui-selector-gap | 选择组之间的间距 | `$spacing-2` |
284
+ | \--nutui-selector-columns | 选择组列数 | `-` |
285
+ | \--nutui-selector-item-font-size | 字体大小 | `$font-size-2` |
286
+ | \--nutui-selector-item-radius | 选择组圆角大小 | `$radius-1` |
287
+ | \--nutui-selector-item-background-color | 选择项默认背景色 | `$color-background` |
288
+ | \--nutui-selector-item-color | 选择项默认字体颜色 | `$color-title` |
289
+ | \--nutui-selector-item-active-border-color | 选中项的边框颜色 | `$color-primary` |
290
+ | \--nutui-selector-item-active-background-color | 选中项的背景颜色 | `$color-primary-background` |
291
+ | \--nutui-selector-item-active-color | 选中项字体颜色 | `$color-primary` |
292
+ | \--nutui-selector-item-active-icon-size | 选择组icon大小 | `$icon-font-size` |
293
+ | \--nutui-selector-item-small-height | size为small高度 | `32px` |
294
+ | \--nutui-selector-item-default-height| size为default的高度 | `36px` |
295
+ | \--nutui-selector-item-large-height| size为large的高度 | `40px` |
@@ -0,0 +1,300 @@
1
+ ---
2
+ order: 25
3
+ demoUrl: 'https://frontend.mishudata.com/mobile/demo/#/dentry/pages/switch/index'
4
+ group:
5
+ title: 数据录入
6
+ order: 5
7
+ ---
8
+
9
+ # Switch 开关 <Badge>2.0.0</Badge>
10
+
11
+ 用来打开或关闭选项。
12
+
13
+ ## 引入
14
+
15
+ ```tsx
16
+ import { Switch } from '@mijadesign/mjui-react-taro';
17
+ ```
18
+
19
+ ## 示例代码
20
+
21
+ ### 基础用法
22
+
23
+
24
+ ```tsx
25
+ import React from 'react'
26
+ import { Cell, Switch } from '@mijadesign/mjui-react-taro'
27
+
28
+ const Demo1 = () => {
29
+ return (
30
+ <Cell>
31
+ <Switch defaultChecked />
32
+ </Cell>
33
+ )
34
+ }
35
+ export default Demo1
36
+
37
+ ```
38
+
39
+ ### 禁用状态
40
+
41
+
42
+ ```tsx
43
+ import { Space, Switch, Cell } from '@mijadesign/mjui-react-taro'
44
+ import React from 'react'
45
+
46
+ const Demo3 = () => {
47
+ return (
48
+ <Cell>
49
+ <Space>
50
+ <Switch defaultChecked disabled />
51
+ <Switch disabled />
52
+ </Space>
53
+ </Cell>
54
+ )
55
+ }
56
+ export default Demo3
57
+
58
+ ```
59
+
60
+ ### 支持文字
61
+
62
+
63
+ ```tsx
64
+ import React from 'react'
65
+ import { Cell, Space, Switch } from '@mijadesign/mjui-react-taro'
66
+
67
+ const Demo4 = () => {
68
+ return (
69
+ <Cell>
70
+ <Space>
71
+ <Switch defaultChecked activeText="开" inactiveText="关" />
72
+ <Switch defaultChecked activeText="开" inactiveText="关" disabled />
73
+ <Switch activeText="开" inactiveText="关" />
74
+ <Switch activeText="开" inactiveText="关" disabled />
75
+ </Space>
76
+ </Cell>
77
+ )
78
+ }
79
+ export default Demo4
80
+
81
+ ```
82
+
83
+ ### 自定义颜色
84
+
85
+
86
+ ```tsx
87
+ import React from 'react'
88
+ import { Cell, Switch } from '@mijadesign/mjui-react-taro'
89
+
90
+ const Demo7 = () => {
91
+ return (
92
+ <Cell>
93
+ <Switch
94
+ defaultChecked
95
+ style={{
96
+ '--nutui-switch-active-background-color': '#FF4949',
97
+ '--nutui-switch-inactive-line-background-color': '#ebebeb',
98
+ }}
99
+ />
100
+ </Cell>
101
+ )
102
+ }
103
+ export default Demo7
104
+
105
+ ```
106
+
107
+ ### 受控
108
+
109
+
110
+ ```tsx
111
+ import React, { useState } from 'react'
112
+ import { Cell, Switch, Toast } from '@mijadesign/mjui-react-taro'
113
+
114
+ const Demo2 = () => {
115
+ const [checkedAsync, setCheckedAsync] = useState(true)
116
+ const [value, setValue] = useState(false)
117
+ const [showToast, setShowToast] = useState(false)
118
+
119
+ const onChangeAsync = async (value: boolean) => {
120
+ setValue(value)
121
+ setShowToast(true)
122
+ const res = await new Promise((resolve) => {
123
+ setTimeout(() => {
124
+ resolve(true)
125
+ }, 2000)
126
+ })
127
+ if (!res) {
128
+ // 主动抛出一个错误对象,用于中断组件 loading 态
129
+ throw new Error()
130
+ } else {
131
+ setCheckedAsync(value)
132
+ }
133
+ }
134
+ return (
135
+ <>
136
+ <Cell>
137
+ <Switch checked={checkedAsync} onChange={(value) => onChangeAsync(value)} />
138
+ </Cell>
139
+ <Toast
140
+ content={`2秒后异步触发 ${value}`}
141
+ visible={showToast}
142
+ onClose={() => {
143
+ setShowToast(false)
144
+ }}
145
+ />
146
+ </>
147
+ )
148
+ }
149
+ export default Demo2
150
+
151
+ ```
152
+
153
+ ### loading 态受控
154
+
155
+
156
+ ```tsx
157
+ import React, { useState } from 'react'
158
+ import { Cell, Switch, Toast } from '@mijadesign/mjui-react-taro'
159
+
160
+ const Demo8 = () => {
161
+ const [checkedAsync, setCheckedAsync] = useState(true)
162
+ const [value, setValue] = useState(false)
163
+ const [showToast, setShowToast] = useState(false)
164
+ const [externalLoading, setExternalLoading] = useState(false)
165
+ const mockRequest = (): Promise<void> => {
166
+ return new Promise((resolve) => {
167
+ setTimeout(() => {
168
+ resolve()
169
+ }, 2000)
170
+ })
171
+ }
172
+
173
+ const onChangeAsync = async (value: boolean) => {
174
+ setValue(value)
175
+ setShowToast(true)
176
+ await mockRequest()
177
+ setCheckedAsync(value)
178
+ // setExternalLoading(false)
179
+ }
180
+ return (
181
+ <>
182
+ <Cell>
183
+ <Switch
184
+ loading={externalLoading}
185
+ onLoadingChange={async (loading: boolean) => {
186
+ setExternalLoading(loading)
187
+ }}
188
+ checked={checkedAsync}
189
+ onChange={(value) => onChangeAsync(value)}
190
+ />
191
+ </Cell>
192
+ <Toast
193
+ content={`2秒后异步触发 ${value}`}
194
+ visible={showToast}
195
+ onClose={() => {
196
+ setShowToast(false)
197
+ }}
198
+ />
199
+ </>
200
+ )
201
+ }
202
+ export default Demo8
203
+
204
+ ```
205
+
206
+ ### 支持 Icon
207
+
208
+
209
+ ```tsx
210
+ import React from 'react'
211
+ import { Cell, Space, Switch } from '@mijadesign/mjui-react-taro'
212
+ import { Close, Selected } from '@mijadesign/mobile-icons'
213
+
214
+ const Demo5 = () => {
215
+ return (
216
+ <Cell>
217
+ <Space>
218
+ <Switch defaultChecked activeText={<Selected />} inactiveText={<Close />} />
219
+ <Switch defaultChecked activeText={<Selected />} inactiveText={<Close />} disabled />
220
+ <Switch activeText={<Selected />} inactiveText={<Selected />} disabled />
221
+ </Space>
222
+ </Cell>
223
+ )
224
+ }
225
+ export default Demo5
226
+
227
+ ```
228
+
229
+ ### onChange事件
230
+
231
+
232
+ ```tsx
233
+ import React, { useState } from 'react'
234
+ import { Cell, Switch, Toast } from '@mijadesign/mjui-react-taro'
235
+
236
+ const Demo6 = () => {
237
+ const [value, setValue] = useState(false)
238
+ const [showToast, setShowToast] = useState(false)
239
+ const onChange = (value: boolean) => {
240
+ setValue(value)
241
+ setShowToast(true)
242
+ }
243
+ return (
244
+ <>
245
+ <Cell>
246
+ <Switch defaultChecked onChange={(value) => onChange(value)} />
247
+ </Cell>
248
+ <Toast
249
+ content={`触发了onChange事件,开关状态:${value}`}
250
+ visible={showToast}
251
+ onClose={() => {
252
+ setShowToast(false)
253
+ }}
254
+ />
255
+ </>
256
+ )
257
+ }
258
+ export default Demo6
259
+
260
+ ```
261
+
262
+ ## Switch
263
+
264
+ ### Props
265
+
266
+ | 属性 | 说明 | 类型 | 默认值 |
267
+ | --------------- | --------------------------------------------- | ---------------------------------- | -------------- |
268
+ | defaultChecked | 开关状态,非受控 | `boolean` | `false` |
269
+ | checked | 开关状态,受控 | `boolean` | `false` |
270
+ | disabled | 禁用状态 | `boolean` | `false` |
271
+ | activeText | 打开时文字描述 | `ReactNode` | `-` |
272
+ | inactiveText | 关闭时文字描述 | `ReactNode` | `-` |
273
+ | loadingIcon | 控制加载状态的图标,传入空值时禁用 loading 态 | `ReactNode` | `<Loading1 />` |
274
+ | loading | loading 态,受控 | `boolean` | `-` |
275
+ | onLoadingChange | 切换 loading 态时触发 | `onLoadingChange:(value: boolean)` | `-` |
276
+ | onChange | 切换开关时触发 | `onChange:(value: boolean)` | `-` |
277
+
278
+ ## 主题定制
279
+
280
+ ### 样式变量
281
+
282
+ 组件提供了下列 CSS 变量,可用于自定义样式,使用方法请参考 [ConfigProvider 组件](#/zh-CN/component/configprovider)。
283
+
284
+ | 名称 | 说明 | 默认值 |
285
+ | --- | --- | --- |
286
+ | \--nutui-switch-active-background-color | 开关打开状态背景颜色 | `$color-primary` |
287
+ | \--nutui-switch-inactive-background-color | 开关关闭状态背景颜色 | `$color-text-disabled` |
288
+ | \--nutui-switch-active-disabled-background-color | 开关打开状态禁用的背景颜色 | `$color-primary-disabled-special` |
289
+ | \--nutui-switch-inactive-disabled-background-color | 开关关闭状态禁用的背景颜色 | `$color-background` |
290
+ | \--nutui-switch-inactive-line-bg-color | 开关关闭状态内部按钮线条颜色 | `#ffffff` |
291
+ | \--nutui-switch-width | 开关宽度 | `46px` |
292
+ | \--nutui-switch-height | 开关高度 | `28px` |
293
+ | \--nutui-switch-line-height | 开关行高 | `28px` |
294
+ | \--nutui-switch-border-radius | 开关圆角大小 | `$radius-circle` |
295
+ | \--nutui-switch-border-width | 开关边框宽度 | `2px` |
296
+ | \--nutui-switch-inside-border-radius | 开关内部按钮圆角大小 | `$radius-full` |
297
+ | \--nutui-switch-inside-box-shadow | 开关内部按钮阴影 | `0px 2px 6px 0px rgba(0, 0, 0, 0.4)` |
298
+ | \--nutui-switch-label-text-color | 开关内部文字颜色 | `$color-primary-text` |
299
+ | \--nutui-switch-label-font-size | 开关内部文字大小 | `$font-size-s` |
300
+ | \--nutui-switch-inactive-disabled-label-text-color | 开关关闭禁用内部文字颜色 | `$color-text-disabled` |