Skip to content

Commit 87d14ba

Browse files
authored
Merge pull request #113 from sheepzh/ele
Upgrade element-plus to v2.x.x
2 parents 142c63f + 7dfe322 commit 87d14ba

File tree

29 files changed

+141
-63
lines changed

29 files changed

+141
-63
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
"clipboardy": "^3.0.0",
5252
"countup.js": "^2.2.0",
5353
"echarts": "^5.3.3",
54-
"element-plus": "1.2.0-beta.6",
54+
"element-plus": "2.2.6",
5555
"psl": "^1.8.0",
5656
"vue": "^3.2.37",
5757
"vue-router": "^4.0.16"

src/app/components/common/date-range-filter-item.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ const _default = defineComponent({
2626
setup(props, ctx) {
2727
// @ts-ignore
2828
const dateRange: Ref<Date[]> = ref(props.defaultRange || [undefined, undefined])
29+
// @ts-ignore
2930
return () => h('span', { class: 'filter-item' }, h(ElDatePicker,
3031
{
3132
modelValue: dateRange.value,

src/app/components/common/editable-tag.sass

Lines changed: 17 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,19 @@
66
*/
77

88
.el-tag
9+
height: 32px
910
margin-right: 10px
1011

12+
.editable-tag-container
13+
// offset right margin from the rightmost child
14+
margin-right: -10px
15+
display: flex
16+
flex-flow: row wrap
17+
justify-content: space-between
18+
.item-input-container,.item-add-button
19+
// The last line left
20+
margin-right: auto
21+
1122
.item-cancel-button
1223
border-right: 0.5px
1324
border-radius: 0
@@ -17,24 +28,23 @@
1728
margin-left: 0px !important
1829
margin-right: 10px
1930
.item-check-button,.item-cancel-button,.item-add-button
20-
height: 30px
31+
height: 32px
2132
line-height: 30px
2233
.item-add-button
2334
padding: 0 15px
2435
.item-check-button,.item-cancel-button
2536
padding: 0 10px
2637

27-
.input-new-tag
28-
width: 140px
29-
input
30-
height: 32px
31-
3238
.item-input-container
33-
display: inline-block
39+
display: inline-flex
40+
.el-input__wrapper
41+
height: 30px
42+
width: 140px
3443

3544
.editable-item
3645
margin-bottom: 9px
3746
line-height: 32px !important
47+
display: inline-flex
3848

3949
.edit-icon
4050
height: 14px

src/app/components/common/popup-confirm-button.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ const _default = defineComponent({
3636
onConfirm: () => ctx.emit("confirm")
3737
}, {
3838
reference: () => h(ElButton, {
39-
size: "mini",
39+
size: 'small',
4040
type: props.buttonType,
4141
icon: props.buttonIcon,
4242
style: {

src/app/components/common/switch-filter-item.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ const _default = defineComponent({
2121
emits: ["change"],
2222
setup(props, ctx) {
2323
const modelValue: Ref<boolean> = ref(props.defaultValue)
24-
return () => h("span", {}, [
24+
return () => h("span", { class: "filter-switch" }, [
2525
h('a', { class: 'filter-name' }, props.label),
2626
h(ElSwitch, {
2727
class: 'filter-item',

src/app/components/dashboard/feedback.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ const _default = defineComponent({
2828
effect: Effect.LIGHT,
2929
}, () => h(ElButton, {
3030
type: "info",
31-
size: "mini",
31+
size: 'small',
3232
icon: Headset,
3333
round: true,
3434
onClick: () => chrome.tabs.create({

src/app/components/data-manage/clear/filter/date-filter.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,11 @@ const pickerShortcuts = [
3737
datePickerShortcut('till30DaysAgo', 30)
3838
]
3939

40+
// @ts-ignore
4041
const picker = ({ dateRangeRef }: DateFilterProps) => h(ElDatePicker, {
4142
modelValue: dateRangeRef.value,
4243
"onUpdate:modelValue": (date: Array<Date>) => dateRangeRef.value = date,
43-
size: 'mini',
44+
size: 'small',
4445
style: 'width:250px;',
4546
startPlaceholder: '1994/12/15',
4647
format: "YYYY/MM/DD",

src/app/components/data-manage/clear/filter/number-filter.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ const elInput = (valRef: Ref<string>, placeholder: string, min?: Ref<string>) =>
1717
placeholder: placeholder,
1818
min: min !== undefined ? min.value || '0' : undefined,
1919
clearable: true,
20-
size: 'mini',
20+
size: 'small',
2121
modelValue: valRef.value,
2222
onInput: (val: string) => valRef.value = val.trim(),
2323
onClear: () => valRef.value = ''

src/app/components/data-manage/clear/filter/operation-button.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ const button = (props: _Props) => h(ElButton,
139139
{
140140
icon: props.button.icon,
141141
type: props.button.type,
142-
size: 'mini',
142+
size: 'small',
143143
onClick: () => handleClick(props)
144144
},
145145
() => t(msg => msg.item.operation[props.button.message])

src/app/components/limit/table/column/operation.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ const _default = defineComponent({
2626
default: ({ row }: { row: TimeLimitItem }) => [
2727
h(ElButton, {
2828
type: 'danger',
29-
size: 'mini',
29+
size: 'small',
3030
icon: Delete,
3131
onClick() {
3232
const { cond } = row

0 commit comments

Comments
 (0)