@lambo-design/workflow-approve 1.0.0-beta.51 → 1.0.0-beta.52

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lambo-design/workflow-approve",
3
- "version": "1.0.0-beta.51",
3
+ "version": "1.0.0-beta.52",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "author": "lambo",
@@ -1,18 +1,23 @@
1
1
  <template>
2
2
  <div style="min-height: 300px;">
3
- <Select v-if="organTree.userMap && Object.keys(organTree.userMap).length > 0" v-model="countersignersTagsData"
3
+ <div v-if="organTree.userMap && Object.keys(organTree.userMap).length > 0" class="searchable-select-wrapper">
4
+ <Select v-model="countersignersTagsData"
4
5
  filterable multiple
5
6
  @on-change="organChange($event)"
6
7
  class="custom-select"
7
- >
8
- <Option v-for="(value, key) in organTree.userMap" :key="key" :value="`${key},${value}`" :label="value">
8
+ >
9
+ <Option v-for="(value, key) in organTree.userMap" :key="key" :value="`${key},${value.split('(')[0]}`" :label="value.split('(')[0]">
9
10
  <span>{{ value }}</span>
10
11
  </Option>
11
12
  </Select>
12
- <Tag v-else v-for="(item, index) in countersignersTagsData" :key="item.id" closable @on-close="closeTags(index, item)"
13
+ <Icon type="ios-search" class="search-icon" />
14
+ </div>
15
+ <Tag v-else v-for="(item, index) in countersignersTagsData" :key="item.id" closable
16
+ @on-close="closeTags(index, item)"
13
17
  size="large">
14
18
  {{ item.split(',')[1] }}
15
19
  </Tag>
20
+
16
21
  <div class="cont">
17
22
  <div
18
23
  class="contLeftTwo">
@@ -684,7 +689,6 @@ export default {
684
689
  watch: {
685
690
  countersignersTagsData: {
686
691
  handler(newVal, oldVal) {
687
- console.log('countersignersTagsData', newVal)
688
692
  let organ = []
689
693
  let names = []
690
694
  let organs = []
@@ -794,6 +798,10 @@ export default {
794
798
  width: 136px;
795
799
  }
796
800
 
801
+ /deep/ .custom-select {
802
+ width: 100% !important;
803
+ }
804
+
797
805
  /deep/ .custom-select .ivu-select {
798
806
  height: 80px; /* 控制总体高度 */
799
807
  min-height: 80px;
@@ -806,6 +814,7 @@ export default {
806
814
  line-height: normal !important;
807
815
  padding: 0 !important;
808
816
  margin-top: 0 !important;
817
+
809
818
  }
810
819
 
811
820
  /deep/ .custom-select .ivu-select-selection {
@@ -827,4 +836,20 @@ export default {
827
836
  /deep/ .custom-select .ivu-select-arrow {
828
837
  display: none;
829
838
  }
839
+ .searchable-select-wrapper {
840
+ position: relative;
841
+ display: inline-block;
842
+ width: 100%;
843
+ }
844
+
845
+ .search-icon {
846
+ position: absolute;
847
+ top: 50%;
848
+ right: 10px;
849
+ zoom: 120%;
850
+ transform: translateY(100%);
851
+ color: #999; /* 根据需要调整图标颜色 */
852
+ pointer-events: none; /* 确保点击图标不会影响选择操作 */
853
+ }
854
+
830
855
  </style>