cnhis-design-vue 3.1.8-beta.6 → 3.1.8-beta.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.
@@ -1391,7 +1391,22 @@ declare const _default: import("vue").DefineComponent<{
1391
1391
  maxWidth: NumberConstructor;
1392
1392
  }, {
1393
1393
  popoverRef: import("vue").Ref<{
1394
- syncPosition: () => void;
1394
+ syncPosition: () => void; /**
1395
+ * 针对 bigTable 的设置列
1396
+ * type: 列的类型
1397
+ * field: 列字段名(注:属性层级越深,渲染性能将直线下降)
1398
+ * title: 列标题(支持开启国际化)
1399
+ * width: 列宽度(如果为空则均匀分配剩余宽度,如果全部列固定了,可能会存在宽屏下不会铺满,可以配合 "%" 或者 "min-width" 布局)
1400
+ * minWidth: 最小列宽度;会自动将剩余空间按比例分配
1401
+ * resizable: 列是否允许拖动列宽调整大小
1402
+ * visible: 列是否显示
1403
+ * fixed: 将列固定在左侧或者右侧(注意:固定列应该放在左右两侧的位置)
1404
+ * align: 列对齐方式
1405
+ * headerAlign: 表头列的对齐方式
1406
+ * footerAlign: 表尾列的对齐方式
1407
+ * formatter: 格式化显示内容 Function({cellValue, row, column})
1408
+ * sortable: 是否允许列排序
1409
+ */
1395
1410
  setShow: (value: boolean) => void;
1396
1411
  } | null>;
1397
1412
  mergedTheme: import("vue").ComputedRef<{
@@ -288,9 +288,10 @@ var script = /* @__PURE__ */ defineComponent({
288
288
  if (state.isTree != 3)
289
289
  return;
290
290
  let table = xGrid.value;
291
- let key = (_a = table.getTableColumn().tableColumn) == null ? void 0 : _a.find((column) => {
291
+ let obj = (_a = table.getTableColumn().tableColumn) == null ? void 0 : _a.find((column) => {
292
292
  return !!column.property;
293
- }).property;
293
+ });
294
+ let key = (obj == null ? void 0 : obj.property) || "";
294
295
  setTreeGroupTitle(formatList, key, GROUP_TITLE_KEY);
295
296
  };
296
297
  const setCurrentPageRowChecked = () => {
@@ -1680,7 +1681,7 @@ var script = /* @__PURE__ */ defineComponent({
1680
1681
  }, [createVNode("div", {
1681
1682
  "style": {
1682
1683
  background: color,
1683
- height: "100%"
1684
+ height: "24px"
1684
1685
  }
1685
1686
  }, null)])];
1686
1687
  };
@@ -1,6 +1,6 @@
1
1
  import { AnyObject } from 'cnhis-design-vue/es/src/types';
2
- import { FieldItem, FieldVisitor } from "./types";
3
- import { Component, FunctionalComponent, PropType } from "vue";
2
+ import { FieldItem, FieldVisitor } from './types';
3
+ import { Component, FunctionalComponent, PropType } from 'vue';
4
4
  declare const _default: import("vue").DefineComponent<{
5
5
  fieldList: {
6
6
  type: PropType<FieldItem[]>;
@@ -25,7 +25,9 @@ var script = /* @__PURE__ */ defineComponent({
25
25
  },
26
26
  scope: { type: Object, default: () => ({}) }
27
27
  },
28
- emits: ["formChange"],
28
+ emits: [
29
+ "formChange"
30
+ ],
29
31
  setup(__props, { expose, emit }) {
30
32
  const props = __props;
31
33
  const { create, trigger } = useBusinessBinding();
@@ -1,4 +1,4 @@
1
- import { defineComponent, ref, nextTick, onMounted, watch, openBlock, createElementBlock, normalizeClass, normalizeStyle, createElementVNode, renderSlot, Fragment, toDisplayString, createCommentVNode, renderList, withDirectives, createBlock, unref, withCtx, createTextVNode, vShow, createVNode } from 'vue';
1
+ import { defineComponent, ref, nextTick, onMounted, watch, openBlock, createElementBlock, normalizeClass, normalizeStyle, createElementVNode, renderSlot, createCommentVNode, Fragment, toDisplayString, renderList, withDirectives, createBlock, unref, withCtx, createTextVNode, vShow, createVNode } from 'vue';
2
2
  import { NTag, NDescriptions, NDescriptionsItem, NEllipsis } from 'naive-ui';
3
3
  import { useThrottleFn, useEventListener } from '@vueuse/core';
4
4
  import SlotRender from './SlotRender.mjs';
@@ -6,7 +6,10 @@ import './HiddenContent.mjs';
6
6
  import script$1 from './HiddenContent.vue_vue_type_script_setup_true_lang.mjs';
7
7
 
8
8
  const _hoisted_1 = { class: "c-info-header__operation" };
9
- const _hoisted_2 = /* @__PURE__ */ createElementVNode("div", { class: "c-info-header__divider" }, null, -1);
9
+ const _hoisted_2 = {
10
+ key: 0,
11
+ class: "c-info-header__divider"
12
+ };
10
13
  const _hoisted_3 = { class: "c-info-header__patient" };
11
14
  const _hoisted_4 = { class: "c-info-header__patientHeader" };
12
15
  const _hoisted_5 = {
@@ -37,7 +40,11 @@ var script = /* @__PURE__ */ defineComponent({
37
40
  minColumnWidth: { type: [String, Number], default: 240 },
38
41
  rowHeight: { type: [String, Number], default: 32 }
39
42
  },
40
- emits: ["openPatientInfo", "fieldSet", "update:compact"],
43
+ emits: [
44
+ "openPatientInfo",
45
+ "fieldSet",
46
+ "update:compact"
47
+ ],
41
48
  setup(__props, { expose, emit }) {
42
49
  const props = __props;
43
50
  function toggleCompact() {
@@ -99,7 +106,7 @@ var script = /* @__PURE__ */ defineComponent({
99
106
  createElementVNode("section", _hoisted_1, [
100
107
  renderSlot(_ctx.$slots, "operation")
101
108
  ]),
102
- _hoisted_2,
109
+ _ctx.$slots.operation ? (openBlock(), createElementBlock("div", _hoisted_2)) : createCommentVNode("v-if", true),
103
110
  createElementVNode("section", _hoisted_3, [
104
111
  renderSlot(_ctx.$slots, "patientModule"),
105
112
  !_ctx.$slots.avatarModule ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "cnhis-design-vue",
3
3
  "private": false,
4
- "version": "3.1.8-beta.6",
4
+ "version": "3.1.8-beta.7",
5
5
  "license": "ISC",
6
6
  "module": "es/packages/index.mjs",
7
7
  "main": "es/packages/index.mjs",