@partex/one-core 1.1.18 → 1.1.20

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/README.md CHANGED
@@ -1,9 +1,12 @@
1
1
  # 公共组件
2
2
  ## oc-search-bar
3
3
  * value 搜索的默认值 Object default: {}
4
+ * defaultValue 重置的默认值 Object default: {}
4
5
  * data 搜索列表 ISearchBarType default: {}
5
6
  * loading? 加载状态 Boolean default: false
6
7
  * cols? 显示的栅格数量 number default: 5
8
+ * autoSubmit? 自动提交 Boolean default: true
9
+ * cache? 启用缓存 boolean default: true
7
10
  * on-update:value? 值更新时执行的回调 default: undefined
8
11
 
9
12
  * slot header
@@ -65,7 +68,12 @@ shortcuts?:
65
68
  // Group
66
69
  type: 'group'
67
70
  options: Array<SelectOption | SelectGroupOption>
68
- input: GInput | GInputNumber | GDatePicker | GSelectPicker
71
+ input: {
72
+ key: string
73
+ options: {
74
+ [key: string]: GroupInput
75
+ }
76
+ }
69
77
  width?: number | string
70
78
  ```
71
79
 
@@ -255,7 +263,7 @@ const exportData = (): void => {
255
263
  # 公共方法
256
264
 
257
265
  ## fnIsMobile
258
- * 获取界面宽度是否小于等于568 返回boolean isMobile: true
266
+ * 获取界面宽度是否小于769 返回boolean isMobile: true
259
267
  ## fnSetStorage
260
268
  * 保存进LocalStorage
261
269
  * key: string
@@ -591,3 +599,17 @@ export default {
591
599
  }
592
600
  </script>
593
601
  ```
602
+
603
+ # 从v1.0.0升级到v1.1.0
604
+ ### v1.0.0
605
+ ![v1.0.0](./doc/code.png "before")
606
+ ### v1.1.0
607
+ ![v1.1.0](./doc/code_after.png "after")
608
+
609
+ ### 变化
610
+ ### v1.1.0之后value不支持双向绑定,提供setValues与setData方法来变更
611
+ * setValues变更value的数据
612
+ * setData变更搜索条件
613
+
614
+ ### v1.1.0之后提供搜索条件记忆功能
615
+ * 注:把所有需要变动的数据都放在value的ref里面。并且在每次请求结果后调用setValues
@@ -42,10 +42,12 @@ declare const _default: DefineComponent<{
42
42
  };
43
43
  }, {
44
44
  itemRef: Ref<any>;
45
+ drawer: Ref<boolean>;
45
46
  isSlotHeader: Ref<boolean>;
47
+ isSlotAction: Ref<boolean>;
46
48
  availWidth: Ref<boolean>;
47
49
  itemData: Ref<{}>;
48
- doSearch: () => void;
50
+ doSearch: (init?: boolean) => void;
49
51
  clearAll: () => void;
50
52
  }, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, ("on-update:value" | "update:loading")[], "on-update:value" | "update:loading", PublicProps, Readonly<ExtractPropTypes<{
51
53
  value: {
@@ -0,0 +1,19 @@
1
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes } from 'vue';
2
+ declare const _default: DefineComponent<{
3
+ value: {
4
+ required: true;
5
+ type: BooleanConstructor;
6
+ default: boolean;
7
+ };
8
+ }, {
9
+ close: () => void;
10
+ }, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, "on-update:value"[], "on-update:value", PublicProps, Readonly<ExtractPropTypes<{
11
+ value: {
12
+ required: true;
13
+ type: BooleanConstructor;
14
+ default: boolean;
15
+ };
16
+ }>> & {
17
+ "onOn-update:value"?: ((...args: any[]) => any) | undefined;
18
+ }, {}, {}>;
19
+ export default _default;