Skip to content

Commit 9f769bb

Browse files
lianghx-319levy9527
authored andcommitted
chore: 迁移 SPaaSTeam 已有的组件 (#8)
1 parent 158b879 commit 9f769bb

File tree

138 files changed

+7134
-5
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

138 files changed

+7134
-5
lines changed

build/bin/build-entry.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@ const install = function(Vue, opts = {}) {
4242
Vue.prototype.$prompt = MessageBox.prompt;
4343
Vue.prototype.$notify = Notification;
4444
Vue.prototype.$message = Message;
45+
Vue.prototype.$alertCenter = MessageBoxCenter.alert;
46+
Vue.prototype.$confirmCenter = MessageBoxCenter.confirm;
4547
4648
};
4749
@@ -77,7 +79,7 @@ ComponentNames.forEach(name => {
7779
package: name
7880
}));
7981

80-
if (['Loading', 'MessageBox', 'Notification', 'Message', 'InfiniteScroll'].indexOf(componentName) === -1) {
82+
if (['Loading', 'MessageBox', 'Notification', 'Message', 'InfiniteScroll', 'MessageBoxCenter'].indexOf(componentName) === -1) {
8183
installTemplate.push(render(INSTALL_COMPONENT_TEMPLATE, {
8284
name: componentName,
8385
component: name

build/webpack.conf.js

+4
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,10 @@ module.exports = {
6161
preserveWhitespace: false
6262
}
6363
}
64+
},
65+
{
66+
test: /\.svg$/,
67+
loader: 'svg-inline-loader'
6468
}
6569
]
6670
},

components.json

+14-1
Original file line numberDiff line numberDiff line change
@@ -80,5 +80,18 @@
8080
"cascader-panel": "./packages/cascader-panel/index.js",
8181
"avatar": "./packages/avatar/index.js",
8282
"drawer": "./packages/drawer/index.js",
83-
"popconfirm": "./packages/popconfirm/index.js"
83+
"popconfirm": "./packages/popconfirm/index.js",
84+
"lr-container": "./packages/lr-container/index.js",
85+
"loading-button": "./packages/loading-button/index.js",
86+
"message-box-center": "./packages/message-box-center/index.js",
87+
"tabs-dotted": "./packages/tabs-dotted/index.js",
88+
"data-mapper": "./packages/data-mapper/index.js",
89+
"checkbox-img-button": "./packages/checkbox-img-button/index.js",
90+
"radio-img-button": "./packages/radio-img-button/index.js",
91+
"icon-checkbox": "./packages/icon-checkbox/index.js",
92+
"status-steps": "./packages/status-steps/index.js",
93+
"panel": "./packages/panel/index.js",
94+
"skeleton": "./packages/skeleton/index.js",
95+
"empty": "./packages/empty/index.js",
96+
"affix": "./packages/affix/index.js"
8497
}

examples/docs/en-US/affix.md

+1

examples/docs/en-US/data-mapper.md

+1

examples/docs/en-US/empty.md

+1

examples/docs/en-US/icon-checkbox.md

+1

examples/docs/en-US/loading-button.md

+1

examples/docs/en-US/lr-container.md

+1

examples/docs/en-US/panel.md

+1
+1

examples/docs/en-US/skeleton.md

+1

examples/docs/en-US/status-steps.md

+1

examples/docs/en-US/tabs-dotted.md

+1

examples/docs/es/affix.md

+1
+1

examples/docs/es/data-mapper.md

+1

examples/docs/es/empty.md

+1

examples/docs/es/icon-checkbox.md

+1

examples/docs/es/loading-button.md

+1

examples/docs/es/lr-container.md

+1
+1

examples/docs/es/panel.md

+1

examples/docs/es/radio-img-button.md

+1

examples/docs/es/skeleton.md

+1

examples/docs/es/status-steps.md

+1

examples/docs/es/tabs-dotted.md

+1

examples/docs/fr-FR/affix.md

+1

examples/docs/fr-FR/data-mapper.md

+1

examples/docs/fr-FR/empty.md

+1

examples/docs/fr-FR/icon-checkbox.md

+1

examples/docs/fr-FR/loading-button.md

+1

examples/docs/fr-FR/lr-container.md

+1

examples/docs/fr-FR/panel.md

+1
+1

examples/docs/fr-FR/skeleton.md

+1

examples/docs/fr-FR/status-steps.md

+1

examples/docs/fr-FR/tabs-dotted.md

+1

examples/docs/zh-CN/affix.md

+108
+130

0 commit comments

Comments
 (0)