@lx-frontend/wrap-element-ui 1.0.14-beta.4 → 1.0.14-beta.5
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
|
@@ -84,7 +84,7 @@
|
|
|
84
84
|
</div>
|
|
85
85
|
</div>
|
|
86
86
|
|
|
87
|
-
<
|
|
87
|
+
<BizFilter
|
|
88
88
|
v-if="column.filters && ((Array.isArray(column.filters) ? column.filters : column.filters.options).length > 0)"
|
|
89
89
|
:column="column"
|
|
90
90
|
:temp-filtered-value="tempFilteredValue"
|
|
@@ -96,58 +96,7 @@
|
|
|
96
96
|
v-bind="item"
|
|
97
97
|
/>
|
|
98
98
|
</template>
|
|
99
|
-
</
|
|
100
|
-
|
|
101
|
-
<!-- <div
|
|
102
|
-
v-if="column.filters && ((Array.isArray(column.filters) ? column.filters : column.filters.options).length > 0)"
|
|
103
|
-
class="editable-table-sort-filter__filter"
|
|
104
|
-
>
|
|
105
|
-
<div class="editable-table-sort-filter__filter-title">
|
|
106
|
-
筛选
|
|
107
|
-
</div>
|
|
108
|
-
<el-checkbox-group
|
|
109
|
-
v-if="column.filters && (Array.isArray(column.filters) || column.filters.type === 'checkbox')"
|
|
110
|
-
class="editable-table-sort-filter__filter-checkbox-group"
|
|
111
|
-
:value="tempFilteredValue[column.filters.prop || column.prop]"
|
|
112
|
-
@input="val => emit('update:tempFilteredValue', column.filters?.prop || column.prop, val)"
|
|
113
|
-
>
|
|
114
|
-
<el-checkbox
|
|
115
|
-
v-for="item in (Array.isArray(column.filters) ? column.filters : column.filters.options)"
|
|
116
|
-
:key="item.value"
|
|
117
|
-
:label="item.value"
|
|
118
|
-
:title="item.text"
|
|
119
|
-
class="editable-table-sort-filter__filter-checkbox"
|
|
120
|
-
>
|
|
121
|
-
<slot
|
|
122
|
-
name="filter-item"
|
|
123
|
-
v-bind="item"
|
|
124
|
-
>
|
|
125
|
-
{{ item.text }}
|
|
126
|
-
</slot>
|
|
127
|
-
</el-checkbox>
|
|
128
|
-
</el-checkbox-group>
|
|
129
|
-
|
|
130
|
-
<el-radio-group
|
|
131
|
-
v-if="column.filters && !Array.isArray(column.filters) && column.filters.type === 'radio'"
|
|
132
|
-
style="display: flex;flex-direction: column;gap: 6px;"
|
|
133
|
-
:value="tempFilteredValue[column.filters.prop || column.prop]"
|
|
134
|
-
@input="val => emit('update:tempFilteredValue', column.filters?.prop || column.prop, val)"
|
|
135
|
-
>
|
|
136
|
-
<el-radio
|
|
137
|
-
v-for="item in column.filters.options"
|
|
138
|
-
:key="item.value"
|
|
139
|
-
:label="item.value"
|
|
140
|
-
:title="item.text"
|
|
141
|
-
>
|
|
142
|
-
<slot
|
|
143
|
-
name="filter-item"
|
|
144
|
-
v-bind="item"
|
|
145
|
-
>
|
|
146
|
-
{{ item.text }}
|
|
147
|
-
</slot>
|
|
148
|
-
</el-radio>
|
|
149
|
-
</el-radio-group>
|
|
150
|
-
</div> -->
|
|
99
|
+
</BizFilter>
|
|
151
100
|
|
|
152
101
|
<div
|
|
153
102
|
v-if="column.summary"
|
|
@@ -197,7 +146,7 @@
|
|
|
197
146
|
<script setup lang="ts">
|
|
198
147
|
import Search from './search.vue'
|
|
199
148
|
import Sort from './sort.vue'
|
|
200
|
-
import
|
|
149
|
+
import BizFilter from './filter.vue'
|
|
201
150
|
|
|
202
151
|
import { ref } from 'vue'
|
|
203
152
|
import { IColumnConfig } from '../../types'
|