@neatui/vue 2.0.0 → 2.0.2

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": "@neatui/vue",
3
- "version": "2.0.0",
3
+ "version": "2.0.2",
4
4
  "description": "basic component ui",
5
5
  "main": "./src/index.ts",
6
6
  "license": "MIT",
@@ -16,7 +16,7 @@
16
16
  >
17
17
  <div ref="box" :ui-tips-box="state.pos" :class="tipBoxClass" :style="tipBoxStyle" @mousedown="downdom">
18
18
  <slot name="tips"></slot>
19
- <div ui-tips-arrow=""></div>
19
+ <div v-if="arrow" ui-tips-arrow="" v-bind="arrow"></div>
20
20
  </div>
21
21
  </div>
22
22
  </Teleport>
@@ -45,6 +45,7 @@
45
45
  tipStyle?: string;
46
46
  tipBoxClass?: string;
47
47
  tipBoxStyle?: string;
48
+ arrow?: any;
48
49
  }
49
50
 
50
51
  // 入参
@@ -57,7 +58,8 @@
57
58
  tipClass: '',
58
59
  tipStyle: '',
59
60
  tipBoxClass: '',
60
- tipBoxStyle: ''
61
+ tipBoxStyle: '',
62
+ arrow: {}
61
63
  });
62
64
 
63
65
  const dom: any = ref(null);
@@ -138,16 +140,17 @@
138
140
  };
139
141
 
140
142
  const downdom = (ev: any) => {
141
- state.tipdom = true;
142
- document.addEventListener(
143
- 'mouseup',
144
- () => {
145
- setTimeout(() => {
146
- state.tipdom = false;
147
- }, 10);
148
- },
149
- true
150
- );
143
+ // 不记得了这个当时为什么要加上这个,这个会影响单选框的选中后不自动关闭下拉框啊~
144
+ // state.tipdom = true;
145
+ // document.addEventListener(
146
+ // 'mouseup',
147
+ // () => {
148
+ // setTimeout(() => {
149
+ // state.tipdom = false;
150
+ // }, 10);
151
+ // },
152
+ // true
153
+ // );
151
154
  };
152
155
 
153
156
  onMounted(() => {