@newview/ui 1.2.10 → 1.2.12
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 +3 -0
- package/dist/newview-ui.js +148 -48
- package/dist/newview-ui.umd.cjs +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
package/dist/newview-ui.js
CHANGED
|
@@ -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
|
|
59501
|
-
const _withScopeId$3 = (n) => (pushScopeId("data-v-
|
|
59515
|
+
const Grid_vue_vue_type_style_index_0_scoped_cad0be75_lang = "";
|
|
59516
|
+
const _withScopeId$3 = (n) => (pushScopeId("data-v-cad0be75"), 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");
|
|
@@ -59563,30 +59578,50 @@ function _sfc_render$j(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
59563
59578
|
], 512), [
|
|
59564
59579
|
[vShow, _ctx.showSearch]
|
|
59565
59580
|
]),
|
|
59566
|
-
_ctx.isShowSearchBtn || _ctx.hasToolbar() || _ctx.hasRightToolbar() || _ctx.isHasSlot ? (openBlock(), createElementBlock("div", _hoisted_5$6, [
|
|
59581
|
+
_ctx.isShowSearchBtn || _ctx.hasToolbar() || _ctx.getRefreshBtn() || _ctx.hasRightToolbar() || _ctx.isHasSlot ? (openBlock(), createElementBlock("div", _hoisted_5$6, [
|
|
59567
59582
|
createVNode(_component_Row, null, {
|
|
59568
59583
|
default: withCtx(() => [
|
|
59569
59584
|
createVNode(_component_Col, { flex: "auto" }, {
|
|
59570
59585
|
default: withCtx(() => [
|
|
59571
59586
|
createVNode(_component_Space, { wrap: "" }, {
|
|
59572
|
-
default: withCtx(() =>
|
|
59573
|
-
|
|
59574
|
-
|
|
59575
|
-
|
|
59576
|
-
|
|
59577
|
-
|
|
59578
|
-
|
|
59579
|
-
|
|
59580
|
-
|
|
59581
|
-
|
|
59582
|
-
|
|
59583
|
-
|
|
59584
|
-
|
|
59585
|
-
|
|
59586
|
-
|
|
59587
|
-
|
|
59588
|
-
|
|
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[
|
|
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-
|
|
59768
|
+
const Grid = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["render", _sfc_render$j], ["__scopeId", "data-v-cad0be75"]]);
|
|
59734
59769
|
const GridCellContent = defineComponent({
|
|
59735
59770
|
name: "GridCellContent",
|
|
59736
59771
|
props: {
|
|
@@ -61750,6 +61785,9 @@ let GridInstanceJava$1 = class GridInstanceJava2 extends BaseInstance {
|
|
|
61750
61785
|
}
|
|
61751
61786
|
break;
|
|
61752
61787
|
case "refresh":
|
|
61788
|
+
item2.isShow = () => {
|
|
61789
|
+
return !window["rightRefreshIsHide"];
|
|
61790
|
+
};
|
|
61753
61791
|
if (this.utilities.isNull(item2.onclick)) {
|
|
61754
61792
|
item2.onclick = () => {
|
|
61755
61793
|
this.doRefresh();
|
|
@@ -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
|
|
62238
|
-
const _withScopeId$2 = (n) => (pushScopeId("data-v-
|
|
62287
|
+
const GridJava_vue_vue_type_style_index_0_scoped_9f5bd71e_lang = "";
|
|
62288
|
+
const _withScopeId$2 = (n) => (pushScopeId("data-v-9f5bd71e"), 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");
|
|
@@ -62300,30 +62350,50 @@ function _sfc_render$f(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
62300
62350
|
], 512), [
|
|
62301
62351
|
[vShow, _ctx.showSearch]
|
|
62302
62352
|
]),
|
|
62303
|
-
_ctx.isShowSearchBtn || _ctx.hasToolbar() || _ctx.hasRightToolbar() || _ctx.isHasSlot ? (openBlock(), createElementBlock("div", _hoisted_5$5, [
|
|
62353
|
+
_ctx.isShowSearchBtn || _ctx.hasToolbar() || _ctx.getRefreshBtn() || _ctx.hasRightToolbar() || _ctx.isHasSlot ? (openBlock(), createElementBlock("div", _hoisted_5$5, [
|
|
62304
62354
|
createVNode(_component_Row, null, {
|
|
62305
62355
|
default: withCtx(() => [
|
|
62306
62356
|
createVNode(_component_Col, { flex: "auto" }, {
|
|
62307
62357
|
default: withCtx(() => [
|
|
62308
62358
|
createVNode(_component_Space, { wrap: "" }, {
|
|
62309
|
-
default: withCtx(() =>
|
|
62310
|
-
|
|
62311
|
-
|
|
62312
|
-
|
|
62313
|
-
|
|
62314
|
-
|
|
62315
|
-
|
|
62316
|
-
|
|
62317
|
-
|
|
62318
|
-
|
|
62319
|
-
|
|
62320
|
-
|
|
62321
|
-
|
|
62322
|
-
|
|
62323
|
-
|
|
62324
|
-
|
|
62325
|
-
|
|
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[
|
|
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-
|
|
62535
|
+
const GridJava = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["render", _sfc_render$f], ["__scopeId", "data-v-9f5bd71e"]]);
|
|
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
|
/**
|
|
@@ -243063,6 +243148,9 @@ class GridInstanceJava extends BaseInstance {
|
|
|
243063
243148
|
}
|
|
243064
243149
|
break;
|
|
243065
243150
|
case "refresh":
|
|
243151
|
+
item2.isShow = () => {
|
|
243152
|
+
return !window["rightRefreshIsHide"];
|
|
243153
|
+
};
|
|
243066
243154
|
if (this.utilities.isNull(item2.onclick)) {
|
|
243067
243155
|
item2.onclick = () => {
|
|
243068
243156
|
this.doRefresh();
|
|
@@ -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
|
/**
|