eoss-ui 0.5.60 → 0.5.61
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/button-group.js +116 -40
- package/lib/calendar.js +3 -3
- package/lib/card.js +6 -6
- package/lib/eoss-ui.common.js +206 -100
- package/lib/icon.js +17 -5
- package/lib/index.js +1 -1
- package/lib/theme-chalk/base.css +1 -1
- package/lib/theme-chalk/button.css +1 -1
- package/lib/theme-chalk/calendar.css +1 -0
- package/lib/theme-chalk/card.css +1 -1
- package/lib/theme-chalk/cascader.css +0 -1
- package/lib/theme-chalk/icon.css +1 -1
- package/lib/theme-chalk/index.css +1 -1
- package/lib/theme-chalk/main.css +1 -1
- package/lib/theme-chalk/menu.css +1 -1
- package/lib/theme-chalk/sizer.css +1 -1
- package/lib/theme-chalk/toolbar.css +1 -1
- package/lib/theme-chalk/upload.css +1 -1
- package/lib/toolbar.js +43 -25
- package/package.json +1 -1
- package/packages/button-group/src/main.vue +47 -16
- package/packages/calendar/src/main.vue +1 -1
- package/packages/card/src/main.vue +6 -6
- package/packages/icon/src/main.vue +9 -3
- package/packages/theme-chalk/lib/base.css +1 -1
- package/packages/theme-chalk/lib/button.css +1 -1
- package/packages/theme-chalk/lib/calendar.css +1 -0
- package/packages/theme-chalk/lib/card.css +1 -1
- package/packages/theme-chalk/lib/cascader.css +0 -1
- package/packages/theme-chalk/lib/icon.css +1 -1
- package/packages/theme-chalk/lib/index.css +1 -1
- package/packages/theme-chalk/lib/main.css +1 -1
- package/packages/theme-chalk/lib/menu.css +1 -1
- package/packages/theme-chalk/lib/sizer.css +1 -1
- package/packages/theme-chalk/lib/toolbar.css +1 -1
- package/packages/theme-chalk/lib/upload.css +1 -1
- package/packages/theme-chalk/src/button.scss +3 -0
- package/packages/theme-chalk/src/calendar.scss +110 -0
- package/packages/theme-chalk/src/card.scss +3 -0
- package/packages/theme-chalk/src/cascader.scss +0 -109
- package/packages/theme-chalk/src/icon.scss +1 -0
- package/packages/theme-chalk/src/toolbar.scss +8 -0
- package/packages/toolbar/src/main.vue +56 -32
- package/src/index.js +1 -1
|
@@ -134,7 +134,8 @@ export default {
|
|
|
134
134
|
let filter = [];
|
|
135
135
|
|
|
136
136
|
this.contents.forEach((items) => {
|
|
137
|
-
let { config, type, reset, multiCondition, contents, ...other } =
|
|
137
|
+
let { config, type, reset, multiCondition, contents, group, ...other } =
|
|
138
|
+
items;
|
|
138
139
|
if (type === 'text') {
|
|
139
140
|
text = [
|
|
140
141
|
h(
|
|
@@ -151,41 +152,64 @@ export default {
|
|
|
151
152
|
)
|
|
152
153
|
];
|
|
153
154
|
}
|
|
154
|
-
if (
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
155
|
+
if (
|
|
156
|
+
type === 'button' ||
|
|
157
|
+
type === 'button-group' ||
|
|
158
|
+
type === 'buttonGroup'
|
|
159
|
+
) {
|
|
160
|
+
if (type === 'button-group' || type === 'buttonGroup' || group) {
|
|
161
|
+
buttons = [
|
|
162
|
+
h('es-button-group', {
|
|
163
|
+
class: 'es-toolbar-button-group',
|
|
164
|
+
props: {
|
|
165
|
+
moreText: '更多',
|
|
166
|
+
size: 'medium',
|
|
167
|
+
...other,
|
|
168
|
+
contents: contents
|
|
169
|
+
},
|
|
170
|
+
on: {
|
|
171
|
+
handleClick: (res) => {
|
|
172
|
+
this.handleClick(res.handle);
|
|
166
173
|
}
|
|
167
|
-
}
|
|
168
|
-
)
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
+
}
|
|
175
|
+
})
|
|
176
|
+
];
|
|
177
|
+
} else {
|
|
178
|
+
contents.forEach((item) => {
|
|
179
|
+
if (!item.hide && (item.upload || (item.code && item.ownId))) {
|
|
180
|
+
buttons.push(
|
|
181
|
+
h('es-upload', {
|
|
182
|
+
class: 'el-button',
|
|
174
183
|
attrs: {
|
|
175
184
|
...item,
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
this.handleClick(item);
|
|
181
|
-
}
|
|
185
|
+
method: 'post',
|
|
186
|
+
btnSize: 'medium',
|
|
187
|
+
showFileList: false,
|
|
188
|
+
selectType: item.type ? item.type : ''
|
|
182
189
|
}
|
|
183
|
-
}
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
190
|
+
})
|
|
191
|
+
);
|
|
192
|
+
} else {
|
|
193
|
+
buttons.push(
|
|
194
|
+
h(
|
|
195
|
+
'es-button',
|
|
196
|
+
{
|
|
197
|
+
attrs: {
|
|
198
|
+
...item,
|
|
199
|
+
size: 'medium'
|
|
200
|
+
},
|
|
201
|
+
on: {
|
|
202
|
+
click: () => {
|
|
203
|
+
this.handleClick(item);
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
},
|
|
207
|
+
item.text
|
|
208
|
+
)
|
|
209
|
+
);
|
|
210
|
+
}
|
|
211
|
+
});
|
|
212
|
+
}
|
|
189
213
|
}
|
|
190
214
|
if (type === 'tabs') {
|
|
191
215
|
buttons = buttons.concat([
|