@nstc-business/tbm 1.0.0 → 1.0.2

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.
package/package.json CHANGED
@@ -1,8 +1,7 @@
1
1
  {
2
2
  "name": "@nstc-business/tbm",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
4
4
  "private": false,
5
- "main": "src/index.js",
6
5
  "scripts": {
7
6
  "serve": "vue-cli-service serve",
8
7
  "test": "vue-cli-service serve --test",
@@ -18,6 +17,7 @@
18
17
  "dependencies": {
19
18
  "axios": "^0.21.4",
20
19
  "core-js": "^3.6.5",
20
+ "numerify": "*",
21
21
  "dayjs": "^1.10.7",
22
22
  "el-table-draggable": "^1.4.4",
23
23
  "element-ui": "^2.15.6",
@@ -31,8 +31,7 @@
31
31
  "vuex": "^3.6.2"
32
32
  },
33
33
  "files": [
34
- "src/components",
35
- "src/index.js"
34
+ "src/components"
36
35
  ],
37
36
  "devDependencies": {
38
37
  "@babel/plugin-proposal-optional-chaining": "^7.14.5",
@@ -1,8 +0,0 @@
1
- import Test from './src/index.vue'
2
-
3
- /* istanbul ignore next */
4
- Test.install = function (Vue) {
5
- Vue.component(Test.name, Test)
6
- }
7
-
8
- export default Test
@@ -1,28 +0,0 @@
1
- <template>
2
- <div>
3
- <!-- <span>测试组件</span> -->
4
- <el-button type="primary" @click="setInfo">发票详情</el-button>
5
- <!-- 发票详情组件 -->
6
- <invoiceDetail ref="invoiceDetail"></invoiceDetail>
7
- </div>
8
- </template>
9
-
10
- <script>
11
- import invoiceDetail from '@/components/invoiceDetail'
12
- export default {
13
- name: 'Test',
14
- components: {
15
- invoiceDetail
16
- },
17
- data() {
18
- return {}
19
- },
20
- methods: {
21
- setInfo() {
22
- this.$refs['invoiceDetail'].setInfo({ invoiceId: 275 })
23
- }
24
- }
25
- }
26
- </script>
27
-
28
- <style lang="less" scoped></style>
package/src/index.js DELETED
@@ -1,24 +0,0 @@
1
- // 组件导入
2
- import Test from './components/test/index.js'
3
-
4
- const components = [Test]
5
-
6
- const install = function (Vue, options = { prefix: '' }) {
7
- components.forEach(component => {
8
- let name = component.name
9
- if (!name) return console.error('必须设置组件名称:', component)
10
- name = options.prefix + name.replace(name[0], name[0].toUpperCase())
11
- Vue.component(name, component)
12
- })
13
- }
14
-
15
- /* istanbul ignore if */
16
- if (typeof window !== 'undefined' && window.Vue) {
17
- install(window.Vue)
18
- }
19
-
20
- export default {
21
- version: '0.1.0',
22
- install,
23
- Test
24
- }