bge-ui 1.5.7 → 1.5.9
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/form/form-item.vue.d.ts +3 -0
- package/dist/index.js +7 -1
- package/dist/style.css +2 -2
- package/package.json +1 -1
- package/src/form/form-item.vue +2 -1
- package/src/select/index.vue +2 -2
- package/src/tabs/index.vue +8 -2
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
2
|
+
showError: BooleanConstructor;
|
|
2
3
|
label: StringConstructor;
|
|
3
4
|
formItemClass: StringConstructor;
|
|
4
5
|
prop: (StringConstructor | ArrayConstructor)[];
|
|
5
6
|
required: BooleanConstructor;
|
|
6
7
|
rules: (ObjectConstructor | ArrayConstructor)[];
|
|
7
8
|
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
9
|
+
showError: BooleanConstructor;
|
|
8
10
|
label: StringConstructor;
|
|
9
11
|
formItemClass: StringConstructor;
|
|
10
12
|
prop: (StringConstructor | ArrayConstructor)[];
|
|
@@ -12,6 +14,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
12
14
|
rules: (ObjectConstructor | ArrayConstructor)[];
|
|
13
15
|
}>>, {
|
|
14
16
|
required: boolean;
|
|
17
|
+
showError: boolean;
|
|
15
18
|
}, {}>, {
|
|
16
19
|
label?(_: {
|
|
17
20
|
label: string;
|
package/dist/index.js
CHANGED
|
@@ -5990,6 +5990,7 @@ const formContextKey = "bge-form-context";
|
|
|
5990
5990
|
const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
5991
5991
|
__name: "form-item",
|
|
5992
5992
|
props: {
|
|
5993
|
+
showError: Boolean,
|
|
5993
5994
|
label: String,
|
|
5994
5995
|
formItemClass: String,
|
|
5995
5996
|
prop: [String, Array],
|
|
@@ -6137,7 +6138,7 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
6137
6138
|
])
|
|
6138
6139
|
])) : createCommentVNode("", true),
|
|
6139
6140
|
createElementVNode("div", {
|
|
6140
|
-
class: normalizeClass(["bge-form-item__content", { error: shouldShowError.value }])
|
|
6141
|
+
class: normalizeClass(["bge-form-item__content", { error: shouldShowError.value || __props.showError }])
|
|
6141
6142
|
}, [
|
|
6142
6143
|
renderSlot(_ctx.$slots, "default"),
|
|
6143
6144
|
createVNode(TransitionGroup, { name: "form-item-zoom-in-top" }, {
|
|
@@ -6355,6 +6356,11 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
6355
6356
|
function addPane(pane) {
|
|
6356
6357
|
panes.value.push(pane);
|
|
6357
6358
|
}
|
|
6359
|
+
watch(() => props.modelValue, () => {
|
|
6360
|
+
setTimeout(() => {
|
|
6361
|
+
update();
|
|
6362
|
+
}, 100);
|
|
6363
|
+
});
|
|
6358
6364
|
function changeValue(value) {
|
|
6359
6365
|
emits("update:modelValue", value);
|
|
6360
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
package/src/form/form-item.vue
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
</slot>
|
|
7
7
|
</div>
|
|
8
8
|
|
|
9
|
-
<div class="bge-form-item__content" :class="{ error: shouldShowError }">
|
|
9
|
+
<div class="bge-form-item__content" :class="{ error: shouldShowError || showError }">
|
|
10
10
|
<slot />
|
|
11
11
|
<transition-group name="form-item-zoom-in-top">
|
|
12
12
|
<slot v-if="shouldShowError" name="error" :error="validateMessage">
|
|
@@ -24,6 +24,7 @@ import { refDebounced } from '@vueuse/core'
|
|
|
24
24
|
import AsyncValidator from 'async-validator'
|
|
25
25
|
|
|
26
26
|
const props = defineProps({
|
|
27
|
+
showError: Boolean,
|
|
27
28
|
label: String,
|
|
28
29
|
formItemClass: String,
|
|
29
30
|
prop: [String, Array],
|
package/src/select/index.vue
CHANGED
|
@@ -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 {
|
package/src/tabs/index.vue
CHANGED
|
@@ -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'
|