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.
- package/lib/eoss-ui.common.js +1610 -1104
- package/lib/index.js +1 -1
- package/lib/main.js +1571 -1122
- package/lib/selector-panel.js +64 -11
- package/lib/selector.js +8 -4
- package/lib/theme-chalk/index.css +1 -1
- package/lib/theme-chalk/main.css +1 -1
- package/lib/theme-chalk/selector-panel.css +1 -1
- package/lib/theme-chalk/simplicity.css +1 -1
- package/lib/theme-chalk/tree.css +1 -1
- package/package.json +1 -1
- package/packages/main/src/default/index.vue +1 -1
- package/packages/main/src/main.vue +13 -12
- package/packages/main/src/simplicity/apps.vue +176 -145
- package/packages/main/src/simplicity/index.vue +160 -238
- package/packages/main/src/simplicity/menu-list.vue +117 -32
- package/packages/main/src/simplicity/message.vue +35 -25
- package/packages/main/src/simplicity/notice.vue +72 -39
- package/packages/main/src/simplicity/router-page.vue +53 -0
- package/packages/main/src/simplicity/settings.vue +1 -1
- package/packages/main/src/simplicity/sub-menu.vue +69 -69
- package/packages/main/src/simplicity/user.vue +4 -4
- package/packages/main/src/simplicity/userinfo.vue +1 -0
- package/packages/selector/src/main.vue +6 -2
- package/packages/selector-panel/src/main.vue +21 -2
- package/packages/selector-panel/src/selection.vue +6 -0
- package/packages/theme-chalk/lib/index.css +1 -1
- package/packages/theme-chalk/lib/main.css +1 -1
- package/packages/theme-chalk/lib/selector-panel.css +1 -1
- package/packages/theme-chalk/lib/simplicity.css +1 -1
- package/packages/theme-chalk/lib/tree.css +1 -1
- package/packages/theme-chalk/src/common/var.scss +2 -0
- package/packages/theme-chalk/src/selector-panel.scss +2 -1
- package/packages/theme-chalk/src/simplicity.scss +191 -5
- package/packages/theme-chalk/src/tree.scss +4 -2
- 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
|
-
<
|
|
62
|
-
</
|
|
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
|
|
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,
|
|
79
|
+
components: { avatar, userInfo },
|
|
80
80
|
props: {
|
|
81
81
|
notify: String,
|
|
82
82
|
notifyList: Array,
|
|
@@ -86,7 +86,7 @@
|
|
|
86
86
|
'es-pointer': !filterable,
|
|
87
87
|
'es-zindex-2': focus
|
|
88
88
|
}"
|
|
89
|
-
:tabindex="
|
|
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="
|
|
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(
|
|
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,
|