Commit 6da910accf91e49637ecc160a1ab245f3327ddca
1 parent
111c146b
perf: set sidebar panel to three column layout
Showing
2 changed files
with
14 additions
and
3 deletions
| ... | ... | @@ -8224,8 +8224,16 @@ DataFormatPanel.prototype.addDataFont = function (container) { |
| 8224 | 8224 | $(el).append(createTemplate()) |
| 8225 | 8225 | } |
| 8226 | 8226 | |
| 8227 | + // TODO 生成容器监听事件 | |
| 8227 | 8228 | function generateEventLinstenner() { |
| 8228 | - $(el) | |
| 8229 | + $(el).on('click', `.${enumActionEl.SET_IMG_EL}`, (event) => { | |
| 8230 | + if ($(event.target).hasClass(enumActionEl.DEL_PREVIEW_IMG)) return | |
| 8231 | + generateUploadLayerComponent((imageState) => { | |
| 8232 | + | |
| 8233 | + $(el).find('img').attr('src', imageState[enumConst.IMAGE_GALLERY_IMAGE_PATH]) | |
| 8234 | + form.val(getFormFilter, imageState) | |
| 8235 | + }) | |
| 8236 | + }) | |
| 8229 | 8237 | } |
| 8230 | 8238 | } |
| 8231 | 8239 | ... | ... |
| ... | ... | @@ -203,8 +203,11 @@ if (urlParams['sidebar-entries'] != 'large') |
| 203 | 203 | { |
| 204 | 204 | Sidebar.prototype.thumbPadding = (document.documentMode >= 5) ? 0 : 1; |
| 205 | 205 | Sidebar.prototype.thumbBorder = 1; |
| 206 | - Sidebar.prototype.thumbWidth = 32; | |
| 207 | - Sidebar.prototype.thumbHeight = 30; | |
| 206 | + // TODO thingsKit 修改 Sidebar panel column layout | |
| 207 | + Sidebar.prototype.thumbWidth = 52; | |
| 208 | + // Sidebar.prototype.thumbWidth = 32; | |
| 209 | + Sidebar.prototype.thumbHeight = 50; | |
| 210 | + // Sidebar.prototype.thumbHeight = 30; | |
| 208 | 211 | Sidebar.prototype.minThumbStrokeWidth = 1.3; |
| 209 | 212 | Sidebar.prototype.thumbAntiAlias = true; |
| 210 | 213 | } | ... | ... |