easybill-ui 1.0.26 → 1.0.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.
|
@@ -22,8 +22,7 @@
|
|
|
22
22
|
</template>
|
|
23
23
|
</template>
|
|
24
24
|
<template v-if="!props.isSlot">
|
|
25
|
-
|
|
26
|
-
<ConstantStatus v-if="props.schema.options" :value="scope.row[props.schema.prop]" :options="ops" />
|
|
25
|
+
<ConstantStatus v-if="props.schema.options" :value="scope.row[props.schema.prop]" :options="props.schema.options" />
|
|
27
26
|
<span v-else-if="props.schema.copy">
|
|
28
27
|
<el-icon class="copy" title="点击复制" @click.stop="copyValue(getValue(scope))"><CopyDocument /></el-icon>
|
|
29
28
|
<span v-if="props.schema.vHtml" v-html="getValue(scope)"></span>
|
|
@@ -38,7 +37,7 @@
|
|
|
38
37
|
</el-table-column>
|
|
39
38
|
</template>
|
|
40
39
|
<script lang="ts" setup>
|
|
41
|
-
import { computed, inject, PropType, ref, Ref
|
|
40
|
+
import { computed, inject, PropType, ref, Ref } from "vue"
|
|
42
41
|
import ConstantStatus from "../../ConstantStatus"
|
|
43
42
|
import STableItemFilter from "./STableItemFilter.vue"
|
|
44
43
|
import STableItemHeader from "./STableItemHeader.vue"
|
|
@@ -52,7 +51,7 @@ const props = defineProps({
|
|
|
52
51
|
schema: {
|
|
53
52
|
type: Object as PropType<ColumnItem>,
|
|
54
53
|
default() {
|
|
55
|
-
return {}
|
|
54
|
+
return { options: [] }
|
|
56
55
|
},
|
|
57
56
|
},
|
|
58
57
|
isSlot: {
|
|
@@ -68,7 +67,6 @@ const props = defineProps({
|
|
|
68
67
|
default: () => ({}),
|
|
69
68
|
},
|
|
70
69
|
})
|
|
71
|
-
const ops = shallowRef(props.schema.options)
|
|
72
70
|
const selectParams = inject<Ref<Array<ParamsItem>>>("selectParams")
|
|
73
71
|
const filterSchema = computed(() => {
|
|
74
72
|
let result = selectParams?.value.filter((a) => a.prop == props.schema.filter?.prop || a.prop == props.schema.prop) //getFilterFromColumn(props.schema)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "easybill-ui",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.27",
|
|
4
4
|
"description": "A component library for easybill",
|
|
5
5
|
"author": "tuchongyang <779311998@qq.com>",
|
|
6
6
|
"private": false,
|
|
@@ -14,5 +14,5 @@
|
|
|
14
14
|
"publishConfig": {
|
|
15
15
|
"access": "public"
|
|
16
16
|
},
|
|
17
|
-
"gitHead": "
|
|
17
|
+
"gitHead": "3f447c337efba8ff51197abaa556fad8879f7918"
|
|
18
18
|
}
|