@varlet/ui 2.6.0 → 2.6.1-alpha.1673416848706
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/es/button/Button.js +2 -1
- package/es/button/props.js +9 -0
- package/es/overlay/index.js +1 -1
- package/es/snackbar/style/index.js +1 -1
- package/es/varlet.esm.js +968 -959
- package/highlight/attributes.json +4 -0
- package/highlight/tags.json +1 -0
- package/highlight/web-types.json +10 -1
- package/lib/button/Button.js +2 -1
- package/lib/button/props.js +9 -0
- package/lib/overlay/index.js +3 -3
- package/package.json +5 -5
- package/types/button.d.ts +2 -1
- package/umd/varlet.js +6 -6
package/es/button/Button.js
CHANGED
|
@@ -12,7 +12,7 @@ import { resolveComponent as _resolveComponent, normalizeClass as _normalizeClas
|
|
|
12
12
|
|
|
13
13
|
var _withScopeId = n => (_pushScopeId(""), n = n(), _popScopeId(), n);
|
|
14
14
|
|
|
15
|
-
var _hoisted_1 = ["disabled"];
|
|
15
|
+
var _hoisted_1 = ["type", "disabled"];
|
|
16
16
|
export function render(_ctx, _cache) {
|
|
17
17
|
var _component_var_loading = _resolveComponent("var-loading");
|
|
18
18
|
|
|
@@ -24,6 +24,7 @@ export function render(_ctx, _cache) {
|
|
|
24
24
|
color: _ctx.textColor,
|
|
25
25
|
background: _ctx.color
|
|
26
26
|
}),
|
|
27
|
+
type: _ctx.nativeType,
|
|
27
28
|
disabled: _ctx.disabled,
|
|
28
29
|
onClick: _cache[0] || (_cache[0] = function () {
|
|
29
30
|
return _ctx.handleClick && _ctx.handleClick(...arguments);
|
package/es/button/props.js
CHANGED
|
@@ -11,12 +11,21 @@ function sizeValidator(size) {
|
|
|
11
11
|
return ['normal', 'mini', 'small', 'large'].includes(size);
|
|
12
12
|
}
|
|
13
13
|
|
|
14
|
+
function nativeTypeValidator(nativeType) {
|
|
15
|
+
return ['button', 'reset', 'submit'].includes(nativeType);
|
|
16
|
+
}
|
|
17
|
+
|
|
14
18
|
export var props = {
|
|
15
19
|
type: {
|
|
16
20
|
type: String,
|
|
17
21
|
default: 'default',
|
|
18
22
|
validator: typeValidator
|
|
19
23
|
},
|
|
24
|
+
nativeType: {
|
|
25
|
+
type: String,
|
|
26
|
+
default: 'button',
|
|
27
|
+
validator: nativeTypeValidator
|
|
28
|
+
},
|
|
20
29
|
size: {
|
|
21
30
|
type: String,
|
|
22
31
|
default: 'normal',
|
package/es/overlay/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import '../../styles/common.css'
|
|
2
|
-
import '../SnackbarSfc.css'
|
|
3
2
|
import '../../styles/elevation.css'
|
|
4
3
|
import '../../loading/loading.css'
|
|
5
4
|
import '../../button/button.css'
|
|
6
5
|
import '../../icon/icon.css'
|
|
7
6
|
import '../snackbar.css'
|
|
8
7
|
import '../coreSfc.css'
|
|
8
|
+
import '../SnackbarSfc.css'
|