@a2simcode/ui 0.0.70 → 0.0.71
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/dist/components/barcode/index.d.ts +3 -3
- package/dist/components/barcode/src/barcode.vue.d.ts +1 -1
- package/dist/components/date/index.d.ts +98 -0
- package/dist/components/date/src/date.vue.d.ts +78 -0
- package/dist/components/index.d.ts +3 -1
- package/dist/components/slider/index.d.ts +3 -3
- package/dist/components/slider/src/slider.vue.d.ts +1 -1
- package/dist/components/tabs/index.d.ts +3 -3
- package/dist/components/tabs/src/tabs.vue.d.ts +1 -1
- package/dist/simcode-ui.es.js +4800 -4609
- package/dist/simcode-ui.umd.js +2 -2
- package/dist/stats.html +1 -1
- package/dist/ui.css +1 -1
- package/docs/components/date.md +76 -0
- package/docs/components/meta/date.ts +275 -0
- package/docs/examples/date/basic.vue +73 -0
- package/docs/examples/date/default-value.vue +59 -0
- package/docs/examples/date/format.vue +75 -0
- package/docs/examples/date/range.vue +66 -0
- package/docs/examples/date/types.vue +79 -0
- package/docs/examples/page/log.vue +437 -205
- package/docs/examples/table/editable.vue +1 -0
- package/docs/examples/table-panel/filter.vue +12 -2
- package/docs/examples/table-panel/sub-table-lazy.vue +18 -0
- package/package.json +1 -1
|
@@ -193,8 +193,18 @@ const loadData = async (params: Record<string, any>) => {
|
|
|
193
193
|
return value !== cond.value
|
|
194
194
|
case 'like':
|
|
195
195
|
return String(value).includes(cond.value)
|
|
196
|
-
case 'in':
|
|
197
|
-
|
|
196
|
+
case 'in': {
|
|
197
|
+
const list = Array.isArray(cond.value) ? cond.value : String(cond.value).split(',')
|
|
198
|
+
return list.includes(String(value))
|
|
199
|
+
}
|
|
200
|
+
case 'nin': {
|
|
201
|
+
const list = Array.isArray(cond.value) ? cond.value : String(cond.value).split(',')
|
|
202
|
+
return !list.includes(String(value))
|
|
203
|
+
}
|
|
204
|
+
case 'empty':
|
|
205
|
+
return value === '' || value === null || value === undefined
|
|
206
|
+
case 'not_empty':
|
|
207
|
+
return value !== '' && value !== null && value !== undefined
|
|
198
208
|
default:
|
|
199
209
|
return true
|
|
200
210
|
}
|
|
@@ -12,7 +12,25 @@
|
|
|
12
12
|
|
|
13
13
|
<script lang="ts" setup>
|
|
14
14
|
import type { ColumnSchemaConfig } from '@a2simcode/ui'
|
|
15
|
+
import * as VTable from '@visactor/vtable'
|
|
15
16
|
|
|
17
|
+
VTable.register.icon('loading', {
|
|
18
|
+
type: 'image',
|
|
19
|
+
width: 16,
|
|
20
|
+
height: 16,
|
|
21
|
+
src: 'https://lf9-dp-fe-cms-tos.byteorg.com/obj/bit-cloud/VTable/media/loading-circle.gif',
|
|
22
|
+
name: 'loading',
|
|
23
|
+
positionType: VTable.TYPES.IconPosition.contentLeft,
|
|
24
|
+
marginLeft: 0,
|
|
25
|
+
marginRight: 4,
|
|
26
|
+
visibleTime: 'always',
|
|
27
|
+
hover: {
|
|
28
|
+
width: 22,
|
|
29
|
+
height: 22,
|
|
30
|
+
bgColor: 'rgba(101,117,168,0.1)',
|
|
31
|
+
},
|
|
32
|
+
isGif: true,
|
|
33
|
+
})
|
|
16
34
|
const columns: ColumnSchemaConfig[] = [
|
|
17
35
|
{
|
|
18
36
|
id: 'id',
|