@ctzy-web-client/plugin-component-vue 1.0.36 → 1.0.37

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.
@@ -80,6 +80,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
80
80
  const dataTable = props.dataTable;
81
81
  dataTable._userService = (_a = userService.value) == null ? void 0 : _a.getUserList;
82
82
  const dataTableEl = ref(null);
83
+ const realHeight = computed(() => props.height);
83
84
  const displayColumns = computed(
84
85
  () => unref(dataTable).getDisplayColumns() || []
85
86
  );
@@ -266,14 +267,14 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
266
267
  ref_key: "dataTableEl",
267
268
  ref: dataTableEl,
268
269
  style: normalizeStyle({
269
- display: __props.height === "auto" ? "flex" : "block",
270
- flexDirection: __props.height === "auto" ? "column" : "unset"
270
+ display: realHeight.value === "auto" ? "flex" : "block",
271
+ flexDirection: realHeight.value === "auto" ? "column" : "unset"
271
272
  })
272
273
  }, [
273
274
  renderSlot(_ctx.$slots, "default", { dataTable: unref(dataTable) }, () => [
274
275
  createVNode(unref(ElTable), mergeProps({
275
276
  class: "content",
276
- height: __props.height,
277
+ height: realHeight.value,
277
278
  ref_key: "elTable",
278
279
  ref: elTable,
279
280
  data: data.value,
@@ -84,6 +84,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
84
84
  const dataTable = props.dataTable;
85
85
  dataTable._userService = (_a = userService.value) == null ? void 0 : _a.getUserList;
86
86
  const dataTableEl = vue.ref(null);
87
+ const realHeight = vue.computed(() => props.height);
87
88
  const displayColumns = vue.computed(
88
89
  () => vue.unref(dataTable).getDisplayColumns() || []
89
90
  );
@@ -270,14 +271,14 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
270
271
  ref_key: "dataTableEl",
271
272
  ref: dataTableEl,
272
273
  style: vue.normalizeStyle({
273
- display: __props.height === "auto" ? "flex" : "block",
274
- flexDirection: __props.height === "auto" ? "column" : "unset"
274
+ display: realHeight.value === "auto" ? "flex" : "block",
275
+ flexDirection: realHeight.value === "auto" ? "column" : "unset"
275
276
  })
276
277
  }, [
277
278
  vue.renderSlot(_ctx.$slots, "default", { dataTable: vue.unref(dataTable) }, () => [
278
279
  vue.createVNode(vue.unref(ElementPlus.ElTable), vue.mergeProps({
279
280
  class: "content",
280
- height: __props.height,
281
+ height: realHeight.value,
281
282
  ref_key: "elTable",
282
283
  ref: elTable,
283
284
  data: data.value,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ctzy-web-client/plugin-component-vue",
3
- "version": "1.0.36",
3
+ "version": "1.0.37",
4
4
  "main": "lib/index.js",
5
5
  "module": "es/index.mjs",
6
6
  "exports": {
@@ -1,10 +1,10 @@
1
1
  <template>
2
- <div :class="ns.b()" ref="dataTableEl" :style="{display: height === 'auto' ? 'flex' : 'block',
3
- flexDirection: height === 'auto' ? 'column' : 'unset'}">
2
+ <div :class="ns.b()" ref="dataTableEl" :style="{display: realHeight === 'auto' ? 'flex' : 'block',
3
+ flexDirection: realHeight === 'auto' ? 'column' : 'unset'}">
4
4
  <slot :dataTable="dataTable">
5
5
  <ElTable
6
6
  class="content"
7
- :height="height"
7
+ :height="realHeight"
8
8
 
9
9
  ref="elTable"
10
10
  :data="data"
@@ -200,7 +200,7 @@ const dataTable = props.dataTable;
200
200
  dataTable._userService = userService.value?.getUserList
201
201
 
202
202
  const dataTableEl = ref(null);
203
-
203
+ const realHeight = computed(() => props.height)
204
204
  const displayColumns = computed(
205
205
  () => unref(dataTable).getDisplayColumns() || []
206
206
  );
File without changes
File without changes