neo.mjs 5.12.6 → 5.13.0
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/apps/ServiceWorker.mjs
CHANGED
@@ -197,7 +197,35 @@ class MainContainer extends ConfigurationViewport {
|
|
197
197
|
}, {
|
198
198
|
handler: data => console.log('menu item 3 click =>', data),
|
199
199
|
iconCls: 'fa fa-play',
|
200
|
-
text : 'Item 3'
|
200
|
+
text : 'Item 3',
|
201
|
+
|
202
|
+
items: [{
|
203
|
+
handler: data => console.log('menu item 4 click =>', data),
|
204
|
+
iconCls: 'fa fa-home',
|
205
|
+
text : 'Item 4'
|
206
|
+
}, {
|
207
|
+
handler: data => console.log('menu item 5 click =>', data),
|
208
|
+
iconCls: 'fa fa-user',
|
209
|
+
text : 'Item 5'
|
210
|
+
}, {
|
211
|
+
handler: data => console.log('menu item 6 click =>', data),
|
212
|
+
iconCls: 'fa fa-play',
|
213
|
+
text : 'Item 6',
|
214
|
+
|
215
|
+
items: [{
|
216
|
+
handler: data => console.log('menu item 7 click =>', data),
|
217
|
+
iconCls: 'fa fa-home',
|
218
|
+
text : 'Item 7'
|
219
|
+
}, {
|
220
|
+
handler: data => console.log('menu item 8 click =>', data),
|
221
|
+
iconCls: 'fa fa-user',
|
222
|
+
text : 'Item 8'
|
223
|
+
}, {
|
224
|
+
handler: data => console.log('menu item 9 click =>', data),
|
225
|
+
iconCls: 'fa fa-play',
|
226
|
+
text : 'Item 9'
|
227
|
+
}]
|
228
|
+
}]
|
201
229
|
}]
|
202
230
|
|
203
231
|
/*tooltips: [{
|
package/package.json
CHANGED
package/src/DefaultConfig.mjs
CHANGED
@@ -236,12 +236,12 @@ const DefaultConfig = {
|
|
236
236
|
useVdomWorker: true,
|
237
237
|
/**
|
238
238
|
* buildScripts/injectPackageVersion.mjs will update this value
|
239
|
-
* @default '5.
|
239
|
+
* @default '5.13.0'
|
240
240
|
* @memberOf! module:Neo
|
241
241
|
* @name config.version
|
242
242
|
* @type String
|
243
243
|
*/
|
244
|
-
version: '5.
|
244
|
+
version: '5.13.0'
|
245
245
|
};
|
246
246
|
|
247
247
|
Object.assign(DefaultConfig, {
|
package/src/menu/List.mjs
CHANGED
@@ -176,9 +176,9 @@ class List extends BaseList {
|
|
176
176
|
afterSetMounted(value, oldValue) {
|
177
177
|
super.afterSetMounted(value, oldValue);
|
178
178
|
|
179
|
-
let me
|
180
|
-
id
|
181
|
-
parentId
|
179
|
+
let me = this,
|
180
|
+
id = me.id,
|
181
|
+
parentId = me.parentComponent?.id;
|
182
182
|
|
183
183
|
if (parentId) {
|
184
184
|
if (value) {
|
@@ -187,7 +187,7 @@ class List extends BaseList {
|
|
187
187
|
targetId: id
|
188
188
|
});
|
189
189
|
|
190
|
-
me.getDomRect([id, parentId]).then(rects => {
|
190
|
+
!me.parentMenu && me.getDomRect([id, parentId]).then(rects => {
|
191
191
|
let style = me.style || {};
|
192
192
|
|
193
193
|
style.left = `${rects[1].right - rects[0].width}px`;
|
@@ -393,17 +393,18 @@ class List extends BaseList {
|
|
393
393
|
subMenu.setSilent({style: menuStyle})
|
394
394
|
} else {
|
395
395
|
subMenuMap[subMenuMapId] = subMenu = Neo.create({
|
396
|
-
module
|
397
|
-
appName
|
398
|
-
displayField: me.displayField,
|
399
|
-
floating
|
400
|
-
items
|
401
|
-
isRoot
|
402
|
-
|
403
|
-
|
404
|
-
|
396
|
+
module : List,
|
397
|
+
appName : me.appName,
|
398
|
+
displayField : me.displayField,
|
399
|
+
floating : true,
|
400
|
+
items : record.items,
|
401
|
+
isRoot : false,
|
402
|
+
parentComponent: me.parentComponent,
|
403
|
+
parentId : Neo.apps[me.appName].mainView.id,
|
404
|
+
parentIndex : store.indexOf(record),
|
405
|
+
parentMenu : me,
|
405
406
|
style,
|
406
|
-
zIndex
|
407
|
+
zIndex : me.zIndex + 1
|
407
408
|
})
|
408
409
|
}
|
409
410
|
|