@newview/ui 1.2.9 → 1.2.11

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,3 +1,6 @@
1
+ ### 1.2.11
2
+ 表格组件变更--处理项目刷新按钮特殊需求
3
+
1
4
  ### 1.2.9
2
5
  附件查看中pdf增加EmbedPDF查看器的选项
3
6
 
@@ -33253,7 +33253,7 @@ let GridColumnInstance$1 = class GridColumnInstance2 extends BaseInstance {
33253
33253
  }
33254
33254
  };
33255
33255
  const GridColumn_vue_vue_type_style_index_0_lang$1 = "";
33256
- const GridColumn_vue_vue_type_style_index_1_scoped_b5cea758_lang = "";
33256
+ const GridColumn_vue_vue_type_style_index_1_scoped_125c7c24_lang = "";
33257
33257
  const _hoisted_1$h = { class: "gridColumn" };
33258
33258
  const _hoisted_2$e = {
33259
33259
  key: 3,
@@ -33315,8 +33315,8 @@ function _sfc_render$m(_ctx, _cache, $props, $setup, $data, $options) {
33315
33315
  title: column.title,
33316
33316
  padding: false,
33317
33317
  "vertical-align": "top",
33318
- "edit-render": { name: "textarea" }
33319
- }, null, 8, ["field", "title"])) : column.colType == "radio" ? (openBlock(), createBlock(_component_vxe_column, {
33318
+ "edit-render": column.editRender
33319
+ }, null, 8, ["field", "title", "edit-render"])) : column.colType == "radio" ? (openBlock(), createBlock(_component_vxe_column, {
33320
33320
  key: 2,
33321
33321
  type: "radio",
33322
33322
  width: "60",
@@ -33633,7 +33633,7 @@ function _sfc_render$m(_ctx, _cache, $props, $setup, $data, $options) {
33633
33633
  }), 256))
33634
33634
  ]);
33635
33635
  }
33636
- const GridColumn$1 = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["render", _sfc_render$m], ["__scopeId", "data-v-b5cea758"]]);
33636
+ const GridColumn$1 = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["render", _sfc_render$m], ["__scopeId", "data-v-125c7c24"]]);
33637
33637
  const _sfc_main$l = defineComponent({
33638
33638
  name: "FilterDaterange",
33639
33639
  props: {
@@ -58903,6 +58903,9 @@ let GridInstance$1 = class GridInstance2 extends BaseInstance {
58903
58903
  }
58904
58904
  break;
58905
58905
  case "refresh":
58906
+ item2.isShow = () => {
58907
+ return !window["rightRefreshIsHide"];
58908
+ };
58906
58909
  if (this.utilities.isNull(item2.onclick)) {
58907
58910
  item2.onclick = () => {
58908
58911
  this.doRefresh();
@@ -59194,6 +59197,18 @@ let GridInstance$1 = class GridInstance2 extends BaseInstance {
59194
59197
  }
59195
59198
  new ExcelHelper().downloadExcelAndSetStyle(exDatas, fileName + ".xlsx", merges, setStyle2);
59196
59199
  });
59200
+ /**
59201
+ * 河北项目需求---右侧刷新按钮改为和工具栏放一起
59202
+ * @returns
59203
+ */
59204
+ __publicField2(this, "getRefreshBtn", () => {
59205
+ var _a;
59206
+ if (!window["rightRefreshIsHide"]) {
59207
+ return null;
59208
+ } else {
59209
+ return (_a = this.props.option.rightToolbars) == null ? void 0 : _a.find((x) => x.name == "refresh");
59210
+ }
59211
+ });
59197
59212
  //#endregion 工具栏及默认事件 End
59198
59213
  //#region 公开方法
59199
59214
  /**
@@ -59497,8 +59512,8 @@ let GridInstance$1 = class GridInstance2 extends BaseInstance {
59497
59512
  }
59498
59513
  //#endregion 公开方法 END
59499
59514
  };
59500
- const Grid_vue_vue_type_style_index_0_scoped_1b3fc6d2_lang = "";
59501
- const _withScopeId$3 = (n) => (pushScopeId("data-v-1b3fc6d2"), n = n(), popScopeId(), n);
59515
+ const Grid_vue_vue_type_style_index_0_scoped_b1d2ef6b_lang = "";
59516
+ const _withScopeId$3 = (n) => (pushScopeId("data-v-b1d2ef6b"), n = n(), popScopeId(), n);
59502
59517
  const _hoisted_1$e = { class: "nv-crud nv-pos-r" };
59503
59518
  const _hoisted_2$b = { class: "grid-msg" };
59504
59519
  const _hoisted_3$9 = { class: "nv-crud-body" };
@@ -59527,9 +59542,9 @@ function _sfc_render$j(_ctx, _cache, $props, $setup, $data, $options) {
59527
59542
  const _component_search_com = resolveComponent("search-com");
59528
59543
  const _component_Divider = resolveComponent("Divider");
59529
59544
  const _component_toolbar = resolveComponent("toolbar");
59545
+ const _component_Button = resolveComponent("Button");
59530
59546
  const _component_Space = resolveComponent("Space");
59531
59547
  const _component_Col = resolveComponent("Col");
59532
- const _component_Button = resolveComponent("Button");
59533
59548
  const _component_Row = resolveComponent("Row");
59534
59549
  const _component_grid_column = resolveComponent("grid-column");
59535
59550
  const _component_vxe_table = resolveComponent("vxe-table");
@@ -59569,24 +59584,44 @@ function _sfc_render$j(_ctx, _cache, $props, $setup, $data, $options) {
59569
59584
  createVNode(_component_Col, { flex: "auto" }, {
59570
59585
  default: withCtx(() => [
59571
59586
  createVNode(_component_Space, { wrap: "" }, {
59572
- default: withCtx(() => [
59573
- _ctx.hasTitle() ? (openBlock(), createElementBlock("div", _hoisted_6$4, toDisplayString(_ctx.title), 1)) : createCommentVNode("", true),
59574
- _ctx.hasTitleDivider() ? (openBlock(), createBlock(_component_Divider, {
59575
- key: 1,
59576
- type: "vertical"
59577
- })) : createCommentVNode("", true),
59578
- _ctx.hasToolbar() ? (openBlock(), createBlock(_component_toolbar, {
59579
- key: 2,
59580
- options: _ctx.option.toolbars,
59581
- isButtonGroup: _ctx.isButtonGroup,
59582
- maxShow: _ctx.maxShow
59583
- }, null, 8, ["options", "isButtonGroup", "maxShow"])) : createCommentVNode("", true),
59584
- _ctx.hasDivider() ? (openBlock(), createBlock(_component_Divider, {
59585
- key: 3,
59586
- type: "vertical"
59587
- })) : createCommentVNode("", true),
59588
- renderSlot(_ctx.$slots, "default", {}, void 0, true)
59589
- ]),
59587
+ default: withCtx(() => {
59588
+ var _a2, _b, _c, _d;
59589
+ return [
59590
+ _ctx.hasTitle() ? (openBlock(), createElementBlock("div", _hoisted_6$4, toDisplayString(_ctx.title), 1)) : createCommentVNode("", true),
59591
+ _ctx.hasTitleDivider() ? (openBlock(), createBlock(_component_Divider, {
59592
+ key: 1,
59593
+ type: "vertical"
59594
+ })) : createCommentVNode("", true),
59595
+ _ctx.hasToolbar() ? (openBlock(), createBlock(_component_toolbar, {
59596
+ key: 2,
59597
+ options: _ctx.option.toolbars,
59598
+ isButtonGroup: _ctx.isButtonGroup,
59599
+ maxShow: _ctx.maxShow
59600
+ }, null, 8, ["options", "isButtonGroup", "maxShow"])) : createCommentVNode("", true),
59601
+ _ctx.getRefreshBtn() ? (openBlock(), createBlock(_component_Button, {
59602
+ key: 3,
59603
+ icon: "md-refresh",
59604
+ type: _ctx.getRefreshBtn().type ? (_a2 = _ctx.getRefreshBtn()) == null ? void 0 : _a2.type : "primary",
59605
+ onClick: _cache[0] || (_cache[0] = ($event) => {
59606
+ var _a3;
59607
+ return _ctx.getRefreshBtn().onclick ? (_a3 = _ctx.getRefreshBtn()) == null ? void 0 : _a3.onclick() : {};
59608
+ }),
59609
+ size: _ctx.getRefreshBtn().size ? (_b = _ctx.getRefreshBtn()) == null ? void 0 : _b.size : "default",
59610
+ loading: _ctx.getRefreshBtn().loading ? (_c = _ctx.getRefreshBtn()) == null ? void 0 : _c.loading() : false,
59611
+ class: normalizeClass((_d = _ctx.getRefreshBtn()) == null ? void 0 : _d.class)
59612
+ }, {
59613
+ default: withCtx(() => [
59614
+ createTextVNode("刷新")
59615
+ ]),
59616
+ _: 1
59617
+ }, 8, ["type", "size", "loading", "class"])) : createCommentVNode("", true),
59618
+ _ctx.hasDivider() ? (openBlock(), createBlock(_component_Divider, {
59619
+ key: 4,
59620
+ type: "vertical"
59621
+ })) : createCommentVNode("", true),
59622
+ renderSlot(_ctx.$slots, "default", {}, void 0, true)
59623
+ ];
59624
+ }),
59590
59625
  _: 3
59591
59626
  })
59592
59627
  ]),
@@ -59715,7 +59750,7 @@ function _sfc_render$j(_ctx, _cache, $props, $setup, $data, $options) {
59715
59750
  _ctx.getIsPagination() ? (openBlock(), createElementBlock("div", _hoisted_9$3, [
59716
59751
  createVNode(_component_Page, {
59717
59752
  modelValue: _ctx.pageIndex,
59718
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => _ctx.pageIndex = $event),
59753
+ "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => _ctx.pageIndex = $event),
59719
59754
  transfer: true,
59720
59755
  total: _ctx.total,
59721
59756
  "page-size": _ctx.getPageSize(),
@@ -59730,7 +59765,7 @@ function _sfc_render$j(_ctx, _cache, $props, $setup, $data, $options) {
59730
59765
  ])) : createCommentVNode("", true)
59731
59766
  ]);
59732
59767
  }
59733
- const Grid = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["render", _sfc_render$j], ["__scopeId", "data-v-1b3fc6d2"]]);
59768
+ const Grid = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["render", _sfc_render$j], ["__scopeId", "data-v-b1d2ef6b"]]);
59734
59769
  const GridCellContent = defineComponent({
59735
59770
  name: "GridCellContent",
59736
59771
  props: {
@@ -60281,7 +60316,7 @@ class GridColumnInstance extends BaseInstance {
60281
60316
  //#endregion
60282
60317
  }
60283
60318
  const GridColumn_vue_vue_type_style_index_0_lang = "";
60284
- const GridColumn_vue_vue_type_style_index_1_scoped_537fb4fc_lang = "";
60319
+ const GridColumn_vue_vue_type_style_index_1_scoped_d569c5cb_lang = "";
60285
60320
  const _hoisted_1$d = { class: "gridColumn" };
60286
60321
  const _hoisted_2$a = {
60287
60322
  key: 3,
@@ -60343,8 +60378,8 @@ function _sfc_render$i(_ctx, _cache, $props, $setup, $data, $options) {
60343
60378
  title: column.title,
60344
60379
  padding: false,
60345
60380
  "vertical-align": "top",
60346
- "edit-render": { name: "textarea" }
60347
- }, null, 8, ["field", "title"])) : column.colType == "radio" ? (openBlock(), createBlock(_component_vxe_column, {
60381
+ "edit-render": column.editRender
60382
+ }, null, 8, ["field", "title", "edit-render"])) : column.colType == "radio" ? (openBlock(), createBlock(_component_vxe_column, {
60348
60383
  key: 2,
60349
60384
  type: "radio",
60350
60385
  width: "60",
@@ -60650,7 +60685,7 @@ function _sfc_render$i(_ctx, _cache, $props, $setup, $data, $options) {
60650
60685
  }), 256))
60651
60686
  ]);
60652
60687
  }
60653
- const GridColumn = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["render", _sfc_render$i], ["__scopeId", "data-v-537fb4fc"]]);
60688
+ const GridColumn = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["render", _sfc_render$i], ["__scopeId", "data-v-d569c5cb"]]);
60654
60689
  const _sfc_main$h = defineComponent({
60655
60690
  name: "FilterDaterange",
60656
60691
  props: {
@@ -61751,6 +61786,9 @@ let GridInstanceJava$1 = class GridInstanceJava2 extends BaseInstance {
61751
61786
  break;
61752
61787
  case "refresh":
61753
61788
  if (this.utilities.isNull(item2.onclick)) {
61789
+ item2.isShow = () => {
61790
+ return !window["rightRefreshIsHide"];
61791
+ };
61754
61792
  item2.onclick = () => {
61755
61793
  this.doRefresh();
61756
61794
  };
@@ -61924,6 +61962,18 @@ let GridInstanceJava$1 = class GridInstanceJava2 extends BaseInstance {
61924
61962
  }
61925
61963
  });
61926
61964
  });
61965
+ /**
61966
+ * 河北项目需求---右侧刷新按钮改为和工具栏放一起
61967
+ * @returns
61968
+ */
61969
+ __publicField2(this, "getRefreshBtn", () => {
61970
+ var _a;
61971
+ if (!window["rightRefreshIsHide"]) {
61972
+ return null;
61973
+ } else {
61974
+ return (_a = this.props.option.rightToolbars) == null ? void 0 : _a.find((x) => x.name == "refresh");
61975
+ }
61976
+ });
61927
61977
  //#endregion 工具栏及默认事件 End
61928
61978
  //#region 公开方法
61929
61979
  /**
@@ -62234,8 +62284,8 @@ let GridInstanceJava$1 = class GridInstanceJava2 extends BaseInstance {
62234
62284
  }
62235
62285
  //#endregion 公开方法 END
62236
62286
  };
62237
- const GridJava_vue_vue_type_style_index_0_scoped_2aa27996_lang = "";
62238
- const _withScopeId$2 = (n) => (pushScopeId("data-v-2aa27996"), n = n(), popScopeId(), n);
62287
+ const GridJava_vue_vue_type_style_index_0_scoped_bae851ed_lang = "";
62288
+ const _withScopeId$2 = (n) => (pushScopeId("data-v-bae851ed"), n = n(), popScopeId(), n);
62239
62289
  const _hoisted_1$a = { class: "nv-crud nv-pos-r" };
62240
62290
  const _hoisted_2$7 = { class: "grid-msg" };
62241
62291
  const _hoisted_3$6 = { class: "nv-crud-body" };
@@ -62264,9 +62314,9 @@ function _sfc_render$f(_ctx, _cache, $props, $setup, $data, $options) {
62264
62314
  const _component_search_com = resolveComponent("search-com");
62265
62315
  const _component_Divider = resolveComponent("Divider");
62266
62316
  const _component_toolbar = resolveComponent("toolbar");
62317
+ const _component_Button = resolveComponent("Button");
62267
62318
  const _component_Space = resolveComponent("Space");
62268
62319
  const _component_Col = resolveComponent("Col");
62269
- const _component_Button = resolveComponent("Button");
62270
62320
  const _component_Row = resolveComponent("Row");
62271
62321
  const _component_grid_column = resolveComponent("grid-column");
62272
62322
  const _component_vxe_table = resolveComponent("vxe-table");
@@ -62306,24 +62356,44 @@ function _sfc_render$f(_ctx, _cache, $props, $setup, $data, $options) {
62306
62356
  createVNode(_component_Col, { flex: "auto" }, {
62307
62357
  default: withCtx(() => [
62308
62358
  createVNode(_component_Space, { wrap: "" }, {
62309
- default: withCtx(() => [
62310
- _ctx.hasTitle() ? (openBlock(), createElementBlock("div", _hoisted_6$3, toDisplayString(_ctx.title), 1)) : createCommentVNode("", true),
62311
- _ctx.hasTitleDivider() ? (openBlock(), createBlock(_component_Divider, {
62312
- key: 1,
62313
- type: "vertical"
62314
- })) : createCommentVNode("", true),
62315
- _ctx.hasToolbar() ? (openBlock(), createBlock(_component_toolbar, {
62316
- key: 2,
62317
- options: _ctx.option.toolbars,
62318
- isButtonGroup: _ctx.isButtonGroup,
62319
- maxShow: _ctx.maxShow
62320
- }, null, 8, ["options", "isButtonGroup", "maxShow"])) : createCommentVNode("", true),
62321
- _ctx.hasDivider() ? (openBlock(), createBlock(_component_Divider, {
62322
- key: 3,
62323
- type: "vertical"
62324
- })) : createCommentVNode("", true),
62325
- renderSlot(_ctx.$slots, "default", {}, void 0, true)
62326
- ]),
62359
+ default: withCtx(() => {
62360
+ var _a2, _b, _c, _d;
62361
+ return [
62362
+ _ctx.hasTitle() ? (openBlock(), createElementBlock("div", _hoisted_6$3, toDisplayString(_ctx.title), 1)) : createCommentVNode("", true),
62363
+ _ctx.hasTitleDivider() ? (openBlock(), createBlock(_component_Divider, {
62364
+ key: 1,
62365
+ type: "vertical"
62366
+ })) : createCommentVNode("", true),
62367
+ _ctx.hasToolbar() ? (openBlock(), createBlock(_component_toolbar, {
62368
+ key: 2,
62369
+ options: _ctx.option.toolbars,
62370
+ isButtonGroup: _ctx.isButtonGroup,
62371
+ maxShow: _ctx.maxShow
62372
+ }, null, 8, ["options", "isButtonGroup", "maxShow"])) : createCommentVNode("", true),
62373
+ _ctx.getRefreshBtn() ? (openBlock(), createBlock(_component_Button, {
62374
+ key: 3,
62375
+ icon: "md-refresh",
62376
+ type: _ctx.getRefreshBtn().type ? (_a2 = _ctx.getRefreshBtn()) == null ? void 0 : _a2.type : "primary",
62377
+ onClick: _cache[0] || (_cache[0] = ($event) => {
62378
+ var _a3;
62379
+ return _ctx.getRefreshBtn().onclick ? (_a3 = _ctx.getRefreshBtn()) == null ? void 0 : _a3.onclick() : {};
62380
+ }),
62381
+ size: _ctx.getRefreshBtn().size ? (_b = _ctx.getRefreshBtn()) == null ? void 0 : _b.size : "default",
62382
+ loading: _ctx.getRefreshBtn().loading ? (_c = _ctx.getRefreshBtn()) == null ? void 0 : _c.loading() : false,
62383
+ class: normalizeClass((_d = _ctx.getRefreshBtn()) == null ? void 0 : _d.class)
62384
+ }, {
62385
+ default: withCtx(() => [
62386
+ createTextVNode("刷新")
62387
+ ]),
62388
+ _: 1
62389
+ }, 8, ["type", "size", "loading", "class"])) : createCommentVNode("", true),
62390
+ _ctx.hasDivider() ? (openBlock(), createBlock(_component_Divider, {
62391
+ key: 4,
62392
+ type: "vertical"
62393
+ })) : createCommentVNode("", true),
62394
+ renderSlot(_ctx.$slots, "default", {}, void 0, true)
62395
+ ];
62396
+ }),
62327
62397
  _: 3
62328
62398
  })
62329
62399
  ]),
@@ -62452,7 +62522,7 @@ function _sfc_render$f(_ctx, _cache, $props, $setup, $data, $options) {
62452
62522
  _ctx.getIsPagination() ? (openBlock(), createElementBlock("div", _hoisted_9$2, [
62453
62523
  createVNode(_component_Page, {
62454
62524
  modelValue: _ctx.pageIndex,
62455
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => _ctx.pageIndex = $event),
62525
+ "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => _ctx.pageIndex = $event),
62456
62526
  total: _ctx.total,
62457
62527
  "page-size": _ctx.getPageSize(),
62458
62528
  simple: _ctx.getPageConfig("simple", false),
@@ -62462,7 +62532,7 @@ function _sfc_render$f(_ctx, _cache, $props, $setup, $data, $options) {
62462
62532
  ])) : createCommentVNode("", true)
62463
62533
  ]);
62464
62534
  }
62465
- const GridJava = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["render", _sfc_render$f], ["__scopeId", "data-v-2aa27996"]]);
62535
+ const GridJava = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["render", _sfc_render$f], ["__scopeId", "data-v-bae851ed"]]);
62466
62536
  const propDefine$p = {
62467
62537
  width: {
62468
62538
  // Box 宽度
@@ -241515,6 +241585,9 @@ class GridInstance extends BaseInstance {
241515
241585
  }
241516
241586
  break;
241517
241587
  case "refresh":
241588
+ item2.isShow = () => {
241589
+ return !window["rightRefreshIsHide"];
241590
+ };
241518
241591
  if (this.utilities.isNull(item2.onclick)) {
241519
241592
  item2.onclick = () => {
241520
241593
  this.doRefresh();
@@ -241806,6 +241879,18 @@ class GridInstance extends BaseInstance {
241806
241879
  }
241807
241880
  new ExcelHelper().downloadExcelAndSetStyle(exDatas, fileName + ".xlsx", merges, setStyle2);
241808
241881
  });
241882
+ /**
241883
+ * 河北项目需求---右侧刷新按钮改为和工具栏放一起
241884
+ * @returns
241885
+ */
241886
+ __publicField2(this, "getRefreshBtn", () => {
241887
+ var _a;
241888
+ if (!window["rightRefreshIsHide"]) {
241889
+ return null;
241890
+ } else {
241891
+ return (_a = this.props.option.rightToolbars) == null ? void 0 : _a.find((x) => x.name == "refresh");
241892
+ }
241893
+ });
241809
241894
  //#endregion 工具栏及默认事件 End
241810
241895
  //#region 公开方法
241811
241896
  /**
@@ -243064,6 +243149,9 @@ class GridInstanceJava extends BaseInstance {
243064
243149
  break;
243065
243150
  case "refresh":
243066
243151
  if (this.utilities.isNull(item2.onclick)) {
243152
+ item2.isShow = () => {
243153
+ return !window["rightRefreshIsHide"];
243154
+ };
243067
243155
  item2.onclick = () => {
243068
243156
  this.doRefresh();
243069
243157
  };
@@ -243237,6 +243325,18 @@ class GridInstanceJava extends BaseInstance {
243237
243325
  }
243238
243326
  });
243239
243327
  });
243328
+ /**
243329
+ * 河北项目需求---右侧刷新按钮改为和工具栏放一起
243330
+ * @returns
243331
+ */
243332
+ __publicField2(this, "getRefreshBtn", () => {
243333
+ var _a;
243334
+ if (!window["rightRefreshIsHide"]) {
243335
+ return null;
243336
+ } else {
243337
+ return (_a = this.props.option.rightToolbars) == null ? void 0 : _a.find((x) => x.name == "refresh");
243338
+ }
243339
+ });
243240
243340
  //#endregion 工具栏及默认事件 End
243241
243341
  //#region 公开方法
243242
243342
  /**