wyling 3 years ago
parent
commit
8628a65ac3
100 changed files with 161 additions and 2276 deletions
  1. 23 0
      .gitignore
  2. 16 0
      README.md
  3. 63 0
      babel.config.js
  4. 22 0
      postcss.config.js
  5. 28 0
      public/index.html
  6. 9 0
      tsconfig.json
  7. 0 11
      unpackage/dist/build/mp-weixin/wxcomponents/vant/common/validator.d.ts
  8. 0 30
      unpackage/dist/build/mp-weixin/wxcomponents/vant/common/validator.js
  9. 0 6
      unpackage/dist/build/mp-weixin/wxcomponents/vant/common/version.d.ts
  10. 0 45
      unpackage/dist/build/mp-weixin/wxcomponents/vant/common/version.js
  11. 0 1
      unpackage/dist/build/mp-weixin/wxcomponents/vant/count-down/index.d.ts
  12. 0 99
      unpackage/dist/build/mp-weixin/wxcomponents/vant/count-down/index.js
  13. 0 3
      unpackage/dist/build/mp-weixin/wxcomponents/vant/count-down/index.json
  14. 0 4
      unpackage/dist/build/mp-weixin/wxcomponents/vant/count-down/index.wxml
  15. 0 1
      unpackage/dist/build/mp-weixin/wxcomponents/vant/count-down/index.wxss
  16. 0 10
      unpackage/dist/build/mp-weixin/wxcomponents/vant/count-down/utils.d.ts
  17. 0 53
      unpackage/dist/build/mp-weixin/wxcomponents/vant/count-down/utils.js
  18. 0 1
      unpackage/dist/build/mp-weixin/wxcomponents/vant/datetime-picker/index.d.ts
  19. 0 324
      unpackage/dist/build/mp-weixin/wxcomponents/vant/datetime-picker/index.js
  20. 0 6
      unpackage/dist/build/mp-weixin/wxcomponents/vant/datetime-picker/index.json
  21. 0 16
      unpackage/dist/build/mp-weixin/wxcomponents/vant/datetime-picker/index.wxml
  22. 0 1
      unpackage/dist/build/mp-weixin/wxcomponents/vant/datetime-picker/index.wxss
  23. 0 43
      unpackage/dist/build/mp-weixin/wxcomponents/vant/definitions/index.d.ts
  24. 0 1
      unpackage/dist/build/mp-weixin/wxcomponents/vant/definitions/index.js
  25. 0 80
      unpackage/dist/build/mp-weixin/wxcomponents/vant/dialog/dialog.d.ts
  26. 0 84
      unpackage/dist/build/mp-weixin/wxcomponents/vant/dialog/dialog.js
  27. 0 1
      unpackage/dist/build/mp-weixin/wxcomponents/vant/dialog/index.d.ts
  28. 0 122
      unpackage/dist/build/mp-weixin/wxcomponents/vant/dialog/index.js
  29. 0 9
      unpackage/dist/build/mp-weixin/wxcomponents/vant/dialog/index.json
  30. 0 113
      unpackage/dist/build/mp-weixin/wxcomponents/vant/dialog/index.wxml
  31. 0 1
      unpackage/dist/build/mp-weixin/wxcomponents/vant/dialog/index.wxss
  32. 0 1
      unpackage/dist/build/mp-weixin/wxcomponents/vant/divider/index.d.ts
  33. 0 12
      unpackage/dist/build/mp-weixin/wxcomponents/vant/divider/index.js
  34. 0 4
      unpackage/dist/build/mp-weixin/wxcomponents/vant/divider/index.json
  35. 0 9
      unpackage/dist/build/mp-weixin/wxcomponents/vant/divider/index.wxml
  36. 0 18
      unpackage/dist/build/mp-weixin/wxcomponents/vant/divider/index.wxs
  37. 0 1
      unpackage/dist/build/mp-weixin/wxcomponents/vant/divider/index.wxss
  38. 0 1
      unpackage/dist/build/mp-weixin/wxcomponents/vant/dropdown-item/index.d.ts
  39. 0 111
      unpackage/dist/build/mp-weixin/wxcomponents/vant/dropdown-item/index.js
  40. 0 8
      unpackage/dist/build/mp-weixin/wxcomponents/vant/dropdown-item/index.json
  41. 0 48
      unpackage/dist/build/mp-weixin/wxcomponents/vant/dropdown-item/index.wxml
  42. 0 1
      unpackage/dist/build/mp-weixin/wxcomponents/vant/dropdown-item/index.wxss
  43. 0 5
      unpackage/dist/build/mp-weixin/wxcomponents/vant/dropdown-item/shared.d.ts
  44. 0 1
      unpackage/dist/build/mp-weixin/wxcomponents/vant/dropdown-item/shared.js
  45. 0 1
      unpackage/dist/build/mp-weixin/wxcomponents/vant/dropdown-menu/index.d.ts
  46. 0 112
      unpackage/dist/build/mp-weixin/wxcomponents/vant/dropdown-menu/index.js
  47. 0 3
      unpackage/dist/build/mp-weixin/wxcomponents/vant/dropdown-menu/index.json
  48. 0 23
      unpackage/dist/build/mp-weixin/wxcomponents/vant/dropdown-menu/index.wxml
  49. 0 16
      unpackage/dist/build/mp-weixin/wxcomponents/vant/dropdown-menu/index.wxs
  50. 0 1
      unpackage/dist/build/mp-weixin/wxcomponents/vant/dropdown-menu/index.wxss
  51. 0 1
      unpackage/dist/build/mp-weixin/wxcomponents/vant/empty/index.d.ts
  52. 0 10
      unpackage/dist/build/mp-weixin/wxcomponents/vant/empty/index.js
  53. 0 4
      unpackage/dist/build/mp-weixin/wxcomponents/vant/empty/index.json
  54. 0 22
      unpackage/dist/build/mp-weixin/wxcomponents/vant/empty/index.wxml
  55. 0 14
      unpackage/dist/build/mp-weixin/wxcomponents/vant/empty/index.wxs
  56. 0 1
      unpackage/dist/build/mp-weixin/wxcomponents/vant/empty/index.wxss
  57. 0 1
      unpackage/dist/build/mp-weixin/wxcomponents/vant/field/index.d.ts
  58. 0 126
      unpackage/dist/build/mp-weixin/wxcomponents/vant/field/index.js
  59. 0 7
      unpackage/dist/build/mp-weixin/wxcomponents/vant/field/index.json
  60. 0 56
      unpackage/dist/build/mp-weixin/wxcomponents/vant/field/index.wxml
  61. 0 18
      unpackage/dist/build/mp-weixin/wxcomponents/vant/field/index.wxs
  62. 0 0
      unpackage/dist/build/mp-weixin/wxcomponents/vant/field/index.wxss
  63. 0 27
      unpackage/dist/build/mp-weixin/wxcomponents/vant/field/input.wxml
  64. 0 4
      unpackage/dist/build/mp-weixin/wxcomponents/vant/field/props.d.ts
  65. 0 63
      unpackage/dist/build/mp-weixin/wxcomponents/vant/field/props.js
  66. 0 29
      unpackage/dist/build/mp-weixin/wxcomponents/vant/field/textarea.wxml
  67. 0 1
      unpackage/dist/build/mp-weixin/wxcomponents/vant/goods-action-button/index.d.ts
  68. 0 37
      unpackage/dist/build/mp-weixin/wxcomponents/vant/goods-action-button/index.js
  69. 0 6
      unpackage/dist/build/mp-weixin/wxcomponents/vant/goods-action-button/index.json
  70. 0 30
      unpackage/dist/build/mp-weixin/wxcomponents/vant/goods-action-button/index.wxml
  71. 0 1
      unpackage/dist/build/mp-weixin/wxcomponents/vant/goods-action-button/index.wxss
  72. 0 1
      unpackage/dist/build/mp-weixin/wxcomponents/vant/goods-action-icon/index.d.ts
  73. 0 22
      unpackage/dist/build/mp-weixin/wxcomponents/vant/goods-action-icon/index.js
  74. 0 7
      unpackage/dist/build/mp-weixin/wxcomponents/vant/goods-action-icon/index.json
  75. 0 35
      unpackage/dist/build/mp-weixin/wxcomponents/vant/goods-action-icon/index.wxml
  76. 0 1
      unpackage/dist/build/mp-weixin/wxcomponents/vant/goods-action-icon/index.wxss
  77. 0 1
      unpackage/dist/build/mp-weixin/wxcomponents/vant/goods-action/index.d.ts
  78. 0 15
      unpackage/dist/build/mp-weixin/wxcomponents/vant/goods-action/index.js
  79. 0 3
      unpackage/dist/build/mp-weixin/wxcomponents/vant/goods-action/index.json
  80. 0 5
      unpackage/dist/build/mp-weixin/wxcomponents/vant/goods-action/index.wxml
  81. 0 1
      unpackage/dist/build/mp-weixin/wxcomponents/vant/goods-action/index.wxss
  82. 0 1
      unpackage/dist/build/mp-weixin/wxcomponents/vant/grid-item/index.d.ts
  83. 0 56
      unpackage/dist/build/mp-weixin/wxcomponents/vant/grid-item/index.js
  84. 0 6
      unpackage/dist/build/mp-weixin/wxcomponents/vant/grid-item/index.json
  85. 0 27
      unpackage/dist/build/mp-weixin/wxcomponents/vant/grid-item/index.wxml
  86. 0 32
      unpackage/dist/build/mp-weixin/wxcomponents/vant/grid-item/index.wxs
  87. 0 1
      unpackage/dist/build/mp-weixin/wxcomponents/vant/grid-item/index.wxss
  88. 0 1
      unpackage/dist/build/mp-weixin/wxcomponents/vant/grid/index.d.ts
  89. 0 50
      unpackage/dist/build/mp-weixin/wxcomponents/vant/grid/index.js
  90. 0 3
      unpackage/dist/build/mp-weixin/wxcomponents/vant/grid/index.json
  91. 0 8
      unpackage/dist/build/mp-weixin/wxcomponents/vant/grid/index.wxml
  92. 0 13
      unpackage/dist/build/mp-weixin/wxcomponents/vant/grid/index.wxs
  93. 0 1
      unpackage/dist/build/mp-weixin/wxcomponents/vant/grid/index.wxss
  94. 0 1
      unpackage/dist/build/mp-weixin/wxcomponents/vant/icon/index.d.ts
  95. 0 20
      unpackage/dist/build/mp-weixin/wxcomponents/vant/icon/index.js
  96. 0 6
      unpackage/dist/build/mp-weixin/wxcomponents/vant/icon/index.json
  97. 0 20
      unpackage/dist/build/mp-weixin/wxcomponents/vant/icon/index.wxml
  98. 0 39
      unpackage/dist/build/mp-weixin/wxcomponents/vant/icon/index.wxs
  99. 0 0
      unpackage/dist/build/mp-weixin/wxcomponents/vant/icon/index.wxss
  100. 0 1
      unpackage/dist/build/mp-weixin/wxcomponents/vant/image/index.d.ts

+ 23 - 0
.gitignore

@@ -0,0 +1,23 @@
+.DS_Store
+node_modules/
+unpackage/
+dist/
+
+# local env files
+.env.local
+.env.*.local
+
+# Log files
+npm-debug.log*
+yarn-debug.log*
+yarn-error.log*
+
+# Editor directories and files
+.project
+.idea
+.vscode
+*.suo
+*.ntvs*
+*.njsproj
+*.sln
+*.sw*

+ 16 - 0
README.md

@@ -0,0 +1,16 @@
+# 极速生活圈
+
+## 项目初始化
+```
+npm install
+```
+
+### 项目启动
+```
+npm run build:mp-weixin
+```
+
+### 启动后使用微信开发者工具打开
+```
+导入目录dist/build/mp-weixin
+```

+ 63 - 0
babel.config.js

@@ -0,0 +1,63 @@
+const plugins = []
+
+if (process.env.UNI_OPT_TREESHAKINGNG) {
+  plugins.push(require('@dcloudio/vue-cli-plugin-uni-optimize/packages/babel-plugin-uni-api/index.js'))
+}
+
+if (
+  (
+    process.env.UNI_PLATFORM === 'app-plus' &&
+    process.env.UNI_USING_V8
+  ) ||
+  (
+    process.env.UNI_PLATFORM === 'h5' &&
+    process.env.UNI_H5_BROWSER === 'builtin'
+  )
+) {
+  const path = require('path')
+
+  const isWin = /^win/.test(process.platform)
+
+  const normalizePath = path => (isWin ? path.replace(/\\/g, '/') : path)
+
+  const input = normalizePath(process.env.UNI_INPUT_DIR)
+  try {
+    plugins.push([
+      require('@dcloudio/vue-cli-plugin-hbuilderx/packages/babel-plugin-console'),
+      {
+        file (file) {
+          file = normalizePath(file)
+          if (file.indexOf(input) === 0) {
+            return path.relative(input, file)
+          }
+          return false
+        }
+      }
+    ])
+  } catch (e) {}
+}
+
+process.UNI_LIBRARIES = process.UNI_LIBRARIES || ['@dcloudio/uni-ui']
+process.UNI_LIBRARIES.forEach(libraryName => {
+  plugins.push([
+    'import',
+    {
+      'libraryName': libraryName,
+      'customName': (name) => {
+        return `${libraryName}/lib/${name}/${name}`
+      }
+    }
+  ])
+})
+module.exports = {
+  presets: [
+    [
+      '@vue/app',
+      {
+        modules: 'commonjs',
+        useBuiltIns: process.env.UNI_PLATFORM === 'h5' ? 'usage' : 'entry'
+      }
+    ]
+  ],
+  plugins
+}

+ 22 - 0
postcss.config.js

@@ -0,0 +1,22 @@
+const path = require('path')
+module.exports = {
+  parser: require('postcss-comment'),
+  plugins: [
+    require('postcss-import')({
+      resolve (id, basedir, importOptions) {
+        if (id.startsWith('~@/')) {
+          return path.resolve(process.env.UNI_INPUT_DIR, id.substr(3))
+        } else if (id.startsWith('@/')) {
+          return path.resolve(process.env.UNI_INPUT_DIR, id.substr(2))
+        } else if (id.startsWith('/') && !id.startsWith('//')) {
+          return path.resolve(process.env.UNI_INPUT_DIR, id.substr(1))
+        }
+        return id
+      }
+    }),
+    require('autoprefixer')({
+      remove: process.env.UNI_PLATFORM !== 'h5'
+    }),
+    require('@dcloudio/vue-cli-plugin-uni/packages/postcss')
+  ]
+}

+ 28 - 0
public/index.html

@@ -0,0 +1,28 @@
+<!DOCTYPE html>
+<html lang="zh-CN">
+
+    <head>
+        <meta charset="utf-8">
+        <meta http-equiv="X-UA-Compatible" content="IE=edge">
+        <title>
+            <%= htmlWebpackPlugin.options.title %>
+        </title>
+        <script>
+            document.addEventListener('DOMContentLoaded', function() {
+                document.documentElement.style.fontSize = document.documentElement.clientWidth / 20 + 'px'
+            })
+            var coverSupport = 'CSS' in window && typeof CSS.supports === 'function' && (CSS.supports('top: env(a)') || CSS.supports('top: constant(a)'))
+            document.write('<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0' + (coverSupport ? ', viewport-fit=cover' : '') + '" />')
+        </script>
+        <link rel="stylesheet" href="<%= BASE_URL %>static/index.<%= VUE_APP_INDEX_CSS_HASH %>.css" />
+    </head>
+
+    <body>
+        <noscript>
+            <strong>Please enable JavaScript to continue.</strong>
+        </noscript>
+        <div id="app"></div>
+        <!-- built files will be auto injected -->
+    </body>
+
+</html>

+ 9 - 0
tsconfig.json

@@ -0,0 +1,9 @@
+{
+  "compilerOptions": {
+    "types": [
+      "@dcloudio/types",
+      "miniprogram-api-typings",
+      "mini-types"
+    ]
+  }
+}

+ 0 - 11
unpackage/dist/build/mp-weixin/wxcomponents/vant/common/validator.d.ts

@@ -1,11 +0,0 @@
-export declare function isFunction(val: unknown): val is Function;
-export declare function isPlainObject(
-  val: unknown
-): val is Record<string, unknown>;
-export declare function isPromise<T = unknown>(val: unknown): val is Promise<T>;
-export declare function isDef(value: unknown): boolean;
-export declare function isObj(x: unknown): x is Record<string, unknown>;
-export declare function isNumber(value: string): boolean;
-export declare function isBoolean(value: unknown): value is boolean;
-export declare function isImageUrl(url: string): boolean;
-export declare function isVideoUrl(url: string): boolean;

+ 0 - 30
unpackage/dist/build/mp-weixin/wxcomponents/vant/common/validator.js

@@ -1,30 +0,0 @@
-export function isFunction(val) {
-  return typeof val === 'function';
-}
-export function isPlainObject(val) {
-  return val !== null && typeof val === 'object' && !Array.isArray(val);
-}
-export function isPromise(val) {
-  return isPlainObject(val) && isFunction(val.then) && isFunction(val.catch);
-}
-export function isDef(value) {
-  return value !== undefined && value !== null;
-}
-export function isObj(x) {
-  const type = typeof x;
-  return x !== null && (type === 'object' || type === 'function');
-}
-export function isNumber(value) {
-  return /^\d+(\.\d+)?$/.test(value);
-}
-export function isBoolean(value) {
-  return typeof value === 'boolean';
-}
-const IMAGE_REGEXP = /\.(jpeg|jpg|gif|png|svg|webp|jfif|bmp|dpg)/i;
-const VIDEO_REGEXP = /\.(mp4|mpg|mpeg|dat|asf|avi|rm|rmvb|mov|wmv|flv|mkv)/i;
-export function isImageUrl(url) {
-  return IMAGE_REGEXP.test(url);
-}
-export function isVideoUrl(url) {
-  return VIDEO_REGEXP.test(url);
-}

+ 0 - 6
unpackage/dist/build/mp-weixin/wxcomponents/vant/common/version.d.ts

@@ -1,6 +0,0 @@
-export declare function canIUseModel(): boolean;
-export declare function canIUseFormFieldButton(): boolean;
-export declare function canIUseAnimate(): boolean;
-export declare function canIUseGroupSetData(): boolean;
-export declare function canIUseNextTick(): boolean;
-export declare function canIUseCanvas2d(): boolean;

+ 0 - 45
unpackage/dist/build/mp-weixin/wxcomponents/vant/common/version.js

@@ -1,45 +0,0 @@
-import { getSystemInfoSync } from './utils';
-function compareVersion(v1, v2) {
-  v1 = v1.split('.');
-  v2 = v2.split('.');
-  const len = Math.max(v1.length, v2.length);
-  while (v1.length < len) {
-    v1.push('0');
-  }
-  while (v2.length < len) {
-    v2.push('0');
-  }
-  for (let i = 0; i < len; i++) {
-    const num1 = parseInt(v1[i], 10);
-    const num2 = parseInt(v2[i], 10);
-    if (num1 > num2) {
-      return 1;
-    }
-    if (num1 < num2) {
-      return -1;
-    }
-  }
-  return 0;
-}
-function gte(version) {
-  const system = getSystemInfoSync();
-  return compareVersion(system.SDKVersion, version) >= 0;
-}
-export function canIUseModel() {
-  return gte('2.9.3');
-}
-export function canIUseFormFieldButton() {
-  return gte('2.10.3');
-}
-export function canIUseAnimate() {
-  return gte('2.9.0');
-}
-export function canIUseGroupSetData() {
-  return gte('2.4.0');
-}
-export function canIUseNextTick() {
-  return wx.canIUse('nextTick');
-}
-export function canIUseCanvas2d() {
-  return gte('2.9.0');
-}

+ 0 - 1
unpackage/dist/build/mp-weixin/wxcomponents/vant/count-down/index.d.ts

@@ -1 +0,0 @@
-export {};

+ 0 - 99
unpackage/dist/build/mp-weixin/wxcomponents/vant/count-down/index.js

@@ -1,99 +0,0 @@
-import { VantComponent } from '../common/component';
-import { isSameSecond, parseFormat, parseTimeData } from './utils';
-function simpleTick(fn) {
-  return setTimeout(fn, 30);
-}
-VantComponent({
-  props: {
-    useSlot: Boolean,
-    millisecond: Boolean,
-    time: {
-      type: Number,
-      observer: 'reset',
-    },
-    format: {
-      type: String,
-      value: 'HH:mm:ss',
-    },
-    autoStart: {
-      type: Boolean,
-      value: true,
-    },
-  },
-  data: {
-    timeData: parseTimeData(0),
-    formattedTime: '0',
-  },
-  destroyed() {
-    clearTimeout(this.tid);
-    this.tid = null;
-  },
-  methods: {
-    // 开始
-    start() {
-      if (this.counting) {
-        return;
-      }
-      this.counting = true;
-      this.endTime = Date.now() + this.remain;
-      this.tick();
-    },
-    // 暂停
-    pause() {
-      this.counting = false;
-      clearTimeout(this.tid);
-    },
-    // 重置
-    reset() {
-      this.pause();
-      this.remain = this.data.time;
-      this.setRemain(this.remain);
-      if (this.data.autoStart) {
-        this.start();
-      }
-    },
-    tick() {
-      if (this.data.millisecond) {
-        this.microTick();
-      } else {
-        this.macroTick();
-      }
-    },
-    microTick() {
-      this.tid = simpleTick(() => {
-        this.setRemain(this.getRemain());
-        if (this.remain !== 0) {
-          this.microTick();
-        }
-      });
-    },
-    macroTick() {
-      this.tid = simpleTick(() => {
-        const remain = this.getRemain();
-        if (!isSameSecond(remain, this.remain) || remain === 0) {
-          this.setRemain(remain);
-        }
-        if (this.remain !== 0) {
-          this.macroTick();
-        }
-      });
-    },
-    getRemain() {
-      return Math.max(this.endTime - Date.now(), 0);
-    },
-    setRemain(remain) {
-      this.remain = remain;
-      const timeData = parseTimeData(remain);
-      if (this.data.useSlot) {
-        this.$emit('change', timeData);
-      }
-      this.setData({
-        formattedTime: parseFormat(this.data.format, timeData),
-      });
-      if (remain === 0) {
-        this.pause();
-        this.$emit('finish');
-      }
-    },
-  },
-});

+ 0 - 3
unpackage/dist/build/mp-weixin/wxcomponents/vant/count-down/index.json

@@ -1,3 +0,0 @@
-{
-  "component": true
-}

+ 0 - 4
unpackage/dist/build/mp-weixin/wxcomponents/vant/count-down/index.wxml

@@ -1,4 +0,0 @@
-<view class="van-count-down">
-  <slot wx:if="{{ useSlot }}"/>
-  <block wx:else>{{ formattedTime }}</block>
-</view>

+ 0 - 1
unpackage/dist/build/mp-weixin/wxcomponents/vant/count-down/index.wxss

@@ -1 +0,0 @@
-@import '../common/index.wxss';.van-count-down{color:#323233;color:var(--count-down-text-color,#323233);font-size:14px;font-size:var(--count-down-font-size,14px);line-height:20px;line-height:var(--count-down-line-height,20px)}

+ 0 - 10
unpackage/dist/build/mp-weixin/wxcomponents/vant/count-down/utils.d.ts

@@ -1,10 +0,0 @@
-export declare type TimeData = {
-    days: number;
-    hours: number;
-    minutes: number;
-    seconds: number;
-    milliseconds: number;
-};
-export declare function parseTimeData(time: number): TimeData;
-export declare function parseFormat(format: string, timeData: TimeData): string;
-export declare function isSameSecond(time1: number, time2: number): boolean;

+ 0 - 53
unpackage/dist/build/mp-weixin/wxcomponents/vant/count-down/utils.js

@@ -1,53 +0,0 @@
-function padZero(num, targetLength = 2) {
-  let str = num + '';
-  while (str.length < targetLength) {
-    str = '0' + str;
-  }
-  return str;
-}
-const SECOND = 1000;
-const MINUTE = 60 * SECOND;
-const HOUR = 60 * MINUTE;
-const DAY = 24 * HOUR;
-export function parseTimeData(time) {
-  const days = Math.floor(time / DAY);
-  const hours = Math.floor((time % DAY) / HOUR);
-  const minutes = Math.floor((time % HOUR) / MINUTE);
-  const seconds = Math.floor((time % MINUTE) / SECOND);
-  const milliseconds = Math.floor(time % SECOND);
-  return {
-    days,
-    hours,
-    minutes,
-    seconds,
-    milliseconds,
-  };
-}
-export function parseFormat(format, timeData) {
-  const { days } = timeData;
-  let { hours, minutes, seconds, milliseconds } = timeData;
-  if (format.indexOf('DD') === -1) {
-    hours += days * 24;
-  } else {
-    format = format.replace('DD', padZero(days));
-  }
-  if (format.indexOf('HH') === -1) {
-    minutes += hours * 60;
-  } else {
-    format = format.replace('HH', padZero(hours));
-  }
-  if (format.indexOf('mm') === -1) {
-    seconds += minutes * 60;
-  } else {
-    format = format.replace('mm', padZero(minutes));
-  }
-  if (format.indexOf('ss') === -1) {
-    milliseconds += seconds * 1000;
-  } else {
-    format = format.replace('ss', padZero(seconds));
-  }
-  return format.replace('SSS', padZero(milliseconds, 3));
-}
-export function isSameSecond(time1, time2) {
-  return Math.floor(time1 / 1000) === Math.floor(time2 / 1000);
-}

+ 0 - 1
unpackage/dist/build/mp-weixin/wxcomponents/vant/datetime-picker/index.d.ts

@@ -1 +0,0 @@
-export {};

+ 0 - 324
unpackage/dist/build/mp-weixin/wxcomponents/vant/datetime-picker/index.js

@@ -1,324 +0,0 @@
-import { VantComponent } from '../common/component';
-import { isDef } from '../common/validator';
-import { pickerProps } from '../picker/shared';
-const currentYear = new Date().getFullYear();
-function isValidDate(date) {
-  return isDef(date) && !isNaN(new Date(date).getTime());
-}
-function range(num, min, max) {
-  return Math.min(Math.max(num, min), max);
-}
-function padZero(val) {
-  return `00${val}`.slice(-2);
-}
-function times(n, iteratee) {
-  let index = -1;
-  const result = Array(n < 0 ? 0 : n);
-  while (++index < n) {
-    result[index] = iteratee(index);
-  }
-  return result;
-}
-function getTrueValue(formattedValue) {
-  if (formattedValue === undefined) {
-    formattedValue = '1';
-  }
-  while (isNaN(parseInt(formattedValue, 10))) {
-    formattedValue = formattedValue.slice(1);
-  }
-  return parseInt(formattedValue, 10);
-}
-function getMonthEndDay(year, month) {
-  return 32 - new Date(year, month - 1, 32).getDate();
-}
-const defaultFormatter = (type, value) => value;
-VantComponent({
-  classes: ['active-class', 'toolbar-class', 'column-class'],
-  props: Object.assign(Object.assign({}, pickerProps), {
-    value: {
-      type: null,
-      observer: 'updateValue',
-    },
-    filter: null,
-    type: {
-      type: String,
-      value: 'datetime',
-      observer: 'updateValue',
-    },
-    showToolbar: {
-      type: Boolean,
-      value: true,
-    },
-    formatter: {
-      type: null,
-      value: defaultFormatter,
-    },
-    minDate: {
-      type: Number,
-      value: new Date(currentYear - 10, 0, 1).getTime(),
-      observer: 'updateValue',
-    },
-    maxDate: {
-      type: Number,
-      value: new Date(currentYear + 10, 11, 31).getTime(),
-      observer: 'updateValue',
-    },
-    minHour: {
-      type: Number,
-      value: 0,
-      observer: 'updateValue',
-    },
-    maxHour: {
-      type: Number,
-      value: 23,
-      observer: 'updateValue',
-    },
-    minMinute: {
-      type: Number,
-      value: 0,
-      observer: 'updateValue',
-    },
-    maxMinute: {
-      type: Number,
-      value: 59,
-      observer: 'updateValue',
-    },
-  }),
-  data: {
-    innerValue: Date.now(),
-    columns: [],
-  },
-  methods: {
-    updateValue() {
-      const { data } = this;
-      const val = this.correctValue(data.value);
-      const isEqual = val === data.innerValue;
-      if (!isEqual) {
-        this.updateColumnValue(val).then(() => {
-          this.$emit('input', val);
-        });
-      } else {
-        this.updateColumns();
-      }
-    },
-    getPicker() {
-      if (this.picker == null) {
-        this.picker = this.selectComponent('.van-datetime-picker');
-        const { picker } = this;
-        const { setColumnValues } = picker;
-        picker.setColumnValues = (...args) =>
-          setColumnValues.apply(picker, [...args, false]);
-      }
-      return this.picker;
-    },
-    updateColumns() {
-      const { formatter = defaultFormatter } = this.data;
-      const results = this.getOriginColumns().map((column) => ({
-        values: column.values.map((value) => formatter(column.type, value)),
-      }));
-      return this.set({ columns: results });
-    },
-    getOriginColumns() {
-      const { filter } = this.data;
-      const results = this.getRanges().map(({ type, range }) => {
-        let values = times(range[1] - range[0] + 1, (index) => {
-          let value = range[0] + index;
-          value = type === 'year' ? `${value}` : padZero(value);
-          return value;
-        });
-        if (filter) {
-          values = filter(type, values);
-        }
-        return { type, values };
-      });
-      return results;
-    },
-    getRanges() {
-      const { data } = this;
-      if (data.type === 'time') {
-        return [
-          {
-            type: 'hour',
-            range: [data.minHour, data.maxHour],
-          },
-          {
-            type: 'minute',
-            range: [data.minMinute, data.maxMinute],
-          },
-        ];
-      }
-      const {
-        maxYear,
-        maxDate,
-        maxMonth,
-        maxHour,
-        maxMinute,
-      } = this.getBoundary('max', data.innerValue);
-      const {
-        minYear,
-        minDate,
-        minMonth,
-        minHour,
-        minMinute,
-      } = this.getBoundary('min', data.innerValue);
-      const result = [
-        {
-          type: 'year',
-          range: [minYear, maxYear],
-        },
-        {
-          type: 'month',
-          range: [minMonth, maxMonth],
-        },
-        {
-          type: 'day',
-          range: [minDate, maxDate],
-        },
-        {
-          type: 'hour',
-          range: [minHour, maxHour],
-        },
-        {
-          type: 'minute',
-          range: [minMinute, maxMinute],
-        },
-      ];
-      if (data.type === 'date') result.splice(3, 2);
-      if (data.type === 'year-month') result.splice(2, 3);
-      return result;
-    },
-    correctValue(value) {
-      const { data } = this;
-      // validate value
-      const isDateType = data.type !== 'time';
-      if (isDateType && !isValidDate(value)) {
-        value = data.minDate;
-      } else if (!isDateType && !value) {
-        const { minHour } = data;
-        value = `${padZero(minHour)}:00`;
-      }
-      // time type
-      if (!isDateType) {
-        let [hour, minute] = value.split(':');
-        hour = padZero(range(hour, data.minHour, data.maxHour));
-        minute = padZero(range(minute, data.minMinute, data.maxMinute));
-        return `${hour}:${minute}`;
-      }
-      // date type
-      value = Math.max(value, data.minDate);
-      value = Math.min(value, data.maxDate);
-      return value;
-    },
-    getBoundary(type, innerValue) {
-      const value = new Date(innerValue);
-      const boundary = new Date(this.data[`${type}Date`]);
-      const year = boundary.getFullYear();
-      let month = 1;
-      let date = 1;
-      let hour = 0;
-      let minute = 0;
-      if (type === 'max') {
-        month = 12;
-        date = getMonthEndDay(value.getFullYear(), value.getMonth() + 1);
-        hour = 23;
-        minute = 59;
-      }
-      if (value.getFullYear() === year) {
-        month = boundary.getMonth() + 1;
-        if (value.getMonth() + 1 === month) {
-          date = boundary.getDate();
-          if (value.getDate() === date) {
-            hour = boundary.getHours();
-            if (value.getHours() === hour) {
-              minute = boundary.getMinutes();
-            }
-          }
-        }
-      }
-      return {
-        [`${type}Year`]: year,
-        [`${type}Month`]: month,
-        [`${type}Date`]: date,
-        [`${type}Hour`]: hour,
-        [`${type}Minute`]: minute,
-      };
-    },
-    onCancel() {
-      this.$emit('cancel');
-    },
-    onConfirm() {
-      this.$emit('confirm', this.data.innerValue);
-    },
-    onChange() {
-      const { data } = this;
-      let value;
-      const picker = this.getPicker();
-      const originColumns = this.getOriginColumns();
-      if (data.type === 'time') {
-        const indexes = picker.getIndexes();
-        value = `${+originColumns[0].values[indexes[0]]}:${+originColumns[1]
-          .values[indexes[1]]}`;
-      } else {
-        const indexes = picker.getIndexes();
-        const values = indexes.map(
-          (value, index) => originColumns[index].values[value]
-        );
-        const year = getTrueValue(values[0]);
-        const month = getTrueValue(values[1]);
-        const maxDate = getMonthEndDay(year, month);
-        let date = getTrueValue(values[2]);
-        if (data.type === 'year-month') {
-          date = 1;
-        }
-        date = date > maxDate ? maxDate : date;
-        let hour = 0;
-        let minute = 0;
-        if (data.type === 'datetime') {
-          hour = getTrueValue(values[3]);
-          minute = getTrueValue(values[4]);
-        }
-        value = new Date(year, month - 1, date, hour, minute);
-      }
-      value = this.correctValue(value);
-      this.updateColumnValue(value).then(() => {
-        this.$emit('input', value);
-        this.$emit('change', picker);
-      });
-    },
-    updateColumnValue(value) {
-      let values = [];
-      const { type } = this.data;
-      const formatter = this.data.formatter || defaultFormatter;
-      const picker = this.getPicker();
-      if (type === 'time') {
-        const pair = value.split(':');
-        values = [formatter('hour', pair[0]), formatter('minute', pair[1])];
-      } else {
-        const date = new Date(value);
-        values = [
-          formatter('year', `${date.getFullYear()}`),
-          formatter('month', padZero(date.getMonth() + 1)),
-        ];
-        if (type === 'date') {
-          values.push(formatter('day', padZero(date.getDate())));
-        }
-        if (type === 'datetime') {
-          values.push(
-            formatter('day', padZero(date.getDate())),
-            formatter('hour', padZero(date.getHours())),
-            formatter('minute', padZero(date.getMinutes()))
-          );
-        }
-      }
-      return this.set({ innerValue: value })
-        .then(() => this.updateColumns())
-        .then(() => picker.setValues(values));
-    },
-  },
-  created() {
-    const innerValue = this.correctValue(this.data.value);
-    this.updateColumnValue(innerValue).then(() => {
-      this.$emit('input', innerValue);
-    });
-  },
-});

+ 0 - 6
unpackage/dist/build/mp-weixin/wxcomponents/vant/datetime-picker/index.json

@@ -1,6 +0,0 @@
-{
-  "component": true,
-  "usingComponents": {
-    "van-picker": "../picker/index"
-  }
-}

+ 0 - 16
unpackage/dist/build/mp-weixin/wxcomponents/vant/datetime-picker/index.wxml

@@ -1,16 +0,0 @@
-<van-picker
-  class="van-datetime-picker"
-  active-class="active-class"
-  toolbar-class="toolbar-class"
-  column-class="column-class"
-  title="{{ title }}"
-  columns="{{ columns }}"
-  item-height="{{ itemHeight }}"
-  show-toolbar="{{ showToolbar }}"
-  visible-item-count="{{ visibleItemCount }}"
-  confirm-button-text="{{ confirmButtonText }}"
-  cancel-button-text="{{ cancelButtonText }}"
-  bind:change="onChange"
-  bind:confirm="onConfirm"
-  bind:cancel="onCancel"
-/>

+ 0 - 1
unpackage/dist/build/mp-weixin/wxcomponents/vant/datetime-picker/index.wxss

@@ -1 +0,0 @@
-@import '../common/index.wxss';

+ 0 - 43
unpackage/dist/build/mp-weixin/wxcomponents/vant/definitions/index.d.ts

@@ -1,43 +0,0 @@
-/// <reference types="miniprogram-api-typings" />
-interface VantComponentInstance {
-  parent: WechatMiniprogram.Component.TrivialInstance;
-  children: WechatMiniprogram.Component.TrivialInstance[];
-  index: number;
-  $emit: (
-    name: string,
-    detail?: unknown,
-    options?: WechatMiniprogram.Component.TriggerEventOption
-  ) => void;
-}
-export declare type VantComponentOptions<
-  Data extends WechatMiniprogram.Component.DataOption,
-  Props extends WechatMiniprogram.Component.PropertyOption,
-  Methods extends WechatMiniprogram.Component.MethodOption
-> = {
-  data?: Data;
-  field?: boolean;
-  classes?: string[];
-  mixins?: string[];
-  props?: Props;
-  relation?: {
-    relations: Record<string, WechatMiniprogram.Component.RelationOption>;
-    mixin: string;
-  };
-  methods?: Methods;
-  beforeCreate?: () => void;
-  created?: () => void;
-  mounted?: () => void;
-  destroyed?: () => void;
-} & ThisType<
-  VantComponentInstance &
-    WechatMiniprogram.Component.Instance<
-      Data & {
-        name: string;
-        value: any;
-      },
-      Props,
-      Methods
-    > &
-    Record<string, any>
->;
-export {};

+ 0 - 1
unpackage/dist/build/mp-weixin/wxcomponents/vant/definitions/index.js

@@ -1 +0,0 @@
-export {};

+ 0 - 80
unpackage/dist/build/mp-weixin/wxcomponents/vant/dialog/dialog.d.ts

@@ -1,80 +0,0 @@
-/// <reference types="miniprogram-api-typings" />
-export declare type Action = 'confirm' | 'cancel' | 'overlay';
-interface DialogOptions {
-  lang?: string;
-  show?: boolean;
-  title?: string;
-  width?: string | number | null;
-  zIndex?: number;
-  theme?: string;
-  context?:
-    | WechatMiniprogram.Page.TrivialInstance
-    | WechatMiniprogram.Component.TrivialInstance;
-  message?: string;
-  overlay?: boolean;
-  selector?: string;
-  ariaLabel?: string;
-  className?: string;
-  customStyle?: string;
-  transition?: string;
-  /**
-   * @deprecated use beforeClose instead
-   */
-  asyncClose?: boolean;
-  beforeClose?: null | ((action: Action) => Promise<void> | void);
-  businessId?: number;
-  sessionFrom?: string;
-  overlayStyle?: string;
-  appParameter?: string;
-  messageAlign?: string;
-  sendMessageImg?: string;
-  showMessageCard?: boolean;
-  sendMessagePath?: string;
-  sendMessageTitle?: string;
-  confirmButtonText?: string;
-  cancelButtonText?: string;
-  showConfirmButton?: boolean;
-  showCancelButton?: boolean;
-  closeOnClickOverlay?: boolean;
-  confirmButtonOpenType?: string;
-}
-declare const Dialog: {
-  (options: DialogOptions): Promise<
-    WechatMiniprogram.Component.Instance<
-      Record<string, any>,
-      Record<string, any>,
-      Record<string, any>,
-      Record<string, any>,
-      false
-    >
-  >;
-  alert(
-    options: DialogOptions
-  ): Promise<
-    WechatMiniprogram.Component.Instance<
-      Record<string, any>,
-      Record<string, any>,
-      Record<string, any>,
-      Record<string, any>,
-      false
-    >
-  >;
-  confirm(
-    options: DialogOptions
-  ): Promise<
-    WechatMiniprogram.Component.Instance<
-      Record<string, any>,
-      Record<string, any>,
-      Record<string, any>,
-      Record<string, any>,
-      false
-    >
-  >;
-  close(): void;
-  stopLoading(): void;
-  currentOptions: DialogOptions;
-  defaultOptions: DialogOptions;
-  setDefaultOptions(options: DialogOptions): void;
-  resetDefaultOptions(): void;
-};
-export default Dialog;

+ 0 - 84
unpackage/dist/build/mp-weixin/wxcomponents/vant/dialog/dialog.js

@@ -1,84 +0,0 @@
-let queue = [];
-const defaultOptions = {
-  show: false,
-  title: '',
-  width: null,
-  theme: 'default',
-  message: '',
-  zIndex: 100,
-  overlay: true,
-  selector: '#van-dialog',
-  className: '',
-  asyncClose: false,
-  beforeClose: null,
-  transition: 'scale',
-  customStyle: '',
-  messageAlign: '',
-  overlayStyle: '',
-  confirmButtonText: '确认',
-  cancelButtonText: '取消',
-  showConfirmButton: true,
-  showCancelButton: false,
-  closeOnClickOverlay: false,
-  confirmButtonOpenType: '',
-};
-let currentOptions = Object.assign({}, defaultOptions);
-function getContext() {
-  const pages = getCurrentPages();
-  return pages[pages.length - 1];
-}
-const Dialog = (options) => {
-  options = Object.assign(Object.assign({}, currentOptions), options);
-  return new Promise((resolve, reject) => {
-    const context = options.context || getContext();
-    const dialog = context.selectComponent(options.selector);
-    delete options.context;
-    delete options.selector;
-    if (dialog) {
-      dialog.setData(
-        Object.assign(
-          {
-            callback: (action, instance) => {
-              action === 'confirm' ? resolve(instance) : reject(instance);
-            },
-          },
-          options
-        )
-      );
-      wx.nextTick(() => {
-        dialog.setData({ show: true });
-      });
-      queue.push(dialog);
-    } else {
-      console.warn(
-        '未找到 van-dialog 节点,请确认 selector 及 context 是否正确'
-      );
-    }
-  });
-};
-Dialog.alert = (options) => Dialog(options);
-Dialog.confirm = (options) =>
-  Dialog(Object.assign({ showCancelButton: true }, options));
-Dialog.close = () => {
-  queue.forEach((dialog) => {
-    dialog.close();
-  });
-  queue = [];
-};
-Dialog.stopLoading = () => {
-  queue.forEach((dialog) => {
-    dialog.stopLoading();
-  });
-};
-Dialog.currentOptions = currentOptions;
-Dialog.defaultOptions = defaultOptions;
-Dialog.setDefaultOptions = (options) => {
-  currentOptions = Object.assign(Object.assign({}, currentOptions), options);
-  Dialog.currentOptions = currentOptions;
-};
-Dialog.resetDefaultOptions = () => {
-  currentOptions = Object.assign({}, defaultOptions);
-  Dialog.currentOptions = currentOptions;
-};
-Dialog.resetDefaultOptions();
-export default Dialog;

+ 0 - 1
unpackage/dist/build/mp-weixin/wxcomponents/vant/dialog/index.d.ts

@@ -1 +0,0 @@
-export {};

+ 0 - 122
unpackage/dist/build/mp-weixin/wxcomponents/vant/dialog/index.js

@@ -1,122 +0,0 @@
-import { VantComponent } from '../common/component';
-import { button } from '../mixins/button';
-import { openType } from '../mixins/open-type';
-import { GRAY, RED } from '../common/color';
-import { toPromise } from '../common/utils';
-VantComponent({
-  mixins: [button, openType],
-  props: {
-    show: {
-      type: Boolean,
-      observer(show) {
-        !show && this.stopLoading();
-      },
-    },
-    title: String,
-    message: String,
-    theme: {
-      type: String,
-      value: 'default',
-    },
-    useSlot: Boolean,
-    className: String,
-    customStyle: String,
-    asyncClose: Boolean,
-    messageAlign: String,
-    beforeClose: null,
-    overlayStyle: String,
-    useTitleSlot: Boolean,
-    showCancelButton: Boolean,
-    closeOnClickOverlay: Boolean,
-    confirmButtonOpenType: String,
-    width: null,
-    zIndex: {
-      type: Number,
-      value: 2000,
-    },
-    confirmButtonText: {
-      type: String,
-      value: '确认',
-    },
-    cancelButtonText: {
-      type: String,
-      value: '取消',
-    },
-    confirmButtonColor: {
-      type: String,
-      value: RED,
-    },
-    cancelButtonColor: {
-      type: String,
-      value: GRAY,
-    },
-    showConfirmButton: {
-      type: Boolean,
-      value: true,
-    },
-    overlay: {
-      type: Boolean,
-      value: true,
-    },
-    transition: {
-      type: String,
-      value: 'scale',
-    },
-  },
-  data: {
-    loading: {
-      confirm: false,
-      cancel: false,
-    },
-    callback: () => {},
-  },
-  methods: {
-    onConfirm() {
-      this.handleAction('confirm');
-    },
-    onCancel() {
-      this.handleAction('cancel');
-    },
-    onClickOverlay() {
-      this.close('overlay');
-    },
-    close(action) {
-      this.setData({ show: false });
-      wx.nextTick(() => {
-        this.$emit('close', action);
-        const { callback } = this.data;
-        if (callback) {
-          callback(action, this);
-        }
-      });
-    },
-    stopLoading() {
-      this.setData({
-        loading: {
-          confirm: false,
-          cancel: false,
-        },
-      });
-    },
-    handleAction(action) {
-      this.$emit(action, { dialog: this });
-      const { asyncClose, beforeClose } = this.data;
-      if (!asyncClose && !beforeClose) {
-        this.close(action);
-        return;
-      }
-      this.setData({
-        [`loading.${action}`]: true,
-      });
-      if (beforeClose) {
-        toPromise(beforeClose(action)).then((value) => {
-          if (value) {
-            this.close(action);
-          } else {
-            this.stopLoading();
-          }
-        });
-      }
-    },
-  },
-});

+ 0 - 9
unpackage/dist/build/mp-weixin/wxcomponents/vant/dialog/index.json

@@ -1,9 +0,0 @@
-{
-  "component": true,
-  "usingComponents": {
-    "van-popup": "../popup/index",
-    "van-button": "../button/index",
-    "van-goods-action": "../goods-action/index",
-    "van-goods-action-button": "../goods-action-button/index"
-  }
-}

+ 0 - 113
unpackage/dist/build/mp-weixin/wxcomponents/vant/dialog/index.wxml

@@ -1,113 +0,0 @@
-<wxs src="../wxs/utils.wxs" module="utils" />
-
-<van-popup
-  show="{{ show }}"
-  z-index="{{ zIndex }}"
-  overlay="{{ overlay }}"
-  transition="{{ transition }}"
-  custom-class="van-dialog van-dialog--{{ theme }} {{ className }}"
-  custom-style="width: {{ utils.addUnit(width) }};{{ customStyle }}"
-  overlay-style="{{ overlayStyle }}"
-  close-on-click-overlay="{{ closeOnClickOverlay }}"
-  bind:close="onClickOverlay"
->
-  <view
-    wx:if="{{ title || useTitleSlot  }}"
-    class="{{ utils.bem('dialog__header', { isolated: !(message || useSlot) }) }}"
-  >
-    <slot wx:if="{{ useTitleSlot }}" name="title" />
-    <block wx:elif="{{ title }}">{{ title }}</block>
-  </view>
-
-  <slot wx:if="{{ useSlot }}" />
-  <view
-    wx:elif="{{ message }}"
-    class="{{ utils.bem('dialog__message', [theme, messageAlign, { hasTitle: title }]) }}"
-  >
-    <text class="van-dialog__message-text">{{ message }}</text>
-  </view>
-
-  <van-goods-action wx:if="{{ theme === 'round-button' }}" custom-class="van-dialog__footer--round-button">
-    <van-goods-action-button
-      wx:if="{{ showCancelButton }}"
-      size="large"
-      loading="{{ loading.cancel }}"
-      class="van-dialog__button van-hairline--right"
-      custom-class="van-dialog__cancel"
-      custom-style="color: {{ cancelButtonColor }}"
-      bind:click="onCancel"
-    >
-      {{ cancelButtonText }}
-    </van-goods-action-button>
-    <van-goods-action-button
-      wx:if="{{ showConfirmButton }}"
-      size="large"
-      class="van-dialog__button"
-      loading="{{ loading.confirm }}"
-      custom-class="van-dialog__confirm"
-      custom-style="color: {{ confirmButtonColor }}"
-
-      open-type="{{ confirmButtonOpenType }}"
-      lang="{{ lang }}"
-      business-id="{{ businessId }}"
-      session-from="{{ sessionFrom }}"
-      send-message-title="{{ sendMessageTitle }}"
-      send-message-path="{{ sendMessagePath }}"
-      send-message-img="{{ sendMessageImg }}"
-      show-message-card="{{ showMessageCard }}"
-      app-parameter="{{ appParameter }}"
-
-      bind:click="onConfirm"
-      bindgetuserinfo="bindGetUserInfo"
-      bindcontact="bindContact"
-      bindgetphonenumber="bindGetPhoneNumber"
-      binderror="bindError"
-      bindlaunchapp="bindLaunchApp"
-      bindopensetting="bindOpenSetting"
-    >
-      {{ confirmButtonText }}
-    </van-goods-action-button>
-  </van-goods-action>
-
-  <view wx:else class="van-hairline--top van-dialog__footer">
-    <van-button
-      wx:if="{{ showCancelButton }}"
-      size="large"
-      loading="{{ loading.cancel }}"
-      class="van-dialog__button van-hairline--right"
-      custom-class="van-dialog__cancel"
-      custom-style="color: {{ cancelButtonColor }}"
-      bind:click="onCancel"
-    >
-      {{ cancelButtonText }}
-    </van-button>
-    <van-button
-      wx:if="{{ showConfirmButton }}"
-      size="large"
-      class="van-dialog__button"
-      loading="{{ loading.confirm }}"
-      custom-class="van-dialog__confirm"
-      custom-style="color: {{ confirmButtonColor }}"
-
-      open-type="{{ confirmButtonOpenType }}"
-      lang="{{ lang }}"
-      business-id="{{ businessId }}"
-      session-from="{{ sessionFrom }}"
-      send-message-title="{{ sendMessageTitle }}"
-      send-message-path="{{ sendMessagePath }}"
-      send-message-img="{{ sendMessageImg }}"
-      show-message-card="{{ showMessageCard }}"
-      app-parameter="{{ appParameter }}"
-
-      bind:click="onConfirm"
-      bindgetuserinfo="bindGetUserInfo"
-      bindcontact="bindContact"
-      bindgetphonenumber="bindGetPhoneNumber"
-      binderror="bindError"
-      bindlaunchapp="bindLaunchApp"
-      bindopensetting="bindOpenSetting"
-    >
-      {{ confirmButtonText }}
-    </van-button>
-  </view>
-</van-popup>

+ 0 - 1
unpackage/dist/build/mp-weixin/wxcomponents/vant/dialog/index.wxss

@@ -1 +0,0 @@
-@import '../common/index.wxss';.van-dialog{top:45%!important;overflow:hidden;width:320px;width:var(--dialog-width,320px);font-size:16px;font-size:var(--dialog-font-size,16px);border-radius:16px;border-radius:var(--dialog-border-radius,16px);background-color:#fff;background-color:var(--dialog-background-color,#fff)}@media (max-width:321px){.van-dialog{width:90%;width:var(--dialog-small-screen-width,90%)}}.van-dialog__header{text-align:center;padding-top:24px;padding-top:var(--dialog-header-padding-top,24px);font-weight:500;font-weight:var(--dialog-header-font-weight,500);line-height:24px;line-height:var(--dialog-header-line-height,24px)}.van-dialog__header--isolated{padding:24px 0;padding:var(--dialog-header-isolated-padding,24px 0)}.van-dialog__message{overflow-y:auto;text-align:center;-webkit-overflow-scrolling:touch;font-size:14px;font-size:var(--dialog-message-font-size,14px);line-height:20px;line-height:var(--dialog-message-line-height,20px);max-height:60vh;max-height:var(--dialog-message-max-height,60vh);padding:24px;padding:var(--dialog-message-padding,24px)}.van-dialog__message-text{word-wrap:break-word}.van-dialog__message--hasTitle{padding-top:8px;padding-top:var(--dialog-has-title-message-padding-top,8px);color:#646566;color:var(--dialog-has-title-message-text-color,#646566)}.van-dialog__message--round-button{padding-bottom:16px;color:#323233}.van-dialog__message--left{text-align:left}.van-dialog__message--right{text-align:right}.van-dialog__footer{display:-webkit-flex;display:flex}.van-dialog__footer--round-button{position:relative!important;padding:8px 24px 16px!important}.van-dialog__button{-webkit-flex:1;flex:1}.van-dialog__cancel,.van-dialog__confirm{border:0!important}.van-dialog-bounce-enter{-webkit-transform:translate3d(-50%,-50%,0) scale(.7);transform:translate3d(-50%,-50%,0) scale(.7);opacity:0}.van-dialog-bounce-leave-active{-webkit-transform:translate3d(-50%,-50%,0) scale(.9);transform:translate3d(-50%,-50%,0) scale(.9);opacity:0}

+ 0 - 1
unpackage/dist/build/mp-weixin/wxcomponents/vant/divider/index.d.ts

@@ -1 +0,0 @@
-export {};

+ 0 - 12
unpackage/dist/build/mp-weixin/wxcomponents/vant/divider/index.js

@@ -1,12 +0,0 @@
-import { VantComponent } from '../common/component';
-VantComponent({
-  props: {
-    dashed: Boolean,
-    hairline: Boolean,
-    contentPosition: String,
-    fontSize: String,
-    borderColor: String,
-    textColor: String,
-    customStyle: String,
-  },
-});

+ 0 - 4
unpackage/dist/build/mp-weixin/wxcomponents/vant/divider/index.json

@@ -1,4 +0,0 @@
-{
-  "component": true,
-  "usingComponents": {}
-}

+ 0 - 9
unpackage/dist/build/mp-weixin/wxcomponents/vant/divider/index.wxml

@@ -1,9 +0,0 @@
-<wxs src="../wxs/utils.wxs" module="utils" />
-<wxs src="./index.wxs" module="computed" />
-
-<view
-  class="custom-class {{ utils.bem('divider', [{ dashed, hairline }, contentPosition]) }}"
-  style="{{ computed.rootStyle({ borderColor, textColor, fontSize, customStyle }) }}"
->
-  <slot />
-</view>

+ 0 - 18
unpackage/dist/build/mp-weixin/wxcomponents/vant/divider/index.wxs

@@ -1,18 +0,0 @@
-/* eslint-disable */
-var style = require('../wxs/style.wxs');
-var addUnit = require('../wxs/add-unit.wxs');
-
-function rootStyle(data) {
-  return style([
-    {
-      'border-color': data.borderColor,
-      color: data.textColor,
-      'font-size': addUnit(data.fontSize),
-    },
-    data.customStyle,
-  ]);
-}
-
-module.exports = {
-  rootStyle: rootStyle,
-};

+ 0 - 1
unpackage/dist/build/mp-weixin/wxcomponents/vant/divider/index.wxss

@@ -1 +0,0 @@
-@import '../common/index.wxss';.van-divider{display:-webkit-flex;display:flex;-webkit-align-items:center;align-items:center;margin:16px 0;margin:var(--divider-margin,16px 0);color:#969799;color:var(--divider-text-color,#969799);font-size:14px;font-size:var(--divider-font-size,14px);line-height:24px;line-height:var(--divider-line-height,24px);border:0 solid #ebedf0;border-color:var(--divider-border-color,#ebedf0)}.van-divider:after,.van-divider:before{display:block;-webkit-flex:1;flex:1;box-sizing:border-box;height:1px;border-color:inherit;border-style:inherit;border-width:1px 0 0}.van-divider:before{content:""}.van-divider--hairline:after,.van-divider--hairline:before{-webkit-transform:scaleY(.5);transform:scaleY(.5)}.van-divider--dashed{border-style:dashed}.van-divider--center:before,.van-divider--left:before,.van-divider--right:before{margin-right:16px;margin-right:var(--divider-content-padding,16px)}.van-divider--center:after,.van-divider--left:after,.van-divider--right:after{content:"";margin-left:16px;margin-left:var(--divider-content-padding,16px)}.van-divider--left:before{max-width:10%;max-width:var(--divider-content-left-width,10%)}.van-divider--right:after{max-width:10%;max-width:var(--divider-content-right-width,10%)}

+ 0 - 1
unpackage/dist/build/mp-weixin/wxcomponents/vant/dropdown-item/index.d.ts

@@ -1 +0,0 @@
-export {};

+ 0 - 111
unpackage/dist/build/mp-weixin/wxcomponents/vant/dropdown-item/index.js

@@ -1,111 +0,0 @@
-import { useParent } from '../common/relation';
-import { VantComponent } from '../common/component';
-VantComponent({
-  field: true,
-  relation: useParent('dropdown-menu', function () {
-    this.updateDataFromParent();
-  }),
-  props: {
-    value: {
-      type: null,
-      observer: 'rerender',
-    },
-    title: {
-      type: String,
-      observer: 'rerender',
-    },
-    disabled: Boolean,
-    titleClass: {
-      type: String,
-      observer: 'rerender',
-    },
-    options: {
-      type: Array,
-      value: [],
-      observer: 'rerender',
-    },
-    popupStyle: String,
-  },
-  data: {
-    transition: true,
-    showPopup: false,
-    showWrapper: false,
-    displayTitle: '',
-  },
-  methods: {
-    rerender() {
-      wx.nextTick(() => {
-        var _a;
-        (_a = this.parent) === null || _a === void 0
-          ? void 0
-          : _a.updateItemListData();
-      });
-    },
-    updateDataFromParent() {
-      if (this.parent) {
-        const {
-          overlay,
-          duration,
-          activeColor,
-          closeOnClickOverlay,
-          direction,
-        } = this.parent.data;
-        this.setData({
-          overlay,
-          duration,
-          activeColor,
-          closeOnClickOverlay,
-          direction,
-        });
-      }
-    },
-    onOpen() {
-      this.$emit('open');
-    },
-    onOpened() {
-      this.$emit('opened');
-    },
-    onClose() {
-      this.$emit('close');
-    },
-    onClosed() {
-      this.$emit('closed');
-      this.setData({ showWrapper: false });
-    },
-    onOptionTap(event) {
-      const { option } = event.currentTarget.dataset;
-      const { value } = option;
-      const shouldEmitChange = this.data.value !== value;
-      this.setData({ showPopup: false, value });
-      this.$emit('close');
-      this.rerender();
-      if (shouldEmitChange) {
-        this.$emit('change', value);
-      }
-    },
-    toggle(show, options = {}) {
-      var _a;
-      const { showPopup } = this.data;
-      if (typeof show !== 'boolean') {
-        show = !showPopup;
-      }
-      if (show === showPopup) {
-        return;
-      }
-      this.setData({
-        transition: !options.immediate,
-        showPopup: show,
-      });
-      if (show) {
-        (_a = this.parent) === null || _a === void 0
-          ? void 0
-          : _a.getChildWrapperStyle().then((wrapperStyle) => {
-              this.setData({ wrapperStyle, showWrapper: true });
-              this.rerender();
-            });
-      } else {
-        this.rerender();
-      }
-    },
-  },
-});

+ 0 - 8
unpackage/dist/build/mp-weixin/wxcomponents/vant/dropdown-item/index.json

@@ -1,8 +0,0 @@
-{
-  "component": true,
-  "usingComponents": {
-    "van-popup": "../popup/index",
-    "van-cell": "../cell/index",
-    "van-icon": "../icon/index"
-  }
-}

+ 0 - 48
unpackage/dist/build/mp-weixin/wxcomponents/vant/dropdown-item/index.wxml

@@ -1,48 +0,0 @@
-<wxs src="../wxs/utils.wxs" module="utils" />
-
-<view
-  wx:if="{{ showWrapper }}"
-  class="{{ utils.bem('dropdown-item', direction) }}"
-  style="{{ wrapperStyle }}"
->
-  <van-popup
-    show="{{ showPopup }}"
-    custom-style="position: absolute;{{ popupStyle }}"
-    overlay-style="position: absolute;"
-    overlay="{{ overlay }}"
-    position="{{ direction === 'down' ? 'top' : 'bottom' }}"
-    duration="{{ transition ? duration : 0 }}"
-    close-on-click-overlay="{{ closeOnClickOverlay }}"
-    bind:enter="onOpen"
-    bind:leave="onClose"
-    bind:close="toggle"
-    bind:after-enter="onOpened"
-    bind:after-leave="onClosed"
-  >
-    <van-cell
-      wx:for="{{ options }}"
-      wx:key="value"
-      data-option="{{ item }}"
-      class="{{ utils.bem('dropdown-item__option', { active: item.value === value } ) }}"
-      clickable
-      icon="{{ item.icon }}"
-      bind:tap="onOptionTap"
-    >
-      <view
-        slot="title"
-        class="van-dropdown-item__title"
-        style="{{ item.value === value  ? 'color:' + activeColor : '' }}"
-      >
-        {{ item.text }}
-      </view>
-      <van-icon
-        wx:if="{{ item.value === value }}"
-        name="success"
-        class="van-dropdown-item__icon"
-        color="{{ activeColor }}"
-      />
-    </van-cell>
-
-    <slot />
-  </van-popup>
-</view>

+ 0 - 1
unpackage/dist/build/mp-weixin/wxcomponents/vant/dropdown-item/index.wxss

@@ -1 +0,0 @@
-@import '../common/index.wxss';.van-dropdown-item{position:fixed;right:0;left:0;overflow:hidden}.van-dropdown-item__option{text-align:left}.van-dropdown-item__option--active .van-dropdown-item__icon,.van-dropdown-item__option--active .van-dropdown-item__title{color:#ee0a24;color:var(--dropdown-menu-option-active-color,#ee0a24)}.van-dropdown-item--up{top:0}.van-dropdown-item--down{bottom:0}.van-dropdown-item__icon{display:block;line-height:inherit}

+ 0 - 5
unpackage/dist/build/mp-weixin/wxcomponents/vant/dropdown-item/shared.d.ts

@@ -1,5 +0,0 @@
-export interface Option {
-  text: string;
-  value: string | number;
-  icon: string;
-}

+ 0 - 1
unpackage/dist/build/mp-weixin/wxcomponents/vant/dropdown-item/shared.js

@@ -1 +0,0 @@
-export {};

+ 0 - 1
unpackage/dist/build/mp-weixin/wxcomponents/vant/dropdown-menu/index.d.ts

@@ -1 +0,0 @@
-export {};

+ 0 - 112
unpackage/dist/build/mp-weixin/wxcomponents/vant/dropdown-menu/index.js

@@ -1,112 +0,0 @@
-import { VantComponent } from '../common/component';
-import { useChildren } from '../common/relation';
-import { addUnit, getRect, getSystemInfoSync } from '../common/utils';
-let ARRAY = [];
-VantComponent({
-  field: true,
-  relation: useChildren('dropdown-item', function () {
-    this.updateItemListData();
-  }),
-  props: {
-    activeColor: {
-      type: String,
-      observer: 'updateChildrenData',
-    },
-    overlay: {
-      type: Boolean,
-      value: true,
-      observer: 'updateChildrenData',
-    },
-    zIndex: {
-      type: Number,
-      value: 10,
-    },
-    duration: {
-      type: Number,
-      value: 200,
-      observer: 'updateChildrenData',
-    },
-    direction: {
-      type: String,
-      value: 'down',
-      observer: 'updateChildrenData',
-    },
-    closeOnClickOverlay: {
-      type: Boolean,
-      value: true,
-      observer: 'updateChildrenData',
-    },
-    closeOnClickOutside: {
-      type: Boolean,
-      value: true,
-    },
-  },
-  data: {
-    itemListData: [],
-  },
-  beforeCreate() {
-    const { windowHeight } = getSystemInfoSync();
-    this.windowHeight = windowHeight;
-    ARRAY.push(this);
-  },
-  destroyed() {
-    ARRAY = ARRAY.filter((item) => item !== this);
-  },
-  methods: {
-    updateItemListData() {
-      this.setData({
-        itemListData: this.children.map((child) => child.data),
-      });
-    },
-    updateChildrenData() {
-      this.children.forEach((child) => {
-        child.updateDataFromParent();
-      });
-    },
-    toggleItem(active) {
-      this.children.forEach((item, index) => {
-        const { showPopup } = item.data;
-        if (index === active) {
-          item.toggle();
-        } else if (showPopup) {
-          item.toggle(false, { immediate: true });
-        }
-      });
-    },
-    close() {
-      this.children.forEach((child) => {
-        child.toggle(false, { immediate: true });
-      });
-    },
-    getChildWrapperStyle() {
-      const { zIndex, direction } = this.data;
-      return getRect(this, '.van-dropdown-menu').then((rect) => {
-        const { top = 0, bottom = 0 } = rect;
-        const offset = direction === 'down' ? bottom : this.windowHeight - top;
-        let wrapperStyle = `z-index: ${zIndex};`;
-        if (direction === 'down') {
-          wrapperStyle += `top: ${addUnit(offset)};`;
-        } else {
-          wrapperStyle += `bottom: ${addUnit(offset)};`;
-        }
-        return wrapperStyle;
-      });
-    },
-    onTitleTap(event) {
-      const { index } = event.currentTarget.dataset;
-      const child = this.children[index];
-      if (!child.data.disabled) {
-        ARRAY.forEach((menuItem) => {
-          if (
-            menuItem &&
-            menuItem.data.closeOnClickOutside &&
-            menuItem !== this
-          ) {
-            menuItem.close();
-          }
-        });
-        this.toggleItem(index);
-      }
-    },
-  },
-});

+ 0 - 3
unpackage/dist/build/mp-weixin/wxcomponents/vant/dropdown-menu/index.json

@@ -1,3 +0,0 @@
-{
-  "component": true
-}

+ 0 - 23
unpackage/dist/build/mp-weixin/wxcomponents/vant/dropdown-menu/index.wxml

@@ -1,23 +0,0 @@
-<wxs src="../wxs/utils.wxs" module="utils" />
-<wxs src="./index.wxs" module="computed" />
-
-<view class="van-dropdown-menu van-dropdown-menu--top-bottom">
-  <view
-    wx:for="{{ itemListData }}"
-    wx:key="index"
-    data-index="{{ index }}"
-    class="{{ utils.bem('dropdown-menu__item', { disabled: item.disabled }) }}"
-    bind:tap="onTitleTap"
-  >
-    <view
-      class="{{ item.titleClass }} {{ utils.bem('dropdown-menu__title', { active: item.showPopup, down: item.showPopup === (direction === 'down') }) }}"
-      style="{{ item.showPopup ? 'color:' + activeColor : '' }}"
-    >
-      <view class="van-ellipsis">
-        {{ computed.displayTitle(item) }}
-      </view>
-    </view>
-  </view>
-
-  <slot />
-</view>

+ 0 - 16
unpackage/dist/build/mp-weixin/wxcomponents/vant/dropdown-menu/index.wxs

@@ -1,16 +0,0 @@
-/* eslint-disable */
-function displayTitle(item) {
-  if (item.title) {
-    return item.title;
-  }
-
-  var match = item.options.filter(function(option) {
-    return option.value === item.value;
-  });
-  var displayTitle = match.length ? match[0].text : '';
-  return displayTitle;
-}
-
-module.exports = {
-  displayTitle: displayTitle
-};

+ 0 - 1
unpackage/dist/build/mp-weixin/wxcomponents/vant/dropdown-menu/index.wxss

@@ -1 +0,0 @@
-@import '../common/index.wxss';.van-dropdown-menu{display:-webkit-flex;display:flex;box-shadow:0 2px 12px rgba(100,101,102,.12);-webkit-user-select:none;user-select:none;height:50px;height:var(--dropdown-menu-height,50px);background-color:#fff;background-color:var(--dropdown-menu-background-color,#fff)}.van-dropdown-menu__item{display:-webkit-flex;display:flex;-webkit-flex:1;flex:1;-webkit-align-items:center;align-items:center;-webkit-justify-content:center;justify-content:center;min-width:0}.van-dropdown-menu__item:active{opacity:.7}.van-dropdown-menu__item--disabled:active{opacity:1}.van-dropdown-menu__item--disabled .van-dropdown-menu__title{color:#969799;color:var(--dropdown-menu-title-disabled-text-color,#969799)}.van-dropdown-menu__title{position:relative;box-sizing:border-box;max-width:100%;padding:0 8px;padding:var(--dropdown-menu-title-padding,0 8px);color:#323233;color:var(--dropdown-menu-title-text-color,#323233);font-size:15px;font-size:var(--dropdown-menu-title-font-size,15px);line-height:18px;line-height:var(--dropdown-menu-title-line-height,18px)}.van-dropdown-menu__title:after{position:absolute;top:50%;right:-4px;margin-top:-5px;border-color:transparent transparent currentcolor currentcolor;border-style:solid;border-width:3px;-webkit-transform:rotate(-45deg);transform:rotate(-45deg);opacity:.8;content:""}.van-dropdown-menu__title--active{color:#ee0a24;color:var(--dropdown-menu-title-active-text-color,#ee0a24)}.van-dropdown-menu__title--down:after{margin-top:-1px;-webkit-transform:rotate(135deg);transform:rotate(135deg)}

+ 0 - 1
unpackage/dist/build/mp-weixin/wxcomponents/vant/empty/index.d.ts

@@ -1 +0,0 @@
-export {};

+ 0 - 10
unpackage/dist/build/mp-weixin/wxcomponents/vant/empty/index.js

@@ -1,10 +0,0 @@
-import { VantComponent } from '../common/component';
-VantComponent({
-  props: {
-    description: String,
-    image: {
-      type: String,
-      value: 'default',
-    },
-  },
-});

+ 0 - 4
unpackage/dist/build/mp-weixin/wxcomponents/vant/empty/index.json

@@ -1,4 +0,0 @@
-{
-  "component": true,
-  "usingComponents": {}
-}

+ 0 - 22
unpackage/dist/build/mp-weixin/wxcomponents/vant/empty/index.wxml

@@ -1,22 +0,0 @@
-<wxs src="../wxs/utils.wxs" module="utils" />
-<wxs src="./index.wxs" module="computed" />
-
-<view class="custom-class van-empty">
-  <view class="van-empty__image">
-    <slot name="image"></slot>
-  </view>
-  <view class="van-empty__image">
-    <image wx:if="{{ image }}" class="van-empty__image__img" src="{{ computed.imageUrl(image) }}" />
-  </view>
-
-  <view class="van-empty__description">
-    <slot name="description"></slot>
-  </view>
-  <view class="van-empty__description">
-    {{ description }}
-  </view>
-
-  <view class="van-empty__bottom">
-    <slot></slot>
-  </view>
-</view>

+ 0 - 14
unpackage/dist/build/mp-weixin/wxcomponents/vant/empty/index.wxs

@@ -1,14 +0,0 @@
-/* eslint-disable */
-var PRESETS = ['error', 'search', 'default', 'network'];
-
-function imageUrl(image) {
-  if (PRESETS.indexOf(image) !== -1) {
-    return 'https://img.yzcdn.cn/vant/empty-image-' + image + '.png';
-  }
-
-  return image;
-}
-
-module.exports = {
-  imageUrl: imageUrl,
-};

+ 0 - 1
unpackage/dist/build/mp-weixin/wxcomponents/vant/empty/index.wxss

@@ -1 +0,0 @@
-@import '../common/index.wxss';.van-empty{display:-webkit-flex;display:flex;-webkit-flex-direction:column;flex-direction:column;-webkit-align-items:center;align-items:center;-webkit-justify-content:center;justify-content:center;box-sizing:border-box;padding:32px 0}.van-empty__image{width:160px;height:160px}.van-empty__image:empty{display:none}.van-empty__image__img{width:100%;height:100%}.van-empty__image:not(:empty)+.van-empty__image{display:none}.van-empty__description{margin-top:16px;padding:0 60px;color:#969799;font-size:14px;line-height:20px}.van-empty__description:empty,.van-empty__description:not(:empty)+.van-empty__description{display:none}.van-empty__bottom{margin-top:24px}

+ 0 - 1
unpackage/dist/build/mp-weixin/wxcomponents/vant/field/index.d.ts

@@ -1 +0,0 @@
-export {};

+ 0 - 126
unpackage/dist/build/mp-weixin/wxcomponents/vant/field/index.js

@@ -1,126 +0,0 @@
-import { nextTick } from '../common/utils';
-import { VantComponent } from '../common/component';
-import { commonProps, inputProps, textareaProps } from './props';
-VantComponent({
-  field: true,
-  classes: ['input-class', 'right-icon-class', 'label-class'],
-  props: Object.assign(
-    Object.assign(
-      Object.assign(Object.assign({}, commonProps), inputProps),
-      textareaProps
-    ),
-    {
-      size: String,
-      icon: String,
-      label: String,
-      error: Boolean,
-      center: Boolean,
-      isLink: Boolean,
-      leftIcon: String,
-      rightIcon: String,
-      autosize: null,
-      required: Boolean,
-      iconClass: String,
-      clickable: Boolean,
-      inputAlign: String,
-      customStyle: String,
-      errorMessage: String,
-      arrowDirection: String,
-      showWordLimit: Boolean,
-      errorMessageAlign: String,
-      readonly: {
-        type: Boolean,
-        observer: 'setShowClear',
-      },
-      clearable: {
-        type: Boolean,
-        observer: 'setShowClear',
-      },
-      border: {
-        type: Boolean,
-        value: true,
-      },
-      titleWidth: {
-        type: String,
-        value: '6.2em',
-      },
-    }
-  ),
-  data: {
-    focused: false,
-    innerValue: '',
-    showClear: false,
-  },
-  created() {
-    this.value = this.data.value;
-    this.setData({ innerValue: this.value });
-  },
-  methods: {
-    onInput(event) {
-      const { value = '' } = event.detail || {};
-      this.value = value;
-      this.setShowClear();
-      this.emitChange();
-    },
-    onFocus(event) {
-      this.focused = true;
-      this.setShowClear();
-      this.$emit('focus', event.detail);
-    },
-    onBlur(event) {
-      this.focused = false;
-      this.setShowClear();
-      this.$emit('blur', event.detail);
-    },
-    onClickIcon() {
-      this.$emit('click-icon');
-    },
-    onClickInput(event) {
-      this.$emit('click-input', event.detail);
-    },
-    onClear() {
-      this.setData({ innerValue: '' });
-      this.value = '';
-      this.setShowClear();
-      nextTick(() => {
-        this.emitChange();
-        this.$emit('clear', '');
-      });
-    },
-    onConfirm(event) {
-      const { value = '' } = event.detail || {};
-      this.value = value;
-      this.setShowClear();
-      this.$emit('confirm', value);
-    },
-    setValue(value) {
-      this.value = value;
-      this.setShowClear();
-      if (value === '') {
-        this.setData({ innerValue: '' });
-      }
-      this.emitChange();
-    },
-    onLineChange(event) {
-      this.$emit('linechange', event.detail);
-    },
-    onKeyboardHeightChange(event) {
-      this.$emit('keyboardheightchange', event.detail);
-    },
-    emitChange() {
-      this.setData({ value: this.value });
-      nextTick(() => {
-        this.$emit('input', this.value);
-        this.$emit('change', this.value);
-      });
-    },
-    setShowClear() {
-      const { clearable, readonly } = this.data;
-      const { focused, value } = this;
-      this.setData({
-        showClear: !!clearable && !!focused && !!value && !readonly,
-      });
-    },
-    noop() {},
-  },
-});

+ 0 - 7
unpackage/dist/build/mp-weixin/wxcomponents/vant/field/index.json

@@ -1,7 +0,0 @@
-{
-  "component": true,
-  "usingComponents": {
-    "van-cell": "../cell/index",
-    "van-icon": "../icon/index"
-  }
-}

+ 0 - 56
unpackage/dist/build/mp-weixin/wxcomponents/vant/field/index.wxml

@@ -1,56 +0,0 @@
-<wxs src="../wxs/utils.wxs" module="utils" />
-<wxs src="./index.wxs" module="computed" />
-
-<van-cell
-  size="{{ size }}"
-  icon="{{ leftIcon }}"
-  center="{{ center }}"
-  border="{{ border }}"
-  is-link="{{ isLink }}"
-  required="{{ required }}"
-  clickable="{{ clickable }}"
-  title-width="{{ titleWidth }}"
-  title-style="margin-right: 12px;"
-  custom-style="{{ customStyle }}"
-  arrow-direction="{{ arrowDirection }}"
-  custom-class="van-field"
->
-  <slot name="left-icon" slot="icon" />
-  <view wx:if="{{ label }}" class="label-class {{ utils.bem('field__label', { disabled }) }}" slot="title">
-    {{ label }}
-  </view>
-  <slot wx:else name="label" slot="title" />
-  <view class="{{ utils.bem('field__body', [type]) }}">
-    <view class="{{ utils.bem('field__control', [inputAlign, 'custom']) }}" bindtap="onClickInput">
-      <slot name="input" />
-    </view>
-    <include wx:if="{{ type === 'textarea' }}" src="textarea.wxml" />
-    <include wx:else src="input.wxml" />
-
-    <van-icon
-      wx:if="{{ showClear }}"
-      name="clear"
-      class="van-field__clear-root van-field__icon-root"
-      catch:touchstart="onClear"
-    />
-    <view class="van-field__icon-container" bind:tap="onClickIcon">
-      <van-icon
-        wx:if="{{ rightIcon || icon }}"
-        name="{{ rightIcon || icon }}"
-        class="van-field__icon-root {{ iconClass }}"
-        custom-class="right-icon-class"
-      />
-      <slot name="right-icon" />
-      <slot name="icon" />
-    </view>
-    <view class="van-field__button">
-      <slot name="button" />
-    </view>
-  </view>
-  <view wx:if="{{ showWordLimit && maxlength }}" class="van-field__word-limit">
-    <view class="{{ utils.bem('field__word-num', { full: value.length >= maxlength }) }}">{{ value.length >= maxlength ? maxlength : value.length }}</view>/{{ maxlength }}
-  </view>
-  <view wx:if="{{ errorMessage }}" class="{{ utils.bem('field__error-message', [errorMessageAlign, { disabled, error }]) }}">
-    {{ errorMessage }}
-  </view>
-</van-cell>

+ 0 - 18
unpackage/dist/build/mp-weixin/wxcomponents/vant/field/index.wxs

@@ -1,18 +0,0 @@
-/* eslint-disable */
-var style = require('../wxs/style.wxs');
-var addUnit = require('../wxs/add-unit.wxs');
-
-function inputStyle(autosize) {
-  if (autosize && autosize.constructor === 'Object') {
-    return style({
-      'min-height': addUnit(autosize.minHeight),
-      'max-height': addUnit(autosize.maxHeight),
-    });
-  }
-
-  return '';
-}
-
-module.exports = {
-  inputStyle: inputStyle,
-};

File diff suppressed because it is too large
+ 0 - 0
unpackage/dist/build/mp-weixin/wxcomponents/vant/field/index.wxss


+ 0 - 27
unpackage/dist/build/mp-weixin/wxcomponents/vant/field/input.wxml

@@ -1,27 +0,0 @@
-<input
-  class="{{ utils.bem('field__control', [inputAlign, { disabled, error }]) }} input-class"
-  type="{{ type }}"
-  focus="{{ focus }}"
-  cursor="{{ cursor }}"
-  value="{{ innerValue }}"
-  auto-focus="{{ autoFocus }}"
-  disabled="{{ disabled || readonly }}"
-  maxlength="{{ maxlength }}"
-  placeholder="{{ placeholder }}"
-  placeholder-style="{{ placeholderStyle }}"
-  placeholder-class="{{ utils.bem('field__placeholder', { error }) }}"
-  confirm-type="{{ confirmType }}"
-  confirm-hold="{{ confirmHold }}"
-  hold-keyboard="{{ holdKeyboard }}"
-  cursor-spacing="{{ cursorSpacing }}"
-  adjust-position="{{ adjustPosition }}"
-  selection-end="{{ selectionEnd }}"
-  selection-start="{{ selectionStart }}"
-  password="{{ password || type === 'password' }}"
-  bindinput="onInput"
-  bindtap="onClickInput"
-  bindblur="onBlur"
-  bindfocus="onFocus"
-  bindconfirm="onConfirm"
-  bindkeyboardheightchange="onKeyboardHeightChange"
-/>

+ 0 - 4
unpackage/dist/build/mp-weixin/wxcomponents/vant/field/props.d.ts

@@ -1,4 +0,0 @@
-/// <reference types="miniprogram-api-typings" />
-export declare const commonProps: WechatMiniprogram.Component.PropertyOption;
-export declare const inputProps: WechatMiniprogram.Component.PropertyOption;
-export declare const textareaProps: WechatMiniprogram.Component.PropertyOption;

+ 0 - 63
unpackage/dist/build/mp-weixin/wxcomponents/vant/field/props.js

@@ -1,63 +0,0 @@
-export const commonProps = {
-  value: {
-    type: String,
-    observer(value) {
-      if (value !== this.value) {
-        this.setData({ innerValue: value });
-        this.value = value;
-      }
-    },
-  },
-  placeholder: String,
-  placeholderStyle: String,
-  placeholderClass: String,
-  disabled: Boolean,
-  maxlength: {
-    type: Number,
-    value: -1,
-  },
-  cursorSpacing: {
-    type: Number,
-    value: 50,
-  },
-  autoFocus: Boolean,
-  focus: Boolean,
-  cursor: {
-    type: Number,
-    value: -1,
-  },
-  selectionStart: {
-    type: Number,
-    value: -1,
-  },
-  selectionEnd: {
-    type: Number,
-    value: -1,
-  },
-  adjustPosition: {
-    type: Boolean,
-    value: true,
-  },
-  holdKeyboard: Boolean,
-};
-export const inputProps = {
-  type: {
-    type: String,
-    value: 'text',
-  },
-  password: Boolean,
-  confirmType: String,
-  confirmHold: Boolean,
-};
-export const textareaProps = {
-  autoHeight: Boolean,
-  fixed: Boolean,
-  showConfirmBar: {
-    type: Boolean,
-    value: true,
-  },
-  disableDefaultPadding: {
-    type: Boolean,
-    value: true,
-  },
-};

+ 0 - 29
unpackage/dist/build/mp-weixin/wxcomponents/vant/field/textarea.wxml

@@ -1,29 +0,0 @@
-<textarea
-  class="{{ utils.bem('field__control', [inputAlign, type, { disabled, error }]) }} input-class"
-  fixed="{{ fixed }}"
-  focus="{{ focus }}"
-  cursor="{{ cursor }}"
-  value="{{ innerValue }}"
-  auto-focus="{{ autoFocus }}"
-  disabled="{{ disabled || readonly }}"
-  maxlength="{{ maxlength }}"
-  placeholder="{{ placeholder }}"
-  placeholder-style="{{ placeholderStyle }}"
-  placeholder-class="{{ utils.bem('field__placeholder', { error, disabled }) }}"
-  auto-height="{{ !!autosize }}"
-  style="{{ computed.inputStyle(autosize) }}"
-  cursor-spacing="{{ cursorSpacing }}"
-  adjust-position="{{ adjustPosition }}"
-  show-confirm-bar="{{ showConfirmBar }}"
-  hold-keyboard="{{ holdKeyboard }}"
-  selection-end="{{ selectionEnd }}"
-  selection-start="{{ selectionStart }}"
-  disable-default-padding="{{ disableDefaultPadding }}"
-  bindinput="onInput"
-  bindtap="onClickInput"
-  bindblur="onBlur"
-  bindfocus="onFocus"
-  bindconfirm="onConfirm"
-  bindlinechange="onLineChange"
-  bindkeyboardheightchange="onKeyboardHeightChange"
-/>

+ 0 - 1
unpackage/dist/build/mp-weixin/wxcomponents/vant/goods-action-button/index.d.ts

@@ -1 +0,0 @@
-export {};

+ 0 - 37
unpackage/dist/build/mp-weixin/wxcomponents/vant/goods-action-button/index.js

@@ -1,37 +0,0 @@
-import { VantComponent } from '../common/component';
-import { useParent } from '../common/relation';
-import { button } from '../mixins/button';
-import { link } from '../mixins/link';
-import { openType } from '../mixins/open-type';
-VantComponent({
-  mixins: [link, button, openType],
-  relation: useParent('goods-action'),
-  props: {
-    text: String,
-    color: String,
-    loading: Boolean,
-    disabled: Boolean,
-    plain: Boolean,
-    type: {
-      type: String,
-      value: 'danger',
-    },
-  },
-  methods: {
-    onClick(event) {
-      this.$emit('click', event.detail);
-      this.jumpLink();
-    },
-    updateStyle() {
-      if (this.parent == null) {
-        return;
-      }
-      const { index } = this;
-      const { children = [] } = this.parent;
-      this.setData({
-        isFirst: index === 0,
-        isLast: index === children.length - 1,
-      });
-    },
-  },
-});

+ 0 - 6
unpackage/dist/build/mp-weixin/wxcomponents/vant/goods-action-button/index.json

@@ -1,6 +0,0 @@
-{
-  "component": true,
-  "usingComponents": {
-    "van-button": "../button/index"
-  }
-}

+ 0 - 30
unpackage/dist/build/mp-weixin/wxcomponents/vant/goods-action-button/index.wxml

@@ -1,30 +0,0 @@
-<wxs src="../wxs/utils.wxs" module="utils" />
-<van-button
-  id="{{ id }}"
-  lang="{{ lang }}"
-  type="{{ type }}"
-  color="{{ color }}"
-  plain="{{ plain }}"
-  loading="{{ loading }}"
-  disabled="{{ disabled }}"
-  open-type="{{ openType }}"
-  class="{{ utils.bem('goods-action-button', [type, { first: isFirst, last: isLast, plain: plain }])}}"
-  custom-class="van-goods-action-button__inner"
-  business-id="{{ businessId }}"
-  session-from="{{ sessionFrom }}"
-  app-parameter="{{ appParameter }}"
-  send-message-img="{{ sendMessageImg }}"
-  send-message-path="{{ sendMessagePath }}"
-  show-message-card="{{ showMessageCard }}"
-  send-message-title="{{ sendMessageTitle }}"
-  bind:click="onClick"
-  binderror="bindError"
-  bindcontact="bindContact"
-  bindopensetting="bindOpenSetting"
-  bindgetuserinfo="bindGetUserInfo"
-  bindgetphonenumber="bindGetPhoneNumber"
-  bindlaunchapp="bindLaunchApp"
->
-  {{ text }}
-  <slot></slot>
-</van-button>

+ 0 - 1
unpackage/dist/build/mp-weixin/wxcomponents/vant/goods-action-button/index.wxss

@@ -1 +0,0 @@
-@import '../common/index.wxss';:host{-webkit-flex:1;flex:1}.van-goods-action-button{--button-warning-background-color:linear-gradient(90deg,#ffd01e,#ff8917);--button-warning-background-color:var(--goods-action-button-warning-color,linear-gradient(90deg,#ffd01e,#ff8917));--button-danger-background-color:linear-gradient(90deg,#ff6034,#ee0a24);--button-danger-background-color:var(--goods-action-button-danger-color,linear-gradient(90deg,#ff6034,#ee0a24));--button-default-height:40px;--button-default-height:var(--goods-action-button-height,40px);--button-line-height:20px;--button-line-height:var(--goods-action-button-line-height,20px);--button-plain-background-color:#fff;--button-plain-background-color:var(--goods-action-button-plain-color,#fff);display:block;--button-border-width:0}.van-goods-action-button--first{margin-left:5px;--button-border-radius:20px 0 0 20px;--button-border-radius:var(--goods-action-button-border-radius,20px) 0 0 var(--goods-action-button-border-radius,20px)}.van-goods-action-button--last{margin-right:5px;--button-border-radius:0 20px 20px 0;--button-border-radius:0 var(--goods-action-button-border-radius,20px) var(--goods-action-button-border-radius,20px) 0}.van-goods-action-button--first.van-goods-action-button--last{--button-border-radius:20px;--button-border-radius:var(--goods-action-button-border-radius,20px)}.van-goods-action-button--plain{--button-border-width:1px}.van-goods-action-button__inner{width:100%;font-weight:500!important;font-weight:var(--font-weight-bold,500)!important}@media (max-width:321px){.van-goods-action-button{font-size:13px}}

+ 0 - 1
unpackage/dist/build/mp-weixin/wxcomponents/vant/goods-action-icon/index.d.ts

@@ -1 +0,0 @@
-export {};

+ 0 - 22
unpackage/dist/build/mp-weixin/wxcomponents/vant/goods-action-icon/index.js

@@ -1,22 +0,0 @@
-import { VantComponent } from '../common/component';
-import { button } from '../mixins/button';
-import { link } from '../mixins/link';
-import { openType } from '../mixins/open-type';
-VantComponent({
-  classes: ['icon-class', 'text-class'],
-  mixins: [link, button, openType],
-  props: {
-    text: String,
-    dot: Boolean,
-    info: String,
-    icon: String,
-    disabled: Boolean,
-    loading: Boolean,
-  },
-  methods: {
-    onClick(event) {
-      this.$emit('click', event.detail);
-      this.jumpLink();
-    },
-  },
-});

+ 0 - 7
unpackage/dist/build/mp-weixin/wxcomponents/vant/goods-action-icon/index.json

@@ -1,7 +0,0 @@
-{
-  "component": true,
-  "usingComponents": {
-    "van-icon": "../icon/index",
-    "van-button": "../button/index"
-  }
-}

+ 0 - 35
unpackage/dist/build/mp-weixin/wxcomponents/vant/goods-action-icon/index.wxml

@@ -1,35 +0,0 @@
-<van-button
-  square
-  id="{{ id }}"
-  size="large"
-  lang="{{ lang }}"
-  loading="{{ loading }}"
-  disabled="{{ disabled }}"
-  open-type="{{ openType }}"
-  business-id="{{ businessId }}"
-  custom-class="van-goods-action-icon"
-  session-from="{{ sessionFrom }}"
-  app-parameter="{{ appParameter }}"
-  send-message-img="{{ sendMessageImg }}"
-  send-message-path="{{ sendMessagePath }}"
-  show-message-card="{{ showMessageCard }}"
-  send-message-title="{{ sendMessageTitle }}"
-  bind:click="onClick"
-  binderror="bindError"
-  bindcontact="bindContact"
-  bindopensetting="bindOpenSetting"
-  bindgetuserinfo="bindGetUserInfo"
-  bindgetphonenumber="bindGetPhoneNumber"
-  bindlaunchapp="bindLaunchApp"
->
-  <van-icon
-    wx:if="{{ icon }}"
-    name="{{ icon }}"
-    dot="{{ dot }}"
-    info="{{ info }}"
-    class="van-goods-action-icon__icon"
-    custom-class="icon-class"
-  />
-  <slot wx:else name="icon" />
-  <text class="text-class">{{ text }}</text>
-</van-button>

+ 0 - 1
unpackage/dist/build/mp-weixin/wxcomponents/vant/goods-action-icon/index.wxss

@@ -1 +0,0 @@
-@import '../common/index.wxss';.van-goods-action-icon{display:-webkit-flex!important;display:flex!important;-webkit-flex-direction:column;flex-direction:column;-webkit-justify-content:center!important;justify-content:center!important;line-height:1!important;border:none!important;font-size:10px!important;font-size:var(--goods-action-icon-font-size,10px)!important;color:#646566!important;color:var(--goods-action-icon-text-color,#646566)!important;min-width:48px;min-width:var(--goods-action-icon-width,48px);height:50px!important;height:var(--goods-action-icon-height,50px)!important}.van-goods-action-icon__icon{display:-webkit-flex;display:flex;margin:0 auto 5px;color:#323233;color:var(--goods-action-icon-color,#323233);font-size:18px;font-size:var(--goods-action-icon-size,18px)}

+ 0 - 1
unpackage/dist/build/mp-weixin/wxcomponents/vant/goods-action/index.d.ts

@@ -1 +0,0 @@
-export {};

+ 0 - 15
unpackage/dist/build/mp-weixin/wxcomponents/vant/goods-action/index.js

@@ -1,15 +0,0 @@
-import { VantComponent } from '../common/component';
-import { useChildren } from '../common/relation';
-VantComponent({
-  relation: useChildren('goods-action-button', function () {
-    this.children.forEach((item) => {
-      item.updateStyle();
-    });
-  }),
-  props: {
-    safeAreaInsetBottom: {
-      type: Boolean,
-      value: true,
-    },
-  },
-});

+ 0 - 3
unpackage/dist/build/mp-weixin/wxcomponents/vant/goods-action/index.json

@@ -1,3 +0,0 @@
-{
-  "component": true
-}

+ 0 - 5
unpackage/dist/build/mp-weixin/wxcomponents/vant/goods-action/index.wxml

@@ -1,5 +0,0 @@
-<wxs src="../wxs/utils.wxs" module="utils" />
-
-<view class="custom-class {{ utils.bem('goods-action', { safe: safeAreaInsetBottom }) }}">
-  <slot />
-</view>

+ 0 - 1
unpackage/dist/build/mp-weixin/wxcomponents/vant/goods-action/index.wxss

@@ -1 +0,0 @@
-@import '../common/index.wxss';.van-goods-action{position:fixed;right:0;bottom:0;left:0;display:-webkit-flex;display:flex;-webkit-align-items:center;align-items:center;box-sizing:initial;height:50px;height:var(--goods-action-height,50px);background-color:#fff;background-color:var(--goods-action-background-color,#fff)}.van-goods-action--safe{padding-bottom:env(safe-area-inset-bottom)}

+ 0 - 1
unpackage/dist/build/mp-weixin/wxcomponents/vant/grid-item/index.d.ts

@@ -1 +0,0 @@
-export {};

+ 0 - 56
unpackage/dist/build/mp-weixin/wxcomponents/vant/grid-item/index.js

@@ -1,56 +0,0 @@
-import { VantComponent } from '../common/component';
-import { useParent } from '../common/relation';
-import { link } from '../mixins/link';
-VantComponent({
-  relation: useParent('grid'),
-  classes: ['content-class', 'icon-class', 'text-class'],
-  mixins: [link],
-  props: {
-    icon: String,
-    iconColor: String,
-    dot: Boolean,
-    info: null,
-    badge: null,
-    text: String,
-    useSlot: Boolean,
-  },
-  data: {
-    viewStyle: '',
-  },
-  mounted() {
-    this.updateStyle();
-  },
-  methods: {
-    updateStyle() {
-      if (!this.parent) {
-        return;
-      }
-      const { data, children } = this.parent;
-      const {
-        columnNum,
-        border,
-        square,
-        gutter,
-        clickable,
-        center,
-        direction,
-        iconSize,
-      } = data;
-      this.setData({
-        center,
-        border,
-        square,
-        gutter,
-        clickable,
-        direction,
-        iconSize,
-        index: children.indexOf(this),
-        columnNum,
-      });
-    },
-    onClick() {
-      this.$emit('click');
-      this.jumpLink();
-    },
-  },
-});

+ 0 - 6
unpackage/dist/build/mp-weixin/wxcomponents/vant/grid-item/index.json

@@ -1,6 +0,0 @@
-{
-  "component": true,
-  "usingComponents": {
-    "van-icon": "../icon/index"
-  }
-}

+ 0 - 27
unpackage/dist/build/mp-weixin/wxcomponents/vant/grid-item/index.wxml

@@ -1,27 +0,0 @@
-<wxs src="../wxs/utils.wxs" module="utils" />
-<wxs src="./index.wxs" module="computed" />
-
-<view
-  class="custom-class {{ utils.bem('grid-item', { square }) }}"
-  style="{{ computed.wrapperStyle({ square, gutter, columnNum, index }) }}"
-  bindtap="onClick"
->
-  <view
-    class="content-class {{ utils.bem('grid-item__content', [direction, { center, square, clickable, surround: border && gutter }]) }} {{ border ? 'van-hairline--surround' : '' }}"
-    style="{{ computed.contentStyle({ square, gutter }) }}"
-  >
-    <block wx:if="{{ useSlot }}">
-      <slot />
-    </block>
-    <block wx:else>
-      <view class="van-grid-item__icon icon-class">
-        <van-icon wx:if="{{ icon }}" name="{{ icon }}" color="{{ iconColor }}" dot="{{ dot }}" info="{{ badge || info }}" size="{{ iconSize }}" />
-        <slot wx:else name="icon"></slot>
-      </view>
-      <view class="van-grid-item__text text-class">
-        <text wx:if="{{ text }}">{{ text }}</text>
-        <slot wx:else name="text"></slot>
-      </view>
-    </block>
-  </view>
-</view>

+ 0 - 32
unpackage/dist/build/mp-weixin/wxcomponents/vant/grid-item/index.wxs

@@ -1,32 +0,0 @@
-/* eslint-disable */
-var style = require('../wxs/style.wxs');
-var addUnit = require('../wxs/add-unit.wxs');
-
-function wrapperStyle(data) {
-  var width = 100 / data.columnNum + '%';
-
-  return style({
-    width: width,
-    'padding-top': data.square ? width : null,
-    'padding-right': addUnit(data.gutter),
-    'margin-top':
-      data.index >= data.columnNum && !data.square
-        ? addUnit(data.gutter)
-        : null,
-  });
-}
-
-function contentStyle(data) {
-  return data.square
-    ? style({
-        right: addUnit(data.gutter),
-        bottom: addUnit(data.gutter),
-        height: 'auto',
-      })
-    : '';
-}
-
-module.exports = {
-  wrapperStyle: wrapperStyle,
-  contentStyle: contentStyle,
-};

+ 0 - 1
unpackage/dist/build/mp-weixin/wxcomponents/vant/grid-item/index.wxss

@@ -1 +0,0 @@
-@import '../common/index.wxss';.van-grid-item{position:relative;float:left;box-sizing:border-box}.van-grid-item--square{height:0}.van-grid-item__content{display:-webkit-flex;display:flex;-webkit-flex-direction:column;flex-direction:column;box-sizing:border-box;height:100%;padding:16px 8px;padding:var(--grid-item-content-padding,16px 8px);background-color:#fff;background-color:var(--grid-item-content-background-color,#fff)}.van-grid-item__content:after{z-index:1;border-width:0 1px 1px 0;border-bottom-width:var(--border-width-base,1px);border-right-width:var(--border-width-base,1px);border-top-width:0}.van-grid-item__content--surround:after{border-width:1px;border-width:var(--border-width-base,1px)}.van-grid-item__content--center{-webkit-align-items:center;align-items:center;-webkit-justify-content:center;justify-content:center}.van-grid-item__content--square{position:absolute;top:0;right:0;left:0}.van-grid-item__content--horizontal{-webkit-flex-direction:row;flex-direction:row}.van-grid-item__content--horizontal .van-grid-item__icon+.van-grid-item__text{margin-top:0;margin-left:8px}.van-grid-item__content--clickable:active{background-color:#f2f3f5;background-color:var(--grid-item-content-active-color,#f2f3f5)}.van-grid-item__icon{display:-webkit-flex;display:flex;-webkit-align-items:center;align-items:center;font-size:26px;font-size:var(--grid-item-icon-size,26px);height:26px;height:var(--grid-item-icon-size,26px)}.van-grid-item__text{word-wrap:break-word;color:#646566;color:var(--grid-item-text-color,#646566);font-size:12px;font-size:var(--grid-item-text-font-size,12px)}.van-grid-item__icon+.van-grid-item__text{margin-top:8px}

+ 0 - 1
unpackage/dist/build/mp-weixin/wxcomponents/vant/grid/index.d.ts

@@ -1 +0,0 @@
-export {};

+ 0 - 50
unpackage/dist/build/mp-weixin/wxcomponents/vant/grid/index.js

@@ -1,50 +0,0 @@
-import { VantComponent } from '../common/component';
-import { useChildren } from '../common/relation';
-VantComponent({
-  relation: useChildren('grid-item'),
-  props: {
-    square: {
-      type: Boolean,
-      observer: 'updateChildren',
-    },
-    gutter: {
-      type: null,
-      value: 0,
-      observer: 'updateChildren',
-    },
-    clickable: {
-      type: Boolean,
-      observer: 'updateChildren',
-    },
-    columnNum: {
-      type: Number,
-      value: 4,
-      observer: 'updateChildren',
-    },
-    center: {
-      type: Boolean,
-      value: true,
-      observer: 'updateChildren',
-    },
-    border: {
-      type: Boolean,
-      value: true,
-      observer: 'updateChildren',
-    },
-    direction: {
-      type: String,
-      observer: 'updateChildren',
-    },
-    iconSize: {
-      type: String,
-      observer: 'updateChildren',
-    },
-  },
-  methods: {
-    updateChildren() {
-      this.children.forEach((child) => {
-        child.updateStyle();
-      });
-    },
-  },
-});

+ 0 - 3
unpackage/dist/build/mp-weixin/wxcomponents/vant/grid/index.json

@@ -1,3 +0,0 @@
-{
-  "component": true
-}

+ 0 - 8
unpackage/dist/build/mp-weixin/wxcomponents/vant/grid/index.wxml

@@ -1,8 +0,0 @@
-<wxs src="./index.wxs" module="computed" />
-
-<view
-  class="van-grid custom-class {{ border && !gutter ? 'van-hairline--top' : '' }}"
-  style="{{ computed.rootStyle({ gutter }) }}"
->
-  <slot />
-</view>

+ 0 - 13
unpackage/dist/build/mp-weixin/wxcomponents/vant/grid/index.wxs

@@ -1,13 +0,0 @@
-/* eslint-disable */
-var style = require('../wxs/style.wxs');
-var addUnit = require('../wxs/add-unit.wxs');
-
-function rootStyle(data) {
-  return style({
-    'padding-left': addUnit(data.gutter),
-  });
-}
-
-module.exports = {
-  rootStyle: rootStyle,
-};

+ 0 - 1
unpackage/dist/build/mp-weixin/wxcomponents/vant/grid/index.wxss

@@ -1 +0,0 @@
-@import '../common/index.wxss';.van-grid{position:relative;box-sizing:border-box;overflow:hidden}

+ 0 - 1
unpackage/dist/build/mp-weixin/wxcomponents/vant/icon/index.d.ts

@@ -1 +0,0 @@
-export {};

+ 0 - 20
unpackage/dist/build/mp-weixin/wxcomponents/vant/icon/index.js

@@ -1,20 +0,0 @@
-import { VantComponent } from '../common/component';
-VantComponent({
-  props: {
-    dot: Boolean,
-    info: null,
-    size: null,
-    color: String,
-    customStyle: String,
-    classPrefix: {
-      type: String,
-      value: 'van-icon',
-    },
-    name: String,
-  },
-  methods: {
-    onClick() {
-      this.$emit('click');
-    },
-  },
-});

+ 0 - 6
unpackage/dist/build/mp-weixin/wxcomponents/vant/icon/index.json

@@ -1,6 +0,0 @@
-{
-  "component": true,
-  "usingComponents": {
-    "van-info": "../info/index"
-  }
-}

+ 0 - 20
unpackage/dist/build/mp-weixin/wxcomponents/vant/icon/index.wxml

@@ -1,20 +0,0 @@
-<wxs src="./index.wxs" module="computed" />
-
-<view
-  class="{{ computed.rootClass({ classPrefix, name }) }}"
-  style="{{ computed.rootStyle({ customStyle, color, size }) }}"
-  bindtap="onClick"
->
-  <van-info
-    wx:if="{{ info !== null || dot }}"
-    dot="{{ dot }}"
-    info="{{ info }}"
-    custom-class="van-icon__info"
-  />
-  <image
-    wx:if="{{ computed.isImage(name) }}"
-    src="{{ name }}"
-    mode="aspectFit"
-    class="van-icon__image"
-  />
-</view>

+ 0 - 39
unpackage/dist/build/mp-weixin/wxcomponents/vant/icon/index.wxs

@@ -1,39 +0,0 @@
-/* eslint-disable */
-var style = require('../wxs/style.wxs');
-var addUnit = require('../wxs/add-unit.wxs');
-
-function isImage(name) {
-  return name.indexOf('/') !== -1;
-}
-
-function rootClass(data) {
-  var classes = ['custom-class'];
-
-  if (data.classPrefix != null) {
-    classes.push(data.classPrefix);
-  }
-
-  if (isImage(data.name)) {
-    classes.push('van-icon--image');
-  } else if (data.classPrefix != null) {
-    classes.push(data.classPrefix + '-' + data.name);
-  }
-
-  return classes.join(' ');
-}
-
-function rootStyle(data) {
-  return style([
-    {
-      color: data.color,
-      'font-size': addUnit(data.size),
-    },
-    data.customStyle,
-  ]);
-}
-
-module.exports = {
-  isImage: isImage,
-  rootClass: rootClass,
-  rootStyle: rootStyle,
-};

File diff suppressed because it is too large
+ 0 - 0
unpackage/dist/build/mp-weixin/wxcomponents/vant/icon/index.wxss


+ 0 - 1
unpackage/dist/build/mp-weixin/wxcomponents/vant/image/index.d.ts

@@ -1 +0,0 @@
-export {};

Some files were not shown because too many files changed in this diff