jwt-ui 0.1.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.
package/package.json CHANGED
@@ -1,17 +1,34 @@
1
1
  {
2
2
  "name": "jwt-ui",
3
- "version": "0.1.0",
3
+ "version": "1.0.1",
4
4
  "private": false,
5
+ "license": "MIT",
6
+ "main": "lib/jwt-ui.umd.min.js",
7
+ "keywords": [
8
+ "vue",
9
+ "ui"
10
+ ],
11
+ "files": [
12
+ "lib"
13
+ ],
5
14
  "scripts": {
6
15
  "dev": "vue-cli-service serve --open",
7
16
  "build": "vue-cli-service build",
8
17
  "lint": "vue-cli-service lint",
9
- "build-bundle": "vue-cli-service build --target lib --name component-test ./src/components/index.js"
18
+ "lib": "vue-cli-service build --target lib --name jwt-ui --dest lib src/packages/index.js",
19
+ "clear": "npm cache clean -f&&rimraf node_modules&&npm i --registry=https://registry.npm.taobao.org",
20
+ "use:npm": "nrm use npm",
21
+ "use:taobao": "nrm use taobao"
22
+ },
23
+ "peerDependencies": {
24
+ "element-plus": "^2.2.0",
25
+ "vue": "^3.2.0",
26
+ "remixicon": "^2.5.0"
10
27
  },
11
28
  "dependencies": {
12
29
  "core-js": "^3.6.5",
13
- "user": "^0.0.0",
14
- "vue": "^3.0.0"
30
+ "element-plus": "^2.2.0",
31
+ "remixicon": "^2.5.0"
15
32
  },
16
33
  "devDependencies": {
17
34
  "@vue/cli-plugin-babel": "~4.5.0",
package/babel.config.js DELETED
@@ -1,5 +0,0 @@
1
- module.exports = {
2
- presets: [
3
- '@vue/cli-plugin-babel/preset'
4
- ]
5
- }
Binary file
package/public/index.html DELETED
@@ -1,17 +0,0 @@
1
- <!DOCTYPE html>
2
- <html lang="">
3
- <head>
4
- <meta charset="utf-8">
5
- <meta http-equiv="X-UA-Compatible" content="IE=edge">
6
- <meta name="viewport" content="width=device-width,initial-scale=1.0">
7
- <link rel="icon" href="<%= BASE_URL %>favicon.ico">
8
- <title><%= htmlWebpackPlugin.options.title %></title>
9
- </head>
10
- <body>
11
- <noscript>
12
- <strong>We're sorry but <%= htmlWebpackPlugin.options.title %> doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
13
- </noscript>
14
- <div id="app"></div>
15
- <!-- built files will be auto injected -->
16
- </body>
17
- </html>
package/src/App.vue DELETED
@@ -1,26 +0,0 @@
1
- <template>
2
- <img alt="Vue logo" src="./assets/logo.png" />
3
- <base-input></base-input>
4
- </template>
5
-
6
- <script>
7
- import BaseInput from './components/BaseInput/index.vue';
8
-
9
- export default {
10
- name: 'App',
11
- components: {
12
- BaseInput,
13
- },
14
- };
15
- </script>
16
-
17
- <style>
18
- #app {
19
- font-family: Avenir, Helvetica, Arial, sans-serif;
20
- -webkit-font-smoothing: antialiased;
21
- -moz-osx-font-smoothing: grayscale;
22
- text-align: center;
23
- color: #2c3e50;
24
- margin-top: 60px;
25
- }
26
- </style>
Binary file
@@ -1,32 +0,0 @@
1
- <template>
2
- <div class="table-actions">
3
- <div>测试发布npm</div>
4
- </div>
5
- </template>
6
-
7
- <script>
8
- import { defineComponent } from 'vue';
9
-
10
- export default defineComponent({
11
- name: 'BaseImg',
12
- props: {},
13
- emits: ['table-action'],
14
- setup(props, { emit }) {
15
- const handleTableAction = (action) => {
16
- // console.log(`action`, action)
17
- emit('table-action', action);
18
- };
19
- return {
20
- handleTableAction,
21
- };
22
- },
23
- });
24
- </script>
25
-
26
- <style lang="scss" scoped>
27
- // .table-actions {
28
- // input {
29
- // border: 1px solid red;
30
- // }
31
- // }
32
- </style>
@@ -1,36 +0,0 @@
1
- <template>
2
- <div class="table-actions">
3
- <input type="text" @change="inputChange" />
4
- </div>
5
- </template>
6
-
7
- <script>
8
- import { defineComponent } from 'vue';
9
-
10
- export default defineComponent({
11
- name: 'BaseInput',
12
- props: {},
13
- emits: ['table-action'],
14
- setup(props, { emit }) {
15
- const handleTableAction = (action) => {
16
- // console.log(`action`, action)
17
- emit('table-action', action);
18
- };
19
- const inputChange = (val) => {
20
- emit('change', val);
21
- };
22
- return {
23
- handleTableAction,
24
- inputChange,
25
- };
26
- },
27
- });
28
- </script>
29
-
30
- <style lang="scss">
31
- .table-actions {
32
- input {
33
- border: 1px solid red;
34
- }
35
- }
36
- </style>
@@ -1,14 +0,0 @@
1
- import Vue from "vue";
2
- import BaseInput from "./BaseInput/index.vue";
3
- import BaseImg from "./BaseImg/index.vue";
4
-
5
- const Components = {
6
- BaseInput,
7
- BaseImg
8
- };
9
-
10
- Object.keys(Components).forEach(name => {
11
- Vue.component(name, Components[name]);
12
- });
13
-
14
- export default Components;
package/src/main.js DELETED
@@ -1,4 +0,0 @@
1
- import { createApp } from 'vue'
2
- import App from './App.vue'
3
-
4
- createApp(App).mount('#app')