@xilonglab/vue-main 1.6.15 → 1.6.16

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xilonglab/vue-main",
3
- "version": "1.6.15",
3
+ "version": "1.6.16",
4
4
  "description": "xilong vue main",
5
5
  "main": "packages/index.js",
6
6
  "scripts": {
@@ -1,6 +1,8 @@
1
1
  <script setup>
2
2
  defineOptions({ name: "XlRawSelect" })
3
3
 
4
+ import { computed } from 'vue';
5
+
4
6
  const emits = defineEmits(['change', 'update:modelValue'])
5
7
 
6
8
  const props = defineProps({
@@ -1,7 +1,7 @@
1
1
  <script setup>
2
2
  defineOptions({ name: "XlSelect" })
3
3
 
4
- import { ref, computed, isRef, unref } from 'vue';
4
+ import { computed } from 'vue';
5
5
 
6
6
 
7
7
  const emits = defineEmits(['change', 'update:modelValue'])
@@ -43,9 +43,6 @@ const props = defineProps({
43
43
  },
44
44
  });
45
45
 
46
-
47
- const visible = ref(true)
48
-
49
46
  const value = computed({
50
47
  get() {
51
48
  return props.modelValue;
@@ -71,7 +68,7 @@ const resolvedOptions = computed(() => {
71
68
 
72
69
 
73
70
  <template>
74
- <el-select v-if="visible" class="xl-select xl-form-item" v-model="value" :placeholder="l?l:placeholder"
71
+ <el-select class="xl-select xl-form-item" v-model="value" :placeholder="l?l:placeholder"
75
72
  :disabled="disabled" :style="{ width: `${width}px` }" :multiple="multiple" clearable>
76
73
  <el-option v-for="option in resolvedOptions" :key="option.value" :label="option.label" :value="option.value"/>
77
74
  </el-select>