@newview/ui 1.2.2 → 1.2.4
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 -6
- package/dist/newview-ui.js +25 -8
- 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
|
@@ -31459,7 +31459,7 @@ let ComFormInstance$1 = class ComFormInstance2 extends BaseInstance {
|
|
|
31459
31459
|
}
|
|
31460
31460
|
//#endregion 公开Api End
|
|
31461
31461
|
};
|
|
31462
|
-
const
|
|
31462
|
+
const ComForm_vue_vue_type_style_index_0_scoped_80b78296_lang = "";
|
|
31463
31463
|
const _hoisted_1$j = { class: "comForm" };
|
|
31464
31464
|
const _hoisted_2$g = ["onClick"];
|
|
31465
31465
|
const _hoisted_3$d = { key: 1 };
|
|
@@ -31603,6 +31603,7 @@ function _sfc_render$p(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
31603
31603
|
key: 3,
|
|
31604
31604
|
modelValue: _ctx.formModel[item2.model],
|
|
31605
31605
|
"onUpdate:modelValue": ($event) => _ctx.formModel[item2.model] = $event,
|
|
31606
|
+
title: _ctx.formModel[item2.model],
|
|
31606
31607
|
type: _ctx.getPropValue(item2.inputProp, "type"),
|
|
31607
31608
|
size: _ctx.getPropValue(item2.inputProp, "size"),
|
|
31608
31609
|
placeholder: _ctx.getPropValue(item2.inputProp, "placeholder"),
|
|
@@ -31654,7 +31655,7 @@ function _sfc_render$p(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
31654
31655
|
]),
|
|
31655
31656
|
key: "1"
|
|
31656
31657
|
} : void 0
|
|
31657
|
-
]), 1032, ["modelValue", "onUpdate:modelValue", "type", "size", "placeholder", "clearable", "border", "disabled", "readonly", "maxlength", "show-word-limit", "password", "icon", "prefix", "suffix", "search", "enter-button", "rows", "autosize", "number", "autofocus", "autocomplete", "element-id", "spellcheck", "wrap", "onOnEnter", "onOnClick", "onOnChange", "onOnFocus", "onOnBlur", "onOnKeyup", "onOnKeydown", "onOnKeypress", "onOnSearch", "onOnClear"])) : createCommentVNode("", true),
|
|
31658
|
+
]), 1032, ["modelValue", "onUpdate:modelValue", "title", "type", "size", "placeholder", "clearable", "border", "disabled", "readonly", "maxlength", "show-word-limit", "password", "icon", "prefix", "suffix", "search", "enter-button", "rows", "autosize", "number", "autofocus", "autocomplete", "element-id", "spellcheck", "wrap", "onOnEnter", "onOnClick", "onOnChange", "onOnFocus", "onOnBlur", "onOnKeyup", "onOnKeydown", "onOnKeypress", "onOnSearch", "onOnClear"])) : createCommentVNode("", true),
|
|
31658
31659
|
item2.type == "InputNumber" ? (openBlock(), createElementBlock("div", {
|
|
31659
31660
|
key: 4,
|
|
31660
31661
|
class: normalizeClass(["ivu-input-group ivu-input-wrapper", { "ivu-input-group-with-append": _ctx.getAppend(item2.inputNumberProp) != "" }])
|
|
@@ -32047,7 +32048,7 @@ function _sfc_render$p(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
32047
32048
|
], 2)
|
|
32048
32049
|
]);
|
|
32049
32050
|
}
|
|
32050
|
-
const ComForm = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["render", _sfc_render$p], ["__scopeId", "data-v-
|
|
32051
|
+
const ComForm = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["render", _sfc_render$p], ["__scopeId", "data-v-80b78296"]]);
|
|
32051
32052
|
const style = "";
|
|
32052
32053
|
const propDefine$v = {
|
|
32053
32054
|
options: {
|
|
@@ -32679,7 +32680,7 @@ const GridCellContent$1 = defineComponent({
|
|
|
32679
32680
|
render() {
|
|
32680
32681
|
var _a;
|
|
32681
32682
|
if (utilities.isNull(this.$props.column.format)) {
|
|
32682
|
-
if (this.$props.column.colType === "date") {
|
|
32683
|
+
if (this.$props.column.colType === "date" && this.$props.row[this.$props.column.field]) {
|
|
32683
32684
|
if ((_a = this.$props.column.datePicker) == null ? void 0 : _a.format) {
|
|
32684
32685
|
return utilities.format(new Date(this.$props.row[this.$props.column.field]), this.$props.column.datePicker.format);
|
|
32685
32686
|
}
|
|
@@ -58657,12 +58658,13 @@ let GridInstance$1 = class GridInstance2 extends BaseInstance {
|
|
|
58657
58658
|
this.queryWrapper.value = _queryWrapper;
|
|
58658
58659
|
this.defaultqueryWrapper = this.utilities.deepCopy(_queryWrapper.getQuerys());
|
|
58659
58660
|
this.loadData(async (options2) => {
|
|
58660
|
-
const apiResult = options2.isPagination ? await this.props.option.api.getEntitiesPageDynamic(options2.page, options2.pageSize,
|
|
58661
|
+
const apiResult = options2.isPagination ? await this.props.option.api.getEntitiesPageDynamic(options2.page, options2.pageSize, this.queryWrapper.value) : await this.props.option.api.getEntitiesDynamic(this.queryWrapper.value);
|
|
58661
58662
|
const result = this.utilities.parseApiResult(apiResult);
|
|
58662
58663
|
options2.success(result);
|
|
58663
58664
|
});
|
|
58664
58665
|
}
|
|
58665
58666
|
});
|
|
58667
|
+
__publicField2(this, "headerFilterParam", {});
|
|
58666
58668
|
/**
|
|
58667
58669
|
* 加载表头筛选数据--组件自带默认方法
|
|
58668
58670
|
* @param _queryWrapper
|
|
@@ -58671,6 +58673,7 @@ let GridInstance$1 = class GridInstance2 extends BaseInstance {
|
|
|
58671
58673
|
if (this.utilities.isNull(this.props.option.api)) {
|
|
58672
58674
|
this.message.error("未绑定Api");
|
|
58673
58675
|
} else {
|
|
58676
|
+
this.headerFilterParam = filterParam;
|
|
58674
58677
|
let _queryWrapper = this.loadHeaderFilter(filterParam);
|
|
58675
58678
|
this.loadDataByHeaderFilter(_queryWrapper);
|
|
58676
58679
|
}
|
|
@@ -58731,6 +58734,7 @@ let GridInstance$1 = class GridInstance2 extends BaseInstance {
|
|
|
58731
58734
|
* @param _queryWrapper
|
|
58732
58735
|
*/
|
|
58733
58736
|
__publicField2(this, "loadDataByHeaderFilter", async (_queryWrapper) => {
|
|
58737
|
+
this.queryWrapper.value = _queryWrapper;
|
|
58734
58738
|
let options2 = this.getLoadDataOptions();
|
|
58735
58739
|
this.loadDataing.value = true;
|
|
58736
58740
|
const apiResult = options2.isPagination ? await this.props.option.api.getEntitiesPageDynamic(options2.page, options2.pageSize, _queryWrapper) : await this.props.option.api.getEntitiesDynamic(_queryWrapper);
|
|
@@ -58743,7 +58747,13 @@ let GridInstance$1 = class GridInstance2 extends BaseInstance {
|
|
|
58743
58747
|
*/
|
|
58744
58748
|
__publicField2(this, "refreshData", async () => {
|
|
58745
58749
|
const $table = this.xTable.value;
|
|
58750
|
+
$table.clearFilter();
|
|
58746
58751
|
if (!this.utilities.isNull(this.readFunction)) {
|
|
58752
|
+
let _queryWrapper = QueryWrapper.create();
|
|
58753
|
+
if (this.defaultqueryWrapper) {
|
|
58754
|
+
_queryWrapper.querys = this.utilities.deepCopy(this.defaultqueryWrapper);
|
|
58755
|
+
}
|
|
58756
|
+
this.queryWrapper.value = _queryWrapper;
|
|
58747
58757
|
this.loadDataing.value = true;
|
|
58748
58758
|
await this.readFunction(this.getLoadDataOptions());
|
|
58749
58759
|
this.loadDataing.value = false;
|
|
@@ -58753,7 +58763,6 @@ let GridInstance$1 = class GridInstance2 extends BaseInstance {
|
|
|
58753
58763
|
}
|
|
58754
58764
|
$table.reloadData(this.datas.value);
|
|
58755
58765
|
}
|
|
58756
|
-
$table.clearFilter();
|
|
58757
58766
|
});
|
|
58758
58767
|
/**
|
|
58759
58768
|
* 页码改变
|
|
@@ -241254,12 +241263,13 @@ class GridInstance extends BaseInstance {
|
|
|
241254
241263
|
this.queryWrapper.value = _queryWrapper;
|
|
241255
241264
|
this.defaultqueryWrapper = this.utilities.deepCopy(_queryWrapper.getQuerys());
|
|
241256
241265
|
this.loadData(async (options2) => {
|
|
241257
|
-
const apiResult = options2.isPagination ? await this.props.option.api.getEntitiesPageDynamic(options2.page, options2.pageSize,
|
|
241266
|
+
const apiResult = options2.isPagination ? await this.props.option.api.getEntitiesPageDynamic(options2.page, options2.pageSize, this.queryWrapper.value) : await this.props.option.api.getEntitiesDynamic(this.queryWrapper.value);
|
|
241258
241267
|
const result = this.utilities.parseApiResult(apiResult);
|
|
241259
241268
|
options2.success(result);
|
|
241260
241269
|
});
|
|
241261
241270
|
}
|
|
241262
241271
|
});
|
|
241272
|
+
__publicField2(this, "headerFilterParam", {});
|
|
241263
241273
|
/**
|
|
241264
241274
|
* 加载表头筛选数据--组件自带默认方法
|
|
241265
241275
|
* @param _queryWrapper
|
|
@@ -241268,6 +241278,7 @@ class GridInstance extends BaseInstance {
|
|
|
241268
241278
|
if (this.utilities.isNull(this.props.option.api)) {
|
|
241269
241279
|
this.message.error("未绑定Api");
|
|
241270
241280
|
} else {
|
|
241281
|
+
this.headerFilterParam = filterParam;
|
|
241271
241282
|
let _queryWrapper = this.loadHeaderFilter(filterParam);
|
|
241272
241283
|
this.loadDataByHeaderFilter(_queryWrapper);
|
|
241273
241284
|
}
|
|
@@ -241328,6 +241339,7 @@ class GridInstance extends BaseInstance {
|
|
|
241328
241339
|
* @param _queryWrapper
|
|
241329
241340
|
*/
|
|
241330
241341
|
__publicField2(this, "loadDataByHeaderFilter", async (_queryWrapper) => {
|
|
241342
|
+
this.queryWrapper.value = _queryWrapper;
|
|
241331
241343
|
let options2 = this.getLoadDataOptions();
|
|
241332
241344
|
this.loadDataing.value = true;
|
|
241333
241345
|
const apiResult = options2.isPagination ? await this.props.option.api.getEntitiesPageDynamic(options2.page, options2.pageSize, _queryWrapper) : await this.props.option.api.getEntitiesDynamic(_queryWrapper);
|
|
@@ -241340,7 +241352,13 @@ class GridInstance extends BaseInstance {
|
|
|
241340
241352
|
*/
|
|
241341
241353
|
__publicField2(this, "refreshData", async () => {
|
|
241342
241354
|
const $table = this.xTable.value;
|
|
241355
|
+
$table.clearFilter();
|
|
241343
241356
|
if (!this.utilities.isNull(this.readFunction)) {
|
|
241357
|
+
let _queryWrapper = QueryWrapper.create();
|
|
241358
|
+
if (this.defaultqueryWrapper) {
|
|
241359
|
+
_queryWrapper.querys = this.utilities.deepCopy(this.defaultqueryWrapper);
|
|
241360
|
+
}
|
|
241361
|
+
this.queryWrapper.value = _queryWrapper;
|
|
241344
241362
|
this.loadDataing.value = true;
|
|
241345
241363
|
await this.readFunction(this.getLoadDataOptions());
|
|
241346
241364
|
this.loadDataing.value = false;
|
|
@@ -241350,7 +241368,6 @@ class GridInstance extends BaseInstance {
|
|
|
241350
241368
|
}
|
|
241351
241369
|
$table.reloadData(this.datas.value);
|
|
241352
241370
|
}
|
|
241353
|
-
$table.clearFilter();
|
|
241354
241371
|
});
|
|
241355
241372
|
/**
|
|
241356
241373
|
* 页码改变
|