vue+element-ui+vue-ele-editable实现多种元素变成可编辑模式效果代码
代码语言:html
所属分类:表单美化
代码描述:vue+element-ui+vue-ele-editable实现多种元素变成可编辑模式效果代码,支持单行多行文本、时间选择、颜色、多选、单选、开关、上传图片等类型。
代码标签: vue element-ui vue-ele-editable 元 编辑 模式
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="en" >
<head>
<meta charset="UTF-8">
<link type="text/css" rel="stylesheet" href="//repo.bfw.wiki/bfwrepo/css/element-ui.2.15.1.css">
</head>
<body translate="no" >
<div id="app">
<div style="margin: 100px auto;max-width: 1200px;">
<h1 style="text-align: center">vue-ele-editable</h1>
<h2>类型演示:</h2>
<el-table
:data="tableData"
border
stripe
>
<el-table-column
label="类型"
prop="type"
width="160"
></el-table-column>
<el-table-column
label="含义"
prop="desc"
width="400"
></el-table-column>
<el-table-column
label="演示(popover模式)"
prop="popover"
>
<template slot-scope="scope">
<ele-editable
:custom-attrs="scope.row.popover.customAttrs"
:field="scope.row.type"
:isNoWrapper="scope.row.popover.isNoWrapper"
:options="scope.row.popover.options"
:request-fn="handleChange"
:title="scope.row.type"
:type="scope.row.type"
v-model="scope.row.popover.data"
/>
</template>
</el-table-column>
<el-table-column
label="演示(inline模式)"
prop="inline"
>
<template slot-scope="scope">
<ele-editable
:custom-attrs="scope.row.inline.customAttrs"
:field="scope.row.type"
:inline="true"
:isNoWrapper="scope.row.inline.isNoWrapper"
:options="scope.row.inline.options"
:request-fn="handleChange"
:title="scope.row.type"
:type="scope.row.type"
v-model="scope.row.inline.data"
/>
</template>
</el-table-column>
</el-table>
<h2>案.........完整代码请登录后点击上方下载按钮下载查看
















网友评论0