@xilonglab/vue-main 1.6.25 → 1.6.27

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.25",
3
+ "version": "1.6.27",
4
4
  "description": "xilong vue main",
5
5
  "main": "packages/index.js",
6
6
  "scripts": {
@@ -2,7 +2,7 @@
2
2
  defineOptions({ name: "XlStatusIndicator" })
3
3
 
4
4
  const props = defineProps({
5
- key: {
5
+ index: {
6
6
  type: [Number, String],
7
7
  },
8
8
  map: {
@@ -13,7 +13,7 @@ const props = defineProps({
13
13
  </script>
14
14
 
15
15
  <template>
16
- <span :class="['xl-status-indicator', map[key]?.class]">{{ map[key]?.text }}</span>
16
+ <span :class="['xl-status-indicator', map[index]?.class]">{{ map[index]?.text }}</span>
17
17
  </template>
18
18
 
19
19
  <style lang="less">
@@ -1,4 +1,4 @@
1
- <script setup>
1
+ X<script setup>
2
2
  defineOptions({ name: "XlDialogColumns" })
3
3
 
4
4
  const props = defineProps({
@@ -21,7 +21,12 @@ const props = defineProps({
21
21
  :l="col.label"
22
22
  :p="col.prop"
23
23
  >
24
+ <slot
25
+ v-if="col.type === 'slot'"
26
+ :name="`${col.prop}-form`"
27
+ />
24
28
  <component
29
+ v-else
25
30
  :is="`xl-${col.form.type || 'input'}`"
26
31
  v-model="obj[col.prop]"
27
32
  v-bind="col.form || {}"