@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.
@@ -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);
@@ -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',
@@ -4,5 +4,5 @@ Overlay.install = function (app) {
4
4
  app.component(Overlay.name, Overlay);
5
5
  };
6
6
 
7
- export var _PopupComponent = Overlay;
7
+ export var _OverlayComponent = Overlay;
8
8
  export default Overlay;
@@ -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'