stellar-ui-plus 1.22.7 → 1.22.9

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.
@@ -6,3 +6,8 @@
6
6
  | `apiUrl` | 更新API地址 | `string` | `https://zboa.whzb.com/inte-cloud-dev/blade-system/api/inte/client/ver/currentDetail` | - | - |
7
7
 
8
8
 
9
+ #### Events
10
+ | 事件名 | 说明 | 事件参数 | 支持版本 |
11
+ | ----- | ----- | ------- | -------- |
12
+ | `cancel` | 取消更新 | - | - |
13
+ | `complete` | 取消,成功更新都会执行 | - | - |
@@ -9,6 +9,8 @@
9
9
  - 属性`clientId`用于设置APP的应用编码
10
10
  - 属性`clientSecret`用于设置APP的应用密钥
11
11
  - 函数`start`用于开始检查更新
12
+ - 回调事`cancel`取消更新
13
+ - 回调事`complete`取消,成功更新都会执行
12
14
 
13
15
  ```html
14
16
  <script setup lang="ts">
@@ -1,73 +1,72 @@
1
- {
2
- "name": "ste-filter-tool",
3
- "description": "筛选选项",
4
- "example": "<ste-filter-tool></ste-filter-tool>",
5
- "tutorial": "https://stellar-ui.intecloud.com.cn/plus/#/?active=filter-tool",
6
- "attributes": [
7
- {
8
- "name": "v-model:value",
9
- "description": "当前选中值,支持双向绑定",
10
- "type": "FilterValue[]",
11
- "default": "[]"
12
- },
13
- {
14
- "name": "activeColor",
15
- "description": "激活状态颜色",
16
- "type": "string",
17
- "default": "#0275FF"
18
- },
19
- {
20
- "name": "inactiveColor",
21
- "description": "非激活状态颜色",
22
- "type": "string",
23
- "default": "#555A61"
24
- },
25
- {
26
- "name": "filterType",
27
- "description": "筛选类型",
28
- "type": "string",
29
- "options": "button | checkbox | calendar",
30
- "default": "button"
31
- },
32
- {
33
- "name": "data",
34
- "description": "筛选数据源,详细配置见文档",
35
- "type": "FilterItem[]",
36
- "default": "[]"
37
- },
38
- {
39
- "name": "showCategory",
40
- "description": "是否显示左侧的分类栏",
41
- "type": "boolean",
42
- "default": "true"
43
- },
44
- {
45
- "name": "[event]confirm",
46
- "description": "点击确认按钮时触发",
47
- "type": "(values: FilterValue[]) => void",
48
- "params": [
49
- {
50
- "name": "values",
51
- "description": "当前所有选中的值"
52
- }
53
- ]
54
- },
55
- {
56
- "name": "[event]reset",
57
- "description": "点击重置按钮时触发",
58
- "type": "() => void",
59
- "params": []
60
- },
61
- {
62
- "name": "[event]itemClick",
63
- "description": "点击任意筛选项时触发(实时)",
64
- "type": "(item: FilterValue) => void",
65
- "params": [
66
- {
67
- "name": "item",
68
- "description": "当前操作的筛选项数据"
69
- }
70
- ]
71
- }
72
- ]
73
- }
1
+ {
2
+ "name": "ste-filter-tool",
3
+ "description": "筛选选项",
4
+ "example": "<ste-filter-tool></ste-filter-tool>",
5
+ "tutorial": "https://stellar-ui.intecloud.com.cn/plus/#/?active=filter-tool",
6
+ "attributes": [
7
+ {
8
+ "name": "v-model:value",
9
+ "description": "当前选中值,支持双向绑定",
10
+ "type": "FilterValue[]",
11
+ "default": "[]"
12
+ },
13
+ {
14
+ "name": "activeColor",
15
+ "description": "激活状态颜色",
16
+ "type": "string",
17
+ "default": "#0275FF"
18
+ },
19
+ {
20
+ "name": "inactiveColor",
21
+ "description": "非激活状态颜色",
22
+ "type": "string",
23
+ "default": "#555A61"
24
+ },
25
+ {
26
+ "name": "filterType",
27
+ "description": "筛选类型",
28
+ "type": "string",
29
+ "default": "button"
30
+ },
31
+ {
32
+ "name": "data",
33
+ "description": "筛选数据源,详细配置见文档",
34
+ "type": "FilterItem[]",
35
+ "default": "[]"
36
+ },
37
+ {
38
+ "name": "showCategory",
39
+ "description": "是否显示左侧的分类栏",
40
+ "type": "boolean",
41
+ "default": "true"
42
+ },
43
+ {
44
+ "name": "[event]confirm",
45
+ "description": "点击确认按钮时触发",
46
+ "type": "(values: FilterValue[]) => void",
47
+ "params": [
48
+ {
49
+ "name": "values",
50
+ "description": "当前所有选中的值"
51
+ }
52
+ ]
53
+ },
54
+ {
55
+ "name": "[event]reset",
56
+ "description": "点击重置按钮时触发",
57
+ "type": "() => void",
58
+ "params": []
59
+ },
60
+ {
61
+ "name": "[event]itemClick",
62
+ "description": "点击任意筛选项时触发(实时)",
63
+ "type": "(item: FilterValue) => void",
64
+ "params": [
65
+ {
66
+ "name": "item",
67
+ "description": "当前操作的筛选项数据"
68
+ }
69
+ ]
70
+ }
71
+ ]
72
+ }
@@ -190,6 +190,8 @@ const handleFilterItemInput = (item: FilterItem, value: any) => {
190
190
  ...item.config,
191
191
  value: value,
192
192
  };
193
+ } else {
194
+ item.config = { value: value };
193
195
  }
194
196
  };
195
197
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "stellar-ui-plus",
3
- "version": "1.22.7",
3
+ "version": "1.22.9",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "license": "MIT",