eoss-ui 0.6.35 → 0.6.36
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 +12 -2
- package/lib/index.js +1 -1
- package/lib/select.js +11 -1
- package/package.json +2 -2
- package/packages/select/src/main.vue +16 -1
- package/src/index.js +157 -157
- package/packages/.DS_Store +0 -0
- package/packages/checkbox-group/.DS_Store +0 -0
- package/packages/data-table/.DS_Store +0 -0
- package/packages/dialog/.DS_Store +0 -0
- package/packages/handler/.DS_Store +0 -0
- package/packages/icons/.DS_Store +0 -0
- package/packages/login/.DS_Store +0 -0
- package/packages/main/.DS_Store +0 -0
- package/packages/main/src/.DS_Store +0 -0
- package/packages/theme-chalk/src/.DS_Store +0 -0
- package/src/.DS_Store +0 -0
package/lib/select.js
CHANGED
|
@@ -4200,6 +4200,7 @@ function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in ob
|
|
|
4200
4200
|
this.label = this.service ? 'label' : 'shortName';
|
|
4201
4201
|
this.valKey = this.service ? 'value' : 'cciValue';
|
|
4202
4202
|
var options = store["a" /* default */].get(val);
|
|
4203
|
+
debugger;
|
|
4203
4204
|
if (options) {
|
|
4204
4205
|
this.options = JSON.parse(JSON.stringify(options));
|
|
4205
4206
|
} else {
|
|
@@ -4276,7 +4277,15 @@ function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in ob
|
|
|
4276
4277
|
}
|
|
4277
4278
|
}));
|
|
4278
4279
|
} else {
|
|
4279
|
-
var content = [
|
|
4280
|
+
var content = [];
|
|
4281
|
+
var labelContent = item[_this3.label] || item.label;
|
|
4282
|
+
//判断它是否是html字符串
|
|
4283
|
+
if (typeof labelContent === 'string' && /<[^>]+>/.test(labelContent)) {
|
|
4284
|
+
// 如果是 HTML 字符串,创建对应的 VNode
|
|
4285
|
+
content = [h('div', { domProps: { innerHTML: labelContent } })];
|
|
4286
|
+
} else {
|
|
4287
|
+
content = [labelContent];
|
|
4288
|
+
}
|
|
4280
4289
|
if (item.render) {
|
|
4281
4290
|
content = [item.render(h, item)];
|
|
4282
4291
|
}
|
|
@@ -4286,6 +4295,7 @@ function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in ob
|
|
|
4286
4295
|
attrs: attrs
|
|
4287
4296
|
}));
|
|
4288
4297
|
}
|
|
4298
|
+
|
|
4289
4299
|
eles.push(h('el-option', {
|
|
4290
4300
|
attrs: {
|
|
4291
4301
|
label: item[_this3.label] || item.label,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eoss-ui",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.36",
|
|
4
4
|
"description": "eoss内部业务组件",
|
|
5
5
|
"main": "lib/eoss-ui.common.js",
|
|
6
6
|
"files": [
|
|
@@ -98,7 +98,7 @@
|
|
|
98
98
|
"cp-cli": "^1.0.2",
|
|
99
99
|
"cross-env": "^3.1.3",
|
|
100
100
|
"css-loader": "^2.1.0",
|
|
101
|
-
"eoss-element": "^0.3.
|
|
101
|
+
"eoss-element": "^0.3.33",
|
|
102
102
|
"es6-promise": "^4.0.5",
|
|
103
103
|
"eslint": "4.18.2",
|
|
104
104
|
"eslint-config-elemefe": "0.1.1",
|
|
@@ -202,6 +202,7 @@ export default {
|
|
|
202
202
|
this.label = this.service ? 'label' : 'shortName';
|
|
203
203
|
this.valKey = this.service ? 'value' : 'cciValue';
|
|
204
204
|
const options = store.get(val);
|
|
205
|
+
debugger;
|
|
205
206
|
if (options) {
|
|
206
207
|
this.options = JSON.parse(JSON.stringify(options));
|
|
207
208
|
} else {
|
|
@@ -290,7 +291,20 @@ export default {
|
|
|
290
291
|
})
|
|
291
292
|
);
|
|
292
293
|
} else {
|
|
293
|
-
let content = [
|
|
294
|
+
let content = [];
|
|
295
|
+
const labelContent = item[this.label] || item.label;
|
|
296
|
+
//判断它是否是html字符串
|
|
297
|
+
if (
|
|
298
|
+
typeof labelContent === 'string' &&
|
|
299
|
+
/<[^>]+>/.test(labelContent)
|
|
300
|
+
) {
|
|
301
|
+
// 如果是 HTML 字符串,创建对应的 VNode
|
|
302
|
+
content = [
|
|
303
|
+
h('div', { domProps: { innerHTML: labelContent } })
|
|
304
|
+
];
|
|
305
|
+
} else {
|
|
306
|
+
content = [labelContent];
|
|
307
|
+
}
|
|
294
308
|
if (item.render) {
|
|
295
309
|
content = [item.render(h, item)];
|
|
296
310
|
}
|
|
@@ -305,6 +319,7 @@ export default {
|
|
|
305
319
|
})
|
|
306
320
|
);
|
|
307
321
|
}
|
|
322
|
+
|
|
308
323
|
eles.push(
|
|
309
324
|
h(
|
|
310
325
|
'el-option',
|
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.6.
|
|
124
|
+
version: '0.6.36',
|
|
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/packages/.DS_Store
DELETED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/packages/icons/.DS_Store
DELETED
|
Binary file
|
package/packages/login/.DS_Store
DELETED
|
Binary file
|
package/packages/main/.DS_Store
DELETED
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/src/.DS_Store
DELETED
|
Binary file
|