@varlet/ui 2.13.4 → 2.13.5-alpha.1690475177454
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/icon/icon.css +1 -1
- package/es/index.bundle.mjs +1 -1
- package/es/index.mjs +1 -1
- package/es/menu/props.mjs +8 -0
- package/es/menu/usePopover.mjs +15 -11
- package/es/progress/Progress.mjs +6 -11
- package/es/progress/progress.css +1 -1
- package/es/style.css +1 -1
- package/es/tooltip/props.mjs +8 -0
- package/es/varlet.esm.js +2567 -2556
- package/highlight/web-types.en-US.json +19 -1
- package/highlight/web-types.zh-CN.json +19 -1
- package/lib/style.css +1 -1
- package/lib/varlet.cjs.js +37 -28
- package/package.json +6 -6
- package/types/menu.d.ts +4 -0
- package/types/tooltip.d.ts +4 -0
- package/umd/varlet.js +5 -5
package/es/tooltip/props.mjs
CHANGED
|
@@ -8,6 +8,9 @@ function placementValidator(alignment) {
|
|
|
8
8
|
function typeValidator(type) {
|
|
9
9
|
return ['default', 'primary', 'info', 'success', 'warning', 'danger'].includes(type);
|
|
10
10
|
}
|
|
11
|
+
function strategyValidator(strategy) {
|
|
12
|
+
return ['absolute', 'fixed'].includes(strategy);
|
|
13
|
+
}
|
|
11
14
|
export var props = {
|
|
12
15
|
type: {
|
|
13
16
|
type: String,
|
|
@@ -41,6 +44,11 @@ export var props = {
|
|
|
41
44
|
default: 'bottom',
|
|
42
45
|
validator: placementValidator
|
|
43
46
|
},
|
|
47
|
+
strategy: {
|
|
48
|
+
type: String,
|
|
49
|
+
default: 'absolute',
|
|
50
|
+
validator: strategyValidator
|
|
51
|
+
},
|
|
44
52
|
offsetX: {
|
|
45
53
|
type: [Number, String],
|
|
46
54
|
default: 0
|