Skip to content

Commit 2a745aa

Browse files
Form: fix validateDisabled
1 parent 4aff638 commit 2a745aa

File tree

5 files changed

+7
-23
lines changed

5 files changed

+7
-23
lines changed

build/deploy-ci.sh

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,7 @@ if [ "$TRAVIS_TAG" ]; then
4444

4545
SUB_FOLDER='1.4'
4646
mkdir $SUB_FOLDER
47-
rm -rf *.js *.css *.map static
4847
rm -rf $SUB_FOLDER/**
49-
cp -rf ../../examples/element-ui/** .
5048
cp -rf ../../examples/element-ui/** $SUB_FOLDER/
5149
git add -A .
5250
git commit -m "$TRAVIS_COMMIT_MSG"

build/deploy-faas.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ git clone -b gh-pages https://github.com/ElemeFE/element.git && cd element
88
SUB_FOLDER='1.4'
99
mkdir $SUB_FOLDER
1010

11-
rm -rf *.js *.css *.map static
11+
# rm -rf *.js *.css *.map static
1212
rm -rf $SUB_FOLDER/**
13-
cp -rf ../../examples/element-ui/** .
13+
# cp -rf ../../examples/element-ui/** .
1414
cp -rf ../../examples/element-ui/** $SUB_FOLDER/
1515
cd ../..
1616

build/git-release.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/usr/bin/env sh
2-
git checkout dev
2+
git checkout 1.x
33

44
if test -n "$(git status --porcelain)"; then
55
echo 'Unclean working tree. Commit or stash changes first.' >&2;

build/release.sh

Lines changed: 3 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
git checkout master
2-
git merge dev
3-
41
#!/usr/bin/env sh
52
set -e
63
echo "Enter release version: "
@@ -19,11 +16,7 @@ then
1916
echo "Releasing theme-default $VERSION ..."
2017
cd packages/theme-default
2118
npm version $VERSION --message "[release] $VERSION"
22-
if [[ $VERSION =~ "beta" ]]
23-
then
24-
npm publish --tag beta
25-
else
26-
npm publish
19+
npm publish
2720
fi
2821
cd ../..
2922

@@ -33,16 +26,8 @@ then
3326
npm version $VERSION --message "[release] $VERSION"
3427

3528
# publish
36-
git push eleme master
29+
git push eleme 1.x
3730
git push eleme refs/tags/v$VERSION
38-
git checkout dev
39-
git rebase master
40-
git push eleme dev
4131

42-
if [[ $VERSION =~ "beta" ]]
43-
then
44-
npm publish --tag beta
45-
else
46-
npm publish
47-
fi
32+
npm publish --tag legacy
4833
fi

packages/form/src/form-item.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,7 @@
147147
},
148148
methods: {
149149
validate(trigger, callback = noop) {
150+
this.validateDisabled = false;
150151
var rules = this.getFilteredRule(trigger);
151152
if ((!rules || rules.length === 0) && !this._props.hasOwnProperty('required')) {
152153
callback();

0 commit comments

Comments
 (0)