@varlet/ui 3.2.6 → 3.2.7

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/lib/varlet.cjs.js CHANGED
@@ -23060,6 +23060,10 @@ const props$8 = {
23060
23060
  type: Boolean,
23061
23061
  default: true
23062
23062
  },
23063
+ buttonElevation: {
23064
+ type: [Boolean, String, Number],
23065
+ default: true
23066
+ },
23063
23067
  validateTrigger: {
23064
23068
  type: Array,
23065
23069
  default: () => ["onChange", "onLazyChange"]
@@ -23133,7 +23137,7 @@ function __render__$9(_ctx, _cache) {
23133
23137
  class: vue.normalizeClass(
23134
23138
  _ctx.classes(
23135
23139
  _ctx.n("handle"),
23136
- _ctx.n("$-elevation--2"),
23140
+ _ctx.formatElevation(_ctx.buttonElevation, 2),
23137
23141
  [_ctx.isActive, _ctx.n("handle--active")],
23138
23142
  [_ctx.errorMessage && !_ctx.variant, _ctx.n("handle--error")],
23139
23143
  [_ctx.hovering, _ctx.n("handle--hover")]
@@ -23311,6 +23315,7 @@ const __sfc__$9 = vue.defineComponent({
23311
23315
  formReadonly: form == null ? void 0 : form.readonly,
23312
23316
  n: n$9,
23313
23317
  classes: classes$8,
23318
+ formatElevation,
23314
23319
  multiplySizeUnit,
23315
23320
  switchActive,
23316
23321
  hover
@@ -28493,7 +28498,7 @@ withInstall(stdin_default$1);
28493
28498
  withPropsDefaultsSetter(stdin_default$1, props);
28494
28499
  const _WatermarkComponent = stdin_default$1;
28495
28500
  var stdin_default = stdin_default$1;
28496
- const version = "3.2.6";
28501
+ const version = "3.2.7";
28497
28502
  function install(app) {
28498
28503
  stdin_default$5E.install && app.use(stdin_default$5E);
28499
28504
  stdin_default$5C.install && app.use(stdin_default$5C);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@varlet/ui",
3
- "version": "3.2.6",
3
+ "version": "3.2.7",
4
4
  "description": "A material like components library",
5
5
  "main": "lib/varlet.cjs.js",
6
6
  "module": "es/index.mjs",
@@ -26,7 +26,7 @@
26
26
  ],
27
27
  "author": "haoziqaq <357229046@qq.com>",
28
28
  "license": "MIT",
29
- "homepage": "https://varlet.gitee.io/varlet-ui/",
29
+ "homepage": "https://varletjs.github.io/varlet/",
30
30
  "repository": {
31
31
  "type": "git",
32
32
  "url": "git+https://github.com/varletjs/varlet.git"
@@ -48,9 +48,9 @@
48
48
  "@popperjs/core": "^2.11.6",
49
49
  "dayjs": "^1.10.4",
50
50
  "decimal.js": "^10.2.1",
51
- "@varlet/icons": "3.2.6",
52
- "@varlet/shared": "3.2.6",
53
- "@varlet/use": "3.2.6"
51
+ "@varlet/shared": "3.2.7",
52
+ "@varlet/icons": "3.2.7",
53
+ "@varlet/use": "3.2.7"
54
54
  },
55
55
  "devDependencies": {
56
56
  "@vue/runtime-core": "3.4.21",
@@ -66,9 +66,9 @@
66
66
  "typescript": "^5.1.5",
67
67
  "vue": "3.4.21",
68
68
  "vue-router": "4.2.0",
69
- "@varlet/touch-emulator": "3.2.6",
70
- "@varlet/ui": "3.2.6",
71
- "@varlet/cli": "3.2.6"
69
+ "@varlet/ui": "3.2.7",
70
+ "@varlet/cli": "3.2.7",
71
+ "@varlet/touch-emulator": "3.2.7"
72
72
  },
73
73
  "scripts": {
74
74
  "dev": "varlet-cli dev",
package/types/switch.d.ts CHANGED
@@ -12,6 +12,7 @@ export interface SwitchProps extends BasicAttributes {
12
12
  readonly?: boolean
13
13
  loading?: boolean
14
14
  ripple?: boolean
15
+ buttonElevation?: boolean
15
16
  color?: string
16
17
  loadingColor?: string
17
18
  closeColor?: string