Merge branch 'dev' into dev-commet
This commit is contained in:
commit
4545c84e7b
src
packages/components
views/chart/ContentConfigurations/components/ChartEvent
@ -67,7 +67,7 @@ watch(
|
|||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
try {
|
try {
|
||||||
if (navigator.userAgent.indexOf('Chrome') < -1 || navigator.userAgent.indexOf('Edg') > -1) {
|
if (navigator.userAgent.indexOf('Chrome') < -1 || navigator.userAgent.indexOf('Edg') > -1) {
|
||||||
window['$message'].error('此组件仅在【谷歌】浏览器上能正常展示!')
|
window['$message'].error('三维地图组件仅在【谷歌】浏览器上能正常展示!')
|
||||||
chartEditStore.removeComponentList(undefined, false)
|
chartEditStore.removeComponentList(undefined, false)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
@ -6,7 +6,7 @@ import cloneDeep from 'lodash/cloneDeep'
|
|||||||
|
|
||||||
export const option = {
|
export const option = {
|
||||||
// 网站路径
|
// 网站路径
|
||||||
dataset: "https://cn.vuejs.org/",
|
dataset: "https://www.mtruning.club/",
|
||||||
// 圆角
|
// 圆角
|
||||||
borderRadius: 10
|
borderRadius: 10
|
||||||
}
|
}
|
||||||
|
@ -17,6 +17,14 @@ const nodeModulesTemplateString = `
|
|||||||
console.log(node_modules)
|
console.log(node_modules)
|
||||||
`
|
`
|
||||||
|
|
||||||
|
// 添加点击事件
|
||||||
|
const addClickTemplateString = `
|
||||||
|
// 在渲染之后才能获取 dom 实例
|
||||||
|
e.el.addEventListener('click', () => {
|
||||||
|
alert('我触发拉~');
|
||||||
|
}, false)
|
||||||
|
`
|
||||||
|
|
||||||
// 异步引入
|
// 异步引入
|
||||||
const importTemplateString = `
|
const importTemplateString = `
|
||||||
await import('https://lf3-cdn-tos.bytecdntp.com/cdn/expire-1-M/lodash.js/4.17.21/lodash.js')
|
await import('https://lf3-cdn-tos.bytecdntp.com/cdn/expire-1-M/lodash.js/4.17.21/lodash.js')
|
||||||
@ -162,6 +170,10 @@ export const templateList = [
|
|||||||
description: '获取远程 CDN 库',
|
description: '获取远程 CDN 库',
|
||||||
code: importTemplateString
|
code: importTemplateString
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
description: '设置文字组件点击事件',
|
||||||
|
code: addClickTemplateString
|
||||||
|
},
|
||||||
{
|
{
|
||||||
description: '修改图表 tooltip',
|
description: '修改图表 tooltip',
|
||||||
code: tooltipTemplateString
|
code: tooltipTemplateString
|
||||||
|
@ -7,7 +7,9 @@
|
|||||||
</n-text>
|
</n-text>
|
||||||
<n-collapse-item title="基础事件配置" name="1">
|
<n-collapse-item title="基础事件配置" name="1">
|
||||||
<div class="go-event">
|
<div class="go-event">
|
||||||
<n-text depth="3"> 【单击、双击、移入、移出】尽情期待! </n-text>
|
<n-text depth="3">【单击、双击、移入、移出】在开发中,即将上线!</n-text>
|
||||||
|
<br/>
|
||||||
|
<n-text depth="3">(备注:高级事件模块可自行实现上述功能)</n-text>
|
||||||
</div>
|
</div>
|
||||||
</n-collapse-item>
|
</n-collapse-item>
|
||||||
<chart-event-monaco-editor></chart-event-monaco-editor>
|
<chart-event-monaco-editor></chart-event-monaco-editor>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user