@newview/ui 1.1.43 → 1.1.44
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/dist/newview-ui.js +63 -24
- package/dist/newview-ui.umd.cjs +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/types/ComForm.d.ts +7 -0
package/dist/newview-ui.js
CHANGED
|
@@ -31054,7 +31054,7 @@ class IconSelectInstance extends BaseInstance {
|
|
|
31054
31054
|
}
|
|
31055
31055
|
const IconSelect_vue_vue_type_style_index_0_lang = "";
|
|
31056
31056
|
const _hoisted_1$g = { class: "icon-select" };
|
|
31057
|
-
const _hoisted_2$
|
|
31057
|
+
const _hoisted_2$d = { class: "icon-select-search" };
|
|
31058
31058
|
const _hoisted_3$a = { class: "icon-select-list" };
|
|
31059
31059
|
const _hoisted_4$7 = ["onClick", "title"];
|
|
31060
31060
|
function _sfc_render$m(_ctx, _cache, $props, $setup, $data, $options) {
|
|
@@ -31077,7 +31077,7 @@ function _sfc_render$m(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
31077
31077
|
createElementVNode("div", {
|
|
31078
31078
|
style: normalizeStyle({ width: _ctx.poptipWidth + "px" })
|
|
31079
31079
|
}, [
|
|
31080
|
-
createElementVNode("div", _hoisted_2$
|
|
31080
|
+
createElementVNode("div", _hoisted_2$d, [
|
|
31081
31081
|
createVNode(_component_Input, {
|
|
31082
31082
|
modelValue: _ctx.iconSearch,
|
|
31083
31083
|
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => _ctx.iconSearch = $event),
|
|
@@ -31279,9 +31279,9 @@ let ComFormInstance$1 = class ComFormInstance2 extends BaseInstance {
|
|
|
31279
31279
|
}
|
|
31280
31280
|
//#endregion 公开Api End
|
|
31281
31281
|
};
|
|
31282
|
-
const
|
|
31282
|
+
const ComForm_vue_vue_type_style_index_0_scoped_c0789c35_lang = "";
|
|
31283
31283
|
const _hoisted_1$f = { class: "comForm" };
|
|
31284
|
-
const _hoisted_2$
|
|
31284
|
+
const _hoisted_2$c = { key: 1 };
|
|
31285
31285
|
const _hoisted_3$9 = ["onClick"];
|
|
31286
31286
|
function _sfc_render$l(_ctx, _cache, $props, $setup, $data, $options) {
|
|
31287
31287
|
const _component_com_form = resolveComponent("com-form", true);
|
|
@@ -31315,7 +31315,7 @@ function _sfc_render$l(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
31315
31315
|
createElementVNode("div", {
|
|
31316
31316
|
class: normalizeClass({ onlyViewForm: _ctx.onlyView })
|
|
31317
31317
|
}, [
|
|
31318
|
-
createVNode(_component_Row, { gutter:
|
|
31318
|
+
createVNode(_component_Row, { gutter: 40 }, {
|
|
31319
31319
|
default: withCtx(() => [
|
|
31320
31320
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.formItems, (item2, index2) => {
|
|
31321
31321
|
return withDirectives((openBlock(), createBlock(_component_Col, {
|
|
@@ -31371,7 +31371,7 @@ function _sfc_render$l(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
31371
31371
|
loading: _ctx.getPropValue(item2.switchProp, "loading"),
|
|
31372
31372
|
onOnChange: ($event) => _ctx.getPropEvent(item2.switchProp, "onChange")($event, item2)
|
|
31373
31373
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "size", "disabled", "true-value", "false-value", "true-color", "false-color", "before-change", "loading", "onOnChange"])) : createCommentVNode("", true),
|
|
31374
|
-
item2.type == "Label" ? (openBlock(), createElementBlock("span", _hoisted_2$
|
|
31374
|
+
item2.type == "Label" ? (openBlock(), createElementBlock("span", _hoisted_2$c, toDisplayString(_ctx.formModel[item2.model]), 1)) : createCommentVNode("", true),
|
|
31375
31375
|
item2.type == "Button" ? (openBlock(), createBlock(_component_Button, {
|
|
31376
31376
|
key: 2,
|
|
31377
31377
|
type: _ctx.getPropValue(item2.buttonProp, "type"),
|
|
@@ -31808,7 +31808,7 @@ function _sfc_render$l(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
31808
31808
|
], 2)
|
|
31809
31809
|
]);
|
|
31810
31810
|
}
|
|
31811
|
-
const ComForm = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["render", _sfc_render$l], ["__scopeId", "data-v-
|
|
31811
|
+
const ComForm = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["render", _sfc_render$l], ["__scopeId", "data-v-c0789c35"]]);
|
|
31812
31812
|
const style = "";
|
|
31813
31813
|
const propDefine$s = {
|
|
31814
31814
|
options: {
|
|
@@ -32293,7 +32293,7 @@ let ToolbarInstance$1 = class ToolbarInstance2 extends BaseInstance {
|
|
|
32293
32293
|
};
|
|
32294
32294
|
const Toolbar_vue_vue_type_style_index_0_scoped_69337cbe_lang = "";
|
|
32295
32295
|
const _hoisted_1$e = { class: "toolbar" };
|
|
32296
|
-
const _hoisted_2$
|
|
32296
|
+
const _hoisted_2$b = { style: { "display": "none" } };
|
|
32297
32297
|
const _hoisted_3$8 = { key: 0 };
|
|
32298
32298
|
function _sfc_render$j(_ctx, _cache, $props, $setup, $data, $options) {
|
|
32299
32299
|
const _component_Button = resolveComponent("Button");
|
|
@@ -32306,7 +32306,7 @@ function _sfc_render$j(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
32306
32306
|
const _component_Space = resolveComponent("Space");
|
|
32307
32307
|
return openBlock(), createElementBlock("div", _hoisted_1$e, [
|
|
32308
32308
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.mainOptions, (item2, index2) => {
|
|
32309
|
-
return openBlock(), createElementBlock("div", _hoisted_2$
|
|
32309
|
+
return openBlock(), createElementBlock("div", _hoisted_2$b, [
|
|
32310
32310
|
_ctx.getIsShow(item2) ? (openBlock(), createElementBlock("span", _hoisted_3$8)) : createCommentVNode("", true)
|
|
32311
32311
|
]);
|
|
32312
32312
|
}), 256)),
|
|
@@ -32679,6 +32679,16 @@ class GridColumnInstance extends BaseInstance {
|
|
|
32679
32679
|
}
|
|
32680
32680
|
return column.visible;
|
|
32681
32681
|
});
|
|
32682
|
+
__publicField2(this, "getHeaderAlign", (column) => {
|
|
32683
|
+
return column.headerAlign ? column.headerAlign : this.getAlign(column);
|
|
32684
|
+
});
|
|
32685
|
+
__publicField2(this, "getAlign", (column) => {
|
|
32686
|
+
let defaultAlign = "left";
|
|
32687
|
+
if (column.colType == "num") {
|
|
32688
|
+
defaultAlign = "right";
|
|
32689
|
+
}
|
|
32690
|
+
return column.align ? column.align : defaultAlign;
|
|
32691
|
+
});
|
|
32682
32692
|
//#endregion Ch 列 属性获取 END
|
|
32683
32693
|
//#region switchConfig 列 属性获取
|
|
32684
32694
|
__publicField2(this, "getIsEnableSw", (row) => {
|
|
@@ -32914,8 +32924,12 @@ class GridColumnInstance extends BaseInstance {
|
|
|
32914
32924
|
//#endregion
|
|
32915
32925
|
}
|
|
32916
32926
|
const GridColumn_vue_vue_type_style_index_0_lang = "";
|
|
32917
|
-
const
|
|
32927
|
+
const GridColumn_vue_vue_type_style_index_1_scoped_be3de0b4_lang = "";
|
|
32918
32928
|
const _hoisted_1$d = { class: "gridColumn" };
|
|
32929
|
+
const _hoisted_2$a = {
|
|
32930
|
+
key: 3,
|
|
32931
|
+
class: "nv-num-text"
|
|
32932
|
+
};
|
|
32919
32933
|
function _sfc_render$i(_ctx, _cache, $props, $setup, $data, $options) {
|
|
32920
32934
|
const _component_GridTitleContent = resolveComponent("GridTitleContent");
|
|
32921
32935
|
const _component_grid_column = resolveComponent("grid-column", true);
|
|
@@ -32956,7 +32970,7 @@ function _sfc_render$i(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
32956
32970
|
column.colType == "seq" ? (openBlock(), createBlock(_component_vxe_column, {
|
|
32957
32971
|
key: 0,
|
|
32958
32972
|
type: "seq",
|
|
32959
|
-
align: column.align ? column.align : "
|
|
32973
|
+
align: column.align ? column.align : "left",
|
|
32960
32974
|
width: column.width ? column.width : 60,
|
|
32961
32975
|
fixed: column.fixed ? column.fixed : null
|
|
32962
32976
|
}, {
|
|
@@ -32996,7 +33010,7 @@ function _sfc_render$i(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
32996
33010
|
visible: column.visible,
|
|
32997
33011
|
fixed: column.fixed ? column.fixed : null,
|
|
32998
33012
|
align: column.align ? column.align : "left",
|
|
32999
|
-
"header-align":
|
|
33013
|
+
"header-align": _ctx.getHeaderAlign(column),
|
|
33000
33014
|
"footer-align": column.footerAlign,
|
|
33001
33015
|
"show-overflow": column.showOverflow,
|
|
33002
33016
|
"show-header-overflow": column.showHeaderOverflow,
|
|
@@ -33026,8 +33040,8 @@ function _sfc_render$i(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
33026
33040
|
resizable: column.resizable,
|
|
33027
33041
|
visible: column.visible,
|
|
33028
33042
|
fixed: column.fixed ? column.fixed : null,
|
|
33029
|
-
align:
|
|
33030
|
-
"header-align":
|
|
33043
|
+
align: _ctx.getAlign(column),
|
|
33044
|
+
"header-align": _ctx.getHeaderAlign(column),
|
|
33031
33045
|
"footer-align": column.footerAlign,
|
|
33032
33046
|
"show-overflow": column.showOverflow,
|
|
33033
33047
|
"show-header-overflow": column.showHeaderOverflow,
|
|
@@ -33169,8 +33183,8 @@ function _sfc_render$i(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
33169
33183
|
modelValue: row[_ctx.getField(column)],
|
|
33170
33184
|
"onUpdate:modelValue": ($event) => row[_ctx.getField(column)] = $event,
|
|
33171
33185
|
disabled: true
|
|
33172
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue"])) : (openBlock(), createBlock(_component_GridCellContent, {
|
|
33173
|
-
key:
|
|
33186
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue"])) : column.colType == "num" ? (openBlock(), createElementBlock("span", _hoisted_2$a, toDisplayString(row[_ctx.getField(column)]), 1)) : (openBlock(), createBlock(_component_GridCellContent, {
|
|
33187
|
+
key: 4,
|
|
33174
33188
|
column,
|
|
33175
33189
|
row
|
|
33176
33190
|
}, null, 8, ["column", "row"]))
|
|
@@ -33221,7 +33235,7 @@ function _sfc_render$i(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
33221
33235
|
visible: column.visible,
|
|
33222
33236
|
fixed: column.fixed ? column.fixed : null,
|
|
33223
33237
|
align: column.align ? column.align : "left",
|
|
33224
|
-
"header-align":
|
|
33238
|
+
"header-align": _ctx.getHeaderAlign(column),
|
|
33225
33239
|
"footer-align": column.footerAlign,
|
|
33226
33240
|
"show-overflow": column.showOverflow,
|
|
33227
33241
|
"show-header-overflow": column.showHeaderOverflow,
|
|
@@ -33254,7 +33268,7 @@ function _sfc_render$i(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
33254
33268
|
}), 256))
|
|
33255
33269
|
]);
|
|
33256
33270
|
}
|
|
33257
|
-
const GridColumn = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["render", _sfc_render$i], ["__scopeId", "data-v-
|
|
33271
|
+
const GridColumn = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["render", _sfc_render$i], ["__scopeId", "data-v-be3de0b4"]]);
|
|
33258
33272
|
const _sfc_main$h = defineComponent({
|
|
33259
33273
|
name: "FilterDaterange",
|
|
33260
33274
|
props: {
|
|
@@ -33883,6 +33897,15 @@ let GridInstance$1 = class GridInstance2 extends BaseInstance {
|
|
|
33883
33897
|
}
|
|
33884
33898
|
return false;
|
|
33885
33899
|
});
|
|
33900
|
+
/**
|
|
33901
|
+
* 单元格内容过长时是否显示为省略号
|
|
33902
|
+
*/
|
|
33903
|
+
__publicField2(this, "getShowOverflow", () => {
|
|
33904
|
+
if (this.props.option.setting) {
|
|
33905
|
+
return this.utilities.isNull(this.props.option.setting.showOverflow) ? true : this.props.option.setting.showOverflow;
|
|
33906
|
+
}
|
|
33907
|
+
return true;
|
|
33908
|
+
});
|
|
33886
33909
|
/**
|
|
33887
33910
|
* 显示标题
|
|
33888
33911
|
* @returns
|
|
@@ -33935,7 +33958,10 @@ let GridInstance$1 = class GridInstance2 extends BaseInstance {
|
|
|
33935
33958
|
* @returns
|
|
33936
33959
|
*/
|
|
33937
33960
|
__publicField2(this, "getRowConfig", () => {
|
|
33938
|
-
|
|
33961
|
+
let defaultConfig2 = {
|
|
33962
|
+
height: 48
|
|
33963
|
+
};
|
|
33964
|
+
return this.utilities.isNull(this.props.option.setting) ? {} : Object.assign(defaultConfig2, this.props.option.setting.rowConfig, {});
|
|
33939
33965
|
});
|
|
33940
33966
|
/**
|
|
33941
33967
|
* 获取右键菜单配置
|
|
@@ -34761,8 +34787,8 @@ let GridInstance$1 = class GridInstance2 extends BaseInstance {
|
|
|
34761
34787
|
}
|
|
34762
34788
|
//#endregion 公开方法 END
|
|
34763
34789
|
};
|
|
34764
|
-
const
|
|
34765
|
-
const _withScopeId$2 = (n) => (pushScopeId("data-v-
|
|
34790
|
+
const Grid_vue_vue_type_style_index_0_scoped_7371900e_lang = "";
|
|
34791
|
+
const _withScopeId$2 = (n) => (pushScopeId("data-v-7371900e"), n = n(), popScopeId(), n);
|
|
34766
34792
|
const _hoisted_1$a = { class: "nv-crud nv-pos-r" };
|
|
34767
34793
|
const _hoisted_2$7 = { class: "grid-msg" };
|
|
34768
34794
|
const _hoisted_3$6 = { class: "nv-crud-body" };
|
|
@@ -34919,6 +34945,7 @@ function _sfc_render$f(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
34919
34945
|
"span-method": _ctx.rowspanMethod,
|
|
34920
34946
|
"checkbox-config": _ctx.getCheckboxConfig(),
|
|
34921
34947
|
stripe: _ctx.getStripe(),
|
|
34948
|
+
"show-overflow": _ctx.getShowOverflow(),
|
|
34922
34949
|
onKeydownStart: _ctx.gridEvents.keydownStart,
|
|
34923
34950
|
onKeydown: _ctx.gridEvents.keydown,
|
|
34924
34951
|
onKeydownEnd: _ctx.gridEvents.keydownEnd,
|
|
@@ -34966,7 +34993,7 @@ function _sfc_render$f(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
34966
34993
|
}, null, 8, ["columns", "xTable", "onClearRadioRow", "onDelete", "onAddchild"])
|
|
34967
34994
|
]),
|
|
34968
34995
|
_: 1
|
|
34969
|
-
}, 16, ["empty-text", "data", "border", "show-header", "row-class-name", "cell-class-name", "row-config", "edit-config", "tree-config", "edit-rules", "menu-config", "filter-config", "span-method", "checkbox-config", "stripe", "onKeydownStart", "onKeydown", "onKeydownEnd", "onPaste", "onCopy", "onCut", "onCurrentChange", "onRadioChange", "onCheckboxChange", "onCheckboxAll", "onCheckboxRangeStart", "onCheckboxRangeChange", "onCheckboxRangeEnd", "onCellClick", "onCellDblclick", "onCellMenu", "onCellMouseenter", "onCellMouseleave", "onHeaderCellClick", "onHeaderCellDblclick", "onHeaderCellMenu", "onFooterCellClick", "onFooterCellDblclick", "onFooterCellMenu", "onSortChange", "onFilterChange", "onResizableChange", "onToggleRowExpand", "onToggleTreeExpand", "onMenuClick", "onEditClosed", "onEditActived", "onEditDisabled", "onValidError", "onScroll", "onCustom"]), [
|
|
34996
|
+
}, 16, ["empty-text", "data", "border", "show-header", "row-class-name", "cell-class-name", "row-config", "edit-config", "tree-config", "edit-rules", "menu-config", "filter-config", "span-method", "checkbox-config", "stripe", "show-overflow", "onKeydownStart", "onKeydown", "onKeydownEnd", "onPaste", "onCopy", "onCut", "onCurrentChange", "onRadioChange", "onCheckboxChange", "onCheckboxAll", "onCheckboxRangeStart", "onCheckboxRangeChange", "onCheckboxRangeEnd", "onCellClick", "onCellDblclick", "onCellMenu", "onCellMouseenter", "onCellMouseleave", "onHeaderCellClick", "onHeaderCellDblclick", "onHeaderCellMenu", "onFooterCellClick", "onFooterCellDblclick", "onFooterCellMenu", "onSortChange", "onFilterChange", "onResizableChange", "onToggleRowExpand", "onToggleTreeExpand", "onMenuClick", "onEditClosed", "onEditActived", "onEditDisabled", "onValidError", "onScroll", "onCustom"]), [
|
|
34970
34997
|
[vShow, _ctx.showTable]
|
|
34971
34998
|
])
|
|
34972
34999
|
], 512)
|
|
@@ -34984,7 +35011,7 @@ function _sfc_render$f(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
34984
35011
|
])) : createCommentVNode("", true)
|
|
34985
35012
|
]);
|
|
34986
35013
|
}
|
|
34987
|
-
const Grid = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["render", _sfc_render$f], ["__scopeId", "data-v-
|
|
35014
|
+
const Grid = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["render", _sfc_render$f], ["__scopeId", "data-v-7371900e"]]);
|
|
34988
35015
|
const propDefine$o = {
|
|
34989
35016
|
width: {
|
|
34990
35017
|
// Box 宽度
|
|
@@ -213478,6 +213505,15 @@ class GridInstance extends BaseInstance {
|
|
|
213478
213505
|
}
|
|
213479
213506
|
return false;
|
|
213480
213507
|
});
|
|
213508
|
+
/**
|
|
213509
|
+
* 单元格内容过长时是否显示为省略号
|
|
213510
|
+
*/
|
|
213511
|
+
__publicField2(this, "getShowOverflow", () => {
|
|
213512
|
+
if (this.props.option.setting) {
|
|
213513
|
+
return this.utilities.isNull(this.props.option.setting.showOverflow) ? true : this.props.option.setting.showOverflow;
|
|
213514
|
+
}
|
|
213515
|
+
return true;
|
|
213516
|
+
});
|
|
213481
213517
|
/**
|
|
213482
213518
|
* 显示标题
|
|
213483
213519
|
* @returns
|
|
@@ -213530,7 +213566,10 @@ class GridInstance extends BaseInstance {
|
|
|
213530
213566
|
* @returns
|
|
213531
213567
|
*/
|
|
213532
213568
|
__publicField2(this, "getRowConfig", () => {
|
|
213533
|
-
|
|
213569
|
+
let defaultConfig2 = {
|
|
213570
|
+
height: 48
|
|
213571
|
+
};
|
|
213572
|
+
return this.utilities.isNull(this.props.option.setting) ? {} : Object.assign(defaultConfig2, this.props.option.setting.rowConfig, {});
|
|
213534
213573
|
});
|
|
213535
213574
|
/**
|
|
213536
213575
|
* 获取右键菜单配置
|