eoss-ui 0.5.82 → 0.5.84

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.
Files changed (80) hide show
  1. package/CHANGELOG.md +929 -0
  2. package/lib/button-group.js +152 -73
  3. package/lib/button.js +124 -76
  4. package/lib/checkbox-group.js +70 -53
  5. package/lib/config/api.js +3 -0
  6. package/lib/data-table-form.js +70 -53
  7. package/lib/data-table.js +93 -71
  8. package/lib/date-picker.js +70 -53
  9. package/lib/dialog.js +86 -56
  10. package/lib/eoss-ui.common.js +1197 -258
  11. package/lib/flow-group.js +70 -53
  12. package/lib/flow-list.js +71 -54
  13. package/lib/flow.js +119 -84
  14. package/lib/form.js +88 -55
  15. package/lib/handle-user.js +71 -54
  16. package/lib/handler.js +70 -53
  17. package/lib/icon.js +70 -53
  18. package/lib/index.js +1 -1
  19. package/lib/input-number.js +70 -53
  20. package/lib/input.js +70 -53
  21. package/lib/login.js +81 -61
  22. package/lib/main.js +901 -110
  23. package/lib/nav.js +70 -53
  24. package/lib/notify.js +49 -45
  25. package/lib/page.js +70 -53
  26. package/lib/pagination.js +70 -53
  27. package/lib/player.js +70 -53
  28. package/lib/qr-code.js +70 -53
  29. package/lib/radio-group.js +70 -53
  30. package/lib/retrial-auth.js +70 -53
  31. package/lib/select-ganged.js +70 -53
  32. package/lib/select.js +70 -53
  33. package/lib/selector-panel.js +70 -53
  34. package/lib/selector.js +70 -53
  35. package/lib/sizer.js +70 -53
  36. package/lib/steps.js +70 -53
  37. package/lib/switch.js +70 -53
  38. package/lib/table-form.js +70 -53
  39. package/lib/tabs.js +70 -53
  40. package/lib/theme-chalk/dialog.css +1 -1
  41. package/lib/theme-chalk/flow-group.css +1 -1
  42. package/lib/theme-chalk/form.css +1 -1
  43. package/lib/theme-chalk/index.css +1 -1
  44. package/lib/theme-chalk/main.css +1 -1
  45. package/lib/theme-chalk/simplicity.css +1 -1
  46. package/lib/tips.js +70 -53
  47. package/lib/tree-group.js +74 -57
  48. package/lib/tree.js +70 -53
  49. package/lib/upload.js +74 -57
  50. package/lib/utils/util.js +26 -13
  51. package/lib/wujie.js +70 -53
  52. package/lib/wxlogin.js +70 -53
  53. package/package.json +2 -2
  54. package/packages/button/src/main.vue +88 -55
  55. package/packages/button-group/src/main.vue +56 -13
  56. package/packages/data-table/src/column.vue +4 -0
  57. package/packages/data-table/src/main.vue +6 -7
  58. package/packages/dialog/src/main.vue +10 -1
  59. package/packages/flow/src/main.vue +26 -17
  60. package/packages/form/src/main.vue +10 -0
  61. package/packages/login/src/resetPassword.vue +4 -2
  62. package/packages/main/src/default/userinfo.vue +2 -1
  63. package/packages/main/src/public/search.vue +337 -0
  64. package/packages/main/src/simplicity/apps.vue +8 -2
  65. package/packages/main/src/simplicity/index.vue +38 -9
  66. package/packages/main/src/simplicity/userinfo.vue +1 -0
  67. package/packages/theme-chalk/lib/dialog.css +1 -1
  68. package/packages/theme-chalk/lib/flow-group.css +1 -1
  69. package/packages/theme-chalk/lib/form.css +1 -1
  70. package/packages/theme-chalk/lib/index.css +1 -1
  71. package/packages/theme-chalk/lib/main.css +1 -1
  72. package/packages/theme-chalk/lib/simplicity.css +1 -1
  73. package/packages/theme-chalk/src/dialog.scss +25 -0
  74. package/packages/theme-chalk/src/flow-group.scss +1 -0
  75. package/packages/theme-chalk/src/form.scss +6 -0
  76. package/packages/theme-chalk/src/simplicity.scss +159 -4
  77. package/packages/tree-group/src/main.vue +2 -3
  78. package/src/config/api.js +3 -0
  79. package/src/index.js +157 -157
  80. package/src/utils/util.js +18 -5
package/src/config/api.js CHANGED
@@ -45,6 +45,9 @@ export const updateUserCustomInfo = '/main2/main/updateUserCustomInfo'; // 更
45
45
  export const sysMsgPage = '/main2/notify/sysMsgPage'; // 获取系统消息
46
46
  export const ignoreSysMsg = '/main2/notify/ignoreSysMsg'; // 忽略系统消息
47
47
  export const ignoreAllSysMsg = '/main2/notify/ignoreAllSysMsg'; // 忽略全部系统消息
48
+ // 框架 - 搜索
49
+ export const searchType = '/oceanSearch/v2/search/catalog'; // 搜索分类类型
50
+
48
51
  // 附件相关
49
52
  export const getAdjunctProperties =
50
53
  '/main2/mecpfileManagement/getAdjunctProperties'; // 获取附件扩展类型大小
package/src/index.js CHANGED
@@ -1,112 +1,112 @@
1
1
  /* Automatically generated by './build/bin/build-entry.js' */
2
2
 
3
- import Button from '../packages/button/index.js';
4
- import ButtonGroup from '../packages/button-group/index.js';
5
- import Calendar from '../packages/calendar/index.js';
6
- import Card from '../packages/card/index.js';
7
- import Cascader from '../packages/cascader/index.js';
8
- import CheckboxGroup from '../packages/checkbox-group/index.js';
9
- import Clients from '../packages/clients/index.js';
10
- import DataTable from '../packages/data-table/index.js';
11
- import DataTableForm from '../packages/data-table-form/index.js';
12
- import DatePicker from '../packages/date-picker/index.js';
13
- import Dialog from '../packages/dialog/index.js';
14
- import Enterprise from '../packages/enterprise/index.js';
15
- import ErrorPage from '../packages/error-page/index.js';
16
- import Form from '../packages/form/index.js';
17
- import Flow from '../packages/flow/index.js';
18
- import FlowGroup from '../packages/flow-group/index.js';
19
- import FlowList from '../packages/flow-list/index.js';
20
- import HandleUser from '../packages/handle-user/index.js';
21
- import Handler from '../packages/handler/index.js';
22
- import Icon from '../packages/icon/index.js';
23
- import Icons from '../packages/icons/index.js';
24
- import Input from '../packages/input/index.js';
25
- import InputNumber from '../packages/input-number/index.js';
26
- import Label from '../packages/label/index.js';
27
- import Layout from '../packages/layout/index.js';
28
- import Login from '../packages/login/index.js';
29
- import Main from '../packages/main/index.js';
30
- import Menu from '../packages/menu/index.js';
31
- import Nav from '../packages/nav/index.js';
32
- import Notify from '../packages/notify/index.js';
33
- import Pagination from '../packages/pagination/index.js';
34
- import Page from '../packages/page/index.js';
35
- import Player from '../packages/player/index.js';
36
- import QrCode from '../packages/qr-code/index.js';
37
- import RadioGroup from '../packages/radio-group/index.js';
38
- import RetrialAuth from '../packages/retrial-auth/index.js';
39
- import Select from '../packages/select/index.js';
40
- import SelectGanged from '../packages/select-ganged/index.js';
41
- import Selector from '../packages/selector/index.js';
42
- import SelectorPanel from '../packages/selector-panel/index.js';
43
- import Sizer from '../packages/sizer/index.js';
44
- import Steps from '../packages/steps/index.js';
45
- import Switch from '../packages/switch/index.js';
46
- import Tabs from '../packages/tabs/index.js';
47
- import TabsPanel from '../packages/tabs-panel/index.js';
48
- import Tips from '../packages/tips/index.js';
49
- import Tree from '../packages/tree/index.js';
50
- import TreeGroup from '../packages/tree-group/index.js';
51
- import Toolbar from '../packages/toolbar/index.js';
52
- import TableForm from '../packages/table-form/index.js';
53
- import Upload from '../packages/upload/index.js';
54
- import Wujie from '../packages/wujie/index.js';
3
+ import Button from '../packages/button/index.js';
4
+ import ButtonGroup from '../packages/button-group/index.js';
5
+ import Calendar from '../packages/calendar/index.js';
6
+ import Card from '../packages/card/index.js';
7
+ import Cascader from '../packages/cascader/index.js';
8
+ import CheckboxGroup from '../packages/checkbox-group/index.js';
9
+ import Clients from '../packages/clients/index.js';
10
+ import DataTable from '../packages/data-table/index.js';
11
+ import DataTableForm from '../packages/data-table-form/index.js';
12
+ import DatePicker from '../packages/date-picker/index.js';
13
+ import Dialog from '../packages/dialog/index.js';
14
+ import Enterprise from '../packages/enterprise/index.js';
15
+ import ErrorPage from '../packages/error-page/index.js';
16
+ import Form from '../packages/form/index.js';
17
+ import Flow from '../packages/flow/index.js';
18
+ import FlowGroup from '../packages/flow-group/index.js';
19
+ import FlowList from '../packages/flow-list/index.js';
20
+ import HandleUser from '../packages/handle-user/index.js';
21
+ import Handler from '../packages/handler/index.js';
22
+ import Icon from '../packages/icon/index.js';
23
+ import Icons from '../packages/icons/index.js';
24
+ import Input from '../packages/input/index.js';
25
+ import InputNumber from '../packages/input-number/index.js';
26
+ import Label from '../packages/label/index.js';
27
+ import Layout from '../packages/layout/index.js';
28
+ import Login from '../packages/login/index.js';
29
+ import Main from '../packages/main/index.js';
30
+ import Menu from '../packages/menu/index.js';
31
+ import Nav from '../packages/nav/index.js';
32
+ import Notify from '../packages/notify/index.js';
33
+ import Pagination from '../packages/pagination/index.js';
34
+ import Page from '../packages/page/index.js';
35
+ import Player from '../packages/player/index.js';
36
+ import QrCode from '../packages/qr-code/index.js';
37
+ import RadioGroup from '../packages/radio-group/index.js';
38
+ import RetrialAuth from '../packages/retrial-auth/index.js';
39
+ import Select from '../packages/select/index.js';
40
+ import SelectGanged from '../packages/select-ganged/index.js';
41
+ import Selector from '../packages/selector/index.js';
42
+ import SelectorPanel from '../packages/selector-panel/index.js';
43
+ import Sizer from '../packages/sizer/index.js';
44
+ import Steps from '../packages/steps/index.js';
45
+ import Switch from '../packages/switch/index.js';
46
+ import Tabs from '../packages/tabs/index.js';
47
+ import TabsPanel from '../packages/tabs-panel/index.js';
48
+ import Tips from '../packages/tips/index.js';
49
+ import Tree from '../packages/tree/index.js';
50
+ import TreeGroup from '../packages/tree-group/index.js';
51
+ import Toolbar from '../packages/toolbar/index.js';
52
+ import TableForm from '../packages/table-form/index.js';
53
+ import Upload from '../packages/upload/index.js';
54
+ import Wujie from '../packages/wujie/index.js';
55
55
  import Wxlogin from '../packages/wxlogin/index.js';
56
56
 
57
57
  const components = [
58
- Button,
59
- ButtonGroup,
60
- Calendar,
61
- Card,
62
- Cascader,
63
- CheckboxGroup,
64
- Clients,
65
- DataTable,
66
- DataTableForm,
67
- DatePicker,
68
- Dialog,
69
- Enterprise,
70
- ErrorPage,
71
- Form,
72
- Flow,
73
- FlowGroup,
74
- FlowList,
75
- HandleUser,
76
- Handler,
77
- Icon,
78
- Icons,
79
- Input,
80
- InputNumber,
81
- Label,
82
- Layout,
83
- Login,
84
- Main,
85
- Menu,
86
- Nav,
87
- Notify,
88
- Pagination,
89
- Page,
90
- Player,
91
- QrCode,
92
- RadioGroup,
93
- RetrialAuth,
94
- Select,
95
- SelectGanged,
96
- Selector,
97
- SelectorPanel,
98
- Sizer,
99
- Steps,
100
- Switch,
101
- Tabs,
102
- TabsPanel,
103
- Tips,
104
- Tree,
105
- TreeGroup,
106
- Toolbar,
107
- TableForm,
108
- Upload,
109
- Wujie,
58
+ Button,
59
+ ButtonGroup,
60
+ Calendar,
61
+ Card,
62
+ Cascader,
63
+ CheckboxGroup,
64
+ Clients,
65
+ DataTable,
66
+ DataTableForm,
67
+ DatePicker,
68
+ Dialog,
69
+ Enterprise,
70
+ ErrorPage,
71
+ Form,
72
+ Flow,
73
+ FlowGroup,
74
+ FlowList,
75
+ HandleUser,
76
+ Handler,
77
+ Icon,
78
+ Icons,
79
+ Input,
80
+ InputNumber,
81
+ Label,
82
+ Layout,
83
+ Login,
84
+ Main,
85
+ Menu,
86
+ Nav,
87
+ Notify,
88
+ Pagination,
89
+ Page,
90
+ Player,
91
+ QrCode,
92
+ RadioGroup,
93
+ RetrialAuth,
94
+ Select,
95
+ SelectGanged,
96
+ Selector,
97
+ SelectorPanel,
98
+ Sizer,
99
+ Steps,
100
+ Switch,
101
+ Tabs,
102
+ TabsPanel,
103
+ Tips,
104
+ Tree,
105
+ TreeGroup,
106
+ Toolbar,
107
+ TableForm,
108
+ Upload,
109
+ Wujie,
110
110
  Wxlogin
111
111
  ];
112
112
 
@@ -121,59 +121,59 @@ if (typeof window !== 'undefined' && window.Vue) {
121
121
  }
122
122
 
123
123
  export default {
124
- version: '0.5.82',
124
+ version: '0.5.84',
125
125
  install,
126
- Button,
127
- ButtonGroup,
128
- Calendar,
129
- Card,
130
- Cascader,
131
- CheckboxGroup,
132
- Clients,
133
- DataTable,
134
- DataTableForm,
135
- DatePicker,
136
- Dialog,
137
- Enterprise,
138
- ErrorPage,
139
- Form,
140
- Flow,
141
- FlowGroup,
142
- FlowList,
143
- HandleUser,
144
- Handler,
145
- Icon,
146
- Icons,
147
- Input,
148
- InputNumber,
149
- Label,
150
- Layout,
151
- Login,
152
- Main,
153
- Menu,
154
- Nav,
155
- Notify,
156
- Pagination,
157
- Page,
158
- Player,
159
- QrCode,
160
- RadioGroup,
161
- RetrialAuth,
162
- Select,
163
- SelectGanged,
164
- Selector,
165
- SelectorPanel,
166
- Sizer,
167
- Steps,
168
- Switch,
169
- Tabs,
170
- TabsPanel,
171
- Tips,
172
- Tree,
173
- TreeGroup,
174
- Toolbar,
175
- TableForm,
176
- Upload,
177
- Wujie,
126
+ Button,
127
+ ButtonGroup,
128
+ Calendar,
129
+ Card,
130
+ Cascader,
131
+ CheckboxGroup,
132
+ Clients,
133
+ DataTable,
134
+ DataTableForm,
135
+ DatePicker,
136
+ Dialog,
137
+ Enterprise,
138
+ ErrorPage,
139
+ Form,
140
+ Flow,
141
+ FlowGroup,
142
+ FlowList,
143
+ HandleUser,
144
+ Handler,
145
+ Icon,
146
+ Icons,
147
+ Input,
148
+ InputNumber,
149
+ Label,
150
+ Layout,
151
+ Login,
152
+ Main,
153
+ Menu,
154
+ Nav,
155
+ Notify,
156
+ Pagination,
157
+ Page,
158
+ Player,
159
+ QrCode,
160
+ RadioGroup,
161
+ RetrialAuth,
162
+ Select,
163
+ SelectGanged,
164
+ Selector,
165
+ SelectorPanel,
166
+ Sizer,
167
+ Steps,
168
+ Switch,
169
+ Tabs,
170
+ TabsPanel,
171
+ Tips,
172
+ Tree,
173
+ TreeGroup,
174
+ Toolbar,
175
+ TableForm,
176
+ Upload,
177
+ Wujie,
178
178
  Wxlogin
179
179
  };
package/src/utils/util.js CHANGED
@@ -1963,11 +1963,24 @@ const identical = function ({
1963
1963
  const indexOfObj = function (arry, target, key) {
1964
1964
  for (let i = 0; i < arry.length; i++) {
1965
1965
  if (key) {
1966
- if (typeof target === 'string' && arry[i][key] === target) {
1967
- return i;
1968
- }
1969
- if (target[key] === arry[i][key]) {
1970
- return i;
1966
+ if (key.indexOf(',') > -1) {
1967
+ let keys = key.split(',');
1968
+ for (let i = 0; i < keys.length; i++) {
1969
+ let k = keys[i];
1970
+ if (typeof target === 'string' && arry[i][k] === target) {
1971
+ return i;
1972
+ }
1973
+ if (target[k] === arry[i][k]) {
1974
+ return i;
1975
+ }
1976
+ }
1977
+ } else {
1978
+ if (typeof target === 'string' && arry[i][key] === target) {
1979
+ return i;
1980
+ }
1981
+ if (target[key] === arry[i][key]) {
1982
+ return i;
1983
+ }
1971
1984
  }
1972
1985
  } else {
1973
1986
  if (JSON.stringify(target) === JSON.stringify(arry[i])) {