bge-ui 1.0.13 → 1.0.15

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)
@@ -6804,6 +6803,10 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
6804
6803
  modelValue: {
6805
6804
  type: String,
6806
6805
  default: ""
6806
+ },
6807
+ size: {
6808
+ default: "default",
6809
+ value: ["default", "large"]
6807
6810
  }
6808
6811
  },
6809
6812
  emits: "update:modelValue",
@@ -6853,7 +6856,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
6853
6856
  });
6854
6857
  return (_ctx, _cache) => {
6855
6858
  return openBlock(), createElementBlock("div", {
6856
- class: normalizeClass(`bge-tabs bge-tabs__${__props.type}`)
6859
+ class: normalizeClass(`bge-tabs bge-tabs__${__props.type} bge-tabs__${__props.size}`)
6857
6860
  }, [
6858
6861
  createElementVNode("div", _hoisted_1$2, [
6859
6862
  renderSlot(_ctx.$slots, "default")
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;
@@ -3424,6 +3429,16 @@ to {
3424
3429
  align-items: flex-start;
3425
3430
  position: relative;
3426
3431
  }
3432
+ .bge-tabs.bge-tabs__default .bge-tabs__panes {
3433
+ font-size: 14px;
3434
+ font-weight: 500;
3435
+ line-height: 24px;
3436
+ }
3437
+ .bge-tabs.bge-tabs__large .bge-tabs__panes {
3438
+ font-size: 16px;
3439
+ font-weight: 500;
3440
+ line-height: 28px;
3441
+ }
3427
3442
  .bge-tabs.bge-tabs__bordered::after {
3428
3443
  content: "";
3429
3444
  position: absolute;
@@ -3474,6 +3489,9 @@ to {
3474
3489
  color: var(--persistent-black, #000);
3475
3490
  background: var(--btn-primary, #FFFF38);
3476
3491
  }
3492
+ .bge-tabs__bordered {
3493
+ position: relative;
3494
+ }
3477
3495
  .bge-tabs__bordered .bge-tab__pane {
3478
3496
  display: flex;
3479
3497
  padding: var(--layout-x-2, 8px) 0px;
@@ -3483,10 +3501,6 @@ to {
3483
3501
  border-radius: var(--radius-small, 0px);
3484
3502
  color: var(--tc-tertiary, #53677A);
3485
3503
  cursor: pointer;
3486
- font-size: 16px;
3487
- font-style: normal;
3488
- font-weight: 500;
3489
- line-height: 28px;
3490
3504
  margin-right: 16px;
3491
3505
  }
3492
3506
  .bge-tabs__bordered .bge-tab__pane:last-child {
@@ -3721,12 +3735,16 @@ to {
3721
3735
  align-items: center;
3722
3736
  }
3723
3737
  .bge-dialog .bge-dialog__header .bge-dialog__close {
3724
- cursor: pointer;
3725
3738
  display: flex;
3726
3739
  justify-content: center;
3727
3740
  align-items: center;
3728
3741
  height: 48px;
3729
3742
  width: 48px;
3743
+ color: var(--tc-tertiary);
3744
+ cursor: pointer;
3745
+ }
3746
+ .bge-dialog .bge-dialog__header .bge-dialog__close:hover {
3747
+ color: var(--tc-primary);
3730
3748
  }
3731
3749
  .bge-dialog .bge-dialog__body {
3732
3750
  padding: 16px 24px;
@@ -7,6 +7,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
7
7
  type: StringConstructor;
8
8
  default: string;
9
9
  };
10
+ size: {
11
+ default: string;
12
+ value: string[];
13
+ };
10
14
  }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
11
15
  [x: string]: (...args: any[]) => void;
12
16
  }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
@@ -18,7 +22,12 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
18
22
  type: StringConstructor;
19
23
  default: string;
20
24
  };
25
+ size: {
26
+ default: string;
27
+ value: string[];
28
+ };
21
29
  }>>, {
30
+ size: string;
22
31
  type: string;
23
32
  modelValue: string;
24
33
  }, {}>, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bge-ui",
3
- "version": "1.0.13",
3
+ "version": "1.0.15",
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
  }
@@ -1,5 +1,5 @@
1
1
  <template>
2
- <div :class="`bge-tabs bge-tabs__${type}`">
2
+ <div :class="`bge-tabs bge-tabs__${type} bge-tabs__${size}`">
3
3
  <div class="bge-tabs__panes">
4
4
  <slot></slot>
5
5
  </div>
@@ -21,6 +21,10 @@ const props = defineProps({
21
21
  type: String,
22
22
  default: '',
23
23
  },
24
+ size: {
25
+ default: 'default',
26
+ value: ['default', 'large']
27
+ }
24
28
  })
25
29
 
26
30
  const emits = defineEmits('update:modelValue')
@@ -92,6 +96,24 @@ onMounted(() => {
92
96
  }
93
97
  }
94
98
 
99
+
100
+
101
+ &.bge-tabs__default {
102
+ .bge-tabs__panes {
103
+ font-size: 14px;
104
+ font-weight: 500;
105
+ line-height: 24px;
106
+ }
107
+ }
108
+
109
+ &.bge-tabs__large {
110
+ .bge-tabs__panes {
111
+ font-size: 16px;
112
+ font-weight: 500;
113
+ line-height: 28px;
114
+ }
115
+ }
116
+
95
117
  &.bge-tabs__bordered {
96
118
  &::after {
97
119
  content: "";
@@ -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;
@@ -77,10 +79,6 @@ onMounted(() => {
77
79
  border-radius: var(--radius-small, 0px);
78
80
  color: var(--tc-tertiary, #53677A);
79
81
  cursor: pointer;
80
- font-size: 16px;
81
- font-style: normal;
82
- font-weight: 500;
83
- line-height: 28px;
84
82
  margin-right: 16px;
85
83
 
86
84
  &:last-child {