0.3.3 • Published 3 years ago
ive-vue v0.3.3
ive-vue
Project setup
yarn install ive-vue --save
use in html
<script src="vue3_path/vue.runtime.global.js"></script>
<script src="your_path/iveVue.umd.js"></script>
<script>
iveVue.IveModal.show({
title: "自定义模板",
content: '{{label}}<input v-modal="name">',
data: { name: "我和content模板中的值关联", label: 'exaxple'},
footer: [
{
type: 'delete',
text: '取消',
onClick: (data, close) => {
console.log(data);
alert("你取消了");
close();
},
},
{
type: 'primary',
text: '确定',
onClick: (data, close) => {
console.log(data);
if (data.name.length > 18) {
close();
} else {
alert("name的长度小于18");
}
},
},
]
});
</script>
use in es2015
Global introduction
import { createApp } from 'vue';
import IveVue from 'ive-vue';
const app = createApp(App);
app.use(IveVue);
On-demand introduction
import { IveModal } from 'ive-vue';
IveModal.show({
title: "modalFormTemplate默认模板",
content: IveModal.modalFormTemplate,
data: { name: "name", label: 'modalFormTemplate的label'},
footer: [
{
onClick: (data, close) => {
console.log(data);
if (data.name.length > 10) {
close();
} else {
alert("name的长度小于10");
}
},
},
]
});
More examples
For more examples, please visit
https://github.com/xiaohouzimiantuo/ive-vue-example
0.3.0
3 years ago
0.3.2
3 years ago
0.3.1
3 years ago
0.3.3
3 years ago
0.2.2-bata
3 years ago
0.2.1-bata1
3 years ago
0.2.0-bata
3 years ago
0.2.1-bata
3 years ago
0.2.0-bata1
3 years ago
0.1.7-bata
3 years ago
0.1.6-bata
3 years ago
0.1.5-bata
3 years ago
0.1.4-bata
3 years ago
0.1.3-vue3-bata
3 years ago
0.1.2-vue3-bata
3 years ago
0.1.1-bata
3 years ago
0.1.0-bata
3 years ago