Commit 2a745aa8 authored by Leopoldthecoder's avatar Leopoldthecoder Committed by 杨奕

Form: fix validateDisabled

parent 4aff6382
...@@ -44,9 +44,7 @@ if [ "$TRAVIS_TAG" ]; then ...@@ -44,9 +44,7 @@ if [ "$TRAVIS_TAG" ]; then
SUB_FOLDER='1.4' SUB_FOLDER='1.4'
mkdir $SUB_FOLDER mkdir $SUB_FOLDER
rm -rf *.js *.css *.map static
rm -rf $SUB_FOLDER/** rm -rf $SUB_FOLDER/**
cp -rf ../../examples/element-ui/** .
cp -rf ../../examples/element-ui/** $SUB_FOLDER/ cp -rf ../../examples/element-ui/** $SUB_FOLDER/
git add -A . git add -A .
git commit -m "$TRAVIS_COMMIT_MSG" git commit -m "$TRAVIS_COMMIT_MSG"
......
...@@ -8,9 +8,9 @@ git clone -b gh-pages https://github.com/ElemeFE/element.git && cd element ...@@ -8,9 +8,9 @@ git clone -b gh-pages https://github.com/ElemeFE/element.git && cd element
SUB_FOLDER='1.4' SUB_FOLDER='1.4'
mkdir $SUB_FOLDER mkdir $SUB_FOLDER
rm -rf *.js *.css *.map static # rm -rf *.js *.css *.map static
rm -rf $SUB_FOLDER/** rm -rf $SUB_FOLDER/**
cp -rf ../../examples/element-ui/** . # cp -rf ../../examples/element-ui/** .
cp -rf ../../examples/element-ui/** $SUB_FOLDER/ cp -rf ../../examples/element-ui/** $SUB_FOLDER/
cd ../.. cd ../..
......
#!/usr/bin/env sh #!/usr/bin/env sh
git checkout dev git checkout 1.x
if test -n "$(git status --porcelain)"; then if test -n "$(git status --porcelain)"; then
echo 'Unclean working tree. Commit or stash changes first.' >&2; echo 'Unclean working tree. Commit or stash changes first.' >&2;
......
git checkout master
git merge dev
#!/usr/bin/env sh #!/usr/bin/env sh
set -e set -e
echo "Enter release version: " echo "Enter release version: "
...@@ -19,11 +16,7 @@ then ...@@ -19,11 +16,7 @@ then
echo "Releasing theme-default $VERSION ..." echo "Releasing theme-default $VERSION ..."
cd packages/theme-default cd packages/theme-default
npm version $VERSION --message "[release] $VERSION" npm version $VERSION --message "[release] $VERSION"
if [[ $VERSION =~ "beta" ]] npm publish
then
npm publish --tag beta
else
npm publish
fi fi
cd ../.. cd ../..
...@@ -33,16 +26,8 @@ then ...@@ -33,16 +26,8 @@ then
npm version $VERSION --message "[release] $VERSION" npm version $VERSION --message "[release] $VERSION"
# publish # publish
git push eleme master git push eleme 1.x
git push eleme refs/tags/v$VERSION git push eleme refs/tags/v$VERSION
git checkout dev
git rebase master
git push eleme dev
if [[ $VERSION =~ "beta" ]] npm publish --tag legacy
then
npm publish --tag beta
else
npm publish
fi
fi fi
...@@ -147,6 +147,7 @@ ...@@ -147,6 +147,7 @@
}, },
methods: { methods: {
validate(trigger, callback = noop) { validate(trigger, callback = noop) {
this.validateDisabled = false;
var rules = this.getFilteredRule(trigger); var rules = this.getFilteredRule(trigger);
if ((!rules || rules.length === 0) && !this._props.hasOwnProperty('required')) { if ((!rules || rules.length === 0) && !this._props.hasOwnProperty('required')) {
callback(); callback();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment