refactor: components name
This commit is contained in:
parent
a8459fa572
commit
a465652be6
|
@ -1,6 +1,6 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="components-container" style='height:100vh'>
|
<div class="components-container" style='height:100vh'>
|
||||||
<code>jsonEditor is base on <a href="https://github.com/codemirror/CodeMirror" target="_blank">CodeMirrorr</a> , lint base on json-lint </code>
|
<code>JsonEditor is base on <a href="https://github.com/codemirror/CodeMirror" target="_blank">CodeMirrorr</a> , lint base on json-lint </code>
|
||||||
<div class="editor-container">
|
<div class="editor-container">
|
||||||
<json-editor ref="jsonEditor" v-model="value"></json-editor>
|
<json-editor ref="jsonEditor" v-model="value"></json-editor>
|
||||||
</div>
|
</div>
|
||||||
|
@ -8,11 +8,12 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import jsonEditor from '@/components/jsonEditor'
|
import JsonEditor from '@/components/JsonEditor'
|
||||||
|
|
||||||
const jsonData = '[{"items":[{"market_type":"forexdata","symbol":"XAUUSD"},{"market_type":"forexdata","symbol":"UKOIL"},{"market_type":"forexdata","symbol":"CORN"}],"name":""},{"items":[{"market_type":"forexdata","symbol":"XAUUSD"},{"market_type":"forexdata","symbol":"XAGUSD"},{"market_type":"forexdata","symbol":"AUTD"},{"market_type":"forexdata","symbol":"AGTD"}],"name":"贵金属"},{"items":[{"market_type":"forexdata","symbol":"CORN"},{"market_type":"forexdata","symbol":"WHEAT"},{"market_type":"forexdata","symbol":"SOYBEAN"},{"market_type":"forexdata","symbol":"SUGAR"}],"name":"农产品"},{"items":[{"market_type":"forexdata","symbol":"UKOIL"},{"market_type":"forexdata","symbol":"USOIL"},{"market_type":"forexdata","symbol":"NGAS"}],"name":"能源化工"}]'
|
const jsonData = '[{"items":[{"market_type":"forexdata","symbol":"XAUUSD"},{"market_type":"forexdata","symbol":"UKOIL"},{"market_type":"forexdata","symbol":"CORN"}],"name":""},{"items":[{"market_type":"forexdata","symbol":"XAUUSD"},{"market_type":"forexdata","symbol":"XAGUSD"},{"market_type":"forexdata","symbol":"AUTD"},{"market_type":"forexdata","symbol":"AGTD"}],"name":"贵金属"},{"items":[{"market_type":"forexdata","symbol":"CORN"},{"market_type":"forexdata","symbol":"WHEAT"},{"market_type":"forexdata","symbol":"SOYBEAN"},{"market_type":"forexdata","symbol":"SUGAR"}],"name":"农产品"},{"items":[{"market_type":"forexdata","symbol":"UKOIL"},{"market_type":"forexdata","symbol":"USOIL"},{"market_type":"forexdata","symbol":"NGAS"}],"name":"能源化工"}]'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
components: { jsonEditor },
|
components: { JsonEditor },
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
value: JSON.parse(jsonData)
|
value: JSON.parse(jsonData)
|
|
@ -1,6 +1,6 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="dashboard-editor-container">
|
<div class="dashboard-editor-container">
|
||||||
<github></github>
|
<github-corner></github-corner>
|
||||||
<el-row class="btn-group">
|
<el-row class="btn-group">
|
||||||
<el-col :span="4" class='text-center'>
|
<el-col :span="4" class='text-center'>
|
||||||
<router-link class="pan-btn blue-btn" to="/components/index">Components</router-link>
|
<router-link class="pan-btn blue-btn" to="/components/index">Components</router-link>
|
||||||
|
@ -70,14 +70,14 @@ import { mapGetters } from 'vuex'
|
||||||
import countTo from 'vue-count-to'
|
import countTo from 'vue-count-to'
|
||||||
import panThumb from '@/components/PanThumb'
|
import panThumb from '@/components/PanThumb'
|
||||||
import todoList from '@/components/TodoList'
|
import todoList from '@/components/TodoList'
|
||||||
import Github from '@/components/Github'
|
import GithubCorner from '@/components/GithubCorner'
|
||||||
import pieChart from './pieChart'
|
import pieChart from './pieChart'
|
||||||
import barChart from './barChart'
|
import barChart from './barChart'
|
||||||
import lineChart from './lineChart'
|
import lineChart from './lineChart'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'dashboard-admin',
|
name: 'dashboard-admin',
|
||||||
components: { countTo, panThumb, todoList, Github, pieChart, lineChart, barChart },
|
components: { countTo, panThumb, todoList, GithubCorner, pieChart, lineChart, barChart },
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
statisticsData: {
|
statisticsData: {
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
<pan-thumb style="float: left" :image="avatar"> 你的权限:
|
<pan-thumb style="float: left" :image="avatar"> 你的权限:
|
||||||
<span class="pan-info-roles" :key='item' v-for="item in roles">{{item}}</span>
|
<span class="pan-info-roles" :key='item' v-for="item in roles">{{item}}</span>
|
||||||
</pan-thumb>
|
</pan-thumb>
|
||||||
<github></github>
|
<github-corner></github-corner>
|
||||||
<div class="info-container">
|
<div class="info-container">
|
||||||
<span class="display_name">{{name}}</span>
|
<span class="display_name">{{name}}</span>
|
||||||
<span style='font-size:20px;padding-top:20px;display:inline-block;'>普通编辑dashboard</span>
|
<span style='font-size:20px;padding-top:20px;display:inline-block;'>普通编辑dashboard</span>
|
||||||
|
@ -19,11 +19,11 @@
|
||||||
<script>
|
<script>
|
||||||
import { mapGetters } from 'vuex'
|
import { mapGetters } from 'vuex'
|
||||||
import PanThumb from '@/components/PanThumb'
|
import PanThumb from '@/components/PanThumb'
|
||||||
import Github from '@/components/Github'
|
import GithubCorner from '@/components/GithubCorner'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'dashboard-editor',
|
name: 'dashboard-editor',
|
||||||
components: { PanThumb, Github },
|
components: { PanThumb, GithubCorner },
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
emptyGif: 'https://wpimg.wallstcn.com/0e03b7da-db9e-4819-ba10-9016ddfdaed3'
|
emptyGif: 'https://wpimg.wallstcn.com/0e03b7da-db9e-4819-ba10-9016ddfdaed3'
|
||||||
|
|
Loading…
Reference in New Issue