@newview/ui 1.1.94 → 1.1.96
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 +6 -0
- package/dist/newview-ui.js +55 -41
- 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_c4eed153_lang = "";
|
|
31463
31463
|
const _hoisted_1$j = { class: "comForm" };
|
|
31464
31464
|
const _hoisted_2$g = ["onClick"];
|
|
31465
31465
|
const _hoisted_3$d = { key: 1 };
|
|
@@ -31855,8 +31855,7 @@ function _sfc_render$p(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
31855
31855
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "min", "max", "step", "disabled", "range", "show-input", "show-stops", "show-tip", "tip-format", "input-size", "active-change", "marks", "onOnChange", "onOnInput"])) : createCommentVNode("", true),
|
|
31856
31856
|
item2.type == "DatePicker" ? (openBlock(), createBlock(_component_DatePicker, {
|
|
31857
31857
|
key: 12,
|
|
31858
|
-
|
|
31859
|
-
"onUpdate:modelValue": ($event) => _ctx.formModel[item2.model] = $event,
|
|
31858
|
+
"model-value": _ctx.formModel[item2.model],
|
|
31860
31859
|
style: { "width": "100%" },
|
|
31861
31860
|
type: _ctx.getPropValue(item2.datePickerProp, "type"),
|
|
31862
31861
|
format: _ctx.getPropValue(item2.datePickerProp, "format"),
|
|
@@ -31891,11 +31890,10 @@ function _sfc_render$p(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
31891
31890
|
onOnOk: ($event) => _ctx.getPropEvent(item2.datePickerProp, "onOk")($event, item2),
|
|
31892
31891
|
onOnClear: ($event) => _ctx.getPropEvent(item2.datePickerProp, "onClear")($event, item2),
|
|
31893
31892
|
onOnClickoutside: ($event) => _ctx.getPropEvent(item2.datePickerProp, "onClickoutside")($event, item2)
|
|
31894
|
-
}, null, 8, ["
|
|
31893
|
+
}, null, 8, ["model-value", "type", "format", "placement", "placeholder", "options", "split-panels", "multiple", "show-week-numbers", "start-date", "confirm", "open", "size", "disabled", "clearable", "readonly", "editable", "transfer", "element-id", "time-picker-options", "separator", "capture", "transfer-class-name", "events-enabled", "shortcuts", "disabledDate", "onOnChange", "onOnOpenChange", "onOnOk", "onOnClear", "onOnClickoutside"])) : createCommentVNode("", true),
|
|
31895
31894
|
item2.type == "TimePicker" ? (openBlock(), createBlock(_component_TimePicker, {
|
|
31896
31895
|
key: 13,
|
|
31897
|
-
|
|
31898
|
-
"onUpdate:modelValue": ($event) => _ctx.formModel[item2.model] = $event,
|
|
31896
|
+
"model-value": _ctx.formModel[item2.model],
|
|
31899
31897
|
style: { "width": "100%" },
|
|
31900
31898
|
type: _ctx.getPropValue(item2.timePickerProp, "type"),
|
|
31901
31899
|
format: _ctx.getPropValue(item2.timePickerProp, "format"),
|
|
@@ -31915,11 +31913,14 @@ function _sfc_render$p(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
31915
31913
|
capture: _ctx.getPropValue(item2.timePickerProp, "capture"),
|
|
31916
31914
|
"transfer-class-name": _ctx.getPropValue(item2.timePickerProp, "transfer-class-name"),
|
|
31917
31915
|
"events-enabled": _ctx.getPropValue(item2.timePickerProp, "events-enabled"),
|
|
31918
|
-
onOnChange: ($event) =>
|
|
31916
|
+
onOnChange: ($event) => {
|
|
31917
|
+
_ctx.formModel[item2.model] = $event;
|
|
31918
|
+
_ctx.getPropEvent(item2.timePickerProp, "onChange")($event, item2);
|
|
31919
|
+
},
|
|
31919
31920
|
onOnOpenChange: ($event) => _ctx.getPropEvent(item2.timePickerProp, "onOpenChange")($event, item2),
|
|
31920
31921
|
onOnOk: ($event) => _ctx.getPropEvent(item2.timePickerProp, "onOk")($event, item2),
|
|
31921
31922
|
onOnClear: ($event) => _ctx.getPropEvent(item2.timePickerProp, "onClear")($event, item2)
|
|
31922
|
-
}, null, 8, ["
|
|
31923
|
+
}, null, 8, ["model-value", "type", "format", "steps", "placement", "placeholder", "confirm", "open", "size", "disabled", "clearable", "readonly", "editable", "transfer", "element-id", "separator", "capture", "transfer-class-name", "events-enabled", "onOnChange", "onOnOpenChange", "onOnOk", "onOnClear"])) : createCommentVNode("", true),
|
|
31923
31924
|
item2.type == "Cascader" ? (openBlock(), createBlock(_component_Cascader, {
|
|
31924
31925
|
key: 14,
|
|
31925
31926
|
modelValue: _ctx.formModel[item2.model],
|
|
@@ -32046,7 +32047,7 @@ function _sfc_render$p(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
32046
32047
|
], 2)
|
|
32047
32048
|
]);
|
|
32048
32049
|
}
|
|
32049
|
-
const ComForm = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["render", _sfc_render$p], ["__scopeId", "data-v-
|
|
32050
|
+
const ComForm = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["render", _sfc_render$p], ["__scopeId", "data-v-c4eed153"]]);
|
|
32050
32051
|
const style = "";
|
|
32051
32052
|
const propDefine$v = {
|
|
32052
32053
|
options: {
|
|
@@ -32529,7 +32530,7 @@ let ToolbarInstance$1 = class ToolbarInstance2 extends BaseInstance {
|
|
|
32529
32530
|
}
|
|
32530
32531
|
//#endregion 业务逻辑 END
|
|
32531
32532
|
};
|
|
32532
|
-
const
|
|
32533
|
+
const Toolbar_vue_vue_type_style_index_0_scoped_09e0c64e_lang = "";
|
|
32533
32534
|
const _hoisted_1$i = { class: "toolbar" };
|
|
32534
32535
|
const _hoisted_2$f = { style: { "display": "none" } };
|
|
32535
32536
|
const _hoisted_3$c = { key: 0 };
|
|
@@ -32561,13 +32562,14 @@ function _sfc_render$n(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
32561
32562
|
onClick: ($event) => item2.onclick ? item2.onclick() : {},
|
|
32562
32563
|
size: item2.size ? item2.size : "default",
|
|
32563
32564
|
title: item2.text,
|
|
32564
|
-
loading: item2.loading ? item2.loading() : false
|
|
32565
|
+
loading: item2.loading ? item2.loading() : false,
|
|
32566
|
+
class: normalizeClass(item2.class)
|
|
32565
32567
|
}, {
|
|
32566
32568
|
default: withCtx(() => [
|
|
32567
32569
|
createTextVNode(toDisplayString(_ctx.isIconButton ? "" : item2.text), 1)
|
|
32568
32570
|
]),
|
|
32569
32571
|
_: 2
|
|
32570
|
-
}, 1032, ["disabled", "icon", "custom-icon", "type", "onClick", "size", "title", "loading"])) : createCommentVNode("", true)
|
|
32572
|
+
}, 1032, ["disabled", "icon", "custom-icon", "type", "onClick", "size", "title", "loading", "class"])) : createCommentVNode("", true)
|
|
32571
32573
|
], 64);
|
|
32572
32574
|
}), 256))
|
|
32573
32575
|
]),
|
|
@@ -32589,8 +32591,9 @@ function _sfc_render$n(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
32589
32591
|
onClick: ($event) => item2.onclick ? item2.onclick() : {},
|
|
32590
32592
|
title: item2.text,
|
|
32591
32593
|
loading: item2.loading ? item2.loading() : false,
|
|
32592
|
-
key: item2.name
|
|
32593
|
-
|
|
32594
|
+
key: item2.name,
|
|
32595
|
+
class: normalizeClass(item2.class)
|
|
32596
|
+
}, null, 8, ["disabled", "icon", "custom-icon", "onClick", "title", "loading", "class"])) : (openBlock(), createBlock(_component_Button, {
|
|
32594
32597
|
disabled: _ctx.getIsEnable(item2),
|
|
32595
32598
|
icon: _ctx.getIcon(item2),
|
|
32596
32599
|
"custom-icon": item2.icon,
|
|
@@ -32599,13 +32602,14 @@ function _sfc_render$n(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
32599
32602
|
size: item2.size ? item2.size : "default",
|
|
32600
32603
|
title: item2.name,
|
|
32601
32604
|
loading: item2.loading ? item2.loading() : false,
|
|
32602
|
-
key: item2.name
|
|
32605
|
+
key: item2.name,
|
|
32606
|
+
class: normalizeClass(item2.class)
|
|
32603
32607
|
}, {
|
|
32604
32608
|
default: withCtx(() => [
|
|
32605
32609
|
createTextVNode(toDisplayString(_ctx.isIconButton ? "" : item2.text), 1)
|
|
32606
32610
|
]),
|
|
32607
32611
|
_: 2
|
|
32608
|
-
}, 1032, ["disabled", "icon", "custom-icon", "type", "onClick", "size", "title", "loading"]))
|
|
32612
|
+
}, 1032, ["disabled", "icon", "custom-icon", "type", "onClick", "size", "title", "loading", "class"]))
|
|
32609
32613
|
], 64);
|
|
32610
32614
|
}), 256)),
|
|
32611
32615
|
_ctx.moreOptions.length > 0 ? (openBlock(), createBlock(_component_Dropdown, {
|
|
@@ -32618,7 +32622,8 @@ function _sfc_render$n(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
32618
32622
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.moreOptions, (item2, index2) => {
|
|
32619
32623
|
return openBlock(), createBlock(_component_DropdownItem, {
|
|
32620
32624
|
key: item2.name,
|
|
32621
|
-
name: item2.name
|
|
32625
|
+
name: item2.name,
|
|
32626
|
+
class: normalizeClass(item2.class)
|
|
32622
32627
|
}, {
|
|
32623
32628
|
default: withCtx(() => [
|
|
32624
32629
|
_ctx.isFaIcon(item2) ? (openBlock(), createElementBlock("i", {
|
|
@@ -32631,7 +32636,7 @@ function _sfc_render$n(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
32631
32636
|
createTextVNode(" " + toDisplayString(item2.text), 1)
|
|
32632
32637
|
]),
|
|
32633
32638
|
_: 2
|
|
32634
|
-
}, 1032, ["name"]);
|
|
32639
|
+
}, 1032, ["name", "class"]);
|
|
32635
32640
|
}), 128))
|
|
32636
32641
|
]),
|
|
32637
32642
|
_: 1
|
|
@@ -32653,7 +32658,7 @@ function _sfc_render$n(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
32653
32658
|
}))
|
|
32654
32659
|
]);
|
|
32655
32660
|
}
|
|
32656
|
-
const Toolbar = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["render", _sfc_render$n], ["__scopeId", "data-v-
|
|
32661
|
+
const Toolbar = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["render", _sfc_render$n], ["__scopeId", "data-v-09e0c64e"]]);
|
|
32657
32662
|
const GridCellContent$1 = defineComponent({
|
|
32658
32663
|
name: "GridCellContent",
|
|
32659
32664
|
props: {
|
|
@@ -33229,7 +33234,7 @@ let GridColumnInstance$1 = class GridColumnInstance2 extends BaseInstance {
|
|
|
33229
33234
|
}
|
|
33230
33235
|
};
|
|
33231
33236
|
const GridColumn_vue_vue_type_style_index_0_lang$1 = "";
|
|
33232
|
-
const
|
|
33237
|
+
const GridColumn_vue_vue_type_style_index_1_scoped_695d02ef_lang = "";
|
|
33233
33238
|
const _hoisted_1$h = { class: "gridColumn" };
|
|
33234
33239
|
const _hoisted_2$e = {
|
|
33235
33240
|
key: 3,
|
|
@@ -33392,20 +33397,24 @@ function _sfc_render$m(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
33392
33397
|
onOnBlur: ($event) => _ctx.doBlur(column, scope.row)
|
|
33393
33398
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "data", "filter-method", "onOnChange", "onOnBlur"])) : column.colType == "date" ? (openBlock(), createBlock(_component_DatePicker, {
|
|
33394
33399
|
key: 3,
|
|
33395
|
-
|
|
33396
|
-
"onUpdate:modelValue": ($event) => scope.row[_ctx.getField(column)] = $event,
|
|
33400
|
+
"model-value": scope.row[_ctx.getField(column)],
|
|
33397
33401
|
format: _ctx.getDatePickerFormat(column),
|
|
33398
33402
|
type: _ctx.getDatePickerType(column),
|
|
33399
|
-
onOnChange: ($event) =>
|
|
33403
|
+
onOnChange: ($event) => {
|
|
33404
|
+
scope.row[_ctx.getField(column)] = $event;
|
|
33405
|
+
_ctx.doChange(column, scope.row);
|
|
33406
|
+
},
|
|
33400
33407
|
transfer: _ctx.getDateTransfer(column)
|
|
33401
|
-
}, null, 8, ["
|
|
33408
|
+
}, null, 8, ["model-value", "format", "type", "onOnChange", "transfer"])) : column.colType == "time" ? (openBlock(), createBlock(_component_TimePicker, {
|
|
33402
33409
|
key: 4,
|
|
33403
|
-
|
|
33404
|
-
"onUpdate:modelValue": ($event) => scope.row[_ctx.getField(column)] = $event,
|
|
33410
|
+
"model-value": scope.row[_ctx.getField(column)],
|
|
33405
33411
|
format: _ctx.getTimePickerFormat(column),
|
|
33406
33412
|
type: _ctx.getTimePickerType(column),
|
|
33407
|
-
onOnChange: ($event) =>
|
|
33408
|
-
|
|
33413
|
+
onOnChange: ($event) => {
|
|
33414
|
+
scope.row[_ctx.getField(column)] = $event;
|
|
33415
|
+
_ctx.doChange(column, scope.row);
|
|
33416
|
+
}
|
|
33417
|
+
}, null, 8, ["model-value", "format", "type", "onOnChange"])) : column.colType == "num" ? (openBlock(), createBlock(_component_InputNumber, {
|
|
33409
33418
|
key: 5,
|
|
33410
33419
|
modelValue: scope.row[_ctx.getField(column)],
|
|
33411
33420
|
"onUpdate:modelValue": ($event) => scope.row[_ctx.getField(column)] = $event,
|
|
@@ -33542,7 +33551,7 @@ function _sfc_render$m(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
33542
33551
|
type: "text",
|
|
33543
33552
|
size: "small",
|
|
33544
33553
|
disabled: !_ctx.getIsEnableRowButton(btn, row),
|
|
33545
|
-
class: normalizeClass(_ctx.getIsEnableRowButton(btn, row) ? "row-btn_" + btn.type : ""),
|
|
33554
|
+
class: normalizeClass(_ctx.getIsEnableRowButton(btn, row) ? (btn.class ? btn.class : "") + " row-btn_" + btn.type : btn.class ? btn.class : ""),
|
|
33546
33555
|
onClick: ($event) => _ctx.doRunBtnClick(btn, row)
|
|
33547
33556
|
}, {
|
|
33548
33557
|
default: withCtx(() => [
|
|
@@ -33598,7 +33607,7 @@ function _sfc_render$m(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
33598
33607
|
}), 256))
|
|
33599
33608
|
]);
|
|
33600
33609
|
}
|
|
33601
|
-
const GridColumn$1 = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["render", _sfc_render$m], ["__scopeId", "data-v-
|
|
33610
|
+
const GridColumn$1 = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["render", _sfc_render$m], ["__scopeId", "data-v-695d02ef"]]);
|
|
33602
33611
|
const _sfc_main$l = defineComponent({
|
|
33603
33612
|
name: "FilterDaterange",
|
|
33604
33613
|
props: {
|
|
@@ -60217,7 +60226,7 @@ class GridColumnInstance extends BaseInstance {
|
|
|
60217
60226
|
//#endregion
|
|
60218
60227
|
}
|
|
60219
60228
|
const GridColumn_vue_vue_type_style_index_0_lang = "";
|
|
60220
|
-
const
|
|
60229
|
+
const GridColumn_vue_vue_type_style_index_1_scoped_85926738_lang = "";
|
|
60221
60230
|
const _hoisted_1$d = { class: "gridColumn" };
|
|
60222
60231
|
const _hoisted_2$a = {
|
|
60223
60232
|
key: 3,
|
|
@@ -60380,19 +60389,23 @@ function _sfc_render$i(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
60380
60389
|
onOnBlur: ($event) => _ctx.doBlur(column, scope.row)
|
|
60381
60390
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "data", "filter-method", "onOnChange", "onOnBlur"])) : column.colType == "date" ? (openBlock(), createBlock(_component_DatePicker, {
|
|
60382
60391
|
key: 3,
|
|
60383
|
-
|
|
60384
|
-
"onUpdate:modelValue": ($event) => scope.row[_ctx.getField(column)] = $event,
|
|
60392
|
+
"model-value": scope.row[_ctx.getField(column)],
|
|
60385
60393
|
format: _ctx.getDatePickerFormat(column),
|
|
60386
60394
|
type: _ctx.getDatePickerType(column),
|
|
60387
|
-
onOnChange: ($event) =>
|
|
60388
|
-
|
|
60395
|
+
onOnChange: ($event) => {
|
|
60396
|
+
scope.row[_ctx.getField(column)] = $event;
|
|
60397
|
+
_ctx.doChange(column, scope.row);
|
|
60398
|
+
}
|
|
60399
|
+
}, null, 8, ["model-value", "format", "type", "onOnChange"])) : column.colType == "time" ? (openBlock(), createBlock(_component_TimePicker, {
|
|
60389
60400
|
key: 4,
|
|
60390
|
-
|
|
60391
|
-
"onUpdate:modelValue": ($event) => scope.row[_ctx.getField(column)] = $event,
|
|
60401
|
+
"model-value": scope.row[_ctx.getField(column)],
|
|
60392
60402
|
format: _ctx.getTimePickerFormat(column),
|
|
60393
60403
|
type: _ctx.getTimePickerType(column),
|
|
60394
|
-
onOnChange: ($event) =>
|
|
60395
|
-
|
|
60404
|
+
onOnChange: ($event) => {
|
|
60405
|
+
scope.row[_ctx.getField(column)] = $event;
|
|
60406
|
+
_ctx.doChange(column, scope.row);
|
|
60407
|
+
}
|
|
60408
|
+
}, null, 8, ["model-value", "format", "type", "onOnChange"])) : column.colType == "num" ? (openBlock(), createBlock(_component_InputNumber, {
|
|
60396
60409
|
key: 5,
|
|
60397
60410
|
modelValue: scope.row[_ctx.getField(column)],
|
|
60398
60411
|
"onUpdate:modelValue": ($event) => scope.row[_ctx.getField(column)] = $event,
|
|
@@ -60575,7 +60588,7 @@ function _sfc_render$i(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
60575
60588
|
}), 256))
|
|
60576
60589
|
]);
|
|
60577
60590
|
}
|
|
60578
|
-
const GridColumn = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["render", _sfc_render$i], ["__scopeId", "data-v-
|
|
60591
|
+
const GridColumn = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["render", _sfc_render$i], ["__scopeId", "data-v-85926738"]]);
|
|
60579
60592
|
const _sfc_main$h = defineComponent({
|
|
60580
60593
|
name: "FilterDaterange",
|
|
60581
60594
|
props: {
|
|
@@ -244328,7 +244341,8 @@ const install = function(app, opts = {}) {
|
|
|
244328
244341
|
};
|
|
244329
244342
|
const API = {
|
|
244330
244343
|
install,
|
|
244331
|
-
...components
|
|
244344
|
+
...components,
|
|
244345
|
+
...NvUI
|
|
244332
244346
|
};
|
|
244333
244347
|
export {
|
|
244334
244348
|
BoxInstance,
|