@varlet/ui 1.25.1 → 1.26.1-alpha.1644652196468

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -46,7 +46,7 @@ function render(_ctx, _cache) {
46
46
  class: (0, _vue.normalizeClass)(["var-switch__track", [_ctx.modelValue === _ctx.activeValue ? 'var-switch__track-active' : null, _ctx.errorMessage ? 'var-switch__track-error' : null]])
47
47
  }, null, 6
48
48
  /* CLASS, STYLE */
49
- ), (0, _vue.withDirectives)((0, _vue.createElementVNode)("div", {
49
+ ), (0, _vue.withDirectives)(((0, _vue.openBlock)(), (0, _vue.createElementBlock)("div", {
50
50
  class: "var-switch__ripple",
51
51
  style: (0, _vue.normalizeStyle)(_ctx.styleComputed.ripple)
52
52
  }, [(0, _vue.createElementVNode)("div", {
@@ -61,7 +61,7 @@ function render(_ctx, _cache) {
61
61
  /* CLASS, STYLE */
62
62
  )], 4
63
63
  /* STYLE */
64
- ), [[_directive_ripple, {
64
+ )), [[_directive_ripple, {
65
65
  disabled: !_ctx.ripple || _ctx.disabled || _ctx.loading || _ctx.formDisabled
66
66
  }]])], 6
67
67
  /* CLASS, STYLE */
@@ -93,7 +93,7 @@ function render(_ctx, _cache) {
93
93
  }, [(0, _vue.createVNode)(_vue.Transition, {
94
94
  name: "var-time-picker-panel-fade"
95
95
  }, {
96
- default: (0, _vue.withCtx)(() => [(0, _vue.createVNode)(_component_clock, {
96
+ default: (0, _vue.withCtx)(() => [((0, _vue.openBlock)(), (0, _vue.createBlock)(_component_clock, {
97
97
  key: _ctx.type,
98
98
  ref: "inner",
99
99
  type: _ctx.type,
@@ -112,7 +112,7 @@ function render(_ctx, _cache) {
112
112
  onChangePreventUpdate: _ctx.changePreventUpdate
113
113
  }, null, 8
114
114
  /* PROPS */
115
- , ["type", "ampm", "color", "is-inner", "format", "allowed-time", "rad", "time", "prevent-next-update", "use-seconds", "max", "min", "onUpdate", "onChangePreventUpdate"])]),
115
+ , ["type", "ampm", "color", "is-inner", "format", "allowed-time", "rad", "time", "prevent-next-update", "use-seconds", "max", "min", "onUpdate", "onChangePreventUpdate"]))]),
116
116
  _: 1
117
117
  /* STABLE */
118
118
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@varlet/ui",
3
- "version": "1.25.1",
3
+ "version": "1.26.1-alpha.1644652196468",
4
4
  "description": "A material like components library",
5
5
  "module": "es/index.js",
6
6
  "main": "lib/index.js",
@@ -39,19 +39,19 @@
39
39
  },
40
40
  "gitHead": "ee9c3866bedad96c86365b0f9888a3a6bb781b1f",
41
41
  "dependencies": {
42
- "@varlet/icons": "1.25.1",
42
+ "@varlet/icons": "1.26.1-alpha.1644652196468",
43
43
  "dayjs": "^1.10.4",
44
44
  "decimal.js": "^10.2.1"
45
45
  },
46
46
  "devDependencies": {
47
- "@varlet/cli": "1.25.1",
48
- "@varlet/touch-emulator": "1.25.1",
47
+ "@varlet/cli": "1.26.1-alpha.1644652196468",
48
+ "@varlet/touch-emulator": "1.26.1-alpha.1644652196468",
49
49
  "@vue/test-utils": "2.0.0-rc.6",
50
- "@vue/runtime-core": "^3.2.16",
50
+ "@vue/runtime-core": "3.2.25",
51
51
  "typescript": "^4.4.4",
52
52
  "lodash-es": "^4.17.21",
53
53
  "clipboard": "^2.0.6",
54
- "vue": "3.2.16",
54
+ "vue": "3.2.25",
55
55
  "vue-router": "4.0.12",
56
56
  "live-server": "^1.2.1"
57
57
  },
@@ -69,5 +69,5 @@
69
69
  "test:watch": "varlet-cli jest -w",
70
70
  "test:watchAll": "varlet-cli jest -wa"
71
71
  },
72
- "readme": "<div align=\"center\">\n <a href=\"https://varlet.gitee.io/varlet-ui/\">\n <img src=\"https://varlet.gitee.io/varlet-ui/logo.svg\" width=\"150\">\n </a>\n <h1>VARLET</h1>\n <p>基于Vue3的Material design风格移动端组件库</p>\n <p>\n <a href=\"https://varlet.gitee.io/varlet-ui/\">开发文档</a> | <a href=\"https://github.com/varletjs/varlet/blob/dev/README.en-US.md\">English</a>\n </p>\n <p>\n <img src=\"https://img.shields.io/npm/v/@varlet/ui?style=flat-square\" alt=\"version\">\n <img src=\"https://img.shields.io/github/stars/haoziqaq/varlet\" alt=\"ci\">\n <img src=\"https://img.shields.io/badge/vue-v3.2.0%2B-%23407fbc\" alt=\"vue\">\n <img src=\"https://img.shields.io/npm/l/@varlet/ui.svg\" alt=\"licence\">\n <img src=\"https://img.shields.io/codecov/c/github/haoziqaq/varlet\" alt=\"coverage\">\n <img src=\"https://img.badgesize.io/https://unpkg.com/@varlet/ui/umd/varlet.js?compression=gzip&label=gzip\" alt=\"gzip\" />\n <img src=\"https://github.com/varletjs/varlet/workflows/CI/badge.svg\" alt=\"ci\">\n </p>\n</div>\n\n---\n\n### 介绍\n\nVarlet是一个基于`Vue3`开发的Material风格移动端组件库,全面拥抱`Vue3`生态,由社区建立起来的组件库团队进行维护。\n\n### 特性\n1. 提供50个高质量通用组件\n2. 组件十分轻量\n3. 由国人开发,完善的中英文文档和后勤保障\n4. 支持按需引入\n5. 支持主题定制\n6. 支持国际化\n7. 支持webstorm,vscode组件属性高亮\n8. 支持SSR\n9. 支持Typescript\n10. 90%以上单元测试覆盖率,提供稳定性保证\n11. 支持暗黑模式\n\n### 安装\n\n### CDN\n`varlet.js`包含组件库的所有样式和逻辑,引入即可。\n\n```html\n<div id=\"app\"></div>\n<script src=\"https://cdn.jsdelivr.net/npm/vue@next\"></script>\n<script src=\"https://cdn.jsdelivr.net/npm/@varlet/ui/umd/varlet.js\"></script>\n<script>\n const app = Vue.createApp({\n template: '<var-button>按钮</var-button>'\n })\n app.use(Varlet).mount('#app')\n</script>\n```\n\n### Webpack / Vite\n```shell\n# 通过npm或yarn或pnpm安装\n\n# npm\nnpm i @varlet/ui -S\n\n# yarn\nyarn add @varlet/ui\n\n# pnpm\npnpm add @varlet/ui\n```\n\n```js\nimport App from './App.vue'\nimport Varlet from '@varlet/ui'\nimport { createApp } from 'vue'\nimport '@varlet/ui/es/style.js'\n\ncreateApp(App).use(Varlet).mount('#app')\n```\n\n### Contributors\n\n<a href=\"https://github.com/varletjs/varlet/graphs/contributors\">\n <img src=\"https://contrib.rocks/image?repo=haoziqaq/varlet\" />\n</a>\n"
72
+ "readme": "<div align=\"center\">\n <a href=\"https://varlet.gitee.io/varlet-ui/\">\n <img src=\"https://varlet.gitee.io/varlet-ui/logo.svg\" width=\"150\">\n </a>\n <h1>VARLET</h1>\n <p>基于Vue3的Material design风格移动端组件库</p>\n <p>\n <a href=\"https://varlet.gitee.io/varlet-ui/\">开发文档</a> | <a href=\"https://github.com/varletjs/varlet/blob/dev/README.en-US.md\">English</a>\n </p>\n <p>\n <img src=\"https://img.shields.io/npm/v/@varlet/ui?style=flat-square\" alt=\"version\">\n <img src=\"https://img.shields.io/github/stars/haoziqaq/varlet\" alt=\"ci\">\n <img src=\"https://img.shields.io/badge/vue-v3.2.0%2B-%23407fbc\" alt=\"vue\">\n <img src=\"https://img.shields.io/npm/l/@varlet/ui.svg\" alt=\"licence\">\n <img src=\"https://img.shields.io/codecov/c/github/haoziqaq/varlet\" alt=\"coverage\">\n <img src=\"https://img.badgesize.io/https://unpkg.com/@varlet/ui/umd/varlet.js?compression=gzip&label=gzip\" alt=\"gzip\" />\n <img src=\"https://github.com/varletjs/varlet/workflows/CI/badge.svg\" alt=\"ci\">\n </p>\n</div>\n\n---\n\n### 介绍\n\nVarlet是一个基于`Vue3`开发的Material风格移动端组件库,全面拥抱`Vue3`生态,由社区建立起来的组件库团队进行维护。\n\n### 特性\n1. 提供50个高质量通用组件\n2. 组件十分轻量\n3. 由国人开发,完善的中英文文档和后勤保障\n4. 支持按需引入\n5. 支持主题定制\n6. 支持国际化\n7. 支持webstorm,vscode组件属性高亮\n8. 支持SSR\n9. 支持Typescript\n10. 确保90%以上单元测试覆盖率,提供稳定性保证\n11. 支持暗黑模式\n\n### 安装\n\n### CDN\n`varlet.js`包含组件库的所有样式和逻辑,引入即可。\n\n```html\n<div id=\"app\"></div>\n<script src=\"https://cdn.jsdelivr.net/npm/vue@next\"></script>\n<script src=\"https://cdn.jsdelivr.net/npm/@varlet/ui/umd/varlet.js\"></script>\n<script>\n const app = Vue.createApp({\n template: '<var-button>按钮</var-button>'\n })\n app.use(Varlet).mount('#app')\n</script>\n```\n\n### Webpack / Vite\n```shell\n# 通过npm或yarn或pnpm安装\n\n# npm\nnpm i @varlet/ui -S\n\n# yarn\nyarn add @varlet/ui\n\n# pnpm\npnpm add @varlet/ui\n```\n\n```js\nimport App from './App.vue'\nimport Varlet from '@varlet/ui'\nimport { createApp } from 'vue'\nimport '@varlet/ui/es/style.js'\n\ncreateApp(App).use(Varlet).mount('#app')\n```\n\n### Contributors\n\n<a href=\"https://github.com/varletjs/varlet/graphs/contributors\">\n <img src=\"https://contrib.rocks/image?repo=haoziqaq/varlet\" />\n</a>\n"
73
73
  }
package/types/col.d.ts CHANGED
@@ -1,8 +1,18 @@
1
1
  import { VarComponent } from './varComponent'
2
2
 
3
+ export type SizeDescriptor = {
4
+ span?: number | string
5
+ offset?: number | string
6
+ }
7
+
3
8
  export interface ColProps {
4
9
  span?: string | number
5
10
  offset?: string | number
11
+ xs?: string | number | SizeDescriptor | undefined
12
+ sm?: string | number | SizeDescriptor | undefined
13
+ md?: string | number | SizeDescriptor | undefined
14
+ lg?: string | number | SizeDescriptor | undefined
15
+ xl?: string | number | SizeDescriptor | undefined
6
16
  onClick?: (e: Event) => void
7
17
  }
8
18