mirror of
https://gitee.com/ulthon/ulthon_admin.git
synced 2026-07-08 02:52:49 +08:00
feat: 新增地图选点组件
This commit is contained in:
@@ -1882,6 +1882,8 @@
|
||||
|
||||
// 监听通用表格数据控件生成
|
||||
admin.api.tableData();
|
||||
// 监听地图组件
|
||||
admin.api.mapLocation();
|
||||
|
||||
// 监听标签输入控件生成
|
||||
admin.api.tagInput();
|
||||
@@ -2731,6 +2733,15 @@
|
||||
tableData.render(v, data, admin);
|
||||
});
|
||||
|
||||
},
|
||||
mapLocation() {
|
||||
var mapList = document.querySelectorAll('[data-toggle="map-location"]');
|
||||
|
||||
$.each(mapList, function (i, v) {
|
||||
var data = $(v).data();
|
||||
mapLocation.render(v, data, admin);
|
||||
});
|
||||
|
||||
},
|
||||
tagInput() {
|
||||
var list = document.querySelectorAll('[data-toggle="tag-input"]');
|
||||
|
||||
Reference in New Issue
Block a user