@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.
@@ -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
- return Array.isArray(cond.value) ? cond.value.includes(value) : value === cond.value
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',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@a2simcode/ui",
3
- "version": "0.0.70",
3
+ "version": "0.0.71",
4
4
  "description": "A Vue 3 UI Component Library",
5
5
  "type": "module",
6
6
  "main": "./dist/simcode-ui.umd.js",