浏览代码

feat: taro

suzigang 4 年之前
父节点
当前提交
bc15d63aca

+ 2 - 2
.npmrc

@@ -1,2 +1,2 @@
-registry=https://registry.npmjs.org
-engine-strict=true
+registry=http://registry.m.jd.com
+engine-strict=true

+ 161 - 3
src/packages/__VUE/button/index.scss

@@ -1,17 +1,175 @@
+// .nut-button {
+//   position: relative;
+//   display: inline-block;
+//   flex-shrink: 0;
+//   height: 30px;
+//   box-sizing: border-box;
+//   margin: 0;
+//   padding: 0;
+//   line-height: 30px;
+//   font-size: 16px;
+//   text-align: center;
+//   cursor: pointer;
+//   transition: opacity 0.2s;
+//   -webkit-appearance: none;
+//   user-select: none;
+//   touch-action: manipulation;
+// }
+
+@import './../../styles/variables.scss';
 .nut-button {
   position: relative;
   display: inline-block;
   flex-shrink: 0;
-  height: 30px;
+  height: $button-default-height;
   box-sizing: border-box;
   margin: 0;
   padding: 0;
-  line-height: 30px;
-  font-size: 16px;
+  line-height: $button-default-line-height;
+  font-size: $button-default-font-size;
   text-align: center;
   cursor: pointer;
   transition: opacity 0.2s;
   -webkit-appearance: none;
   user-select: none;
   touch-action: manipulation;
+  .text {
+    margin-left: 5px;
+  }
+  &::before {
+    position: absolute;
+    top: 50%;
+    left: 50%;
+    width: 100%;
+    height: 100%;
+    background-color: $black;
+    border: inherit;
+    border-color: $black;
+    border-radius: inherit;
+    transform: translate(-50%, -50%);
+    opacity: 0;
+    content: ' ';
+  }
+  &:active::before {
+    opacity: 0.1;
+  }
+  &__warp {
+    height: 100%;
+    width: 100%;
+    display: flex;
+    align-items: center;
+    justify-content: center;
+  }
+
+  &--loading,
+  &--disabled {
+    &::before {
+      display: none;
+    }
+  }
+  &--default {
+    color: $button-default-color;
+    background: $button-default-bg-color;
+    border: $button-border-width solid $button-default-border-color;
+  }
+
+  &--primary {
+    color: $button-primary-color;
+    background: $button-primary-background-color;
+    border: $button-border-width solid transparent;
+  }
+
+  &--info {
+    color: $button-info-color;
+    background: $button-info-background-color;
+    border: $button-border-width solid transparent;
+  }
+
+  &--success {
+    color: $button-success-color;
+    background: $button-success-background-color;
+    border: $button-border-width solid transparent;
+  }
+
+  &--danger {
+    color: $button-danger-color;
+    background: $button-danger-background-color;
+    border: $button-border-width solid transparent;
+  }
+
+  &--warning {
+    color: $button-warning-color;
+    background: $button-warning-background-color;
+    border: $button-border-width solid transparent;
+  }
+
+  &--plain {
+    background: $button-plain-background-color;
+
+    &.nut-button--primary {
+      color: $button-primary-border-color;
+      border-color: $button-primary-border-color;
+    }
+
+    &.nut-button--info {
+      color: $button-info-border-color;
+      border-color: $button-info-border-color;
+    }
+
+    &.nut-button--success {
+      color: $button-success-border-color;
+      border-color: $button-success-border-color;
+    }
+
+    &.nut-button--danger {
+      color: $button-danger-border-color;
+      border-color: $button-danger-border-color;
+    }
+
+    &.nut-button--warning {
+      color: $button-warning-border-color;
+      border-color: $button-warning-border-color;
+    }
+  }
+
+  &--large {
+    width: 100%;
+    height: $button-large-height;
+    line-height: $button-large-line-height;
+  }
+
+  &--normal {
+    padding: 0 18px;
+    font-size: $button-default-font-size;
+  }
+
+  &--small {
+    height: $button-small-height;
+    line-height: $button-small-line-height;
+    padding: 0 $padding-xs;
+    font-size: $font-size-1;
+  }
+
+  &--block {
+    display: block;
+    width: 100%;
+  }
+
+  &--disabled {
+    cursor: not-allowed;
+    opacity: $button-disabled-opacity;
+  }
+
+  &--loading {
+    cursor: default;
+    opacity: 0.9;
+  }
+
+  &--round {
+    border-radius: $button-border-radius;
+  }
+
+  &--square {
+    border-radius: 0;
+  }
 }

+ 2 - 1
src/packages/__VUE/button/index.taro.vue

@@ -12,7 +12,8 @@
 
 <script lang="ts">
 import { PropType, CSSProperties, toRefs, computed } from 'vue';
-import { createComponent } from './../../../packages/utils/create';
+// import { createComponent } from '@packages/utils/create';
+import { createComponent } from './../../utils/create';
 const { componentName, create } = createComponent('button');
 
 export type ButtonType =

+ 104 - 34
src/packages/nutui.taro.vue.ts

@@ -1,41 +1,76 @@
 import { App } from 'vue';
 import Button from './__VUE/button/index.taro.vue';
-// import Collapse from './__VUE/collapse/index.taro.vue';
-// import Layout from './__VUE/layout/index.taro.vue';
-// import BackTop from './__VUE/backtop/index.taro.vue';
-// import ActionSheet from './__VUE/actionsheet/index.taro.vue';
-// import Toast from './__VUE/toast/index';
-// import Notify from './__VUE/notify/index.taro.vue';
-// import Picker from './__VUE/picker/index.taro.vue';
-// import DatePicker from './__VUE/datepicker/index.taro.vue';
-// import Cell from './__VUE/cell/index.taro.vue';
-// import Uploader from './__VUE/uploader/index.taro.vue';
+import Collapse from './__VUE/collapse/index.taro.vue';
+import Layout from './__VUE/layout/index.taro.vue';
+import BackTop from './__VUE/backtop/index.taro.vue';
+import ActionSheet from './__VUE/actionsheet/index.taro.vue';
+import Toast from './__VUE/toast/index';
+import Notify from './__VUE/notify/index.taro.vue';
+import Picker from './__VUE/picker/index.taro.vue';
+import DatePicker from './__VUE/datepicker/index.taro.vue';
+import Cell from './__VUE/cell/index.taro.vue';
+import Uploader from './__VUE/uploader/index.taro.vue';
 import Icon from './__VUE/icon/index.taro.vue';
-// import Price from './__VUE/price/index.taro.vue';
-// import Checkbox from './__VUE/checkbox/index.taro.vue';
-// import Swiper from './__VUE/swiper/index.taro.vue';
-// import Avatar from './__VUE/avatar/index.taro.vue';
-// import Popup from './__VUE/popup/index.taro.vue';
-// import Dialog from './__VUE/dialog/index';
-// import Radio from './__VUE/radio/index.taro.vue';
-// import OverLay from './__VUE/overlay/index.taro.vue';
-// import InfiniteLoading from './__VUE/infiniteloading/index.taro.vue';
-// import Range from './__VUE/range/index.taro.vue';
-// import Drag from './__VUE/drag/index.taro.vue';
-// import Steps from './__VUE/steps/index.taro.vue';
-// import Navbar from './__VUE/navbar/index.taro.vue';
-// import Tabbar from './__VUE/tabbar/index.taro.vue';
-// import InputNumber from './__VUE/inputnumber/index.taro.vue';
-// import Input from './__VUE/input/index.taro.vue';
-// import Switch from './__VUE/switch/index.taro.vue';
-// import Rate from './__VUE/rate/index.taro.vue';
-// import Calendar from './__VUE/calendar/index.taro.vue';
-// import ShortPassword from './__VUE/shortpassword/index.taro.vue';
-// import TextArea from './__VUE/textarea/index.taro.vue';
-// import Address from './__VUE/address/index.taro.vue';
+import Price from './__VUE/price/index.taro.vue';
+import Checkbox from './__VUE/checkbox/index.taro.vue';
+import Swiper from './__VUE/swiper/index.taro.vue';
+import Avatar from './__VUE/avatar/index.taro.vue';
+import Popup from './__VUE/popup/index.taro.vue';
+import Dialog from './__VUE/dialog/index';
+import Radio from './__VUE/radio/index.taro.vue';
+import OverLay from './__VUE/overlay/index.taro.vue';
+import InfiniteLoading from './__VUE/infiniteloading/index.taro.vue';
+import Range from './__VUE/range/index.taro.vue';
+import Drag from './__VUE/drag/index.taro.vue';
+import Steps from './__VUE/steps/index.taro.vue';
+import Navbar from './__VUE/navbar/index.taro.vue';
+import Tabbar from './__VUE/tabbar/index.taro.vue';
+import InputNumber from './__VUE/inputnumber/index.taro.vue';
+import Input from './__VUE/input/index.taro.vue';
+import Switch from './__VUE/switch/index.taro.vue';
+import Rate from './__VUE/rate/index.taro.vue';
+import Calendar from './__VUE/calendar/index.taro.vue';
+import ShortPassword from './__VUE/shortpassword/index.taro.vue';
+import TextArea from './__VUE/textarea/index.taro.vue';
+import Address from './__VUE/address/index.taro.vue';
 
 function install(app: App) {
-  const packages = [Button, Icon];
+  const packages = [
+    Button,
+    Collapse,
+    Layout,
+    BackTop,
+    ActionSheet,
+    Toast,
+    Notify,
+    Picker,
+    DatePicker,
+    Cell,
+    Uploader,
+    Icon,
+    Price,
+    Checkbox,
+    Swiper,
+    Avatar,
+    Popup,
+    Dialog,
+    Radio,
+    OverLay,
+    InfiniteLoading,
+    Range,
+    Drag,
+    Steps,
+    Navbar,
+    Tabbar,
+    InputNumber,
+    Input,
+    Switch,
+    Rate,
+    Calendar,
+    ShortPassword,
+    TextArea,
+    Address
+  ];
   packages.forEach((item: any) => {
     if (item.install) {
       app.use(item);
@@ -44,5 +79,40 @@ function install(app: App) {
     }
   });
 }
-export { Button, Icon };
+export {
+  Button,
+  Collapse,
+  Layout,
+  BackTop,
+  ActionSheet,
+  Toast,
+  Notify,
+  Picker,
+  DatePicker,
+  Cell,
+  Uploader,
+  Icon,
+  Price,
+  Checkbox,
+  Swiper,
+  Avatar,
+  Popup,
+  Dialog,
+  Radio,
+  OverLay,
+  InfiniteLoading,
+  Range,
+  Drag,
+  Steps,
+  Navbar,
+  Tabbar,
+  InputNumber,
+  Input,
+  Switch,
+  Rate,
+  Calendar,
+  ShortPassword,
+  TextArea,
+  Address
+};
 export default { install, version: '3.0.0-beta.16' };

文件差异内容过多而无法显示
+ 0 - 3249
src/sites/mobile-taro/vue/dist/app.js


文件差异内容过多而无法显示
+ 0 - 1
src/sites/mobile-taro/vue/dist/app.js.map


文件差异内容过多而无法显示
+ 0 - 384
src/sites/mobile-taro/vue/dist/app.wxss


+ 0 - 64
src/sites/mobile-taro/vue/dist/base.wxml

@@ -77,14 +77,6 @@
   </image>
 </template>
 
-<template name="tmpl_0_slot">
-  <view slot="{{i.name}}"  id="{{i.uid}}">
-    <block wx:for="{{i.cn}}" wx:key="uid">
-      <template is="{{xs.e(cid+1)}}" data="{{i:item,l:l}}" />
-    </block>
-  </view>
-</template>
-
 <template name="tmpl_0_#text" data="{{i:i}}">
   <block>{{i.v}}</block>
 </template>
@@ -149,14 +141,6 @@
   </scroll-view>
 </template>
 
-<template name="tmpl_1_slot">
-  <view slot="{{i.name}}"  id="{{i.uid}}">
-    <block wx:for="{{i.cn}}" wx:key="uid">
-      <template is="{{xs.e(cid+1)}}" data="{{i:item,l:l}}" />
-    </block>
-  </view>
-</template>
-
 <template name="tmpl_1_container">
   <template is="{{xs.a(1, i.nn, l)}}" data="{{i:i,cid:1,l:xs.f(l,i.nn)}}" />
 </template>
@@ -217,14 +201,6 @@
   </scroll-view>
 </template>
 
-<template name="tmpl_2_slot">
-  <view slot="{{i.name}}"  id="{{i.uid}}">
-    <block wx:for="{{i.cn}}" wx:key="uid">
-      <template is="{{xs.e(cid+1)}}" data="{{i:item,l:l}}" />
-    </block>
-  </view>
-</template>
-
 <template name="tmpl_2_container">
   <template is="{{xs.a(2, i.nn, l)}}" data="{{i:i,cid:2,l:xs.f(l,i.nn)}}" />
 </template>
@@ -285,14 +261,6 @@
   </scroll-view>
 </template>
 
-<template name="tmpl_3_slot">
-  <view slot="{{i.name}}"  id="{{i.uid}}">
-    <block wx:for="{{i.cn}}" wx:key="uid">
-      <template is="{{xs.e(cid+1)}}" data="{{i:item,l:l}}" />
-    </block>
-  </view>
-</template>
-
 <template name="tmpl_3_container">
   <template is="{{xs.a(3, i.nn, l)}}" data="{{i:i,cid:3,l:xs.f(l,i.nn)}}" />
 </template>
@@ -345,14 +313,6 @@
   </text>
 </template>
 
-<template name="tmpl_4_slot">
-  <view slot="{{i.name}}"  id="{{i.uid}}">
-    <block wx:for="{{i.cn}}" wx:key="uid">
-      <template is="{{xs.e(cid+1)}}" data="{{i:item,l:l}}" />
-    </block>
-  </view>
-</template>
-
 <template name="tmpl_4_container">
   <template is="{{xs.a(4, i.nn, l)}}" data="{{i:i,cid:4,l:xs.f(l,i.nn)}}" />
 </template>
@@ -405,14 +365,6 @@
   </text>
 </template>
 
-<template name="tmpl_5_slot">
-  <view slot="{{i.name}}"  id="{{i.uid}}">
-    <block wx:for="{{i.cn}}" wx:key="uid">
-      <template is="{{xs.e(cid+1)}}" data="{{i:item,l:l}}" />
-    </block>
-  </view>
-</template>
-
 <template name="tmpl_5_container">
   <template is="{{xs.a(5, i.nn, l)}}" data="{{i:i,cid:5,l:xs.f(l,i.nn)}}" />
 </template>
@@ -457,14 +409,6 @@
   </text>
 </template>
 
-<template name="tmpl_6_slot">
-  <view slot="{{i.name}}"  id="{{i.uid}}">
-    <block wx:for="{{i.cn}}" wx:key="uid">
-      <template is="{{xs.e(cid+1)}}" data="{{i:item,l:l}}" />
-    </block>
-  </view>
-</template>
-
 <template name="tmpl_6_container">
   <template is="{{xs.a(6, i.nn, l)}}" data="{{i:i,cid:6,l:xs.f(l,i.nn)}}" />
 </template>
@@ -509,14 +453,6 @@
   </text>
 </template>
 
-<template name="tmpl_7_slot">
-  <view slot="{{i.name}}"  id="{{i.uid}}">
-    <block wx:for="{{i.cn}}" wx:key="uid">
-      <template is="{{xs.e(cid+1)}}" data="{{i:item,l:l}}" />
-    </block>
-  </view>
-</template>
-
 <template name="tmpl_7_container">
   <template is="{{xs.a(7, i.nn, l)}}" data="{{i:i,cid:7,l:xs.f(l,i.nn)}}" />
 </template>

+ 0 - 13
src/sites/mobile-taro/vue/dist/comp.js

@@ -1,13 +0,0 @@
-(wx['webpackJsonp'] = wx['webpackJsonp'] || []).push([
-  ['comp'],
-  [],
-  [
-    [
-      './node_modules/@tarojs/mini-runner/dist/template/comp.js',
-      'runtime',
-      'taro',
-      'vendors'
-    ]
-  ]
-]);
-//# sourceMappingURL=comp.js.map

+ 0 - 1
src/sites/mobile-taro/vue/dist/comp.js.map

@@ -1 +0,0 @@
-{"version":3,"file":"comp.js","sources":[],"mappings":"","sourceRoot":""}

+ 0 - 13
src/sites/mobile-taro/vue/dist/custom-wrapper.js

@@ -1,13 +0,0 @@
-(wx['webpackJsonp'] = wx['webpackJsonp'] || []).push([
-  ['custom-wrapper'],
-  [],
-  [
-    [
-      './node_modules/@tarojs/mini-runner/dist/template/custom-wrapper.js',
-      'runtime',
-      'taro',
-      'vendors'
-    ]
-  ]
-]);
-//# sourceMappingURL=custom-wrapper.js.map

+ 0 - 1
src/sites/mobile-taro/vue/dist/custom-wrapper.js.map

@@ -1 +0,0 @@
-{"version":3,"file":"custom-wrapper.js","sources":[],"mappings":"","sourceRoot":""}

文件差异内容过多而无法显示
+ 0 - 1143
src/sites/mobile-taro/vue/dist/pages/button/index.js


文件差异内容过多而无法显示
+ 0 - 1
src/sites/mobile-taro/vue/dist/pages/button/index.js.map


+ 0 - 28
src/sites/mobile-taro/vue/dist/pages/button/index.wxss

@@ -1,28 +0,0 @@
-.h2 {
-  margin-top: 30rpx;
-  margin-bottom: 10rpx;
-  font-size: 14rpx;
-  color: #909ca4;
-  padding: 0 10rpx;
-  font-weight: 400;
-}
-view {
-  display: block;
-}
-.demo-button-row {
-  margin-bottom: 20rpx;
-}
-.demo-button-row2 {
-  margin-bottom: 10rpx;
-  display: flex;
-  align-items: center;
-  flex-wrap: wrap;
-}
-.nut-button {
-  margin-right: 15rpx;
-}
-.nut-button:last-child {
-  margin-bottom: 0;
-  margin-right: 0;
-}
-

+ 0 - 43
src/sites/mobile-taro/vue/dist/project.config.json

@@ -1,43 +0,0 @@
-{
-  "miniprogramRoot": "./",
-  "projectname": "myApp",
-  "description": "taro-vue",
-  "appid": "wxee296c9bffc451d9",
-  "setting": {
-    "urlCheck": true,
-    "es6": false,
-    "enhance": false,
-    "postcss": false,
-    "preloadBackgroundData": false,
-    "minified": false,
-    "newFeature": false,
-    "coverView": true,
-    "nodeModules": false,
-    "autoAudits": false,
-    "showShadowRootInWxmlPanel": true,
-    "scopeDataCheck": false,
-    "uglifyFileName": false,
-    "checkInvalidKey": true,
-    "checkSiteMap": true,
-    "uploadWithSourceMap": true,
-    "compileHotReLoad": false,
-    "useMultiFrameRuntime": true,
-    "useApiHook": true,
-    "useApiHostProcess": true,
-    "babelSetting": {
-      "ignore": [],
-      "disablePlugins": [],
-      "outputPath": ""
-    },
-    "enableEngineNative": false,
-    "useIsolateContext": true,
-    "useCompilerModule": true,
-    "userConfirmedUseCompilerModuleSwitch": false,
-    "userConfirmedBundleSwitch": false,
-    "packNpmManually": false,
-    "packNpmRelationList": [],
-    "minifyWXSS": true
-  },
-  "compileType": "miniprogram",
-  "condition": {}
-}

+ 0 - 203
src/sites/mobile-taro/vue/dist/runtime.js

@@ -1,203 +0,0 @@
-/******/ (function(modules) {
-  // webpackBootstrap
-  /******/ // install a JSONP callback for chunk loading
-  /******/ function webpackJsonpCallback(data) {
-    /******/ var chunkIds = data[0];
-    /******/ var moreModules = data[1];
-    /******/ var executeModules = data[2]; // add "moreModules" to the modules object, // then flag all "chunkIds" as loaded and fire callback
-    /******/
-    /******/ /******/ /******/ var moduleId,
-      chunkId,
-      i = 0,
-      resolves = [];
-    /******/ for (; i < chunkIds.length; i++) {
-      /******/ chunkId = chunkIds[i];
-      /******/ if (
-        Object.prototype.hasOwnProperty.call(installedChunks, chunkId) &&
-        installedChunks[chunkId]
-      ) {
-        /******/ resolves.push(installedChunks[chunkId][0]);
-        /******/
-      }
-      /******/ installedChunks[chunkId] = 0;
-      /******/
-    }
-    /******/ for (moduleId in moreModules) {
-      /******/ if (
-        Object.prototype.hasOwnProperty.call(moreModules, moduleId)
-      ) {
-        /******/ modules[moduleId] = moreModules[moduleId];
-        /******/
-      }
-      /******/
-    }
-    /******/ if (parentJsonpFunction) parentJsonpFunction(data);
-    /******/
-    /******/ while (resolves.length) {
-      /******/ resolves.shift()();
-      /******/
-    } // add entry modules from loaded chunk to deferred list
-    /******/
-    /******/ /******/ deferredModules.push.apply(
-      deferredModules,
-      executeModules || []
-    ); // run deferred modules when all chunks ready
-    /******/
-    /******/ /******/ return checkDeferredModules();
-    /******/
-  }
-  /******/ function checkDeferredModules() {
-    /******/ var result;
-    /******/ for (var i = 0; i < deferredModules.length; i++) {
-      /******/ var deferredModule = deferredModules[i];
-      /******/ var fulfilled = true;
-      /******/ for (var j = 1; j < deferredModule.length; j++) {
-        /******/ var depId = deferredModule[j];
-        /******/ if (installedChunks[depId] !== 0) fulfilled = false;
-        /******/
-      }
-      /******/ if (fulfilled) {
-        /******/ deferredModules.splice(i--, 1);
-        /******/ result = __webpack_require__(
-          (__webpack_require__.s = deferredModule[0])
-        );
-        /******/
-      }
-      /******/
-    }
-    /******/
-    /******/ return result;
-    /******/
-  } // The module cache
-  /******/
-  /******/ /******/ var installedModules = {}; // object to store loaded and loading chunks // undefined = chunk not loaded, null = chunk preloaded/prefetched // Promise = chunk loading, 0 = chunk loaded
-  /******/
-  /******/ /******/ /******/ /******/ var installedChunks = {
-    /******/ runtime: 0
-    /******/
-  };
-  /******/
-  /******/ var deferredModules = []; // The require function
-  /******/
-  /******/ /******/ function __webpack_require__(moduleId) {
-    /******/
-    /******/ // Check if module is in cache
-    /******/ if (installedModules[moduleId]) {
-      /******/ return installedModules[moduleId].exports;
-      /******/
-    } // Create a new module (and put it into the cache)
-    /******/ /******/ var module = (installedModules[moduleId] = {
-      /******/ i: moduleId,
-      /******/ l: false,
-      /******/ exports: {}
-      /******/
-    }); // Execute the module function
-    /******/
-    /******/ /******/ modules[moduleId].call(
-      module.exports,
-      module,
-      module.exports,
-      __webpack_require__
-    ); // Flag the module as loaded
-    /******/
-    /******/ /******/ module.l = true; // Return the exports of the module
-    /******/
-    /******/ /******/ return module.exports;
-    /******/
-  } // expose the modules object (__webpack_modules__)
-  /******/
-  /******/
-  /******/ /******/ __webpack_require__.m = modules; // expose the module cache
-  /******/
-  /******/ /******/ __webpack_require__.c = installedModules; // define getter function for harmony exports
-  /******/
-  /******/ /******/ __webpack_require__.d = function(exports, name, getter) {
-    /******/ if (!__webpack_require__.o(exports, name)) {
-      /******/ Object.defineProperty(exports, name, {
-        enumerable: true,
-        get: getter
-      });
-      /******/
-    }
-    /******/
-  }; // define __esModule on exports
-  /******/
-  /******/ /******/ __webpack_require__.r = function(exports) {
-    /******/ if (typeof Symbol !== 'undefined' && Symbol.toStringTag) {
-      /******/ Object.defineProperty(exports, Symbol.toStringTag, {
-        value: 'Module'
-      });
-      /******/
-    }
-    /******/ Object.defineProperty(exports, '__esModule', { value: true });
-    /******/
-  }; // create a fake namespace object // mode & 1: value is a module id, require it // mode & 2: merge all properties of value into the ns // mode & 4: return value when already ns object // mode & 8|1: behave like require
-  /******/
-  /******/ /******/ /******/ /******/ /******/ /******/ __webpack_require__.t = function(
-    value,
-    mode
-  ) {
-    /******/ if (mode & 1) value = __webpack_require__(value);
-    /******/ if (mode & 8) return value;
-    /******/ if (
-      mode & 4 &&
-      typeof value === 'object' &&
-      value &&
-      value.__esModule
-    )
-      return value;
-    /******/ var ns = Object.create(null);
-    /******/ __webpack_require__.r(ns);
-    /******/ Object.defineProperty(ns, 'default', {
-      enumerable: true,
-      value: value
-    });
-    /******/ if (mode & 2 && typeof value != 'string')
-      for (var key in value)
-        __webpack_require__.d(
-          ns,
-          key,
-          function(key) {
-            return value[key];
-          }.bind(null, key)
-        );
-    /******/ return ns;
-    /******/
-  }; // getDefaultExport function for compatibility with non-harmony modules
-  /******/
-  /******/ /******/ __webpack_require__.n = function(module) {
-    /******/ var getter =
-      module && module.__esModule
-        ? /******/ function getDefault() {
-            return module['default'];
-          }
-        : /******/ function getModuleExports() {
-            return module;
-          };
-    /******/ __webpack_require__.d(getter, 'a', getter);
-    /******/ return getter;
-    /******/
-  }; // Object.prototype.hasOwnProperty.call
-  /******/
-  /******/ /******/ __webpack_require__.o = function(object, property) {
-    return Object.prototype.hasOwnProperty.call(object, property);
-  }; // __webpack_public_path__
-  /******/
-  /******/ /******/ __webpack_require__.p = '/';
-  /******/
-  /******/ var jsonpArray = (wx['webpackJsonp'] = wx['webpackJsonp'] || []);
-  /******/ var oldJsonpFunction = jsonpArray.push.bind(jsonpArray);
-  /******/ jsonpArray.push = webpackJsonpCallback;
-  /******/ jsonpArray = jsonpArray.slice();
-  /******/ for (var i = 0; i < jsonpArray.length; i++)
-    webpackJsonpCallback(jsonpArray[i]);
-  /******/ var parentJsonpFunction = oldJsonpFunction; // run deferred modules from other chunks
-  /******/
-  /******/
-  /******/ /******/ checkDeferredModules();
-  /******/
-})(
-  /************************************************************************/
-  /******/ []
-);
-//# sourceMappingURL=runtime.js.map

文件差异内容过多而无法显示
+ 0 - 1
src/sites/mobile-taro/vue/dist/runtime.js.map


文件差异内容过多而无法显示
+ 0 - 11262
src/sites/mobile-taro/vue/dist/taro.js


文件差异内容过多而无法显示
+ 0 - 1
src/sites/mobile-taro/vue/dist/taro.js.map


文件差异内容过多而无法显示
+ 0 - 30023
src/sites/mobile-taro/vue/dist/vendors.js


文件差异内容过多而无法显示
+ 0 - 1
src/sites/mobile-taro/vue/dist/vendors.js.map


+ 0 - 1
src/sites/mobile-taro/vue/package.json

@@ -43,7 +43,6 @@
   },
   "devDependencies": {
     "@babel/core": "^7.8.0",
-    "@nutui/nutui": "^3.0.0-beta.15",
     "@tarojs/cli": "^3.3.0-alpha.2",
     "@tarojs/mini-runner": "^3.3.0-alpha.2",
     "@tarojs/plugin-html": "^3.3.0-alpha.2",

+ 5 - 4
src/sites/mobile-taro/vue/src/app.ts

@@ -1,14 +1,15 @@
 import { createApp } from 'vue';
 import './app.scss';
-import { Button, Icon } from './../../../../packages/nutui.taro.vue';
+import NUTUI from '@/packages/nutui.taro.vue';
+// import NUTUI from './../../../../packages/nutui.taro.vue';
 
-console.log(Button);
+console.log(NUTUI);
 
 const App = createApp({
   onShow() {}
   // 入口组件不需要实现 render 方法,即使实现了也会被 taro 所覆盖
 })
-  .use(Button)
-  .use(Icon);
+  // .use(Button)
+  .use(NUTUI);
 
 export default App;

+ 2 - 2
src/sites/mobile-taro/vue/src/pages/button/index.vue

@@ -1,13 +1,13 @@
 <template>
   <view>
     <nut-button type="primary">主要按钮</nut-button>
-    <!-- <nut-icon name="dongdong"></nut-icon> -->
     <Demo></Demo>
   </view>
 </template>
 <script lang="ts">
 import { defineComponent } from 'vue';
-import Demo from './../../../../../../packages/__VUE/button/demo.vue';
+import Demo from '@/packages/__VUE/button/demo.vue';
+// import Demo from './../../../../../../packages/__VUE/button/demo.vue';
 export default defineComponent({
   components: {
     Demo

+ 12 - 4
src/sites/mobile-taro/vue/tsconfig.json

@@ -8,24 +8,32 @@
     "experimentalDecorators": true,
     "noImplicitAny": false,
     "allowSyntheticDefaultImports": true,
-    "outDir": "lib",
+    "outDir": "./../../../../tsc/test/test",
     "noUnusedLocals": true,
     "noUnusedParameters": true,
     "strictNullChecks": true,
     "sourceMap": true,
-    "baseUrl": ".",
-    "rootDir": ".",
+    "baseUrl": "./../../../../src",
     "jsx": "react-jsx",
     "allowJs": true,
+    "composite": true,
     "resolveJsonModule": true,
     "typeRoots": [
       "node_modules/@types",
       "global.d.ts"
     ],
+    "paths": {
+      "@/*": ["./../../../../src/*"]
+    }
   },
+  "references": [
+    {
+      "path": "./../../../../tsconfig.json",
+    }
+  ],
+  "include": ["src/**/*.ts", "src/**/*.d.ts", "src/**/*.tsx", "src/**/*.vue"],
   "exclude": [
     "node_modules",
     "dist"
   ],
-  "compileOnSave": false
 }

+ 1 - 1
tsconfig.json

@@ -8,13 +8,13 @@
     "strict": true,
     "jsx": "preserve",
     "sourceMap": false,
-    "declaration": false,
     "removeComments": true,
     "resolveJsonModule": true,
     "esModuleInterop": true,
     "lib": ["esnext", "dom"],
     "outDir": "./tsc/test",
     "types": ["vite/client", "jest"],
+    "composite": true,
     "paths": {
       "@/*": ["src/*"]
     }