lint code
This commit is contained in:
parent
3560fcacf9
commit
94a3d7be7e
|
@ -22,6 +22,7 @@ module.exports = {
|
||||||
}
|
}
|
||||||
}],
|
}],
|
||||||
"vue/name-property-casing": ["error", "PascalCase"],
|
"vue/name-property-casing": ["error", "PascalCase"],
|
||||||
|
"vue/no-v-html": "off",
|
||||||
'accessor-pairs': 2,
|
'accessor-pairs': 2,
|
||||||
'arrow-spacing': [2, {
|
'arrow-spacing': [2, {
|
||||||
'before': true,
|
'before': true,
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
<template>
|
<template>
|
||||||
<div :class="className" :id="id" :style="{height:height,width:width}"/>
|
<div :id="id" :class="className" :style="{height:height,width:width}" />
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
<template>
|
<template>
|
||||||
<div :class="className" :id="id" :style="{height:height,width:width}"/>
|
<div :id="id" :class="className" :style="{height:height,width:width}" />
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
<template>
|
<template>
|
||||||
<div :class="className" :id="id" :style="{height:height,width:width}"/>
|
<div :id="id" :class="className" :style="{height:height,width:width}" />
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
|
|
@ -4,7 +4,9 @@
|
||||||
<h3>{{ list1Title }}</h3>
|
<h3>{{ list1Title }}</h3>
|
||||||
<draggable :list="list1" :options="{group:'article'}" class="dragArea">
|
<draggable :list="list1" :options="{group:'article'}" class="dragArea">
|
||||||
<div v-for="element in list1" :key="element.id" class="list-complete-item">
|
<div v-for="element in list1" :key="element.id" class="list-complete-item">
|
||||||
<div class="list-complete-item-handle">{{ element.id }}[{{ element.author }}] {{ element.title }}</div>
|
<div class="list-complete-item-handle">
|
||||||
|
{{ element.id }}[{{ element.author }}] {{ element.title }}
|
||||||
|
</div>
|
||||||
<div style="position:absolute;right:0px;">
|
<div style="position:absolute;right:0px;">
|
||||||
<span style="float: right ;margin-top: -20px;margin-right:5px;" @click="deleteEle(element)">
|
<span style="float: right ;margin-top: -20px;margin-right:5px;" @click="deleteEle(element)">
|
||||||
<i style="color:#ff4949" class="el-icon-delete" />
|
<i style="color:#ff4949" class="el-icon-delete" />
|
||||||
|
@ -17,7 +19,9 @@
|
||||||
<h3>{{ list2Title }}</h3>
|
<h3>{{ list2Title }}</h3>
|
||||||
<draggable :list="list2" :options="{group:'article'}" class="dragArea">
|
<draggable :list="list2" :options="{group:'article'}" class="dragArea">
|
||||||
<div v-for="element in list2" :key="element.id" class="list-complete-item">
|
<div v-for="element in list2" :key="element.id" class="list-complete-item">
|
||||||
<div class="list-complete-item-handle2" @click="pushEle(element)">{{ element.id }} [{{ element.author }}] {{ element.title }}</div>
|
<div class="list-complete-item-handle2" @click="pushEle(element)">
|
||||||
|
{{ element.id }} [{{ element.author }}] {{ element.title }}
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</draggable>
|
</draggable>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
<template>
|
<template>
|
||||||
<div :ref="id" :action="url" :id="id" class="dropzone">
|
<div :id="id" :ref="id" :action="url" class="dropzone">
|
||||||
<input type="file" name="file">
|
<input type="file" name="file">
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
|
@ -12,17 +12,23 @@
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<div>
|
<div>
|
||||||
<span class="message-title">Msg:</span>
|
<span class="message-title">Msg:</span>
|
||||||
<el-tag type="danger">{{ scope.row.err.message }}</el-tag>
|
<el-tag type="danger">
|
||||||
|
{{ scope.row.err.message }}
|
||||||
|
</el-tag>
|
||||||
</div>
|
</div>
|
||||||
<br>
|
<br>
|
||||||
<div>
|
<div>
|
||||||
<span class="message-title" style="padding-right: 10px;">Info: </span>
|
<span class="message-title" style="padding-right: 10px;">Info: </span>
|
||||||
<el-tag type="warning">{{ scope.row.vm.$vnode.tag }} error in {{ scope.row.info }}</el-tag>
|
<el-tag type="warning">
|
||||||
|
{{ scope.row.vm.$vnode.tag }} error in {{ scope.row.info }}
|
||||||
|
</el-tag>
|
||||||
</div>
|
</div>
|
||||||
<br>
|
<br>
|
||||||
<div>
|
<div>
|
||||||
<span class="message-title" style="padding-right: 16px;">Url: </span>
|
<span class="message-title" style="padding-right: 16px;">Url: </span>
|
||||||
<el-tag type="success">{{ scope.row.url }}</el-tag>
|
<el-tag type="success">
|
||||||
|
{{ scope.row.url }}
|
||||||
|
</el-tag>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
|
@ -33,7 +39,6 @@
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|
|
@ -5,17 +5,20 @@
|
||||||
height="80"
|
height="80"
|
||||||
viewBox="0 0 250 250"
|
viewBox="0 0 250 250"
|
||||||
style="fill:#40c9c6; color:#fff;"
|
style="fill:#40c9c6; color:#fff;"
|
||||||
aria-hidden="true">
|
aria-hidden="true"
|
||||||
|
>
|
||||||
<path d="M0,0 L115,115 L130,115 L142,142 L250,250 L250,0 Z" />
|
<path d="M0,0 L115,115 L130,115 L142,142 L250,250 L250,0 Z" />
|
||||||
<path
|
<path
|
||||||
d="M128.3,109.0 C113.8,99.7 119.0,89.6 119.0,89.6 C122.0,82.7 120.5,78.6 120.5,78.6 C119.2,72.0 123.4,76.3 123.4,76.3 C127.3,80.9 125.5,87.3 125.5,87.3 C122.9,97.6 130.6,101.9 134.4,103.2"
|
d="M128.3,109.0 C113.8,99.7 119.0,89.6 119.0,89.6 C122.0,82.7 120.5,78.6 120.5,78.6 C119.2,72.0 123.4,76.3 123.4,76.3 C127.3,80.9 125.5,87.3 125.5,87.3 C122.9,97.6 130.6,101.9 134.4,103.2"
|
||||||
fill="currentColor"
|
fill="currentColor"
|
||||||
style="transform-origin: 130px 106px;"
|
style="transform-origin: 130px 106px;"
|
||||||
class="octo-arm"/>
|
class="octo-arm"
|
||||||
|
/>
|
||||||
<path
|
<path
|
||||||
d="M115.0,115.0 C114.9,115.1 118.7,116.5 119.8,115.4 L133.7,101.6 C136.9,99.2 139.9,98.4 142.2,98.6 C133.8,88.0 127.5,74.4 143.8,58.0 C148.5,53.4 154.0,51.2 159.7,51.0 C160.3,49.4 163.2,43.6 171.4,40.1 C171.4,40.1 176.1,42.5 178.8,56.2 C183.1,58.6 187.2,61.8 190.9,65.4 C194.5,69.0 197.7,73.2 200.1,77.6 C213.8,80.2 216.3,84.9 216.3,84.9 C212.7,93.1 206.9,96.0 205.4,96.6 C205.1,102.4 203.0,107.8 198.3,112.5 C181.9,128.9 168.3,122.5 157.7,114.1 C157.9,116.9 156.7,120.9 152.7,124.9 L141.0,136.5 C139.8,137.7 141.6,141.9 141.8,141.8 Z"
|
d="M115.0,115.0 C114.9,115.1 118.7,116.5 119.8,115.4 L133.7,101.6 C136.9,99.2 139.9,98.4 142.2,98.6 C133.8,88.0 127.5,74.4 143.8,58.0 C148.5,53.4 154.0,51.2 159.7,51.0 C160.3,49.4 163.2,43.6 171.4,40.1 C171.4,40.1 176.1,42.5 178.8,56.2 C183.1,58.6 187.2,61.8 190.9,65.4 C194.5,69.0 197.7,73.2 200.1,77.6 C213.8,80.2 216.3,84.9 216.3,84.9 C212.7,93.1 206.9,96.0 205.4,96.6 C205.1,102.4 203.0,107.8 198.3,112.5 C181.9,128.9 168.3,122.5 157.7,114.1 C157.9,116.9 156.7,120.9 152.7,124.9 L141.0,136.5 C139.8,137.7 141.6,141.9 141.8,141.8 Z"
|
||||||
fill="currentColor"
|
fill="currentColor"
|
||||||
class="octo-body"/>
|
class="octo-body"
|
||||||
|
/>
|
||||||
</svg>
|
</svg>
|
||||||
</a>
|
</a>
|
||||||
</template>
|
</template>
|
||||||
|
|
|
@ -10,7 +10,8 @@
|
||||||
remote
|
remote
|
||||||
placeholder="Search"
|
placeholder="Search"
|
||||||
class="header-search-select"
|
class="header-search-select"
|
||||||
@change="change">
|
@change="change"
|
||||||
|
>
|
||||||
<el-option v-for="item in options" :key="item.path" :value="item" :label="item.title.join(' > ')" />
|
<el-option v-for="item in options" :key="item.path" :value="item" :label="item.title.join(' > ')" />
|
||||||
</el-select>
|
</el-select>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -48,7 +48,8 @@
|
||||||
@mousedown="imgStartMove"
|
@mousedown="imgStartMove"
|
||||||
@mousemove="imgMove"
|
@mousemove="imgMove"
|
||||||
@mouseup="createImg"
|
@mouseup="createImg"
|
||||||
@mouseout="createImg">
|
@mouseout="createImg"
|
||||||
|
>
|
||||||
<div :style="sourceImgShadeStyle" class="vicp-img-shade vicp-img-shade-1" />
|
<div :style="sourceImgShadeStyle" class="vicp-img-shade vicp-img-shade-1" />
|
||||||
<div :style="sourceImgShadeStyle" class="vicp-img-shade vicp-img-shade-2" />
|
<div :style="sourceImgShadeStyle" class="vicp-img-shade vicp-img-shade-2" />
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -6,7 +6,8 @@
|
||||||
<draggable
|
<draggable
|
||||||
:list="list"
|
:list="list"
|
||||||
:options="options"
|
:options="options"
|
||||||
class="board-column-content">
|
class="board-column-content"
|
||||||
|
>
|
||||||
<div v-for="element in list" :key="element.id" class="board-item">
|
<div v-for="element in list" :key="element.id" class="board-item">
|
||||||
{{ element.name }} {{ element.id }}
|
{{ element.name }} {{ element.id }}
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -4,9 +4,15 @@
|
||||||
<svg-icon class-name="international-icon" icon-class="language" />
|
<svg-icon class-name="international-icon" icon-class="language" />
|
||||||
</div>
|
</div>
|
||||||
<el-dropdown-menu slot="dropdown">
|
<el-dropdown-menu slot="dropdown">
|
||||||
<el-dropdown-item :disabled="language==='zh'" command="zh">中文</el-dropdown-item>
|
<el-dropdown-item :disabled="language==='zh'" command="zh">
|
||||||
<el-dropdown-item :disabled="language==='en'" command="en">English</el-dropdown-item>
|
中文
|
||||||
<el-dropdown-item :disabled="language==='es'" command="es">Español</el-dropdown-item>
|
</el-dropdown-item>
|
||||||
|
<el-dropdown-item :disabled="language==='en'" command="en">
|
||||||
|
English
|
||||||
|
</el-dropdown-item>
|
||||||
|
<el-dropdown-item :disabled="language==='es'" command="es">
|
||||||
|
Español
|
||||||
|
</el-dropdown-item>
|
||||||
</el-dropdown-menu>
|
</el-dropdown-menu>
|
||||||
</el-dropdown>
|
</el-dropdown>
|
||||||
</template>
|
</template>
|
||||||
|
|
|
@ -4,9 +4,9 @@
|
||||||
<i v-if="icon" :class="['el-icon-' + icon]" class="el-input__icon material-input__icon" />
|
<i v-if="icon" :class="['el-icon-' + icon]" class="el-input__icon material-input__icon" />
|
||||||
<input
|
<input
|
||||||
v-if="type === 'email'"
|
v-if="type === 'email'"
|
||||||
|
v-model="currentValue"
|
||||||
:name="name"
|
:name="name"
|
||||||
:placeholder="fillPlaceHolder"
|
:placeholder="fillPlaceHolder"
|
||||||
v-model="currentValue"
|
|
||||||
:readonly="readonly"
|
:readonly="readonly"
|
||||||
:disabled="disabled"
|
:disabled="disabled"
|
||||||
:autoComplete="autoComplete"
|
:autoComplete="autoComplete"
|
||||||
|
@ -15,12 +15,13 @@
|
||||||
class="material-input"
|
class="material-input"
|
||||||
@focus="handleMdFocus"
|
@focus="handleMdFocus"
|
||||||
@blur="handleMdBlur"
|
@blur="handleMdBlur"
|
||||||
@input="handleModelInput">
|
@input="handleModelInput"
|
||||||
|
>
|
||||||
<input
|
<input
|
||||||
v-if="type === 'url'"
|
v-if="type === 'url'"
|
||||||
|
v-model="currentValue"
|
||||||
:name="name"
|
:name="name"
|
||||||
:placeholder="fillPlaceHolder"
|
:placeholder="fillPlaceHolder"
|
||||||
v-model="currentValue"
|
|
||||||
:readonly="readonly"
|
:readonly="readonly"
|
||||||
:disabled="disabled"
|
:disabled="disabled"
|
||||||
:autoComplete="autoComplete"
|
:autoComplete="autoComplete"
|
||||||
|
@ -29,12 +30,13 @@
|
||||||
class="material-input"
|
class="material-input"
|
||||||
@focus="handleMdFocus"
|
@focus="handleMdFocus"
|
||||||
@blur="handleMdBlur"
|
@blur="handleMdBlur"
|
||||||
@input="handleModelInput">
|
@input="handleModelInput"
|
||||||
|
>
|
||||||
<input
|
<input
|
||||||
v-if="type === 'number'"
|
v-if="type === 'number'"
|
||||||
|
v-model="currentValue"
|
||||||
:name="name"
|
:name="name"
|
||||||
:placeholder="fillPlaceHolder"
|
:placeholder="fillPlaceHolder"
|
||||||
v-model="currentValue"
|
|
||||||
:step="step"
|
:step="step"
|
||||||
:readonly="readonly"
|
:readonly="readonly"
|
||||||
:disabled="disabled"
|
:disabled="disabled"
|
||||||
|
@ -48,12 +50,13 @@
|
||||||
class="material-input"
|
class="material-input"
|
||||||
@focus="handleMdFocus"
|
@focus="handleMdFocus"
|
||||||
@blur="handleMdBlur"
|
@blur="handleMdBlur"
|
||||||
@input="handleModelInput">
|
@input="handleModelInput"
|
||||||
|
>
|
||||||
<input
|
<input
|
||||||
v-if="type === 'password'"
|
v-if="type === 'password'"
|
||||||
|
v-model="currentValue"
|
||||||
:name="name"
|
:name="name"
|
||||||
:placeholder="fillPlaceHolder"
|
:placeholder="fillPlaceHolder"
|
||||||
v-model="currentValue"
|
|
||||||
:readonly="readonly"
|
:readonly="readonly"
|
||||||
:disabled="disabled"
|
:disabled="disabled"
|
||||||
:autoComplete="autoComplete"
|
:autoComplete="autoComplete"
|
||||||
|
@ -64,12 +67,13 @@
|
||||||
class="material-input"
|
class="material-input"
|
||||||
@focus="handleMdFocus"
|
@focus="handleMdFocus"
|
||||||
@blur="handleMdBlur"
|
@blur="handleMdBlur"
|
||||||
@input="handleModelInput">
|
@input="handleModelInput"
|
||||||
|
>
|
||||||
<input
|
<input
|
||||||
v-if="type === 'tel'"
|
v-if="type === 'tel'"
|
||||||
|
v-model="currentValue"
|
||||||
:name="name"
|
:name="name"
|
||||||
:placeholder="fillPlaceHolder"
|
:placeholder="fillPlaceHolder"
|
||||||
v-model="currentValue"
|
|
||||||
:readonly="readonly"
|
:readonly="readonly"
|
||||||
:disabled="disabled"
|
:disabled="disabled"
|
||||||
:autoComplete="autoComplete"
|
:autoComplete="autoComplete"
|
||||||
|
@ -78,12 +82,13 @@
|
||||||
class="material-input"
|
class="material-input"
|
||||||
@focus="handleMdFocus"
|
@focus="handleMdFocus"
|
||||||
@blur="handleMdBlur"
|
@blur="handleMdBlur"
|
||||||
@input="handleModelInput">
|
@input="handleModelInput"
|
||||||
|
>
|
||||||
<input
|
<input
|
||||||
v-if="type === 'text'"
|
v-if="type === 'text'"
|
||||||
|
v-model="currentValue"
|
||||||
:name="name"
|
:name="name"
|
||||||
:placeholder="fillPlaceHolder"
|
:placeholder="fillPlaceHolder"
|
||||||
v-model="currentValue"
|
|
||||||
:readonly="readonly"
|
:readonly="readonly"
|
||||||
:disabled="disabled"
|
:disabled="disabled"
|
||||||
:autoComplete="autoComplete"
|
:autoComplete="autoComplete"
|
||||||
|
@ -94,7 +99,8 @@
|
||||||
class="material-input"
|
class="material-input"
|
||||||
@focus="handleMdFocus"
|
@focus="handleMdFocus"
|
||||||
@blur="handleMdBlur"
|
@blur="handleMdBlur"
|
||||||
@input="handleModelInput">
|
@input="handleModelInput"
|
||||||
|
>
|
||||||
<span class="material-input-bar" />
|
<span class="material-input-bar" />
|
||||||
<label class="material-label">
|
<label class="material-label">
|
||||||
<slot />
|
<slot />
|
||||||
|
|
|
@ -9,7 +9,8 @@
|
||||||
:total="total"
|
:total="total"
|
||||||
v-bind="$attrs"
|
v-bind="$attrs"
|
||||||
@size-change="handleSizeChange"
|
@size-change="handleSizeChange"
|
||||||
@current-change="handleCurrentChange"/>
|
@current-change="handleCurrentChange"
|
||||||
|
/>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|
|
@ -4,8 +4,10 @@
|
||||||
<svg-icon class-name="size-icon" icon-class="size" />
|
<svg-icon class-name="size-icon" icon-class="size" />
|
||||||
</div>
|
</div>
|
||||||
<el-dropdown-menu slot="dropdown">
|
<el-dropdown-menu slot="dropdown">
|
||||||
<el-dropdown-item v-for="item of sizeOptions" :key="item.value" :disabled="size===item.value" :command="item.value">{{
|
<el-dropdown-item v-for="item of sizeOptions" :key="item.value" :disabled="size===item.value" :command="item.value">
|
||||||
item.label }}</el-dropdown-item>
|
{{
|
||||||
|
item.label }}
|
||||||
|
</el-dropdown-item>
|
||||||
</el-dropdown-menu>
|
</el-dropdown-menu>
|
||||||
</el-dropdown>
|
</el-dropdown>
|
||||||
</template>
|
</template>
|
||||||
|
|
|
@ -2,7 +2,8 @@
|
||||||
<el-color-picker
|
<el-color-picker
|
||||||
v-model="theme"
|
v-model="theme"
|
||||||
class="theme-picker"
|
class="theme-picker"
|
||||||
popper-class="theme-picker-dropdown"/>
|
popper-class="theme-picker-dropdown"
|
||||||
|
/>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="upload-container">
|
<div class="upload-container">
|
||||||
<el-button :style="{background:color,borderColor:color}" icon="el-icon-upload" size="mini" type="primary" @click=" dialogVisible=true">上传图片
|
<el-button :style="{background:color,borderColor:color}" icon="el-icon-upload" size="mini" type="primary" @click=" dialogVisible=true">
|
||||||
|
上传图片
|
||||||
</el-button>
|
</el-button>
|
||||||
<el-dialog :visible.sync="dialogVisible">
|
<el-dialog :visible.sync="dialogVisible">
|
||||||
<el-upload
|
<el-upload
|
||||||
|
@ -12,11 +13,18 @@
|
||||||
:before-upload="beforeUpload"
|
:before-upload="beforeUpload"
|
||||||
class="editor-slide-upload"
|
class="editor-slide-upload"
|
||||||
action="https://httpbin.org/post"
|
action="https://httpbin.org/post"
|
||||||
list-type="picture-card">
|
list-type="picture-card"
|
||||||
<el-button size="small" type="primary">点击上传</el-button>
|
>
|
||||||
|
<el-button size="small" type="primary">
|
||||||
|
点击上传
|
||||||
|
</el-button>
|
||||||
</el-upload>
|
</el-upload>
|
||||||
<el-button @click="dialogVisible = false">取 消</el-button>
|
<el-button @click="dialogVisible = false">
|
||||||
<el-button type="primary" @click="handleSubmit">确 定</el-button>
|
取 消
|
||||||
|
</el-button>
|
||||||
|
<el-button type="primary" @click="handleSubmit">
|
||||||
|
确 定
|
||||||
|
</el-button>
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
|
@ -4,11 +4,12 @@
|
||||||
<slot name="pre-column" />
|
<slot name="pre-column" />
|
||||||
<el-table-column
|
<el-table-column
|
||||||
v-for="item in columns"
|
v-for="item in columns"
|
||||||
:label="item.label"
|
|
||||||
:key="item.key"
|
:key="item.key"
|
||||||
|
:label="item.label"
|
||||||
:width="item.width"
|
:width="item.width"
|
||||||
:align="item.align||'center'"
|
:align="item.align||'center'"
|
||||||
:header-align="item.headerAlign">
|
:header-align="item.headerAlign"
|
||||||
|
>
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<slot :scope="scope" :name="item.key">
|
<slot :scope="scope" :name="item.key">
|
||||||
<template v-if="item.expand">
|
<template v-if="item.expand">
|
||||||
|
@ -21,15 +22,17 @@
|
||||||
<template v-if="item.checkbox">
|
<template v-if="item.checkbox">
|
||||||
<el-checkbox
|
<el-checkbox
|
||||||
v-if="scope.row[defaultChildren]&&scope.row[defaultChildren].length>0"
|
v-if="scope.row[defaultChildren]&&scope.row[defaultChildren].length>0"
|
||||||
|
v-model="scope.row._select"
|
||||||
:style="{'padding-left':+scope.row._level*indent + 'px'} "
|
:style="{'padding-left':+scope.row._level*indent + 'px'} "
|
||||||
:indeterminate="scope.row._select"
|
:indeterminate="scope.row._select"
|
||||||
v-model="scope.row._select"
|
@change="handleCheckAllChange(scope.row)"
|
||||||
@change="handleCheckAllChange(scope.row)" />
|
/>
|
||||||
<el-checkbox
|
<el-checkbox
|
||||||
v-else
|
v-else
|
||||||
:style="{'padding-left':+scope.row._level*indent + 'px'} "
|
|
||||||
v-model="scope.row._select"
|
v-model="scope.row._select"
|
||||||
@change="handleCheckAllChange(scope.row)" />
|
:style="{'padding-left':+scope.row._level*indent + 'px'} "
|
||||||
|
@change="handleCheckAllChange(scope.row)"
|
||||||
|
/>
|
||||||
</template>
|
</template>
|
||||||
{{ scope.row[item.key] }}
|
{{ scope.row[item.key] }}
|
||||||
</slot>
|
</slot>
|
||||||
|
|
|
@ -7,9 +7,12 @@
|
||||||
:on-success="handleImageSuccess"
|
:on-success="handleImageSuccess"
|
||||||
class="image-uploader"
|
class="image-uploader"
|
||||||
drag
|
drag
|
||||||
action="https://httpbin.org/post">
|
action="https://httpbin.org/post"
|
||||||
|
>
|
||||||
<i class="el-icon-upload" />
|
<i class="el-icon-upload" />
|
||||||
<div class="el-upload__text">将文件拖到此处,或<em>点击上传</em></div>
|
<div class="el-upload__text">
|
||||||
|
将文件拖到此处,或<em>点击上传</em>
|
||||||
|
</div>
|
||||||
</el-upload>
|
</el-upload>
|
||||||
<div class="image-preview">
|
<div class="image-preview">
|
||||||
<div v-show="imageUrl.length>1" class="image-preview-wrapper">
|
<div v-show="imageUrl.length>1" class="image-preview-wrapper">
|
||||||
|
|
|
@ -7,9 +7,12 @@
|
||||||
:on-success="handleImageSuccess"
|
:on-success="handleImageSuccess"
|
||||||
class="image-uploader"
|
class="image-uploader"
|
||||||
drag
|
drag
|
||||||
action="https://httpbin.org/post">
|
action="https://httpbin.org/post"
|
||||||
|
>
|
||||||
<i class="el-icon-upload" />
|
<i class="el-icon-upload" />
|
||||||
<div class="el-upload__text">Drag或<em>点击上传</em></div>
|
<div class="el-upload__text">
|
||||||
|
Drag或<em>点击上传</em>
|
||||||
|
</div>
|
||||||
</el-upload>
|
</el-upload>
|
||||||
<div v-show="imageUrl.length>0" class="image-preview">
|
<div v-show="imageUrl.length>0" class="image-preview">
|
||||||
<div v-show="imageUrl.length>1" class="image-preview-wrapper">
|
<div v-show="imageUrl.length>1" class="image-preview-wrapper">
|
||||||
|
|
|
@ -7,9 +7,12 @@
|
||||||
:on-success="handleImageSuccess"
|
:on-success="handleImageSuccess"
|
||||||
class="image-uploader"
|
class="image-uploader"
|
||||||
drag
|
drag
|
||||||
action="https://httpbin.org/post">
|
action="https://httpbin.org/post"
|
||||||
|
>
|
||||||
<i class="el-icon-upload" />
|
<i class="el-icon-upload" />
|
||||||
<div class="el-upload__text">将文件拖到此处,或<em>点击上传</em></div>
|
<div class="el-upload__text">
|
||||||
|
将文件拖到此处,或<em>点击上传</em>
|
||||||
|
</div>
|
||||||
</el-upload>
|
</el-upload>
|
||||||
<div class="image-preview image-app-preview">
|
<div class="image-preview image-app-preview">
|
||||||
<div v-show="imageUrl.length>1" class="image-preview-wrapper">
|
<div v-show="imageUrl.length>1" class="image-preview-wrapper">
|
||||||
|
|
|
@ -3,7 +3,9 @@
|
||||||
<input ref="excel-upload-input" class="excel-upload-input" type="file" accept=".xlsx, .xls" @change="handleClick">
|
<input ref="excel-upload-input" class="excel-upload-input" type="file" accept=".xlsx, .xls" @change="handleClick">
|
||||||
<div class="drop" @drop="handleDrop" @dragover="handleDragover" @dragenter="handleDragover">
|
<div class="drop" @drop="handleDrop" @dragover="handleDragover" @dragenter="handleDragover">
|
||||||
Drop excel file here or
|
Drop excel file here or
|
||||||
<el-button :loading="loading" style="margin-left:16px;" size="mini" type="primary" @click="handleUpload">Browse</el-button>
|
<el-button :loading="loading" style="margin-left:16px;" size="mini" type="primary" @click="handleUpload">
|
||||||
|
Browse
|
||||||
|
</el-button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
|
@ -3,11 +3,15 @@
|
||||||
<el-tabs v-model="activeName">
|
<el-tabs v-model="activeName">
|
||||||
<el-tab-pane label="use clipboard directly" name="directly">
|
<el-tab-pane label="use clipboard directly" name="directly">
|
||||||
<el-input v-model="inputData" placeholder="Please input" style="width:400px;max-width:100%;" />
|
<el-input v-model="inputData" placeholder="Please input" style="width:400px;max-width:100%;" />
|
||||||
<el-button type="primary" icon="document" @click="handleCopy(inputData,$event)">copy</el-button>
|
<el-button type="primary" icon="document" @click="handleCopy(inputData,$event)">
|
||||||
|
copy
|
||||||
|
</el-button>
|
||||||
</el-tab-pane>
|
</el-tab-pane>
|
||||||
<el-tab-pane label="use clipboard by v-directive" name="v-directive">
|
<el-tab-pane label="use clipboard by v-directive" name="v-directive">
|
||||||
<el-input v-model="inputData" placeholder="Please input" style="width:400px;max-width:100%;" />
|
<el-input v-model="inputData" placeholder="Please input" style="width:400px;max-width:100%;" />
|
||||||
<el-button v-clipboard:copy="inputData" v-clipboard:success="clipboardSuccess" type="primary" icon="document">copy</el-button>
|
<el-button v-clipboard:copy="inputData" v-clipboard:success="clipboardSuccess" type="primary" icon="document">
|
||||||
|
copy
|
||||||
|
</el-button>
|
||||||
</el-tab-pane>
|
</el-tab-pane>
|
||||||
</el-tabs>
|
</el-tabs>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -7,18 +7,20 @@
|
||||||
|
|
||||||
<pan-thumb :image="image" />
|
<pan-thumb :image="image" />
|
||||||
|
|
||||||
<el-button type="primary" icon="upload" style="position: absolute;bottom: 15px;margin-left: 40px;" @click="imagecropperShow=true">Change Avatar
|
<el-button type="primary" icon="upload" style="position: absolute;bottom: 15px;margin-left: 40px;" @click="imagecropperShow=true">
|
||||||
|
Change Avatar
|
||||||
</el-button>
|
</el-button>
|
||||||
|
|
||||||
<image-cropper
|
<image-cropper
|
||||||
v-show="imagecropperShow"
|
v-show="imagecropperShow"
|
||||||
|
:key="imagecropperKey"
|
||||||
:width="300"
|
:width="300"
|
||||||
:height="300"
|
:height="300"
|
||||||
:key="imagecropperKey"
|
|
||||||
url="https://httpbin.org/post"
|
url="https://httpbin.org/post"
|
||||||
lang-type="en"
|
lang-type="en"
|
||||||
@close="close"
|
@close="close"
|
||||||
@crop-upload-success="cropSuccess"/>
|
@crop-upload-success="cropSuccess"
|
||||||
|
/>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|
|
@ -13,7 +13,8 @@
|
||||||
:prefix="_prefix"
|
:prefix="_prefix"
|
||||||
:suffix="_suffix"
|
:suffix="_suffix"
|
||||||
:autoplay="false"
|
:autoplay="false"
|
||||||
class="example"/>
|
class="example"
|
||||||
|
/>
|
||||||
<div style="margin-left: 25%;margin-top: 40px;">
|
<div style="margin-left: 25%;margin-top: 40px;">
|
||||||
<label class="label" for="startValInput">startVal:
|
<label class="label" for="startValInput">startVal:
|
||||||
<input v-model.number="setStartVal" type="number" name="startValInput">
|
<input v-model.number="setStartVal" type="number" name="startValInput">
|
||||||
|
@ -24,8 +25,12 @@
|
||||||
<label class="label" for="durationInput">duration:
|
<label class="label" for="durationInput">duration:
|
||||||
<input v-model.number="setDuration" type="number" name="durationInput">
|
<input v-model.number="setDuration" type="number" name="durationInput">
|
||||||
</label>
|
</label>
|
||||||
<div class="startBtn example-btn" @click="start">开始</div>
|
<div class="startBtn example-btn" @click="start">
|
||||||
<div class="pause-resume-btn example-btn" @click="pauseResume">暂停/恢复</div>
|
开始
|
||||||
|
</div>
|
||||||
|
<div class="pause-resume-btn example-btn" @click="pauseResume">
|
||||||
|
暂停/恢复
|
||||||
|
</div>
|
||||||
<br>
|
<br>
|
||||||
<label class="label" for="decimalsInput">decimals:
|
<label class="label" for="decimalsInput">decimals:
|
||||||
<input v-model.number="setDecimals" type="number" name="decimalsInput">
|
<input v-model.number="setDecimals" type="number" name="decimalsInput">
|
||||||
|
|
|
@ -1,6 +1,8 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="components-container">
|
<div class="components-container">
|
||||||
<el-button type="primary" @click="dialogTableVisible = true">open a Drag Dialog</el-button>
|
<el-button type="primary" @click="dialogTableVisible = true">
|
||||||
|
open a Drag Dialog
|
||||||
|
</el-button>
|
||||||
<el-dialog v-el-drag-dialog :visible.sync="dialogTableVisible" title="Shipping address" @dragDialog="handleDrag">
|
<el-dialog v-el-drag-dialog :visible.sync="dialogTableVisible" title="Shipping address" @dragDialog="handleDrag">
|
||||||
<el-select ref="select" v-model="value" placeholder="请选择">
|
<el-select ref="select" v-model="value" placeholder="请选择">
|
||||||
<el-option v-for="item in options" :key="item.value" :label="item.label" :value="item.value" />
|
<el-option v-for="item in options" :key="item.value" :label="item.label" :value="item.value" />
|
||||||
|
|
|
@ -1,14 +1,14 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="components-container">
|
<div class="components-container">
|
||||||
|
|
||||||
<el-drag-select v-model="value" style="width:500px;" multiple placeholder="请选择">
|
<el-drag-select v-model="value" style="width:500px;" multiple placeholder="请选择">
|
||||||
<el-option v-for="item in options" :label="item.label" :value="item.value" :key="item.value" />
|
<el-option v-for="item in options" :key="item.value" :label="item.label" :value="item.value" />
|
||||||
</el-drag-select>
|
</el-drag-select>
|
||||||
|
|
||||||
<div style="margin-top:30px;">
|
<div style="margin-top:30px;">
|
||||||
<el-tag v-for="item of value" :key="item" style="margin-right:15px;">{{ item }}</el-tag>
|
<el-tag v-for="item of value" :key="item" style="margin-right:15px;">
|
||||||
|
{{ item }}
|
||||||
|
</el-tag>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="components-container">
|
<div class="components-container">
|
||||||
|
|
||||||
<code>Markdown is based on
|
<code>Markdown is based on
|
||||||
<a href="https://github.com/nhnent/tui.editor" target="_blank">tui.editor</a> ,Simply encapsulated in Vue.
|
<a href="https://github.com/nhnent/tui.editor" target="_blank">tui.editor</a> ,Simply encapsulated in Vue.
|
||||||
<a target="_blank" href="https://panjiachen.github.io/vue-element-admin-site/feature/component/markdown-editor.html">
|
<a target="_blank" href="https://panjiachen.github.io/vue-element-admin-site/feature/component/markdown-editor.html">
|
||||||
|
@ -8,17 +7,23 @@
|
||||||
</code>
|
</code>
|
||||||
|
|
||||||
<div class="editor-container">
|
<div class="editor-container">
|
||||||
<el-tag class="tag-title">Basic:</el-tag>
|
<el-tag class="tag-title">
|
||||||
|
Basic:
|
||||||
|
</el-tag>
|
||||||
<markdown-editor v-model="content" height="300px" />
|
<markdown-editor v-model="content" height="300px" />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="editor-container">
|
<div class="editor-container">
|
||||||
<el-tag class="tag-title">Markdown Mode:</el-tag>
|
<el-tag class="tag-title">
|
||||||
|
Markdown Mode:
|
||||||
|
</el-tag>
|
||||||
<markdown-editor ref="markdownEditor" v-model="content" :options="{hideModeSwitch:true,previewStyle:'tab'}" height="200px" />
|
<markdown-editor ref="markdownEditor" v-model="content" :options="{hideModeSwitch:true,previewStyle:'tab'}" height="200px" />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="editor-container">
|
<div class="editor-container">
|
||||||
<el-tag class="tag-title">Customize Toolbar:</el-tag>
|
<el-tag class="tag-title">
|
||||||
|
Customize Toolbar:
|
||||||
|
</el-tag>
|
||||||
<markdown-editor
|
<markdown-editor
|
||||||
ref="markdownEditor"
|
ref="markdownEditor"
|
||||||
v-model="content"
|
v-model="content"
|
||||||
|
@ -27,14 +32,17 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="editor-container">
|
<div class="editor-container">
|
||||||
<el-tag class="tag-title">I18n:</el-tag>
|
<el-tag class="tag-title">
|
||||||
|
I18n:
|
||||||
|
</el-tag>
|
||||||
<el-alert :closable="false" title="You can change the language of the admin system to see the effect" type="success" />
|
<el-alert :closable="false" title="You can change the language of the admin system to see the effect" type="success" />
|
||||||
<markdown-editor v-model="content" :language="language" height="300px" />
|
<markdown-editor v-model="content" :language="language" height="300px" />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<el-button style="margin-top:80px;" type="primary" icon="el-icon-document" @click="getHtml">Get HTML</el-button>
|
<el-button style="margin-top:80px;" type="primary" icon="el-icon-document" @click="getHtml">
|
||||||
|
Get HTML
|
||||||
|
</el-button>
|
||||||
<div v-html="html" />
|
<div v-html="html" />
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|
|
@ -7,22 +7,34 @@
|
||||||
</div>
|
</div>
|
||||||
<div style="margin-bottom:50px;">
|
<div style="margin-bottom:50px;">
|
||||||
<el-col :span="4" class="text-center">
|
<el-col :span="4" class="text-center">
|
||||||
<router-link class="pan-btn blue-btn" to="/documentation/index">Documentation</router-link>
|
<router-link class="pan-btn blue-btn" to="/documentation/index">
|
||||||
|
Documentation
|
||||||
|
</router-link>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="4" class="text-center">
|
<el-col :span="4" class="text-center">
|
||||||
<router-link class="pan-btn light-blue-btn" to="/icon/index">Icons</router-link>
|
<router-link class="pan-btn light-blue-btn" to="/icon/index">
|
||||||
|
Icons
|
||||||
|
</router-link>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="4" class="text-center">
|
<el-col :span="4" class="text-center">
|
||||||
<router-link class="pan-btn pink-btn" to="/excel/export-excel">Excel</router-link>
|
<router-link class="pan-btn pink-btn" to="/excel/export-excel">
|
||||||
|
Excel
|
||||||
|
</router-link>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="4" class="text-center">
|
<el-col :span="4" class="text-center">
|
||||||
<router-link class="pan-btn green-btn" to="/table/complex-table">Table</router-link>
|
<router-link class="pan-btn green-btn" to="/table/complex-table">
|
||||||
|
Table
|
||||||
|
</router-link>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="4" class="text-center">
|
<el-col :span="4" class="text-center">
|
||||||
<router-link class="pan-btn tiffany-btn" to="/example/create">Form</router-link>
|
<router-link class="pan-btn tiffany-btn" to="/example/create">
|
||||||
|
Form
|
||||||
|
</router-link>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="4" class="text-center">
|
<el-col :span="4" class="text-center">
|
||||||
<router-link class="pan-btn yellow-btn" to="/theme/index">Theme</router-link>
|
<router-link class="pan-btn yellow-btn" to="/theme/index">
|
||||||
|
Theme
|
||||||
|
</router-link>
|
||||||
</el-col>
|
</el-col>
|
||||||
</div>
|
</div>
|
||||||
</el-card>
|
</el-card>
|
||||||
|
@ -37,7 +49,9 @@
|
||||||
<div style="height:100px;">
|
<div style="height:100px;">
|
||||||
<el-form :model="demo" :rules="demoRules">
|
<el-form :model="demo" :rules="demoRules">
|
||||||
<el-form-item prop="title">
|
<el-form-item prop="title">
|
||||||
<md-input v-model="demo.title" icon="search" name="title" placeholder="输入标题">标题</md-input>
|
<md-input v-model="demo.title" icon="search" name="title" placeholder="输入标题">
|
||||||
|
标题
|
||||||
|
</md-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
</div>
|
</div>
|
||||||
|
@ -63,7 +77,9 @@
|
||||||
<span>水波纹 waves v-directive</span>
|
<span>水波纹 waves v-directive</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="component-item">
|
<div class="component-item">
|
||||||
<el-button v-waves type="primary">水波纹效果</el-button>
|
<el-button v-waves type="primary">
|
||||||
|
水波纹效果
|
||||||
|
</el-button>
|
||||||
</div>
|
</div>
|
||||||
</el-card>
|
</el-card>
|
||||||
</el-col>
|
</el-col>
|
||||||
|
@ -92,7 +108,6 @@
|
||||||
</el-card>
|
</el-card>
|
||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
</el-button>
|
</el-button>
|
||||||
<el-dropdown-menu slot="dropdown" class="no-border">
|
<el-dropdown-menu slot="dropdown" class="no-border">
|
||||||
<el-checkbox-group v-model="platforms" style="padding: 5px 15px;">
|
<el-checkbox-group v-model="platforms" style="padding: 5px 15px;">
|
||||||
<el-checkbox v-for="item in platformsOptions" :label="item.key" :key="item.key">
|
<el-checkbox v-for="item in platformsOptions" :key="item.key" :label="item.key">
|
||||||
{{ item.name }}
|
{{ item.name }}
|
||||||
</el-checkbox>
|
</el-checkbox>
|
||||||
</el-checkbox-group>
|
</el-checkbox-group>
|
||||||
|
@ -20,7 +20,9 @@
|
||||||
</el-button>
|
</el-button>
|
||||||
<el-dropdown-menu slot="dropdown" class="no-padding no-border" style="width:300px">
|
<el-dropdown-menu slot="dropdown" class="no-padding no-border" style="width:300px">
|
||||||
<el-input v-model="url" placeholder="Please enter the content">
|
<el-input v-model="url" placeholder="Please enter the content">
|
||||||
<template slot="prepend">Url</template>
|
<template slot="prepend">
|
||||||
|
Url
|
||||||
|
</template>
|
||||||
</el-input>
|
</el-input>
|
||||||
</el-dropdown-menu>
|
</el-dropdown-menu>
|
||||||
</el-dropdown>
|
</el-dropdown>
|
||||||
|
@ -29,7 +31,8 @@
|
||||||
<el-date-picker v-model="time" :picker-options="pickerOptions" type="datetime" format="yyyy-MM-dd HH:mm:ss" placeholder="Release time" />
|
<el-date-picker v-model="time" :picker-options="pickerOptions" type="datetime" format="yyyy-MM-dd HH:mm:ss" placeholder="Release time" />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<el-button style="margin-left: 10px;" type="success">publish
|
<el-button style="margin-left: 10px;" type="success">
|
||||||
|
publish
|
||||||
</el-button>
|
</el-button>
|
||||||
</sticky>
|
</sticky>
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
<a target="_blank" class="link-type" href="https://panjiachen.github.io/vue-element-admin-site/component/rich-editor.html"> {{ $t('components.documentation') }}</a>
|
<a target="_blank" class="link-type" href="https://panjiachen.github.io/vue-element-admin-site/component/rich-editor.html"> {{ $t('components.documentation') }}</a>
|
||||||
</code>
|
</code>
|
||||||
<div>
|
<div>
|
||||||
<tinymce :height="300" v-model="content"/>
|
<tinymce v-model="content" :height="300" />
|
||||||
</div>
|
</div>
|
||||||
<div class="editor-content" v-html="content" />
|
<div class="editor-content" v-html="content" />
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -6,7 +6,9 @@
|
||||||
<svg-icon icon-class="peoples" class-name="card-panel-icon" />
|
<svg-icon icon-class="peoples" class-name="card-panel-icon" />
|
||||||
</div>
|
</div>
|
||||||
<div class="card-panel-description">
|
<div class="card-panel-description">
|
||||||
<div class="card-panel-text">New Visits</div>
|
<div class="card-panel-text">
|
||||||
|
New Visits
|
||||||
|
</div>
|
||||||
<count-to :start-val="0" :end-val="102400" :duration="2600" class="card-panel-num" />
|
<count-to :start-val="0" :end-val="102400" :duration="2600" class="card-panel-num" />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -17,7 +19,9 @@
|
||||||
<svg-icon icon-class="message" class-name="card-panel-icon" />
|
<svg-icon icon-class="message" class-name="card-panel-icon" />
|
||||||
</div>
|
</div>
|
||||||
<div class="card-panel-description">
|
<div class="card-panel-description">
|
||||||
<div class="card-panel-text">Messages</div>
|
<div class="card-panel-text">
|
||||||
|
Messages
|
||||||
|
</div>
|
||||||
<count-to :start-val="0" :end-val="81212" :duration="3000" class="card-panel-num" />
|
<count-to :start-val="0" :end-val="81212" :duration="3000" class="card-panel-num" />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -28,7 +32,9 @@
|
||||||
<svg-icon icon-class="money" class-name="card-panel-icon" />
|
<svg-icon icon-class="money" class-name="card-panel-icon" />
|
||||||
</div>
|
</div>
|
||||||
<div class="card-panel-description">
|
<div class="card-panel-description">
|
||||||
<div class="card-panel-text">Purchases</div>
|
<div class="card-panel-text">
|
||||||
|
Purchases
|
||||||
|
</div>
|
||||||
<count-to :start-val="0" :end-val="9280" :duration="3200" class="card-panel-num" />
|
<count-to :start-val="0" :end-val="9280" :duration="3200" class="card-panel-num" />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -39,7 +45,9 @@
|
||||||
<svg-icon icon-class="shopping" class-name="card-panel-icon" />
|
<svg-icon icon-class="shopping" class-name="card-panel-icon" />
|
||||||
</div>
|
</div>
|
||||||
<div class="card-panel-description">
|
<div class="card-panel-description">
|
||||||
<div class="card-panel-text">Shoppings</div>
|
<div class="card-panel-text">
|
||||||
|
Shoppings
|
||||||
|
</div>
|
||||||
<count-to :start-val="0" :end-val="13600" :duration="3600" class="card-panel-num" />
|
<count-to :start-val="0" :end-val="13600" :duration="3600" class="card-panel-num" />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -5,18 +5,20 @@
|
||||||
:checked="todo.done"
|
:checked="todo.done"
|
||||||
class="toggle"
|
class="toggle"
|
||||||
type="checkbox"
|
type="checkbox"
|
||||||
@change="toggleTodo( todo)">
|
@change="toggleTodo( todo)"
|
||||||
|
>
|
||||||
<label @dblclick="editing = true" v-text="todo.text" />
|
<label @dblclick="editing = true" v-text="todo.text" />
|
||||||
<button class="destroy" @click="deleteTodo( todo )" />
|
<button class="destroy" @click="deleteTodo( todo )" />
|
||||||
</div>
|
</div>
|
||||||
<input
|
<input
|
||||||
v-focus="editing"
|
|
||||||
v-show="editing"
|
v-show="editing"
|
||||||
|
v-focus="editing"
|
||||||
:value="todo.text"
|
:value="todo.text"
|
||||||
class="edit"
|
class="edit"
|
||||||
@keyup.enter="doneEdit"
|
@keyup.enter="doneEdit"
|
||||||
@keyup.esc="cancelEdit"
|
@keyup.esc="cancelEdit"
|
||||||
@blur="doneEdit">
|
@blur="doneEdit"
|
||||||
|
>
|
||||||
</li>
|
</li>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|
|
@ -15,7 +15,8 @@
|
||||||
:todo="todo"
|
:todo="todo"
|
||||||
@toggleTodo="toggleTodo"
|
@toggleTodo="toggleTodo"
|
||||||
@editTodo="editTodo"
|
@editTodo="editTodo"
|
||||||
@deleteTodo="deleteTodo"/>
|
@deleteTodo="deleteTodo"
|
||||||
|
/>
|
||||||
</ul>
|
</ul>
|
||||||
</section>
|
</section>
|
||||||
<!-- footer -->
|
<!-- footer -->
|
||||||
|
|
|
@ -12,7 +12,9 @@
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="Status" width="100" align="center">
|
<el-table-column label="Status" width="100" align="center">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-tag :type="scope.row.status | statusFilter"> {{ scope.row.status }}</el-tag>
|
<el-tag :type="scope.row.status | statusFilter">
|
||||||
|
{{ scope.row.status }}
|
||||||
|
</el-tag>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="dashboard-editor-container">
|
<div class="dashboard-editor-container">
|
||||||
|
|
||||||
<github-corner style="position: absolute; top: 0px; border: 0; right: 0;" />
|
<github-corner style="position: absolute; top: 0px; border: 0; right: 0;" />
|
||||||
|
|
||||||
<panel-group @handleSetLineChartData="handleSetLineChartData" />
|
<panel-group @handleSetLineChartData="handleSetLineChartData" />
|
||||||
|
@ -38,7 +37,6 @@
|
||||||
<box-card />
|
<box-card />
|
||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,8 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="dashboard-editor-container">
|
<div class="dashboard-editor-container">
|
||||||
<div class=" clearfix">
|
<div class=" clearfix">
|
||||||
<pan-thumb :image="avatar" style="float: left"> Your roles:
|
<pan-thumb :image="avatar" style="float: left">
|
||||||
|
Your roles:
|
||||||
<span v-for="item in roles" :key="item" class="pan-info-roles">{{ item }}</span>
|
<span v-for="item in roles" :key="item" class="pan-info-roles">{{ item }}</span>
|
||||||
</pan-thumb>
|
</pan-thumb>
|
||||||
<github-corner style="position: absolute; top: 0px; border: 0; right: 0;" />
|
<github-corner style="position: absolute; top: 0px; border: 0; right: 0;" />
|
||||||
|
|
|
@ -1,18 +1,26 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="errPage-container">
|
<div class="errPage-container">
|
||||||
<el-button icon="arrow-left" class="pan-back-btn" @click="back">返回</el-button>
|
<el-button icon="arrow-left" class="pan-back-btn" @click="back">
|
||||||
|
返回
|
||||||
|
</el-button>
|
||||||
<el-row>
|
<el-row>
|
||||||
<el-col :span="12">
|
<el-col :span="12">
|
||||||
<h1 class="text-jumbo text-ginormous">Oops!</h1>
|
<h1 class="text-jumbo text-ginormous">
|
||||||
|
Oops!
|
||||||
|
</h1>
|
||||||
gif来源<a href="https://zh.airbnb.com/" target="_blank">airbnb</a> 页面
|
gif来源<a href="https://zh.airbnb.com/" target="_blank">airbnb</a> 页面
|
||||||
<h2>你没有权限去该页面</h2>
|
<h2>你没有权限去该页面</h2>
|
||||||
<h6>如有不满请联系你领导</h6>
|
<h6>如有不满请联系你领导</h6>
|
||||||
<ul class="list-unstyled">
|
<ul class="list-unstyled">
|
||||||
<li>或者你可以去:</li>
|
<li>或者你可以去:</li>
|
||||||
<li class="link-type">
|
<li class="link-type">
|
||||||
<router-link to="/dashboard">回首页</router-link>
|
<router-link to="/dashboard">
|
||||||
|
回首页
|
||||||
|
</router-link>
|
||||||
|
</li>
|
||||||
|
<li class="link-type">
|
||||||
|
<a href="https://www.taobao.com/">随便看看</a>
|
||||||
</li>
|
</li>
|
||||||
<li class="link-type"><a href="https://www.taobao.com/">随便看看</a></li>
|
|
||||||
<li><a href="#" @click.prevent="dialogVisible=true">点我看图</a></li>
|
<li><a href="#" @click.prevent="dialogVisible=true">点我看图</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</el-col>
|
</el-col>
|
||||||
|
|
|
@ -8,13 +8,22 @@
|
||||||
<img class="pic-404__child right" src="@/assets/404_images/404_cloud.png" alt="404">
|
<img class="pic-404__child right" src="@/assets/404_images/404_cloud.png" alt="404">
|
||||||
</div>
|
</div>
|
||||||
<div class="bullshit">
|
<div class="bullshit">
|
||||||
<div class="bullshit__oops">OOPS!</div>
|
<div class="bullshit__oops">
|
||||||
<div class="bullshit__info">版权所有
|
OOPS!
|
||||||
|
</div>
|
||||||
|
<div class="bullshit__info">
|
||||||
|
版权所有
|
||||||
<a class="link-type" href="https://wallstreetcn.com" target="_blank">华尔街见闻</a>
|
<a class="link-type" href="https://wallstreetcn.com" target="_blank">华尔街见闻</a>
|
||||||
</div>
|
</div>
|
||||||
<div class="bullshit__headline">{{ message }}</div>
|
<div class="bullshit__headline">
|
||||||
<div class="bullshit__info">请检查您输入的网址是否正确,请点击以下按钮返回主页或者发送错误报告</div>
|
{{ message }}
|
||||||
<router-link to="/" class="bullshit__return-home">返回首页</router-link>
|
</div>
|
||||||
|
<div class="bullshit__info">
|
||||||
|
请检查您输入的网址是否正确,请点击以下按钮返回主页或者发送错误报告
|
||||||
|
</div>
|
||||||
|
<router-link to="/" class="bullshit__return-home">
|
||||||
|
返回首页
|
||||||
|
</router-link>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -1,19 +1,20 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="createPost-container">
|
<div class="createPost-container">
|
||||||
<el-form ref="postForm" :model="postForm" :rules="rules" class="form-container">
|
<el-form ref="postForm" :model="postForm" :rules="rules" class="form-container">
|
||||||
|
|
||||||
<sticky :class-name="'sub-navbar '+postForm.status">
|
<sticky :class-name="'sub-navbar '+postForm.status">
|
||||||
<CommentDropdown v-model="postForm.comment_disabled" />
|
<CommentDropdown v-model="postForm.comment_disabled" />
|
||||||
<PlatformDropdown v-model="postForm.platforms" />
|
<PlatformDropdown v-model="postForm.platforms" />
|
||||||
<SourceUrlDropdown v-model="postForm.source_uri" />
|
<SourceUrlDropdown v-model="postForm.source_uri" />
|
||||||
<el-button v-loading="loading" style="margin-left: 10px;" type="success" @click="submitForm">发布
|
<el-button v-loading="loading" style="margin-left: 10px;" type="success" @click="submitForm">
|
||||||
|
发布
|
||||||
|
</el-button>
|
||||||
|
<el-button v-loading="loading" type="warning" @click="draftForm">
|
||||||
|
草稿
|
||||||
</el-button>
|
</el-button>
|
||||||
<el-button v-loading="loading" type="warning" @click="draftForm">草稿</el-button>
|
|
||||||
</sticky>
|
</sticky>
|
||||||
|
|
||||||
<div class="createPost-main-container">
|
<div class="createPost-main-container">
|
||||||
<el-row>
|
<el-row>
|
||||||
|
|
||||||
<Warning />
|
<Warning />
|
||||||
|
|
||||||
<el-col :span="24">
|
<el-col :span="24">
|
||||||
|
@ -47,7 +48,8 @@
|
||||||
:colors="['#99A9BF', '#F7BA2A', '#FF9900']"
|
:colors="['#99A9BF', '#F7BA2A', '#FF9900']"
|
||||||
:low-threshold="1"
|
:low-threshold="1"
|
||||||
:high-threshold="3"
|
:high-threshold="3"
|
||||||
style="margin-top:8px;"/>
|
style="margin-top:8px;"
|
||||||
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
|
@ -56,12 +58,12 @@
|
||||||
</el-row>
|
</el-row>
|
||||||
|
|
||||||
<el-form-item style="margin-bottom: 40px;" label-width="45px" label="摘要:">
|
<el-form-item style="margin-bottom: 40px;" label-width="45px" label="摘要:">
|
||||||
<el-input :rows="1" v-model="postForm.content_short" type="textarea" class="article-textarea" autosize placeholder="请输入内容"/>
|
<el-input v-model="postForm.content_short" :rows="1" type="textarea" class="article-textarea" autosize placeholder="请输入内容" />
|
||||||
<span v-show="contentShortLength" class="word-counter">{{ contentShortLength }}字</span>
|
<span v-show="contentShortLength" class="word-counter">{{ contentShortLength }}字</span>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
|
||||||
<el-form-item prop="content" style="margin-bottom: 30px;">
|
<el-form-item prop="content" style="margin-bottom: 30px;">
|
||||||
<Tinymce ref="editor" :height="400" v-model="postForm.content" />
|
<Tinymce ref="editor" v-model="postForm.content" :height="400" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
|
||||||
<el-form-item prop="image_uri" style="margin-bottom: 30px;">
|
<el-form-item prop="image_uri" style="margin-bottom: 30px;">
|
||||||
|
@ -69,7 +71,6 @@
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</div>
|
</div>
|
||||||
</el-form>
|
</el-form>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|
|
@ -1,13 +1,18 @@
|
||||||
<template>
|
<template>
|
||||||
<el-dropdown :show-timeout="100" trigger="click">
|
<el-dropdown :show-timeout="100" trigger="click">
|
||||||
<el-button plain>{{ !comment_disabled?'评论已打开':'评论已关闭' }}
|
<el-button plain>
|
||||||
|
{{ !comment_disabled?'评论已打开':'评论已关闭' }}
|
||||||
<i class="el-icon-caret-bottom el-icon--right" />
|
<i class="el-icon-caret-bottom el-icon--right" />
|
||||||
</el-button>
|
</el-button>
|
||||||
<el-dropdown-menu slot="dropdown" class="no-padding">
|
<el-dropdown-menu slot="dropdown" class="no-padding">
|
||||||
<el-dropdown-item>
|
<el-dropdown-item>
|
||||||
<el-radio-group v-model="comment_disabled" style="padding: 10px;">
|
<el-radio-group v-model="comment_disabled" style="padding: 10px;">
|
||||||
<el-radio :label="true">关闭评论</el-radio>
|
<el-radio :label="true">
|
||||||
<el-radio :label="false">打开评论</el-radio>
|
关闭评论
|
||||||
|
</el-radio>
|
||||||
|
<el-radio :label="false">
|
||||||
|
打开评论
|
||||||
|
</el-radio>
|
||||||
</el-radio-group>
|
</el-radio-group>
|
||||||
</el-dropdown-item>
|
</el-dropdown-item>
|
||||||
</el-dropdown-menu>
|
</el-dropdown-menu>
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
</el-button>
|
</el-button>
|
||||||
<el-dropdown-menu slot="dropdown" class="no-border">
|
<el-dropdown-menu slot="dropdown" class="no-border">
|
||||||
<el-checkbox-group v-model="platforms" style="padding: 5px 15px;">
|
<el-checkbox-group v-model="platforms" style="padding: 5px 15px;">
|
||||||
<el-checkbox v-for="item in platformsOptions" :label="item.key" :key="item.key">
|
<el-checkbox v-for="item in platformsOptions" :key="item.key" :label="item.key">
|
||||||
{{ item.name }}
|
{{ item.name }}
|
||||||
</el-checkbox>
|
</el-checkbox>
|
||||||
</el-checkbox-group>
|
</el-checkbox-group>
|
||||||
|
|
|
@ -7,7 +7,9 @@
|
||||||
<el-dropdown-menu slot="dropdown" class="no-padding no-border" style="width:400px">
|
<el-dropdown-menu slot="dropdown" class="no-padding no-border" style="width:400px">
|
||||||
<el-form-item label-width="0px" style="margin-bottom: 0px" prop="source_uri">
|
<el-form-item label-width="0px" style="margin-bottom: 0px" prop="source_uri">
|
||||||
<el-input v-model="source_uri" placeholder="请输入内容">
|
<el-input v-model="source_uri" placeholder="请输入内容">
|
||||||
<template slot="prepend">填写url</template>
|
<template slot="prepend">
|
||||||
|
填写url
|
||||||
|
</template>
|
||||||
</el-input>
|
</el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-dropdown-menu>
|
</el-dropdown-menu>
|
||||||
|
|
|
@ -4,7 +4,8 @@
|
||||||
的include,直接缓存所有页面。详情见
|
的include,直接缓存所有页面。详情见
|
||||||
<a
|
<a
|
||||||
href="https://panjiachen.github.io/vue-element-admin-site/guide/essentials/tags-view.html"
|
href="https://panjiachen.github.io/vue-element-admin-site/guide/essentials/tags-view.html"
|
||||||
target="_blank">文档</a>
|
target="_blank"
|
||||||
|
>文档</a>
|
||||||
</p>
|
</p>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="app-container">
|
<div class="app-container">
|
||||||
|
|
||||||
<el-table v-loading="listLoading" :data="list" border fit highlight-current-row style="width: 100%">
|
<el-table v-loading="listLoading" :data="list" border fit highlight-current-row style="width: 100%">
|
||||||
<el-table-column align="center" label="ID" width="80">
|
<el-table-column align="center" label="ID" width="80">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
|
@ -28,13 +27,14 @@
|
||||||
|
|
||||||
<el-table-column class-name="status-col" label="Status" width="110">
|
<el-table-column class-name="status-col" label="Status" width="110">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-tag :type="scope.row.status | statusFilter">{{ scope.row.status }}</el-tag>
|
<el-tag :type="scope.row.status | statusFilter">
|
||||||
|
{{ scope.row.status }}
|
||||||
|
</el-tag>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
|
|
||||||
<el-table-column min-width="300px" label="Title">
|
<el-table-column min-width="300px" label="Title">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
|
|
||||||
<router-link :to="'/example/edit/'+scope.row.id" class="link-type">
|
<router-link :to="'/example/edit/'+scope.row.id" class="link-type">
|
||||||
<span>{{ scope.row.title }}</span>
|
<span>{{ scope.row.title }}</span>
|
||||||
</router-link>
|
</router-link>
|
||||||
|
@ -44,14 +44,15 @@
|
||||||
<el-table-column align="center" label="Actions" width="120">
|
<el-table-column align="center" label="Actions" width="120">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<router-link :to="'/example/edit/'+scope.row.id">
|
<router-link :to="'/example/edit/'+scope.row.id">
|
||||||
<el-button type="primary" size="small" icon="el-icon-edit">Edit</el-button>
|
<el-button type="primary" size="small" icon="el-icon-edit">
|
||||||
|
Edit
|
||||||
|
</el-button>
|
||||||
</router-link>
|
</router-link>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
|
|
||||||
<pagination v-show="total>0" :total="total" :page.sync="listQuery.page" :limit.sync="listQuery.limit" @pagination="getList" />
|
<pagination v-show="total>0" :total="total" :page.sync="listQuery.page" :limit.sync="listQuery.limit" @pagination="getList" />
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|
|
@ -2,8 +2,12 @@
|
||||||
<div style="display:inline-block;">
|
<div style="display:inline-block;">
|
||||||
<label class="radio-label">Cell Auto-Width: </label>
|
<label class="radio-label">Cell Auto-Width: </label>
|
||||||
<el-radio-group v-model="autoWidth">
|
<el-radio-group v-model="autoWidth">
|
||||||
<el-radio :label="true" border>True</el-radio>
|
<el-radio :label="true" border>
|
||||||
<el-radio :label="false" border>False</el-radio>
|
True
|
||||||
|
</el-radio>
|
||||||
|
<el-radio :label="false" border>
|
||||||
|
False
|
||||||
|
</el-radio>
|
||||||
</el-radio-group>
|
</el-radio-group>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
|
@ -6,7 +6,8 @@
|
||||||
v-for="item in options"
|
v-for="item in options"
|
||||||
:key="item"
|
:key="item"
|
||||||
:label="item"
|
:label="item"
|
||||||
:value="item"/>
|
:value="item"
|
||||||
|
/>
|
||||||
</el-select>
|
</el-select>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
<div style="display:inline-block;">
|
<div style="display:inline-block;">
|
||||||
<!-- $t is vue-i18n global function to translate lang -->
|
<!-- $t is vue-i18n global function to translate lang -->
|
||||||
<label class="radio-label" style="padding-left:0;">Filename: </label>
|
<label class="radio-label" style="padding-left:0;">Filename: </label>
|
||||||
<el-input :placeholder="$t('excel.placeholder')" v-model="filename" style="width:340px;" prefix-icon="el-icon-document"/>
|
<el-input v-model="filename" :placeholder="$t('excel.placeholder')" style="width:340px;" prefix-icon="el-icon-document" />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|
|
@ -1,12 +1,13 @@
|
||||||
<template>
|
<template>
|
||||||
<!-- $t is vue-i18n global function to translate lang -->
|
<!-- $t is vue-i18n global function to translate lang -->
|
||||||
<div class="app-container">
|
<div class="app-container">
|
||||||
|
|
||||||
<div>
|
<div>
|
||||||
<FilenameOption v-model="filename" />
|
<FilenameOption v-model="filename" />
|
||||||
<AutoWidthOption v-model="autoWidth" />
|
<AutoWidthOption v-model="autoWidth" />
|
||||||
<BookTypeOption v-model="bookType" />
|
<BookTypeOption v-model="bookType" />
|
||||||
<el-button :loading="downloadLoading" style="margin:0 0 20px 20px;" type="primary" icon="document" @click="handleDownload">{{ $t('excel.export') }} Excel</el-button>
|
<el-button :loading="downloadLoading" style="margin:0 0 20px 20px;" type="primary" icon="document" @click="handleDownload">
|
||||||
|
{{ $t('excel.export') }} Excel
|
||||||
|
</el-button>
|
||||||
<a href="https://panjiachen.github.io/vue-element-admin-site/feature/component/excel.html" target="_blank" style="margin-left:15px;">
|
<a href="https://panjiachen.github.io/vue-element-admin-site/feature/component/excel.html" target="_blank" style="margin-left:15px;">
|
||||||
<el-tag type="info">Documentation</el-tag>
|
<el-tag type="info">Documentation</el-tag>
|
||||||
</a>
|
</a>
|
||||||
|
|
|
@ -1,20 +1,23 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="app-container">
|
<div class="app-container">
|
||||||
<!-- $t is vue-i18n global function to translate lang -->
|
<!-- $t is vue-i18n global function to translate lang -->
|
||||||
<el-input :placeholder="$t('excel.placeholder')" v-model="filename" style="width:340px;" prefix-icon="el-icon-document"/>
|
<el-input v-model="filename" :placeholder="$t('excel.placeholder')" style="width:340px;" prefix-icon="el-icon-document" />
|
||||||
<el-button :loading="downloadLoading" style="margin-bottom:20px" type="primary" icon="document" @click="handleDownload">{{ $t('excel.selectedExport') }}</el-button>
|
<el-button :loading="downloadLoading" style="margin-bottom:20px" type="primary" icon="document" @click="handleDownload">
|
||||||
|
{{ $t('excel.selectedExport') }}
|
||||||
|
</el-button>
|
||||||
<a href="https://panjiachen.github.io/vue-element-admin-site/feature/component/excel.html" target="_blank" style="margin-left:15px;">
|
<a href="https://panjiachen.github.io/vue-element-admin-site/feature/component/excel.html" target="_blank" style="margin-left:15px;">
|
||||||
<el-tag type="info">Documentation</el-tag>
|
<el-tag type="info">Documentation</el-tag>
|
||||||
</a>
|
</a>
|
||||||
<el-table
|
<el-table
|
||||||
v-loading="listLoading"
|
|
||||||
ref="multipleTable"
|
ref="multipleTable"
|
||||||
|
v-loading="listLoading"
|
||||||
:data="list"
|
:data="list"
|
||||||
element-loading-text="拼命加载中"
|
element-loading-text="拼命加载中"
|
||||||
border
|
border
|
||||||
fit
|
fit
|
||||||
highlight-current-row
|
highlight-current-row
|
||||||
@selection-change="handleSelectionChange">
|
@selection-change="handleSelectionChange"
|
||||||
|
>
|
||||||
<el-table-column type="selection" align="center" />
|
<el-table-column type="selection" align="center" />
|
||||||
<el-table-column align="center" label="Id" width="95">
|
<el-table-column align="center" label="Id" width="95">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
<div class="app-container">
|
<div class="app-container">
|
||||||
<upload-excel-component :on-success="handleSuccess" :before-upload="beforeUpload" />
|
<upload-excel-component :on-success="handleSuccess" :before-upload="beforeUpload" />
|
||||||
<el-table :data="tableData" border highlight-current-row style="width: 100%;margin-top:20px;">
|
<el-table :data="tableData" border highlight-current-row style="width: 100%;margin-top:20px;">
|
||||||
<el-table-column v-for="item of tableHeader" :prop="item" :label="item" :key="item"/>
|
<el-table-column v-for="item of tableHeader" :key="item" :prop="item" :label="item" />
|
||||||
</el-table>
|
</el-table>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
|
@ -5,7 +5,9 @@
|
||||||
<a href="https://github.com/kamranahmedse/driver.js" target="_blank">driver.js.
|
<a href="https://github.com/kamranahmedse/driver.js" target="_blank">driver.js.
|
||||||
</a>
|
</a>
|
||||||
</p>
|
</p>
|
||||||
<el-button icon="el-icon-question" type="primary" @click.prevent.stop="guide">{{ $t('guide.button') }}</el-button>
|
<el-button icon="el-icon-question" type="primary" @click.prevent.stop="guide">
|
||||||
|
{{ $t('guide.button') }}
|
||||||
|
</el-button>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|
|
@ -7,11 +7,19 @@
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<el-radio-group v-model="lang" size="small">
|
<el-radio-group v-model="lang" size="small">
|
||||||
<el-radio label="zh" border>简体中文</el-radio>
|
<el-radio label="zh" border>
|
||||||
<el-radio label="en" border>English</el-radio>
|
简体中文
|
||||||
<el-radio label="es" border>Español</el-radio>
|
</el-radio>
|
||||||
|
<el-radio label="en" border>
|
||||||
|
English
|
||||||
|
</el-radio>
|
||||||
|
<el-radio label="es" border>
|
||||||
|
Español
|
||||||
|
</el-radio>
|
||||||
</el-radio-group>
|
</el-radio-group>
|
||||||
<el-tag style="margin-top:15px;display:block;" type="info">{{ $t('i18nView.note') }}</el-tag>
|
<el-tag style="margin-top:15px;display:block;" type="info">
|
||||||
|
{{ $t('i18nView.note') }}
|
||||||
|
</el-tag>
|
||||||
</div>
|
</div>
|
||||||
</el-card>
|
</el-card>
|
||||||
|
|
||||||
|
@ -26,16 +34,29 @@
|
||||||
v-for="item in options"
|
v-for="item in options"
|
||||||
:key="item.value"
|
:key="item.value"
|
||||||
:label="item.label"
|
:label="item.label"
|
||||||
:value="item.value"/>
|
:value="item.value"
|
||||||
|
/>
|
||||||
</el-select>
|
</el-select>
|
||||||
</div>
|
</div>
|
||||||
<div class="block">
|
<div class="block">
|
||||||
<el-button class="item-btn" size="small">{{ $t('i18nView.default') }}</el-button>
|
<el-button class="item-btn" size="small">
|
||||||
<el-button class="item-btn" size="small" type="primary">{{ $t('i18nView.primary') }}</el-button>
|
{{ $t('i18nView.default') }}
|
||||||
<el-button class="item-btn" size="small" type="success">{{ $t('i18nView.success') }}</el-button>
|
</el-button>
|
||||||
<el-button class="item-btn" size="small" type="info">{{ $t('i18nView.info') }}</el-button>
|
<el-button class="item-btn" size="small" type="primary">
|
||||||
<el-button class="item-btn" size="small" type="warning">{{ $t('i18nView.warning') }}</el-button>
|
{{ $t('i18nView.primary') }}
|
||||||
<el-button class="item-btn" size="small" type="danger">{{ $t('i18nView.danger') }}</el-button>
|
</el-button>
|
||||||
|
<el-button class="item-btn" size="small" type="success">
|
||||||
|
{{ $t('i18nView.success') }}
|
||||||
|
</el-button>
|
||||||
|
<el-button class="item-btn" size="small" type="info">
|
||||||
|
{{ $t('i18nView.info') }}
|
||||||
|
</el-button>
|
||||||
|
<el-button class="item-btn" size="small" type="warning">
|
||||||
|
{{ $t('i18nView.warning') }}
|
||||||
|
</el-button>
|
||||||
|
<el-button class="item-btn" size="small" type="danger">
|
||||||
|
{{ $t('i18nView.danger') }}
|
||||||
|
</el-button>
|
||||||
</div>
|
</div>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="12" :xs="24">
|
<el-col :span="12" :xs="24">
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
<template>
|
<template>
|
||||||
<div v-if="!item.hidden" class="menu-wrapper">
|
<div v-if="!item.hidden" class="menu-wrapper">
|
||||||
|
|
||||||
<template v-if="hasOneShowingChild(item.children,item) && (!onlyOneChild.children||onlyOneChild.noShowingChildren)&&!item.alwaysShow">
|
<template v-if="hasOneShowingChild(item.children,item) && (!onlyOneChild.children||onlyOneChild.noShowingChildren)&&!item.alwaysShow">
|
||||||
<app-link :to="resolvePath(onlyOneChild.path)">
|
<app-link :to="resolvePath(onlyOneChild.path)">
|
||||||
<el-menu-item :index="resolvePath(onlyOneChild.path)" :class="{'submenu-title-noDropdown':!isNest}">
|
<el-menu-item :index="resolvePath(onlyOneChild.path)" :class="{'submenu-title-noDropdown':!isNest}">
|
||||||
|
@ -15,13 +14,13 @@
|
||||||
</template>
|
</template>
|
||||||
<sidebar-item
|
<sidebar-item
|
||||||
v-for="child in item.children"
|
v-for="child in item.children"
|
||||||
|
:key="child.path"
|
||||||
:is-nest="true"
|
:is-nest="true"
|
||||||
:item="child"
|
:item="child"
|
||||||
:key="child.path"
|
|
||||||
:base-path="resolvePath(child.path)"
|
:base-path="resolvePath(child.path)"
|
||||||
class="nest-menu" />
|
class="nest-menu"
|
||||||
|
/>
|
||||||
</el-submenu>
|
</el-submenu>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|
|
@ -4,23 +4,32 @@
|
||||||
<router-link
|
<router-link
|
||||||
v-for="tag in visitedViews"
|
v-for="tag in visitedViews"
|
||||||
ref="tag"
|
ref="tag"
|
||||||
|
:key="tag.path"
|
||||||
:class="isActive(tag)?'active':''"
|
:class="isActive(tag)?'active':''"
|
||||||
:to="{ path: tag.path, query: tag.query, fullPath: tag.fullPath }"
|
:to="{ path: tag.path, query: tag.query, fullPath: tag.fullPath }"
|
||||||
:key="tag.path"
|
|
||||||
tag="span"
|
tag="span"
|
||||||
class="tags-view-item"
|
class="tags-view-item"
|
||||||
@click.middle.native="closeSelectedTag(tag)"
|
@click.middle.native="closeSelectedTag(tag)"
|
||||||
@contextmenu.prevent.native="openMenu(tag,$event)">
|
@contextmenu.prevent.native="openMenu(tag,$event)"
|
||||||
|
>
|
||||||
{{ generateTitle(tag.title) }}
|
{{ generateTitle(tag.title) }}
|
||||||
<span v-if="!tag.meta.affix" class="el-icon-close" @click.prevent.stop="closeSelectedTag(tag)" />
|
<span v-if="!tag.meta.affix" class="el-icon-close" @click.prevent.stop="closeSelectedTag(tag)" />
|
||||||
</router-link>
|
</router-link>
|
||||||
</scroll-pane>
|
</scroll-pane>
|
||||||
<ul v-show="visible" :style="{left:left+'px',top:top+'px'}" class="contextmenu">
|
<ul v-show="visible" :style="{left:left+'px',top:top+'px'}" class="contextmenu">
|
||||||
<li @click="refreshSelectedTag(selectedTag)">{{ $t('tagsView.refresh') }}</li>
|
<li @click="refreshSelectedTag(selectedTag)">
|
||||||
<li v-if="!(selectedTag.meta&&selectedTag.meta.affix)" @click="closeSelectedTag(selectedTag)">{{
|
{{ $t('tagsView.refresh') }}
|
||||||
$t('tagsView.close') }}</li>
|
</li>
|
||||||
<li @click="closeOthersTags">{{ $t('tagsView.closeOthers') }}</li>
|
<li v-if="!(selectedTag.meta&&selectedTag.meta.affix)" @click="closeSelectedTag(selectedTag)">
|
||||||
<li @click="closeAllTags(selectedTag)">{{ $t('tagsView.closeAll') }}</li>
|
{{
|
||||||
|
$t('tagsView.close') }}
|
||||||
|
</li>
|
||||||
|
<li @click="closeOthersTags">
|
||||||
|
{{ $t('tagsView.closeOthers') }}
|
||||||
|
</li>
|
||||||
|
<li @click="closeAllTags(selectedTag)">
|
||||||
|
{{ $t('tagsView.closeAll') }}
|
||||||
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
|
@ -1,7 +1,9 @@
|
||||||
<template>
|
<template>
|
||||||
<div v-loading.fullscreen.lock="fullscreenLoading" class="main-article" element-loading-text="Efforts to generate PDF">
|
<div v-loading.fullscreen.lock="fullscreenLoading" class="main-article" element-loading-text="Efforts to generate PDF">
|
||||||
<div class="article__heading">
|
<div class="article__heading">
|
||||||
<div class="article__heading__title"> {{ article.title }}</div>
|
<div class="article__heading__title">
|
||||||
|
{{ article.title }}
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div style="color: #ccc;">
|
<div style="color: #ccc;">
|
||||||
This article is from Evan You on <a target="_blank" href="https://medium.com/the-vue-point/plans-for-the-next-iteration-of-vue-js-777ffea6fabf">medium</a>
|
This article is from Evan You on <a target="_blank" href="https://medium.com/the-vue-point/plans-for-the-next-iteration-of-vue-js-777ffea6fabf">medium</a>
|
||||||
|
|
|
@ -2,7 +2,9 @@
|
||||||
<div class="app-container">
|
<div class="app-container">
|
||||||
<code style="margin-top:15px;">{{ $t('pdf.tips') }}</code>
|
<code style="margin-top:15px;">{{ $t('pdf.tips') }}</code>
|
||||||
<router-link target="_blank" to="/pdf/download">
|
<router-link target="_blank" to="/pdf/download">
|
||||||
<el-button type="primary">Click to download PDF</el-button>
|
<el-button type="primary">
|
||||||
|
Click to download PDF
|
||||||
|
</el-button>
|
||||||
</router-link>
|
</router-link>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
|
@ -1,6 +1,8 @@
|
||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<div style="margin-bottom:15px;">{{ $t('permission.roles') }}: {{ roles }}</div>
|
<div style="margin-bottom:15px;">
|
||||||
|
{{ $t('permission.roles') }}: {{ roles }}
|
||||||
|
</div>
|
||||||
{{ $t('permission.switchRoles') }}:
|
{{ $t('permission.switchRoles') }}:
|
||||||
<el-radio-group v-model="switchRoles">
|
<el-radio-group v-model="switchRoles">
|
||||||
<el-radio-button label="editor" />
|
<el-radio-button label="editor" />
|
||||||
|
|
|
@ -7,7 +7,9 @@
|
||||||
Only
|
Only
|
||||||
<el-tag class="permission-tag" size="small">admin</el-tag> can see this
|
<el-tag class="permission-tag" size="small">admin</el-tag> can see this
|
||||||
</span>
|
</span>
|
||||||
<el-tag v-permission="['admin']" class="permission-sourceCode" type="info">v-permission="['admin']"</el-tag>
|
<el-tag v-permission="['admin']" class="permission-sourceCode" type="info">
|
||||||
|
v-permission="['admin']"
|
||||||
|
</el-tag>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div>
|
<div>
|
||||||
|
@ -15,7 +17,9 @@
|
||||||
Only
|
Only
|
||||||
<el-tag class="permission-tag" size="small">editor</el-tag> can see this
|
<el-tag class="permission-tag" size="small">editor</el-tag> can see this
|
||||||
</span>
|
</span>
|
||||||
<el-tag v-permission="['editor']" class="permission-sourceCode" type="info">v-permission="['editor']"</el-tag>
|
<el-tag v-permission="['editor']" class="permission-sourceCode" type="info">
|
||||||
|
v-permission="['editor']"
|
||||||
|
</el-tag>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div>
|
<div>
|
||||||
|
@ -24,7 +28,9 @@
|
||||||
<el-tag class="permission-tag" size="small">admin</el-tag> and
|
<el-tag class="permission-tag" size="small">admin</el-tag> and
|
||||||
<el-tag class="permission-tag" size="small">editor</el-tag> can see this
|
<el-tag class="permission-tag" size="small">editor</el-tag> can see this
|
||||||
</span>
|
</span>
|
||||||
<el-tag v-permission="['admin','editor']" class="permission-sourceCode" type="info">v-permission="['admin','editor']"</el-tag>
|
<el-tag v-permission="['admin','editor']" class="permission-sourceCode" type="info">
|
||||||
|
v-permission="['admin','editor']"
|
||||||
|
</el-tag>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@ -37,17 +43,23 @@
|
||||||
<el-tabs type="border-card" style="width:550px;">
|
<el-tabs type="border-card" style="width:550px;">
|
||||||
<el-tab-pane v-if="checkPermission(['admin'])" label="Admin">
|
<el-tab-pane v-if="checkPermission(['admin'])" label="Admin">
|
||||||
Admin can see this
|
Admin can see this
|
||||||
<el-tag class="permission-sourceCode" type="info">v-if="checkPermission(['admin'])"</el-tag>
|
<el-tag class="permission-sourceCode" type="info">
|
||||||
|
v-if="checkPermission(['admin'])"
|
||||||
|
</el-tag>
|
||||||
</el-tab-pane>
|
</el-tab-pane>
|
||||||
|
|
||||||
<el-tab-pane v-if="checkPermission(['editor'])" label="Editor">
|
<el-tab-pane v-if="checkPermission(['editor'])" label="Editor">
|
||||||
Editor can see this
|
Editor can see this
|
||||||
<el-tag class="permission-sourceCode" type="info">v-if="checkPermission(['editor'])"</el-tag>
|
<el-tag class="permission-sourceCode" type="info">
|
||||||
|
v-if="checkPermission(['editor'])"
|
||||||
|
</el-tag>
|
||||||
</el-tab-pane>
|
</el-tab-pane>
|
||||||
|
|
||||||
<el-tab-pane v-if="checkPermission(['admin','editor'])" label="Admin-OR-Editor">
|
<el-tab-pane v-if="checkPermission(['admin','editor'])" label="Admin-OR-Editor">
|
||||||
Both admin or editor can see this
|
Both admin or editor can see this
|
||||||
<el-tag class="permission-sourceCode" type="info">v-if="checkPermission(['admin','editor'])"</el-tag>
|
<el-tag class="permission-sourceCode" type="info">
|
||||||
|
v-if="checkPermission(['admin','editor'])"
|
||||||
|
</el-tag>
|
||||||
</el-tab-pane>
|
</el-tab-pane>
|
||||||
</el-tabs>
|
</el-tabs>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -1,7 +1,9 @@
|
||||||
<template>
|
<template>
|
||||||
<el-upload :data="dataObj" :multiple="true" :before-upload="beforeUpload" action="https://upload.qbox.me" drag>
|
<el-upload :data="dataObj" :multiple="true" :before-upload="beforeUpload" action="https://upload.qbox.me" drag>
|
||||||
<i class="el-icon-upload" />
|
<i class="el-icon-upload" />
|
||||||
<div class="el-upload__text">将文件拖到此处,或<em>点击上传</em></div>
|
<div class="el-upload__text">
|
||||||
|
将文件拖到此处,或<em>点击上传</em>
|
||||||
|
</div>
|
||||||
</el-upload>
|
</el-upload>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|
|
@ -1,12 +1,12 @@
|
||||||
<template>
|
<template>
|
||||||
<el-table :data="list" border fit highlight-current-row style="width: 100%">
|
<el-table :data="list" border fit highlight-current-row style="width: 100%">
|
||||||
|
|
||||||
<el-table-column
|
<el-table-column
|
||||||
v-loading="loading"
|
v-loading="loading"
|
||||||
align="center"
|
align="center"
|
||||||
label="ID"
|
label="ID"
|
||||||
width="65"
|
width="65"
|
||||||
element-loading-text="请给我点时间!">
|
element-loading-text="请给我点时间!"
|
||||||
|
>
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<span>{{ scope.row.id }}</span>
|
<span>{{ scope.row.id }}</span>
|
||||||
</template>
|
</template>
|
||||||
|
@ -45,10 +45,11 @@
|
||||||
|
|
||||||
<el-table-column class-name="status-col" label="Status" width="110">
|
<el-table-column class-name="status-col" label="Status" width="110">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-tag :type="scope.row.status | statusFilter">{{ scope.row.status }}</el-tag>
|
<el-tag :type="scope.row.status | statusFilter">
|
||||||
|
{{ scope.row.status }}
|
||||||
|
</el-tag>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
|
|
||||||
</el-table>
|
</el-table>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
<el-tag>mounted times :{{ createdTimes }}</el-tag>
|
<el-tag>mounted times :{{ createdTimes }}</el-tag>
|
||||||
<el-alert :closable="false" style="width:200px;display:inline-block;vertical-align: middle;margin-left:30px;" title="Tab with keep-alive" type="success" />
|
<el-alert :closable="false" style="width:200px;display:inline-block;vertical-align: middle;margin-left:30px;" title="Tab with keep-alive" type="success" />
|
||||||
<el-tabs v-model="activeName" style="margin-top:15px;" type="border-card">
|
<el-tabs v-model="activeName" style="margin-top:15px;" type="border-card">
|
||||||
<el-tab-pane v-for="item in tabMapOptions" :label="item.label" :key="item.key" :name="item.key">
|
<el-tab-pane v-for="item in tabMapOptions" :key="item.key" :label="item.label" :name="item.key">
|
||||||
<keep-alive>
|
<keep-alive>
|
||||||
<tab-pane v-if="activeName==item.key" :type="item.key" @create="showCreatedTimes" />
|
<tab-pane v-if="activeName==item.key" :type="item.key" @create="showCreatedTimes" />
|
||||||
</keep-alive>
|
</keep-alive>
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="app-container">
|
<div class="app-container">
|
||||||
<div class="filter-container">
|
<div class="filter-container">
|
||||||
<el-input :placeholder="$t('table.title')" v-model="listQuery.title" style="width: 200px;" class="filter-item" @keyup.enter.native="handleFilter"/>
|
<el-input v-model="listQuery.title" :placeholder="$t('table.title')" style="width: 200px;" class="filter-item" @keyup.enter.native="handleFilter" />
|
||||||
<el-select v-model="listQuery.importance" :placeholder="$t('table.importance')" clearable style="width: 90px" class="filter-item">
|
<el-select v-model="listQuery.importance" :placeholder="$t('table.importance')" clearable style="width: 90px" class="filter-item">
|
||||||
<el-option v-for="item in importanceOptions" :key="item" :label="item" :value="item" />
|
<el-option v-for="item in importanceOptions" :key="item" :label="item" :value="item" />
|
||||||
</el-select>
|
</el-select>
|
||||||
|
@ -11,21 +11,30 @@
|
||||||
<el-select v-model="listQuery.sort" style="width: 140px" class="filter-item" @change="handleFilter">
|
<el-select v-model="listQuery.sort" style="width: 140px" class="filter-item" @change="handleFilter">
|
||||||
<el-option v-for="item in sortOptions" :key="item.key" :label="item.label" :value="item.key" />
|
<el-option v-for="item in sortOptions" :key="item.key" :label="item.label" :value="item.key" />
|
||||||
</el-select>
|
</el-select>
|
||||||
<el-button v-waves class="filter-item" type="primary" icon="el-icon-search" @click="handleFilter">{{ $t('table.search') }}</el-button>
|
<el-button v-waves class="filter-item" type="primary" icon="el-icon-search" @click="handleFilter">
|
||||||
<el-button class="filter-item" style="margin-left: 10px;" type="primary" icon="el-icon-edit" @click="handleCreate">{{ $t('table.add') }}</el-button>
|
{{ $t('table.search') }}
|
||||||
<el-button v-waves :loading="downloadLoading" class="filter-item" type="primary" icon="el-icon-download" @click="handleDownload">{{ $t('table.export') }}</el-button>
|
</el-button>
|
||||||
<el-checkbox v-model="showReviewer" class="filter-item" style="margin-left:15px;" @change="tableKey=tableKey+1">{{ $t('table.reviewer') }}</el-checkbox>
|
<el-button class="filter-item" style="margin-left: 10px;" type="primary" icon="el-icon-edit" @click="handleCreate">
|
||||||
|
{{ $t('table.add') }}
|
||||||
|
</el-button>
|
||||||
|
<el-button v-waves :loading="downloadLoading" class="filter-item" type="primary" icon="el-icon-download" @click="handleDownload">
|
||||||
|
{{ $t('table.export') }}
|
||||||
|
</el-button>
|
||||||
|
<el-checkbox v-model="showReviewer" class="filter-item" style="margin-left:15px;" @change="tableKey=tableKey+1">
|
||||||
|
{{ $t('table.reviewer') }}
|
||||||
|
</el-checkbox>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<el-table
|
<el-table
|
||||||
v-loading="listLoading"
|
|
||||||
:key="tableKey"
|
:key="tableKey"
|
||||||
|
v-loading="listLoading"
|
||||||
:data="list"
|
:data="list"
|
||||||
border
|
border
|
||||||
fit
|
fit
|
||||||
highlight-current-row
|
highlight-current-row
|
||||||
style="width: 100%;"
|
style="width: 100%;"
|
||||||
@sort-change="sortChange">
|
@sort-change="sortChange"
|
||||||
|
>
|
||||||
<el-table-column :label="$t('table.id')" prop="id" sortable="custom" align="center" width="65">
|
<el-table-column :label="$t('table.id')" prop="id" sortable="custom" align="center" width="65">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<span>{{ scope.row.id }}</span>
|
<span>{{ scope.row.id }}</span>
|
||||||
|
@ -65,17 +74,24 @@
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column :label="$t('table.status')" class-name="status-col" width="100">
|
<el-table-column :label="$t('table.status')" class-name="status-col" width="100">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-tag :type="scope.row.status | statusFilter">{{ scope.row.status }}</el-tag>
|
<el-tag :type="scope.row.status | statusFilter">
|
||||||
|
{{ scope.row.status }}
|
||||||
|
</el-tag>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column :label="$t('table.actions')" align="center" width="230" class-name="small-padding fixed-width">
|
<el-table-column :label="$t('table.actions')" align="center" width="230" class-name="small-padding fixed-width">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-button type="primary" size="mini" @click="handleUpdate(scope.row)">{{ $t('table.edit') }}</el-button>
|
<el-button type="primary" size="mini" @click="handleUpdate(scope.row)">
|
||||||
<el-button v-if="scope.row.status!='published'" size="mini" type="success" @click="handleModifyStatus(scope.row,'published')">{{ $t('table.publish') }}
|
{{ $t('table.edit') }}
|
||||||
</el-button>
|
</el-button>
|
||||||
<el-button v-if="scope.row.status!='draft'" size="mini" @click="handleModifyStatus(scope.row,'draft')">{{ $t('table.draft') }}
|
<el-button v-if="scope.row.status!='published'" size="mini" type="success" @click="handleModifyStatus(scope.row,'published')">
|
||||||
|
{{ $t('table.publish') }}
|
||||||
</el-button>
|
</el-button>
|
||||||
<el-button v-if="scope.row.status!='deleted'" size="mini" type="danger" @click="handleModifyStatus(scope.row,'deleted')">{{ $t('table.delete') }}
|
<el-button v-if="scope.row.status!='draft'" size="mini" @click="handleModifyStatus(scope.row,'draft')">
|
||||||
|
{{ $t('table.draft') }}
|
||||||
|
</el-button>
|
||||||
|
<el-button v-if="scope.row.status!='deleted'" size="mini" type="danger" @click="handleModifyStatus(scope.row,'deleted')">
|
||||||
|
{{ $t('table.delete') }}
|
||||||
</el-button>
|
</el-button>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
|
@ -105,12 +121,16 @@
|
||||||
<el-rate v-model="temp.importance" :colors="['#99A9BF', '#F7BA2A', '#FF9900']" :max="3" style="margin-top:8px;" />
|
<el-rate v-model="temp.importance" :colors="['#99A9BF', '#F7BA2A', '#FF9900']" :max="3" style="margin-top:8px;" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item :label="$t('table.remark')">
|
<el-form-item :label="$t('table.remark')">
|
||||||
<el-input :autosize="{ minRows: 2, maxRows: 4}" v-model="temp.remark" type="textarea" placeholder="Please input"/>
|
<el-input v-model="temp.remark" :autosize="{ minRows: 2, maxRows: 4}" type="textarea" placeholder="Please input" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
<div slot="footer" class="dialog-footer">
|
<div slot="footer" class="dialog-footer">
|
||||||
<el-button @click="dialogFormVisible = false">{{ $t('table.cancel') }}</el-button>
|
<el-button @click="dialogFormVisible = false">
|
||||||
<el-button type="primary" @click="dialogStatus==='create'?createData():updateData()">{{ $t('table.confirm') }}</el-button>
|
{{ $t('table.cancel') }}
|
||||||
|
</el-button>
|
||||||
|
<el-button type="primary" @click="dialogStatus==='create'?createData():updateData()">
|
||||||
|
{{ $t('table.confirm') }}
|
||||||
|
</el-button>
|
||||||
</div>
|
</div>
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
|
|
||||||
|
@ -123,7 +143,6 @@
|
||||||
<el-button type="primary" @click="dialogPvVisible = false">{{ $t('table.confirm') }}</el-button>
|
<el-button type="primary" @click="dialogPvVisible = false">{{ $t('table.confirm') }}</el-button>
|
||||||
</span>
|
</span>
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,7 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="app-container">
|
<div class="app-container">
|
||||||
<!-- Note that row-key is necessary to get a correct row order. -->
|
<!-- Note that row-key is necessary to get a correct row order. -->
|
||||||
<el-table v-loading="listLoading" ref="dragTable" :data="list" row-key="id" border fit highlight-current-row style="width: 100%">
|
<el-table ref="dragTable" v-loading="listLoading" :data="list" row-key="id" border fit highlight-current-row style="width: 100%">
|
||||||
|
|
||||||
<el-table-column align="center" label="ID" width="65">
|
<el-table-column align="center" label="ID" width="65">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<span>{{ scope.row.id }}</span>
|
<span>{{ scope.row.id }}</span>
|
||||||
|
@ -41,7 +40,9 @@
|
||||||
|
|
||||||
<el-table-column class-name="status-col" label="Status" width="110">
|
<el-table-column class-name="status-col" label="Status" width="110">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-tag :type="scope.row.status | statusFilter">{{ scope.row.status }}</el-tag>
|
<el-tag :type="scope.row.status | statusFilter">
|
||||||
|
{{ scope.row.status }}
|
||||||
|
</el-tag>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
|
|
||||||
|
@ -50,12 +51,14 @@
|
||||||
<svg-icon class="drag-handler" icon-class="drag" />
|
<svg-icon class="drag-handler" icon-class="drag" />
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
|
|
||||||
</el-table>
|
</el-table>
|
||||||
<!-- $t is vue-i18n global function to translate lang (lang in @/lang) -->
|
<!-- $t is vue-i18n global function to translate lang (lang in @/lang) -->
|
||||||
<div class="show-d">{{ $t('table.dragTips1') }} : {{ oldList }}</div>
|
<div class="show-d">
|
||||||
<div class="show-d">{{ $t('table.dragTips2') }} : {{ newList }}</div>
|
{{ $t('table.dragTips1') }} : {{ oldList }}
|
||||||
|
</div>
|
||||||
|
<div class="show-d">
|
||||||
|
{{ $t('table.dragTips2') }} : {{ newList }}
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|
|
@ -1,15 +1,20 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="app-container">
|
<div class="app-container">
|
||||||
|
|
||||||
<div class="filter-container">
|
<div class="filter-container">
|
||||||
<el-checkbox-group v-model="checkboxVal">
|
<el-checkbox-group v-model="checkboxVal">
|
||||||
<el-checkbox label="apple">apple</el-checkbox>
|
<el-checkbox label="apple">
|
||||||
<el-checkbox label="banana">banana</el-checkbox>
|
apple
|
||||||
<el-checkbox label="orange">orange</el-checkbox>
|
</el-checkbox>
|
||||||
|
<el-checkbox label="banana">
|
||||||
|
banana
|
||||||
|
</el-checkbox>
|
||||||
|
<el-checkbox label="orange">
|
||||||
|
orange
|
||||||
|
</el-checkbox>
|
||||||
</el-checkbox-group>
|
</el-checkbox-group>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<el-table :data="tableData" :key="key" border fit highlight-current-row style="width: 100%">
|
<el-table :key="key" :data="tableData" border fit highlight-current-row style="width: 100%">
|
||||||
<el-table-column prop="name" label="fruitName" width="180" />
|
<el-table-column prop="name" label="fruitName" width="180" />
|
||||||
<el-table-column v-for="fruit in formThead" :key="fruit" :label="fruit">
|
<el-table-column v-for="fruit in formThead" :key="fruit" :label="fruit">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
|
@ -17,7 +22,6 @@
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|
|
@ -1,9 +1,13 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="app-container">
|
<div class="app-container">
|
||||||
<div style="margin:0 0 5px 20px">{{ $t('table.dynamicTips1') }}</div>
|
<div style="margin:0 0 5px 20px">
|
||||||
|
{{ $t('table.dynamicTips1') }}
|
||||||
|
</div>
|
||||||
<fixed-thead />
|
<fixed-thead />
|
||||||
|
|
||||||
<div style="margin:30px 0 5px 20px">{{ $t('table.dynamicTips2') }}</div>
|
<div style="margin:30px 0 5px 20px">
|
||||||
|
{{ $t('table.dynamicTips2') }}
|
||||||
|
</div>
|
||||||
<unfixed-thead />
|
<unfixed-thead />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
|
@ -1,11 +1,16 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="app-container">
|
<div class="app-container">
|
||||||
|
|
||||||
<div class="filter-container">
|
<div class="filter-container">
|
||||||
<el-checkbox-group v-model="formThead">
|
<el-checkbox-group v-model="formThead">
|
||||||
<el-checkbox label="apple">apple</el-checkbox>
|
<el-checkbox label="apple">
|
||||||
<el-checkbox label="banana">banana</el-checkbox>
|
apple
|
||||||
<el-checkbox label="orange">orange</el-checkbox>
|
</el-checkbox>
|
||||||
|
<el-checkbox label="banana">
|
||||||
|
banana
|
||||||
|
</el-checkbox>
|
||||||
|
<el-checkbox label="orange">
|
||||||
|
orange
|
||||||
|
</el-checkbox>
|
||||||
</el-checkbox-group>
|
</el-checkbox-group>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@ -17,7 +22,6 @@
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,6 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="app-container">
|
<div class="app-container">
|
||||||
|
|
||||||
<el-table v-loading="listLoading" :data="list" border fit highlight-current-row style="width: 100%">
|
<el-table v-loading="listLoading" :data="list" border fit highlight-current-row style="width: 100%">
|
||||||
|
|
||||||
<el-table-column align="center" label="ID" width="80">
|
<el-table-column align="center" label="ID" width="80">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<span>{{ scope.row.id }}</span>
|
<span>{{ scope.row.id }}</span>
|
||||||
|
@ -29,7 +27,9 @@
|
||||||
|
|
||||||
<el-table-column class-name="status-col" label="Status" width="110">
|
<el-table-column class-name="status-col" label="Status" width="110">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-tag :type="scope.row.status | statusFilter">{{ scope.row.status }}</el-tag>
|
<el-tag :type="scope.row.status | statusFilter">
|
||||||
|
{{ scope.row.status }}
|
||||||
|
</el-tag>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
|
|
||||||
|
@ -37,7 +37,9 @@
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<template v-if="scope.row.edit">
|
<template v-if="scope.row.edit">
|
||||||
<el-input v-model="scope.row.title" class="edit-input" size="small" />
|
<el-input v-model="scope.row.title" class="edit-input" size="small" />
|
||||||
<el-button class="cancel-btn" size="small" icon="el-icon-refresh" type="warning" @click="cancelEdit(scope.row)">cancel</el-button>
|
<el-button class="cancel-btn" size="small" icon="el-icon-refresh" type="warning" @click="cancelEdit(scope.row)">
|
||||||
|
cancel
|
||||||
|
</el-button>
|
||||||
</template>
|
</template>
|
||||||
<span v-else>{{ scope.row.title }}</span>
|
<span v-else>{{ scope.row.title }}</span>
|
||||||
</template>
|
</template>
|
||||||
|
@ -45,11 +47,14 @@
|
||||||
|
|
||||||
<el-table-column align="center" label="Actions" width="120">
|
<el-table-column align="center" label="Actions" width="120">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-button v-if="scope.row.edit" type="success" size="small" icon="el-icon-circle-check-outline" @click="confirmEdit(scope.row)">Ok</el-button>
|
<el-button v-if="scope.row.edit" type="success" size="small" icon="el-icon-circle-check-outline" @click="confirmEdit(scope.row)">
|
||||||
<el-button v-else type="primary" size="small" icon="el-icon-edit" @click="scope.row.edit=!scope.row.edit">Edit</el-button>
|
Ok
|
||||||
|
</el-button>
|
||||||
|
<el-button v-else type="primary" size="small" icon="el-icon-edit" @click="scope.row.edit=!scope.row.edit">
|
||||||
|
Edit
|
||||||
|
</el-button>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
|
|
||||||
</el-table>
|
</el-table>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
|
@ -14,18 +14,30 @@
|
||||||
</el-card>
|
</el-card>
|
||||||
|
|
||||||
<div class="block">
|
<div class="block">
|
||||||
<el-button type="primary">Primary</el-button>
|
<el-button type="primary">
|
||||||
<el-button type="success">Success</el-button>
|
Primary
|
||||||
<el-button type="info">Info</el-button>
|
</el-button>
|
||||||
<el-button type="warning">Warning</el-button>
|
<el-button type="success">
|
||||||
<el-button type="danger">Danger</el-button>
|
Success
|
||||||
|
</el-button>
|
||||||
|
<el-button type="info">
|
||||||
|
Info
|
||||||
|
</el-button>
|
||||||
|
<el-button type="warning">
|
||||||
|
Warning
|
||||||
|
</el-button>
|
||||||
|
<el-button type="danger">
|
||||||
|
Danger
|
||||||
|
</el-button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="block">
|
<div class="block">
|
||||||
<el-button type="primary" icon="el-icon-edit" />
|
<el-button type="primary" icon="el-icon-edit" />
|
||||||
<el-button type="primary" icon="el-icon-share" />
|
<el-button type="primary" icon="el-icon-share" />
|
||||||
<el-button type="primary" icon="el-icon-delete" />
|
<el-button type="primary" icon="el-icon-delete" />
|
||||||
<el-button type="primary" icon="el-icon-search">Search</el-button>
|
<el-button type="primary" icon="el-icon-search">
|
||||||
|
Search
|
||||||
|
</el-button>
|
||||||
<el-button type="primary">
|
<el-button type="primary">
|
||||||
Upload
|
Upload
|
||||||
<i class="el-icon-upload el-icon-right" />
|
<i class="el-icon-upload el-icon-right" />
|
||||||
|
@ -33,23 +45,28 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="block">
|
<div class="block">
|
||||||
<el-tag v-for="tag in tags" :type="tag.type" :key="tag.type" class="tag-item">
|
<el-tag v-for="tag in tags" :key="tag.type" :type="tag.type" class="tag-item">
|
||||||
{{ tag.name }}
|
{{ tag.name }}
|
||||||
</el-tag>
|
</el-tag>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="block">
|
<div class="block">
|
||||||
<el-radio-group v-model="radio">
|
<el-radio-group v-model="radio">
|
||||||
<el-radio :label="3">Option A</el-radio>
|
<el-radio :label="3">
|
||||||
<el-radio :label="6">Option B</el-radio>
|
Option A
|
||||||
<el-radio :label="9">Option C</el-radio>
|
</el-radio>
|
||||||
|
<el-radio :label="6">
|
||||||
|
Option B
|
||||||
|
</el-radio>
|
||||||
|
<el-radio :label="9">
|
||||||
|
Option C
|
||||||
|
</el-radio>
|
||||||
</el-radio-group>
|
</el-radio-group>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="block">
|
<div class="block">
|
||||||
<el-slider v-model="slideValue" />
|
<el-slider v-model="slideValue" />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<div class="app-container">
|
<div class="app-container">
|
||||||
|
|
||||||
<el-button type="primary" size="small" style="margin:0 0 20px 0;">
|
<el-button type="primary" size="small" style="margin:0 0 20px 0;">
|
||||||
<a href="https://github.com/PanJiaChen/vue-element-admin/tree/master/src/components/TreeTable" target="_blank">Documentation</a>
|
<a href="https://github.com/PanJiaChen/vue-element-admin/tree/master/src/components/TreeTable" target="_blank">Documentation</a>
|
||||||
</el-button>
|
</el-button>
|
||||||
|
@ -15,7 +14,6 @@
|
||||||
default-children="children"
|
default-children="children"
|
||||||
@selection-change="selectChange"
|
@selection-change="selectChange"
|
||||||
>
|
>
|
||||||
|
|
||||||
<template slot="selection">
|
<template slot="selection">
|
||||||
<el-table-column type="selection" align="center" width="55" />
|
<el-table-column type="selection" align="center" width="55" />
|
||||||
</template>
|
</template>
|
||||||
|
@ -31,19 +29,18 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<template slot="timeline" slot-scope="{scope}">
|
<template slot="timeline" slot-scope="{scope}">
|
||||||
|
|
||||||
<el-tooltip :content="scope.row.timeLine+'ms'" effect="dark" placement="left">
|
<el-tooltip :content="scope.row.timeLine+'ms'" effect="dark" placement="left">
|
||||||
<div class="processContainer">
|
<div class="processContainer">
|
||||||
<div
|
<div
|
||||||
:style="{ width:(scope.row.timeLine||0) * 3+'px',
|
:style="{ width:(scope.row.timeLine||0) * 3+'px',
|
||||||
background:scope.row.timeLine>50?'rgba(233,0,0,.5)':'rgba(0,0,233,0.5)',
|
background:scope.row.timeLine>50?'rgba(233,0,0,.5)':'rgba(0,0,233,0.5)',
|
||||||
marginLeft:scope.row._level * 50+'px' }"
|
marginLeft:scope.row._level * 50+'px' }"
|
||||||
class="process">
|
class="process"
|
||||||
|
>
|
||||||
<span style="display:inline-block" />
|
<span style="display:inline-block" />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</el-tooltip>
|
</el-tooltip>
|
||||||
|
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<template slot="append" slot-scope="{scope}">
|
<template slot="append" slot-scope="{scope}">
|
||||||
|
@ -51,18 +48,24 @@
|
||||||
size="mini"
|
size="mini"
|
||||||
type="primary"
|
type="primary"
|
||||||
@click="addMenuItem(scope.row,'brother')"
|
@click="addMenuItem(scope.row,'brother')"
|
||||||
>Append Brother
|
>
|
||||||
|
Append Brother
|
||||||
</el-button>
|
</el-button>
|
||||||
<el-button
|
<el-button
|
||||||
size="mini"
|
size="mini"
|
||||||
type="primary"
|
type="primary"
|
||||||
@click="addMenuItem(scope.row,'children')"
|
@click="addMenuItem(scope.row,'children')"
|
||||||
>Append Child
|
>
|
||||||
|
Append Child
|
||||||
</el-button>
|
</el-button>
|
||||||
</template>
|
</template>
|
||||||
<template slot="operation" slot-scope="{scope}">
|
<template slot="operation" slot-scope="{scope}">
|
||||||
<el-button size="mini" type="success" @click="editItem(scope.row)">Edit</el-button>
|
<el-button size="mini" type="success" @click="editItem(scope.row)">
|
||||||
<el-button size="mini" type="danger" @click="deleteItem(scope.row)">Delete</el-button>
|
Edit
|
||||||
|
</el-button>
|
||||||
|
<el-button size="mini" type="danger" @click="deleteItem(scope.row)">
|
||||||
|
Delete
|
||||||
|
</el-button>
|
||||||
</template>
|
</template>
|
||||||
</tree-table>
|
</tree-table>
|
||||||
</div>
|
</div>
|
||||||
|
@ -78,7 +81,6 @@
|
||||||
<el-button type="primary" @click="updateItem">Confirm</el-button>
|
<el-button type="primary" @click="updateItem">Confirm</el-button>
|
||||||
</span>
|
</span>
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,6 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="app-container">
|
<div class="app-container">
|
||||||
|
|
||||||
<div style="margin-bottom:20px;">
|
<div style="margin-bottom:20px;">
|
||||||
|
|
||||||
<el-button type="primary" size="small" class="option-item">
|
<el-button type="primary" size="small" class="option-item">
|
||||||
<a href="https://github.com/PanJiaChen/vue-element-admin/tree/master/src/components/TreeTable" target="_blank">Documentation</a>
|
<a href="https://github.com/PanJiaChen/vue-element-admin/tree/master/src/components/TreeTable" target="_blank">Documentation</a>
|
||||||
</el-button>
|
</el-button>
|
||||||
|
@ -13,7 +11,8 @@
|
||||||
v-model="defaultExpandAll"
|
v-model="defaultExpandAll"
|
||||||
active-color="#13ce66"
|
active-color="#13ce66"
|
||||||
inactive-color="#ff4949"
|
inactive-color="#ff4949"
|
||||||
@change="reset"/>
|
@change="reset"
|
||||||
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="option-item">
|
<div class="option-item">
|
||||||
|
@ -24,7 +23,6 @@
|
||||||
inactive-color="#ff4949"
|
inactive-color="#ff4949"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<tree-table :key="key" :default-expand-all="defaultExpandAll" :data="data" :columns="columns" border>
|
<tree-table :key="key" :default-expand-all="defaultExpandAll" :data="data" :columns="columns" border>
|
||||||
|
@ -34,10 +32,11 @@
|
||||||
<el-tag>select: {{ scope.row._select }}</el-tag>
|
<el-tag>select: {{ scope.row._select }}</el-tag>
|
||||||
</template>
|
</template>
|
||||||
<template slot="operation" slot-scope="{scope}">
|
<template slot="operation" slot-scope="{scope}">
|
||||||
<el-button type="primary" size="" @click="click(scope)">Click</el-button>
|
<el-button type="primary" size="" @click="click(scope)">
|
||||||
|
Click
|
||||||
|
</el-button>
|
||||||
</template>
|
</template>
|
||||||
</tree-table>
|
</tree-table>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,10 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="app-container">
|
<div class="app-container">
|
||||||
<!-- $t is vue-i18n global function to translate lang -->
|
<!-- $t is vue-i18n global function to translate lang -->
|
||||||
<el-input :placeholder="$t('zip.placeholder')" v-model="filename" style="width:300px;" prefix-icon="el-icon-document"/>
|
<el-input v-model="filename" :placeholder="$t('zip.placeholder')" style="width:300px;" prefix-icon="el-icon-document" />
|
||||||
<el-button :loading="downloadLoading" style="margin-bottom:20px;" type="primary" icon="document" @click="handleDownload">{{ $t('zip.export') }} zip</el-button>
|
<el-button :loading="downloadLoading" style="margin-bottom:20px;" type="primary" icon="document" @click="handleDownload">
|
||||||
|
{{ $t('zip.export') }} zip
|
||||||
|
</el-button>
|
||||||
<el-table v-loading="listLoading" :data="list" element-loading-text="拼命加载中" border fit highlight-current-row>
|
<el-table v-loading="listLoading" :data="list" element-loading-text="拼命加载中" border fit highlight-current-row>
|
||||||
<el-table-column align="center" label="ID" width="95">
|
<el-table-column align="center" label="ID" width="95">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
|
|
Loading…
Reference in New Issue