@namelivia/vue-components 4.0.0 → 4.0.2
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/.storybook/main.js +1 -3
- package/.storybook/preview.js +1 -1
- package/dist/index.esm.js +17 -13
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +17 -13
- package/dist/index.js.map +1 -1
- package/package.json +6 -8
- package/src/Card/Card.vue +4 -3
package/.storybook/main.js
CHANGED
package/.storybook/preview.js
CHANGED
package/dist/index.esm.js
CHANGED
|
@@ -114,12 +114,12 @@ var script$s = defineComponent({
|
|
|
114
114
|
});
|
|
115
115
|
|
|
116
116
|
const _hoisted_1$n = { class: "card-body" };
|
|
117
|
-
const _hoisted_2$
|
|
117
|
+
const _hoisted_2$e = { class: "card-title" };
|
|
118
118
|
const _hoisted_3$9 = { class: "card-text" };
|
|
119
119
|
|
|
120
120
|
function render$s(_ctx, _cache, $props, $setup, $data, $options) {
|
|
121
121
|
return (openBlock(), createElementBlock("div", _hoisted_1$n, [
|
|
122
|
-
createElementVNode("div", _hoisted_2$
|
|
122
|
+
createElementVNode("div", _hoisted_2$e, toDisplayString(_ctx.title), 1 /* TEXT */),
|
|
123
123
|
createElementVNode("p", _hoisted_3$9, [
|
|
124
124
|
renderSlot(_ctx.$slots, "default")
|
|
125
125
|
])
|
|
@@ -147,12 +147,14 @@ var script$r = defineComponent({
|
|
|
147
147
|
CardImage: script$t,
|
|
148
148
|
CardBody: script$s,
|
|
149
149
|
},
|
|
150
|
+
emits: ['width']
|
|
150
151
|
});
|
|
151
152
|
|
|
152
153
|
const _hoisted_1$m = {
|
|
153
154
|
key: 0,
|
|
154
155
|
class: "card-container"
|
|
155
156
|
};
|
|
157
|
+
const _hoisted_2$d = { class: "card" };
|
|
156
158
|
|
|
157
159
|
function render$r(_ctx, _cache, $props, $setup, $data, $options) {
|
|
158
160
|
const _component_card_image = resolveComponent("card-image");
|
|
@@ -160,17 +162,19 @@ function render$r(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
160
162
|
|
|
161
163
|
return (!_ctx.dismissed)
|
|
162
164
|
? (openBlock(), createElementBlock("div", _hoisted_1$m, [
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
165
|
+
createElementVNode("div", _hoisted_2$d, [
|
|
166
|
+
createVNode(_component_card_image, {
|
|
167
|
+
src: _ctx.image,
|
|
168
|
+
alt: _ctx.title,
|
|
169
|
+
onWidth: _cache[0] || (_cache[0] = $event => (_ctx.$emit('width', $event)))
|
|
170
|
+
}, null, 8 /* PROPS */, ["src", "alt"]),
|
|
171
|
+
createVNode(_component_card_body, { title: _ctx.title }, {
|
|
172
|
+
default: withCtx(() => [
|
|
173
|
+
renderSlot(_ctx.$slots, "default")
|
|
174
|
+
]),
|
|
175
|
+
_: 3 /* FORWARDED */
|
|
176
|
+
}, 8 /* PROPS */, ["title"])
|
|
177
|
+
])
|
|
174
178
|
]))
|
|
175
179
|
: createCommentVNode("v-if", true)
|
|
176
180
|
}
|