element-ui#Input JavaScript Examples
The following examples show how to use
element-ui#Input.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: index.js From ffexplorer with MIT License | 6 votes |
document.addEventListener('DOMContentLoaded', () => {
__webpack_public_path__ = FF_EXPLORER_DATA.path.root + 'administrator/components/com_ffexplorer/assets/explorer/dist/';
locale.use(lang)
Vue.use(Select);
Vue.use(Option);
Vue.use(Input);
Vue.use(Button);
Vue.use(Dialog);
Vue.use(Upload);
Vue.use(Pagination);
Vue.use(Loading.directive);
Vue.prototype.$loading = Loading.service;
Vue.prototype.$msgbox = MessageBox;
Vue.prototype.$alert = MessageBox.alert;
Vue.prototype.$confirm = MessageBox.confirm;
Vue.prototype.$prompt = MessageBox.prompt;
Vue.prototype.$message = Message;
Vue.prototype.$t = function(text) {
return translate(text);
}
Vue.prototype.$ajax = function(options, method) {
const $ = jQuery;
const {path, params} = FF_EXPLORER_DATA;
const url = path.ajax;
return new Promise((resolve, reject) => {
$.ajax({
method: method ? method : 'post',
url: url,
dataType: 'json',
data: $.extend({}, params, options),
})
.done(response => {
resolve(response);
})
.fail(error => {
reject(error);
});
});
}
new Vue({
store,
render: h => h(App)
}).$mount('#explorer-app');
});
Example #2
Source File: globalComponents.js From akaunting with GNU General Public License v3.0 | 6 votes |
GlobalComponents = { install(Vue) { Vue.component(Badge.name, Badge); Vue.component(BaseAlert.name, BaseAlert); Vue.component(BaseButton.name, BaseButton); Vue.component(BaseCheckbox.name, BaseCheckbox); Vue.component(BaseHeader.name, BaseHeader); Vue.component(BaseInput.name, BaseInput); Vue.component(BaseDropdown.name, BaseDropdown); Vue.component(BaseNav.name, BaseNav); Vue.component(BasePagination.name, BasePagination); Vue.component(BaseProgress.name, BaseProgress); Vue.component(BaseRadio.name, BaseRadio); Vue.component(BaseSwitch.name, BaseSwitch); Vue.component(Card.name, Card); Vue.component(Modal.name, Modal); Vue.component(StatsCard.name, StatsCard); Vue.component(RouteBreadcrumb.name, RouteBreadcrumb); Vue.component(Input.name, Input); Vue.use(Tooltip); Vue.use(Popover); } }
Example #3
Source File: element.js From vue-shop with MIT License | 5 votes |
Vue.use(Input)
Example #4
Source File: element.js From wl-admin with MIT License | 5 votes |
Vue.use(Input);
Example #5
Source File: element.js From wl with Apache License 2.0 | 5 votes |
Vue.use(Input)