feat: 初始化
This commit is contained in:
0
uni_modules/no-data/changelog.md
Normal file
0
uni_modules/no-data/changelog.md
Normal file
3
uni_modules/no-data/components/no-data/i18n/en.json
Normal file
3
uni_modules/no-data/components/no-data/i18n/en.json
Normal file
@ -0,0 +1,3 @@
|
||||
{
|
||||
"no-data.title": "No Data"
|
||||
}
|
10
uni_modules/no-data/components/no-data/i18n/index.js
Normal file
10
uni_modules/no-data/components/no-data/i18n/index.js
Normal file
@ -0,0 +1,10 @@
|
||||
import en from './en.json'
|
||||
import zhHans from './zh-Hans.json'
|
||||
import zhHant from './zh-Hant.json'
|
||||
import ja from './ja.json'
|
||||
export default {
|
||||
en,
|
||||
'zh-Hans': zhHans,
|
||||
'zh-Hant': zhHant,
|
||||
ja
|
||||
}
|
3
uni_modules/no-data/components/no-data/i18n/ja.json
Normal file
3
uni_modules/no-data/components/no-data/i18n/ja.json
Normal file
@ -0,0 +1,3 @@
|
||||
{
|
||||
"no-data.title": "データなし"
|
||||
}
|
3
uni_modules/no-data/components/no-data/i18n/zh-Hans.json
Normal file
3
uni_modules/no-data/components/no-data/i18n/zh-Hans.json
Normal file
@ -0,0 +1,3 @@
|
||||
{
|
||||
"no-data.title": "无数据"
|
||||
}
|
3
uni_modules/no-data/components/no-data/i18n/zh-Hant.json
Normal file
3
uni_modules/no-data/components/no-data/i18n/zh-Hant.json
Normal file
@ -0,0 +1,3 @@
|
||||
{
|
||||
"no-data.title": "無數據"
|
||||
}
|
44
uni_modules/no-data/components/no-data/no-data.vue
Normal file
44
uni_modules/no-data/components/no-data/no-data.vue
Normal file
@ -0,0 +1,44 @@
|
||||
<template>
|
||||
<view class="content">
|
||||
<text class="message">{{title}}</text>
|
||||
</view>
|
||||
</template>
|
||||
<script>
|
||||
import {
|
||||
initVueI18n
|
||||
} from '@dcloudio/uni-i18n'
|
||||
import messages from './i18n/index.js'
|
||||
const {
|
||||
t
|
||||
} = initVueI18n(messages)
|
||||
|
||||
export default {
|
||||
name: 'no-data',
|
||||
props: {},
|
||||
data() {
|
||||
return {
|
||||
title: t('no-data.title')
|
||||
}
|
||||
},
|
||||
created(e) {},
|
||||
// #ifndef VUE3
|
||||
destroyed() {},
|
||||
// #endif
|
||||
// #ifdef VUE3
|
||||
unmounted() {},
|
||||
// #endif
|
||||
methods: {}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.content {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.message {
|
||||
opacity: .8;
|
||||
}
|
||||
</style>
|
80
uni_modules/no-data/package.json
Normal file
80
uni_modules/no-data/package.json
Normal file
@ -0,0 +1,80 @@
|
||||
{
|
||||
"id": "no-data",
|
||||
"displayName": "no-data",
|
||||
"version": "1.0.0",
|
||||
"description": "no-data",
|
||||
"keywords": [
|
||||
"no-data"
|
||||
],
|
||||
"repository": "",
|
||||
"engines": {
|
||||
"HBuilderX": "^3.1.0"
|
||||
},
|
||||
"dcloudext": {
|
||||
"category": [
|
||||
"前端组件",
|
||||
"通用组件"
|
||||
],
|
||||
"sale": {
|
||||
"regular": {
|
||||
"price": "0.00"
|
||||
},
|
||||
"sourcecode": {
|
||||
"price": "0.00"
|
||||
}
|
||||
},
|
||||
"contact": {
|
||||
"qq": ""
|
||||
},
|
||||
"declaration": {
|
||||
"ads": "",
|
||||
"data": "",
|
||||
"permissions": ""
|
||||
},
|
||||
"npmurl": ""
|
||||
},
|
||||
"uni_modules": {
|
||||
"dependencies": [],
|
||||
"encrypt": [],
|
||||
"platforms": {
|
||||
"cloud": {
|
||||
"tcb": "u",
|
||||
"aliyun": "u"
|
||||
},
|
||||
"client": {
|
||||
"Vue": {
|
||||
"vue2": "u",
|
||||
"vue3": "u"
|
||||
},
|
||||
"App": {
|
||||
"app-vue": "u",
|
||||
"app-nvue": "u"
|
||||
},
|
||||
"H5-mobile": {
|
||||
"Safari": "u",
|
||||
"Android Browser": "u",
|
||||
"微信浏览器(Android)": "u",
|
||||
"QQ浏览器(Android)": "u"
|
||||
},
|
||||
"H5-pc": {
|
||||
"Chrome": "u",
|
||||
"IE": "u",
|
||||
"Edge": "u",
|
||||
"Firefox": "u",
|
||||
"Safari": "u"
|
||||
},
|
||||
"小程序": {
|
||||
"微信": "u",
|
||||
"阿里": "u",
|
||||
"百度": "u",
|
||||
"字节跳动": "u",
|
||||
"QQ": "u"
|
||||
},
|
||||
"快应用": {
|
||||
"华为": "u",
|
||||
"联盟": "u"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
1
uni_modules/no-data/readme.md
Normal file
1
uni_modules/no-data/readme.md
Normal file
@ -0,0 +1 @@
|
||||
# no-data
|
Reference in New Issue
Block a user