mirror of
https://github.com/cool-team-official/cool-admin-vue.git
synced 2024-11-01 06:02:38 +08:00
优化细节
This commit is contained in:
parent
58907611f6
commit
f4ea403f8c
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "cool-admin-vue",
|
||||
"version": "3.1.4",
|
||||
"version": "3.1.5",
|
||||
"scripts": {
|
||||
"serve": "vue-cli-service serve",
|
||||
"build": "vue-cli-service build",
|
||||
@ -10,9 +10,9 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"axios": "^0.21.1",
|
||||
"cl-admin": "^1.5.0",
|
||||
"cl-admin": "^1.5.1",
|
||||
"cl-admin-crud": "^1.6.4",
|
||||
"cl-admin-theme": "^0.0.4",
|
||||
"cl-admin-theme": "^0.0.5",
|
||||
"clipboard": "^2.0.7",
|
||||
"codemirror": "^5.59.4",
|
||||
"core-js": "^3.6.5",
|
||||
|
@ -1,5 +1,5 @@
|
||||
<template>
|
||||
<div class="cl-code">
|
||||
<div class="cl-codemirror">
|
||||
<codemirror
|
||||
ref="code"
|
||||
v-model="value2"
|
||||
@ -91,7 +91,7 @@ export default {
|
||||
</script>
|
||||
|
||||
<style lang="scss">
|
||||
.cl-code {
|
||||
.cl-codemirror {
|
||||
border-radius: 3px;
|
||||
border: 1px solid #dcdfe6;
|
||||
box-sizing: border-box;
|
||||
|
@ -91,7 +91,6 @@
|
||||
ref="upsert"
|
||||
:items="upsert.items"
|
||||
:on-submit="onUpsertSubmit"
|
||||
@open="onUpsertOpen"
|
||||
></cl-upsert>
|
||||
</cl-crud>
|
||||
</div>
|
||||
@ -272,7 +271,7 @@ export default {
|
||||
prop: "password",
|
||||
label: "密码",
|
||||
span: 12,
|
||||
hidden: true,
|
||||
hidden: ":isEdit",
|
||||
component: {
|
||||
name: "el-input",
|
||||
attrs: {
|
||||
@ -363,7 +362,7 @@ export default {
|
||||
},
|
||||
{
|
||||
prop: "tips",
|
||||
hidden: true,
|
||||
hidden: ":isAdd",
|
||||
component: (
|
||||
<div>
|
||||
<i class="el-icon-warning"></i>
|
||||
@ -413,11 +412,6 @@ export default {
|
||||
render(list);
|
||||
},
|
||||
|
||||
onUpsertOpen(isEdit) {
|
||||
this.$refs["upsert"].toggleItem("password", isEdit);
|
||||
this.$refs["upsert"].toggleItem("tips", !isEdit);
|
||||
},
|
||||
|
||||
onUpsertSubmit(_, data, { next }) {
|
||||
let departmentId = data.departmentId;
|
||||
|
||||
|
@ -462,7 +462,7 @@ import Language from "./cn";
|
||||
export default {
|
||||
name: "vue-cron",
|
||||
|
||||
props: ["value", "data", "i18n", "showYear"],
|
||||
props: ["value", "data", "showYear"],
|
||||
|
||||
data() {
|
||||
return {
|
||||
|
@ -48,14 +48,13 @@ export default {
|
||||
render() {
|
||||
return (
|
||||
<el-popover v-model={this.visible} disabled={this.disabled || this.readonly}>
|
||||
<Cron
|
||||
<cron
|
||||
v-model={this.cron}
|
||||
{...{
|
||||
props: { i18n: "cn" },
|
||||
on: {
|
||||
close: this.close
|
||||
}
|
||||
}}></Cron>
|
||||
}}></cron>
|
||||
<el-input
|
||||
slot="reference"
|
||||
clearable
|
||||
|
@ -1 +0,0 @@
|
||||
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1614441275424" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="6375" xmlns:xlink="http://www.w3.org/1999/xlink" width="128" height="128"><defs><style type="text/css"></style></defs><path d="M900.64 379.808L637.568 123.776c-36.448-35.328-105.76-35.392-142.304 0.096l-327.04 319.904c-56.416 54.72-70.72 76.704-70.72 150.976v143.936c0 132.768 26.976 192 186.912 192h131.872c81.12 0 128.448-46.656 193.952-111.264l290.016-297.696c18.592-17.984 29.248-43.968 29.248-71.264 0-27.104-10.528-52.864-28.864-70.656zM323.008 786.752c-52.928 0-96-43.072-96-96s43.072-96 96-96 96 43.072 96 96-43.072 96-96 96z" p-id="6376"></path></svg>
|
Before Width: | Height: | Size: 810 B |
Loading…
Reference in New Issue
Block a user