component_ryl 1.0.25 → 1.0.29
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/README.md +33 -10
- package/dist/build.js +2 -2
- package/package.json +2 -1
package/README.md
CHANGED
|
@@ -96,6 +96,9 @@
|
|
|
96
96
|
# 3.弹出层 -- handDialog
|
|
97
97
|
# 4.分页 -- handPaging
|
|
98
98
|
# 5.数字or金额输入框 -- input (用的少,基本用指令)
|
|
99
|
+
# 6.指令
|
|
100
|
+
# 7.富文本 -- handTinymce
|
|
101
|
+
# 8.动态面包屑 -- handBreadCrumb
|
|
99
102
|
|
|
100
103
|
# 使用方法:
|
|
101
104
|
# 1.统一头部(特定情况)不做说明
|
|
@@ -176,21 +179,39 @@
|
|
|
176
179
|
# :height="400" // 默认400
|
|
177
180
|
# v-model="content"
|
|
178
181
|
# :uploadType="'initUpload'" // 图片上传方式 默认:base64 自定义上传:initUpload
|
|
182
|
+
# :url="'/static'" // 插件和汉化包路径,默认 /static
|
|
179
183
|
# @handleImgUpload="handleImgUpload" // 如果是自定义上传,这个方法接收3个参数,如下:
|
|
180
184
|
# />
|
|
181
185
|
|
|
182
186
|
# handleImgUpload(blobInfo, success, failure){
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
187
|
+
# let formdata = new FormData();
|
|
188
|
+
# formdata.append("image", blobInfo.blob());
|
|
189
|
+
# axios({
|
|
190
|
+
# method: "post",
|
|
191
|
+
# url: process.env.VUE_APP_BASE_URL + "/admin/common/upload",
|
|
192
|
+
# headers: {
|
|
193
|
+
# Authorization: "Bearer " + this.$cookieGet("TOKEN")
|
|
194
|
+
# },
|
|
195
|
+
# data: formdata,
|
|
196
|
+
# }).then((res) => {
|
|
197
|
+
# if (res.data.code != 200) {
|
|
198
|
+
# failure("操作提示: " + res.msg);
|
|
199
|
+
# return;
|
|
200
|
+
# }
|
|
201
|
+
# success(res.data.data.imageUrl);
|
|
202
|
+
# });
|
|
192
203
|
# }
|
|
193
204
|
|
|
205
|
+
# 其他方法:
|
|
206
|
+
# setContent() 设置值
|
|
207
|
+
|
|
208
|
+
# getContent() 获取值
|
|
209
|
+
|
|
210
|
+
# 8.动态面包屑 handBreadCrumb
|
|
211
|
+
# <BreadCrymb
|
|
212
|
+
# :home="{path: "/home", meta: { title: "首页" }}" // 默认首页信息
|
|
213
|
+
# />
|
|
214
|
+
|
|
194
215
|
# serve with hot reload at localhost:8080
|
|
195
216
|
# npm run dev
|
|
196
217
|
|
|
@@ -212,7 +233,9 @@
|
|
|
212
233
|
#.
|
|
213
234
|
#.
|
|
214
235
|
#.
|
|
215
|
-
#1.0.
|
|
236
|
+
#1.0.27: 新增富文本 tinymce
|
|
237
|
+
#1.0.28: 菜单栏,添加红点提示,调试收起菜单栏时,提示异常bug
|
|
238
|
+
#1.0.29: 菜单栏新增无穷级数,添加动态面包屑
|
|
216
239
|
```
|
|
217
240
|
|
|
218
241
|
For detailed explanation on how things work, consult the [docs for vue-loader](http://vuejs.github.io/vue-loader).
|