anytrek-front-public-component 1.0.0 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,17 @@
1
+ <template>
2
+ <div>
3
+ <h2>Hello from MyComponent!</h2>
4
+ </div>
5
+ </template>
6
+
7
+ <script>
8
+ export default {
9
+ name: 'MyComponent'
10
+ };
11
+ </script>
12
+
13
+ <style scoped>
14
+ h2 {
15
+ color: #42b983;
16
+ }
17
+ </style>
package/index.js CHANGED
@@ -1 +1,10 @@
1
- console.log('test');
1
+ import anytrekTimepick from './component/anytrekTimepick.vue';
2
+
3
+ const frontPublicComponent = {
4
+ install(app) {
5
+ // 注册全局组件
6
+ app.component('anytrekTimepick', anytrekTimepick);
7
+ }
8
+ };
9
+
10
+ export default frontPublicComponent;
package/package.json CHANGED
@@ -1,11 +1,15 @@
1
1
  {
2
2
  "name": "anytrek-front-public-component",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "some common component",
5
5
  "main": "index.js",
6
6
  "scripts": {
7
7
  "test": "echo \"Error: no test specified\" && exit 1"
8
8
  },
9
9
  "author": "xbin_liao@anytrek.cn",
10
- "license": "ISC"
10
+ "keywords": ["vue", "vue3", "plugin"],
11
+ "license": "ISC",
12
+ "dependencies": {
13
+ "vue": "^3.5.12"
14
+ }
11
15
  }