@newview/ui 1.1.16 → 1.1.18

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/README.md CHANGED
@@ -1,19 +1,28 @@
1
+ ### 1.1.18
2
+
3
+ 1. Grid date 增加日期格式化
4
+ 2. NvBox 宽度缓慢变化问题处理
5
+
6
+ ### 1.1.17
7
+
8
+ 1. Grid 增加样式行修改间距
1
9
 
2
10
  ### 1.1.16
11
+
3
12
  1. Grid 增加表头筛选相关配置
4
13
  2. 表格增加表格行或列合并导出方法
5
- 3. comForm radio单选增加只读状态下禁止选择
14
+ 3. comForm radio 单选增加只读状态下禁止选择
6
15
 
7
- ### 1.1.14
16
+ ### 1.1.14
8
17
 
9
18
  1. comForm 增加 TextEditor 类型定义
10
19
 
11
- ### 1.1.8
20
+ ### 1.1.8
12
21
 
13
22
  1. Grid 新增右键菜单
14
23
  2. Grid 列表 auto 模式异常
15
24
 
16
- ### 1.1.3
25
+ ### 1.1.3
17
26
 
18
27
  1. LuckySheet API 扩展
19
28
  2. Gird Toolbars isloading: Function 实现
@@ -32424,7 +32424,14 @@ const GridCellContent = defineComponent({
32424
32424
  }
32425
32425
  },
32426
32426
  render() {
32427
+ var _a;
32427
32428
  if (utilities.isNull(this.$props.column.format)) {
32429
+ if (this.$props.column.colType === "date") {
32430
+ if ((_a = this.$props.column.datePicker) == null ? void 0 : _a.format) {
32431
+ return utilities.format(new Date(this.$props.row[this.$props.column.field]), this.$props.column.datePicker.format);
32432
+ }
32433
+ return utilities.format(new Date(this.$props.row[this.$props.column.field]), "yyyy-MM-DD");
32434
+ }
32428
32435
  return utilities.isNull(this.$props.column.field) ? "" : this.$props.row[this.$props.column.field];
32429
32436
  }
32430
32437
  return this.$props.column.format(h, { row: this.$props.row, column: this.$props.column });
@@ -34476,8 +34483,8 @@ let GridInstance$1 = class GridInstance2 extends BaseInstance {
34476
34483
  }
34477
34484
  //#endregion 公开方法 END
34478
34485
  };
34479
- const Grid_vue_vue_type_style_index_0_scoped_18038d66_lang = "";
34480
- const _withScopeId$1 = (n) => (pushScopeId("data-v-18038d66"), n = n(), popScopeId(), n);
34486
+ const Grid_vue_vue_type_style_index_0_scoped_38eb7ad4_lang = "";
34487
+ const _withScopeId$1 = (n) => (pushScopeId("data-v-38eb7ad4"), n = n(), popScopeId(), n);
34481
34488
  const _hoisted_1$7 = { class: "nv-crud" };
34482
34489
  const _hoisted_2$6 = { class: "nv-crud-body" };
34483
34490
  const _hoisted_3$5 = { class: "nv-crud-body-search" };
@@ -34493,7 +34500,7 @@ const _hoisted_6$1 = {
34493
34500
  class: "nv-crud-body-table",
34494
34501
  ref: "crudTable"
34495
34502
  };
34496
- const _hoisted_7$1 = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ createElementVNode("span", { class: "grid-msg" }, "加载中去...", -1));
34503
+ const _hoisted_7$1 = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ createElementVNode("span", { class: "grid-msg" }, "加载中...", -1));
34497
34504
  const _hoisted_8$1 = {
34498
34505
  key: 0,
34499
34506
  class: "nv-crud-footer"
@@ -34679,7 +34686,7 @@ function _sfc_render$b(_ctx, _cache, $props, $setup, $data, $options) {
34679
34686
  ])) : createCommentVNode("", true)
34680
34687
  ]);
34681
34688
  }
34682
- const Grid = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["render", _sfc_render$b], ["__scopeId", "data-v-18038d66"]]);
34689
+ const Grid = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["render", _sfc_render$b], ["__scopeId", "data-v-38eb7ad4"]]);
34683
34690
  const propDefine$k = {
34684
34691
  width: {
34685
34692
  // Box 宽度
@@ -34800,7 +34807,7 @@ let BoxInstance$1 = class BoxInstance2 extends BaseInstance {
34800
34807
  }
34801
34808
  //#endregion Box END
34802
34809
  };
34803
- const Box_vue_vue_type_style_index_0_scoped_46073643_lang = "";
34810
+ const Box_vue_vue_type_style_index_0_scoped_1277c62b_lang = "";
34804
34811
  const _hoisted_1$6 = ["title"];
34805
34812
  const _hoisted_2$5 = {
34806
34813
  key: 0,
@@ -34820,7 +34827,7 @@ function _sfc_render$a(_ctx, _cache, $props, $setup, $data, $options) {
34820
34827
  const _component_Divider = resolveComponent("Divider");
34821
34828
  const _component_Col = resolveComponent("Col");
34822
34829
  return openBlock(), createBlock(_component_Col, {
34823
- style: normalizeStyle({ width: _ctx.currentWidth, height: "100%" })
34830
+ style: normalizeStyle({ width: _ctx.currentWidth, height: "100%", "min-width": 0, flex: _ctx.currentWidth == "100%" ? 1 : "initial" })
34824
34831
  }, {
34825
34832
  default: withCtx(() => [
34826
34833
  createElementVNode("div", {
@@ -34885,7 +34892,7 @@ function _sfc_render$a(_ctx, _cache, $props, $setup, $data, $options) {
34885
34892
  _: 3
34886
34893
  }, 8, ["style"]);
34887
34894
  }
34888
- const Box = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["render", _sfc_render$a], ["__scopeId", "data-v-46073643"]]);
34895
+ const Box = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["render", _sfc_render$a], ["__scopeId", "data-v-1277c62b"]]);
34889
34896
  const propDefine$j = {
34890
34897
  gutter: {
34891
34898
  // 栅格间的间距