mirror of
https://github.com/dataease/dataease.git
synced 2025-02-28 07:05:48 +08:00
43 lines
910 B
JavaScript
43 lines
910 B
JavaScript
![]() |
import { WidgetService } from '../service/WidgetService'
|
||
|
const defaultOptions = {
|
||
|
name: 'buttonSureWidget',
|
||
|
icon: null,
|
||
|
label: '确定',
|
||
|
style: {
|
||
|
width: 100,
|
||
|
height: 34,
|
||
|
borderWidth: '',
|
||
|
borderColor: '',
|
||
|
borderRadius: '',
|
||
|
fontSize: 14,
|
||
|
fontWeight: 500,
|
||
|
lineHeight: '',
|
||
|
letterSpacing: 0,
|
||
|
textAlign: '',
|
||
|
color: '',
|
||
|
backgroundColor: ''
|
||
|
},
|
||
|
propValue: '按钮',
|
||
|
component: 'v-button'
|
||
|
}
|
||
|
|
||
|
class ButtonSureServiceImpl extends WidgetService {
|
||
|
constructor(options) {
|
||
|
Object.assign(options, defaultOptions)
|
||
|
super(options)
|
||
|
}
|
||
|
|
||
|
initWidget() {
|
||
|
// console.log('this is first initWidget')
|
||
|
}
|
||
|
toDrawWidget() {
|
||
|
// console.log('this is first toDrawWidget')
|
||
|
}
|
||
|
// 移动到画布之前回掉
|
||
|
beforeToDraw() {
|
||
|
|
||
|
}
|
||
|
}
|
||
|
const buttonSureServiceImpl = new ButtonSureServiceImpl({ name: 'buttonSureWidget' })
|
||
|
export default buttonSureServiceImpl
|