dataease/frontend/src/components/widget/serviceImpl/ButtonSureServiceImpl.js

51 lines
1014 B
JavaScript
Raw Normal View History

2021-03-30 19:01:46 +08:00
import { WidgetService } from '../service/WidgetService'
2021-04-19 16:50:31 +08:00
const leftPanel = {
2021-04-01 13:33:40 +08:00
icon: 'iconfont icon-chaxunsousuo',
2021-03-30 19:01:46 +08:00
label: '确定',
2021-04-19 16:50:31 +08:00
defaultClass: 'time-filter'
}
const drawPanel = {
type: 'custom',
2021-03-30 19:01:46 +08:00
style: {
2021-04-19 16:50:31 +08:00
width: 300,
2021-06-04 14:43:05 +08:00
height: 47,
2021-03-30 19:01:46 +08:00
fontSize: 14,
fontWeight: 500,
lineHeight: '',
letterSpacing: 0,
textAlign: '',
2021-04-19 16:50:31 +08:00
color: ''
2021-03-30 19:01:46 +08:00
},
2021-03-31 18:23:43 +08:00
options: {
attrs: {
type: 'primary',
round: true
},
value: '测试按钮'
2021-04-19 16:50:31 +08:00
},
component: 'de-button'
2021-03-30 19:01:46 +08:00
}
class ButtonSureServiceImpl extends WidgetService {
2021-04-19 16:50:31 +08:00
constructor(options = {}) {
Object.assign(options, { name: 'buttonSureWidget' })
2021-03-30 19:01:46 +08:00
super(options)
2021-04-19 16:50:31 +08:00
this.filterDialog = false
this.showSwitch = false
2021-03-30 19:01:46 +08:00
}
2021-04-19 16:50:31 +08:00
initLeftPanel() {
const value = JSON.parse(JSON.stringify(leftPanel))
return value
2021-03-30 19:01:46 +08:00
}
2021-04-19 16:50:31 +08:00
initDrawPanel() {
const value = JSON.parse(JSON.stringify(drawPanel))
return value
2021-03-30 19:01:46 +08:00
}
}
2021-04-19 16:50:31 +08:00
const buttonSureServiceImpl = new ButtonSureServiceImpl()
2021-03-30 19:01:46 +08:00
export default buttonSureServiceImpl