anser-boom 1.0.0

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 ADDED
@@ -0,0 +1,51 @@
1
+ {
2
+ "name": "anser-boom",
3
+ "version": "1.0.0",
4
+ "description": "插件初始化",
5
+ "main": "uni_modules/anser-boom/index.js",
6
+ "files": [
7
+ "uni_modules/"
8
+ ],
9
+ "uni_modules": {
10
+ "dependencies": [],
11
+ "encrypt": [],
12
+ "platforms": [
13
+ "h5",
14
+ "app",
15
+ "mp-weixin",
16
+ "mp-alipay",
17
+ "mp-baidu"
18
+ ]
19
+ },
20
+ "scripts": {
21
+ "dev:h5": "uni",
22
+ "dev": "uni",
23
+ "build:h5": "uni build",
24
+ "build": "uni build",
25
+ "build:plugin": "node scripts/build-plugin.js",
26
+ "pub": "npm publish --access public"
27
+ },
28
+ "keywords": [
29
+ "uni-app",
30
+ "plugin",
31
+ "uni_modules"
32
+ ],
33
+ "author": "",
34
+ "license": "MIT",
35
+ "dependencies": {
36
+ "@dcloudio/uni-app": "3.0.0-5000620260331001",
37
+ "@dcloudio/uni-app-plus": "3.0.0-5000620260331001",
38
+ "@dcloudio/uni-components": "3.0.0-5000620260331001",
39
+ "@dcloudio/uni-h5": "3.0.0-5000620260331001",
40
+ "vue": "^3.4.21"
41
+ },
42
+ "devDependencies": {
43
+ "@dcloudio/types": "^3.4.8",
44
+ "@dcloudio/uni-automator": "3.0.0-5000620260331001",
45
+ "@dcloudio/uni-cli-shared": "3.0.0-5000620260331001",
46
+ "@dcloudio/uni-stacktracey": "3.0.0-5000620260331001",
47
+ "@dcloudio/vite-plugin-uni": "3.0.0-5000620260331001",
48
+ "@vue/runtime-core": "^3.4.21",
49
+ "vite": "5.2.8"
50
+ }
51
+ }
@@ -0,0 +1,33 @@
1
+ <template>
2
+ <view class="demo-container">
3
+ <text class="demo-title">anser 组件演示</text>
4
+ <text class="demo-desc">这是 anser 的 demo 组件,欢迎体验。</text>
5
+ </view>
6
+ </template>
7
+
8
+ <script setup>
9
+ // 初始化代码区域,可根据需要扩展
10
+ </script>
11
+
12
+ <style scoped>
13
+ .demo-container {
14
+ padding: 40rpx;
15
+ display: flex;
16
+ flex-direction: column;
17
+ align-items: center;
18
+ border: 2rpx dashed #28a745;
19
+ border-radius: 18rpx;
20
+ margin: 48rpx 0;
21
+ background: #f7fff9;
22
+ }
23
+ .demo-title {
24
+ font-size: 38rpx;
25
+ color: #28a745;
26
+ margin-bottom: 18rpx;
27
+ font-weight: bold;
28
+ }
29
+ .demo-desc {
30
+ font-size: 28rpx;
31
+ color: #666;
32
+ }
33
+ </style>
@@ -0,0 +1,22 @@
1
+ /**
2
+ * anser-boom 插件入口
3
+ * 使用方式:app.use(require('anser-boom'))
4
+ */
5
+ import Demo from "./components/demo/index.vue";
6
+ const plugin = {
7
+ install(app, options = {}) {
8
+ console.log('anser-boom 插件已安装', options)
9
+
10
+ // 注册全局组件
11
+ app.component('PluginDemo', Demo)
12
+
13
+ // 添加全局方法
14
+ app.config.globalProperties.$plugin =()=>{
15
+ console.log("anser-boom 全局方法");
16
+ }
17
+
18
+ // 你可以在此添加插件逻辑
19
+ }
20
+ }
21
+
22
+ export default plugin
@@ -0,0 +1,26 @@
1
+ {
2
+ "name": "anser-boom",
3
+ "version": "1.0.0",
4
+ "description": "kk22-boom 插件",
5
+ "main": "index.js",
6
+ "scripts": {},
7
+ "dependencies": {},
8
+ "uni_modules": {
9
+ "dependencies": [],
10
+ "encrypt": [],
11
+ "platforms": [
12
+ "h5",
13
+ "app",
14
+ "mp-weixin",
15
+ "mp-alipay",
16
+ "mp-baidu"
17
+ ]
18
+ },
19
+ "keywords": [
20
+ "uni-app",
21
+ "plugin",
22
+ "uni_modules"
23
+ ],
24
+ "author": "",
25
+ "license": "MIT"
26
+ }
@@ -0,0 +1,48 @@
1
+ <template>
2
+ <view class="container">
3
+ <view class="header">
4
+ <text class="title">anser 插件页面</text>
5
+ </view>
6
+ <view class="content">
7
+ <text class="desc">这是插件的演示页面</text>
8
+ <view class="demo-box">
9
+ <text>插件功能演示区域</text>
10
+ </view>
11
+ </view>
12
+ </view>
13
+ </template>
14
+
15
+ <script setup>
16
+ </script>
17
+
18
+ <style scoped>
19
+ .container {
20
+ padding: 40rpx;
21
+ }
22
+ .header {
23
+ margin-bottom: 40rpx;
24
+ }
25
+ .title {
26
+ font-size: 40rpx;
27
+ font-weight: bold;
28
+ color: #333;
29
+ }
30
+ .content {
31
+ background: #fff;
32
+ border-radius: 20rpx;
33
+ padding: 40rpx;
34
+ }
35
+ .desc {
36
+ font-size: 28rpx;
37
+ color: #666;
38
+ margin-bottom: 30rpx;
39
+ }
40
+ .demo-box {
41
+ padding: 30rpx;
42
+ background: #f5f5f5;
43
+ border-radius: 10rpx;
44
+ text-align: center;
45
+ font-size: 28rpx;
46
+ color: #333;
47
+ }
48
+ </style>
@@ -0,0 +1,38 @@
1
+ <template>
2
+ <view class="main-container">
3
+ <text class="main-title">kk22-boom 插件主页面</text>
4
+ <text class="main-desc">欢迎使用 kk22-boom 插件!本页面为插件演示入口。</text>
5
+ <view class="demo-block">
6
+ <Kk22Demo />
7
+ </view>
8
+ </view>
9
+ </template>
10
+
11
+ <script setup>
12
+ // 此处可以添加页面初始化逻辑
13
+ </script>
14
+
15
+ <style scoped>
16
+ .main-container {
17
+ display: flex;
18
+ flex-direction: column;
19
+ align-items: center;
20
+ padding: 40rpx;
21
+ background: #f9fafb;
22
+ }
23
+ .main-title {
24
+ font-size: 42rpx;
25
+ font-weight: bold;
26
+ margin-bottom: 28rpx;
27
+ color: #28a745;
28
+ }
29
+ .main-desc {
30
+ font-size: 28rpx;
31
+ color: #666;
32
+ margin-bottom: 36rpx;
33
+ text-align: center;
34
+ }
35
+ .demo-block {
36
+ width: 100%;
37
+ }
38
+ </style>
@@ -0,0 +1,16 @@
1
+ {
2
+ "pages": [
3
+ {
4
+ "path": "pages/index/index",
5
+ "style": {
6
+ "navigationBarTitleText": "anser-boom 插件页面"
7
+ }
8
+ }
9
+ ],
10
+ "globalStyle": {
11
+ "navigationBarTextStyle": "black",
12
+ "navigationBarTitleText": "anser-boom 开发调试",
13
+ "navigationBarBackgroundColor": "#F8F8F8",
14
+ "backgroundColor": "#F8F8F8"
15
+ }
16
+ }