@opentinyvue/vue-card-group 3.22.1 → 3.23.0

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/lib/index.js CHANGED
@@ -61,7 +61,7 @@ var CardGroup = defineComponent({
61
61
  });
62
62
  }
63
63
  });
64
- var version = "3.undefined";
64
+ var version = "3.23.0";
65
65
  CardGroup.model = {
66
66
  prop: "modelValue",
67
67
  event: "update:modelValue"
@@ -1,6 +1,7 @@
1
1
  import { renderless, api } from '@opentinyvue/vue-renderless/card-group/vue';
2
2
  import { defineComponent, $prefix, props, setup } from '@opentinyvue/vue-common';
3
- import { openBlock, createElementBlock, normalizeClass, renderSlot } from 'vue';
3
+ import { iconGridNoData } from '@opentinyvue/vue-icon';
4
+ import { resolveComponent, openBlock, createElementBlock, normalizeClass, renderSlot, createVNode } from 'vue';
4
5
 
5
6
  function _createForOfIteratorHelperLoose(r, e) {
6
7
  var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
@@ -44,6 +45,9 @@ var classes = {
44
45
  var _sfc_main = defineComponent({
45
46
  name: $prefix + "CardGroup",
46
47
  componentName: "CardGroup",
48
+ components: {
49
+ IconGridNoData: iconGridNoData()
50
+ },
47
51
  emits: ["update:modelValue", "change"],
48
52
  props: [].concat(props, ["modelValue", "customClass", "height", "autoWidth", "size", "status", "checkType", "type", "disabled"]),
49
53
  setup: function setup$1(props2, context) {
@@ -57,13 +61,17 @@ var _sfc_main = defineComponent({
57
61
  }
58
62
  });
59
63
  function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
64
+ var _component_icon_grid_no_data = resolveComponent("icon-grid-no-data");
60
65
  return openBlock(), createElementBlock(
61
66
  "div",
62
67
  {
63
68
  "data-tag": "tiny-card-group",
64
69
  class: normalizeClass(["w-full grid gap-4", _ctx.gcls("size-" + _ctx.state.size)])
65
70
  },
66
- [renderSlot(_ctx.$slots, "default")],
71
+ [renderSlot(_ctx.$slots, "default"), createVNode(_component_icon_grid_no_data, {
72
+ "data-tag": "tiny-card-group-empty",
73
+ class: "hidden first:block !w-full !h-28"
74
+ })],
67
75
  2
68
76
  /* CLASS */
69
77
  );
package/package.json CHANGED
@@ -1,15 +1,15 @@
1
1
  {
2
2
  "name": "@opentinyvue/vue-card-group",
3
- "version": "3.22.1",
3
+ "version": "3.23.0",
4
4
  "description": "",
5
5
  "main": "./lib/index.js",
6
6
  "module": "./lib/index.js",
7
7
  "sideEffects": false,
8
8
  "type": "module",
9
9
  "dependencies": {
10
- "@opentinyvue/vue-common": "~3.22.0",
11
- "@opentinyvue/vue-renderless": "~3.22.0",
12
- "@opentinyvue/vue-theme": "~3.22.0"
10
+ "@opentinyvue/vue-common": "~3.23.0",
11
+ "@opentinyvue/vue-renderless": "~3.23.0",
12
+ "@opentinyvue/vue-theme": "~3.23.0"
13
13
  },
14
14
  "license": "MIT",
15
15
  "types": "index.d.ts"