@varlet/ui 1.26.3 → 1.26.4

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.
@@ -7,7 +7,7 @@ import { props } from './props';
7
7
  import { toNumber } from '../utils/shared';
8
8
  var DISTANCE_OFFSET = 12;
9
9
  var EVENT_DELAY = 200;
10
- var TAP_DELAY = 250;
10
+ var TAP_DELAY = 350;
11
11
  var ANIMATION_DURATION = 200;
12
12
  import { renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, createElementVNode as _createElementVNode, normalizeStyle as _normalizeStyle, resolveComponent as _resolveComponent, withCtx as _withCtx, createBlock as _createBlock, renderSlot as _renderSlot, toDisplayString as _toDisplayString, createCommentVNode as _createCommentVNode, mergeProps as _mergeProps, createVNode as _createVNode, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from "vue";
13
13
 
package/es/rate/Rate.js CHANGED
@@ -33,13 +33,14 @@ export function render(_ctx, _cache) {
33
33
  onClick: $event => _ctx.handleClick(val, $event)
34
34
  }, [_createVNode(_component_var_icon, {
35
35
  transition: 0,
36
+ namespace: _ctx.namespace,
36
37
  name: _ctx.getIconName(val),
37
38
  style: _normalizeStyle({
38
39
  fontSize: _ctx.toSizeUnit(_ctx.size)
39
40
  })
40
41
  }, null, 8
41
42
  /* PROPS */
42
- , ["name", "style"])], 14
43
+ , ["namespace", "name", "style"])], 14
43
44
  /* CLASS, STYLE, PROPS */
44
45
  , _hoisted_3)), [[_directive_ripple, {
45
46
  disabled: _ctx.formReadonly || _ctx.readonly || _ctx.formDisabled || _ctx.disabled || !_ctx.ripple
package/es/rate/props.js CHANGED
@@ -29,6 +29,9 @@ export var props = {
29
29
  type: [String, Number],
30
30
  default: '2'
31
31
  },
32
+ namespace: {
33
+ type: String
34
+ },
32
35
  half: {
33
36
  type: Boolean,
34
37
  default: false
package/es/varlet.esm.js CHANGED
@@ -9047,7 +9047,7 @@ var props$t = _extends$3({
9047
9047
  ]));
9048
9048
  var DISTANCE_OFFSET = 12;
9049
9049
  var EVENT_DELAY = 200;
9050
- var TAP_DELAY = 250;
9050
+ var TAP_DELAY = 350;
9051
9051
  var ANIMATION_DURATION = 200;
9052
9052
  var _hoisted_1$k = ["src", "alt"];
9053
9053
  var _hoisted_2$f = {
@@ -12257,6 +12257,9 @@ var props$f = {
12257
12257
  type: [String, Number],
12258
12258
  default: "2"
12259
12259
  },
12260
+ namespace: {
12261
+ type: String
12262
+ },
12260
12263
  half: {
12261
12264
  type: Boolean,
12262
12265
  default: false
@@ -12309,11 +12312,12 @@ function render$h(_ctx, _cache) {
12309
12312
  onClick: ($event) => _ctx.handleClick(val, $event)
12310
12313
  }, [createVNode(_component_var_icon, {
12311
12314
  transition: 0,
12315
+ namespace: _ctx.namespace,
12312
12316
  name: _ctx.getIconName(val),
12313
12317
  style: normalizeStyle({
12314
12318
  fontSize: _ctx.toSizeUnit(_ctx.size)
12315
12319
  })
12316
- }, null, 8, ["name", "style"])], 14, _hoisted_3$6)), [[_directive_ripple, {
12320
+ }, null, 8, ["namespace", "name", "style"])], 14, _hoisted_3$6)), [[_directive_ripple, {
12317
12321
  disabled: _ctx.formReadonly || _ctx.readonly || _ctx.formDisabled || _ctx.disabled || !_ctx.ripple
12318
12322
  }]]);
12319
12323
  }), 128))]), createVNode(_component_var_form_details, {
@@ -1203,6 +1203,10 @@
1203
1203
  "type": "string",
1204
1204
  "description": "半选时图标的样式,只有在 `half` 为 `true` 时才有效 默认值:star-half-full"
1205
1205
  },
1206
+ "var-rate/namespace": {
1207
+ "type": "string",
1208
+ "description": "图标的命名空间, 可扩展自定义图标库 默认值:var-icon"
1209
+ },
1206
1210
  "var-rate/disabled": {
1207
1211
  "type": "boolean",
1208
1212
  "description": "是否禁止评分 默认值:false"
@@ -455,6 +455,7 @@
455
455
  "gap",
456
456
  "half",
457
457
  "half-icon",
458
+ "namespace",
458
459
  "disabled",
459
460
  "disabled-color",
460
461
  "readonly",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://raw.githubusercontent.com/JetBrains/web-types/master/schema/web-types.json",
3
3
  "framework": "vue",
4
- "version": "1.26.2",
4
+ "version": "1.26.3",
5
5
  "name": "VARLET",
6
6
  "contributions": {
7
7
  "html": {
@@ -3583,6 +3583,15 @@
3583
3583
  "kind": "expression"
3584
3584
  }
3585
3585
  },
3586
+ {
3587
+ "name": "namespace",
3588
+ "description": "图标的命名空间, 可扩展自定义图标库",
3589
+ "default": "var-icon",
3590
+ "value": {
3591
+ "type": "string",
3592
+ "kind": "expression"
3593
+ }
3594
+ },
3586
3595
  {
3587
3596
  "name": "disabled",
3588
3597
  "description": "是否禁止评分",
@@ -22,7 +22,7 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
22
22
 
23
23
  var DISTANCE_OFFSET = 12;
24
24
  var EVENT_DELAY = 200;
25
- var TAP_DELAY = 250;
25
+ var TAP_DELAY = 350;
26
26
  var ANIMATION_DURATION = 200;
27
27
 
28
28
  var _withScopeId = n => ((0, _vue.pushScopeId)(""), n = n(), (0, _vue.popScopeId)(), n);
package/lib/rate/Rate.js CHANGED
@@ -49,13 +49,14 @@ function render(_ctx, _cache) {
49
49
  onClick: $event => _ctx.handleClick(val, $event)
50
50
  }, [(0, _vue.createVNode)(_component_var_icon, {
51
51
  transition: 0,
52
+ namespace: _ctx.namespace,
52
53
  name: _ctx.getIconName(val),
53
54
  style: (0, _vue.normalizeStyle)({
54
55
  fontSize: _ctx.toSizeUnit(_ctx.size)
55
56
  })
56
57
  }, null, 8
57
58
  /* PROPS */
58
- , ["name", "style"])], 14
59
+ , ["namespace", "name", "style"])], 14
59
60
  /* CLASS, STYLE, PROPS */
60
61
  , _hoisted_3)), [[_directive_ripple, {
61
62
  disabled: _ctx.formReadonly || _ctx.readonly || _ctx.formDisabled || _ctx.disabled || !_ctx.ripple
package/lib/rate/props.js CHANGED
@@ -33,6 +33,9 @@ var props = {
33
33
  type: [String, Number],
34
34
  default: '2'
35
35
  },
36
+ namespace: {
37
+ type: String
38
+ },
36
39
  half: {
37
40
  type: Boolean,
38
41
  default: false
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@varlet/ui",
3
- "version": "1.26.3",
3
+ "version": "1.26.4",
4
4
  "description": "A material like components library",
5
5
  "module": "es/index.js",
6
6
  "main": "lib/index.js",
@@ -39,13 +39,13 @@
39
39
  },
40
40
  "gitHead": "ee9c3866bedad96c86365b0f9888a3a6bb781b1f",
41
41
  "dependencies": {
42
- "@varlet/icons": "1.26.3",
42
+ "@varlet/icons": "1.26.4",
43
43
  "dayjs": "^1.10.4",
44
44
  "decimal.js": "^10.2.1"
45
45
  },
46
46
  "devDependencies": {
47
- "@varlet/cli": "1.26.3",
48
- "@varlet/touch-emulator": "1.26.3",
47
+ "@varlet/cli": "1.26.4",
48
+ "@varlet/touch-emulator": "1.26.4",
49
49
  "@vue/test-utils": "2.0.0-rc.6",
50
50
  "@vue/runtime-core": "3.2.25",
51
51
  "typescript": "^4.4.4",
package/types/rate.d.ts CHANGED
@@ -9,6 +9,7 @@ export interface RateProps {
9
9
  disabledColor?: string
10
10
  emptyIcon?: string
11
11
  halfIcon?: string
12
+ namespace?: string
12
13
  size?: string | number
13
14
  gap?: string | number
14
15
  half?: boolean