eoss-ui 0.5.81-beta4 → 0.5.81-beta6

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 (36) hide show
  1. package/lib/eoss-ui.common.js +1610 -1104
  2. package/lib/index.js +1 -1
  3. package/lib/main.js +1571 -1122
  4. package/lib/selector-panel.js +64 -11
  5. package/lib/selector.js +8 -4
  6. package/lib/theme-chalk/index.css +1 -1
  7. package/lib/theme-chalk/main.css +1 -1
  8. package/lib/theme-chalk/selector-panel.css +1 -1
  9. package/lib/theme-chalk/simplicity.css +1 -1
  10. package/lib/theme-chalk/tree.css +1 -1
  11. package/package.json +1 -1
  12. package/packages/main/src/default/index.vue +1 -1
  13. package/packages/main/src/main.vue +13 -12
  14. package/packages/main/src/simplicity/apps.vue +176 -145
  15. package/packages/main/src/simplicity/index.vue +160 -238
  16. package/packages/main/src/simplicity/menu-list.vue +117 -32
  17. package/packages/main/src/simplicity/message.vue +35 -25
  18. package/packages/main/src/simplicity/notice.vue +72 -39
  19. package/packages/main/src/simplicity/router-page.vue +53 -0
  20. package/packages/main/src/simplicity/settings.vue +1 -1
  21. package/packages/main/src/simplicity/sub-menu.vue +69 -69
  22. package/packages/main/src/simplicity/user.vue +4 -4
  23. package/packages/main/src/simplicity/userinfo.vue +1 -0
  24. package/packages/selector/src/main.vue +6 -2
  25. package/packages/selector-panel/src/main.vue +21 -2
  26. package/packages/selector-panel/src/selection.vue +6 -0
  27. package/packages/theme-chalk/lib/index.css +1 -1
  28. package/packages/theme-chalk/lib/main.css +1 -1
  29. package/packages/theme-chalk/lib/selector-panel.css +1 -1
  30. package/packages/theme-chalk/lib/simplicity.css +1 -1
  31. package/packages/theme-chalk/lib/tree.css +1 -1
  32. package/packages/theme-chalk/src/common/var.scss +2 -0
  33. package/packages/theme-chalk/src/selector-panel.scss +2 -1
  34. package/packages/theme-chalk/src/simplicity.scss +191 -5
  35. package/packages/theme-chalk/src/tree.scss +4 -2
  36. package/src/index.js +1 -1
@@ -58,15 +58,15 @@
58
58
  修改密码 <i class="es-icon-arrow-right"></i>
59
59
  </div>
60
60
  <es-dialog title="修改密码" :visible.sync="visible">
61
- <userinfo v-if="visible" :contents="contents" :value="userInfo">
62
- </userinfo>
61
+ <user-info v-if="visible" :contents="contents" :value="userInfo">
62
+ </user-info>
63
63
  </es-dialog>
64
64
  </div>
65
65
  </template>
66
66
 
67
67
  <script>
68
68
  import avatar from './avatar.vue';
69
- import userinfo from './userinfo.vue';
69
+ import userInfo from './userinfo.vue';
70
70
  import util from 'eoss-ui/src/utils/util';
71
71
  import { debounce } from 'throttle-debounce';
72
72
  import {
@@ -76,7 +76,7 @@ import {
76
76
  } from 'eoss-ui/src/config/api.js';
77
77
  export default {
78
78
  name: 'User',
79
- components: { avatar, userinfo },
79
+ components: { avatar, userInfo },
80
80
  props: {
81
81
  notify: String,
82
82
  notifyList: Array,
@@ -16,6 +16,7 @@ import { updateUserInfo } from 'eoss-ui/src/config/api.js';
16
16
  import util from 'eoss-ui/src/utils/util';
17
17
 
18
18
  export default {
19
+ name: 'UserInfo',
19
20
  props: {
20
21
  showNotify: {
21
22
  type: Boolean,
@@ -86,7 +86,7 @@
86
86
  'es-pointer': !filterable,
87
87
  'es-zindex-2': focus
88
88
  }"
89
- :tabindex="multiple ? '-1' : null"
89
+ :tabindex="tabindex"
90
90
  v-popover:popover
91
91
  @dblclick.native="openDialog"
92
92
  @focus="handleFocus"
@@ -129,7 +129,7 @@
129
129
  'es-plain': this.plain,
130
130
  'es-pointer': !filterable
131
131
  }"
132
- :tabindex="multiple ? '-1' : null"
132
+ :tabindex="tabindex"
133
133
  @dblclick.native="openDialog"
134
134
  @clear="handleClear"
135
135
  >
@@ -296,6 +296,10 @@ export default {
296
296
  return ['enterprise', 'person'];
297
297
  }
298
298
  },
299
+ tabindex: {
300
+ type: [String, Number],
301
+ default: -1
302
+ },
299
303
  filterable: {
300
304
  type: Boolean,
301
305
  default: false
@@ -30,6 +30,9 @@
30
30
  class="es-selector-selection-toolbar"
31
31
  v-if="multiple || isShowTree"
32
32
  >
33
+ <el-form-item>
34
+ <es-switch v-model="showDisabled" :data="options"></es-switch>
35
+ </el-form-item>
33
36
  <el-form-item>
34
37
  <el-checkbox
35
38
  v-show="multiple && !max"
@@ -78,6 +81,7 @@
78
81
  :label-key="labelKey"
79
82
  :multiple="mix ? mix : multiple"
80
83
  :max="max"
84
+ :showDisabled="showDisabled"
81
85
  ></selection>
82
86
  <selection
83
87
  v-model="checkeds"
@@ -223,7 +227,18 @@ export default {
223
227
  activeName: '',
224
228
  selections: [],
225
229
  checkboxs: [],
226
- checkeds: null
230
+ checkeds: null,
231
+ showDisabled: true,
232
+ options: [
233
+ {
234
+ value: true,
235
+ name: '展示'
236
+ },
237
+ {
238
+ value: false,
239
+ name: '过滤'
240
+ }
241
+ ]
227
242
  };
228
243
  },
229
244
  computed: {
@@ -810,7 +825,11 @@ export default {
810
825
  if (res) {
811
826
  if (this.isShowTree) {
812
827
  this.nodeData.checkAll = true;
813
- let checkeds = this.checkeds.concat(this.checkboxs);
828
+ let checkeds = this.checkeds.concat(
829
+ this.checkboxs.filter((item) => {
830
+ return item.disabled !== true;
831
+ })
832
+ );
814
833
  if (checkeds.length > 0) {
815
834
  this.checkeds = util.arrUnique(
816
835
  checkeds,
@@ -11,6 +11,7 @@
11
11
  <el-radio
12
12
  v-for="(item, index) in data"
13
13
  :key="index"
14
+ v-show="item.disabled ? showDisabled : true"
14
15
  v-bind="getprops($attrs, item)"
15
16
  :label="isObject || typeof item == 'string' ? item : item[valKey]"
16
17
  :disabled="typeof item == 'string' ? false : item.disabled"
@@ -33,6 +34,7 @@
33
34
  <el-checkbox
34
35
  v-for="(item, index) in data"
35
36
  :key="index"
37
+ v-show="item.disabled ? showDisabled : true"
36
38
  v-bind="getprops($attrs, item)"
37
39
  :label="isObject || typeof item == 'string' ? item : item[valKey]"
38
40
  :disabled="typeof item == 'string' ? false : item.disabled"
@@ -54,6 +56,10 @@ export default {
54
56
  name: 'Selection',
55
57
  props: {
56
58
  value: [String, Array, Object],
59
+ showDisabled: {
60
+ type: Boolean,
61
+ default: true
62
+ },
57
63
  genre: String,
58
64
  valueKey: {
59
65
  type: String,