Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixed(#4174):The 0 in the front of pvc autosizer input can not be del… #4199

Closed
wants to merge 59 commits into from
Closed
Changes from all commits
Commits
Show all changes
59 commits
Select commit Hold shift + click to select a range
00d0fe8
config
studyingwang23 Aug 10, 2023
109e854
New Crowdin updates (#4107)
Bettygogo2021 Apr 14, 2023
3fc304f
feat: Add log receiver translate filed (#4108)
weili520 Apr 17, 2023
1415b61
feat: Add devops pipeline custom pipeline modal locales (#4109)
yazhouio Apr 17, 2023
219215f
doc: change the file name of the devops detail language (#4111)
harrisonliu5 Apr 18, 2023
3f192d8
doc: merge devops pipeline detail locales (#4112)
yazhouio Apr 18, 2023
4ac954f
Fix: fix alias desc (#4113)
Bettygogo2021 Apr 19, 2023
0a9f617
New Crowdin updates (#4110)
Bettygogo2021 Apr 19, 2023
a007006
New Crowdin updates (#4115)
ks-ci-bot Apr 19, 2023
7f171ef
New Crowdin updates (#4116)
ks-ci-bot Apr 19, 2023
74bc446
Fix: fix alias desc (#4117)
Bettygogo2021 Apr 21, 2023
3e4937e
fix: Update gateway modal text (#4119)
weili520 Apr 26, 2023
127393a
fix: LOG_RECEIVER field not be translated (#4120)
weili520 Apr 26, 2023
2db7b50
New Crowdin updates (#4118)
ks-ci-bot Apr 26, 2023
18e6989
Fix: fix typo (#4121)
Bettygogo2021 Apr 26, 2023
1ac86a5
New Crowdin updates (#4122)
ks-ci-bot Apr 26, 2023
b5bf704
fix: Delete manager filed in workspace base info page (#4131)
weili520 Jun 8, 2023
d256590
meraged the kse v3.4.0 into ks-3.4 (#4130)
yazhouio Jun 8, 2023
d02e5f7
fix: The 'Cluster Gateway' page keeps loading and reports an error 'e…
weili520 Jun 8, 2023
15c48f4
fix: Fix devops locales (#4134)
yazhouio Jun 9, 2023
16dd802
fix: Devops: Request to reuse the git repository selector on the elin…
yazhouio Jun 15, 2023
16d7dcd
fix: Fix devops locales (#4136)
yazhouio Jun 15, 2023
5195c92
meraged the kse v3.4.0 into ks-3.4.0 (#4137)
yazhouio Jun 15, 2023
4780d04
fix: fix translation (#4139)
Bettygogo2021 Jun 19, 2023
b649b4f
fix: Remove cluster gateway in project gateway list (#4138)
yazhouio Jun 19, 2023
a5a84bf
fix: Update alerts list page (#4140)
weili520 Jun 19, 2023
ca678b2
meraged the kse v3.4.0 into ks-3.4.0, Modify the display weight of cl…
yazhouio Jun 21, 2023
52fafa1
fix: Fix notification form field (#4143)
yazhouio Jun 21, 2023
43761f4
fix: Update rule group list page and create modal (#4142)
weili520 Jun 21, 2023
d4c2e69
fix: Add edit basic info modal for rule group (#4145)
weili520 Jun 21, 2023
4c9d8a8
fix: Add rule group edit form (#4146)
weili520 Jun 21, 2023
ca0d5d8
fix: Add rule monitor modal (#4147)
weili520 Jun 25, 2023
9230559
fix: Add rule reset modal (#4148)
weili520 Jun 25, 2023
dc19bec
feat: add devops locale (#4149)
yazhouio Jun 25, 2023
56fd46f
fix: Fix devops and pipiline check api (#1430) (#4151)
yazhouio Jun 25, 2023
f7b988f
docs: Add the USE_IMAGE_DEFAULT_PORTS word (#4144)
harrisonliu5 Jun 25, 2023
1e0d6c9
Update: update alerts (#4152)
Bettygogo2021 Jun 26, 2023
f2bac54
L10n master (#4153)
Bettygogo2021 Jun 27, 2023
e70da79
fix: Fix devops cd application form field (#1479) (#4155)
yazhouio Jul 3, 2023
3bfeede
fix: Remove multi-branch API request from non-multi-branch pipeline r…
yazhouio Jul 6, 2023
204bc6e
feat: Refactor image search (#4156)
harrisonliu5 Jul 6, 2023
eed046b
fix: Fix the error when downloading pipeline logs. (#1441) (#4158)
yazhouio Jul 7, 2023
d2ab07d
fix: Fix devops bugs (#4159)
yazhouio Jul 7, 2023
1141522
fix: Fix the data is error in gateway page (#4160)
harrisonliu5 Jul 7, 2023
f8a8616
fix: fix create multi branch pipeline git source field (#4161)
yazhouio Jul 10, 2023
975d596
fix: Filter cd deployment location clusters options by host cluster n…
yazhouio Jul 18, 2023
5b6608e
New Crowdin updates (#4154)
ks-ci-bot Jul 18, 2023
5e0a086
fix: Update monitors charts style to fix TinyArea not show bug (#4182)
fuchunlan Aug 17, 2023
debba07
fix: Update the apiVersion of notification config and receiver (#4183)
fuchunlan Aug 18, 2023
b662630
fix: Update opensearch field (#4184)
fuchunlan Aug 18, 2023
75355e1
feat: Cherry pick LADP (#4187)
fuchunlan Sep 4, 2023
f2680a0
fix: Fix error in applications template page (#5873) (#4188)
ic0xgkk Sep 4, 2023
6a38749
fix: Update k8s api version (#4190)
harrisonliu5 Sep 4, 2023
5f10435
Fix Api Documentation Link (#4192)
lamadome Sep 11, 2023
353e66d
fixed[BUG#4174]:The 0 in the front of pvc autosizer input can not be …
studyingwang23 Sep 21, 2023
1d6aa35
doc: fix the poc description (#4195)
harrisonliu5 Sep 21, 2023
9c0fb12
style: fix incorrect style for IsolateInfo and RuleInfo of Network Po…
nekomeowww Sep 21, 2023
dd18d42
fixed[BUG#4174]:The 0 in the front of pvc autosizer input can not be …
studyingwang23 Sep 22, 2023
31139b7
Merge branch 'master' of https://github.com/studyingwang23/ks-console…
studyingwang23 Sep 22, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions src/components/Inputs/UnitSlider/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,9 @@

import React from 'react'
import { Slider } from '@kube-design/components'

import { cloneDeep, get } from "lodash";
export default class UnitSlider extends React.Component {
innerRef = React.createRef();
handleChange = value => {
const { onChange, unit } = this.props
let newValue = value
Expand All @@ -31,6 +32,11 @@ export default class UnitSlider extends React.Component {

render() {
const { onChange, ...rest } = this.props
return <Slider onChange={this.handleChange} {...rest} />
if (get(this.innerRef, 'current') && get(this.innerRef, 'current.value')) {
let result = cloneDeep(this.innerRef);
result.current.value = Number(this.innerRef.current.value) > 0 ? Number(this.innerRef.current.value) : this.innerRef.current.value;
this.innerRef = result;
};
return <Slider onChange={this.handleChange} {...rest} innerRef={ this.innerRef} />
}
}
Loading