@opentiny/vue-renderless
Advanced tools
Comparing version 3.8.0 to 3.8.2
import "../chunk-PKUHTIDK.js"; | ||
import { handleClick } from "./index"; | ||
import { handleClick, moreNodeClick } from "./index"; | ||
const api = ["state", "handleClick", "moreNodeClick"]; | ||
const renderless = (props, { computed, reactive, watch, inject }, { emit, parent }) => { | ||
function renderless(props, { computed, reactive, watch, inject }, { emit, parent }) { | ||
var _a, _b; | ||
@@ -31,6 +31,7 @@ parent.tinyForm = parent.tinyForm || inject("form", null); | ||
state, | ||
handleClick: handleClick({ emit, props, state }) | ||
handleClick: handleClick({ emit, props, state }), | ||
moreNodeClick: moreNodeClick({ emit, props, state }) | ||
}; | ||
return api2; | ||
}; | ||
} | ||
export { | ||
@@ -37,0 +38,0 @@ api, |
@@ -27,7 +27,7 @@ import { | ||
let z; | ||
do { | ||
while (reference !== document.body && ((_a = reference == null ? void 0 : reference.parentNode) == null ? void 0 : _a.nodeType) !== 11 && reference.parentNode) { | ||
reference = reference.parentNode; | ||
z = getZIndex(reference); | ||
max = z > max ? z : max; | ||
} while (reference !== document.body && ((_a = reference == null ? void 0 : reference.parentNode) == null ? void 0 : _a.nodeType) !== 11 && reference.parentNode); | ||
max = Math.max(z, max); | ||
} | ||
return `${max + 1}`; | ||
@@ -34,0 +34,0 @@ }; |
@@ -254,3 +254,3 @@ import "../chunk-PKUHTIDK.js"; | ||
}; | ||
const version = "3.8.0"; | ||
const version = "3.8.2"; | ||
const log = (data, type = "log") => { | ||
@@ -257,0 +257,0 @@ uLog.logger[type](data); |
@@ -25,3 +25,3 @@ import "../chunk-PKUHTIDK.js"; | ||
import * as common from "."; | ||
const version = "3.8.0"; | ||
const version = "3.8.2"; | ||
const Renderless = { | ||
@@ -28,0 +28,0 @@ browser, |
@@ -98,2 +98,5 @@ import "../chunk-PKUHTIDK.js"; | ||
}; | ||
const computedGetIcon = ({ constants, designConfig }) => (name = "leftWardArrow") => { | ||
return (designConfig == null ? void 0 : designConfig.icons[name]) || (constants == null ? void 0 : constants.ICON_MAP[name]); | ||
}; | ||
export { | ||
@@ -106,2 +109,3 @@ bindScroll, | ||
closed, | ||
computedGetIcon, | ||
confirm, | ||
@@ -108,0 +112,0 @@ getItemStyle, |
@@ -19,3 +19,4 @@ import "../chunk-PKUHTIDK.js"; | ||
getItemStyle, | ||
handleClick | ||
handleClick, | ||
computedGetIcon | ||
} from "./index"; | ||
@@ -55,7 +56,8 @@ const api = [ | ||
textField: (dropdownMenu == null ? void 0 : dropdownMenu.textField) || props.textField, | ||
popperClass: (dropdownMenu == null ? void 0 : dropdownMenu.popperClass) || "" | ||
popperClass: (dropdownMenu == null ? void 0 : dropdownMenu.popperClass) || "", | ||
getIcon: computed(() => api2.computedGetIcon()) | ||
}); | ||
return state; | ||
}; | ||
const initApi = ({ api: api2, state, emit, props, parent, dispatch, vm }) => { | ||
const initApi = ({ api: api2, state, emit, props, parent, dispatch, vm, constants, designConfig }) => { | ||
Object.assign(api2, { | ||
@@ -79,6 +81,7 @@ state, | ||
confirm: confirm({ emit, props, state }), | ||
handleClick: handleClick({ props, dispatch, vm, emit }) | ||
handleClick: handleClick({ props, dispatch, vm, emit }), | ||
computedGetIcon: computedGetIcon({ constants, designConfig }) | ||
}); | ||
}; | ||
const renderless = (props, { computed, reactive, watch, inject }, { parent, emit, vm, dispatch, mode }) => { | ||
const renderless = (props, { computed, reactive, watch, inject }, { parent, emit, vm, dispatch, mode, constants, designConfig }) => { | ||
const api2 = {}; | ||
@@ -91,3 +94,3 @@ const dropdownMenu = inject("dropdownMenu", null); | ||
const state = initState({ reactive, computed, api: api2, props, parent, dropdownMenu }); | ||
initApi({ api: api2, state, emit, props, parent, dispatch, vm }); | ||
initApi({ api: api2, state, emit, props, parent, dispatch, vm, constants, designConfig }); | ||
watch(() => state.showPopup, api2.bindScroll); | ||
@@ -94,0 +97,0 @@ return api2; |
@@ -23,3 +23,3 @@ import "../chunk-PKUHTIDK.js"; | ||
const api = ["state", "handleMainButtonClick", "hide", "show", "initDomOperation", "handleClick"]; | ||
const renderless = (props, { reactive, watch, provide, onMounted }, { emit, parent, broadcast, vm, nextTick }) => { | ||
const renderless = (props, { reactive, watch, provide, onMounted }, { emit, parent, broadcast, vm, nextTick, designConfig }) => { | ||
const api2 = {}; | ||
@@ -34,3 +34,4 @@ const state = reactive({ | ||
dropdownElm: null, | ||
listId: `dropdown-menu-${guid()}` | ||
listId: `dropdown-menu-${guid()}`, | ||
designConfig | ||
}); | ||
@@ -37,0 +38,0 @@ provide("dropdown", vm); |
{ | ||
"name": "@opentiny/vue-renderless", | ||
"version": "3.8.0", | ||
"version": "3.8.2", | ||
"description": "An enterprise-class UI component library, support both Vue.js 2 and Vue.js 3, as well as PC and mobile.", | ||
@@ -5,0 +5,0 @@ "homepage": "https://opentiny.design/tiny-vue", |
@@ -1230,2 +1230,5 @@ import { | ||
}; | ||
const computedGetIcon = ({ constants, designConfig }) => (name = "downWard") => { | ||
return (designConfig == null ? void 0 : designConfig.icons[name]) || (constants == null ? void 0 : constants.ICON_MAP[name]); | ||
}; | ||
export { | ||
@@ -1240,2 +1243,3 @@ blur, | ||
computeOptimizeOpts, | ||
computedGetIcon, | ||
debouncRquest, | ||
@@ -1242,0 +1246,0 @@ defaultOnQueryChange, |
@@ -77,3 +77,4 @@ import { | ||
computeMultipleLimit, | ||
resetFilter | ||
resetFilter, | ||
computedGetIcon | ||
} from "./index"; | ||
@@ -219,7 +220,8 @@ import { BROWSER_NAME } from "../common"; | ||
isSelectAll: computed(() => state.selectCls === "checked-sur"), | ||
isHalfSelect: computed(() => state.selectCls === "halfselect") | ||
isHalfSelect: computed(() => state.selectCls === "halfselect"), | ||
getIcon: computed(() => api2.computedGetIcon()) | ||
})); | ||
return state; | ||
}; | ||
const addApi = ({ api: api2, props, state, refs, emit, constants, parent, nextTick, dispatch, vm }) => { | ||
const addApi = ({ api: api2, props, state, refs, emit, constants, parent, nextTick, dispatch, vm, designConfig }) => { | ||
Object.assign(api2, { | ||
@@ -261,6 +263,21 @@ resetInputHeight: resetInputHeight({ api: api2, constants, nextTick, props, refs, state }), | ||
watchOptimizeOpts: watchOptimizeOpts({ api: api2, props, refs, state }), | ||
resetFilter: resetFilter({ state, api: api2 }) | ||
resetFilter: resetFilter({ state, api: api2 }), | ||
computedGetIcon: computedGetIcon({ constants, designConfig }) | ||
}); | ||
}; | ||
const initApi = ({ api: api2, props, state, refs, emit, maskState, constants, parent, nextTick, dispatch, t, vm }) => { | ||
const initApi = ({ | ||
api: api2, | ||
props, | ||
state, | ||
refs, | ||
emit, | ||
maskState, | ||
constants, | ||
parent, | ||
nextTick, | ||
dispatch, | ||
t, | ||
vm, | ||
designConfig | ||
}) => { | ||
Object.assign(api2, { | ||
@@ -312,3 +329,3 @@ state, | ||
}); | ||
addApi({ api: api2, props, state, refs, emit, constants, parent, nextTick, dispatch, vm }); | ||
addApi({ api: api2, props, state, refs, emit, constants, parent, nextTick, dispatch, vm, designConfig }); | ||
}; | ||
@@ -361,3 +378,3 @@ const addWatch = ({ watch, props, api: api2, state }) => { | ||
}; | ||
const renderless = (props, { computed, onBeforeUnmount, onMounted, reactive, watch, provide }, { vm, refs, parent, emit, constants, nextTick, dispatch, t, emitter }) => { | ||
const renderless = (props, { computed, onBeforeUnmount, onMounted, reactive, watch, provide }, { vm, refs, parent, emit, constants, nextTick, dispatch, t, emitter, designConfig }) => { | ||
const api2 = {}; | ||
@@ -368,3 +385,3 @@ const state = initState({ reactive, computed, props, api: api2, emitter, parent, constants }); | ||
const maskState = reactive({ width: "", height: "", top: "" }); | ||
initApi({ api: api2, props, state, refs, emit, maskState, constants, parent, nextTick, dispatch, t, vm }); | ||
initApi({ api: api2, props, state, refs, emit, maskState, constants, parent, nextTick, dispatch, t, vm, designConfig }); | ||
initWatch({ watch, props, api: api2, state, nextTick, refs }); | ||
@@ -371,0 +388,0 @@ onMounted(api2.mounted); |
import "../chunk-PKUHTIDK.js"; | ||
const computedIsClosable = ({ parent, props }) => () => props.withClose || parent.withClose; | ||
const computedIsClosable = ({ rootTabs, props }) => () => props.withClose || rootTabs.withClose; | ||
const computedActive = ({ nextTick, props, state }) => () => { | ||
@@ -4,0 +4,0 @@ const active = state.rootTabs.state.currentName === (props.name || state.index); |
@@ -5,5 +5,6 @@ import "../chunk-PKUHTIDK.js"; | ||
const renderless = (props, { computed, inject, reactive, watch }, { parent, nextTick }) => { | ||
const rootTabs = inject("rootTabs"); | ||
const api2 = { | ||
watchTitle: watchTitle(parent), | ||
computedIsClosable: computedIsClosable({ parent, props }) | ||
computedIsClosable: computedIsClosable({ rootTabs, props }) | ||
}; | ||
@@ -14,3 +15,3 @@ const state = reactive({ | ||
animateShow: true, | ||
rootTabs: inject("rootTabs"), | ||
rootTabs, | ||
active: computed(() => api2.computedActive()), | ||
@@ -17,0 +18,0 @@ paneName: computed(() => api2.computedPaneName()), |
@@ -54,3 +54,3 @@ import "../chunk-PKUHTIDK.js"; | ||
const api2 = {}; | ||
const popperParam = { emit, props, nextTick, toRefs, reactive, parent, refs }; | ||
const popperParam = { emit, props, nextTick, toRefs, reactive, parent: parent.$parent, refs }; | ||
const popperVmRef = {}; | ||
@@ -57,0 +57,0 @@ Object.assign(popperParam, { slots, onBeforeUnmount, onDeactivated, watch }); |
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
1730081
548
54182
65
3
6
2
37