slide-vue3 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.
@@ -0,0 +1,3 @@
1
+ > 1%
2
+ last 2 versions
3
+ not dead
package/.editorconfig ADDED
@@ -0,0 +1,7 @@
1
+ [*.{js,jsx,ts,tsx,vue}]
2
+ indent_style = space
3
+ indent_size = 2
4
+ end_of_line = lf
5
+ trim_trailing_whitespace = true
6
+ insert_final_newline = true
7
+ max_line_length = 100
package/.eslintignore ADDED
@@ -0,0 +1,5 @@
1
+ /dist/**
2
+ /public/**
3
+ /packages/index.js
4
+ /packages/slidecode/js/**
5
+ /src/**
package/.eslintrc.js ADDED
@@ -0,0 +1,30 @@
1
+ module.exports = {
2
+ root: true,
3
+ env: {
4
+ node: true,
5
+ },
6
+ extends: [
7
+ 'plugin:vue/essential',
8
+ '@vue/airbnb',
9
+ ],
10
+ parserOptions: {
11
+ parser: 'babel-eslint',
12
+ },
13
+ rules: {
14
+ 'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
15
+ 'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
16
+ "global-require": 0,
17
+ 'max-len' : ["error", {code : 300}]
18
+ },
19
+ overrides: [
20
+ {
21
+ files: [
22
+ '**/__tests__/*.{j,t}s?(x)',
23
+ '**/tests/unit/**/*.spec.{j,t}s?(x)',
24
+ ],
25
+ env: {
26
+ jest: true,
27
+ },
28
+ },
29
+ ],
30
+ };
package/README.md ADDED
@@ -0,0 +1,29 @@
1
+ # cms-notice
2
+
3
+ ## Project setup
4
+ ```
5
+ yarn install
6
+ ```
7
+
8
+ ### Compiles and hot-reloads for development
9
+ ```
10
+ yarn serve
11
+ ```
12
+
13
+ ### Compiles and minifies for production
14
+ ```
15
+ yarn build
16
+ ```
17
+
18
+ ### Run your unit tests
19
+ ```
20
+ yarn test:unit
21
+ ```
22
+
23
+ ### Lints and fixes files
24
+ ```
25
+ yarn lint
26
+ ```
27
+
28
+ ### Customize configuration
29
+ See [Configuration Reference](https://cli.vuejs.org/config/).
@@ -0,0 +1,5 @@
1
+ module.exports = {
2
+ presets: [
3
+ '@vue/cli-plugin-babel/preset',
4
+ ],
5
+ };
package/lib/README.md ADDED
@@ -0,0 +1,36 @@
1
+ # slidecode
2
+
3
+ ## 引入
4
+ ```js
5
+ import Vue from 'vue';
6
+ import slidecode from 'slidecode/index.umd.min'
7
+ import 'slidecode/index.css'
8
+ Vue.use(slidecode);
9
+
10
+ ```
11
+
12
+ ### 使用
13
+ ```js
14
+
15
+ this.$getImg(url,({ data, that }) => {
16
+ const loginData = {
17
+ 登录参数,
18
+ ...data,
19
+ };
20
+ //登录接口
21
+ loginByUsername(loginData).then((res) => {
22
+ that.refreshcallback(true);
23
+ console.log(res);
24
+ }).catch((e) => {
25
+ if (e.response.data.message === '验证码不正确!') {
26
+ that.refreshcallback(false);
27
+ } else {
28
+ that.refreshcallback(true);
29
+ }
30
+ });
31
+ });
32
+
33
+
34
+
35
+ ```
36
+
package/lib/demo.html ADDED
@@ -0,0 +1,10 @@
1
+ <meta charset="utf-8">
2
+ <title>index demo</title>
3
+ <script src="./index.umd.js"></script>
4
+
5
+ <link rel="stylesheet" href="./index.css">
6
+
7
+
8
+ <script>
9
+ console.log(index)
10
+ </script>
Binary file