element-ui#Steps JavaScript Examples
The following examples show how to use
element-ui#Steps.
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: company.js From akaunting with GNU General Public License v3.0 | 6 votes |
app = new Vue({
el: '#app',
mixins: [
Global
],
components: {
[Step.name]: Step,
[Steps.name]: Steps,
},
data: function () {
return {
form: new Form('company'),
active: 0
}
},
methods: {
}
})
Example #2
Source File: finish.js From akaunting with GNU General Public License v3.0 | 6 votes |
app = new Vue({
el: '#app',
mixins: [
Global
],
components: {
[Step.name]: Step,
[Steps.name]: Steps,
},
data: function () {
return {
active: 3,
}
},
methods: {
}
})
Example #3
Source File: element.js From vue-shop with MIT License | 5 votes |
Vue.use(Steps)
Example #4
Source File: company.js From akaunting with GNU General Public License v3.0 | 5 votes |
// plugin setup
Vue.use(DashboardPlugin, Step, Steps);
Example #5
Source File: currencies.js From akaunting with GNU General Public License v3.0 | 5 votes |
// plugin setup
Vue.use(DashboardPlugin, Step, Steps);
Example #6
Source File: finish.js From akaunting with GNU General Public License v3.0 | 5 votes |
// plugin setup
Vue.use(DashboardPlugin, Step, Steps);
Example #7
Source File: taxes.js From akaunting with GNU General Public License v3.0 | 5 votes |
app = new Vue({
el: '#app',
mixins: [
Global
],
components: {
[Step.name]: Step,
[Steps.name]: Steps,
},
data: function () {
return {
form: new Form('tax'),
active: 2,
bulk_action: new BulkAction(url + '/settings/taxes'),
show: false,
tax: {
name: '',
code: '',
type: 'normal',
enabled: 1
},
submit_function: ''
}
},
methods: {
onAddTax() {
this.submit_function = 'onStoreTax';
this.form.method = 'post';
this.form.action = url + '/wizard/taxes';
this.form.name = '';
this.form.rate = '';
this.form.type = 'normal';
this.form.enabled = 1;
this.show = true;
},
onEditTax(tax_id) {
this.submit_function = 'onUpdateTax';
this.form.method = 'patch';
this.form.action = url + '/wizard/taxes/' + tax_id;
taxes.forEach(tax => {
if (tax.id == tax_id) {
this.form.name = tax.name;
this.form.rate = tax.rate;
this.form.type = tax.type;
this.form.enabled = tax.enabled;
}
});
this.show = true;
},
onSubmit() {
this.form.oldSubmit();
},
}
})
Example #8
Source File: taxes.js From akaunting with GNU General Public License v3.0 | 5 votes |
// plugin setup
Vue.use(DashboardPlugin, Step, Steps);
Example #9
Source File: currencies.js From akaunting with GNU General Public License v3.0 | 4 votes |
app = new Vue({
el: '#app',
mixins: [
Global
],
components: {
[Step.name]: Step,
[Steps.name]: Steps,
},
data: function () {
return {
form: new Form('currency'),
active: 1,
bulk_action: new BulkAction(url + '/settings/currencies'),
show: false,
currency: {
name: '',
code: '',
rate: '1',
enabled: 1
},
submit_function: '',
}
},
methods: {
onAddCurrency() {
this.submit_function = 'onStoreCurrency';
this.form.method = 'post';
this.form.action = url + '/wizard/currencies';
this.form.name = '';
this.form.code = '';
this.form.rate = '';
this.form.enabled = 1;
this.form.precision = '';
this.form.symbol = '';
this.form.symbol_first = '';
this.form.decimal_mark = '';
this.form.thousands_separator = '';
this.show = true;
},
onEditCurrency(currency_id) {
this.submit_function = 'onUpdateCurrency';
this.form.method = 'patch';
this.form.action = url + '/wizard/currencies/' + currency_id;
currencies.forEach(currency => {
if (currency.id == currency_id) {
this.form.name = currency.name;
this.form.code = currency.code;
this.form.rate = currency.rate;
this.form.enabled = currency.enabled;
this.form.precision = currency.precision;
this.form.symbol = currency.symbol;
this.form.symbol_first = currency.symbol_first;
this.form.decimal_mark = currency.decimal_mark;
this.form.thousands_separator = currency.thousands_separator;
}
});
this.show = true;
},
onChangeCode(code) {
axios.get(url + '/settings/currencies/config', {
params: {
code: code
}
})
.then(response => {
this.form.rate = response.data.rate;
this.form.precision = response.data.precision;
this.form.symbol = response.data.symbol;
this.form.symbol_first = response.data.symbol_first;
this.form.decimal_mark = response.data.decimal_mark;
this.form.thousands_separator = response.data.thousands_separator;
})
.catch(error => {
});
},
onSubmit() {
this.form.oldSubmit();
},
}
})