1 Star 1 Fork 1

SyncGithub/xForm

加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
bootstrap.html 1.39 KB
一键复制 编辑 原始数据 按行查看 历史
dongls 提交于 2021-10-25 18:58 +08:00 . feat: 使用expose暴露组件方法
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>xform bootstrap example</title>
<!-- bootstrap -->
<link rel="stylesheet" href="/libs/bootstrap/bootstrap.min.css" />
<script src="/libs/bootstrap/jquery.slim.min.js"></script>
<script src="/libs/bootstrap/popper.min.js"></script>
<script src="/libs/bootstrap/bootstrap.min.js"></script>
<!-- vue3.x -->
<script src="https://unpkg.com/vue@3.2.1/dist/vue.global.prod.js"></script>
<!-- xform -->
<link href="/example/packages/core/dist/index.css" rel="stylesheet">
<script src="/example/packages/core/dist/index.js"></script>
<!-- xform.bootstrap -->
<link href="/example/packages/bootstrap/dist/index.css" rel="stylesheet">
<script src="/example/packages/bootstrap/dist/index.js"></script>
</head>
<body>
<div id="app" style="height: 100vh;"></div>
<script type="text/x-template" id="template">
<xform-designer v-model:schema="schema"></xform-designer>
</script>
<script>
const App = {
template: '#template',
setup(){
return {
schema: XForm.createSchemaRef()
}
}
}
const option = {
preset: XForm.bootstrap
}
const app = Vue.createApp(App)
app.use(XForm, option)
app.mount('#app')
</script>
</body>
</html>
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
TypeScript
1
https://gitee.com/sync-github/xForm.git
git@gitee.com:sync-github/xForm.git
sync-github
xForm
xForm
master

搜索帮助