leisure-core 0.6.86 → 0.6.87

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.js CHANGED
@@ -23,7 +23,7 @@ import LeImage from "./le-image/index.js";
23
23
 
24
24
  import LeUpload from "./le-upload/index.js";
25
25
 
26
- import { LeHelp, LeHelpDetail } from "./le-help/index.js";
26
+ // import { LeHelp, LeHelpDetail } from "./le-help/index.js";
27
27
 
28
28
  import LeSelect from "./le-select/index.js";
29
29
  import LeSelectSearch from "./le-select-search/index.js";
@@ -67,8 +67,8 @@ const components = [
67
67
 
68
68
  LeUpload,
69
69
 
70
- LeHelp,
71
- LeHelpDetail,
70
+ // LeHelp,
71
+ // LeHelpDetail,
72
72
 
73
73
  LeSelect,
74
74
  LeSelectSearch,
@@ -178,8 +178,8 @@ export default {
178
178
  // LeImageContainer,
179
179
  LeImage,
180
180
  LeUpload,
181
- LeHelp,
182
- LeHelpDetail,
181
+ // LeHelp,
182
+ // LeHelpDetail,
183
183
  LeSelect,
184
184
  LeSelectSearch,
185
185
  LeInput,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "leisure-core",
3
- "version": "0.6.86",
3
+ "version": "0.6.87",
4
4
  "description": "leisure-core是京心数据基于vue2.x开发的一套后台管理系统桌面端组件库,封装了大量实用的UI控件模板,非常方便开发者快速搭建前端应用",
5
5
  "private": false,
6
6
  "author": "北方乐逍遥(zcx7878)",
package/le-help/index.js DELETED
@@ -1,12 +0,0 @@
1
- import LeHelp from "./src/main.vue";
2
- import LeHelpDetail from "./src/detail.vue";
3
-
4
- LeHelp.install = function (Vue) {
5
- Vue.component(LeHelp.name, LeHelp);
6
- };
7
-
8
- LeHelpDetail.install = function (Vue) {
9
- Vue.component(LeHelpDetail.name, LeHelpDetail);
10
- };
11
-
12
- export { LeHelp, LeHelpDetail };
@@ -1,40 +0,0 @@
1
- <template>
2
- <div class="le-help">
3
- <div class="title">{{ title }}</div>
4
- <div class="comment" v-html="comment"></div>
5
- </div>
6
- </template>
7
- <script>
8
- export default {
9
- name: "le-help-detail",
10
- props: {
11
- title: {
12
- type: String,
13
- default: "",
14
- },
15
- comment: {
16
- type: String,
17
- default: "",
18
- },
19
- },
20
- methods: {},
21
- };
22
- </script>
23
- <style lang="scss" scoped>
24
- .le-help {
25
- display: flex;
26
- display: -webkit-flex;
27
- flex-direction: column;
28
-
29
- .title {
30
- text-align: center;
31
- font-weight: bold;
32
- font-size: 26px;
33
- }
34
-
35
- .comment {
36
- max-height: 650px;
37
- overflow-y: auto;
38
- }
39
- }
40
- </style>
@@ -1,134 +0,0 @@
1
- <template>
2
- <div class="le-depart-container">
3
- <el-form :inline="true">
4
- <el-form-item>
5
- <el-button type="primary" @click="addHelp()">新建</el-button>
6
- </el-form-item>
7
- </el-form>
8
- <el-table :data="tableData" border row-key="id" stripe style="width: 100%">
9
- <el-table-column prop="type" label="类型" align="center">
10
- </el-table-column>
11
- <el-table-column prop="title" label="标题" align="center">
12
- </el-table-column>
13
- <el-table-column fixed="right" label="操作" align="center" width="180">
14
- <template slot-scope="scope">
15
- <le-button @click="edit(scope.row)">编辑</le-button>
16
- <le-button-msg @click="del(scope.row.id)">删除</le-button-msg>
17
- </template>
18
- </el-table-column>
19
- </el-table>
20
- <le-dialog-container
21
- title="新建/编辑帮助文档"
22
- :showDialog="showDialog"
23
- :showFooter="true"
24
- @close="handleClose"
25
- @saveData="savedepart"
26
- >
27
- <el-form
28
- :model="ruleForm"
29
- :rules="rules"
30
- ref="ruleForm"
31
- label-width="140px"
32
- v-if="showDialog"
33
- >
34
- <el-form-item label="类型" prop="type">
35
- <el-input v-model="ruleForm.type"></el-input>
36
- </el-form-item>
37
- <el-form-item label="标题" prop="title">
38
- <el-input v-model="ruleForm.title"></el-input>
39
- </el-form-item>
40
- <el-form-item label="内容" prop="comment">
41
- <le-editor v-model="ruleForm.comment"></le-editor>
42
- </el-form-item>
43
- </el-form>
44
- </le-dialog-container>
45
- </div>
46
- </template>
47
- <script>
48
- import { list, edit, del } from "@/api/SystemHelp";
49
- import { LeEditor } from "leisure-editor";
50
- import leButton from "../../le-button/index";
51
- import LeButtonMsg from "../../le-button-msg/index";
52
- export default {
53
- name: "le-help",
54
- components: {
55
- LeEditor,
56
- leButton,
57
- LeButtonMsg,
58
- },
59
- data() {
60
- return {
61
- tableData: [],
62
- ruleForm: {
63
- id: "",
64
- type: "",
65
- title: "",
66
- comment: "",
67
- },
68
- rules: {
69
- type: [
70
- { required: true, message: "请输入类型", trigger: "blur" },
71
- { max: 6, message: "长度在 1 到 6个字符", trigger: "blur" },
72
- ],
73
- title: [
74
- { required: true, message: "请输入标题", trigger: "blur" },
75
- { max: 20, message: "长度在 1 到 20个字符", trigger: "blur" },
76
- ],
77
- comment: [{ required: true, message: "请输入类型", trigger: "blur" }],
78
- },
79
- showDialog: false,
80
- };
81
- },
82
- computed: {},
83
- mounted() {
84
- this.getList();
85
- },
86
- methods: {
87
- addHelp() {
88
- this.showDialog = true;
89
- },
90
- edit(row) {
91
- this.ruleForm = JSON.parse(JSON.stringify(row));
92
- this.showDialog = true;
93
- },
94
- savedepart() {
95
- let params = JSON.parse(JSON.stringify(this.ruleForm));
96
- this.$refs["ruleForm"].validate((valid) => {
97
- if (valid) {
98
- edit(params).then(() => {
99
- this.$message.success("提交成功~");
100
- this.getList();
101
- this.handleClose();
102
- });
103
- } else {
104
- console.log("error submit!!");
105
- return false;
106
- }
107
- });
108
- },
109
- handleClose() {
110
- this.showDialog = false;
111
- this.initForm();
112
- },
113
- getList() {
114
- list().then((res) => {
115
- this.tableData = res.data.data || [];
116
- });
117
- },
118
- del(id) {
119
- del({
120
- id: id,
121
- }).then((response) => {
122
- this.getList();
123
- this.$message.success("删除成功");
124
- });
125
- },
126
- initForm() {
127
- this.ruleForm.id = "";
128
- this.ruleForm.type = "";
129
- this.ruleForm.title = "";
130
- this.ruleForm.comment = "";
131
- },
132
- },
133
- };
134
- </script>