bge-ui 1.5.8 → 1.6.0

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/index.js CHANGED
@@ -6213,13 +6213,13 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
6213
6213
  const prefixSlot = useSlots().prefix;
6214
6214
  const isFocus = ref(false);
6215
6215
  const isClearHover = ref(false);
6216
- function handleFocus() {
6216
+ function handleFocus(event) {
6217
6217
  isFocus.value = true;
6218
- emit("focus");
6218
+ emit("focus", event);
6219
6219
  }
6220
6220
  function handleBlur(event) {
6221
6221
  isFocus.value = false;
6222
- emit("blur");
6222
+ emit("blur", event);
6223
6223
  emit("update:modelValue", toNormal(event.target.value));
6224
6224
  }
6225
6225
  watch(() => props.modelValue, () => {
@@ -6356,6 +6356,11 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
6356
6356
  function addPane(pane) {
6357
6357
  panes.value.push(pane);
6358
6358
  }
6359
+ watch(() => props.modelValue, () => {
6360
+ setTimeout(() => {
6361
+ update();
6362
+ }, 100);
6363
+ });
6359
6364
  function changeValue(value) {
6360
6365
  emits("update:modelValue", value);
6361
6366
  setTimeout(() => {
package/dist/style.css CHANGED
@@ -1619,8 +1619,6 @@ to {
1619
1619
  font-size: 14px;
1620
1620
  align-items: center;
1621
1621
  align-self: stretch;
1622
- overflow-y: auto;
1623
- max-height: 224px;
1624
1622
  }
1625
1623
  .bge-select .bge-select__wrapper .bge-select__inner {
1626
1624
  display: flex;
@@ -1665,6 +1663,8 @@ to {
1665
1663
  display: block;
1666
1664
  }
1667
1665
  .bge-select .bge-popper-wrapper {
1666
+ max-height: 224px;
1667
+ overflow-y: auto;
1668
1668
  min-width: 120px;
1669
1669
  width: 100%;
1670
1670
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bge-ui",
3
- "version": "1.5.8",
3
+ "version": "1.6.0",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "main": "./src/index.ts",
@@ -69,14 +69,14 @@ const suffixSlot = useSlots().suffix
69
69
  const prefixSlot = useSlots().prefix
70
70
  const isFocus = ref(false)
71
71
  const isClearHover = ref<Boolean>(false)
72
- function handleFocus() {
72
+ function handleFocus(event: any) {
73
73
  isFocus.value = true
74
- emit('focus')
74
+ emit('focus', event)
75
75
  }
76
76
 
77
77
  function handleBlur(event: any) {
78
78
  isFocus.value = false
79
- emit('blur')
79
+ emit('blur', event)
80
80
  emit('update:modelValue', toNormal(event.target.value))
81
81
  }
82
82
 
@@ -110,8 +110,6 @@ const emits = defineEmits([
110
110
  font-size: 14px;
111
111
  align-items: center;
112
112
  align-self: stretch;
113
- overflow-y: auto;
114
- max-height: 224px;
115
113
 
116
114
  .bge-select__inner {
117
115
  display: flex;
@@ -177,6 +175,8 @@ const emits = defineEmits([
177
175
  }
178
176
 
179
177
  .bge-popper-wrapper {
178
+ max-height: 224px;
179
+ overflow-y: auto;
180
180
  min-width: 120px;
181
181
  width: 100%;
182
182
  .popper-content {
@@ -7,7 +7,7 @@
7
7
  </div>
8
8
  </template>
9
9
  <script setup lang="ts">
10
- import { provide, ref, onMounted } from "vue"
10
+ import { provide, ref, onMounted, watch } from "vue"
11
11
  defineOptions({
12
12
  name: "Tabs",
13
13
  })
@@ -35,11 +35,17 @@ function addPane(pane: any) {
35
35
  panes.value.push(pane)
36
36
  }
37
37
 
38
+ watch(() => props.modelValue, () => {
39
+ setTimeout(() => {
40
+ update()
41
+ }, 100)
42
+ })
43
+
38
44
  function changeValue(value: string) {
39
45
  emits('update:modelValue', value)
40
46
  setTimeout(() => {
41
47
  update()
42
- }, 100);
48
+ }, 100)
43
49
  }
44
50
 
45
51
  const tabsKey = 'bge-tabs-context'