@varlet/ui 3.20.2 → 3.20.3
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/index.bundle.mjs +1 -1
- package/es/index.mjs +1 -1
- package/es/themes/dark/uploader.mjs +3 -0
- package/es/themes/md3-dark/uploader.mjs +3 -0
- package/es/themes/md3-light/uploader.mjs +3 -0
- package/es/uploader/Uploader.mjs +13 -2
- package/es/uploader/props.mjs +4 -0
- package/es/uploader/uploader.css +1 -1
- package/es/varlet.css +1 -1
- package/es/varlet.esm.js +796 -783
- package/highlight/web-types.en-US.json +11 -2
- package/highlight/web-types.zh-CN.json +11 -2
- package/lib/varlet.cjs.js +16 -3
- package/lib/varlet.css +1 -1
- package/package.json +7 -7
- package/types/styleVars.d.ts +3 -0
- package/types/uploader.d.ts +3 -0
- package/umd/varlet.js +3 -3
|
@@ -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": "3.20.
|
|
4
|
+
"version": "3.20.3",
|
|
5
5
|
"name": "VARLET",
|
|
6
6
|
"contributions": {
|
|
7
7
|
"html": {
|
|
@@ -10117,9 +10117,18 @@
|
|
|
10117
10117
|
"kind": "expression"
|
|
10118
10118
|
}
|
|
10119
10119
|
},
|
|
10120
|
+
{
|
|
10121
|
+
"name": "variant",
|
|
10122
|
+
"description": "Appearance variant, optional values are `standard` `outlined` `filled`",
|
|
10123
|
+
"default": "standard",
|
|
10124
|
+
"value": {
|
|
10125
|
+
"type": "string",
|
|
10126
|
+
"kind": "expression"
|
|
10127
|
+
}
|
|
10128
|
+
},
|
|
10120
10129
|
{
|
|
10121
10130
|
"name": "elevation",
|
|
10122
|
-
"description": "Elevation level, options `true` `false` and level of `0-24`,
|
|
10131
|
+
"description": "Elevation level, options `true` `false` and level of `0-24`, only effective with the `standard` variant",
|
|
10123
10132
|
"default": "true",
|
|
10124
10133
|
"value": {
|
|
10125
10134
|
"type": "string | number | boolean",
|
|
@@ -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": "3.20.
|
|
4
|
+
"version": "3.20.3",
|
|
5
5
|
"name": "VARLET",
|
|
6
6
|
"contributions": {
|
|
7
7
|
"html": {
|
|
@@ -10036,9 +10036,18 @@
|
|
|
10036
10036
|
"kind": "expression"
|
|
10037
10037
|
}
|
|
10038
10038
|
},
|
|
10039
|
+
{
|
|
10040
|
+
"name": "variant",
|
|
10041
|
+
"description": "外观类型,可选值为 `standard` `outlined` `filled`",
|
|
10042
|
+
"default": "standard",
|
|
10043
|
+
"value": {
|
|
10044
|
+
"type": "string",
|
|
10045
|
+
"kind": "expression"
|
|
10046
|
+
}
|
|
10047
|
+
},
|
|
10039
10048
|
{
|
|
10040
10049
|
"name": "elevation",
|
|
10041
|
-
"description": "海拔高度,可选值为 `true` `false` 和 `0-24`
|
|
10050
|
+
"description": "海拔高度,可选值为 `true` `false` 和 `0-24` 的等级,仅在 `standard` 外观下生效",
|
|
10042
10051
|
"default": "true",
|
|
10043
10052
|
"value": {
|
|
10044
10053
|
"type": "string | number | boolean",
|
package/lib/varlet.cjs.js
CHANGED
|
@@ -28194,6 +28194,9 @@ var stdin_default$268 = {
|
|
|
28194
28194
|
"--uploader-file-name-background": "#303030",
|
|
28195
28195
|
"--uploader-file-name-color": "#aaa",
|
|
28196
28196
|
"--uploader-file-cover-background": "#303030",
|
|
28197
|
+
"--uploader-outlined-background": "transparent",
|
|
28198
|
+
"--uploader-filled-background": "var(--color-surface-container-highest)",
|
|
28199
|
+
"--uploader-outline-color": "var(--color-outline)",
|
|
28197
28200
|
"--uploader-action-icon-size": "24px",
|
|
28198
28201
|
"--uploader-action-margin": "0 10px 10px 0",
|
|
28199
28202
|
"--uploader-file-size": "80px",
|
|
@@ -29568,6 +29571,9 @@ var stdin_default$192 = {
|
|
|
29568
29571
|
"--uploader-action-background": "var(--color-surface-container-highest)",
|
|
29569
29572
|
"--uploader-file-name-background": "var(--color-surface-container-highest)",
|
|
29570
29573
|
"--uploader-file-cover-background": "var(--color-surface-container-highest)",
|
|
29574
|
+
"--uploader-outlined-background": "transparent",
|
|
29575
|
+
"--uploader-filled-background": "var(--color-surface-container-highest)",
|
|
29576
|
+
"--uploader-outline-color": "var(--color-outline)",
|
|
29571
29577
|
"--uploader-action-icon-color": "var(--color-on-surface-variant)",
|
|
29572
29578
|
"--uploader-file-name-color": "var(--color-on-surface-variant)",
|
|
29573
29579
|
"--uploader-action-icon-size": "24px",
|
|
@@ -30926,6 +30932,9 @@ var stdin_default$116 = {
|
|
|
30926
30932
|
"--uploader-action-background": "var(--color-surface-container-low)",
|
|
30927
30933
|
"--uploader-file-name-background": "var(--color-surface-container-low)",
|
|
30928
30934
|
"--uploader-file-cover-background": "var(--color-surface-container-low)",
|
|
30935
|
+
"--uploader-outlined-background": "transparent",
|
|
30936
|
+
"--uploader-filled-background": "var(--color-surface-container-highest)",
|
|
30937
|
+
"--uploader-outline-color": "var(--color-outline)",
|
|
30929
30938
|
"--uploader-action-icon-color": "var(--color-on-surface-variant)",
|
|
30930
30939
|
"--uploader-file-name-color": "var(--color-on-surface-variant)",
|
|
30931
30940
|
"--uploader-action-icon-size": "24px",
|
|
@@ -32149,6 +32158,10 @@ var props$90 = {
|
|
|
32149
32158
|
],
|
|
32150
32159
|
default: true
|
|
32151
32160
|
},
|
|
32161
|
+
variant: {
|
|
32162
|
+
type: String,
|
|
32163
|
+
default: "standard"
|
|
32164
|
+
},
|
|
32152
32165
|
resolveType: {
|
|
32153
32166
|
type: String,
|
|
32154
32167
|
default: "default"
|
|
@@ -32234,7 +32247,7 @@ function __render__$1(_ctx, _cache) {
|
|
|
32234
32247
|
(0, vue.createElementVNode)("div", { class: (0, vue.normalizeClass)(_ctx.n("file-list")) }, [((0, vue.openBlock)(true), (0, vue.createElementBlock)(vue.Fragment, null, (0, vue.renderList)(_ctx.files, (f) => {
|
|
32235
32248
|
return (0, vue.withDirectives)(((0, vue.openBlock)(), (0, vue.createElementBlock)("div", {
|
|
32236
32249
|
key: f.id,
|
|
32237
|
-
class: (0, vue.normalizeClass)(_ctx.classes(_ctx.n("file"), _ctx.formatElevation(_ctx.elevation, 2), [f.state === "loading", _ctx.n("--loading")])),
|
|
32250
|
+
class: (0, vue.normalizeClass)(_ctx.classes(_ctx.n("file"), [_ctx.variant === "standard", _ctx.formatElevation(_ctx.elevation, 2)], [_ctx.variant === "outlined", _ctx.n("--outlined")], [_ctx.variant === "filled", _ctx.n("--filled")], [f.state === "loading", _ctx.n("--loading")])),
|
|
32238
32251
|
onClick: ($event) => _ctx.preview(f)
|
|
32239
32252
|
}, [
|
|
32240
32253
|
(0, vue.createElementVNode)("div", { class: (0, vue.normalizeClass)(_ctx.n("file-name")) }, (0, vue.toDisplayString)(f.name || f.url), 3),
|
|
@@ -32267,7 +32280,7 @@ function __render__$1(_ctx, _cache) {
|
|
|
32267
32280
|
}), 128)), !_ctx.maxlength || _ctx.modelValue.length < _ctx.toNumber(_ctx.maxlength) ? (0, vue.withDirectives)(((0, vue.openBlock)(), (0, vue.createElementBlock)("div", {
|
|
32268
32281
|
key: 0,
|
|
32269
32282
|
ref: "actionRef",
|
|
32270
|
-
class: (0, vue.normalizeClass)(_ctx.classes(_ctx.n("--outline-none"), [!_ctx.$slots.default,
|
|
32283
|
+
class: (0, vue.normalizeClass)(_ctx.classes(_ctx.n("--outline-none"), [!_ctx.$slots.default, _ctx.n("action")], [!_ctx.$slots.default && _ctx.variant === "standard", _ctx.formatElevation(_ctx.elevation, 2)], [!_ctx.$slots.default && _ctx.variant === "outlined", _ctx.n("--outlined")], [!_ctx.$slots.default && _ctx.variant === "filled", _ctx.n("--filled")], [_ctx.disabled || _ctx.formDisabled, _ctx.n("--disabled")])),
|
|
32271
32284
|
tabindex: _ctx.disabled || _ctx.formDisabled ? void 0 : "0",
|
|
32272
32285
|
onClick: _cache[2] || (_cache[2] = (...args) => _ctx.handleActionClick && _ctx.handleActionClick(...args)),
|
|
32273
32286
|
onFocus: _cache[3] || (_cache[3] = ($event) => _ctx.isFocusing = true),
|
|
@@ -32817,7 +32830,7 @@ var _WatermarkComponent = stdin_default$108;
|
|
|
32817
32830
|
var stdin_default$102 = stdin_default$108;
|
|
32818
32831
|
//#endregion
|
|
32819
32832
|
//#region es/index.bundle.mjs
|
|
32820
|
-
var version = "3.20.
|
|
32833
|
+
var version = "3.20.3";
|
|
32821
32834
|
function install(app) {
|
|
32822
32835
|
stdin_default.install && app.use(stdin_default);
|
|
32823
32836
|
stdin_default$1.install && app.use(stdin_default$1);
|