bge-ui 1.0.13 → 1.0.14

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
@@ -1,4 +1,4 @@
1
- import { defineComponent, resolveComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, createVNode, renderSlot, normalizeStyle, createStaticVNode, provide, reactive, toRefs, ref, watch, unref, getCurrentScope, onScopeDispose, readonly, computed, getCurrentInstance, onMounted, useSlots, inject, createTextVNode, toDisplayString, createCommentVNode, TransitionGroup, withCtx, withDirectives, vModelDynamic, vModelText, withModifiers, vShow, cloneVNode, Fragment, Text, Comment, onUnmounted, h, Transition, createBlock, Teleport, resolveDynamicComponent, shallowReactive, render, isVNode } from "vue";
1
+ import { defineComponent, resolveComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, createVNode, renderSlot, normalizeStyle, createStaticVNode, provide, reactive, toRefs, ref, watch, unref, getCurrentScope, onScopeDispose, readonly, computed, getCurrentInstance, onMounted, useSlots, inject, createTextVNode, toDisplayString, createCommentVNode, TransitionGroup, withCtx, withDirectives, vModelDynamic, vModelText, createBlock, withModifiers, cloneVNode, Fragment, Text, Comment, onUnmounted, h, Transition, vShow, Teleport, resolveDynamicComponent, shallowReactive, render, isVNode } from "vue";
2
2
  const _hoisted_1$1V = ["disabled"];
3
3
  const _hoisted_2$1F = { class: "loading-icon" };
4
4
  const _sfc_main$1Y = /* @__PURE__ */ defineComponent({
@@ -6772,16 +6772,15 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
6772
6772
  class: normalizeClass(["bge-input__suffix", { suffix: !!unref(suffixSlot) }])
6773
6773
  }, [
6774
6774
  createElementVNode("span", _hoisted_6, [
6775
- withDirectives(createVNode(_sfc_main$1u, {
6775
+ input.value ? (openBlock(), createBlock(_sfc_main$1u, {
6776
+ key: 0,
6776
6777
  class: "bge-input__icon clear",
6777
6778
  onMouseover: _cache[2] || (_cache[2] = withModifiers(($event) => hoverClear(true), ["prevent"])),
6778
6779
  onMouseout: _cache[3] || (_cache[3] = withModifiers(($event) => hoverClear(false), ["prevent"])),
6779
6780
  onClick: handelClear,
6780
6781
  size: "20"
6781
- }, null, 512), [
6782
- [vShow, isFocus.value]
6783
- ]),
6784
- __props.type !== "textarea" ? renderSlot(_ctx.$slots, "suffix", { key: 0 }) : createCommentVNode("", true)
6782
+ })) : createCommentVNode("", true),
6783
+ __props.type !== "textarea" ? renderSlot(_ctx.$slots, "suffix", { key: 1 }) : createCommentVNode("", true)
6785
6784
  ])
6786
6785
  ], 2)
6787
6786
  ], 2)
package/dist/style.css CHANGED
@@ -16,7 +16,7 @@
16
16
  display: inline-flex;
17
17
  justify-content: center;
18
18
  align-items: center;
19
- gap: 4px;
19
+ gap: 0;
20
20
  /* 定义keyframes规则 */
21
21
  }
22
22
  .bge-button + .bge-button {
@@ -97,6 +97,7 @@
97
97
  .bge-button.loading {
98
98
  pointer-events: none;
99
99
  background: var(--btn-disable);
100
+ gap: 4px;
100
101
  }
101
102
  .bge-button.loading .loading-icon {
102
103
  opacity: 0.4;
@@ -3339,6 +3340,9 @@ to {
3339
3340
  .bge-input .bge-input__wrapper.textarea .bge-input__prefix {
3340
3341
  display: none;
3341
3342
  }
3343
+ .bge-input .bge-input__wrapper:hover .bge-input__suffix .bge-input__suffix-inner .clear, .bge-input .bge-input__wrapper.focus .bge-input__suffix .bge-input__suffix-inner .clear {
3344
+ display: block;
3345
+ }
3342
3346
  .bge-input .bge-input__inner {
3343
3347
  color: var(--tc-primary, #E0E0E0);
3344
3348
  caret-color: var(--tc-theme, #FFFF38);
@@ -3408,14 +3412,15 @@ to {
3408
3412
  .bge-input .bge-input__suffix .bge-input__prefix-inner .clear,
3409
3413
  .bge-input .bge-input__prefix .bge-input__suffix-inner .clear,
3410
3414
  .bge-input .bge-input__prefix .bge-input__prefix-inner .clear {
3411
- color: #53677A;
3415
+ color: var(--tc-tertiary);
3412
3416
  cursor: pointer;
3417
+ display: none;
3413
3418
  }
3414
3419
  .bge-input .bge-input__suffix .bge-input__suffix-inner .clear:hover,
3415
3420
  .bge-input .bge-input__suffix .bge-input__prefix-inner .clear:hover,
3416
3421
  .bge-input .bge-input__prefix .bge-input__suffix-inner .clear:hover,
3417
3422
  .bge-input .bge-input__prefix .bge-input__prefix-inner .clear:hover {
3418
- color: #E0E0E0;
3423
+ color: var(--tc-primary);
3419
3424
  }
3420
3425
  .bge-input .bge-input__prefix .bge-input__prefix-inner {
3421
3426
  padding-right: 8px;
@@ -3474,6 +3479,9 @@ to {
3474
3479
  color: var(--persistent-black, #000);
3475
3480
  background: var(--btn-primary, #FFFF38);
3476
3481
  }
3482
+ .bge-tabs__bordered {
3483
+ position: relative;
3484
+ }
3477
3485
  .bge-tabs__bordered .bge-tab__pane {
3478
3486
  display: flex;
3479
3487
  padding: var(--layout-x-2, 8px) 0px;
@@ -3721,12 +3729,16 @@ to {
3721
3729
  align-items: center;
3722
3730
  }
3723
3731
  .bge-dialog .bge-dialog__header .bge-dialog__close {
3724
- cursor: pointer;
3725
3732
  display: flex;
3726
3733
  justify-content: center;
3727
3734
  align-items: center;
3728
3735
  height: 48px;
3729
3736
  width: 48px;
3737
+ color: var(--tc-tertiary);
3738
+ cursor: pointer;
3739
+ }
3740
+ .bge-dialog .bge-dialog__header .bge-dialog__close:hover {
3741
+ color: var(--tc-primary);
3730
3742
  }
3731
3743
  .bge-dialog .bge-dialog__body {
3732
3744
  padding: 16px 24px;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bge-ui",
3
- "version": "1.0.13",
3
+ "version": "1.0.14",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "main": "./src/index.ts",
@@ -137,7 +137,7 @@ defineProps({
137
137
  display: inline-flex;
138
138
  justify-content: center;
139
139
  align-items: center;
140
- gap: 4px;
140
+ gap: 0;
141
141
 
142
142
  &:hover {
143
143
  background: var(--btn-hover);
@@ -162,6 +162,7 @@ defineProps({
162
162
  &.loading {
163
163
  pointer-events: none;
164
164
  background: var(--btn-disable);
165
+ gap: 4px;
165
166
 
166
167
  .loading-icon {
167
168
  opacity: 0.4;
@@ -147,12 +147,17 @@ function close() {
147
147
  align-items: center;
148
148
 
149
149
  .bge-dialog__close {
150
- cursor: pointer;
151
150
  display: flex;
152
151
  justify-content: center;
153
152
  align-items: center;
154
153
  height: 48px;
155
154
  width: 48px;
155
+ color: var(--tc-tertiary);
156
+ cursor: pointer;
157
+
158
+ &:hover {
159
+ color: var(--tc-primary);
160
+ }
156
161
  }
157
162
  }
158
163
 
@@ -14,7 +14,7 @@
14
14
  @change="handleChange" @input="handleInput" />
15
15
  <span class="bge-input__suffix" :class="{ suffix: !!suffixSlot }">
16
16
  <span class="bge-input__suffix-inner">
17
- <mono-close class="bge-input__icon clear" v-show="isFocus" @mouseover.prevent="hoverClear(true)"
17
+ <mono-close class="bge-input__icon clear" v-if="input" @mouseover.prevent="hoverClear(true)"
18
18
  @mouseout.prevent="hoverClear(false)" @click="handelClear" size="20" />
19
19
  <slot v-if="type !== 'textarea'" name="suffix" />
20
20
  </span>
@@ -160,6 +160,17 @@ function handelClear() {
160
160
  display: none;
161
161
  }
162
162
  }
163
+
164
+ &:hover,
165
+ &.focus {
166
+ .bge-input__suffix {
167
+ .bge-input__suffix-inner{
168
+ .clear {
169
+ display: block;
170
+ }
171
+ }
172
+ }
173
+ }
163
174
  }
164
175
 
165
176
  .bge-input__inner {
@@ -235,11 +246,12 @@ function handelClear() {
235
246
  }
236
247
 
237
248
  .clear {
238
- color: #53677A;
249
+ color: var(--tc-tertiary);
239
250
  cursor: pointer;
251
+ display: none;
240
252
 
241
253
  &:hover {
242
- color: #E0E0E0;
254
+ color: var(--tc-primary);
243
255
  }
244
256
  }
245
257
  }
@@ -68,6 +68,8 @@ onMounted(() => {
68
68
  }
69
69
 
70
70
  .bge-tabs__bordered {
71
+ position: relative;
72
+
71
73
  .bge-tab__pane {
72
74
  display: flex;
73
75
  padding: var(--layout-x-2, 8px) 0px;