eco-vue-js 0.3.79 → 0.3.80
Sign up to get free protection for your applications and to get access to all the features.
package/README.md
CHANGED
@@ -15,8 +15,8 @@ npm i eco-vue-js
|
|
15
15
|
1. Add the following lines to the `content` section in your [Tailwind configuration file](https://tailwindcss.com/docs/content-configuration):
|
16
16
|
```
|
17
17
|
content: [
|
18
|
-
'./node_modules/eco-vue-js/dist/components/**/*.vue.js
|
19
|
-
'./node_modules/eco-vue-js/dist/components/**/*.js
|
18
|
+
'./node_modules/eco-vue-js/dist/components/**/*.vue.js',
|
19
|
+
'./node_modules/eco-vue-js/dist/components/**/*.js',
|
20
20
|
]
|
21
21
|
```
|
22
22
|
2. Add the library's [Tailwind preset](https://tailwindcss.com/docs/presets) to your configuration file:
|
@@ -137,13 +137,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
137
137
|
"svg-width": containerWidth.value,
|
138
138
|
"svg-height": containerHeight.value,
|
139
139
|
"is-active": isActive.value,
|
140
|
-
"has-error": _ctx.errorMessage
|
140
|
+
"has-error": !!_ctx.errorMessage,
|
141
141
|
class: "absolute top-0 left-0"
|
142
142
|
}, null, 8, ["svg-width", "svg-height", "is-active", "has-error"])) : createCommentVNode("", true),
|
143
143
|
_ctx.placeholder ? (openBlock(), createElementBlock("div", _hoisted_5, [
|
144
144
|
createVNode(_sfc_main$2, {
|
145
145
|
name: _ctx.placeholder,
|
146
|
-
"has-error": _ctx.errorMessage
|
146
|
+
"has-error": !!_ctx.errorMessage,
|
147
147
|
"onClick:cancel": _cache[0] || (_cache[0] = ($event) => _ctx.$emit("clear:placeholder"))
|
148
148
|
}, {
|
149
149
|
positive: withCtx(() => [
|
@@ -173,7 +173,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
173
173
|
return openBlock(), createBlock(_sfc_main$2, {
|
174
174
|
key: index,
|
175
175
|
name: file.name,
|
176
|
-
"has-error": _ctx.errorMessage
|
176
|
+
"has-error": !!_ctx.errorMessage,
|
177
177
|
"onClick:cancel": ($event) => unselectFile(index)
|
178
178
|
}, {
|
179
179
|
positive: withCtx(() => [
|
@@ -350,8 +350,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
350
350
|
_ctx.hasChanges ? (openBlock(), createElementBlock("span", {
|
351
351
|
key: 0,
|
352
352
|
class: normalizeClass(["square-2 rounded-full transition-colors absolute top-0 right-0 z-10", {
|
353
|
-
"bg-info dark:bg-info-dark": isFocused.value || _ctx.errorMessage
|
354
|
-
"bg-negative dark:bg-negative-dark": !isFocused.value && _ctx.errorMessage
|
353
|
+
"bg-info dark:bg-info-dark": isFocused.value || !_ctx.errorMessage,
|
354
|
+
"bg-negative dark:bg-negative-dark": !isFocused.value && _ctx.errorMessage
|
355
355
|
}])
|
356
356
|
}, null, 2)) : createCommentVNode("", true)
|
357
357
|
]),
|