[Improvement] Support Vue.use to register a component (#401)

This commit is contained in:
neverland
2017-12-11 20:41:19 +08:00
committed by GitHub
parent 7dbb5db256
commit 6f2b4c99da
162 changed files with 432 additions and 490 deletions

View File

@@ -82,10 +82,11 @@ import SkuMessages from '../components/SkuMessages';
import SkuActions from '../components/SkuActions';
import { isAllSelected, getSkuComb, getSelectedSkuValues } from '../utils/skuHelper';
import { LIMIT_TYPE, DEFAULT_STEPPER_TITLE } from '../constants';
import { create } from '../../utils';
const { QUOTA_LIMIT } = LIMIT_TYPE;
export default {
export default create({
name: 'van-sku',
components: {
@@ -103,9 +104,7 @@ export default {
goodsId: [Number, String],
initialSku: {
type: Object,
default() {
return {};
}
default: () => ({})
},
sku: Object,
quota: {
@@ -134,9 +133,7 @@ export default {
disableStepperInput: Boolean,
messagePlaceholderMap: {
type: Object,
default() {
return {};
}
default: () => ({})
},
value: Boolean
},
@@ -326,5 +323,5 @@ export default {
});
}
}
};
});
</script>