uni-oaview 1.9.11 → 1.9.12

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.
@@ -1,13 +1,15 @@
1
1
  <template>
2
2
  <view class="system">
3
3
  <view>小程序版本:{{ appVersion }}</view>
4
+ <view>小程序版本号:{{ appVersionCode }}</view>
4
5
  <view>小程序名称:{{ appName }}</view>
5
6
  <view>手机型号:{{ deviceBrand }}</view>
6
7
  <view>手机系统版本:{{ osVersion }}</view>
7
8
  </view>
8
9
  </template>
9
10
  <script lang="ts" setup>
10
- const { appVersion, appName, osVersion, deviceBrand } = uni.getSystemInfoSync() as any;
11
+ const { appVersion, appName, osVersion, deviceBrand } = uni.getSystemInfoSync();
12
+ const { appVersionCode } = uni.getAppBaseInfo();
11
13
  </script>
12
14
 
13
15
  <style lang="scss" scoped>
package/dist/index.esm.js CHANGED
@@ -509,7 +509,7 @@ function _toPropertyKey(arg) {
509
509
  */
510
510
  function sendLaunchAppParamsLog(params) {
511
511
  var _a;
512
- // console.log('【OA View】小程序启动入参:', params);
512
+ console.log('【OA View】小程序启动入参:', params);
513
513
  // #ifndef H5
514
514
  try {
515
515
  var outputData = JSON.parse(JSON.stringify((_a = params === null || params === void 0 ? void 0 : params.referrerInfo) === null || _a === void 0 ? void 0 : _a.extraData));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "uni-oaview",
3
- "version": "1.9.11",
3
+ "version": "1.9.12",
4
4
  "description": "uniapp小程序组件库",
5
5
  "main": "dist/index.esm.js",
6
6
  "typings": "dist/index.d.ts",
@@ -17,9 +17,10 @@
17
17
  "author": "",
18
18
  "license": "ISC",
19
19
  "scripts": {
20
- "dev": "rimraf dist typings && tsc --emitDeclarationOnly && cross-env NODE_ENV=development rollup -c --watch",
21
- "build": "rimraf dist typings && tsc --emitDeclarationOnly && cross-env NODE_ENV=production rollup -c",
22
- "prepublish": "npm run build"
20
+ "dev": "concurrently \"yarn dev:watch\" \"yarn yalc:push:watch\"",
21
+ "dev:watch": "rimraf dist typings && tsc --emitDeclarationOnly && cross-env NODE_ENV=development rollup -c --watch",
22
+ "yalc:push:watch": "chokidar \"dist/index.esm.js\" \"dist/index.d.ts\" -c \"yalc push\"",
23
+ "build": "rimraf dist typings && tsc --emitDeclarationOnly && cross-env NODE_ENV=production rollup -c && yalc publish --push"
23
24
  },
24
25
  "devDependencies": {
25
26
  "@babel/cli": "^7.14.5",