zydx-plus 1.0.2 → 1.0.4

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,45 +1,101 @@
1
1
  {
2
2
  "name": "zydx-plus",
3
- "version": "1.0.2",
4
- "private": false,
5
- "main": "./src/index.js",
6
- "files": ["dist/*","src/*","*.json", "*.js"],
3
+ "version": "1.0.4",
4
+ "description": "Vue.js",
5
+ "main": "src/index.js",
6
+ "files": [
7
+ "src"
8
+ ],
7
9
  "scripts": {
8
10
  "bootstrap": "yarn || npm i",
9
11
  "serve": "vue-cli-service serve",
10
12
  "build": "vue-cli-service build",
11
13
  "lint": "vue-cli-service lint"
12
14
  },
15
+ "keywords": [
16
+ "eleme",
17
+ "vue",
18
+ "components"
19
+ ],
20
+ "license": "MIT",
21
+ "author": "",
13
22
  "peerDependencies": {
14
- "vue": "^2.5.2"
23
+ "vue": "^2.5.17"
15
24
  },
16
25
  "devDependencies": {
17
- "@babel/core": "^7.12.16",
18
- "@babel/eslint-parser": "^7.12.16",
19
- "@vue/cli-plugin-babel": "~5.0.0",
20
- "@vue/cli-plugin-eslint": "~5.0.0",
21
- "@vue/cli-service": "~5.0.0",
22
- "eslint": "^7.32.0",
23
- "eslint-plugin-vue": "^8.0.3",
24
- "vue-template-compiler": "^2.6.14"
25
- },
26
- "eslintConfig": {
27
- "root": true,
28
- "env": {
29
- "node": true
30
- },
31
- "extends": [
32
- "plugin:vue/essential",
33
- "eslint:recommended"
34
- ],
35
- "parserOptions": {
36
- "parser": "@babel/eslint-parser"
37
- },
38
- "rules": {}
39
- },
40
- "browserslist": [
41
- "> 1%",
42
- "last 2 versions",
43
- "not dead"
44
- ]
26
+ "@vue/component-compiler-utils": "^2.6.0",
27
+ "algoliasearch": "^3.24.5",
28
+ "babel-cli": "^6.26.0",
29
+ "babel-core": "^6.26.3",
30
+ "babel-loader": "^7.1.5",
31
+ "babel-plugin-add-module-exports": "^0.2.1",
32
+ "babel-plugin-istanbul": "^4.1.1",
33
+ "babel-plugin-module-resolver": "^2.2.0",
34
+ "babel-plugin-syntax-jsx": "^6.18.0",
35
+ "babel-plugin-transform-vue-jsx": "^3.7.0",
36
+ "babel-preset-env": "^1.7.0",
37
+ "babel-preset-stage-2": "^6.24.1",
38
+ "babel-regenerator-runtime": "^6.5.0",
39
+ "chai": "^4.2.0",
40
+ "chokidar": "^1.7.0",
41
+ "copy-webpack-plugin": "^5.0.0",
42
+ "coveralls": "^3.0.3",
43
+ "cp-cli": "^1.0.2",
44
+ "cross-env": "^3.1.3",
45
+ "css-loader": "^2.1.0",
46
+ "es6-promise": "^4.0.5",
47
+ "eslint": "4.18.2",
48
+ "eslint-config-elemefe": "0.1.1",
49
+ "eslint-loader": "^2.0.0",
50
+ "eslint-plugin-html": "^4.0.1",
51
+ "eslint-plugin-json": "^1.2.0",
52
+ "file-loader": "^1.1.11",
53
+ "file-save": "^0.2.0",
54
+ "gulp": "^4.0.0",
55
+ "gulp-autoprefixer": "^6.0.0",
56
+ "gulp-cssmin": "^0.2.0",
57
+ "gulp-sass": "^4.0.2",
58
+ "highlight.js": "^9.3.0",
59
+ "html-webpack-plugin": "^3.2.0",
60
+ "json-loader": "^0.5.7",
61
+ "json-templater": "^1.0.4",
62
+ "karma": "^4.0.1",
63
+ "karma-chrome-launcher": "^2.2.0",
64
+ "karma-coverage": "^1.1.2",
65
+ "karma-mocha": "^1.3.0",
66
+ "karma-sinon-chai": "^2.0.2",
67
+ "karma-sourcemap-loader": "^0.3.7",
68
+ "karma-spec-reporter": "^0.0.32",
69
+ "karma-webpack": "^3.0.5",
70
+ "launch-editor-middleware": "^2.3.0",
71
+ "markdown-it": "^8.4.1",
72
+ "markdown-it-anchor": "^5.0.2",
73
+ "markdown-it-chain": "^1.3.0",
74
+ "markdown-it-container": "^2.0.0",
75
+ "mini-css-extract-plugin": "^0.4.1",
76
+ "mocha": "^6.0.2",
77
+ "node-sass": "^4.11.0",
78
+ "optimize-css-assets-webpack-plugin": "^5.0.1",
79
+ "postcss": "^7.0.14",
80
+ "progress-bar-webpack-plugin": "^1.11.0",
81
+ "rimraf": "^2.5.4",
82
+ "sass-loader": "^7.1.0",
83
+ "select-version-cli": "^0.0.2",
84
+ "sinon": "^7.2.7",
85
+ "sinon-chai": "^3.3.0",
86
+ "style-loader": "^0.23.1",
87
+ "transliteration": "^1.1.11",
88
+ "uglifyjs-webpack-plugin": "^2.1.1",
89
+ "uppercamelcase": "^1.1.0",
90
+ "url-loader": "^1.0.1",
91
+ "vue": "2.5.21",
92
+ "vue-loader": "^15.7.0",
93
+ "vue-router": "^3.0.1",
94
+ "vue-template-compiler": "2.5.21",
95
+ "vue-template-es2015-compiler": "^1.6.0",
96
+ "webpack": "^4.14.0",
97
+ "webpack-cli": "^3.0.8",
98
+ "webpack-dev-server": "^3.1.11",
99
+ "webpack-node-externals": "^1.7.2"
100
+ }
45
101
  }
File without changes
@@ -0,0 +1,53 @@
1
+ <template>
2
+ <div class="hello">
3
+ <div class="tip-popupWindowSearch">
4
+ <div class="tip-box">
5
+ <div>
6
+ <div class="tip-title">{{ title }}</div>
7
+ </div>
8
+ <div class="tip-boxContent">
9
+ <div>
10
+ <div class="tip-title2" :style="{'text-align': (middle)? 'center': 'left' }">{{ promptContent }}</div>
11
+ </div>
12
+ </div>
13
+ <div class="tip-btnBox">
14
+ <div @click="submit">确认</div>
15
+ <div @click="cancel">取消</div>
16
+ </div>
17
+ </div>
18
+ </div>
19
+ </div>
20
+ </template>
21
+
22
+ <script>
23
+ export default {
24
+ name: 'zydx-tip-box',
25
+ props: {
26
+ title: { // 弹窗的提示标题
27
+ type: String,
28
+ default: '提示'
29
+ },
30
+ promptContent: { // 弹窗中间的文字内容
31
+ type: String,
32
+ default: '默认文字'
33
+ },
34
+ middle: { // 弹窗中间的文字内容是居中 还是居左 默认居中
35
+ type: Boolean,
36
+ default: true
37
+ }
38
+ },
39
+ data () {
40
+ return {}
41
+ },
42
+ methods: {
43
+ submit: function (val) {
44
+ this.$emit('rheResults', val)
45
+ },
46
+ cancel: function () {
47
+ this.$emit('cancel')
48
+ }
49
+ }
50
+ }
51
+ </script>
52
+
53
+ <style scoped src="./zydxStyle.css"></style>
@@ -0,0 +1,77 @@
1
+ .tip-popupWindowSearch{
2
+ position: fixed;
3
+ top: 0;
4
+ left: 0;
5
+ right: 0;
6
+ bottom: 0;
7
+ background-color: rgba(0, 0, 0, 0.2);
8
+ z-index: 200;
9
+ display: flex;
10
+ align-items: center;
11
+ }
12
+ .tip-box {
13
+ width: 480px;
14
+ padding: 40px 40px;
15
+ background-color: white;
16
+ border-radius: 5px;
17
+ border: 5px rgba(0, 0, 0, .1) solid;
18
+ margin: 0 auto;
19
+ }
20
+ .tip-boxContent{
21
+ max-height: 600px;
22
+ }
23
+ .tip-boxContent:hover{
24
+ cursor:default
25
+ }
26
+
27
+ .tip-closeBtn {
28
+ position: absolute;
29
+ top: 10px;
30
+ right: 10px;
31
+ font-size: 28px;
32
+ color: #767676;
33
+ }
34
+ .tip-title {
35
+ margin-bottom: 20px;
36
+ font-size: 18px;
37
+ font-weight: 700;
38
+ flex-shrink: 0;
39
+ display: flex;
40
+ align-items: flex-end;
41
+ justify-content: center;
42
+ flex-wrap: wrap;
43
+ overflow: hidden;
44
+ }
45
+ .tip-title1 {
46
+ font-size: 16px;
47
+ text-align: left;
48
+ }
49
+ .tip-title2{
50
+ font-size: 16px;
51
+ text-align: center;
52
+ line-height: 30px;
53
+ }
54
+
55
+ .tip-btnBox {
56
+ margin-top: 20px;
57
+ flex-shrink: 0;
58
+ display: flex;
59
+ justify-content: center;
60
+ align-items: flex-start;
61
+ font-size: 12px;
62
+ }
63
+
64
+ .tip-btnBox>div {
65
+ width: 60px;
66
+ height: 22px;
67
+ line-height: 22px;
68
+ margin-right: 10px;
69
+ border-radius: 3px;
70
+ border: 1px solid #000000;
71
+ cursor: pointer;
72
+ text-align: center;
73
+ }
74
+ .tip-quesTitle{
75
+ padding-left: 2px;
76
+ margin-left: -10px!important;
77
+ }
package/src/index.js CHANGED
@@ -1,7 +1,7 @@
1
- import Input from './components/input/index';
1
+ import tipBox from './components/tipBox/index';
2
2
 
3
3
  const components = [
4
- Input
4
+ tipBox
5
5
  ];
6
6
 
7
7
  const install = function(Vue, opts = {}) {
@@ -15,7 +15,7 @@ if (typeof window !== 'undefined' && window.Vue) {
15
15
  }
16
16
 
17
17
  export default {
18
- version: '1.0.2',
18
+ version: '1.0.4',
19
19
  install,
20
- Input
20
+ tipBox
21
21
  };
package/babel.config.js DELETED
@@ -1,5 +0,0 @@
1
- module.exports = {
2
- presets: [
3
- '@vue/cli-plugin-babel/preset'
4
- ]
5
- }
package/jsconfig.json DELETED
@@ -1,19 +0,0 @@
1
- {
2
- "compilerOptions": {
3
- "target": "es5",
4
- "module": "esnext",
5
- "baseUrl": "./",
6
- "moduleResolution": "node",
7
- "paths": {
8
- "@/*": [
9
- "src/*"
10
- ]
11
- },
12
- "lib": [
13
- "esnext",
14
- "dom",
15
- "dom.iterable",
16
- "scripthost"
17
- ]
18
- }
19
- }
package/src/App.vue DELETED
@@ -1,27 +0,0 @@
1
- <template>
2
- <div id="app">
3
- <HelloWorld msg="Welcome to Your Vue.js App"/>
4
- </div>
5
- </template>
6
-
7
- <script>
8
- import HelloWorld from './components/input/src/main'
9
-
10
- export default {
11
- name: 'App',
12
- components: {
13
- HelloWorld
14
- }
15
- }
16
- </script>
17
-
18
- <style>
19
- #app {
20
- font-family: Avenir, Helvetica, Arial, sans-serif;
21
- -webkit-font-smoothing: antialiased;
22
- -moz-osx-font-smoothing: grayscale;
23
- text-align: center;
24
- color: #2c3e50;
25
- margin-top: 60px;
26
- }
27
- </style>
@@ -1,58 +0,0 @@
1
- <template>
2
- <div class="hello">
3
- <h1>{{ msg }}</h1>
4
- <p>
5
- For a guide and recipes on how to configure / customize this project,<br>
6
- check out the
7
- <a href="https://cli.vuejs.org" target="_blank" rel="noopener">vue-cli documentation</a>.
8
- </p>
9
- <h3>Installed CLI Plugins</h3>
10
- <ul>
11
- <li><a href="https://github.com/vuejs/vue-cli/tree/dev/packages/%40vue/cli-plugin-babel" target="_blank" rel="noopener">babel</a></li>
12
- <li><a href="https://github.com/vuejs/vue-cli/tree/dev/packages/%40vue/cli-plugin-eslint" target="_blank" rel="noopener">eslint</a></li>
13
- </ul>
14
- <h3>Essential Links</h3>
15
- <ul>
16
- <li><a href="https://vuejs.org" target="_blank" rel="noopener">Core Docs</a></li>
17
- <li><a href="https://forum.vuejs.org" target="_blank" rel="noopener">Forum</a></li>
18
- <li><a href="https://chat.vuejs.org" target="_blank" rel="noopener">Community Chat</a></li>
19
- <li><a href="https://twitter.com/vuejs" target="_blank" rel="noopener">Twitter</a></li>
20
- <li><a href="https://news.vuejs.org" target="_blank" rel="noopener">News</a></li>
21
- </ul>
22
- <h3>Ecosystem</h3>
23
- <ul>
24
- <li><a href="https://router.vuejs.org" target="_blank" rel="noopener">vue-router</a></li>
25
- <li><a href="https://vuex.vuejs.org" target="_blank" rel="noopener">vuex</a></li>
26
- <li><a href="https://github.com/vuejs/vue-devtools#vue-devtools" target="_blank" rel="noopener">vue-devtools</a></li>
27
- <li><a href="https://vue-loader.vuejs.org" target="_blank" rel="noopener">vue-loader</a></li>
28
- <li><a href="https://github.com/vuejs/awesome-vue" target="_blank" rel="noopener">awesome-vue</a></li>
29
- </ul>
30
- </div>
31
- </template>
32
-
33
- <script>
34
- export default {
35
- name: 'zydxInput',
36
- props: {
37
- msg: String
38
- }
39
- }
40
- </script>
41
-
42
- <!-- Add "scoped" attribute to limit CSS to this component only -->
43
- <style scoped>
44
- h3 {
45
- margin: 40px 0 0;
46
- }
47
- ul {
48
- list-style-type: none;
49
- padding: 0;
50
- }
51
- li {
52
- display: inline-block;
53
- margin: 0 10px;
54
- }
55
- a {
56
- color: #42b983;
57
- }
58
- </style>
package/src/main.js DELETED
@@ -1,8 +0,0 @@
1
- import Vue from 'vue'
2
- import App from './App.vue'
3
-
4
- Vue.config.productionTip = false
5
-
6
- new Vue({
7
- render: h => h(App),
8
- }).$mount('#app')
package/vue.config.js DELETED
@@ -1,4 +0,0 @@
1
- const { defineConfig } = require('@vue/cli-service')
2
- module.exports = defineConfig({
3
- transpileDependencies: true
4
- })