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

feat: picker data add disabled option #453

Open
wants to merge 1,045 commits into
base: dev
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
1045 commits
Select commit Hold shift + click to select a range
f55a5f1
build: package
dolymood Jul 25, 2018
8d0b5c9
docs(tab-bar): modify tab-bar docs
theniceangel Jul 30, 2018
3556149
build: docs
theniceangel Jul 30, 2018
4a89d1d
fix(date-picker): min update #256
AmyFoxFN Jul 31, 2018
53502df
test(date-picker): updateProps
AmyFoxFN Jul 31, 2018
736d1b9
chore: update verison
AmyFoxFN Jul 31, 2018
7822422
build: package
AmyFoxFN Jul 31, 2018
49e7f2c
build: docs
AmyFoxFN Jul 31, 2018
6034252
fix(image-preview): image-preview boundary check condition
dolymood Aug 3, 2018
8044a93
Merge branch 'dev' of github.com:didi/cube-ui into dev
dolymood Aug 3, 2018
846977d
feat(slide): support refreshResetCurrent prop
dolymood Aug 3, 2018
def0bf0
test(slide): refreshResetCurrent test
dolymood Aug 3, 2018
901527b
docs(slide): add refreshResetCurrent doc
dolymood Aug 3, 2018
dc10f1b
chore(package.json): 1.10.10
dolymood Aug 3, 2018
102a70d
build: package
dolymood Aug 3, 2018
44f2a28
build: docs
dolymood Aug 3, 2018
7527c2f
refactor(action-sheet): remove unless touchmove
dolymood Aug 8, 2018
4560ab7
fix(popup): add touchmove.prevent for disable page scrolling
dolymood Aug 8, 2018
0096ff9
chore(package.json): add sideEffects false config
dolymood Aug 10, 2018
808b320
docs(scroll): add more API docs
dolymood Aug 10, 2018
b351742
fix(radio): number value 0 should be 'true' value
dolymood Aug 20, 2018
f6568a5
test(radio): test number value 0
dolymood Aug 20, 2018
2c0c947
docs(slide): modify English slide
theniceangel Aug 20, 2018
ed9870a
fix(slide): modify style
theniceangel Aug 20, 2018
e0f3a54
feat(image-preview): support z-index prop
dolymood Aug 20, 2018
61f8219
feat(validator): support modelKey prop
dolymood Aug 20, 2018
7742c1b
test(validator): add modelKey
dolymood Aug 20, 2018
2f481d6
docs(slide): modify docs
theniceangel Aug 20, 2018
179de14
docs(popups): add zIndex prop desc
jiangxinxinxin Aug 20, 2018
770ea6a
fix(create-api): multi api watchers should be saved to an array
dolymood Aug 20, 2018
f8cc411
refactor(validator): add targetModel computed value for opti
dolymood Aug 21, 2018
ea6878c
Merge branch 'dev' of github.com:didi/cube-ui into dev
dolymood Aug 21, 2018
e60ee69
feat(scroll-nav): support dynamic label & title
dolymood Aug 21, 2018
69bcf99
refactor(validator): model value watch use sync
dolymood Aug 21, 2018
ba64199
fix(form): item validator validate sync
dolymood Aug 21, 2018
f9fc68d
test(form): add trigger blur sync test
dolymood Aug 21, 2018
8da8caa
chore(package.json): remove sideEffects
dolymood Aug 21, 2018
ef91b40
fix(slide): update currentIndex in scrollEnd handler
dolymood Aug 21, 2018
c265c04
docs(scroll-nav-bar): add HTML support
dolymood Aug 21, 2018
bef09e6
docs(scroll-nav): add HTML support
dolymood Aug 21, 2018
4d3dc3b
feat(validator): watch rules change to validate
dolymood Aug 21, 2018
266d2c9
fix(validator): number len msg should be length, not equal
dolymood Aug 21, 2018
2ede963
chore(package.json): 1.10.11
dolymood Aug 21, 2018
e0d83fe
build: package
dolymood Aug 21, 2018
8776765
build: docs
dolymood Aug 21, 2018
5d1d0d8
docs(image-preview): zIndex prop version
dolymood Aug 21, 2018
b47316d
build: docs
dolymood Aug 21, 2018
01eb0d0
fix(create-api): do not cancel watchers on create
dolymood Aug 21, 2018
a0b7cc9
chore(package.json): 1.10.12
dolymood Aug 21, 2018
eb02e08
build: package
dolymood Aug 21, 2018
a49d061
fix(create-api): oldOwnerInstance.$off err
dolymood Aug 22, 2018
0ec1ec8
chore(package.json): 1.10.13
dolymood Aug 22, 2018
61483f5
build: package
dolymood Aug 22, 2018
f5e2a96
docs(post-compile): add postCompile true condition
dolymood Aug 26, 2018
310c3a2
fix(slide): container overflow should not visible
dolymood Aug 26, 2018
6c02da0
docs(quick-start): add vue-cli@3 doc
dolymood Aug 27, 2018
f737025
docs(create-api): add Vue.use case
dolymood Aug 27, 2018
e8d7b34
build: docs
dolymood Aug 27, 2018
0a1d63e
chore(picker): optimize array handle
AmyFoxFN Aug 28, 2018
539c8d1
chore(picker): remove needless code
AmyFoxFN Aug 30, 2018
7b7fc44
docs: picker
AmyFoxFN Aug 29, 2018
f5c9359
build: docs
AmyFoxFN Aug 30, 2018
88a0774
fix(tab-bar): fix tab-bar's bug in async scene
theniceangel Aug 31, 2018
50d347b
chore(package.json): to be published
theniceangel Aug 31, 2018
f0d64b8
build: package
theniceangel Aug 31, 2018
224ee92
chore(image-preview): add an example of $props
theniceangel Sep 20, 2018
7f04877
docs(image-preview): optimize docs
theniceangel Sep 20, 2018
3f42a2d
build: docs
theniceangel Sep 20, 2018
f68600c
fix(image-preview): small width image need device width
dolymood Sep 21, 2018
f5e3d0d
refactor(tab-bar): watch resize event
theniceangel Sep 21, 2018
9e44f23
test(image-preview): get scroll.enabled in nextTick
theniceangel Sep 21, 2018
d94509e
docs(cascade-picker): optimize cascade-picker docs
theniceangel Sep 22, 2018
0c5cb98
build: docs
theniceangel Sep 22, 2018
2ebf28e
chore: update scroll docs
Sep 23, 2018
fb82e16
chore(scroll): update scroll example
Sep 23, 2018
0639c5d
chore(package.json): browserlist clean
dolymood Sep 25, 2018
4d82d50
fix(browserslist): iOS >= 8
AmyFoxFN Sep 26, 2018
b58b6f0
Merge pull request #320 from didi/update-scroll-docs
theniceangel Sep 26, 2018
dc3b91d
build: docs
theniceangel Sep 26, 2018
53c8e08
chore: package-lock
AmyFoxFN Sep 27, 2018
d817d29
chore: version
AmyFoxFN Sep 27, 2018
94a81db
build: package
AmyFoxFN Sep 27, 2018
d654bd0
docs(image-preview): adding missing part
theniceangel Sep 27, 2018
6e6bb62
build: docs
theniceangel Sep 27, 2018
b891aa2
chore(tab-bar): hyphenate a camelCase props
theniceangel Sep 27, 2018
9731e4d
build: docs
theniceangel Sep 27, 2018
8d6d581
docs(tab-bar): camelized props need to be hyphenated
theniceangel Sep 27, 2018
fddf299
build: docs
theniceangel Sep 27, 2018
5fafac1
docs(tab-bar): optimize docs of tab-bar
theniceangel Sep 27, 2018
61db031
build: docs
theniceangel Sep 27, 2018
2b6ff24
Merge branch 'dev' of github.com:didi/cube-ui into dev
dolymood Sep 30, 2018
b381ad3
chore(build): support cube.xxx with umd in modules target
dolymood Sep 30, 2018
ff803a8
chore(package.json): update better-scroll to 1.12.6
dolymood Oct 8, 2018
d2a72d5
fix(image-preview): over height image should be scrolling always
dolymood Oct 8, 2018
4de65cc
docs(image-preview): add preventDefault prop
dolymood Oct 8, 2018
00bf4c5
chore(package.json): version 1.10.16
dolymood Oct 8, 2018
8bb28ce
build: package
dolymood Oct 8, 2018
d14a772
build: docs
dolymood Oct 8, 2018
0ebf82f
chore(package.json): browserlist no ie option
dolymood Oct 9, 2018
cbd038a
fix(date-picker): change event
AmyFoxFN Oct 10, 2018
fc5f373
Merge branch 'dev' of github.com:didi/cube-ui into dev
dolymood Oct 10, 2018
9027e6a
Feat nested scroll (#245)
Oct 10, 2018
2560513
refactor(create-api): add vue-create-api and replace (#303)
Oct 10, 2018
2fa16f5
Feat toast no icon (#317)
dolymood Oct 10, 2018
a73db2d
Feat input support blur hidden clear btn (#276)
dolymood Oct 10, 2018
32a594d
Feat upload support dynamic target, headers, data (#277)
dolymood Oct 10, 2018
95d9cf7
Feat Swipe handle own active logic (#325)
dolymood Oct 10, 2018
c64ad2b
refactor(button): opt button: only outline & disabled need border (#315)
dolymood Oct 10, 2018
1ca38eb
Feat dialog prompt (#327)
dolymood Oct 10, 2018
51491c0
Feat Checker (#326)
chrislala Oct 10, 2018
a795e1c
Feat checkbox group min max (#328)
dolymood Oct 11, 2018
65844ac
Merge branch 'dev' of github.com:didi/cube-ui into dev
dolymood Oct 11, 2018
ff20553
feat(locale): locale support
theniceangel Oct 11, 2018
a01f5ec
Merge branch 'dev' of github.com:didi/cube-ui into dev
dolymood Oct 11, 2018
0e24f30
feat(upload): always handle response & responseHeaders
dolymood Oct 11, 2018
8a4a05c
chore(package.json): 1.11.0
dolymood Oct 11, 2018
8a6a2a3
docs(singleton): about create-api singleton changes
dolymood Oct 11, 2018
7ee0713
chore(example): validator use locale set to en-US
dolymood Oct 11, 2018
4cd186d
docs(form): add submit event detail - prevent default behaviour
dolymood Oct 11, 2018
2d561e7
build: package
dolymood Oct 12, 2018
7386de2
build: docs
dolymood Oct 12, 2018
d68c61c
docs(i18n): add version
dolymood Oct 12, 2018
5005799
build: docs
dolymood Oct 12, 2018
9998403
docs(quick-start): add checker & locale entry
dolymood Oct 12, 2018
736c0c0
docs(scroll): version
dolymood Oct 12, 2018
7676bc4
build: docs
dolymood Oct 12, 2018
02177f3
chore(scroll): fix example bug
Oct 15, 2018
1c221c2
Merge pull request #333 from didi/dev
Oct 15, 2018
8eadaa8
build: docs
Oct 15, 2018
1cba50f
fix(validator): remove findMessage
theniceangel Oct 15, 2018
fb4a03f
chore(upgrade): update to v1.11.1
theniceangel Oct 15, 2018
2e3ab32
build: package
theniceangel Oct 15, 2018
064d360
chore(example): input spell error
dolymood Oct 17, 2018
320f372
build: docs
dolymood Oct 17, 2018
72cafe7
docs(swipe): add 1.11 version diff
dolymood Oct 18, 2018
61a4786
build: docs
dolymood Oct 18, 2018
601b2ee
Fix nest scrolls bug (#340)
Oct 21, 2018
476538c
chore(package.json): 1.11.2
dolymood Oct 21, 2018
b8e26d6
build: package
dolymood Oct 21, 2018
6b52207
build: docs
dolymood Oct 21, 2018
c1f4ce3
chore(example): checkbox add click demo
dolymood Oct 23, 2018
7c838ef
docs(checkbox): add click demo doc
dolymood Oct 23, 2018
e5056a7
build: docs
dolymood Oct 23, 2018
fd82368
feat(textarea): support autoExpand prop to control init state
dolymood Nov 2, 2018
b2a5e03
test(textarea): add autoExpand prop test
dolymood Nov 2, 2018
6a5f3ff
docs(textarea): add autoExpand prop doc
dolymood Nov 2, 2018
c332862
Fix scrolls nest mode (#345)
Nov 2, 2018
fcfbc30
Feat recycle list (#344)
theniceangel Nov 7, 2018
55a1734
refactor(input): placeholder color set to normal
dolymood Nov 7, 2018
3b02a6d
refactor(textarea): placeholder color specificity to normal
dolymood Nov 7, 2018
0241801
chore(package.json): 1.12.0
dolymood Nov 7, 2018
fb46c5e
docs(scroll): nest mode required version 1.12
dolymood Nov 7, 2018
fa40c43
docs(recycle-list): add version
dolymood Nov 7, 2018
f532aa1
chore(types): add recycle-list component
dolymood Nov 7, 2018
38fc301
build: package
dolymood Nov 7, 2018
3fefd10
build: docs
dolymood Nov 7, 2018
d6e21f5
fix(recycle-list): change warning to warn
theniceangel Nov 8, 2018
2336640
chore(package.json): 1.12.1
dolymood Nov 8, 2018
a0fe79d
build: package
dolymood Nov 8, 2018
40ec2db
feat(form): submit method add skipValidate param
dolymood Nov 8, 2018
8709c0b
docs(form): add submit skitValidate param doc
dolymood Nov 8, 2018
4449009
chore(package.json): 1.12.2
dolymood Nov 8, 2018
900f393
docs(form): add version required
dolymood Nov 8, 2018
4ddb808
build: package
dolymood Nov 8, 2018
020c51b
build: docs
dolymood Nov 8, 2018
5538af1
fix(swipe): should update activeIndex when remove item
dolymood Nov 13, 2018
54399f1
chore(package.json): 1.12.3
dolymood Nov 13, 2018
d0215e4
build: package
dolymood Nov 13, 2018
45d08a5
docs(nav): add video tutorial
dolymood Nov 15, 2018
71d5d8b
build: docs
dolymood Nov 15, 2018
d45d98c
fix(example): fix page header invisible
dolymood Nov 15, 2018
7e05559
fix(recycle-list): can not scroll on iOS
dolymood Nov 15, 2018
b69f8ff
refactor(example): recycle list style
dolymood Nov 15, 2018
32991ff
chore(package.json): 1.12.4
dolymood Nov 15, 2018
79a454e
build: package
dolymood Nov 15, 2018
c860c8c
build: docs
dolymood Nov 15, 2018
99fd215
feat(form): add checker item
dolymood Nov 20, 2018
ff0838f
feat(tab-bar): support value prop
dolymood Nov 20, 2018
36c8d90
feat(tab-panels): support value prop for tab-panel
dolymood Nov 20, 2018
3ebc731
docs(tab-bar): add value prop doc
dolymood Nov 20, 2018
9241c34
feat(locale): support auto get Vue value
dolymood Nov 20, 2018
e24543d
chore(package.json): 1.12.5
dolymood Nov 20, 2018
5fdf90e
build: package
dolymood Nov 20, 2018
427cba9
build: docs
dolymood Nov 20, 2018
eac73a2
docs(quick-start): add video
dolymood Nov 23, 2018
533f387
build: docs
dolymood Nov 23, 2018
6a67fe4
Feat(TimePicket): support min & max
AmyFoxFN Dec 5, 2018
a0b7f78
chore: update version
AmyFoxFN Dec 5, 2018
7943b46
build: package
AmyFoxFN Dec 5, 2018
53f12f6
build: docs
AmyFoxFN Dec 5, 2018
870a302
Fix v-model typo (#369)
Leecason Dec 11, 2018
54fb5e2
chore: update scroll example's img (#372)
Dec 13, 2018
a6f53c7
build: docs
dolymood Dec 13, 2018
8478e72
chore(package.json): better-scroll version lock
dolymood Jan 3, 2019
9f82fe1
chore(package.json): 1.12.7
dolymood Jan 3, 2019
e65a03e
build: package
dolymood Jan 3, 2019
166adef
build: docs
dolymood Jan 3, 2019
03fcdb9
fix(image-preview): zoom image on iOS will be blurred
dolymood Jan 7, 2019
7acd801
chore(package.json): 1.12.8
dolymood Jan 7, 2019
aacf098
build: package
dolymood Jan 7, 2019
19b4c53
chore(docs): remove Video Tutorial
theniceangel Jan 8, 2019
2ce3d28
build: docs
theniceangel Jan 8, 2019
b45c51c
fix(slide): goToPage direction (#384)
Jan 22, 2019
facec89
chore(slide): add vertical unit test case
Jan 22, 2019
aabbb43
chore(package.json): 1.12.9
dolymood Jan 22, 2019
29620a6
build: package
dolymood Jan 22, 2019
7a8dd25
fix(recycle-list): check promise when mounted
dolymood Jan 31, 2019
d4856f2
feat(input): add blur & focus api
dolymood Jan 31, 2019
f2eb398
test(input): focus & blur api
dolymood Jan 31, 2019
40254f3
chore(package.json): 1.12.10
dolymood Jan 31, 2019
65bdb00
build: package
dolymood Jan 31, 2019
73a4b24
docs(input): add focus & blur api doc
dolymood Jan 31, 2019
e31a573
build: docs
dolymood Jan 31, 2019
f6d4cf6
sticky-ele组件导出错误 (#409)
chenfengjw163 Feb 13, 2019
c528eea
fix(radio): radio group support v-model when using group
dolymood Feb 14, 2019
0389bfc
chore(demo): radio group demo
dolymood Feb 14, 2019
4d2b9af
Recycle list fixbug (#410)
theniceangel Feb 15, 2019
ff4cc98
chore(package.json): 1.12.11
dolymood Feb 15, 2019
bd48d16
build: package
dolymood Feb 15, 2019
e89a5a5
build: docs
dolymood Feb 15, 2019
e9537e4
Recycle list add api (#417)
theniceangel Feb 27, 2019
1227d7a
fix(Slide): fix maxScrollX/Y caculating error in nested Slide (#418)
Mar 3, 2019
2c8900a
chore(types): add popup show, hide and remove declare
dolymood Mar 11, 2019
eb6848e
chore(package.json): 1.12.12
dolymood Mar 11, 2019
e5ea3ef
build: package
dolymood Mar 11, 2019
f443001
build: docs
dolymood Mar 11, 2019
bb94f54
chore(types): ts type declare err
dolymood Mar 11, 2019
c104441
fix(scroll-nav-bar): inline-block element should have vertical-align top
dolymood Mar 11, 2019
15226b6
fix(form): should sync validator value when submit
dolymood Mar 11, 2019
3b7f513
refactor(form): opti comment
dolymood Mar 11, 2019
cb94dbd
chore(package.json): 1.12.13
dolymood Mar 11, 2019
aaaca62
build: package
dolymood Mar 11, 2019
7989d46
build: docs
dolymood Mar 11, 2019
07c05a9
feat(date-picker): support display order
cuijing1031 Mar 23, 2019
f4393ee
docs(date-picker): columnOrder doc order
dolymood Mar 25, 2019
ffb936c
chore(package.json): 1.12.14
dolymood Mar 25, 2019
fa0c3a3
build: package
dolymood Mar 25, 2019
bc67948
build: docs
dolymood Mar 25, 2019
e196e03
feat: picker data add disabled option
hezhongfeng Apr 8, 2019
595000d
docs: Doc changes about picker data option
hezhongfeng Apr 8, 2019
a177a98
fix(scroll): nested scroll bug
Apr 10, 2019
9a059d2
chore(package.json): 1.12.15
Apr 10, 2019
2a6ae4a
build: package
Apr 10, 2019
3541b8b
Merge pull request #459 from didi/dev
Apr 11, 2019
5bae538
build: package
Apr 11, 2019
71f270a
upload
hezhongfeng Apr 12, 2019
8d7f5e4
change init and listen event order
hezhongfeng Apr 16, 2019
0db861a
upgrade bs
hezhongfeng Apr 17, 2019
9420009
delete log
hezhongfeng Apr 17, 2019
5f99a3f
Merge remote-tracking branch 'upstream/dev' into dev
hezhongfeng Apr 17, 2019
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
build/*.js
config/*.js
example/modules/*.js
44 changes: 22 additions & 22 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@
module.exports = {
root: true,
parser: 'babel-eslint',
parserOptions: {
sourceType: 'module'
},
// https://github.com/feross/standard/blob/master/RULES.md#javascript-standard-style
extends: 'standard',
// required to lint *.vue files
plugins: [
'html'
],
// add your custom rules here
'rules': {
// allow paren-less arrow functions
'arrow-parens': 0,
// allow async-await
'generator-star-spacing': 0,
// allow debugger during development
'no-debugger': process.env.NODE_ENV === 'production' ? 2 : 0,
'no-tabs': 0,
'space-before-function-paren': 0
}
root: true,
parser: 'babel-eslint',
parserOptions: {
sourceType: 'module'
},
// https://github.com/feross/standard/blob/master/RULES.md#javascript-standard-style
extends: 'standard',
// required to lint *.vue files
plugins: [
'html'
],
// add your custom rules here
'rules': {
// allow paren-less arrow functions
'arrow-parens': 0,
// allow async-await
'generator-star-spacing': 0,
// allow debugger during development
'no-debugger': process.env.NODE_ENV === 'production' ? 2 : 0,
'no-tabs': 0,
'space-before-function-paren': 0
}
}
46 changes: 46 additions & 0 deletions .github/CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
# Contributor Covenant Code of Conduct

## Our Pledge

In the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to making participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, gender identity and expression, level of experience, nationality, personal appearance, race, religion, or sexual identity and orientation.

## Our Standards

Examples of behavior that contributes to creating a positive environment include:

* Using welcoming and inclusive language
* Being respectful of differing viewpoints and experiences
* Gracefully accepting constructive criticism
* Focusing on what is best for the community
* Showing empathy towards other community members

Examples of unacceptable behavior by participants include:

* The use of sexualized language or imagery and unwelcome sexual attention or advances
* Trolling, insulting/derogatory comments, and personal or political attacks
* Public or private harassment
* Publishing others' private information, such as a physical or electronic address, without explicit permission
* Other conduct which could reasonably be considered inappropriate in a professional setting

## Our Responsibilities

Project maintainers are responsible for clarifying the standards of acceptable behavior and are expected to take appropriate and fair corrective action in response to any instances of unacceptable behavior.

Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, or to ban temporarily or permanently any contributor for other behaviors that they deem inappropriate, threatening, offensive, or harmful.

## Scope

This Code of Conduct applies both within project spaces and in public spaces when an individual is representing the project or its community. Examples of representing a project or community include using an official project e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event. Representation of a project may be further defined and clarified by project maintainers.

## Enforcement

Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team at opensource@didichuxing.com. The project team will review and investigate all complaints, and will respond in a way that it deems appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately.

Project maintainers who do not follow or enforce the Code of Conduct in good faith may face temporary or permanent repercussions as determined by other members of the project's leadership.

## Attribution

This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4, available at [http://contributor-covenant.org/version/1/4][version]

[homepage]: http://contributor-covenant.org
[version]: http://contributor-covenant.org/version/1/4/
30 changes: 7 additions & 23 deletions .github/ISSUE_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -1,26 +1,10 @@
### A feature or reporting a bug?
<!--
IMPORTANT: Please use the following link to create a new issue:

https://cube-ui.github.io/cube-issue-helper/

### What is the current behavior?
If your issue was not created using the app above, it will be closed immediately.


### What is the expected behavior?


### How to reproduce the current behavior (if this is a bug)?


#### Provide the test code and the tested page URL (if applicable)

Tested page URL:

Test code

```js

```

### Specify your

* vue version:
* cube-ui version:
中文用户请注意:
请使用上面的链接来创建新的 issue。如果不是用上述工具创建的 issue 会被自动关闭。
-->
18 changes: 15 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,9 +1,21 @@
.idea/
.DS_Store
node_modules/
npm-debug.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
deploy/
test/unit/coverage
test/e2e/reports
selenium-debug.log
yarn.lock

# Test publish files
cube-ui-*.tgz
package/

# Editor directories and files
.idea
.vscode
*.suo
*.ntvs*
*.njsproj
*.sln
10 changes: 10 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,15 @@ node_js:
branches:
only:
- master
- dev
script:
- npm test
notifications:
webhooks:
urls:
- https://www.travisbuddy.com/
on_success: never
on_failure: always
on_start: never
on_cancel: never
on_error: never
26 changes: 23 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# cube-ui [![Build Status](https://travis-ci.org/didi/cube-ui.svg?branch=master)](https://travis-ci.org/didi/cube-ui?branch=master) [![codecov.io](http://codecov.io/github/didi/cube-ui/coverage.svg?branch=master)](http://codecov.io/github/didi/cube-ui?branch=master)

# cube-ui [![Build Status](https://travis-ci.org/didi/cube-ui.svg?branch=master)](https://travis-ci.org/didi/cube-ui?branch=master) [![codecov.io](http://codecov.io/github/didi/cube-ui/coverage.svg?branch=master)](http://codecov.io/github/didi/cube-ui?branch=master) [![downloads](https://img.shields.io/npm/dm/cube-ui.svg)](https://www.npmjs.com/package/cube-ui)

> A fantastic mobile ui lib implement by Vue.

Expand All @@ -8,7 +9,21 @@
- [Docs](https://didi.github.io/cube-ui/#/en-US/docs)
- [Example](https://didi.github.io/cube-ui/example/)

![example QR](./assets/example-qr.png)
![Example QR](./assets/example-qr.png)

- [Application Guide](https://github.com/cube-ui/cube-application-guide)

### Communication

![QQ Community QR](./assets/cube-qq-QR.jpg)

### New cube-ui project ?

Recommend use the [CLI tools](https://github.com/cube-ui/cube-template) base on [vue-cli](https://github.com/vuejs/vue-cli) to init the config and base code:

```shell
$ vue init cube-ui/cube-template projectname
```

### Install

Expand All @@ -29,7 +44,12 @@ Vue.use(Cube)

```js
import Vue from 'vue'
import { Button, ActionSheet } from 'cube-ui'
import {
/* eslint-disable no-unused-vars */
Style,
Button,
ActionSheet
} from 'cube-ui'

Vue.use(Button)
Vue.use(ActionSheet)
Expand Down
19 changes: 17 additions & 2 deletions README_zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,17 @@
- [文档](https://didi.github.io/cube-ui/#/zh-CN/docs)
- [示例](https://didi.github.io/cube-ui/example/)

![示例二维码](./assets/example-qr.png)
![示例二维码](./assets/example-qr.png)

- [应用教程](https://github.com/cube-ui/cube-application-guide)

### 新项目?

推荐使用基于 [vue-cli](https://github.com/vuejs/vue-cli) 的 [CLI 工具](https://github.com/cube-ui/cube-template) 来初始化配置和代码:

```shell
$ vue init cube-ui/cube-template projectname
```

### 安装

Expand All @@ -29,7 +39,12 @@ Vue.use(Cube)

```js
import Vue from 'vue'
import { Button, ActionSheet } from 'cube-ui'
import {
/* eslint-disable no-unused-vars */
Style,
Button,
ActionSheet
} from 'cube-ui'

Vue.use(Button)
Vue.use(ActionSheet)
Expand Down
Binary file added assets/cube-qq-QR.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
76 changes: 50 additions & 26 deletions build/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,36 +38,60 @@ function buildPack(webpackConfig, cb, spinnerText) {
})
}

buildPack(webpackConfig, function () {
webpackConfig.output.filename = utils.assetsPath('[name].min.js')
webpackConfig.output.chunkFilename = '[name].min.js'
webpackConfig.plugins.splice(2, 1, new ExtractTextPlugin(utils.assetsPath('[name].min.css')), new OptimizeCSSPlugin({
cssProcessorOptions: {
safe: true
}
}))
// add UglifyJsPlugin
webpackConfig.plugins.splice(2, 0, new webpack.optimize.UglifyJsPlugin({
compress: {
warnings: false
}
}))
function fullBuild(cb) {
// build index.js
buildPack(webpackConfig, function () {
buildPack(webpackModulesConfig, function () {
webpackModulesConfig.output.filename = utils.assetsPath('[name]/[name].min.js')
webpackModulesConfig.output.chunkFilename = '[name]/[name].min.js'
webpackModulesConfig.plugins.splice(2, 1, new ExtractTextPlugin(utils.assetsPath('[name]/[name].min.css')), new OptimizeCSSPlugin({

// build cube.min.js
webpackConfig.output.filename = utils.assetsPath('[name].min.js')
webpackConfig.output.chunkFilename = '[name].min.js'
webpackConfig.plugins.splice(1, 1,
new webpack.DefinePlugin({
'process.env': config.build.env
}),
new webpack.optimize.UglifyJsPlugin({
compress: {
warnings: false
}
}),
new ExtractTextPlugin(utils.assetsPath('[name].min.css')),
new OptimizeCSSPlugin({
cssProcessorOptions: {
safe: true
}
}))
// 增加 UglifyJsPlugin
webpackModulesConfig.plugins.splice(2, 0, new webpack.optimize.UglifyJsPlugin({
})
)
buildPack(webpackConfig, function () {
cb && cb()
}, 'building for cube.min.js')
}, 'building for index.js')
}

function modulesBuild() {
// build ${module}/index.js
buildPack(webpackModulesConfig, function () {

// build ${module}/${module}.min.js
webpackModulesConfig.output.filename = utils.assetsPath('[name]/[name].min.js')
webpackModulesConfig.output.chunkFilename = '[name]/[name].min.js'
webpackModulesConfig.plugins.splice(1, 1,
new webpack.DefinePlugin({
'process.env': config.build.env
}),
new webpack.optimize.UglifyJsPlugin({
compress: {
warnings: false
}
}))
buildPack(webpackModulesConfig, null, 'building for compressed component files...')
}, 'building for uncompressed component files...')
}, 'building for compressed files...')
})
}),
new ExtractTextPlugin(utils.assetsPath('[name]/[name].min.css')),
new OptimizeCSSPlugin({
cssProcessorOptions: {
safe: true
}
})
)
buildPack(webpackModulesConfig, null, 'building for ${module}/${module}.min.js')
}, 'building for ${module}/index.js')
}

fullBuild(modulesBuild)
1 change: 1 addition & 0 deletions build/document/webpack.prod.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ var webpackConfig = merge(baseWebpackConfig, {
safe: true
}
}),
new webpack.HashedModuleIdsPlugin(),
// generate dist index.html with correct asset hash for caching.
// you can customize output by editing /index.html
// see https://github.com/ampedandwired/html-webpack-plugin
Expand Down
6 changes: 5 additions & 1 deletion build/release/docs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,9 @@ git pull origin master
npm run doc-demo-build
# ADD commit
git add docs/
git commit -m 'docs build'
git commit -m 'build: docs'
git push origin master
git checkout dev
git rebase master
git push origin dev
git checkout master
9 changes: 8 additions & 1 deletion build/release/publish.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,22 @@

# git pull
git pull origin master
# npm install
rm package-lock.json
npm install --registry=https://registry.npmjs.org
# build
npm run build
# ADD commit
git add -A
git commit -m 'publish build'
git commit -m 'build: package'
git push origin master
# replace src/ __VERSION__
node ./build/release/replace-version.js
# publish
npm publish
# checkout src/index.js
git checkout src/index.js
git checkout dev
git rebase master
git push origin dev
git checkout master
3 changes: 2 additions & 1 deletion build/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ exports.cssLoaders = function (options) {
if (options.extract) {
return ExtractTextPlugin.extract({
use: loaders,
fallback: 'vue-style-loader'
fallback: 'vue-style-loader',
publicPath: options.extract.publicPath
})
} else {
return ['vue-style-loader'].concat(loaders)
Expand Down