@newview/file-ui 1.1.55 → 1.1.56
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/file-ui.js +57 -47
- package/dist/file-ui.umd.cjs +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/file-ui.js
CHANGED
|
@@ -18774,7 +18774,7 @@ class StructureSelectInstance extends BaseInstance {
|
|
|
18774
18774
|
__publicField(this, "TypeGroupData", ref([]));
|
|
18775
18775
|
__publicField(this, "activeNodeType", ref(""));
|
|
18776
18776
|
__publicField(this, "originalTypeGroupData", ref([]));
|
|
18777
|
-
__publicField(this, "
|
|
18777
|
+
__publicField(this, "searchInfo", ref(""));
|
|
18778
18778
|
__publicField(this, "searchInputRef", ref(null));
|
|
18779
18779
|
__publicField(this, "poptipVisible", ref(false));
|
|
18780
18780
|
/**
|
|
@@ -18787,7 +18787,7 @@ class StructureSelectInstance extends BaseInstance {
|
|
|
18787
18787
|
/** 查询 */
|
|
18788
18788
|
__publicField(this, "doSearch", () => {
|
|
18789
18789
|
var _a, _b, _c, _d, _e;
|
|
18790
|
-
const keyword = (_a = this.
|
|
18790
|
+
const keyword = (_a = this.searchInfo.value) == null ? void 0 : _a.trim();
|
|
18791
18791
|
if (!keyword) {
|
|
18792
18792
|
this.TypeGroupData.value = JSON.parse(JSON.stringify(this.originalTypeGroupData.value));
|
|
18793
18793
|
this.activeNodeType.value = (_b = this.TypeGroupData.value[0]) == null ? void 0 : _b.NodeTypeName;
|
|
@@ -18811,23 +18811,30 @@ class StructureSelectInstance extends BaseInstance {
|
|
|
18811
18811
|
this.unitData.value = ((_e = this.TypeGroupData.value[0]) == null ? void 0 : _e.UnitData) || [];
|
|
18812
18812
|
this.NodeTypeSelect();
|
|
18813
18813
|
});
|
|
18814
|
-
|
|
18815
|
-
|
|
18816
|
-
|
|
18817
|
-
|
|
18818
|
-
|
|
18819
|
-
const inputRef = this.searchInputRef.value;
|
|
18820
|
-
if (inputRef) {
|
|
18821
|
-
if (typeof inputRef.focus === "function") {
|
|
18822
|
-
inputRef.focus();
|
|
18823
|
-
} else if (inputRef.$el) {
|
|
18824
|
-
const inputEl = inputRef.$el.querySelector("input");
|
|
18825
|
-
if (inputEl) {
|
|
18826
|
-
inputEl.focus();
|
|
18827
|
-
}
|
|
18828
|
-
}
|
|
18829
|
-
}
|
|
18814
|
+
// 点击清空输入框内容
|
|
18815
|
+
__publicField(this, "clearSearchInfo", async () => {
|
|
18816
|
+
console.log("%c🤪 ~ file: h:workNvWebs_Basepackagesservice\file·uisrcDataStructureNvStructureSelect.ts:166 : ", "color: #88eceb", "clearSearchInfo");
|
|
18817
|
+
this.searchInfo.value = "";
|
|
18818
|
+
this.doSearch();
|
|
18830
18819
|
});
|
|
18820
|
+
// 点击清空已选项并使输入框获得焦点
|
|
18821
|
+
// openStructureInstanceInput = async () => {
|
|
18822
|
+
// this.StructureInstanceCheckData.value = []
|
|
18823
|
+
// this.poptipVisible.value = true
|
|
18824
|
+
// await nextTick()
|
|
18825
|
+
// await nextTick()
|
|
18826
|
+
// const inputRef = this.searchInputRef.value
|
|
18827
|
+
// if (inputRef) {
|
|
18828
|
+
// if (typeof inputRef.focus === 'function') {
|
|
18829
|
+
// inputRef.focus()
|
|
18830
|
+
// } else if (inputRef.$el) {
|
|
18831
|
+
// const inputEl = inputRef.$el.querySelector('input')
|
|
18832
|
+
// if (inputEl) {
|
|
18833
|
+
// inputEl.focus()
|
|
18834
|
+
// }
|
|
18835
|
+
// }
|
|
18836
|
+
// }
|
|
18837
|
+
// }
|
|
18831
18838
|
//#endregion
|
|
18832
18839
|
//#region 构件选择--单位工程列表相关
|
|
18833
18840
|
__publicField(this, "activeUnit", ref(0));
|
|
@@ -19017,20 +19024,20 @@ class StructureSelectInstance extends BaseInstance {
|
|
|
19017
19024
|
}
|
|
19018
19025
|
}
|
|
19019
19026
|
}
|
|
19020
|
-
const
|
|
19021
|
-
const _withScopeId$1 = (n) => (pushScopeId("data-v-
|
|
19027
|
+
const NvStructureSelect_vue_vue_type_style_index_0_scoped_079c1ad0_lang = "";
|
|
19028
|
+
const _withScopeId$1 = (n) => (pushScopeId("data-v-079c1ad0"), n = n(), popScopeId(), n);
|
|
19022
19029
|
const _hoisted_1$2 = { key: 1 };
|
|
19023
19030
|
const _hoisted_2$2 = { class: "nv-pos-r" };
|
|
19024
19031
|
const _hoisted_3$2 = { class: "nv-c-p structure-sel-box" };
|
|
19025
19032
|
const _hoisted_4$1 = { key: 0 };
|
|
19026
|
-
const _hoisted_5$1 = { key:
|
|
19027
|
-
const _hoisted_6$1 = {
|
|
19028
|
-
const _hoisted_7$1 = {
|
|
19033
|
+
const _hoisted_5$1 = { key: 0 };
|
|
19034
|
+
const _hoisted_6$1 = { key: 1 };
|
|
19035
|
+
const _hoisted_7$1 = { style: { "margin-bottom": "10px" } };
|
|
19036
|
+
const _hoisted_8$1 = {
|
|
19029
19037
|
class: "nv-flex",
|
|
19030
19038
|
style: { "height": "280px" }
|
|
19031
19039
|
};
|
|
19032
|
-
const
|
|
19033
|
-
const _hoisted_9$1 = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ createElementVNode("div", null, "单位工程:", -1));
|
|
19040
|
+
const _hoisted_9$1 = { class: "nv-flex-1 nv-flex-col nv-full-h" };
|
|
19034
19041
|
const _hoisted_10$1 = { class: "nv-flex-1 nv-overflow-auto" };
|
|
19035
19042
|
const _hoisted_11$1 = {
|
|
19036
19043
|
key: 0,
|
|
@@ -19080,9 +19087,9 @@ function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
19080
19087
|
const _component_Option = resolveComponent("Option");
|
|
19081
19088
|
const _component_OptionGroup = resolveComponent("OptionGroup");
|
|
19082
19089
|
const _component_Select = resolveComponent("Select");
|
|
19083
|
-
const _component_Input = resolveComponent("Input");
|
|
19084
19090
|
const _component_Radio = resolveComponent("Radio");
|
|
19085
19091
|
const _component_RadioGroup = resolveComponent("RadioGroup");
|
|
19092
|
+
const _component_Input = resolveComponent("Input");
|
|
19086
19093
|
const _component_nvLoading = resolveComponent("nvLoading");
|
|
19087
19094
|
const _component_Tree = resolveComponent("Tree");
|
|
19088
19095
|
const _component_Poptip = resolveComponent("Poptip");
|
|
@@ -19131,10 +19138,10 @@ function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
19131
19138
|
disabled: _ctx.readonly
|
|
19132
19139
|
}, {
|
|
19133
19140
|
content: withCtx(() => [
|
|
19134
|
-
createElementVNode("div",
|
|
19141
|
+
createElementVNode("div", _hoisted_7$1, [
|
|
19135
19142
|
createVNode(_component_RadioGroup, {
|
|
19136
19143
|
modelValue: _ctx.activeNodeType,
|
|
19137
|
-
"onUpdate:modelValue": _cache[
|
|
19144
|
+
"onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => _ctx.activeNodeType = $event),
|
|
19138
19145
|
type: "button",
|
|
19139
19146
|
size: "small",
|
|
19140
19147
|
"button-style": "solid",
|
|
@@ -19151,9 +19158,22 @@ function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
19151
19158
|
_: 1
|
|
19152
19159
|
}, 8, ["modelValue", "onOnChange"])
|
|
19153
19160
|
]),
|
|
19154
|
-
createElementVNode("div",
|
|
19155
|
-
createElementVNode("div",
|
|
19156
|
-
|
|
19161
|
+
createElementVNode("div", _hoisted_8$1, [
|
|
19162
|
+
createElementVNode("div", _hoisted_9$1, [
|
|
19163
|
+
createElementVNode("div", null, [
|
|
19164
|
+
createTextVNode("单位工程: "),
|
|
19165
|
+
createVNode(_component_Input, {
|
|
19166
|
+
ref: "searchInputRef",
|
|
19167
|
+
size: "small",
|
|
19168
|
+
class: "nv-full poptipInp",
|
|
19169
|
+
search: "",
|
|
19170
|
+
modelValue: _ctx.searchInfo,
|
|
19171
|
+
"onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => _ctx.searchInfo = $event),
|
|
19172
|
+
clearable: "",
|
|
19173
|
+
placeholder: "点击选择构件",
|
|
19174
|
+
onOnChange: _ctx.doSearch
|
|
19175
|
+
}, null, 8, ["modelValue", "onOnChange"])
|
|
19176
|
+
]),
|
|
19157
19177
|
createElementVNode("div", _hoisted_10$1, [
|
|
19158
19178
|
createVNode(_component_RadioGroup, {
|
|
19159
19179
|
modelValue: _ctx.activeUnit,
|
|
@@ -19194,28 +19214,18 @@ function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
19194
19214
|
default: withCtx(() => [
|
|
19195
19215
|
createElementVNode("div", _hoisted_2$2, [
|
|
19196
19216
|
createElementVNode("div", _hoisted_3$2, [
|
|
19197
|
-
_ctx.StructureInstanceCheckData.length == 0 ? (openBlock(),
|
|
19198
|
-
key: 0,
|
|
19199
|
-
ref: "searchInputRef",
|
|
19200
|
-
class: "nv-full poptipInp",
|
|
19201
|
-
search: "",
|
|
19202
|
-
modelValue: _ctx.searchTxt,
|
|
19203
|
-
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => _ctx.searchTxt = $event),
|
|
19204
|
-
clearable: "",
|
|
19205
|
-
placeholder: "点击选择构件",
|
|
19206
|
-
onOnChange: _ctx.doSearch
|
|
19207
|
-
}, null, 8, ["modelValue", "onOnChange"])) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
19217
|
+
_ctx.StructureInstanceCheckData.length == 0 ? (openBlock(), createElementBlock("div", _hoisted_4$1, "点击选择构件")) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
19208
19218
|
_ctx.multiple ? (openBlock(), createElementBlock("div", {
|
|
19209
19219
|
key: 0,
|
|
19210
19220
|
class: "nv-text-nowrap",
|
|
19211
|
-
onClick: _cache[
|
|
19221
|
+
onClick: _cache[1] || (_cache[1] = (...args) => _ctx.clearSearchInfo && _ctx.clearSearchInfo(...args))
|
|
19212
19222
|
}, " 已选择" + toDisplayString(_ctx.StructureInstanceCheckData.length) + "个构件(" + toDisplayString(_ctx.StructureInstanceCheckData.map((e) => e["NodeName"]).toString()) + ") ", 1)) : (openBlock(), createElementBlock("div", {
|
|
19213
19223
|
key: 1,
|
|
19214
|
-
onClick: _cache[
|
|
19224
|
+
onClick: _cache[2] || (_cache[2] = (...args) => _ctx.clearSearchInfo && _ctx.clearSearchInfo(...args))
|
|
19215
19225
|
}, [
|
|
19216
19226
|
createTextVNode(toDisplayString(_ctx.StructureInstanceCheckData[0].NodeName) + " ", 1),
|
|
19217
|
-
_ctx.StructureInstanceCheckData[0].NodeTypeName ? (openBlock(), createElementBlock("span",
|
|
19218
|
-
_ctx.StructureInstanceCheckData[0].UnitName ? (openBlock(), createElementBlock("span",
|
|
19227
|
+
_ctx.StructureInstanceCheckData[0].NodeTypeName ? (openBlock(), createElementBlock("span", _hoisted_5$1, "[" + toDisplayString(_ctx.StructureInstanceCheckData[0].NodeTypeName) + "]", 1)) : createCommentVNode("", true),
|
|
19228
|
+
_ctx.StructureInstanceCheckData[0].UnitName ? (openBlock(), createElementBlock("span", _hoisted_6$1, "[" + toDisplayString(_ctx.StructureInstanceCheckData[0].UnitName) + "]", 1)) : createCommentVNode("", true)
|
|
19219
19229
|
]))
|
|
19220
19230
|
], 64))
|
|
19221
19231
|
])
|
|
@@ -19352,7 +19362,7 @@ function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
19352
19362
|
])) : createCommentVNode("", true)
|
|
19353
19363
|
]));
|
|
19354
19364
|
}
|
|
19355
|
-
const NvStructureSelect = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["render", _sfc_render$3], ["__scopeId", "data-v-
|
|
19365
|
+
const NvStructureSelect = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["render", _sfc_render$3], ["__scopeId", "data-v-079c1ad0"]]);
|
|
19356
19366
|
const propDefine$2 = {
|
|
19357
19367
|
readonly: {
|
|
19358
19368
|
// 只读
|