@wikicasa-dev/components 2.0.5 → 2.0.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/dist/BaseCard.js +16 -16
- package/dist/UIKit/BaseCard.vue.d.ts +1 -6
- package/dist/assets/BaseCard.css +1 -1
- package/package.json +1 -1
package/dist/BaseCard.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { _ as
|
|
3
|
-
import './assets/BaseCard.css';const
|
|
1
|
+
import { defineComponent as m, computed as o, openBlock as p, createBlock as C, resolveDynamicComponent as u, normalizeClass as a, withCtx as f, createElementVNode as d, renderSlot as r } from "vue";
|
|
2
|
+
import { _ as v } from "./chunks/_plugin-vue_export-helper.CHgC5LLL.js";
|
|
3
|
+
import './assets/BaseCard.css';const y = /* @__PURE__ */ m({
|
|
4
4
|
__name: "BaseCard",
|
|
5
5
|
props: {
|
|
6
6
|
type: { default: "" },
|
|
@@ -9,30 +9,30 @@ import './assets/BaseCard.css';const g = /* @__PURE__ */ p({
|
|
|
9
9
|
cardBodyClasses: { default: "" }
|
|
10
10
|
},
|
|
11
11
|
emits: ["click"],
|
|
12
|
-
setup(
|
|
13
|
-
const
|
|
12
|
+
setup(s, { emit: c }) {
|
|
13
|
+
const l = c, n = o(
|
|
14
14
|
() => s.type === "news" ? "news-card" : s.type
|
|
15
|
-
),
|
|
16
|
-
return (e,
|
|
17
|
-
class: a(["card", [
|
|
18
|
-
onClick:
|
|
15
|
+
), i = o(() => s.type ? `${s.type}-img` : "");
|
|
16
|
+
return (e, t) => (p(), C(u(e.rootComponent), {
|
|
17
|
+
class: a(["card", [n.value]]),
|
|
18
|
+
onClick: t[0] || (t[0] = (g) => l("click"))
|
|
19
19
|
}, {
|
|
20
|
-
default:
|
|
21
|
-
|
|
22
|
-
class: a(["card-img", [
|
|
20
|
+
default: f(() => [
|
|
21
|
+
d("div", {
|
|
22
|
+
class: a(["card-img", [i.value, e.cardImgClasses]])
|
|
23
23
|
}, [
|
|
24
|
-
|
|
24
|
+
r(e.$slots, "card-image", {}, void 0, !0)
|
|
25
25
|
], 2),
|
|
26
|
-
|
|
26
|
+
d("div", {
|
|
27
27
|
class: a(["card-body", [e.cardBodyClasses]])
|
|
28
28
|
}, [
|
|
29
|
-
|
|
29
|
+
r(e.$slots, "card-description", {}, void 0, !0)
|
|
30
30
|
], 2)
|
|
31
31
|
]),
|
|
32
32
|
_: 3
|
|
33
33
|
}, 8, ["class"]));
|
|
34
34
|
}
|
|
35
|
-
}), I = /* @__PURE__ */ y
|
|
35
|
+
}), I = /* @__PURE__ */ v(y, [["__scopeId", "data-v-335ec407"]]);
|
|
36
36
|
export {
|
|
37
37
|
I as default
|
|
38
38
|
};
|
|
@@ -23,12 +23,7 @@ declare const __VLS_component: import('vue').DefineComponent<{
|
|
|
23
23
|
cardBodyClasses?: ClassType;
|
|
24
24
|
}> & Readonly<{
|
|
25
25
|
onClick?: (() => any) | undefined;
|
|
26
|
-
}>, {
|
|
27
|
-
type: CardTypes;
|
|
28
|
-
rootComponent: CardRootTypes;
|
|
29
|
-
cardImgClasses: ClassType;
|
|
30
|
-
cardBodyClasses: ClassType;
|
|
31
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
26
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
32
27
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
33
28
|
export default _default;
|
|
34
29
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
package/dist/assets/BaseCard.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.card[data-v-
|
|
1
|
+
.card[data-v-335ec407]{--card-max-height: none;--card-max-width: 930px;--card-height: auto;--card-width: auto;--card-border-radius-top-left: 20px;--card-border-radius-top-right: 20px;--card-border-radius-bottom-left: 20px;--card-border-radius-bottom-right: 20px;border-top-left-radius:var(--card-border-radius-top-left);border-top-right-radius:var(--card-border-radius-top-right);border-bottom-left-radius:var(--card-border-radius-bottom-left);border-bottom-right-radius:var(--card-border-radius-bottom-right);height:var(--card-height);width:var(--card-width);max-width:var(--card-max-width);max-height:var(--card-max-height);position:relative;z-index:0;display:flex;overflow:hidden;--tw-shadow: 0 0 8px #2222221F;--tw-shadow-colored: 0 0 8px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}@media screen and (min-width: 576px){.card[data-v-335ec407]{--card-img-max-width: 300px;--card-height: 240px }}.card .card-body[data-v-335ec407]{--card-body-width: 100%;box-sizing:border-box;width:var(--card-body-width);padding:10px 15px}.card .card-img[data-v-335ec407]{--card-img-height: var(--card-height);--card-img-width: 100%;--card-img-max-height: none;--card-img-max-width: none;height:var(--card-img-height);width:var(--card-img-width);max-width:var(--card-img-max-width);max-height:var(--card-img-max-height)}@media screen and (min-width: 576px){.card .card-img[data-v-335ec407]{--card-img-max-width: 300px }}.card.vertical[data-v-335ec407]{flex-direction:column}@media not all and (min-width: 576px){.card.vertical[data-v-335ec407]{min-height:100px;min-width:335px}}@media screen and (min-width: 576px){.card.vertical[data-v-335ec407]{--card-height: fit-content }}.card.vertical .card-img[data-v-335ec407]{--card-img-width: 100%;--card-img-max-width: 100%}.card.mini[data-v-335ec407]{--card-max-height: 100px;--card-max-width: 370px}.card.mini .card-img[data-v-335ec407]{--card-img-max-height: 110px;--card-img-max-width: 120px}@media (min-width: 576px){.card.news-card[data-v-335ec407]{flex-direction:column}}.card.news-card[data-v-335ec407]{--card-height: 270px}@media screen and (max-width: 576px){.card.news-card[data-v-335ec407]{--card-height: 100px;--card-width: 320px }.card.news-card .card-img[data-v-335ec407]{--card-height: 100px;--card-img-max-width: 100px }}@media screen and (min-width: 576px){.card.news-card .card-img[data-v-335ec407]{--card-height: 150px;--card-img-max-width: 100% }}
|