@ajaxjs/util 1.1.1 → 1.1.2

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.
Files changed (80) hide show
  1. package/README.md +55 -6
  2. package/dist/index.esm.js +525 -0
  3. package/dist/index.umd.js +536 -0
  4. package/dist/{util → src/core}/cookies.d.ts +18 -18
  5. package/dist/{util → src/core}/dom.d.ts +17 -17
  6. package/dist/{util → src/core}/utils.d.ts +51 -51
  7. package/dist/{util → src/core}/xhr-config.d.ts +22 -22
  8. package/dist/{util → src/core}/xhr.d.ts +71 -71
  9. package/dist/src/index.d.ts +5 -0
  10. package/package.json +39 -43
  11. package/{dist/util/cookies.js → src/core/cookies.ts} +15 -18
  12. package/{dist/util/dom.js → src/core/dom.ts} +17 -14
  13. package/{dist/util/utils.js → src/core/utils.ts} +82 -77
  14. package/src/core/xhr-config.ts +25 -0
  15. package/{dist/util/xhr.js → src/core/xhr.ts} +128 -94
  16. package/src/index.ts +6 -0
  17. package/LICENSE +0 -201
  18. package/dist/index.d.ts +0 -38
  19. package/dist/index.js +0 -71
  20. package/dist/index.js.map +0 -1
  21. package/dist/main.d.ts +0 -1
  22. package/dist/main.js +0 -16
  23. package/dist/main.js.map +0 -1
  24. package/dist/router/index.d.ts +0 -3
  25. package/dist/router/index.js +0 -44
  26. package/dist/router/index.js.map +0 -1
  27. package/dist/router.d.ts +0 -3
  28. package/dist/router.js +0 -44
  29. package/dist/router.js.map +0 -1
  30. package/dist/shims-vue.d.ts +0 -4
  31. package/dist/style/common-functions.less +0 -294
  32. package/dist/style/reset.less +0 -19
  33. package/dist/util/cookies.js.map +0 -1
  34. package/dist/util/dom.js.map +0 -1
  35. package/dist/util/utils.js.map +0 -1
  36. package/dist/util/xhr-config.js +0 -3
  37. package/dist/util/xhr-config.js.map +0 -1
  38. package/dist/util/xhr.js.map +0 -1
  39. package/dist/widget/AccordionMenu.vue +0 -140
  40. package/dist/widget/AdjustFontSize.vue +0 -65
  41. package/dist/widget/Article.vue +0 -59
  42. package/dist/widget/EmptyContent.d.ts +0 -5
  43. package/dist/widget/EmptyContent.js +0 -7
  44. package/dist/widget/EmptyContent.js.map +0 -1
  45. package/dist/widget/Expander.vue +0 -65
  46. package/dist/widget/FileUploader/FileUploader.d.ts +0 -70
  47. package/dist/widget/FileUploader/FileUploader.js +0 -139
  48. package/dist/widget/FileUploader/FileUploader.js.map +0 -1
  49. package/dist/widget/FileUploader/FileUploader.less +0 -68
  50. package/dist/widget/FileUploader/FileUploader.ts +0 -156
  51. package/dist/widget/FileUploader/FileUploader.vue +0 -43
  52. package/dist/widget/HtmlEditor/HtmlEditor.d.ts +0 -70
  53. package/dist/widget/HtmlEditor/HtmlEditor.js +0 -287
  54. package/dist/widget/HtmlEditor/HtmlEditor.js.map +0 -1
  55. package/dist/widget/HtmlEditor/HtmlEditor.less +0 -345
  56. package/dist/widget/HtmlEditor/HtmlEditor.ts +0 -339
  57. package/dist/widget/HtmlEditor/HtmlEditor.vue +0 -70
  58. package/dist/widget/HtmlEditor/html-editor-HtmlSanitizer.js +0 -103
  59. package/dist/widget/ImageEnlarger.vue +0 -105
  60. package/dist/widget/OpacityBanner.vue +0 -125
  61. package/dist/widget/ProcessLine.vue +0 -133
  62. package/dist/widget/Resize.d.ts +0 -51
  63. package/dist/widget/Resize.js +0 -133
  64. package/dist/widget/Resize.js.map +0 -1
  65. package/dist/widget/Resize.ts +0 -152
  66. package/dist/widget/Resize.vue +0 -104
  67. package/dist/widget/TreeSelector.vue +0 -4
  68. package/dist/widget/calendar/BetweenDate.vue +0 -63
  69. package/dist/widget/calendar/Calendar.d.ts +0 -55
  70. package/dist/widget/calendar/Calendar.js +0 -145
  71. package/dist/widget/calendar/Calendar.js.map +0 -1
  72. package/dist/widget/calendar/Calendar.less +0 -210
  73. package/dist/widget/calendar/Calendar.ts +0 -167
  74. package/dist/widget/calendar/Calendar.vue +0 -52
  75. package/dist/widget/calendar/CalendarInput.vue +0 -71
  76. package/dist/widget/form/validator.d.ts +0 -70
  77. package/dist/widget/form/validator.js +0 -220
  78. package/dist/widget/form/validator.js.map +0 -1
  79. package/dist/widget/form/validator.ts +0 -289
  80. package/dist/widget/play-ground/sku.vue +0 -93
@@ -1,287 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.default = {
4
- props: {
5
- vModel: String,
6
- uploadImageActionUrl: String,
7
- isIonicons: Boolean // 是否使用 ionicons 图标
8
- },
9
- data() {
10
- return {
11
- isShowCode: false,
12
- iframeEl: null,
13
- sourceEditor: null,
14
- };
15
- },
16
- mounted() {
17
- this.iframeEl = this.$el.querySelector('iframe');
18
- this.sourceEditor = this.$el.querySelector('textarea');
19
- this.iframeEl.contentWindow.onload = (ev) => {
20
- this.iframeDoc = this.iframeEl.contentWindow.document;
21
- this.iframeDoc.designMode = 'on';
22
- this.iframeDoc.addEventListener('paste', onImagePaste.bind(this)); // 直接剪切板粘贴上传图片
23
- new MutationObserver((mutationsList, observer) => {
24
- if (!this.isShowCode) {
25
- this.sourceEditor.value = this.iframeDoc.body.innerHTML;
26
- this.$emit('on-change', this.sourceEditor.value);
27
- }
28
- }).observe(this.iframeDoc.body, { attributes: true, childList: true, subtree: true, characterData: true });
29
- this.vModel && this.setIframeBody(this.vModel);
30
- // this.sourceEditor.value && this.setIframeBody(this.sourceEditor.value);// 有内容
31
- };
32
- this.sourceEditor.oninput = (ev) => {
33
- if (this.isShowCode && this.sourceEditor.value) {
34
- this.setIframeBody(this.sourceEditor.value);
35
- this.$emit('on-change', this.sourceEditor.value);
36
- }
37
- };
38
- // this.uploadImgMgr = this.$refs.uploadLayer;
39
- },
40
- methods: {
41
- /**
42
- * 输入 HTML 内容
43
- *
44
- * @param html
45
- */
46
- setIframeBody(html) {
47
- if (this.iframeDoc && this.iframeDoc.body)
48
- this.iframeDoc.body.innerHTML = html;
49
- },
50
- /**
51
- * 获取内容的 HTML
52
- *
53
- * @param cleanWord 是否清理冗余标签
54
- * @param encode 是否 URL 编码
55
- */
56
- getValue(cleanWord, encode) {
57
- let result = this.iframeDoc.body.innerHTML;
58
- if (cleanWord)
59
- result = cleanPaste(result);
60
- if (encode)
61
- result = encodeURIComponent(result);
62
- return result;
63
- },
64
- createLink() {
65
- let result = prompt("请输入 URL 地址");
66
- if (result)
67
- this.format("createLink", result);
68
- },
69
- insertImage() {
70
- // @ts-ignore
71
- if (window.isCreate)
72
- alert('请保存记录后再上传图片。');
73
- else {
74
- this.uploadImgMgr.show((json) => {
75
- if (json && json.isOk)
76
- this.format("insertImage", json.fullUrl);
77
- });
78
- }
79
- },
80
- /**
81
- * 清理冗余 HTML
82
- */
83
- cleanHTML() {
84
- // @ts-ignore
85
- this.setIframeBody(HtmlSanitizer.SanitizeHtml(this.iframeDoc.body.innerHTML));
86
- },
87
- saveRemoteImage2Local() {
88
- saveRemoteImage2Local.call(this);
89
- },
90
- /**
91
- * 当工具条点击的时候触发
92
- *
93
- * @param ev
94
- */
95
- onCmdClk(ev) {
96
- let el = ev.target, clsName = el.className.split(' ').shift();
97
- this.format(clsName);
98
- },
99
- /**
100
- * 通过 document.execCommand() 来操纵可编辑内容区域的元素
101
- *
102
- * @param type 命令的名称
103
- * @param para 一些命令(例如 insertImage)需要额外的参数(insertImage 需要提供插入 image 的 url),默认为 null
104
- */
105
- format(type, para) {
106
- if (para)
107
- this.iframeDoc.execCommand(type, false, para);
108
- else
109
- this.iframeDoc.execCommand(type, false);
110
- // (<Window>this.iframeEl.contentWindow).focus();
111
- },
112
- /**
113
- * 选择字号大小
114
- *
115
- * @param ev
116
- */
117
- onFontsizeChoserClk(ev) {
118
- let el = ev.target, els = ev.currentTarget.children;
119
- let i, j;
120
- for (i = 0, j = els.length; i < j; i++)
121
- if (el == els[i])
122
- break;
123
- this.format('fontsize', i + "");
124
- },
125
- /**
126
- * 选择字体
127
- *
128
- * @param ev
129
- */
130
- onFontfamilyChoserClk(ev) {
131
- let el = ev.target;
132
- this.format('fontname', el.innerHTML);
133
- /* 如何解决点击之后马上隐藏面板?由于 js(单击事件) 没有控制 CSS 的 :hover 伪类的方法,故所以必须使用以下技巧:*/
134
- let menuPanel = el.parentNode;
135
- menuPanel.style.display = 'none';
136
- setTimeout(() => menuPanel.style.display = '', 300);
137
- },
138
- /**
139
- * 创建颜色选择器
140
- */
141
- createColorPickerHTML() {
142
- let cl = ['00', '33', '66', '99', 'CC', 'FF'], b, d, e, f, h = ['<div class="colorhead"><span class="colortitle">颜色选择</span></div><div class="colorbody"><table cellspaci="0" cellpadding="0"><tr>'];
143
- // 创建 body [6 x 6的色盘]
144
- for (let i = 0; i < 6; ++i) {
145
- h.push('<td><table class="colorpanel" cellspacing="0" cellpadding="0">');
146
- for (let j = 0, a = cl[i]; j < 6; ++j) {
147
- h.push('<tr>');
148
- for (let k = 0, c = cl[j]; k < 6; ++k) {
149
- b = cl[k];
150
- e = (k == 5 && i != 2 && i != 5) ? ';border-right:none;' : '';
151
- f = (j == 5 && i < 3) ? ';border-bottom:none' : '';
152
- d = '#' + a + b + c;
153
- // T = document.all ? '&nbsp;' : '';
154
- h.push('<td unselectable="on" style="background-color: ' + d + e + f + '" title="' + d + '"></td>');
155
- }
156
- h.push('</tr>');
157
- }
158
- h.push('</table></td>');
159
- if (cl[i] == '66')
160
- h.push('</tr><tr>');
161
- }
162
- h.push('</tr></table></div>');
163
- return h.join('');
164
- }
165
- },
166
- watch: {
167
- vModel(newHtml, oldHtml) {
168
- // if (!html)
169
- // html = '';
170
- if (!oldHtml) // 当没有值的时候输入,就是在初始化的时候(第一次)
171
- this.setIframeBody(newHtml);
172
- },
173
- /**
174
- * 切換 HTML 編輯 or 可視化編輯
175
- *
176
- * @param n
177
- */
178
- isShowCode(n) {
179
- if (n) {
180
- this.iframeEl.classList.add('hide');
181
- this.sourceEditor.classList.add('show');
182
- grayImg.call(this, true);
183
- }
184
- else {
185
- this.iframeEl.classList.remove('hide');
186
- this.sourceEditor.classList.remove('show');
187
- grayImg.call(this, false);
188
- }
189
- },
190
- }
191
- };
192
- /**
193
- * 粘贴图片
194
- *
195
- * @param this
196
- * @param ev
197
- */
198
- function onImagePaste(ev) {
199
- if (!this.uploadImageActionUrl) {
200
- alert('未提供图片上传地址');
201
- return;
202
- }
203
- let items = ev.clipboardData && ev.clipboardData.items, file = null; // file 就是剪切板中的图片文件
204
- if (items && items.length) { // 检索剪切板 items
205
- for (let i = 0; i < items.length; i++) {
206
- const item = items[i];
207
- if (item.type.indexOf('image') !== -1) {
208
- // @ts-ignore
209
- if (window.isCreate) { // 有图片
210
- alert('请保存记录后再上传图片。');
211
- return;
212
- }
213
- file = item.getAsFile();
214
- break;
215
- }
216
- }
217
- }
218
- if (file) {
219
- // ev.preventDefault();
220
- // img.changeBlobImageQuality(file, (newBlob: Blob): void => {
221
- // // 复用上传的方法
222
- // Vue.options.components["aj-xhr-upload"].extendOptions.methods.doUpload.call({
223
- // action: this.uploadImageActionUrl,
224
- // progress: 0,
225
- // uploadOk_callback(j: ImgUploadRepsonseResult) {
226
- // if (j.isOk)
227
- // this.format("insertImage", this.ajResources.imgPerfix + j.imgUrl);
228
- // },
229
- // $blob: newBlob,
230
- // $fileName: 'foo.jpg' // 文件名不重要,反正上传到云空间会重命名
231
- // });
232
- // });
233
- }
234
- }
235
- /**
236
- * 一键存图
237
- *
238
- * @param this
239
- */
240
- function saveRemoteImage2Local() {
241
- const arr = this.iframeDoc.querySelectorAll('img'), remotePicArr = new Array(), srcs = [];
242
- for (let i = 0, j = arr.length; i < j; i++) {
243
- const imgEl = arr[i], src = imgEl.getAttribute('src');
244
- if (/^http/.test(src)) {
245
- remotePicArr.push(imgEl);
246
- srcs.push(src);
247
- }
248
- }
249
- if (srcs.length) {
250
- // xhr.post('../downAllPics/', (json: any) => {
251
- // const _arr: string[] = json.pics;
252
- // for (let i = 0, j = _arr.length; i < j; i++)
253
- // remotePicArr[i].src = "images/" + _arr[i]; // 改变 DOM 的旧图片地址为新的
254
- // alert('所有图片下载完成。');
255
- // }, { pics: srcs.join('|') });
256
- }
257
- else
258
- alert('未发现有远程图片');
259
- }
260
- /**
261
- * 使图标变灰色
262
- *
263
- * @param this
264
- * @param isGray
265
- */
266
- function grayImg(isGray) {
267
- this.$el.querySelectorAll('.toolbar i').forEach((item) => {
268
- if (item.className.indexOf('switchMode') != -1) // 这个按钮永远可按,不受影响
269
- return;
270
- item.style.color = isGray ? 'lightgray' : '';
271
- });
272
- }
273
- /**
274
- * Remove additional MS Word content
275
- * MSWordHtmlCleaners.js https://gist.github.com/ronanguilloux/2915995
276
- *
277
- * @param html
278
- */
279
- function cleanPaste(html) {
280
- html = html.replace(/<(\/)*(\\?xml:|meta|link|span|font|del|ins|st1:|[ovwxp]:)((.|\s)*?)>/gi, ''); // Unwanted tags
281
- html = html.replace(/(class|style|type|start)=("(.*?)"|(\w*))/gi, ''); // Unwanted sttributes
282
- html = html.replace(/<style(.*?)style>/gi, ''); // Style tags
283
- html = html.replace(/<script(.*?)script>/gi, ''); // Script tags
284
- html = html.replace(/<!--(.*?)-->/gi, ''); // HTML comments
285
- return html;
286
- }
287
- //# sourceMappingURL=HtmlEditor.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"HtmlEditor.js","sourceRoot":"","sources":["../../../src/widget/HtmlEditor/HtmlEditor.ts"],"names":[],"mappings":";;AAAA,kBAAe;IACX,KAAK,EAAE;QACH,MAAM,EAAE,MAAM;QACd,oBAAoB,EAAE,MAAM;QAC5B,UAAU,EAAE,OAAO,CAAa,mBAAmB;KACtD;IACD,IAAI;QACA,OAAO;YACH,UAAU,EAAE,KAAK;YACjB,QAAQ,EAAE,IAAI;YACd,YAAY,EAAE,IAAI;SACrB,CAAC;IACN,CAAC;IACD,OAAO;QACH,IAAI,CAAC,QAAQ,GAAsB,IAAI,CAAC,GAAG,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAC;QACpE,IAAI,CAAC,YAAY,GAAwB,IAAI,CAAC,GAAG,CAAC,aAAa,CAAC,UAAU,CAAC,CAAC;QAEnE,IAAI,CAA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C,OAAO,CAAC,gBAAgB,EAAE,EAAE,CAAC,CAAC,CAAQ,gBAAgB;IAElE,OAAO,IAAI,CAAC;AAChB,CAAC"}
@@ -1,345 +0,0 @@
1
- .aj-form-html-editor {
2
- ul.toolbar {
3
- border : 1px solid #C5C5C5;
4
- border-radius : 4px 4px 0 0;
5
- border-bottom : 0;
6
- background-color: #E8E7E4;
7
- width : 100%;
8
- min-height : 30px;
9
- margin : 0;
10
- box-sizing : border-box;
11
- padding : 3px 4px;
12
-
13
- &>li {
14
- list-style: none;
15
- float : left;
16
- cursor : pointer;
17
-
18
- &>i {
19
- border : 1px solid transparent;
20
- min-width : 25px;
21
- height : 20px;
22
- line-height: 20px;
23
- text-align : center;
24
- display : block;
25
-
26
- &.text-icon{
27
- font-family:Times New Roman;font-weight: bold;font-style: normal;
28
- }
29
-
30
- &.fontAwesome{
31
- padding-top: 2px;
32
- font : normal normal normal 18px/1 FontAwesome;
33
- }
34
-
35
- &:hover {
36
- border-right-color : #aaa;
37
- border-bottom-color: #aaa;
38
- border-top-color : #fff;
39
- border-left-color : #fff;
40
- }
41
-
42
- &:active {
43
- border-right-color : #f3f8fc;
44
- border-bottom-color: #f3f8fc;
45
- border-top-color : #ccc;
46
- border-left-color : #ccc;
47
- }
48
- }
49
-
50
- ul li {
51
- padding: 3px;
52
- cursor : pointer;
53
-
54
- &:hover {
55
- background-color: lightgray;
56
- }
57
- }
58
-
59
- .cleanHTML {
60
- background-size: 16px 16px;
61
- }
62
-
63
- .noBg {
64
- background-image: none;
65
- }
66
- }
67
- }
68
-
69
- .editorBody {
70
- iframe,
71
- textarea {
72
- border : 1px solid #C5C5C5;
73
- border-radius : 0 0 4px 4px;
74
- border-top-width: 0;
75
- box-sizing : border-box;
76
- background-color: white;
77
- min-height : 300px;
78
- width : 100%;
79
- }
80
-
81
- iframe.hide{
82
- display: none;
83
- }
84
- textarea {
85
- resize: none;
86
- display: none;
87
- &.show{
88
- display: block;
89
- }
90
- }
91
- }
92
-
93
- .colorPicker {
94
- width : 210px;
95
- border : 1px solid #D3D3D3;
96
- position: absolute;
97
-
98
- table {
99
- border-collapse: collapse;
100
- }
101
-
102
- .colorhead {
103
- height : 23px;
104
- line-height: 23px;
105
- font-weight: bold;
106
- width : 100%;
107
- }
108
-
109
- .colortitle {
110
- margin-left: 6px;
111
- font-size : 12px;
112
- }
113
-
114
- .colorpanel td {
115
- border : 1px solid #000;
116
- height : 10px;
117
- width : 10px;
118
- overflow : hidden;
119
- font-size: 1px;
120
- cursor : pointer;
121
- }
122
- }
123
-
124
- // 字体演示
125
- .fontfamilyChoser,
126
- .fontsizeChoser {
127
- a {
128
- padding-right : 2px;
129
- display : block;
130
- padding-left : 2px;
131
- padding-bottom : 2px;
132
- color : #000;
133
- line-height : 120%;
134
- padding-top : 2px;
135
- text-decoration: none;
136
-
137
- &:hover {
138
- background: #e5e5e5
139
- }
140
- }
141
- }
142
-
143
- // 登录面板 和忘记密码
144
- .dorpdown {
145
- position: relative;
146
-
147
- &:hover .fontfamilyChoser,
148
- .fontfamilyChoser:hover,
149
- &:hover .fontsizeChoser,
150
- .fontsizeChoser:hover,
151
- &:hover .colorPicker,
152
- .colorPicker:hover {
153
- display: block;
154
- }
155
-
156
- &>div {
157
- display : none;
158
- position : absolute;
159
- top : 22px;
160
- left : 0;
161
- background-color: #f5f5f5;
162
- border : 1px solid lightgray;
163
- border-top : 0;
164
- padding : 5px;
165
- width : 230px;
166
- }
167
-
168
- .fontsizeChoser {
169
- top : inherit;
170
- right: 0;
171
- }
172
- }
173
- }.aj-form-html-editor {
174
- ul.toolbar {
175
- border : 1px solid #C5C5C5;
176
- border-radius : 4px 4px 0 0;
177
- border-bottom : 0;
178
- background-color: #E8E7E4;
179
- width : 100%;
180
- min-height : 30px;
181
- margin : 0;
182
- box-sizing : border-box;
183
- padding : 3px 4px;
184
-
185
- &>li {
186
- list-style: none;
187
- float : left;
188
- cursor : pointer;
189
-
190
- &>i {
191
- border : 1px solid transparent;
192
- min-width : 25px;
193
- height : 20px;
194
- line-height: 20px;
195
- text-align : center;
196
- display : block;
197
-
198
- &.text-icon{
199
- font-family:Times New Roman;font-weight: bold;font-style: normal;
200
- }
201
-
202
- &.fontAwesome{
203
- padding-top: 2px;
204
- font : normal normal normal 18px/1 FontAwesome;
205
- }
206
-
207
- &:hover {
208
- border-right-color : #aaa;
209
- border-bottom-color: #aaa;
210
- border-top-color : #fff;
211
- border-left-color : #fff;
212
- }
213
-
214
- &:active {
215
- border-right-color : #f3f8fc;
216
- border-bottom-color: #f3f8fc;
217
- border-top-color : #ccc;
218
- border-left-color : #ccc;
219
- }
220
- }
221
-
222
- ul li {
223
- padding: 3px;
224
- cursor : pointer;
225
-
226
- &:hover {
227
- background-color: lightgray;
228
- }
229
- }
230
-
231
- .cleanHTML {
232
- background-size: 16px 16px;
233
- }
234
-
235
- .noBg {
236
- background-image: none;
237
- }
238
- }
239
- }
240
-
241
- .editorBody {
242
- iframe,
243
- textarea {
244
- border : 1px solid #C5C5C5;
245
- border-radius : 0 0 4px 4px;
246
- border-top-width: 0;
247
- box-sizing : border-box;
248
- background-color: white;
249
- min-height : 300px;
250
- width : 100%;
251
- }
252
-
253
- iframe.hide{
254
- display: none;
255
- }
256
- textarea {
257
- resize: none;
258
- display: none;
259
- &.show{
260
- display: block;
261
- }
262
- }
263
- }
264
-
265
- .colorPicker {
266
- width : 210px;
267
- border : 1px solid #D3D3D3;
268
- position: absolute;
269
-
270
- table {
271
- border-collapse: collapse;
272
- }
273
-
274
- .colorhead {
275
- height : 23px;
276
- line-height: 23px;
277
- font-weight: bold;
278
- width : 100%;
279
- }
280
-
281
- .colortitle {
282
- margin-left: 6px;
283
- font-size : 12px;
284
- }
285
-
286
- .colorpanel td {
287
- border : 1px solid #000;
288
- height : 10px;
289
- width : 10px;
290
- overflow : hidden;
291
- font-size: 1px;
292
- cursor : pointer;
293
- }
294
- }
295
-
296
- // 字体演示
297
- .fontfamilyChoser,
298
- .fontsizeChoser {
299
- a {
300
- padding-right : 2px;
301
- display : block;
302
- padding-left : 2px;
303
- padding-bottom : 2px;
304
- color : #000;
305
- line-height : 120%;
306
- padding-top : 2px;
307
- text-decoration: none;
308
-
309
- &:hover {
310
- background: #e5e5e5
311
- }
312
- }
313
- }
314
-
315
- // 登录面板 和忘记密码
316
- .dorpdown {
317
- position: relative;
318
-
319
- &:hover .fontfamilyChoser,
320
- .fontfamilyChoser:hover,
321
- &:hover .fontsizeChoser,
322
- .fontsizeChoser:hover,
323
- &:hover .colorPicker,
324
- .colorPicker:hover {
325
- display: block;
326
- }
327
-
328
- &>div {
329
- display : none;
330
- position : absolute;
331
- top : 22px;
332
- left : 0;
333
- background-color: #f5f5f5;
334
- border : 1px solid lightgray;
335
- border-top : 0;
336
- padding : 5px;
337
- width : 230px;
338
- }
339
-
340
- .fontsizeChoser {
341
- top : inherit;
342
- right: 0;
343
- }
344
- }
345
- }