Skip to content

Commit e7f5342

Browse files
committed
change .vue to .jsx
1 parent 4984be5 commit e7f5342

File tree

143 files changed

+270
-270
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

143 files changed

+270
-270
lines changed

components/_util/Clone.vue renamed to components/_util/Clone.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<script>
1+
22
import { cloneElement } from './vnode'
33
import PropTypes from './vue-types'
44
export default {
@@ -16,4 +16,4 @@ export default {
1616
return children
1717
},
1818
}
19-
</script>
19+

components/_util/ContainerRender.vue renamed to components/_util/ContainerRender.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<script>
1+
22
import Vue from 'vue'
33
import PropTypes from './vue-types'
44

@@ -85,4 +85,4 @@ export default {
8585
},
8686
}
8787

88-
</script>
88+

components/affix/index.vue renamed to components/affix/index.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<script>
1+
22
import PropTypes from '../_util/vue-types'
33
import addEventListener from '../_util/Dom/addEventListener'
44
import classNames from 'classnames'
@@ -242,4 +242,4 @@ export default {
242242
},
243243
}
244244

245-
</script>
245+

components/alert/index.vue renamed to components/alert/index.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<script>
1+
22
import Icon from '../icon'
33
import classNames from 'classnames'
44
import BaseMixin from '../_util/BaseMixin'
@@ -130,4 +130,4 @@ export default {
130130
},
131131
}
132132

133-
</script>
133+

components/align/Align.vue renamed to components/align/Align.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<script>
1+
22
import PropTypes from '../_util/vue-types'
33
import align from 'dom-align'
44
import addEventListener from '../_util/Dom/addEventListener'
@@ -125,4 +125,4 @@ export default {
125125
},
126126
}
127127

128-
</script>
128+

components/auto-complete/InputElement.vue renamed to components/auto-complete/InputElement.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<script>
1+
22
import PropTypes from '../_util/vue-types'
33
import { cloneElement } from '../_util/vnode'
44
function chaining (...fns) {
@@ -52,4 +52,4 @@ export default {
5252
},
5353
}
5454

55-
</script>
55+

components/auto-complete/index.vue renamed to components/auto-complete/index.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<script>
1+
22
import { Option, OptGroup } from '../vc-select'
33
import Select, { AbstractSelectProps, SelectValue } from '../select'
44
import Input from '../input'
@@ -134,4 +134,4 @@ export default {
134134
},
135135
}
136136

137-
</script>
137+

components/avatar/Avatar.vue renamed to components/avatar/Avatar.jsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<script>
1+
22
import Icon from '../icon'
33

44
export default {
@@ -85,7 +85,7 @@ export default {
8585
return (
8686
<span class={classes}>
8787
{src ? <img src={src}/>
88-
: (icon ? <icon type={icon} />
88+
: (icon ? <Icon type={icon} />
8989
: <span
9090
ref='avatorChildren'
9191
class={prefixCls + '-string'}
@@ -96,4 +96,4 @@ export default {
9696
)
9797
},
9898
}
99-
</script>
99+

components/back-top/index.vue renamed to components/back-top/index.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<script>
1+
22
import PropTypes from '../_util/vue-types'
33
import addEventListener from '../_util/Dom/addEventListener'
44
import getScroll from '../_util/getScroll'
@@ -131,4 +131,4 @@ export default {
131131
},
132132
}
133133

134-
</script>
134+

components/badge/Badge.vue renamed to components/badge/Badge.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<script>
1+
22
import PropTypes from '../_util/vue-types'
33
import ScrollNumber from './ScrollNumber'
44
import classNames from 'classnames'
@@ -111,4 +111,4 @@ export default {
111111
},
112112
}
113113

114-
</script>
114+

components/badge/ScrollNumber.vue renamed to components/badge/ScrollNumber.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<script>
1+
22
import PropTypes from '../_util/vue-types'
33
import BaseMixin from '../_util/BaseMixin'
44
import { getStyle } from '../_util/props-util'
@@ -135,4 +135,4 @@ export default {
135135
},
136136
}
137137

138-
</script>
138+

components/breadcrumb/Breadcrumb.vue renamed to components/breadcrumb/Breadcrumb.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<script>
1+
22
import PropTypes from '../_util/vue-types'
33
import { cloneElement } from '../_util/vnode'
44
import { filterEmpty, getComponentFromProp, getSlotOptions } from '../_util/props-util'
@@ -87,4 +87,4 @@ export default {
8787
},
8888
}
8989

90-
</script>
90+

components/breadcrumb/BreadcrumbItem.vue renamed to components/breadcrumb/BreadcrumbItem.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<script>
1+
22
import PropTypes from '../_util/vue-types'
33
import { hasProp, getComponentFromProp } from '../_util/props-util'
44

@@ -30,4 +30,4 @@
3030
return null
3131
},
3232
}
33-
</script>
33+

components/button/button-group.vue renamed to components/button/button-group.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<script>
1+
22
import { filterEmpty } from '../_util/props-util'
33
const ButtonGroupProps = {
44
prefixCls: {
@@ -44,4 +44,4 @@ export default {
4444
)
4545
},
4646
}
47-
</script>
47+

components/button/button.vue renamed to components/button/button.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<script>
1+
22
import Icon from '../icon'
33
const rxTwoCNChar = /^[\u4e00-\u9fa5]{2}$/
44
const isTwoCNChar = rxTwoCNChar.test.bind(rxTwoCNChar)
@@ -102,4 +102,4 @@ export default {
102102
}
103103
},
104104
}
105-
</script>
105+

components/button/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import Button from './button.vue'
2-
import ButtonGroup from './button-group.vue'
1+
import Button from './button'
2+
import ButtonGroup from './button-group'
33

44
Button.Group = ButtonGroup
55
export default Button

components/calendar/Header.vue renamed to components/calendar/Header.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<script>
1+
22
import { PREFIX_CLS } from './Constants'
33
import Select from '../select'
44
import { Group, Button } from '../radio'
@@ -127,4 +127,4 @@ export default {
127127
)
128128
},
129129
}
130-
</script>
130+

components/calendar/index.vue renamed to components/calendar/index.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<script>
1+
22
import PropTypes from '@/components/_util/vue-types'
33
import BaseMixin from '@/components/_util/BaseMixin'
44
import { getOptionProps, hasProp, initDefaultProps } from '@/components/_util/props-util'
@@ -212,4 +212,4 @@ export default {
212212
)
213213
},
214214
}
215-
</script>
215+

components/card/Card.vue renamed to components/card/Card.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<script>
1+
22
import Tabs from '../tabs'
33
import PropTypes from '../_util/vue-types'
44
import addEventListener from '../_util/Dom/addEventListener'
@@ -161,4 +161,4 @@
161161
)
162162
},
163163
}
164-
</script>
164+

components/card/Grid.vue renamed to components/card/Grid.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<script>
1+
22
import PropTypes from '../_util/vue-types'
33

44
export default {
@@ -16,4 +16,4 @@ export default {
1616
)
1717
},
1818
}
19-
</script>
19+

components/card/Meta.vue renamed to components/card/Meta.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<script>
1+
22
import PropTypes from '../_util/vue-types'
33
import { getComponentFromProp } from '../_util/props-util'
44

@@ -33,4 +33,4 @@ export default {
3333
)
3434
},
3535
}
36-
</script>
36+

components/cascader/index.vue renamed to components/cascader/index.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<script>
1+
22
import PropTypes from '../_util/vue-types'
33
import VcCascader from '../vc-cascader'
44
import arrayTreeFilter from 'array-tree-filter'
@@ -382,4 +382,4 @@ export default {
382382
},
383383
}
384384

385-
</script>
385+

components/checkbox/Checkbox.vue renamed to components/checkbox/Checkbox.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<script>
1+
22
import hasProp from '../_util/props-util'
33
export default {
44
name: 'Checkbox',
@@ -122,4 +122,4 @@ export default {
122122
)
123123
},
124124
}
125-
</script>
125+

components/checkbox/Group.vue renamed to components/checkbox/Group.jsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
<script>
2-
import Checkbox from './Checkbox.vue'
1+
2+
import Checkbox from './Checkbox'
33
import hasProp from '../_util/props-util'
44
export default {
55
name: 'CheckboxGroup',
@@ -113,4 +113,4 @@ export default {
113113
},
114114
},
115115
}
116-
</script>
116+

components/checkbox/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import Checkbox from './Checkbox.vue'
2-
import CheckboxGroup from './Group.vue'
1+
import Checkbox from './Checkbox'
2+
import CheckboxGroup from './Group'
33

44
Checkbox.Group = CheckboxGroup
55
export default Checkbox

components/collapse/Collapse.vue renamed to components/collapse/Collapse.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<script>
1+
22
import PropTypes from '../_util/vue-types'
33
import animation from '../_util/openAnimation'
44
import { getOptionProps } from '../_util/props-util'
@@ -32,4 +32,4 @@ export default {
3232
return <RcCollapse {...rcCollapeProps}>{this.$slots.default}</RcCollapse>
3333
},
3434
}
35-
</script>
35+

components/collapse/CollapsePanel.vue renamed to components/collapse/CollapsePanel.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<script>
1+
22
import PropTypes from '../_util/vue-types'
33
import { getOptionProps } from '../_util/props-util'
44
import RcCollapse from './src'
@@ -35,4 +35,4 @@ export default {
3535
)
3636
},
3737
}
38-
</script>
38+

components/collapse/src/Collapse.vue renamed to components/collapse/src/Collapse.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<script>
1+
22
import PropTypes from '../../_util/vue-types'
33
import BaseMixin from '../../_util/BaseMixin'
44
import { hasProp, getPropsData, isEmptyElement } from '../../_util/props-util'
@@ -124,4 +124,4 @@ export default {
124124
)
125125
},
126126
}
127-
</script>
127+

components/collapse/src/Panel.vue renamed to components/collapse/src/Panel.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<script>
1+
22
import PanelContent from './PanelContent'
33
import { panelProps } from './commonProps'
44

@@ -68,4 +68,4 @@ export default {
6868
)
6969
},
7070
}
71-
</script>
71+

components/collapse/src/PanelContent.vue renamed to components/collapse/src/PanelContent.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<script>
1+
22
import PropTypes from '../../_util/vue-types'
33

44
export default {
@@ -34,4 +34,4 @@ export default {
3434
)
3535
},
3636
}
37-
</script>
37+

components/date-picker/RangePicker.vue renamed to components/date-picker/RangePicker.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<script>
1+
22
import * as moment from 'moment'
33
import RangeCalendar from '../vc-calendar/src/RangeCalendar'
44
import VcDatePicker from '../vc-calendar/src/Picker'
@@ -363,4 +363,4 @@ export default {
363363
)
364364
},
365365
}
366-
</script>
366+

components/date-picker/WeekPicker.vue renamed to components/date-picker/WeekPicker.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<script>
1+
22
import * as moment from 'moment'
33
import Calendar from '../vc-calendar'
44
import VcDatePicker from '../vc-calendar/src/Picker'
@@ -161,4 +161,4 @@ export default {
161161
)
162162
},
163163
}
164-
</script>
164+

components/divider/index.vue renamed to components/divider/index.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<script>
1+
22
import PropTypes from '../_util/vue-types'
33
export default {
44
props: {
@@ -25,4 +25,4 @@ export default {
2525
)
2626
},
2727
}
28-
</script>
28+

0 commit comments

Comments
 (0)