@tplc/wot 0.1.54 → 0.1.55
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/CHANGELOG.md +2 -0
- package/components/wd-input-number/index.scss +8 -0
- package/components/wd-input-number/types.ts +4 -0
- package/components/wd-input-number/wd-input-number.vue +9 -3
- package/package.json +1 -1
- package/types/components/wd-input-number/types.d.ts +7 -0
- package/types/components/wd-input-number/wd-input-number.vue.d.ts +127 -107
- package/types/components/wd-navbar/wd-navbar.vue.d.ts +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
### [0.1.55](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.3.8...v0.1.55) (2025-01-20)
|
|
6
|
+
|
|
5
7
|
### [0.1.53](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.2.75...v0.1.53) (2025-01-06)
|
|
6
8
|
|
|
7
9
|
|
|
@@ -1,13 +1,18 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<view
|
|
3
|
-
:class="`wd-input-number ${customClass} ${disabled ? 'is-disabled' : ''} ${withoutInput ? 'is-without-input' : ''}`"
|
|
3
|
+
:class="`wd-input-number ${!bordered ? 'is-no-border' : ''} ${customClass} ${disabled ? 'is-disabled' : ''} ${withoutInput ? 'is-without-input' : ''}`"
|
|
4
4
|
:style="customStyle"
|
|
5
5
|
>
|
|
6
6
|
<view
|
|
7
7
|
:class="`wd-input-number__action ${minDisabled || disableMinus ? 'is-disabled' : ''}`"
|
|
8
8
|
@click="sub"
|
|
9
9
|
>
|
|
10
|
-
<
|
|
10
|
+
<slot name="decrease" />
|
|
11
|
+
<wd-icon
|
|
12
|
+
name="decrease"
|
|
13
|
+
custom-class="wd-input-number__action-icon"
|
|
14
|
+
v-if="!$slots.decrease"
|
|
15
|
+
></wd-icon>
|
|
11
16
|
</view>
|
|
12
17
|
<view v-if="!withoutInput" class="wd-input-number__inner" @click.stop="">
|
|
13
18
|
<input
|
|
@@ -27,7 +32,8 @@
|
|
|
27
32
|
:class="`wd-input-number__action ${maxDisabled || disablePlus ? 'is-disabled' : ''}`"
|
|
28
33
|
@click="add"
|
|
29
34
|
>
|
|
30
|
-
<
|
|
35
|
+
<slot name="increase" />
|
|
36
|
+
<wd-icon name="add" custom-class="wd-input-number__action-icon" v-if="!$slots.increase" />
|
|
31
37
|
</view>
|
|
32
38
|
</view>
|
|
33
39
|
</template>
|
package/package.json
CHANGED
|
@@ -97,6 +97,13 @@ export declare const inputNumberProps: {
|
|
|
97
97
|
type: import('vue').PropType<string>
|
|
98
98
|
default: string
|
|
99
99
|
}
|
|
100
|
+
/**
|
|
101
|
+
* 是否显示边框
|
|
102
|
+
*/
|
|
103
|
+
bordered: {
|
|
104
|
+
type: BooleanConstructor
|
|
105
|
+
default: boolean
|
|
106
|
+
}
|
|
100
107
|
customStyle: {
|
|
101
108
|
type: import('vue').PropType<string>
|
|
102
109
|
default: string
|
|
@@ -1,86 +1,6 @@
|
|
|
1
|
-
declare const _default:
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
type: (NumberConstructor | StringConstructor)[]
|
|
5
|
-
required: true
|
|
6
|
-
}
|
|
7
|
-
min: {
|
|
8
|
-
type: NumberConstructor
|
|
9
|
-
default: number
|
|
10
|
-
}
|
|
11
|
-
max: {
|
|
12
|
-
type: NumberConstructor
|
|
13
|
-
default: number
|
|
14
|
-
}
|
|
15
|
-
step: {
|
|
16
|
-
type: NumberConstructor
|
|
17
|
-
default: number
|
|
18
|
-
}
|
|
19
|
-
stepStrictly: {
|
|
20
|
-
type: BooleanConstructor
|
|
21
|
-
default: boolean
|
|
22
|
-
}
|
|
23
|
-
precision: {
|
|
24
|
-
type: NumberConstructor
|
|
25
|
-
default: number
|
|
26
|
-
}
|
|
27
|
-
disabled: {
|
|
28
|
-
type: BooleanConstructor
|
|
29
|
-
default: boolean
|
|
30
|
-
}
|
|
31
|
-
disableInput: {
|
|
32
|
-
type: BooleanConstructor
|
|
33
|
-
default: boolean
|
|
34
|
-
}
|
|
35
|
-
disableMinus: {
|
|
36
|
-
type: BooleanConstructor
|
|
37
|
-
default: boolean
|
|
38
|
-
}
|
|
39
|
-
disablePlus: {
|
|
40
|
-
type: BooleanConstructor
|
|
41
|
-
default: boolean
|
|
42
|
-
}
|
|
43
|
-
withoutInput: {
|
|
44
|
-
type: BooleanConstructor
|
|
45
|
-
default: boolean
|
|
46
|
-
}
|
|
47
|
-
inputWidth: {
|
|
48
|
-
type: (NumberConstructor | StringConstructor)[]
|
|
49
|
-
default: number
|
|
50
|
-
}
|
|
51
|
-
allowNull: {
|
|
52
|
-
type: BooleanConstructor
|
|
53
|
-
default: boolean
|
|
54
|
-
}
|
|
55
|
-
placeholder: {
|
|
56
|
-
type: import('vue').PropType<string>
|
|
57
|
-
default: string
|
|
58
|
-
}
|
|
59
|
-
customStyle: {
|
|
60
|
-
type: import('vue').PropType<string>
|
|
61
|
-
default: string
|
|
62
|
-
}
|
|
63
|
-
customClass: {
|
|
64
|
-
type: import('vue').PropType<string>
|
|
65
|
-
default: string
|
|
66
|
-
}
|
|
67
|
-
},
|
|
68
|
-
{},
|
|
69
|
-
unknown,
|
|
70
|
-
{},
|
|
71
|
-
{},
|
|
72
|
-
import('vue').ComponentOptionsMixin,
|
|
73
|
-
import('vue').ComponentOptionsMixin,
|
|
74
|
-
{
|
|
75
|
-
'update:modelValue': (...args: any[]) => void
|
|
76
|
-
change: (...args: any[]) => void
|
|
77
|
-
focus: (...args: any[]) => void
|
|
78
|
-
blur: (...args: any[]) => void
|
|
79
|
-
},
|
|
80
|
-
string,
|
|
81
|
-
import('vue').PublicProps,
|
|
82
|
-
Readonly<
|
|
83
|
-
import('vue').ExtractPropTypes<{
|
|
1
|
+
declare const _default: __VLS_WithTemplateSlots<
|
|
2
|
+
import('vue').DefineComponent<
|
|
3
|
+
{
|
|
84
4
|
modelValue: {
|
|
85
5
|
type: (NumberConstructor | StringConstructor)[]
|
|
86
6
|
required: true
|
|
@@ -137,6 +57,10 @@ declare const _default: import('vue').DefineComponent<
|
|
|
137
57
|
type: import('vue').PropType<string>
|
|
138
58
|
default: string
|
|
139
59
|
}
|
|
60
|
+
bordered: {
|
|
61
|
+
type: BooleanConstructor
|
|
62
|
+
default: boolean
|
|
63
|
+
}
|
|
140
64
|
customStyle: {
|
|
141
65
|
type: import('vue').PropType<string>
|
|
142
66
|
default: string
|
|
@@ -145,30 +69,126 @@ declare const _default: import('vue').DefineComponent<
|
|
|
145
69
|
type: import('vue').PropType<string>
|
|
146
70
|
default: string
|
|
147
71
|
}
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
72
|
+
},
|
|
73
|
+
{},
|
|
74
|
+
unknown,
|
|
75
|
+
{},
|
|
76
|
+
{},
|
|
77
|
+
import('vue').ComponentOptionsMixin,
|
|
78
|
+
import('vue').ComponentOptionsMixin,
|
|
79
|
+
{
|
|
80
|
+
'update:modelValue': (...args: any[]) => void
|
|
81
|
+
change: (...args: any[]) => void
|
|
82
|
+
focus: (...args: any[]) => void
|
|
83
|
+
blur: (...args: any[]) => void
|
|
84
|
+
},
|
|
85
|
+
string,
|
|
86
|
+
import('vue').PublicProps,
|
|
87
|
+
Readonly<
|
|
88
|
+
import('vue').ExtractPropTypes<{
|
|
89
|
+
modelValue: {
|
|
90
|
+
type: (NumberConstructor | StringConstructor)[]
|
|
91
|
+
required: true
|
|
92
|
+
}
|
|
93
|
+
min: {
|
|
94
|
+
type: NumberConstructor
|
|
95
|
+
default: number
|
|
96
|
+
}
|
|
97
|
+
max: {
|
|
98
|
+
type: NumberConstructor
|
|
99
|
+
default: number
|
|
100
|
+
}
|
|
101
|
+
step: {
|
|
102
|
+
type: NumberConstructor
|
|
103
|
+
default: number
|
|
104
|
+
}
|
|
105
|
+
stepStrictly: {
|
|
106
|
+
type: BooleanConstructor
|
|
107
|
+
default: boolean
|
|
108
|
+
}
|
|
109
|
+
precision: {
|
|
110
|
+
type: NumberConstructor
|
|
111
|
+
default: number
|
|
112
|
+
}
|
|
113
|
+
disabled: {
|
|
114
|
+
type: BooleanConstructor
|
|
115
|
+
default: boolean
|
|
116
|
+
}
|
|
117
|
+
disableInput: {
|
|
118
|
+
type: BooleanConstructor
|
|
119
|
+
default: boolean
|
|
120
|
+
}
|
|
121
|
+
disableMinus: {
|
|
122
|
+
type: BooleanConstructor
|
|
123
|
+
default: boolean
|
|
124
|
+
}
|
|
125
|
+
disablePlus: {
|
|
126
|
+
type: BooleanConstructor
|
|
127
|
+
default: boolean
|
|
128
|
+
}
|
|
129
|
+
withoutInput: {
|
|
130
|
+
type: BooleanConstructor
|
|
131
|
+
default: boolean
|
|
132
|
+
}
|
|
133
|
+
inputWidth: {
|
|
134
|
+
type: (NumberConstructor | StringConstructor)[]
|
|
135
|
+
default: number
|
|
136
|
+
}
|
|
137
|
+
allowNull: {
|
|
138
|
+
type: BooleanConstructor
|
|
139
|
+
default: boolean
|
|
140
|
+
}
|
|
141
|
+
placeholder: {
|
|
142
|
+
type: import('vue').PropType<string>
|
|
143
|
+
default: string
|
|
144
|
+
}
|
|
145
|
+
bordered: {
|
|
146
|
+
type: BooleanConstructor
|
|
147
|
+
default: boolean
|
|
148
|
+
}
|
|
149
|
+
customStyle: {
|
|
150
|
+
type: import('vue').PropType<string>
|
|
151
|
+
default: string
|
|
152
|
+
}
|
|
153
|
+
customClass: {
|
|
154
|
+
type: import('vue').PropType<string>
|
|
155
|
+
default: string
|
|
156
|
+
}
|
|
157
|
+
}>
|
|
158
|
+
> & {
|
|
159
|
+
'onUpdate:modelValue'?: ((...args: any[]) => any) | undefined
|
|
160
|
+
onFocus?: ((...args: any[]) => any) | undefined
|
|
161
|
+
onBlur?: ((...args: any[]) => any) | undefined
|
|
162
|
+
onChange?: ((...args: any[]) => any) | undefined
|
|
163
|
+
},
|
|
164
|
+
{
|
|
165
|
+
customStyle: string
|
|
166
|
+
customClass: string
|
|
167
|
+
max: number
|
|
168
|
+
disabled: boolean
|
|
169
|
+
placeholder: string
|
|
170
|
+
min: number
|
|
171
|
+
step: number
|
|
172
|
+
stepStrictly: boolean
|
|
173
|
+
precision: number
|
|
174
|
+
disableInput: boolean
|
|
175
|
+
disableMinus: boolean
|
|
176
|
+
disablePlus: boolean
|
|
177
|
+
withoutInput: boolean
|
|
178
|
+
inputWidth: string | number
|
|
179
|
+
allowNull: boolean
|
|
180
|
+
bordered: boolean
|
|
181
|
+
},
|
|
182
|
+
{}
|
|
183
|
+
>,
|
|
155
184
|
{
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
disabled: boolean
|
|
160
|
-
placeholder: string
|
|
161
|
-
min: number
|
|
162
|
-
step: number
|
|
163
|
-
stepStrictly: boolean
|
|
164
|
-
precision: number
|
|
165
|
-
disableInput: boolean
|
|
166
|
-
disableMinus: boolean
|
|
167
|
-
disablePlus: boolean
|
|
168
|
-
withoutInput: boolean
|
|
169
|
-
inputWidth: string | number
|
|
170
|
-
allowNull: boolean
|
|
171
|
-
},
|
|
172
|
-
{}
|
|
185
|
+
decrease?(_: {}): any
|
|
186
|
+
increase?(_: {}): any
|
|
187
|
+
}
|
|
173
188
|
>
|
|
174
189
|
export default _default
|
|
190
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
191
|
+
new (): {
|
|
192
|
+
$slots: S
|
|
193
|
+
}
|
|
194
|
+
}
|
|
@@ -113,8 +113,8 @@ declare const _default: __VLS_WithTemplateSlots<
|
|
|
113
113
|
customClass: string
|
|
114
114
|
fixed: boolean
|
|
115
115
|
placeholder: boolean
|
|
116
|
-
leftArrow: boolean
|
|
117
116
|
bordered: boolean
|
|
117
|
+
leftArrow: boolean
|
|
118
118
|
safeAreaInsetTop: boolean
|
|
119
119
|
leftDisabled: boolean
|
|
120
120
|
rightDisabled: boolean
|