@newview/ui 1.1.12 → 1.1.14
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 +2 -6
- package/dist/newview-ui.js +315 -108
- package/dist/newview-ui.umd.cjs +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/types/ComForm.d.ts +5 -1
- package/types/Grid.d.ts +8 -0
- package/types/Toolbar.d.ts +2 -2
package/dist/newview-ui.js
CHANGED
|
@@ -5,7 +5,7 @@ var __publicField2 = (obj, key2, value) => {
|
|
|
5
5
|
return value;
|
|
6
6
|
};
|
|
7
7
|
import { BaseInstance } from "@newview/base-vue";
|
|
8
|
-
import { openBlock, createElementBlock, normalizeStyle, defineComponent, ref, resolveComponent, createVNode, reactive, watch, onMounted, onUnmounted, createBlock, withCtx, createElementVNode, Fragment, renderList, normalizeClass, withDirectives, createTextVNode, toDisplayString, renderSlot, createCommentVNode, createSlots, vShow, h, computed, nextTick, mergeProps, toHandlers,
|
|
8
|
+
import { openBlock, createElementBlock, normalizeStyle, defineComponent, ref, resolveComponent, createVNode, reactive, watch, onMounted, onUnmounted, createBlock, withCtx, createElementVNode, Fragment, renderList, normalizeClass, withDirectives, createTextVNode, toDisplayString, renderSlot, createCommentVNode, createSlots, vShow, h, computed, nextTick, mergeProps, toHandlers, pushScopeId, popScopeId, withModifiers, createApp, getCurrentInstance } from "vue";
|
|
9
9
|
import { VxeColumn, VxeColgroup, VxeGrid, VxeTable } from "vxe-table";
|
|
10
10
|
import { utilities } from "@newview/tools";
|
|
11
11
|
import { Space, Icon, Drawer, Button } from "view-ui-plus";
|
|
@@ -17805,7 +17805,7 @@ const _export_sfc = (sfc, props) => {
|
|
|
17805
17805
|
}
|
|
17806
17806
|
return target;
|
|
17807
17807
|
};
|
|
17808
|
-
const _sfc_main$
|
|
17808
|
+
const _sfc_main$i = {
|
|
17809
17809
|
name: "BAceEditor",
|
|
17810
17810
|
props: {
|
|
17811
17811
|
modelValue: String,
|
|
@@ -17944,13 +17944,13 @@ const _sfc_main$h = {
|
|
|
17944
17944
|
}
|
|
17945
17945
|
}
|
|
17946
17946
|
};
|
|
17947
|
-
function _sfc_render$
|
|
17947
|
+
function _sfc_render$i(_ctx, _cache, $props, $setup, $data, $options) {
|
|
17948
17948
|
return openBlock(), createElementBlock("div", {
|
|
17949
17949
|
class: "bin-editor-next",
|
|
17950
17950
|
style: normalizeStyle($options.wrapStyles)
|
|
17951
17951
|
}, null, 4);
|
|
17952
17952
|
}
|
|
17953
|
-
const BinEditor = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
17953
|
+
const BinEditor = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["render", _sfc_render$i]]);
|
|
17954
17954
|
var ace$1 = { exports: {} };
|
|
17955
17955
|
(function(module, exports) {
|
|
17956
17956
|
(function() {
|
|
@@ -30038,7 +30038,7 @@ var json$1 = { exports: {} };
|
|
|
30038
30038
|
});
|
|
30039
30039
|
})();
|
|
30040
30040
|
})(json$1);
|
|
30041
|
-
const propDefine$
|
|
30041
|
+
const propDefine$r = {
|
|
30042
30042
|
lang: {
|
|
30043
30043
|
// 代码编辑器语言 json/javascript/java/sql/elixir/html/css
|
|
30044
30044
|
type: String,
|
|
@@ -30075,12 +30075,12 @@ const propDefine$q = {
|
|
|
30075
30075
|
default: {}
|
|
30076
30076
|
}
|
|
30077
30077
|
};
|
|
30078
|
-
const _sfc_main$
|
|
30078
|
+
const _sfc_main$h = defineComponent({
|
|
30079
30079
|
name: "NvEditor",
|
|
30080
30080
|
components: { BinEditor },
|
|
30081
30081
|
emits: [""],
|
|
30082
30082
|
// 例如: ['clearRadioRow', 'change', 'delete', 'addchild']
|
|
30083
|
-
props: propDefine$
|
|
30083
|
+
props: propDefine$r,
|
|
30084
30084
|
setup(props, ctx) {
|
|
30085
30085
|
return new EditorInstance$1(props, ctx);
|
|
30086
30086
|
}
|
|
@@ -30123,7 +30123,7 @@ let EditorInstance$1 = class EditorInstance2 extends BaseInstance {
|
|
|
30123
30123
|
};
|
|
30124
30124
|
const Editor_vue_vue_type_style_index_0_scoped_cf6872cf_lang = "";
|
|
30125
30125
|
const _hoisted_1$c = { class: "monacoEditor" };
|
|
30126
|
-
function _sfc_render$
|
|
30126
|
+
function _sfc_render$h(_ctx, _cache, $props, $setup, $data, $options) {
|
|
30127
30127
|
const _component_BinEditor = resolveComponent("BinEditor");
|
|
30128
30128
|
return openBlock(), createElementBlock("div", _hoisted_1$c, [
|
|
30129
30129
|
createVNode(_component_BinEditor, {
|
|
@@ -30141,8 +30141,8 @@ function _sfc_render$g(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
30141
30141
|
}, null, 8, ["modelValue", "lang", "readonly", "font-size", "wrap", "snippets", "options", "styles"])
|
|
30142
30142
|
]);
|
|
30143
30143
|
}
|
|
30144
|
-
const Editor = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
30145
|
-
const propDefine$
|
|
30144
|
+
const Editor = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["render", _sfc_render$h], ["__scopeId", "data-v-cf6872cf"]]);
|
|
30145
|
+
const propDefine$q = {
|
|
30146
30146
|
placeholder: {
|
|
30147
30147
|
// 占位文本
|
|
30148
30148
|
type: String,
|
|
@@ -30169,12 +30169,12 @@ const propDefine$p = {
|
|
|
30169
30169
|
default: false
|
|
30170
30170
|
}
|
|
30171
30171
|
};
|
|
30172
|
-
const _sfc_main$
|
|
30172
|
+
const _sfc_main$g = defineComponent({
|
|
30173
30173
|
name: "NvIconSelect",
|
|
30174
30174
|
components: {},
|
|
30175
30175
|
emits: ["update:modelValue", "change"],
|
|
30176
30176
|
// 例如: ['clearRadioRow', 'change', 'delete', 'addchild']
|
|
30177
|
-
props: propDefine$
|
|
30177
|
+
props: propDefine$q,
|
|
30178
30178
|
setup(props, ctx) {
|
|
30179
30179
|
return new IconSelectInstance(props, ctx);
|
|
30180
30180
|
}
|
|
@@ -31098,7 +31098,7 @@ const _hoisted_1$b = { class: "icon-select" };
|
|
|
31098
31098
|
const _hoisted_2$9 = { class: "icon-select-search" };
|
|
31099
31099
|
const _hoisted_3$7 = { class: "icon-select-list" };
|
|
31100
31100
|
const _hoisted_4$6 = ["onClick", "title"];
|
|
31101
|
-
function _sfc_render$
|
|
31101
|
+
function _sfc_render$g(_ctx, _cache, $props, $setup, $data, $options) {
|
|
31102
31102
|
const _component_Icon = resolveComponent("Icon");
|
|
31103
31103
|
const _component_Input = resolveComponent("Input");
|
|
31104
31104
|
const _component_Poptip = resolveComponent("Poptip");
|
|
@@ -31163,8 +31163,8 @@ function _sfc_render$f(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
31163
31163
|
}, 8, ["modelValue"]))
|
|
31164
31164
|
]);
|
|
31165
31165
|
}
|
|
31166
|
-
const NvIconSelect = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
31167
|
-
const propDefine$
|
|
31166
|
+
const NvIconSelect = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["render", _sfc_render$g]]);
|
|
31167
|
+
const propDefine$p = {
|
|
31168
31168
|
onlyView: {
|
|
31169
31169
|
// 是否只读
|
|
31170
31170
|
type: Boolean,
|
|
@@ -31182,11 +31182,11 @@ const propDefine$o = {
|
|
|
31182
31182
|
}
|
|
31183
31183
|
}
|
|
31184
31184
|
};
|
|
31185
|
-
const _sfc_main$
|
|
31185
|
+
const _sfc_main$f = defineComponent({
|
|
31186
31186
|
name: "NvComForm",
|
|
31187
31187
|
components: { NvIconSelect },
|
|
31188
31188
|
emits: [""],
|
|
31189
|
-
props: propDefine$
|
|
31189
|
+
props: propDefine$p,
|
|
31190
31190
|
setup(props, ctx) {
|
|
31191
31191
|
return new ComFormInstance$1(props, ctx);
|
|
31192
31192
|
}
|
|
@@ -31323,7 +31323,7 @@ let ComFormInstance$1 = class ComFormInstance2 extends BaseInstance {
|
|
|
31323
31323
|
const ComForm_vue_vue_type_style_index_0_scoped_f1e7ddce_lang = "";
|
|
31324
31324
|
const _hoisted_1$a = { class: "comForm" };
|
|
31325
31325
|
const _hoisted_2$8 = { key: 1 };
|
|
31326
|
-
function _sfc_render$
|
|
31326
|
+
function _sfc_render$f(_ctx, _cache, $props, $setup, $data, $options) {
|
|
31327
31327
|
const _component_com_form = resolveComponent("com-form", true);
|
|
31328
31328
|
const _component_Card = resolveComponent("Card");
|
|
31329
31329
|
const _component_Switch = resolveComponent("Switch");
|
|
@@ -31840,9 +31840,9 @@ function _sfc_render$e(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
31840
31840
|
], 2)
|
|
31841
31841
|
]);
|
|
31842
31842
|
}
|
|
31843
|
-
const ComForm = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
31843
|
+
const ComForm = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["render", _sfc_render$f], ["__scopeId", "data-v-f1e7ddce"]]);
|
|
31844
31844
|
const style = "";
|
|
31845
|
-
const propDefine$
|
|
31845
|
+
const propDefine$o = {
|
|
31846
31846
|
options: {
|
|
31847
31847
|
// SearchCom 配置项
|
|
31848
31848
|
type: Array,
|
|
@@ -31859,11 +31859,11 @@ const propDefine$n = {
|
|
|
31859
31859
|
default: () => 80
|
|
31860
31860
|
}
|
|
31861
31861
|
};
|
|
31862
|
-
const _sfc_main$
|
|
31862
|
+
const _sfc_main$e = defineComponent({
|
|
31863
31863
|
name: "NvSearchCom",
|
|
31864
31864
|
components: {},
|
|
31865
31865
|
emits: ["search"],
|
|
31866
|
-
props: propDefine$
|
|
31866
|
+
props: propDefine$o,
|
|
31867
31867
|
setup(props, ctx) {
|
|
31868
31868
|
return new SearchComInstance$1(props, ctx);
|
|
31869
31869
|
}
|
|
@@ -31979,7 +31979,7 @@ let SearchComInstance$1 = class SearchComInstance2 extends BaseInstance {
|
|
|
31979
31979
|
//#endregion AutoComplete END
|
|
31980
31980
|
};
|
|
31981
31981
|
const SearchCom_vue_vue_type_style_index_0_scoped_cda08489_lang = "";
|
|
31982
|
-
function _sfc_render$
|
|
31982
|
+
function _sfc_render$e(_ctx, _cache, $props, $setup, $data, $options) {
|
|
31983
31983
|
const _component_Input = resolveComponent("Input");
|
|
31984
31984
|
const _component_Radio = resolveComponent("Radio");
|
|
31985
31985
|
const _component_RadioGroup = resolveComponent("RadioGroup");
|
|
@@ -32166,8 +32166,8 @@ function _sfc_render$d(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
32166
32166
|
_: 1
|
|
32167
32167
|
}, 8, ["model", "label-width"]);
|
|
32168
32168
|
}
|
|
32169
|
-
const SearchCom = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
32170
|
-
const propDefine$
|
|
32169
|
+
const SearchCom = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["render", _sfc_render$e], ["__scopeId", "data-v-cda08489"]]);
|
|
32170
|
+
const propDefine$n = {
|
|
32171
32171
|
options: {
|
|
32172
32172
|
// 配置项
|
|
32173
32173
|
type: Array,
|
|
@@ -32189,11 +32189,11 @@ const propDefine$m = {
|
|
|
32189
32189
|
default: 3
|
|
32190
32190
|
}
|
|
32191
32191
|
};
|
|
32192
|
-
const _sfc_main$
|
|
32192
|
+
const _sfc_main$d = defineComponent({
|
|
32193
32193
|
name: "NvToolbar",
|
|
32194
32194
|
components: {},
|
|
32195
32195
|
emits: [""],
|
|
32196
|
-
props: propDefine$
|
|
32196
|
+
props: propDefine$n,
|
|
32197
32197
|
setup(props, ctx) {
|
|
32198
32198
|
return new ToolbarInstance$1(props, ctx);
|
|
32199
32199
|
}
|
|
@@ -32265,6 +32265,28 @@ let ToolbarInstance$1 = class ToolbarInstance2 extends BaseInstance {
|
|
|
32265
32265
|
}
|
|
32266
32266
|
return isShow;
|
|
32267
32267
|
});
|
|
32268
|
+
/**
|
|
32269
|
+
* 获取Icon
|
|
32270
|
+
* @param item
|
|
32271
|
+
* @returns
|
|
32272
|
+
*/
|
|
32273
|
+
__publicField2(this, "getIcon", (item2) => {
|
|
32274
|
+
if (this.utilities.isNull(item2.icon) || item2.icon.indexOf("fa-") != -1) {
|
|
32275
|
+
return "";
|
|
32276
|
+
}
|
|
32277
|
+
return item2.icon;
|
|
32278
|
+
});
|
|
32279
|
+
/**
|
|
32280
|
+
* 是否为Fa Icon
|
|
32281
|
+
* @param item
|
|
32282
|
+
* @returns
|
|
32283
|
+
*/
|
|
32284
|
+
__publicField2(this, "isFaIcon", (item2) => {
|
|
32285
|
+
if (this.utilities.isNull(item2.icon)) {
|
|
32286
|
+
return false;
|
|
32287
|
+
}
|
|
32288
|
+
return item2.icon.indexOf("fa-") != -1;
|
|
32289
|
+
});
|
|
32268
32290
|
this.props = props;
|
|
32269
32291
|
this.ctx = ctx;
|
|
32270
32292
|
this.useToolbar();
|
|
@@ -32301,13 +32323,14 @@ let ToolbarInstance$1 = class ToolbarInstance2 extends BaseInstance {
|
|
|
32301
32323
|
}
|
|
32302
32324
|
//#endregion 业务逻辑 END
|
|
32303
32325
|
};
|
|
32304
|
-
const
|
|
32326
|
+
const Toolbar_vue_vue_type_style_index_0_scoped_69337cbe_lang = "";
|
|
32305
32327
|
const _hoisted_1$9 = { class: "toolbar" };
|
|
32306
32328
|
const _hoisted_2$7 = { style: { "display": "none" } };
|
|
32307
32329
|
const _hoisted_3$6 = { key: 0 };
|
|
32308
|
-
function _sfc_render$
|
|
32330
|
+
function _sfc_render$d(_ctx, _cache, $props, $setup, $data, $options) {
|
|
32309
32331
|
const _component_Button = resolveComponent("Button");
|
|
32310
32332
|
const _component_ButtonGroup = resolveComponent("ButtonGroup");
|
|
32333
|
+
const _component_Divider = resolveComponent("Divider");
|
|
32311
32334
|
const _component_Icon = resolveComponent("Icon");
|
|
32312
32335
|
const _component_DropdownItem = resolveComponent("DropdownItem");
|
|
32313
32336
|
const _component_DropdownMenu = resolveComponent("DropdownMenu");
|
|
@@ -32350,24 +32373,27 @@ function _sfc_render$c(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
32350
32373
|
default: withCtx(() => [
|
|
32351
32374
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.showOptions, (item2, index2) => {
|
|
32352
32375
|
return openBlock(), createElementBlock(Fragment, null, [
|
|
32353
|
-
|
|
32376
|
+
item2.type == "divider" ? (openBlock(), createBlock(_component_Divider, {
|
|
32354
32377
|
key: 0,
|
|
32378
|
+
type: "vertical"
|
|
32379
|
+
})) : _ctx.isIconButton ? (openBlock(), createBlock(_component_Button, {
|
|
32355
32380
|
disabled: _ctx.getIsEnable(item2),
|
|
32356
|
-
icon: item2
|
|
32381
|
+
icon: _ctx.getIcon(item2),
|
|
32357
32382
|
"custom-icon": item2.icon,
|
|
32358
32383
|
onClick: ($event) => item2.onclick ? item2.onclick() : {},
|
|
32359
32384
|
title: item2.text,
|
|
32360
|
-
loading: item2.loading ? item2.loading() : false
|
|
32385
|
+
loading: item2.loading ? item2.loading() : false,
|
|
32386
|
+
key: item2.name
|
|
32361
32387
|
}, null, 8, ["disabled", "icon", "custom-icon", "onClick", "title", "loading"])) : (openBlock(), createBlock(_component_Button, {
|
|
32362
|
-
key: 1,
|
|
32363
32388
|
disabled: _ctx.getIsEnable(item2),
|
|
32364
|
-
icon: item2
|
|
32389
|
+
icon: _ctx.getIcon(item2),
|
|
32365
32390
|
"custom-icon": item2.icon,
|
|
32366
32391
|
type: item2.type ? item2.type : "default",
|
|
32367
32392
|
onClick: ($event) => item2.onclick ? item2.onclick() : {},
|
|
32368
32393
|
size: item2.size ? item2.size : "default",
|
|
32369
32394
|
title: item2.name,
|
|
32370
|
-
loading: item2.loading ? item2.loading() : false
|
|
32395
|
+
loading: item2.loading ? item2.loading() : false,
|
|
32396
|
+
key: item2.name
|
|
32371
32397
|
}, {
|
|
32372
32398
|
default: withCtx(() => [
|
|
32373
32399
|
createTextVNode(toDisplayString(_ctx.isIconButton ? "" : item2.text), 1)
|
|
@@ -32389,9 +32415,13 @@ function _sfc_render$c(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
32389
32415
|
name: item2.name
|
|
32390
32416
|
}, {
|
|
32391
32417
|
default: withCtx(() => [
|
|
32392
|
-
|
|
32418
|
+
_ctx.isFaIcon(item2) ? (openBlock(), createElementBlock("i", {
|
|
32419
|
+
key: 0,
|
|
32420
|
+
class: normalizeClass(item2.icon)
|
|
32421
|
+
}, null, 2)) : (openBlock(), createBlock(_component_Icon, {
|
|
32422
|
+
key: 1,
|
|
32393
32423
|
type: item2.icon
|
|
32394
|
-
}, null, 8, ["type"]),
|
|
32424
|
+
}, null, 8, ["type"])),
|
|
32395
32425
|
createTextVNode(" " + toDisplayString(item2.text), 1)
|
|
32396
32426
|
]),
|
|
32397
32427
|
_: 2
|
|
@@ -32417,7 +32447,7 @@ function _sfc_render$c(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
32417
32447
|
}))
|
|
32418
32448
|
]);
|
|
32419
32449
|
}
|
|
32420
|
-
const Toolbar = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
32450
|
+
const Toolbar = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["render", _sfc_render$d], ["__scopeId", "data-v-69337cbe"]]);
|
|
32421
32451
|
const GridCellContent = defineComponent({
|
|
32422
32452
|
name: "GridCellContent",
|
|
32423
32453
|
props: {
|
|
@@ -32453,7 +32483,7 @@ const GridTitleContent = defineComponent({
|
|
|
32453
32483
|
return this.$props.column.titleFormat(h, this.$props.column);
|
|
32454
32484
|
}
|
|
32455
32485
|
});
|
|
32456
|
-
const propDefine$
|
|
32486
|
+
const propDefine$m = {
|
|
32457
32487
|
columns: {
|
|
32458
32488
|
// 列配置项
|
|
32459
32489
|
type: Array,
|
|
@@ -32465,11 +32495,11 @@ const propDefine$l = {
|
|
|
32465
32495
|
}
|
|
32466
32496
|
}
|
|
32467
32497
|
};
|
|
32468
|
-
const _sfc_main$
|
|
32498
|
+
const _sfc_main$c = defineComponent({
|
|
32469
32499
|
name: "GridColumn",
|
|
32470
32500
|
components: { VxeColumn, VxeColgroup, GridCellContent, GridTitleContent },
|
|
32471
32501
|
emits: ["clearRadioRow", "change", "delete", "addchild"],
|
|
32472
|
-
props: propDefine$
|
|
32502
|
+
props: propDefine$m,
|
|
32473
32503
|
setup(props, ctx) {
|
|
32474
32504
|
return new GridColumnInstance(props, ctx);
|
|
32475
32505
|
}
|
|
@@ -32827,9 +32857,9 @@ class GridColumnInstance extends BaseInstance {
|
|
|
32827
32857
|
//#endregion 事件 END
|
|
32828
32858
|
}
|
|
32829
32859
|
const GridColumn_vue_vue_type_style_index_0_lang = "";
|
|
32830
|
-
const
|
|
32860
|
+
const GridColumn_vue_vue_type_style_index_1_scoped_edaf2a4d_lang = "";
|
|
32831
32861
|
const _hoisted_1$8 = { class: "gridColumn" };
|
|
32832
|
-
function _sfc_render$
|
|
32862
|
+
function _sfc_render$c(_ctx, _cache, $props, $setup, $data, $options) {
|
|
32833
32863
|
const _component_GridTitleContent = resolveComponent("GridTitleContent");
|
|
32834
32864
|
const _component_grid_column = resolveComponent("grid-column", true);
|
|
32835
32865
|
const _component_vxe_colgroup = resolveComponent("vxe-colgroup");
|
|
@@ -33061,6 +33091,7 @@ function _sfc_render$b(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
33061
33091
|
_: 2
|
|
33062
33092
|
}, 1032, ["field", "min-width", "width", "resizable", "visible", "fixed", "align", "header-align", "footer-align", "show-overflow", "show-header-overflow", "show-footer-overflow", "class-name", "header-class-name", "footer-class-name", "formatter", "sortable", "sort-by", "sort-type", "tree-node"])) : _ctx.getHasRowButton(column) ? (openBlock(), createBlock(_component_vxe_column, {
|
|
33063
33093
|
key: 5,
|
|
33094
|
+
field: column.field,
|
|
33064
33095
|
"min-width": column.minWidth,
|
|
33065
33096
|
width: column.width,
|
|
33066
33097
|
align: "center",
|
|
@@ -33091,7 +33122,7 @@ function _sfc_render$b(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
33091
33122
|
}, 1024)
|
|
33092
33123
|
]),
|
|
33093
33124
|
_: 2
|
|
33094
|
-
}, 1032, ["min-width", "width"])) : (openBlock(), createBlock(_component_vxe_column, {
|
|
33125
|
+
}, 1032, ["field", "min-width", "width"])) : (openBlock(), createBlock(_component_vxe_column, {
|
|
33095
33126
|
key: 6,
|
|
33096
33127
|
field: column.field,
|
|
33097
33128
|
"min-width": column.minWidth,
|
|
@@ -33130,8 +33161,8 @@ function _sfc_render$b(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
33130
33161
|
}), 256))
|
|
33131
33162
|
]);
|
|
33132
33163
|
}
|
|
33133
|
-
const GridColumn = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
33134
|
-
const propDefine$
|
|
33164
|
+
const GridColumn = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["render", _sfc_render$c], ["__scopeId", "data-v-edaf2a4d"]]);
|
|
33165
|
+
const propDefine$l = {
|
|
33135
33166
|
option: {
|
|
33136
33167
|
// Gird 配置项
|
|
33137
33168
|
type: Object,
|
|
@@ -33167,7 +33198,7 @@ const propDefine$k = {
|
|
|
33167
33198
|
default: ""
|
|
33168
33199
|
}
|
|
33169
33200
|
};
|
|
33170
|
-
const _sfc_main$
|
|
33201
|
+
const _sfc_main$b = defineComponent({
|
|
33171
33202
|
name: "NvGrid",
|
|
33172
33203
|
components: {
|
|
33173
33204
|
VxeGrid,
|
|
@@ -33178,7 +33209,7 @@ const _sfc_main$a = defineComponent({
|
|
|
33178
33209
|
GridColumn
|
|
33179
33210
|
},
|
|
33180
33211
|
emits: [""],
|
|
33181
|
-
props: propDefine$
|
|
33212
|
+
props: propDefine$l,
|
|
33182
33213
|
setup(props, ctx) {
|
|
33183
33214
|
return new GridInstance$1(props, ctx);
|
|
33184
33215
|
}
|
|
@@ -33549,6 +33580,26 @@ let GridInstance$1 = class GridInstance2 extends BaseInstance {
|
|
|
33549
33580
|
}
|
|
33550
33581
|
return true;
|
|
33551
33582
|
});
|
|
33583
|
+
/**
|
|
33584
|
+
* 行附加 className
|
|
33585
|
+
* @returns
|
|
33586
|
+
*/
|
|
33587
|
+
__publicField2(this, "getRowClassName", () => {
|
|
33588
|
+
if (this.props.option.setting) {
|
|
33589
|
+
return this.props.option.setting.rowClassName;
|
|
33590
|
+
}
|
|
33591
|
+
return "";
|
|
33592
|
+
});
|
|
33593
|
+
/**
|
|
33594
|
+
* 单元格附加 className
|
|
33595
|
+
* @returns
|
|
33596
|
+
*/
|
|
33597
|
+
__publicField2(this, "getCellClassName", () => {
|
|
33598
|
+
if (this.props.option.setting) {
|
|
33599
|
+
return this.props.option.setting.cellClassName;
|
|
33600
|
+
}
|
|
33601
|
+
return "";
|
|
33602
|
+
});
|
|
33552
33603
|
/**
|
|
33553
33604
|
* 启用双击展开行
|
|
33554
33605
|
* @returns
|
|
@@ -34269,7 +34320,8 @@ let GridInstance$1 = class GridInstance2 extends BaseInstance {
|
|
|
34269
34320
|
}
|
|
34270
34321
|
//#endregion 公开方法 END
|
|
34271
34322
|
};
|
|
34272
|
-
const
|
|
34323
|
+
const Grid_vue_vue_type_style_index_0_scoped_636503f8_lang = "";
|
|
34324
|
+
const _withScopeId$1 = (n) => (pushScopeId("data-v-636503f8"), n = n(), popScopeId(), n);
|
|
34273
34325
|
const _hoisted_1$7 = { class: "nv-crud" };
|
|
34274
34326
|
const _hoisted_2$6 = { class: "nv-crud-body" };
|
|
34275
34327
|
const _hoisted_3$5 = { class: "nv-crud-body-search" };
|
|
@@ -34285,11 +34337,12 @@ const _hoisted_6$1 = {
|
|
|
34285
34337
|
class: "nv-crud-body-table",
|
|
34286
34338
|
ref: "crudTable"
|
|
34287
34339
|
};
|
|
34288
|
-
const _hoisted_7$1 = {
|
|
34340
|
+
const _hoisted_7$1 = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ createElementVNode("span", { class: "grid-msg" }, "加载中...", -1));
|
|
34341
|
+
const _hoisted_8$1 = {
|
|
34289
34342
|
key: 0,
|
|
34290
34343
|
class: "nv-crud-footer"
|
|
34291
34344
|
};
|
|
34292
|
-
function _sfc_render$
|
|
34345
|
+
function _sfc_render$b(_ctx, _cache, $props, $setup, $data, $options) {
|
|
34293
34346
|
const _component_search_com = resolveComponent("search-com");
|
|
34294
34347
|
const _component_Divider = resolveComponent("Divider");
|
|
34295
34348
|
const _component_toolbar = resolveComponent("toolbar");
|
|
@@ -34297,6 +34350,7 @@ function _sfc_render$a(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
34297
34350
|
const _component_Col = resolveComponent("Col");
|
|
34298
34351
|
const _component_Button = resolveComponent("Button");
|
|
34299
34352
|
const _component_Row = resolveComponent("Row");
|
|
34353
|
+
const _component_Icon = resolveComponent("Icon");
|
|
34300
34354
|
const _component_Spin = resolveComponent("Spin");
|
|
34301
34355
|
const _component_grid_column = resolveComponent("grid-column");
|
|
34302
34356
|
const _component_vxe_table = resolveComponent("vxe-table");
|
|
@@ -34372,10 +34426,20 @@ function _sfc_render$a(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
34372
34426
|
})
|
|
34373
34427
|
])) : createCommentVNode("", true),
|
|
34374
34428
|
createElementVNode("div", _hoisted_6$1, [
|
|
34375
|
-
|
|
34376
|
-
|
|
34377
|
-
|
|
34378
|
-
}
|
|
34429
|
+
createVNode(_component_Spin, {
|
|
34430
|
+
fix: "",
|
|
34431
|
+
show: _ctx.loadDataing
|
|
34432
|
+
}, {
|
|
34433
|
+
default: withCtx(() => [
|
|
34434
|
+
createVNode(_component_Icon, {
|
|
34435
|
+
type: "ios-loading",
|
|
34436
|
+
size: "24",
|
|
34437
|
+
class: "grid-icon-load"
|
|
34438
|
+
}),
|
|
34439
|
+
_hoisted_7$1
|
|
34440
|
+
]),
|
|
34441
|
+
_: 1
|
|
34442
|
+
}, 8, ["show"]),
|
|
34379
34443
|
withDirectives(createVNode(_component_vxe_table, mergeProps(toHandlers(_ctx.gridEvents), {
|
|
34380
34444
|
ref: "xTable",
|
|
34381
34445
|
size: "small",
|
|
@@ -34385,6 +34449,8 @@ function _sfc_render$a(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
34385
34449
|
"column-config": { resizable: true },
|
|
34386
34450
|
border: _ctx.getBorder(),
|
|
34387
34451
|
"show-header": _ctx.getShowHeader(),
|
|
34452
|
+
"row-class-name": _ctx.getRowClassName(),
|
|
34453
|
+
"cell-class-name": _ctx.getCellClassName(),
|
|
34388
34454
|
"row-config": _ctx.getRowConfig(),
|
|
34389
34455
|
"edit-config": _ctx.getEditConfig(),
|
|
34390
34456
|
"tree-config": _ctx.getTreeConfig(),
|
|
@@ -34437,12 +34503,12 @@ function _sfc_render$a(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
34437
34503
|
}, null, 8, ["columns", "xTable", "onClearRadioRow", "onDelete", "onAddchild"])
|
|
34438
34504
|
]),
|
|
34439
34505
|
_: 1
|
|
34440
|
-
}, 16, ["data", "border", "show-header", "row-config", "edit-config", "tree-config", "edit-rules", "menu-config", "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"]), [
|
|
34506
|
+
}, 16, ["data", "border", "show-header", "row-class-name", "cell-class-name", "row-config", "edit-config", "tree-config", "edit-rules", "menu-config", "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"]), [
|
|
34441
34507
|
[vShow, _ctx.showTable]
|
|
34442
34508
|
])
|
|
34443
34509
|
], 512)
|
|
34444
34510
|
]),
|
|
34445
|
-
_ctx.getIsPagination() ? (openBlock(), createElementBlock("div",
|
|
34511
|
+
_ctx.getIsPagination() ? (openBlock(), createElementBlock("div", _hoisted_8$1, [
|
|
34446
34512
|
createVNode(_component_Page, {
|
|
34447
34513
|
modelValue: _ctx.pageIndex,
|
|
34448
34514
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => _ctx.pageIndex = $event),
|
|
@@ -34455,8 +34521,8 @@ function _sfc_render$a(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
34455
34521
|
])) : createCommentVNode("", true)
|
|
34456
34522
|
]);
|
|
34457
34523
|
}
|
|
34458
|
-
const Grid = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
34459
|
-
const propDefine$
|
|
34524
|
+
const Grid = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["render", _sfc_render$b], ["__scopeId", "data-v-636503f8"]]);
|
|
34525
|
+
const propDefine$k = {
|
|
34460
34526
|
width: {
|
|
34461
34527
|
// Box 宽度
|
|
34462
34528
|
type: String,
|
|
@@ -34491,11 +34557,11 @@ const propDefine$j = {
|
|
|
34491
34557
|
default: false
|
|
34492
34558
|
}
|
|
34493
34559
|
};
|
|
34494
|
-
const _sfc_main$
|
|
34560
|
+
const _sfc_main$a = defineComponent({
|
|
34495
34561
|
name: "NvBox",
|
|
34496
34562
|
components: {},
|
|
34497
34563
|
emits: ["change", "on-back"],
|
|
34498
|
-
props: propDefine$
|
|
34564
|
+
props: propDefine$k,
|
|
34499
34565
|
setup(props, ctx) {
|
|
34500
34566
|
return new BoxInstance$1(props, ctx);
|
|
34501
34567
|
}
|
|
@@ -34591,7 +34657,7 @@ const _hoisted_5$3 = {
|
|
|
34591
34657
|
key: 3,
|
|
34592
34658
|
class: "nv-box-footer"
|
|
34593
34659
|
};
|
|
34594
|
-
function _sfc_render$
|
|
34660
|
+
function _sfc_render$a(_ctx, _cache, $props, $setup, $data, $options) {
|
|
34595
34661
|
const _component_Icon = resolveComponent("Icon");
|
|
34596
34662
|
const _component_Divider = resolveComponent("Divider");
|
|
34597
34663
|
const _component_Col = resolveComponent("Col");
|
|
@@ -34661,19 +34727,19 @@ function _sfc_render$9(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
34661
34727
|
_: 3
|
|
34662
34728
|
}, 8, ["style"]);
|
|
34663
34729
|
}
|
|
34664
|
-
const Box = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
34665
|
-
const propDefine$
|
|
34730
|
+
const Box = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["render", _sfc_render$a], ["__scopeId", "data-v-46073643"]]);
|
|
34731
|
+
const propDefine$j = {
|
|
34666
34732
|
gutter: {
|
|
34667
34733
|
// 栅格间的间距
|
|
34668
34734
|
type: Number,
|
|
34669
34735
|
default: 0
|
|
34670
34736
|
}
|
|
34671
34737
|
};
|
|
34672
|
-
const _sfc_main$
|
|
34738
|
+
const _sfc_main$9 = defineComponent({
|
|
34673
34739
|
name: "NvPage",
|
|
34674
34740
|
components: {},
|
|
34675
34741
|
emits: [""],
|
|
34676
|
-
props: propDefine$
|
|
34742
|
+
props: propDefine$j,
|
|
34677
34743
|
setup(props, ctx) {
|
|
34678
34744
|
return new PageInstance$1(props, ctx);
|
|
34679
34745
|
}
|
|
@@ -34690,7 +34756,7 @@ let PageInstance$1 = class PageInstance2 extends BaseInstance {
|
|
|
34690
34756
|
}
|
|
34691
34757
|
};
|
|
34692
34758
|
const Page_vue_vue_type_style_index_0_scoped_22d5952e_lang = "";
|
|
34693
|
-
function _sfc_render$
|
|
34759
|
+
function _sfc_render$9(_ctx, _cache, $props, $setup, $data, $options) {
|
|
34694
34760
|
const _component_Row = resolveComponent("Row");
|
|
34695
34761
|
return openBlock(), createBlock(_component_Row, {
|
|
34696
34762
|
class: "page",
|
|
@@ -34702,8 +34768,8 @@ function _sfc_render$8(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
34702
34768
|
_: 3
|
|
34703
34769
|
}, 8, ["gutter"]);
|
|
34704
34770
|
}
|
|
34705
|
-
const Page$1 = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
34706
|
-
const propDefine$
|
|
34771
|
+
const Page$1 = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["render", _sfc_render$9], ["__scopeId", "data-v-22d5952e"]]);
|
|
34772
|
+
const propDefine$i = {
|
|
34707
34773
|
splitValue: {
|
|
34708
34774
|
// 分割值大小
|
|
34709
34775
|
type: Number,
|
|
@@ -34720,12 +34786,12 @@ const propDefine$h = {
|
|
|
34720
34786
|
default: "200px"
|
|
34721
34787
|
}
|
|
34722
34788
|
};
|
|
34723
|
-
const _sfc_main$
|
|
34789
|
+
const _sfc_main$8 = defineComponent({
|
|
34724
34790
|
name: "NvPage2L",
|
|
34725
34791
|
components: {},
|
|
34726
34792
|
emits: [""],
|
|
34727
34793
|
// 例如: ['clearRadioRow', 'change', 'delete', 'addchild']
|
|
34728
|
-
props: propDefine$
|
|
34794
|
+
props: propDefine$i,
|
|
34729
34795
|
setup(props, ctx) {
|
|
34730
34796
|
return new Page2LInstance$1(props, ctx);
|
|
34731
34797
|
}
|
|
@@ -34759,7 +34825,7 @@ let Page2LInstance$1 = class Page2LInstance2 extends BaseInstance {
|
|
|
34759
34825
|
const Page2L_vue_vue_type_style_index_0_scoped_92af6688_lang = "";
|
|
34760
34826
|
const _hoisted_1$5 = { class: "page2L" };
|
|
34761
34827
|
const _hoisted_2$4 = { class: "md-content" };
|
|
34762
|
-
function _sfc_render$
|
|
34828
|
+
function _sfc_render$8(_ctx, _cache, $props, $setup, $data, $options) {
|
|
34763
34829
|
const _component_Split = resolveComponent("Split");
|
|
34764
34830
|
const _component_NvPage = resolveComponent("NvPage");
|
|
34765
34831
|
return openBlock(), createElementBlock("div", _hoisted_1$5, [
|
|
@@ -34786,7 +34852,7 @@ function _sfc_render$7(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
34786
34852
|
])
|
|
34787
34853
|
]);
|
|
34788
34854
|
}
|
|
34789
|
-
const Page2L = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
34855
|
+
const Page2L = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["render", _sfc_render$8], ["__scopeId", "data-v-92af6688"]]);
|
|
34790
34856
|
const ListContent = defineComponent({
|
|
34791
34857
|
name: "ListContent",
|
|
34792
34858
|
props: {
|
|
@@ -34814,19 +34880,19 @@ const ListContent = defineComponent({
|
|
|
34814
34880
|
return "";
|
|
34815
34881
|
}
|
|
34816
34882
|
});
|
|
34817
|
-
const propDefine$
|
|
34883
|
+
const propDefine$h = {
|
|
34818
34884
|
option: {
|
|
34819
34885
|
// List 配置项
|
|
34820
34886
|
type: Object,
|
|
34821
34887
|
default: () => ({})
|
|
34822
34888
|
}
|
|
34823
34889
|
};
|
|
34824
|
-
const _sfc_main$
|
|
34890
|
+
const _sfc_main$7 = defineComponent({
|
|
34825
34891
|
name: "NvList",
|
|
34826
34892
|
components: { ListContent },
|
|
34827
34893
|
emits: ["select"],
|
|
34828
34894
|
// 例如: ['clearRadioRow', 'change', 'delete', 'addchild']
|
|
34829
|
-
props: propDefine$
|
|
34895
|
+
props: propDefine$h,
|
|
34830
34896
|
setup(props, ctx) {
|
|
34831
34897
|
return new ListInstance$1(props, ctx);
|
|
34832
34898
|
}
|
|
@@ -34981,7 +35047,7 @@ let ListInstance$1 = class ListInstance2 extends BaseInstance {
|
|
|
34981
35047
|
};
|
|
34982
35048
|
const List_vue_vue_type_style_index_0_scoped_9d6c9980_lang = "";
|
|
34983
35049
|
const _hoisted_1$4 = { class: "list" };
|
|
34984
|
-
function _sfc_render$
|
|
35050
|
+
function _sfc_render$7(_ctx, _cache, $props, $setup, $data, $options) {
|
|
34985
35051
|
const _component_Spin = resolveComponent("Spin");
|
|
34986
35052
|
const _component_ListContent = resolveComponent("ListContent");
|
|
34987
35053
|
const _component_Cell = resolveComponent("Cell");
|
|
@@ -35032,7 +35098,7 @@ function _sfc_render$6(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
35032
35098
|
}, 8, ["onOnClick"])
|
|
35033
35099
|
]);
|
|
35034
35100
|
}
|
|
35035
|
-
const List = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
35101
|
+
const List = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render$7], ["__scopeId", "data-v-9d6c9980"]]);
|
|
35036
35102
|
/*! @preserve
|
|
35037
35103
|
* luckysheet
|
|
35038
35104
|
* version: 2.1.13
|
|
@@ -189034,7 +189100,7 @@ class ReportApi extends BaseInstance {
|
|
|
189034
189100
|
}
|
|
189035
189101
|
class LuckySheet extends ReportApi {
|
|
189036
189102
|
}
|
|
189037
|
-
const propDefine$
|
|
189103
|
+
const propDefine$g = {
|
|
189038
189104
|
width: {
|
|
189039
189105
|
// 宽度
|
|
189040
189106
|
type: String,
|
|
@@ -189056,12 +189122,12 @@ const propDefine$f = {
|
|
|
189056
189122
|
default: ""
|
|
189057
189123
|
}
|
|
189058
189124
|
};
|
|
189059
|
-
const _sfc_main$
|
|
189125
|
+
const _sfc_main$6 = defineComponent({
|
|
189060
189126
|
name: "NvControlGroup",
|
|
189061
189127
|
components: {},
|
|
189062
189128
|
emits: ["click"],
|
|
189063
189129
|
// 例如: ['clearRadioRow', 'change', 'delete', 'addchild']
|
|
189064
|
-
props: propDefine$
|
|
189130
|
+
props: propDefine$g,
|
|
189065
189131
|
setup(props, ctx) {
|
|
189066
189132
|
return new ControlGroupInstance(props, ctx);
|
|
189067
189133
|
}
|
|
@@ -189099,7 +189165,7 @@ class ControlGroupInstance extends BaseInstance {
|
|
|
189099
189165
|
//#endregion 控件组 END
|
|
189100
189166
|
}
|
|
189101
189167
|
const ControlGroup_vue_vue_type_style_index_0_scoped_fd687636_lang = "";
|
|
189102
|
-
function _sfc_render$
|
|
189168
|
+
function _sfc_render$6(_ctx, _cache, $props, $setup, $data, $options) {
|
|
189103
189169
|
const _component_Button = resolveComponent("Button");
|
|
189104
189170
|
return openBlock(), createElementBlock("div", {
|
|
189105
189171
|
class: "controlGroup",
|
|
@@ -189123,8 +189189,8 @@ function _sfc_render$5(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
189123
189189
|
}, null, 8, ["icon", "onClick"])) : createCommentVNode("", true)
|
|
189124
189190
|
], 4);
|
|
189125
189191
|
}
|
|
189126
|
-
const ControlGroup = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
189127
|
-
const propDefine$
|
|
189192
|
+
const ControlGroup = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["render", _sfc_render$6], ["__scopeId", "data-v-fd687636"]]);
|
|
189193
|
+
const propDefine$f = {
|
|
189128
189194
|
linkParam: {
|
|
189129
189195
|
// 带入的参数
|
|
189130
189196
|
type: String,
|
|
@@ -189136,12 +189202,12 @@ const propDefine$e = {
|
|
|
189136
189202
|
default: "-"
|
|
189137
189203
|
}
|
|
189138
189204
|
};
|
|
189139
|
-
const _sfc_main$
|
|
189205
|
+
const _sfc_main$5 = defineComponent({
|
|
189140
189206
|
name: "LogPanel",
|
|
189141
189207
|
components: {},
|
|
189142
189208
|
emits: [""],
|
|
189143
189209
|
// 例如: ['clearRadioRow', 'change', 'delete', 'addchild']
|
|
189144
|
-
props: propDefine$
|
|
189210
|
+
props: propDefine$f,
|
|
189145
189211
|
setup(props, ctx) {
|
|
189146
189212
|
return new LogPanelInstance(props, ctx);
|
|
189147
189213
|
}
|
|
@@ -189245,7 +189311,7 @@ const _hoisted_8 = { key: 2 };
|
|
|
189245
189311
|
const _hoisted_9 = ["innerHTML"];
|
|
189246
189312
|
const _hoisted_10 = { key: 3 };
|
|
189247
189313
|
const _hoisted_11 = ["innerHTML"];
|
|
189248
|
-
function _sfc_render$
|
|
189314
|
+
function _sfc_render$5(_ctx, _cache, $props, $setup, $data, $options) {
|
|
189249
189315
|
return openBlock(), createElementBlock("div", _hoisted_1$3, [
|
|
189250
189316
|
createElementVNode("div", _hoisted_2$3, [
|
|
189251
189317
|
createElementVNode("div", {
|
|
@@ -189314,8 +189380,8 @@ function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
189314
189380
|
])
|
|
189315
189381
|
]);
|
|
189316
189382
|
}
|
|
189317
|
-
const LogPanel = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
189318
|
-
const propDefine$
|
|
189383
|
+
const LogPanel = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["render", _sfc_render$5], ["__scopeId", "data-v-0df58132"]]);
|
|
189384
|
+
const propDefine$e = {
|
|
189319
189385
|
isSheetGroup: {
|
|
189320
189386
|
// 是否按sheet页分组返回导入数据
|
|
189321
189387
|
// 传入true时则不提供选择sheet页下拉列表,会将所有sheet页数据全部返回
|
|
@@ -189338,12 +189404,12 @@ const propDefine$d = {
|
|
|
189338
189404
|
default: false
|
|
189339
189405
|
}
|
|
189340
189406
|
};
|
|
189341
|
-
const _sfc_main$
|
|
189407
|
+
const _sfc_main$4 = defineComponent({
|
|
189342
189408
|
name: "NvExcelImport",
|
|
189343
189409
|
components: { LogPanel },
|
|
189344
189410
|
emits: ["import"],
|
|
189345
189411
|
// 例如: ['clearRadioRow', 'change', 'delete', 'addchild']
|
|
189346
|
-
props: propDefine$
|
|
189412
|
+
props: propDefine$e,
|
|
189347
189413
|
setup(props, ctx) {
|
|
189348
189414
|
return new ExcelImportInstance$1(props, ctx);
|
|
189349
189415
|
}
|
|
@@ -189496,7 +189562,7 @@ const _hoisted_1$2 = { class: "excelImport" };
|
|
|
189496
189562
|
const _hoisted_2$2 = { class: "excel-header" };
|
|
189497
189563
|
const _hoisted_3$2 = ["id", "accept"];
|
|
189498
189564
|
const _hoisted_4$2 = { class: "excel-log" };
|
|
189499
|
-
function _sfc_render$
|
|
189565
|
+
function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
189500
189566
|
const _component_Button = resolveComponent("Button");
|
|
189501
189567
|
const _component_Option = resolveComponent("Option");
|
|
189502
189568
|
const _component_Select = resolveComponent("Select");
|
|
@@ -189589,7 +189655,7 @@ function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
189589
189655
|
])
|
|
189590
189656
|
]);
|
|
189591
189657
|
}
|
|
189592
|
-
const ExcelImport = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
189658
|
+
const ExcelImport = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["render", _sfc_render$4], ["__scopeId", "data-v-8f25f8b7"]]);
|
|
189593
189659
|
class HtmlBase {
|
|
189594
189660
|
constructor() {
|
|
189595
189661
|
__publicField2(this, "textAlign", {
|
|
@@ -210591,7 +210657,7 @@ async function GetDoc(i1, i2) {
|
|
|
210591
210657
|
]
|
|
210592
210658
|
});
|
|
210593
210659
|
}
|
|
210594
|
-
const propDefine$
|
|
210660
|
+
const propDefine$d = {
|
|
210595
210661
|
ContentDatas: {
|
|
210596
210662
|
type: Array,
|
|
210597
210663
|
default: () => []
|
|
@@ -210601,12 +210667,12 @@ const propDefine$c = {
|
|
|
210601
210667
|
default: 0
|
|
210602
210668
|
}
|
|
210603
210669
|
};
|
|
210604
|
-
const _sfc_main$
|
|
210670
|
+
const _sfc_main$3 = defineComponent({
|
|
210605
210671
|
name: "ContentTreeView",
|
|
210606
210672
|
components: { draggable: draggable__default },
|
|
210607
210673
|
emits: ["onDataChange"],
|
|
210608
210674
|
// 例如: ['clearRadioRow', 'change', 'delete', 'addchild']
|
|
210609
|
-
props: propDefine$
|
|
210675
|
+
props: propDefine$d,
|
|
210610
210676
|
setup(props, ctx) {
|
|
210611
210677
|
return new ContentTreeViewInstance(props, ctx);
|
|
210612
210678
|
}
|
|
@@ -210642,7 +210708,7 @@ class ContentTreeViewInstance extends BaseInstance {
|
|
|
210642
210708
|
this.ctx = ctx;
|
|
210643
210709
|
}
|
|
210644
210710
|
}
|
|
210645
|
-
function _sfc_render$
|
|
210711
|
+
function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
210646
210712
|
const _component_Button = resolveComponent("Button");
|
|
210647
210713
|
const _component_ContentTreeView = resolveComponent("ContentTreeView", true);
|
|
210648
210714
|
const _component_draggable = resolveComponent("draggable");
|
|
@@ -210696,14 +210762,14 @@ function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
210696
210762
|
}, 8, ["modelValue"])
|
|
210697
210763
|
], 64);
|
|
210698
210764
|
}
|
|
210699
|
-
const ContentTreeView = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
210700
|
-
const propDefine$
|
|
210701
|
-
const _sfc_main$
|
|
210765
|
+
const ContentTreeView = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["render", _sfc_render$3]]);
|
|
210766
|
+
const propDefine$c = {};
|
|
210767
|
+
const _sfc_main$2 = defineComponent({
|
|
210702
210768
|
name: "ContentTree",
|
|
210703
210769
|
components: { draggable, ContentTreeView },
|
|
210704
210770
|
emits: ["onDocChange"],
|
|
210705
210771
|
// 例如: ['clearRadioRow', 'change', 'delete', 'addchild']
|
|
210706
|
-
props: propDefine$
|
|
210772
|
+
props: propDefine$c,
|
|
210707
210773
|
setup(props, ctx) {
|
|
210708
210774
|
return new ContentTreeInstance(props, ctx);
|
|
210709
210775
|
}
|
|
@@ -211000,7 +211066,7 @@ const _hoisted_2$1 = { style: { "width": "30%" } };
|
|
|
211000
211066
|
const _hoisted_3$1 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("div", null, "文档组件列表", -1));
|
|
211001
211067
|
const _hoisted_4$1 = { class: "content" };
|
|
211002
211068
|
const _hoisted_5$1 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("div", null, "文档结构", -1));
|
|
211003
|
-
function _sfc_render$
|
|
211069
|
+
function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
211004
211070
|
const _component_draggable = resolveComponent("draggable");
|
|
211005
211071
|
const _component_ContentTreeView = resolveComponent("ContentTreeView");
|
|
211006
211072
|
return openBlock(), createElementBlock("div", _hoisted_1$1, [
|
|
@@ -211032,14 +211098,14 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
211032
211098
|
])
|
|
211033
211099
|
]);
|
|
211034
211100
|
}
|
|
211035
|
-
const ContentTree = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
211036
|
-
const propDefine$
|
|
211037
|
-
const _sfc_main = defineComponent({
|
|
211101
|
+
const ContentTree = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["render", _sfc_render$2], ["__scopeId", "data-v-d63251e3"]]);
|
|
211102
|
+
const propDefine$b = {};
|
|
211103
|
+
const _sfc_main$1 = defineComponent({
|
|
211038
211104
|
name: "NvDocxDesigner",
|
|
211039
211105
|
components: { ContentTree, VueOfficeDocx },
|
|
211040
211106
|
emits: [""],
|
|
211041
211107
|
// 例如: ['clearRadioRow', 'change', 'delete', 'addchild']
|
|
211042
|
-
props: propDefine$
|
|
211108
|
+
props: propDefine$b,
|
|
211043
211109
|
setup(props, ctx) {
|
|
211044
211110
|
return new DocxDesignerInstance(props, ctx);
|
|
211045
211111
|
}
|
|
@@ -211087,7 +211153,7 @@ const _hoisted_2 = { class: "doc-plane-left" };
|
|
|
211087
211153
|
const _hoisted_3 = { class: "doc-plane-child" };
|
|
211088
211154
|
const _hoisted_4 = { style: { "padding": "30px" } };
|
|
211089
211155
|
const _hoisted_5 = { style: { "overflow": "auto" } };
|
|
211090
|
-
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
211156
|
+
function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
211091
211157
|
const _component_ContentTree = resolveComponent("ContentTree");
|
|
211092
211158
|
const _component_Button = resolveComponent("Button");
|
|
211093
211159
|
const _component_VueOfficeDocx = resolveComponent("VueOfficeDocx");
|
|
@@ -211116,7 +211182,104 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
211116
211182
|
])
|
|
211117
211183
|
]);
|
|
211118
211184
|
}
|
|
211119
|
-
const DocxDesigner = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-18b6c486"]]);
|
|
211185
|
+
const DocxDesigner = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render$1], ["__scopeId", "data-v-18b6c486"]]);
|
|
211186
|
+
const propDefine$a = {
|
|
211187
|
+
type: {
|
|
211188
|
+
// 按钮类型,可选值为 default、primary、dashed、text、info、success、warning、error
|
|
211189
|
+
type: String,
|
|
211190
|
+
default: "default"
|
|
211191
|
+
},
|
|
211192
|
+
ghost: {
|
|
211193
|
+
// 幽灵属性,使按钮背景透明
|
|
211194
|
+
type: Boolean,
|
|
211195
|
+
default: false
|
|
211196
|
+
},
|
|
211197
|
+
shape: {
|
|
211198
|
+
//按钮形状,可选值为 circle 或者不设置 //注:iview版本存在问题导致形状不生效
|
|
211199
|
+
type: String,
|
|
211200
|
+
default: "-"
|
|
211201
|
+
},
|
|
211202
|
+
size: {
|
|
211203
|
+
// 按钮大小,可选值为 large、small、default 或者不设置
|
|
211204
|
+
type: String,
|
|
211205
|
+
default: "default"
|
|
211206
|
+
},
|
|
211207
|
+
disabled: {
|
|
211208
|
+
// 设置按钮为禁用状态
|
|
211209
|
+
type: Boolean,
|
|
211210
|
+
default: false
|
|
211211
|
+
},
|
|
211212
|
+
loading: {
|
|
211213
|
+
// 设置按钮为加载中状态
|
|
211214
|
+
type: Boolean,
|
|
211215
|
+
default: false
|
|
211216
|
+
},
|
|
211217
|
+
icon: {
|
|
211218
|
+
//图表 参考ivew图表库
|
|
211219
|
+
type: String,
|
|
211220
|
+
default: null
|
|
211221
|
+
},
|
|
211222
|
+
timeOut: {
|
|
211223
|
+
// 限制时间
|
|
211224
|
+
type: Number,
|
|
211225
|
+
default: 300
|
|
211226
|
+
}
|
|
211227
|
+
};
|
|
211228
|
+
const _sfc_main = defineComponent({
|
|
211229
|
+
name: "NvButton",
|
|
211230
|
+
components: {},
|
|
211231
|
+
emits: ["click"],
|
|
211232
|
+
// 例如: ['clearRadioRow', 'change', 'delete', 'addchild']
|
|
211233
|
+
props: propDefine$a,
|
|
211234
|
+
setup(props, ctx) {
|
|
211235
|
+
return new ButtonInstance(props, ctx);
|
|
211236
|
+
}
|
|
211237
|
+
});
|
|
211238
|
+
class ButtonInstance extends BaseInstance {
|
|
211239
|
+
// API实例化
|
|
211240
|
+
// private platformApi: PlatformApi = new PlatformApi();
|
|
211241
|
+
// 全局属性
|
|
211242
|
+
constructor(props, ctx) {
|
|
211243
|
+
super();
|
|
211244
|
+
__publicField2(this, "props");
|
|
211245
|
+
__publicField2(this, "ctx");
|
|
211246
|
+
//#region BinEditor 编辑器
|
|
211247
|
+
// 私有属性 | private
|
|
211248
|
+
// 响应属性 | ref、reactive、computed
|
|
211249
|
+
// 私有方法 | private 方法名() {}
|
|
211250
|
+
// 响应式方法 | xxx = () => {}
|
|
211251
|
+
/**
|
|
211252
|
+
* 按钮点击事件
|
|
211253
|
+
*/
|
|
211254
|
+
__publicField2(this, "doClick", () => {
|
|
211255
|
+
this.utilities.debounce(() => {
|
|
211256
|
+
this.ctx.emit("click");
|
|
211257
|
+
}, this.props.timeOut)();
|
|
211258
|
+
});
|
|
211259
|
+
this.props = props;
|
|
211260
|
+
this.ctx = ctx;
|
|
211261
|
+
}
|
|
211262
|
+
//#endregion BinEditor 编辑器 END
|
|
211263
|
+
}
|
|
211264
|
+
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
211265
|
+
const _component_Button = resolveComponent("Button");
|
|
211266
|
+
return openBlock(), createBlock(_component_Button, {
|
|
211267
|
+
type: _ctx.type,
|
|
211268
|
+
ghost: _ctx.ghost,
|
|
211269
|
+
size: _ctx.size,
|
|
211270
|
+
shape: _ctx.shape,
|
|
211271
|
+
disabled: _ctx.disabled,
|
|
211272
|
+
loading: _ctx.loading,
|
|
211273
|
+
icon: _ctx.icon,
|
|
211274
|
+
onClick: _ctx.doClick
|
|
211275
|
+
}, {
|
|
211276
|
+
default: withCtx(() => [
|
|
211277
|
+
renderSlot(_ctx.$slots, "default")
|
|
211278
|
+
]),
|
|
211279
|
+
_: 3
|
|
211280
|
+
}, 8, ["type", "ghost", "size", "shape", "disabled", "loading", "icon", "onClick"]);
|
|
211281
|
+
}
|
|
211282
|
+
const NvButton = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
211120
211283
|
const components = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
211121
211284
|
__proto__: null,
|
|
211122
211285
|
DocxTemplat: index$1,
|
|
@@ -211125,6 +211288,7 @@ const components = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePr
|
|
|
211125
211288
|
HtmlJson,
|
|
211126
211289
|
LuckySheet,
|
|
211127
211290
|
NvBox: Box,
|
|
211291
|
+
NvButton,
|
|
211128
211292
|
NvComForm: ComForm,
|
|
211129
211293
|
NvControlGroup: ControlGroup,
|
|
211130
211294
|
NvDocxDesigner: DocxDesigner,
|
|
@@ -211830,6 +211994,26 @@ class GridInstance extends BaseInstance {
|
|
|
211830
211994
|
}
|
|
211831
211995
|
return true;
|
|
211832
211996
|
});
|
|
211997
|
+
/**
|
|
211998
|
+
* 行附加 className
|
|
211999
|
+
* @returns
|
|
212000
|
+
*/
|
|
212001
|
+
__publicField2(this, "getRowClassName", () => {
|
|
212002
|
+
if (this.props.option.setting) {
|
|
212003
|
+
return this.props.option.setting.rowClassName;
|
|
212004
|
+
}
|
|
212005
|
+
return "";
|
|
212006
|
+
});
|
|
212007
|
+
/**
|
|
212008
|
+
* 单元格附加 className
|
|
212009
|
+
* @returns
|
|
212010
|
+
*/
|
|
212011
|
+
__publicField2(this, "getCellClassName", () => {
|
|
212012
|
+
if (this.props.option.setting) {
|
|
212013
|
+
return this.props.option.setting.cellClassName;
|
|
212014
|
+
}
|
|
212015
|
+
return "";
|
|
212016
|
+
});
|
|
211833
212017
|
/**
|
|
211834
212018
|
* 启用双击展开行
|
|
211835
212019
|
* @returns
|
|
@@ -212984,6 +213168,28 @@ class ToolbarInstance extends BaseInstance {
|
|
|
212984
213168
|
}
|
|
212985
213169
|
return isShow;
|
|
212986
213170
|
});
|
|
213171
|
+
/**
|
|
213172
|
+
* 获取Icon
|
|
213173
|
+
* @param item
|
|
213174
|
+
* @returns
|
|
213175
|
+
*/
|
|
213176
|
+
__publicField2(this, "getIcon", (item2) => {
|
|
213177
|
+
if (this.utilities.isNull(item2.icon) || item2.icon.indexOf("fa-") != -1) {
|
|
213178
|
+
return "";
|
|
213179
|
+
}
|
|
213180
|
+
return item2.icon;
|
|
213181
|
+
});
|
|
213182
|
+
/**
|
|
213183
|
+
* 是否为Fa Icon
|
|
213184
|
+
* @param item
|
|
213185
|
+
* @returns
|
|
213186
|
+
*/
|
|
213187
|
+
__publicField2(this, "isFaIcon", (item2) => {
|
|
213188
|
+
if (this.utilities.isNull(item2.icon)) {
|
|
213189
|
+
return false;
|
|
213190
|
+
}
|
|
213191
|
+
return item2.icon.indexOf("fa-") != -1;
|
|
213192
|
+
});
|
|
212987
213193
|
this.props = props;
|
|
212988
213194
|
this.ctx = ctx;
|
|
212989
213195
|
this.useToolbar();
|
|
@@ -213414,6 +213620,7 @@ export {
|
|
|
213414
213620
|
ListInstance,
|
|
213415
213621
|
LuckySheet,
|
|
213416
213622
|
Box as NvBox,
|
|
213623
|
+
NvButton,
|
|
213417
213624
|
ComForm as NvComForm,
|
|
213418
213625
|
ControlGroup as NvControlGroup,
|
|
213419
213626
|
DocxDesigner as NvDocxDesigner,
|