@newview/ui 1.1.96 → 1.1.98
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 +4 -0
- package/dist/newview-ui.js +34 -19
- package/dist/newview-ui.umd.cjs +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/types/Grid.d.ts +5 -0
package/README.md
CHANGED
package/dist/newview-ui.js
CHANGED
|
@@ -32185,7 +32185,7 @@ let SearchComInstance$1 = class SearchComInstance2 extends BaseInstance {
|
|
|
32185
32185
|
}
|
|
32186
32186
|
//#endregion AutoComplete END
|
|
32187
32187
|
};
|
|
32188
|
-
const
|
|
32188
|
+
const SearchCom_vue_vue_type_style_index_0_scoped_4a07b3ec_lang = "";
|
|
32189
32189
|
function _sfc_render$o(_ctx, _cache, $props, $setup, $data, $options) {
|
|
32190
32190
|
const _component_Input = resolveComponent("Input");
|
|
32191
32191
|
const _component_Radio = resolveComponent("Radio");
|
|
@@ -32305,22 +32305,22 @@ function _sfc_render$o(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
32305
32305
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "data", "filter-method", "placeholder", "style"])) : createCommentVNode("", true),
|
|
32306
32306
|
option.type == "DatePicker" ? (openBlock(), createBlock(_component_DatePicker, {
|
|
32307
32307
|
key: 6,
|
|
32308
|
-
|
|
32309
|
-
"onUpdate:modelValue": ($event) => _ctx.formModel[option.field] = $event,
|
|
32308
|
+
"model-value": _ctx.formModel[option.field],
|
|
32310
32309
|
type: option.pickerType,
|
|
32311
32310
|
placeholder: option.placeholder,
|
|
32312
32311
|
format: option.format,
|
|
32313
|
-
style: normalizeStyle({ width: _ctx.getWidth(option) })
|
|
32314
|
-
|
|
32312
|
+
style: normalizeStyle({ width: _ctx.getWidth(option) }),
|
|
32313
|
+
onOnChange: ($event) => _ctx.formModel[option.field] = $event
|
|
32314
|
+
}, null, 8, ["model-value", "type", "placeholder", "format", "style", "onOnChange"])) : createCommentVNode("", true),
|
|
32315
32315
|
option.type == "TimePicker" ? (openBlock(), createBlock(_component_TimePicker, {
|
|
32316
32316
|
key: 7,
|
|
32317
|
-
|
|
32318
|
-
"onUpdate:modelValue": ($event) => _ctx.formModel[option.field] = $event,
|
|
32317
|
+
"model-value": _ctx.formModel[option.field],
|
|
32319
32318
|
type: option.pickerType,
|
|
32320
32319
|
placeholder: option.placeholder,
|
|
32321
32320
|
format: option.format,
|
|
32322
|
-
style: normalizeStyle({ width: _ctx.getWidth(option) })
|
|
32323
|
-
|
|
32321
|
+
style: normalizeStyle({ width: _ctx.getWidth(option) }),
|
|
32322
|
+
onOnChange: ($event) => _ctx.formModel[option.field] = $event
|
|
32323
|
+
}, null, 8, ["model-value", "type", "placeholder", "format", "style", "onOnChange"])) : createCommentVNode("", true),
|
|
32324
32324
|
option.type == "InputNumber" ? (openBlock(), createBlock(_component_InputNumber, {
|
|
32325
32325
|
key: 8,
|
|
32326
32326
|
modelValue: _ctx.formModel[option.field],
|
|
@@ -32373,7 +32373,7 @@ function _sfc_render$o(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
32373
32373
|
_: 1
|
|
32374
32374
|
}, 8, ["model", "label-width"]);
|
|
32375
32375
|
}
|
|
32376
|
-
const SearchCom = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["render", _sfc_render$o], ["__scopeId", "data-v-
|
|
32376
|
+
const SearchCom = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["render", _sfc_render$o], ["__scopeId", "data-v-4a07b3ec"]]);
|
|
32377
32377
|
const propDefine$u = {
|
|
32378
32378
|
options: {
|
|
32379
32379
|
// 配置项
|
|
@@ -33002,6 +33002,7 @@ let GridColumnInstance$1 = class GridColumnInstance2 extends BaseInstance {
|
|
|
33002
33002
|
//#endregion 事件 END
|
|
33003
33003
|
//#region 表头筛选
|
|
33004
33004
|
__publicField2(this, "getColumFilters", (filter3) => {
|
|
33005
|
+
debugger;
|
|
33005
33006
|
if (filter3) {
|
|
33006
33007
|
if (filter3.type == "select") {
|
|
33007
33008
|
return filter3.options.map((e) => {
|
|
@@ -33009,7 +33010,11 @@ let GridColumnInstance$1 = class GridColumnInstance2 extends BaseInstance {
|
|
|
33009
33010
|
return e;
|
|
33010
33011
|
});
|
|
33011
33012
|
} else if (filter3.type == "daterange") {
|
|
33012
|
-
|
|
33013
|
+
if ((filter3 == null ? void 0 : filter3.data) && (filter3 == null ? void 0 : filter3.data.length) >= 2) {
|
|
33014
|
+
return [{ data: filter3.data }];
|
|
33015
|
+
} else {
|
|
33016
|
+
return [{ data: ["", ""] }];
|
|
33017
|
+
}
|
|
33013
33018
|
} else if (filter3.type == "numberrange") {
|
|
33014
33019
|
return [{ data: ["", ""] }];
|
|
33015
33020
|
} else {
|
|
@@ -33626,6 +33631,11 @@ const _sfc_main$l = defineComponent({
|
|
|
33626
33631
|
const { column } = params;
|
|
33627
33632
|
const option = column.filters[0];
|
|
33628
33633
|
filterDateRangeVal.option = option;
|
|
33634
|
+
if (option.data && option.data.length >= 2) {
|
|
33635
|
+
const { $panel } = params;
|
|
33636
|
+
const checked = option.data[0] && option.data[1];
|
|
33637
|
+
$panel.changeOption(null, checked, toRaw(option));
|
|
33638
|
+
}
|
|
33629
33639
|
}
|
|
33630
33640
|
};
|
|
33631
33641
|
const changeOptionEvent = (datevalue) => {
|
|
@@ -33763,7 +33773,9 @@ const CreatGridRenderer$1 = () => {
|
|
|
33763
33773
|
},
|
|
33764
33774
|
// 重置筛选复原方法(当未点击确认时,该选项将被恢复为默认值)
|
|
33765
33775
|
filterRecoverMethod({ option }) {
|
|
33766
|
-
option.data
|
|
33776
|
+
if (!(option.data && option.data.length >= 2)) {
|
|
33777
|
+
option.data = ["", ""];
|
|
33778
|
+
}
|
|
33767
33779
|
}
|
|
33768
33780
|
});
|
|
33769
33781
|
}
|
|
@@ -58682,8 +58694,9 @@ let GridInstance$1 = class GridInstance2 extends BaseInstance {
|
|
|
58682
58694
|
}
|
|
58683
58695
|
break;
|
|
58684
58696
|
case "daterange":
|
|
58685
|
-
|
|
58686
|
-
|
|
58697
|
+
let startDate = this.utilities.format(value[0], "yyyy-MM-DD");
|
|
58698
|
+
let EndDate = this.utilities.format(value[1], "yyyy-MM-DD");
|
|
58699
|
+
_queryWrapper.between(`date_format(${key2},'%Y-%m-%d')`, startDate, EndDate);
|
|
58687
58700
|
break;
|
|
58688
58701
|
case "numberrange":
|
|
58689
58702
|
if (!this.utilities.isNull(value[0])) {
|
|
@@ -59442,8 +59455,8 @@ let GridInstance$1 = class GridInstance2 extends BaseInstance {
|
|
|
59442
59455
|
}
|
|
59443
59456
|
//#endregion 公开方法 END
|
|
59444
59457
|
};
|
|
59445
|
-
const
|
|
59446
|
-
const _withScopeId$3 = (n) => (pushScopeId("data-v-
|
|
59458
|
+
const Grid_vue_vue_type_style_index_0_scoped_2a3c4718_lang = "";
|
|
59459
|
+
const _withScopeId$3 = (n) => (pushScopeId("data-v-2a3c4718"), n = n(), popScopeId(), n);
|
|
59447
59460
|
const _hoisted_1$e = { class: "nv-crud nv-pos-r" };
|
|
59448
59461
|
const _hoisted_2$b = { class: "grid-msg" };
|
|
59449
59462
|
const _hoisted_3$9 = { class: "nv-crud-body" };
|
|
@@ -59480,6 +59493,7 @@ function _sfc_render$j(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
59480
59493
|
const _component_vxe_table = resolveComponent("vxe-table");
|
|
59481
59494
|
const _component_Page = resolveComponent("Page");
|
|
59482
59495
|
return openBlock(), createElementBlock("div", _hoisted_1$e, [
|
|
59496
|
+
createTextVNode(" 123 "),
|
|
59483
59497
|
createVNode(_component_Spin, {
|
|
59484
59498
|
fix: "",
|
|
59485
59499
|
show: _ctx.doMethodLoading.show,
|
|
@@ -59675,7 +59689,7 @@ function _sfc_render$j(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
59675
59689
|
])) : createCommentVNode("", true)
|
|
59676
59690
|
]);
|
|
59677
59691
|
}
|
|
59678
|
-
const Grid = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["render", _sfc_render$j], ["__scopeId", "data-v-
|
|
59692
|
+
const Grid = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["render", _sfc_render$j], ["__scopeId", "data-v-2a3c4718"]]);
|
|
59679
59693
|
const GridCellContent = defineComponent({
|
|
59680
59694
|
name: "GridCellContent",
|
|
59681
59695
|
props: {
|
|
@@ -241265,8 +241279,9 @@ class GridInstance extends BaseInstance {
|
|
|
241265
241279
|
}
|
|
241266
241280
|
break;
|
|
241267
241281
|
case "daterange":
|
|
241268
|
-
|
|
241269
|
-
|
|
241282
|
+
let startDate = this.utilities.format(value[0], "yyyy-MM-DD");
|
|
241283
|
+
let EndDate = this.utilities.format(value[1], "yyyy-MM-DD");
|
|
241284
|
+
_queryWrapper.between(`date_format(${key2},'%Y-%m-%d')`, startDate, EndDate);
|
|
241270
241285
|
break;
|
|
241271
241286
|
case "numberrange":
|
|
241272
241287
|
if (!this.utilities.isNull(value[0])) {
|