bri-components 1.2.49 → 1.2.51

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.
Files changed (72) hide show
  1. package/package.json +2 -2
  2. package/src/components/controls/BriControlInput.vue +13 -9
  3. package/src/components/controls/base/DshCascader/DshCascader.vue +40 -23
  4. package/src/components/controls/base/DshCascader/InfoCascader.vue +7 -15
  5. package/src/components/controls/base/DshDate/DshDate.vue +146 -0
  6. package/src/components/controls/base/{DshDaterange.vue → DshDate/DshDaterange.vue} +74 -64
  7. package/src/components/controls/base/DshEditor.vue +1 -1
  8. package/src/components/controls/base/{BriInputs.vue → DshInput/BriInputs.vue} +1 -1
  9. package/src/components/controls/base/{DshInput.vue → DshInput/DshInput.vue} +21 -4
  10. package/src/components/controls/base/DshNumber/DshNumber.vue +33 -2
  11. package/src/components/controls/base/{DshNumberange.vue → DshNumber/DshNumberange.vue} +37 -2
  12. package/src/components/controls/base/DshSelect/DshCheckbox.vue +280 -0
  13. package/src/components/controls/base/DshSelect/DshSelect.vue +319 -0
  14. package/src/components/controls/base/DshSelect/selectMixin.js +239 -0
  15. package/src/components/controls/base/DshSwitch/DshSwitch.vue +79 -0
  16. package/src/components/controls/base/DshSwitch/switchMixin.js +73 -0
  17. package/src/components/controls/controlMap.js +8 -11
  18. package/src/components/controls/controlMixin.js +38 -6
  19. package/src/components/controls/senior/BriLabels.vue +1 -1
  20. package/src/components/controls/senior/selectDepartments.vue +9 -13
  21. package/src/components/controls/senior/selectUsers/selectUsers.vue +23 -21
  22. package/src/components/controls/special/DshBack.vue +1 -1
  23. package/src/components/controls/special/DshUndeveloped.vue +1 -1
  24. package/src/components/form/DshAdvSearch.vue +155 -3
  25. package/src/components/form/DshDefaultSearch.vue +84 -40
  26. package/src/components/form/DshForm.vue +24 -0
  27. package/src/components/form/searchMixin.js +5 -18
  28. package/src/components/other/BriGantt.vue +2 -2
  29. package/src/components/unit/DshFormUnit.vue +111 -2
  30. package/src/components/unit/DshListUnit.vue +6 -0
  31. package/src/index.js +10 -10
  32. package/src/styles/components/controls/base/DshInput.less +0 -16
  33. package/src/styles/components/index.less +0 -14
  34. package/src/styles/components/other/BriGantt.less +1 -12
  35. package/src/styles/index.less +5 -3
  36. package/src/styles/reset-iview-controls.less +104 -0
  37. package/src/abolish/BriTransfer.less +0 -65
  38. package/src/abolish/BriTransfer.vue +0 -71
  39. package/src/abolish/BriTree.less +0 -57
  40. package/src/abolish/DshCascaders.less +0 -11
  41. package/src/abolish/DshCascaders.vue +0 -151
  42. package/src/abolish/DshCrumbs.less +0 -0
  43. package/src/abolish/DshCrumbs.vue +0 -62
  44. package/src/abolish/DshCrumbsItem.vue +0 -109
  45. package/src/abolish/DshEditPanel.less +0 -70
  46. package/src/abolish/DshEditPanel.vue +0 -152
  47. package/src/abolish/DshFileShow.less +0 -61
  48. package/src/abolish/DshFileShow.vue +0 -0
  49. package/src/abolish/DshFlatTable.less +0 -93
  50. package/src/abolish/DshFlatTable.vue +0 -605
  51. package/src/abolish/DshMenu.less +0 -37
  52. package/src/abolish/DshMenu.vue +0 -133
  53. package/src/abolish/DshTexts.less +0 -13
  54. package/src/abolish/DshTexts.vue +0 -89
  55. package/src/components/controls/base/DshCheckbox.vue +0 -213
  56. package/src/components/controls/base/DshDate.vue +0 -122
  57. package/src/components/controls/base/DshSelect.vue +0 -242
  58. package/src/components/controls/base/DshSwitch.vue +0 -70
  59. package/src/components/controls/base/selectMixin.js +0 -110
  60. package/src/styles/components/controls/base/DshCheckbox.less +0 -115
  61. package/src/styles/components/controls/base/DshDate.less +0 -15
  62. package/src/styles/components/controls/base/DshDaterange.less +0 -49
  63. package/src/styles/components/controls/base/DshNumber.less +0 -55
  64. package/src/styles/components/controls/base/DshNumberange.less +0 -29
  65. package/src/styles/components/controls/base/DshSelect.less +0 -190
  66. package/src/styles/components/form/DshAdvSearch.less +0 -149
  67. package/src/styles/components/form/DshDefaultSearch.less +0 -82
  68. package/src/styles/components/form/DshForm.less +0 -18
  69. package/src/styles/components/unit/DshFormUnit.less +0 -105
  70. package/src/styles/components/unit/DshListUnit.less +0 -3
  71. /package/src/{abolish/DshCrumbItem.less → styles/reset-iview-other.less} +0 -0
  72. /package/src/styles/{reset-iview.less → reset-iview-variables.less} +0 -0
@@ -0,0 +1,239 @@
1
+ import controlMixin from "../../controlMixin.js";
2
+ import { resourceData } from "bri-datas";
3
+
4
+ export default {
5
+ mixins: [
6
+ controlMixin
7
+ ],
8
+ components: {},
9
+ props: {},
10
+ data () {
11
+ return {
12
+ initListData: [],
13
+ showTipTpl: false,
14
+ showTipModal: false,
15
+ dynamicContent: ""
16
+ };
17
+ },
18
+ computed: {
19
+ selectPropsObj () {
20
+ return {
21
+ colorMap: resourceData.colorMap,
22
+ _optionKind: "dropdown", // "flat"、"dropdown"
23
+ _useColor: false,
24
+ _filterable: true,
25
+ _data: [],
26
+ _customData: [],
27
+
28
+ ...this.propsObj,
29
+ ...this.commonDealPropsObj
30
+ };
31
+ },
32
+ showType () {
33
+ return this.selfPropsObj._optionKind;
34
+ },
35
+ useColor () {
36
+ return this.selfPropsObj._useColor;
37
+ },
38
+ colorMap () {
39
+ return this.selfPropsObj.colorMap;
40
+ },
41
+ listData () {
42
+ const listData = this.selfPropsObj._data.concat(this.initListData);
43
+
44
+ return this.$dataType(this.selfPropsObj._filterFunc, "function")
45
+ ? this.selfPropsObj._filterFunc(listData, this.selfPropsObj, this.value)
46
+ : listData;
47
+ },
48
+
49
+ openTip () {
50
+ return this.isOnSearch ? false : this.propsObj._openTip;
51
+ },
52
+ modalTipContent () {
53
+ return this.propsObj._tipContent || this.dynamicContent || "暂无信息";
54
+ },
55
+
56
+ curValObj () {
57
+ return this.$isEmptyData(this.curVal)
58
+ ? undefined
59
+ : this.getItemData(this.curVal);
60
+ },
61
+ valStr: {
62
+ get () {
63
+ return this.curValObj
64
+ ? this.curValObj.name || this.curValObj._name
65
+ : "";
66
+ },
67
+ set (val) {
68
+ if (!val) {
69
+ this.curVal = "";
70
+ }
71
+ }
72
+ },
73
+ showVal () {
74
+ return this.$isEmptyData(this.curVal)
75
+ ? this.emptyShowVal
76
+ : this.valStr;
77
+ },
78
+ // 已选择项的对象列表
79
+ curValObjList () {
80
+ return this.curValList.map(key => this.getItemData(key));
81
+ },
82
+ valListStr () {
83
+ return this.curValObjList.map(item => item.name || item._name).join("、");
84
+ },
85
+ showMulVal () {
86
+ return this.$isEmptyData(this.curValList)
87
+ ? this.emptyShowVal
88
+ : this.valListStr;
89
+ }
90
+ },
91
+ created () {
92
+ this.init();
93
+ },
94
+ methods: {
95
+ init () {
96
+ this.getTipData();
97
+ this.getListData();
98
+ },
99
+
100
+ getItemData (key) {
101
+ const obj = this.listData.find(item => item._key === key) || {
102
+ _key: key,
103
+ name: `温馨提示:选项${key}已找不到`
104
+ };
105
+
106
+ return {
107
+ ...obj,
108
+ style: this.getItemStyle(obj),
109
+ color: undefined
110
+ };
111
+ },
112
+ getItemStyle (item) {
113
+ const color = this.colorMap[item.color] || this.colorMap["color-1"];
114
+ return {
115
+ "background-color": this.useColor ? this.$getColor(color, 0.1) : "#E5E5E5",
116
+ color: this.useColor ? color : "rgba(0, 0, 0, 0.9)",
117
+ display: "inline-block",
118
+ "max-width": "100%",
119
+ padding: "0px 6px",
120
+ "border-radius": "4px"
121
+ };
122
+ },
123
+ // 获取某项的置灰状态
124
+ getItemDisabled (item) {
125
+ return !!(this.selfPropsObj._disabled || item._disabled);
126
+ },
127
+
128
+ // 是否打开tip弹窗
129
+ clickOpenTip (item) {
130
+ if (item.__isTip__) {
131
+ if (this.propsObj._tipKind === "dynamic" && !this.propsObj._tipContent) {
132
+ this.getTipUrl();
133
+ } else {
134
+ this.showTipTpl = true;
135
+ this.showTipModal = true;
136
+ }
137
+ }
138
+ },
139
+ getTipUrl () {
140
+ if (this.propsObj._tipUrl) {
141
+ this.$https({
142
+ url: {
143
+ module: "customPath",
144
+ name: this.propsObj._tipUrl
145
+ },
146
+ params: {
147
+ formData: this.value,
148
+ propsObj: this.propsObj
149
+ },
150
+ callback: res => {
151
+ this.dynamicContent = res;
152
+ this.showTipTpl = true;
153
+ this.showTipModal = true;
154
+ }
155
+ });
156
+ } else {
157
+ this.$Message.warning("请配置接口路径!");
158
+ }
159
+ },
160
+ tipModalRender (h) {
161
+ return this.showTipTpl
162
+ ? h("dsh-modal", {
163
+ props: {
164
+ value: this.showTipModal,
165
+ mode: "custom",
166
+ propsObj: {
167
+ title: "温馨提示",
168
+ maskClosable: true,
169
+ class: "DshSelect-modal"
170
+ }
171
+ },
172
+ on: {
173
+ input: bool => {
174
+ this.showTipModal = bool;
175
+ }
176
+ }
177
+ }, [
178
+ h("div", {
179
+ class: "DshSelect-modal-content",
180
+ domProps: {
181
+ innerHTML: this.modalTipContent
182
+ }
183
+ }),
184
+ h("div", {
185
+ class: "DshSelect-modal-footer"
186
+ }, [
187
+ h("Button", {
188
+ props: {
189
+ type: "primary"
190
+ },
191
+ on: {
192
+ click: () => {
193
+ this.showTipModal = false;
194
+ }
195
+ }
196
+ }, "我知道了")
197
+ ])
198
+ ])
199
+ : undefined;
200
+ },
201
+ getTipData () {
202
+ if (
203
+ (this.propsObj._key !== "_default") &&
204
+ this.finalCanEdit &&
205
+ this.openTip
206
+ ) {
207
+ let tipObj = {
208
+ _key: "openTip",
209
+ _name: this.propsObj._tipName || "其他",
210
+ __isTip__: true,
211
+ _disabled: true,
212
+ color: "#6991cc",
213
+ class: `Dsh${this.propsObj._type}-tip`
214
+ };
215
+ this.initListData.push(tipObj);
216
+ }
217
+ },
218
+ // 接口 -获取自定义的接口数据
219
+ getListData () {
220
+ this.selfPropsObj._customData.forEach(item => {
221
+ this.$https({
222
+ url: item.url,
223
+ params: item.params,
224
+ callback: data => {
225
+ this.initListData = [
226
+ ...this.initListData,
227
+ ...data.list.map(dataItem =>
228
+ ({
229
+ _key: dataItem[item._key || "_key"],
230
+ name: dataItem[item._name || "name"]
231
+ })
232
+ )
233
+ ];
234
+ }
235
+ });
236
+ });
237
+ }
238
+ }
239
+ };
@@ -0,0 +1,79 @@
1
+ <template>
2
+ <!-- 单选模式 编辑 -->
3
+ <div
4
+ v-if="!multipleMode && canEdit"
5
+ class="DshSwitch"
6
+ >
7
+ <i-switch
8
+ v-model="curVal"
9
+ :disabled="selfPropsObj._disabled"
10
+ :loading="selfPropsObj.loading"
11
+ :size="selfPropsObj._size"
12
+ :true-color="selfPropsObj._openColor"
13
+ :false-color="selfPropsObj._closeColor"
14
+ :true-value="selfPropsObj._openValue"
15
+ :false-value="selfPropsObj._closeValue"
16
+ @on-change="change"
17
+ >
18
+ <span slot="open">
19
+ {{ selfPropsObj._openText }}
20
+ </span>
21
+ <span slot="close">
22
+ {{ selfPropsObj._closeText }}
23
+ </span>
24
+ </i-switch>
25
+ </div>
26
+
27
+ <!-- 单选模式 查看 -->
28
+ <span
29
+ v-else-if="!multipleMode && !canEdit"
30
+ :class="{
31
+ ...commonClass
32
+ }"
33
+ :style="showStyle"
34
+ >
35
+ {{ showVal }}
36
+ </span>
37
+
38
+ <!-- 多选模式 -->
39
+ <dsh-checkbox
40
+ v-else
41
+ :canEdit="canEdit"
42
+ :value="value"
43
+ :propsObj="mulPropsObj"
44
+ @change="change"
45
+ ></dsh-checkbox>
46
+ </template>
47
+
48
+ <script>
49
+ import switchMixin from "./switchMixin.js";
50
+
51
+ export default {
52
+ name: "DshSwitch",
53
+ mixins: [
54
+ switchMixin
55
+ ],
56
+ components: {},
57
+ props: {},
58
+ data () {
59
+ return {};
60
+ },
61
+ computed: {
62
+ selfPropsObj () {
63
+ return {
64
+ _size: "default", // "default", "small", "large"
65
+
66
+ ...this.switchPropsObj
67
+ };
68
+ }
69
+ },
70
+ created () {},
71
+ methods: {}
72
+ };
73
+ </script>
74
+
75
+ <style lang="less">
76
+ .DshSwitch {
77
+
78
+ }
79
+ </style>
@@ -0,0 +1,73 @@
1
+ import controlMixin from "../../controlMixin.js";
2
+ import DshCheckbox from "../DshSelect/DshCheckbox.vue";
3
+
4
+ export default {
5
+ mixins: [
6
+ controlMixin
7
+ ],
8
+ components: {
9
+ DshCheckbox
10
+ },
11
+ props: {},
12
+ data () {
13
+ return {};
14
+ },
15
+ computed: {
16
+ switchPropsObj () {
17
+ return {
18
+ loading: false, // 是否为加载状态
19
+ _openColor: this.$appData.themeColor, // 打开时的背景色
20
+ _closeColor: "#ccc", // 关闭时的背景色
21
+ _openValue: true, // 打开时对应的值
22
+ _closeValue: false, // 关闭时对应的值
23
+
24
+ ...this.propsObj,
25
+ ...this.commonDealPropsObj,
26
+
27
+ _openText: this.propsObj._openText || "是", // 此行放在 ...this.propsObj的下面目的是,处理_openText为空字符串的情况
28
+ _closeText: this.propsObj._closeText || "否"
29
+ };
30
+ },
31
+ mulPropsObj () {
32
+ return {
33
+ _optionKind: "flat",
34
+ _data: [
35
+ {
36
+ _key: "true",
37
+ name: this.selfPropsObj._openText,
38
+ color: this.selfPropsObj._openColor
39
+ },
40
+ {
41
+ _key: "false",
42
+ name: this.selfPropsObj._closeText,
43
+ color: this.selfPropsObj._closeColor
44
+ }
45
+ ],
46
+
47
+ ...this.propsObj
48
+ };
49
+ },
50
+ showStyle () {
51
+ return !this.$isEmptyData(this.curVal)
52
+ ? {
53
+ backgroundColor: this.curVal === true ? "#d3f3dc" : "#FDEDED",
54
+ color: this.curVal === true ? "#37C45E" : "#E83636",
55
+ display: "inline-block",
56
+ "max-width": "100%",
57
+ padding: "0px 6px",
58
+ "border-radius": "4px"
59
+ }
60
+ : {};
61
+ },
62
+
63
+ showVal () {
64
+ return this.$isEmptyData(this.curVal)
65
+ ? this.emptyShowVal
66
+ : this.curVal === true
67
+ ? this.selfPropsObj._openText
68
+ : this.selfPropsObj._closeText;
69
+ }
70
+ },
71
+ created () { },
72
+ methods: {}
73
+ };
@@ -17,11 +17,11 @@ const componentNameMap = {
17
17
  url: "DshInput",
18
18
  password: "DshInput",
19
19
  serialNumber: "DshInput",
20
- texts: "BriInputs",
20
+ texts: "DshInput",
21
21
  number: "DshNumber",
22
- numberange: "DshNumberange",
22
+ numberange: "DshNumber",
23
23
  date: "DshDate",
24
- daterange: "DshDaterange",
24
+ daterange: "DshDate",
25
25
  switch: "DshSwitch",
26
26
  select: "DshSelect",
27
27
  checkbox: "DshCheckbox",
@@ -50,15 +50,12 @@ const componentNameMap = {
50
50
  // 组件相对路径映射图
51
51
  const pathMap = {
52
52
  base: {
53
- // DshInput: "./base/DshInput.vue", // 全局已注册
54
- BriInputs: "./base/BriInputs.vue",
53
+ // DshInput: "./base/DshInput/DshInput.vue", // 全局已注册
55
54
  // DshNumber: "./base/DshNumber/DshNumber.vue", // 全局已注册
56
- DshNumberange: "./base/DshNumberange.vue",
57
- DshDate: "./base/DshDate.vue",
58
- DshDaterange: "./base/DshDaterange.vue",
59
- DshSwitch: "./base/DshSwitch.vue",
60
- // DshSelect: "./base/DshSelect.vue", // 全局已注册
61
- // DshCheckbox: "./base/DshCheckbox.vue", // 全局已注册
55
+ DshDate: "./base/DshDate/DshDate.vue",
56
+ DshSwitch: "./base/DshSwitch/DshSwitch.vue",
57
+ // DshSelect: "./base/DshSelect/DshSelect.vue", // 全局已注册
58
+ // DshCheckbox: "./base/DshSelect/DshCheckbox.vue", // 全局已注册
62
59
  // DshCascader: "./base/DshCascader/DshCascader.vue", // 全局已注册
63
60
  BriUpload: "./base/BriUpload/BriUpload.vue",
64
61
  DshCoordinates: "./base/DshCoordinates.vue",
@@ -35,7 +35,9 @@ export default {
35
35
  }
36
36
  },
37
37
  data () {
38
- return {};
38
+ return {
39
+ showModal: false
40
+ };
39
41
  },
40
42
  computed: {
41
43
  // 值为不是[]类型用的
@@ -45,6 +47,7 @@ export default {
45
47
  },
46
48
  set (val) {
47
49
  this.value[this.controlKey] = val;
50
+ // this.change();
48
51
  }
49
52
  },
50
53
  // 值为[]类型用的
@@ -52,8 +55,8 @@ export default {
52
55
  get () {
53
56
  return this.value[this.controlKey] || [];
54
57
  },
55
- set (val) {
56
- this.$set(this.value, this.controlKey, val);
58
+ set (valList) {
59
+ this.$set(this.value, this.controlKey, valList);
57
60
  this.change();
58
61
  }
59
62
  },
@@ -85,8 +88,9 @@ export default {
85
88
  finalCanEdit () {
86
89
  return this.canEdit && (this.propsObj.canEdit == undefined ? true : this.propsObj.canEdit);
87
90
  },
91
+ // 是否为多选模式
88
92
  multipleMode () {
89
- return this.selfPropsObj ? !!this.selfPropsObj._multiple : !!this.propsObj._multiple;
93
+ return ["texts", "numberange", "daterange", "checkbox", "regions", "cascaders"].includes(this.controlType) || !!this.propsObj._multiple;
90
94
  },
91
95
  commonDealPropsObj () {
92
96
  const selectControlTypes = ["date", "switch", "select", "checkbox", "file", "region", "regions", "cascader", "cascaders", "coordinates", "users", "departments"];
@@ -95,7 +99,8 @@ export default {
95
99
  _placeholder: this.canEdit && this.propsObj._enterType !== "calculate"
96
100
  ? (this.propsObj._placeholder || `请${selectControlTypes.includes(this.controlType) ? "选择" : "输入"}${this.propsObj._name}`)
97
101
  : undefined,
98
- _clearable: this.finalCanEdit && (this.propsObj._clearable === undefined ? true : this.propsObj._clearable)
102
+ _clearable: this.finalCanEdit && (this.propsObj._clearable === undefined ? true : this.propsObj._clearable),
103
+ _disabled: this.propsObj._disabled || ["serialNumber"].includes(this.controlType) || !this.finalCanEdit
99
104
  };
100
105
  },
101
106
  commonClass () {
@@ -105,7 +110,7 @@ export default {
105
110
  "bri-control-unit": !this.canEdit && this.isInTable,
106
111
  "bri-control-show": !this.canEdit && !this.isInTable,
107
112
 
108
- "dsh-ellipsis": !(this.isUnitShow && !!this.propsObj._unitWrap),
113
+ "dsh-ellipsis": this.isUnitShow,
109
114
  "bri-control-nodata": this.$isEmptyData(this.curVal)
110
115
  };
111
116
  },
@@ -126,6 +131,12 @@ export default {
126
131
  isInTable () {
127
132
  return !!this.propsObj.isInTable;
128
133
  },
134
+ isOnSearch () {
135
+ return !!this.propsObj.onSearch;
136
+ },
137
+ isOnDftSearch () {
138
+ return !!this.propsObj.onDftSearch;
139
+ },
129
140
  isUnitUpdate () {
130
141
  return this.isInTable && !!this.canEdit;
131
142
  },
@@ -135,6 +146,7 @@ export default {
135
146
  // isShare () {
136
147
  // return !!this.propsObj.isShare;
137
148
  // },
149
+
138
150
  /* 部分控件下 才使用的属性 */
139
151
  compKey () {
140
152
  return this.propsObj.compKey;
@@ -147,6 +159,12 @@ export default {
147
159
  },
148
160
  modKey () {
149
161
  return this.propsObj.modKey;
162
+ },
163
+ // 移动端在用 --只做校验的field框所用的propsObj
164
+ ruleFieldPropsObj () {
165
+ return {
166
+ _rules: this.propsObj._rules
167
+ };
150
168
  }
151
169
  },
152
170
  methods: {
@@ -155,6 +173,20 @@ export default {
155
173
  },
156
174
  refChange (...params) {
157
175
  this.$emit("refChange", this.value[this.controlKey]);
176
+ },
177
+
178
+ /* ----- 工具方法 ------- */
179
+ // 切换弹框
180
+ toggleModal (bool) {
181
+ this.showModal = bool;
182
+ },
183
+ // 打开弹框
184
+ openModal () {
185
+ this.showModal = true;
186
+ },
187
+ // 关闭弹框
188
+ closeModal () {
189
+ this.showModal = false;
158
190
  }
159
191
  }
160
192
  };
@@ -151,7 +151,7 @@
151
151
  return this.selfPropsObj._labelType;
152
152
  },
153
153
  onlySelect () {
154
- return this.selfPropsObj._onlySelect;
154
+ return this.isOnSearch ? true : this.selfPropsObj._onlySelect;
155
155
  },
156
156
  originLabels () {
157
157
  return this.selfPropsObj._originLabels;
@@ -57,7 +57,7 @@
57
57
  <!-- 上 已选择项 -->
58
58
  <div class="list-selected">
59
59
  <span class="list-selected-label">
60
- 已选择{{ multiple ? `(${newValList.length}个)` : "" }}:
60
+ 已选择{{ multipleMode ? `(${newValList.length}个)` : "" }}:
61
61
  </span>
62
62
 
63
63
  <span
@@ -95,16 +95,14 @@
95
95
 
96
96
  <template v-else>
97
97
  <!-- 树形形式 -->
98
- <div
99
- class="list-center-tree"
100
- >
98
+ <div class="list-center-tree">
101
99
  <template v-if="allDepartmentList.length">
102
100
  <bri-tree-item
103
101
  v-for="item in allDepartmentList"
104
102
  :key="item._key"
105
103
  :value="item"
106
104
  :changeOnSelect="changeOnSelect"
107
- :multiple="multiple"
105
+ :multiple="multipleMode"
108
106
  @on-change="changeSelect"
109
107
  ></bri-tree-item>
110
108
  </template>
@@ -179,18 +177,13 @@
179
177
  _highSearch: false,
180
178
  _changeOnSelect: true,
181
179
  _searchString: "",
180
+
182
181
  ...this.propsObj,
183
182
  ...this.commonDealPropsObj
184
183
  };
185
184
  },
186
- multiple () {
187
- return this.selfPropsObj._multiple;
188
- },
189
185
  highSearch () {
190
- return this.selfPropsObj._highSearch;
191
- },
192
- inputIcon () {
193
- return this.multiple ? "ios-people" : "ios-person";
186
+ return this.isOnSearch ? true : this.selfPropsObj._highSearch;
194
187
  },
195
188
  changeOnSelect () {
196
189
  return this.selfPropsObj._changeOnSelect;
@@ -198,6 +191,9 @@
198
191
  searchString () {
199
192
  return this.selfPropsObj._searchString;
200
193
  },
194
+ inputIcon () {
195
+ return this.multipleMode ? "ios-people" : "ios-person";
196
+ },
201
197
 
202
198
  modalPropsObj () {
203
199
  return {
@@ -259,7 +255,7 @@
259
255
  /* ---------- 弹框里 --------- */
260
256
  // 弹窗 -选项变化
261
257
  changeSelect (selectItem) {
262
- this.newValList = this.multiple
258
+ this.newValList = this.multipleMode
263
259
  ? this.selectKeys.includes(selectItem._key)
264
260
  ? this.newValList.filter(item => item._key !== selectItem._key)
265
261
  : [...this.newValList, selectItem]