2021-12-07 15:59:29 +01:00
import { ZeroPlugin , ZeroPluginOptions } from '../../core' ;
import { defineAsyncComponent } from 'vue' ;
2021-12-09 00:01:30 +01:00
import { test } from '../../editor/tests/types' ;
import { proxy , fieldTypes } from '../../editor/editorFieldProxy' ;
import { TextFieldOptions } from 'zero/editor' ;
2021-12-07 15:59:29 +01:00
const Picker = () => import ( './ui-countrypicker.vue' );
const Page = () => import ( './_page.vue' );
export default {
name : "zero.countries" ,
install ( app : ZeroPluginOptions )
{
app . vue . component ( 'ui-countrypicker' , defineAsyncComponent ( Picker ));
app . route ({ path : '/countries' , component : Page });
2021-12-07 15:59:37 +01:00
2021-12-09 00:01:30 +01:00
//app.editor('country', null);
//app.editorField('')
test ();
fieldTypes . number = ( maxLength? : number , placeholder? : string | Function ) => console . log ( `number() called with maxLength: ${ maxLength } , placeholder: ${ placeholder } ` );
proxy . number ({ maxLength : 17 , placeholder : 'Enter your number...' });
2021-12-07 15:59:29 +01:00
}
} as ZeroPlugin ;