stellar-ui-v2 1.40.3 → 1.40.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.
|
@@ -257,6 +257,13 @@ export default {
|
|
|
257
257
|
| `click` | 点击任意区域触发 | `value`: 输入框的值 | - |
|
|
258
258
|
| `selectSuggestion`| 点击搜索建议触发 | `value`: 对应的建议对象 | - |
|
|
259
259
|
|
|
260
|
+
#### 组件插槽(Slots)
|
|
261
|
+
|
|
262
|
+
|插槽名 |说明 |插槽参数 |支持版本 |
|
|
263
|
+
|--- |--- |--- |--- |
|
|
264
|
+
|`prefix` |输入框前插槽 |- |- |
|
|
265
|
+
|`suffix` |输入框后插槽 |- |- |
|
|
266
|
+
|
|
260
267
|
---$
|
|
261
268
|
{{xuyajun}}
|
|
262
269
|
|
|
@@ -22,7 +22,14 @@
|
|
|
22
22
|
background="transparent"
|
|
23
23
|
:cursor="cursorNumber"
|
|
24
24
|
:allowSpace="allowSpace"
|
|
25
|
-
|
|
25
|
+
>
|
|
26
|
+
<template #prefix>
|
|
27
|
+
<slot name="prefix"></slot>
|
|
28
|
+
</template>
|
|
29
|
+
<template #suffix>
|
|
30
|
+
<slot name="suffix"></slot>
|
|
31
|
+
</template>
|
|
32
|
+
</ste-input>
|
|
26
33
|
<swiper
|
|
27
34
|
v-if="cmpShowSwitch"
|
|
28
35
|
class="placeholder-list"
|
|
@@ -154,11 +154,11 @@ export default {
|
|
|
154
154
|
|
|
155
155
|
#### 组件插槽(Slots)
|
|
156
156
|
|
|
157
|
-
|插槽名
|
|
158
|
-
|---
|
|
159
|
-
|`button`
|
|
160
|
-
|`
|
|
161
|
-
|`
|
|
157
|
+
|插槽名 |说明 |插槽参数 |支持版本 |
|
|
158
|
+
|--- |--- |--- |--- |
|
|
159
|
+
|`button` |自定义滑块按钮 |- |- |
|
|
160
|
+
|`leftButton` |自定义左侧滑块按钮(范围选择下) |- |- |
|
|
161
|
+
|`rightButton` |自定义右侧滑块按钮(范围选择下) |- |- |
|
|
162
162
|
|
|
163
163
|
|
|
164
164
|
---$
|