diff --git a/packages/schema-select/index.vue b/packages/schema-select/index.vue
index 229135f..ec4e711 100644
--- a/packages/schema-select/index.vue
+++ b/packages/schema-select/index.vue
@@ -48,12 +48,18 @@
{{ value }}
+
+
+
{{ value }}
+
+
+
@@ -224,6 +230,9 @@ export default {
}
return true;
},
+ slotKeys() {
+ return Object.keys(this.$scopedSlots);
+ },
},
watch: {
value(val) {
@@ -234,6 +243,17 @@ export default {
},
},
methods: {
+ getSlotKeys(prefix, fixed) {
+ return this.slotKeys.reduce((result, current) => {
+ if (current.indexOf(prefix) === 0) {
+ result.push({
+ slot: current,
+ name: fixed ? current.substring(prefix.length) : current,
+ });
+ }
+ return result;
+ }, []);
+ },
// 手动设置当前value对应的label
setLabel(val) {
this.currentLabel = val;
--
libgit2 0.21.0