diff options
Diffstat (limited to 'web/html/component/aTableSortable.html')
| -rw-r--r-- | web/html/component/aTableSortable.html | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/web/html/component/aTableSortable.html b/web/html/component/aTableSortable.html index 4abad8ef..b3606527 100644 --- a/web/html/component/aTableSortable.html +++ b/web/html/component/aTableSortable.html @@ -1,6 +1,6 @@ {{define "component/sortableTableTrigger"}} -<a-icon type="drag" class="sortable-icon" :style="{ cursor: 'move' }" @mouseup="mouseUpHandler" @mousedown="mouseDownHandler" - @click="clickHandler" /> +<a-icon type="drag" class="sortable-icon" :style="{ cursor: 'move' }" @mouseup="mouseUpHandler" + @mousedown="mouseDownHandler" @click="clickHandler" /> {{end}} {{define "component/aTableSortable"}} @@ -49,7 +49,7 @@ sortable, } }, - render: function (createElement) { + render: function(createElement) { return createElement('a-table', { class: { 'ant-table-is-sorting': this.isDragging(), @@ -64,12 +64,12 @@ drop: (e) => this.dropHandler(e), }, scopedSlots: this.$scopedSlots, - locale: { - filterConfirm: `{{ i18n "confirm" }}`, - filterReset: `{{ i18n "reset" }}`, - emptyText: `{{ i18n "noData" }}` + locale: { + filterConfirm: `{{ i18n "confirm" }}`, + filterReset: `{{ i18n "reset" }}`, + emptyText: `{{ i18n "noData" }}` } - }, this.$slots.default,) + }, this.$slots.default, ) }, created() { this.$memoSort = {}; @@ -148,7 +148,8 @@ class: { ...(parentMethodResult?.class || {}), [DRAGGABLE_ROW_CLASS]: true, - ['dragging']: this.isDragging() ? (newIndex === null ? index === currentIndex : index === newIndex) : false, + ['dragging']: this.isDragging() ? (newIndex === null ? index === currentIndex : index === newIndex) : + false, }, }; } |
