@opentiny/vue-year-table
Advanced tools
Comparing version 2.6.7 to 2.7.0
@@ -12,3 +12,3 @@ /** | ||
*/ | ||
import YearTable from './src/index.vue'; | ||
import YearTable from './src/pc.vue'; | ||
export default YearTable; |
104
lib/index.js
@@ -59,3 +59,3 @@ import { renderless, api } from "@opentiny/vue-renderless/year-table/vue"; | ||
import "@opentiny/vue-theme/year-table/index.css"; | ||
var __vue2_script = defineComponent({ | ||
var _sfc_main = defineComponent({ | ||
name: $prefix + "YearTable", | ||
@@ -71,3 +71,15 @@ emits: ["pick"], | ||
}, | ||
date: {} | ||
date: [Date, Array], | ||
selectionMode: String, | ||
startYear: Number, | ||
maxDate: {}, | ||
minDate: {}, | ||
rangeState: { | ||
default: function _default() { | ||
return { | ||
endDate: null, | ||
selecting: false | ||
}; | ||
} | ||
} | ||
}, | ||
@@ -84,75 +96,29 @@ setup: function setup(props, context) { | ||
}); | ||
var render = function render2() { | ||
var _vm = this; | ||
var _h = _vm.$createElement; | ||
var _c = _vm._self._c || _h; | ||
var _sfc_render = function render() { | ||
var _vm = this, _c = _vm._self._c; | ||
_vm._self._setupProxy; | ||
return _c("table", { | ||
staticClass: "tiny-year-table", | ||
on: { | ||
"mousemove": _vm.handleMouseMove, | ||
"click": _vm.handleYearTableClick | ||
} | ||
}, [_c("tbody", [_c("tr", [_c("td", { | ||
staticClass: "available", | ||
class: _vm.getCellStyle(_vm.state.startYear + 0) | ||
}, [_c("a", { | ||
staticClass: "cell" | ||
}, [_vm._v(_vm._s(_vm.state.startYear))])]), _c("td", { | ||
staticClass: "available", | ||
class: _vm.getCellStyle(_vm.state.startYear + 1) | ||
}, [_c("a", { | ||
staticClass: "cell" | ||
}, [_vm._v(_vm._s(_vm.state.startYear + 1))])]), _c("td", { | ||
staticClass: "available", | ||
class: _vm.getCellStyle(_vm.state.startYear + 2) | ||
}, [_c("a", { | ||
staticClass: "cell" | ||
}, [_vm._v(_vm._s(_vm.state.startYear + 2))])]), _c("td", { | ||
staticClass: "available", | ||
class: _vm.getCellStyle(_vm.state.startYear + 3) | ||
}, [_c("a", { | ||
staticClass: "cell" | ||
}, [_vm._v(_vm._s(_vm.state.startYear + 3))])])]), _c("tr", [_c("td", { | ||
staticClass: "available", | ||
class: _vm.getCellStyle(_vm.state.startYear + 4) | ||
}, [_c("a", { | ||
staticClass: "cell" | ||
}, [_vm._v(_vm._s(_vm.state.startYear + 4))])]), _c("td", { | ||
staticClass: "available", | ||
class: _vm.getCellStyle(_vm.state.startYear + 5) | ||
}, [_c("a", { | ||
staticClass: "cell" | ||
}, [_vm._v(_vm._s(_vm.state.startYear + 5))])]), _c("td", { | ||
staticClass: "available", | ||
class: _vm.getCellStyle(_vm.state.startYear + 6) | ||
}, [_c("a", { | ||
staticClass: "cell" | ||
}, [_vm._v(_vm._s(_vm.state.startYear + 6))])]), _c("td", { | ||
staticClass: "available", | ||
class: _vm.getCellStyle(_vm.state.startYear + 7) | ||
}, [_c("a", { | ||
staticClass: "cell" | ||
}, [_vm._v(_vm._s(_vm.state.startYear + 7))])])]), _c("tr", [_c("td", { | ||
staticClass: "available", | ||
class: _vm.getCellStyle(_vm.state.startYear + 8) | ||
}, [_c("a", { | ||
staticClass: "cell" | ||
}, [_vm._v(_vm._s(_vm.state.startYear + 8))])]), _c("td", { | ||
staticClass: "available", | ||
class: _vm.getCellStyle(_vm.state.startYear + 9) | ||
}, [_c("a", { | ||
staticClass: "cell" | ||
}, [_vm._v(_vm._s(_vm.state.startYear + 9))])]), _c("td"), _c("td")])])]); | ||
}, [_c("tbody", _vm._l(_vm.state.rows, function(row, key) { | ||
return _c("tr", { | ||
key | ||
}, _vm._l(row, function(cell, key2) { | ||
return _c("td", { | ||
key: key2, | ||
staticClass: "available", | ||
class: _vm.getCellStyle(cell) | ||
}, [_c("div", [_c("a", { | ||
staticClass: "cell" | ||
}, [_vm._v(_vm._s(cell.text))])])]); | ||
}), 0); | ||
}), 0)]); | ||
}; | ||
var staticRenderFns = []; | ||
var __cssModules = {}; | ||
var __component__ = /* @__PURE__ */ normalizeComponent(__vue2_script, render, staticRenderFns, false, __vue2_injectStyles, null, null, null); | ||
function __vue2_injectStyles(context) { | ||
for (var o in __cssModules) { | ||
this[o] = __cssModules[o]; | ||
} | ||
} | ||
var YearTable = /* @__PURE__ */ function() { | ||
return __component__.exports; | ||
}(); | ||
var version = "3.7.0"; | ||
var _sfc_staticRenderFns = []; | ||
var __component__ = /* @__PURE__ */ normalizeComponent(_sfc_main, _sfc_render, _sfc_staticRenderFns, false, null, null, null, null); | ||
var YearTable = __component__.exports; | ||
var version = "2.7.0"; | ||
YearTable.install = function(Vue) { | ||
@@ -159,0 +125,0 @@ Vue.component(YearTable.name, YearTable); |
{ | ||
"name": "@opentiny/vue-year-table", | ||
"version": "2.6.7", | ||
"version": "2.7.0", | ||
"description": "", | ||
"main": "./lib/index.js", | ||
"module": "./lib/index.js", | ||
"sideEffects": false, | ||
"dependencies": { | ||
"@opentiny/vue-renderless": "~3.6.6", | ||
"@opentiny/vue-common": "~2.6.7" | ||
"@opentiny/vue-renderless": "~3.9.0", | ||
"@opentiny/vue-common": "~2.7.0" | ||
}, | ||
@@ -10,0 +12,0 @@ "license": "MIT", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
7035
180
+ Added@opentiny/vue-common@2.7.0(transitive)
+ Added@opentiny/vue-locale@2.7.0(transitive)
+ Added@opentiny/vue-renderless@3.9.3(transitive)
+ Added@opentiny/vue-theme@3.9.4(transitive)
+ Added@opentiny/vue-theme-mobile@3.9.0(transitive)
+ Addedtailwind-merge@1.14.0(transitive)
- Removed@babel/helper-string-parser@7.25.9(transitive)
- Removed@babel/helper-validator-identifier@7.25.9(transitive)
- Removed@babel/parser@7.26.2(transitive)
- Removed@babel/types@7.26.0(transitive)
- Removed@opentiny/vue-common@2.6.7(transitive)
- Removed@opentiny/vue-locale@2.6.7(transitive)
- Removed@opentiny/vue-renderless@3.6.8(transitive)
- Removed@opentiny/vue-theme@3.6.7(transitive)
- Removed@opentiny/vue-theme-mobile@3.6.6(transitive)
- Removed@vue/compiler-sfc@2.7.16(transitive)
- Removed@vue/composition-api@1.2.4(transitive)
- Removedcsstype@3.1.3(transitive)
- Removednanoid@3.3.7(transitive)
- Removedpicocolors@1.1.1(transitive)
- Removedpostcss@8.4.47(transitive)
- Removedprettier@2.8.8(transitive)
- Removedsource-map@0.6.1(transitive)
- Removedsource-map-js@1.2.1(transitive)
- Removedtslib@2.8.1(transitive)
- Removedvue@2.7.16(transitive)
Updated@opentiny/vue-common@~2.7.0