bge-ui 1.3.0 → 1.3.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/dist/index.js CHANGED
@@ -6198,6 +6198,11 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
6198
6198
  emit("change", input.value);
6199
6199
  emit("update:modelValue", input.value);
6200
6200
  }
6201
+ onMounted(() => {
6202
+ if (props.modelValue) {
6203
+ input.value = props.modelValue;
6204
+ }
6205
+ });
6201
6206
  return (_ctx, _cache) => {
6202
6207
  return openBlock(), createElementBlock("div", _hoisted_1$7, [
6203
6208
  createElementVNode("div", {
@@ -6481,7 +6486,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
6481
6486
  if (value) {
6482
6487
  setTimeout(() => {
6483
6488
  opacity.value = 1;
6484
- height.value = 96 + Number(DialogBody.value.offsetHeight);
6489
+ height.value = 48 + 64 + Number(DialogBody.value.offsetHeight);
6485
6490
  });
6486
6491
  }
6487
6492
  }, {
package/dist/style.css CHANGED
@@ -1015,11 +1015,11 @@ to {
1015
1015
  top: 50%;
1016
1016
  transform: translate(-50%, -50%);
1017
1017
  height: 160px;
1018
- padding: 16px 0;
1018
+ padding: 32px 0;
1019
1019
  overflow: hidden;
1020
1020
  }
1021
1021
  .bge-dialog .bge-dialog__header {
1022
- padding: 0 24px;
1022
+ padding: 0 32px;
1023
1023
  line-height: 32px;
1024
1024
  font-size: 20px;
1025
1025
  font-weight: 600;
@@ -1033,8 +1033,8 @@ to {
1033
1033
  display: flex;
1034
1034
  justify-content: center;
1035
1035
  align-items: center;
1036
- height: 48px;
1037
- width: 48px;
1036
+ height: 32px;
1037
+ width: 24px;
1038
1038
  color: var(--tc-tertiary);
1039
1039
  cursor: pointer;
1040
1040
  }
@@ -1042,12 +1042,12 @@ to {
1042
1042
  color: var(--tc-primary);
1043
1043
  }
1044
1044
  .bge-dialog .bge-dialog__body {
1045
- padding: 16px 24px;
1045
+ padding: 16px 32px 0 32px;
1046
1046
  max-height: calc(94vh - 86px);
1047
1047
  color: var(--tc-secondary, #B2BAC2);
1048
- font-size: 16px;
1048
+ font-size: 14px;
1049
1049
  font-weight: 400;
1050
- line-height: 28px;
1050
+ line-height: 24px;
1051
1051
  }
1052
1052
  .bge-dialog .bge-dialog__body.full {
1053
1053
  padding: 16px 0;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bge-ui",
3
- "version": "1.3.0",
3
+ "version": "1.3.2",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "main": "./src/index.ts",
@@ -63,7 +63,7 @@ watch(() => [props.visible, props.resetState], ([value]) => {
63
63
  if (value) {
64
64
  setTimeout(() => {
65
65
  opacity.value = 1
66
- height.value = 96 + Number(DialogBody.value.offsetHeight)
66
+ height.value = 48 + 64 + Number(DialogBody.value.offsetHeight)
67
67
  })
68
68
  }
69
69
  }, {
@@ -132,11 +132,11 @@ function close() {
132
132
  top: 50%;
133
133
  transform: translate(-50%, -50%);
134
134
  height: 160px;
135
- padding: 16px 0;
135
+ padding: 32px 0;
136
136
  overflow: hidden;
137
137
 
138
138
  .bge-dialog__header {
139
- padding: 0 24px;
139
+ padding: 0 32px;
140
140
  line-height: 32px;
141
141
  font-size: 20px;
142
142
  font-weight: 600;
@@ -150,8 +150,8 @@ function close() {
150
150
  display: flex;
151
151
  justify-content: center;
152
152
  align-items: center;
153
- height: 48px;
154
- width: 48px;
153
+ height: 32px;
154
+ width: 24px;
155
155
  color: var(--tc-tertiary);
156
156
  cursor: pointer;
157
157
 
@@ -162,12 +162,12 @@ function close() {
162
162
  }
163
163
 
164
164
  .bge-dialog__body {
165
- padding: 16px 24px;
165
+ padding: 16px 32px 0 32px;
166
166
  max-height: calc(94vh - 86px);
167
167
  color: var(--tc-secondary, #B2BAC2);
168
- font-size: 16px;
168
+ font-size: 14px;
169
169
  font-weight: 400;
170
- line-height: 28px;
170
+ line-height: 24px;
171
171
 
172
172
  &.full {
173
173
  padding: 16px 0;
@@ -24,7 +24,7 @@
24
24
  </template>
25
25
  <script setup lang="ts">
26
26
  import MonoClose from "../icons/MonoClose.vue";
27
- import { ref, useSlots, inject, watch } from 'vue'
27
+ import { ref, useSlots, inject, watch, onMounted } from 'vue'
28
28
  const props = defineProps({
29
29
  type: {
30
30
  type: String,
@@ -106,6 +106,12 @@ function handelClear() {
106
106
  emit('update:modelValue', input.value)
107
107
  }
108
108
 
109
+ onMounted(() => {
110
+ if (props.modelValue) {
111
+ input.value = props.modelValue
112
+ }
113
+ })
114
+
109
115
  </script>
110
116
  <style lang="scss">
111
117
  .bge-input {