qidian-vue-ui 1.2.91 → 1.2.92

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.
@@ -1,3 +1,3 @@
1
- .qd-grid-item[data-v-6f54474d] {
1
+ .qd-grid-item[data-v-e867ce9f] {
2
2
  min-width: 0;
3
3
  }
@@ -1,8 +1,13 @@
1
1
  import type { QdGridItemProps } from './types';
2
2
  declare var __VLS_1: {
3
3
  itemStyle: {
4
+ display: string;
5
+ gridColumn?: undefined;
6
+ gridRow?: undefined;
7
+ } | {
4
8
  gridColumn: string;
5
9
  gridRow: string;
10
+ display?: undefined;
6
11
  };
7
12
  };
8
13
  type __VLS_Slots = {} & {
@@ -2,7 +2,7 @@ import './item.css'
2
2
  import _sfc_main from "./item.vue2.mjs";
3
3
  /* empty css */
4
4
  import _export_sfc from "../../_virtual/_plugin-vue_export-helper.mjs";
5
- const QdGridItem = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-6f54474d"]]);
5
+ const QdGridItem = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-e867ce9f"]]);
6
6
  export {
7
7
  QdGridItem as default
8
8
  };
@@ -54,10 +54,15 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
54
54
  if (gridWidth.value >= DEFAULT_BREAKPOINTS.sm && !isEmpty(sm)) return sm;
55
55
  return xs ?? span ?? DEFAULT_ROW;
56
56
  });
57
- const itemStyle = computed(() => ({
58
- gridColumn: `span ${getColSpan.value}`,
59
- gridRow: `span ${getRowSpan.value}`
60
- }));
57
+ const itemStyle = computed(() => {
58
+ if (getColSpan.value === 0 || getRowSpan.value === 0) {
59
+ return { display: "none" };
60
+ }
61
+ return {
62
+ gridColumn: `span ${getColSpan.value}`,
63
+ gridRow: `span ${getRowSpan.value}`
64
+ };
65
+ });
61
66
  return (_ctx, _cache) => {
62
67
  return openBlock(), createElementBlock("div", {
63
68
  class: "qd-grid-item",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "qidian-vue-ui",
3
- "version": "1.2.91",
3
+ "version": "1.2.92",
4
4
  "description": "基于 TDesign 的 QiDian Vue UI 组件库",
5
5
  "author": "qidian",
6
6
  "license": "MIT",