stellar-ui-plus 1.24.7 → 1.24.8
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/components/ste-app-update/ATTRIBUTES.md +1 -0
- package/components/ste-calendar/ATTRIBUTES.md +2 -0
- package/components/ste-custom-keyboard/ATTRIBUTES.md +34 -0
- package/components/ste-custom-keyboard/ste-custom-keyboard.vue +1 -1
- package/components/ste-upload/ATTRIBUTES.md +1 -0
- package/index.ts +2 -0
- package/package.json +1 -1
- package/types/components.d.ts +2 -0
- package/types/refComponents.d.ts +2 -0
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
| `apiUrl` | 更新API地址 | `string` | `https://zboa.whzb.com/inte-cloud-dev/blade-system/api/inte/client/ver/currentDetail` | - | - |
|
|
7
7
|
| `appType` | APP环境,版本号的最后一位为环境标识 | `string` | `` | - | - |
|
|
8
8
|
| `btnText` | 立即体验按钮文本 | `string` | `立即体验` | - | - |
|
|
9
|
+
| `appVersion` | 当前应用版本 | `string` | `` | - | `1.24.6` |
|
|
9
10
|
|
|
10
11
|
|
|
11
12
|
#### Events
|
|
@@ -10,6 +10,8 @@
|
|
|
10
10
|
| `color` | 主题颜色(选中日期背景、周末文日期颜色和确定按钮) | `string` | `#0090FF` | - | - |
|
|
11
11
|
| `minDate` | 最小可选日期 | `number / string / Date` | `0` | - | - |
|
|
12
12
|
| `maxDate` | 最大可选日期 | `number / string / Date` | `0` | - | - |
|
|
13
|
+
| `viewStart` | 开始渲染日期(月份) | `number / string / Date` | `0` | - | - |
|
|
14
|
+
| `viewEnd` | 最大可选日期(结束渲染月份) | `number / string / Date` | `0` | - | - |
|
|
13
15
|
| `maxCount` | mode=multiple时,最多可选多少个日期 | `number` | `0` | - | - |
|
|
14
16
|
| `formatter` | 日期格式化(默认'YYYY-MM-DD') | `string` | `YYYY-MM-DD` | - | - |
|
|
15
17
|
| `showMark` | 是否显示月份背景色 | `boolean` | `true` | - | - |
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
#### Props
|
|
2
|
+
| 属性名 | 说明 | 类型 | 默认值 | 可选值 | 支持版本 |
|
|
3
|
+
| ----- | ----- | --- | ------- | ------ | -------- |
|
|
4
|
+
| `mode` | 键盘模式 | `string` | `popup` | `popup`:弹出式<br/>`page`:页面式 | - |
|
|
5
|
+
| `type` | 输入框类型 | `string` | `number` | `number`:数字键盘<br/>`idcard`:身份证键盘<br/>`discount`:折扣键盘 | - |
|
|
6
|
+
| `modelValue` | 输入值,支持v-model双向绑定 | `string` | - | - | - |
|
|
7
|
+
| `maxlength` | value最大长度 | `number` | - | - | - |
|
|
8
|
+
| `show` | 是否显示键盘,支持v-model:show绑定,mode='popup'时生效 | `boolean` | `false` | - | - |
|
|
9
|
+
| `rightKeys` | 是否显示右侧功能键 | `boolean` | `true` | - | - |
|
|
10
|
+
| `randomKeys` | 按键是否随机排列 | `boolean` | `false` | - | - |
|
|
11
|
+
| `confirmText` | 右侧确定按钮文本 | `string` | `确定` | - | - |
|
|
12
|
+
| `confirmDisabled` | 右侧确认是否禁用 | `boolean` | `false` | - | - |
|
|
13
|
+
| `showClear` | 是否显示清空按钮 | `boolean` | `true` | - | - |
|
|
14
|
+
| `textColor` | 按键文字颜色 | `string` | `#000000` | - | - |
|
|
15
|
+
| `keyBg` | 按键背景颜色 | `string` | `#fff` | - | - |
|
|
16
|
+
| `background` | 背景颜色 | `string` | `#f9f9f9` | - | - |
|
|
17
|
+
| `textSize` | 按键文字大小 | `number / string` | `48` | - | - |
|
|
18
|
+
| `backspaceSize` | 回退按钮图标大小 | `number / string` | `48` | - | - |
|
|
19
|
+
| `confirmBg` | 确定按钮背景颜色 | `string` | `#0090FF` | - | - |
|
|
20
|
+
| `confirmColor` | 确定按钮文字颜色 | `string` | `#ffffff` | - | - |
|
|
21
|
+
| `undefined` | - | `undefined` | - | - | - |
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
#### Events
|
|
25
|
+
| 事件名 | 说明 | 事件参数 | 支持版本 |
|
|
26
|
+
| ----- | ----- | ------- | -------- |
|
|
27
|
+
| `change` | 输入值value改变时触发 | `value`:输入值 | - |
|
|
28
|
+
| `clear` | 清空按钮点击事件 | - | - |
|
|
29
|
+
| `backspace` | 删除按钮点击事件 | - | - |
|
|
30
|
+
| `confirm` | 确认按钮点击事件 | `value`:输入值 | - |
|
|
31
|
+
| `click` | 点击功能键(确认/删除/清除)之外的键盘触发 | `key`:当前点击的按钮 | - |
|
|
32
|
+
| `beforeinput` | 输入之前触发,功能键之外的键盘点击时为输入 | `key`:当前点击的按钮<br/>`suspend`:开启等待的回调函数<br/>`next`:执行后续操作的回调函数<br/>`stop`:阻止后续执行的回调函数 | - |
|
|
33
|
+
| `open` | 打开弹窗键盘触发 | - | - |
|
|
34
|
+
| `close` | 关闭弹窗键盘触发 | - | - |
|
|
@@ -70,7 +70,7 @@ const { cmpNumbers, cmpRootStyle, dataShow, title, onClose, onChange, onOpen } =
|
|
|
70
70
|
:background="background"
|
|
71
71
|
@change="onChange"
|
|
72
72
|
>
|
|
73
|
-
<discountVue v-if="type === 'discount'" :discounts="discounts" />
|
|
73
|
+
<discountVue v-if="type === 'discount'" :discounts="discounts" @header-click="v => emits('click', v)" />
|
|
74
74
|
</KeyboardVue>
|
|
75
75
|
</block>
|
|
76
76
|
</view>
|
package/index.ts
CHANGED
|
@@ -28,6 +28,8 @@ import steComment from "./components/ste-comment/ste-comment.vue"
|
|
|
28
28
|
export const SteComment = steComment
|
|
29
29
|
import steCouponList from "./components/ste-coupon-list/ste-coupon-list.vue"
|
|
30
30
|
export const SteCouponList = steCouponList
|
|
31
|
+
import steCustomKeyboard from "./components/ste-custom-keyboard/ste-custom-keyboard.vue"
|
|
32
|
+
export const SteCustomKeyboard = steCustomKeyboard
|
|
31
33
|
import steDatePicker from "./components/ste-date-picker/ste-date-picker.vue"
|
|
32
34
|
export const SteDatePicker = steDatePicker
|
|
33
35
|
import steDateUser from "./components/ste-date-user/ste-date-user.vue"
|
package/package.json
CHANGED
package/types/components.d.ts
CHANGED
|
@@ -13,6 +13,7 @@ import steCodeInput from "../components/ste-code-input/ste-code-input.vue"
|
|
|
13
13
|
import steColumnChart from "../components/ste-column-chart/ste-column-chart.vue"
|
|
14
14
|
import steComment from "../components/ste-comment/ste-comment.vue"
|
|
15
15
|
import steCouponList from "../components/ste-coupon-list/ste-coupon-list.vue"
|
|
16
|
+
import steCustomKeyboard from "../components/ste-custom-keyboard/ste-custom-keyboard.vue"
|
|
16
17
|
import steDatePicker from "../components/ste-date-picker/ste-date-picker.vue"
|
|
17
18
|
import steDateUser from "../components/ste-date-user/ste-date-user.vue"
|
|
18
19
|
import steDrag from "../components/ste-drag/ste-drag.vue"
|
|
@@ -102,6 +103,7 @@ import steWatermark from "../components/ste-watermark/ste-watermark.vue"
|
|
|
102
103
|
SteColumnChart: typeof steColumnChart;
|
|
103
104
|
SteComment: typeof steComment;
|
|
104
105
|
SteCouponList: typeof steCouponList;
|
|
106
|
+
SteCustomKeyboard: typeof steCustomKeyboard;
|
|
105
107
|
SteDatePicker: typeof steDatePicker;
|
|
106
108
|
SteDateUser: typeof steDateUser;
|
|
107
109
|
SteDrag: typeof steDrag;
|
package/types/refComponents.d.ts
CHANGED
|
@@ -13,6 +13,7 @@ import steCodeInput from "../components/ste-code-input/ste-code-input.vue"
|
|
|
13
13
|
import steColumnChart from "../components/ste-column-chart/ste-column-chart.vue"
|
|
14
14
|
import steComment from "../components/ste-comment/ste-comment.vue"
|
|
15
15
|
import steCouponList from "../components/ste-coupon-list/ste-coupon-list.vue"
|
|
16
|
+
import steCustomKeyboard from "../components/ste-custom-keyboard/ste-custom-keyboard.vue"
|
|
16
17
|
import steDatePicker from "../components/ste-date-picker/ste-date-picker.vue"
|
|
17
18
|
import steDateUser from "../components/ste-date-user/ste-date-user.vue"
|
|
18
19
|
import steDrag from "../components/ste-drag/ste-drag.vue"
|
|
@@ -97,6 +98,7 @@ export type RefCodeInput = InstanceType<typeof steCodeInput>
|
|
|
97
98
|
export type RefColumnChart = InstanceType<typeof steColumnChart>
|
|
98
99
|
export type RefComment = InstanceType<typeof steComment>
|
|
99
100
|
export type RefCouponList = InstanceType<typeof steCouponList>
|
|
101
|
+
export type RefCustomKeyboard = InstanceType<typeof steCustomKeyboard>
|
|
100
102
|
export type RefDatePicker = InstanceType<typeof steDatePicker>
|
|
101
103
|
export type RefDateUser = InstanceType<typeof steDateUser>
|
|
102
104
|
export type RefDrag = InstanceType<typeof steDrag>
|