Browse Source

docs: udpate

pull/538/head
tangjinzhou 6 years ago
parent
commit
04501dec3d
  1. 2
      components/table/demo/edit-row.md
  2. 2
      components/tree-select/demo/treeData.md
  3. 1
      scripts/gulpfile.js
  4. 2
      site/components/CarbonAds.vue

2
components/table/demo/edit-row.md

@ -12,7 +12,7 @@ Table with editable rows.
<template> <template>
<a-table :columns="columns" :dataSource="data" bordered> <a-table :columns="columns" :dataSource="data" bordered>
<template v-for="col in ['name', 'age', 'address']" :slot="col" slot-scope="text, record, index"> <template v-for="col in ['name', 'age', 'address']" :slot="col" slot-scope="text, record, index">
<div> <div :key="col">
<a-input <a-input
v-if="record.editable" v-if="record.editable"
style="margin: -5px 0" style="margin: -5px 0"

2
components/tree-select/demo/treeData.md

@ -19,7 +19,7 @@ The tree structure can be populated using `treeData` property. This is a quick a
v-model="value" v-model="value"
> >
<span style="color: #08c" slot="title" slot-scope="{key, value}" v-if="key='0-0-1'"> <span style="color: #08c" slot="title" slot-scope="{key, value}" v-if="key='0-0-1'">
<a-icon type="home"/>Child Node1 {{value}} Child Node1 {{value}}
</span> </span>
</a-tree-select> </a-tree-select>
</template> </template>

1
scripts/gulpfile.js

@ -113,6 +113,7 @@ function copyHtml() {
gulp.task('_site', done => { gulp.task('_site', done => {
dist(() => { dist(() => {
copyHtml(); copyHtml();
done();
}); });
}); });
gulp.task('copy-html', () => { gulp.task('copy-html', () => {

2
site/components/CarbonAds.vue

@ -6,7 +6,7 @@ const carbonUrls = {
'ant-design-vue.gitee.io':'//cdn.carbonads.com/carbon.js?serve=CK7DL2JN&placement=antdesignvuegiteeio', 'ant-design-vue.gitee.io':'//cdn.carbonads.com/carbon.js?serve=CK7DL2JN&placement=antdesignvuegiteeio',
'vue.ant.design': '//cdn.carbonads.com/carbon.js?serve=CK7DL2JW&placement=vueantdesign', 'vue.ant.design': '//cdn.carbonads.com/carbon.js?serve=CK7DL2JW&placement=vueantdesign',
}; };
const carbonUrl = carbonUrls[location.host] || '//cdn.carbonads.com/carbon.js?serve=CK7DL2JW&placement=vuecomponentgithubio'; const carbonUrl = carbonUrls[location.host] || '//cdn.carbonads.com/carbon.js?serve=CK7DL2JW&placement=vueantdesign';
export default { export default {
props: { props: {
isMobile: Boolean, isMobile: Boolean,

Loading…
Cancel
Save