mirror of
https://gitee.com/onvia/ccc-tnt-psd2ui
synced 2025-10-22 06:56:45 +00:00
mac npm-packages
This commit is contained in:
29
npm-packages/mac-v3.4.+/vue/jsx-runtime/index.d.ts
vendored
Normal file
29
npm-packages/mac-v3.4.+/vue/jsx-runtime/index.d.ts
vendored
Normal file
@@ -0,0 +1,29 @@
|
||||
import type {
|
||||
VNode,
|
||||
IntrinsicElementAttributes,
|
||||
ReservedProps,
|
||||
NativeElements
|
||||
} from '@vue/runtime-dom'
|
||||
|
||||
/**
|
||||
* JSX namespace for usage with @jsxImportsSource directive
|
||||
* when ts compilerOptions.jsx is 'react-jsx' or 'react-jsxdev'
|
||||
* https://www.typescriptlang.org/tsconfig#jsxImportSource
|
||||
*/
|
||||
export { h as jsx, h as jsxDEV, Fragment } from '@vue/runtime-dom'
|
||||
|
||||
export namespace JSX {
|
||||
export interface Element extends VNode {}
|
||||
export interface ElementClass {
|
||||
$props: {}
|
||||
}
|
||||
export interface ElementAttributesProperty {
|
||||
$props: {}
|
||||
}
|
||||
export interface IntrinsicElements extends NativeElements {
|
||||
// allow arbitrary elements
|
||||
// @ts-ignore suppress ts:2374 = Duplicate string index signature.
|
||||
[name: string]: any
|
||||
}
|
||||
export interface IntrinsicAttributes extends ReservedProps {}
|
||||
}
|
15
npm-packages/mac-v3.4.+/vue/jsx-runtime/index.js
Normal file
15
npm-packages/mac-v3.4.+/vue/jsx-runtime/index.js
Normal file
@@ -0,0 +1,15 @@
|
||||
const { h, Fragment } = require('vue')
|
||||
|
||||
function jsx(type, props, key) {
|
||||
const { children } = props
|
||||
delete props.children
|
||||
if (arguments.length > 2) {
|
||||
props.key = key
|
||||
}
|
||||
return h(type, props, children)
|
||||
}
|
||||
|
||||
exports.jsx = jsx
|
||||
exports.jsxs = jsx
|
||||
exports.jsxDEV = jsx
|
||||
exports.Fragment = Fragment
|
17
npm-packages/mac-v3.4.+/vue/jsx-runtime/index.mjs
Normal file
17
npm-packages/mac-v3.4.+/vue/jsx-runtime/index.mjs
Normal file
@@ -0,0 +1,17 @@
|
||||
import { h, Fragment } from 'vue'
|
||||
|
||||
function jsx(type, props, key) {
|
||||
const { children } = props
|
||||
delete props.children
|
||||
if (arguments.length > 2) {
|
||||
props.key = key
|
||||
}
|
||||
return h(type, props, children)
|
||||
}
|
||||
|
||||
export {
|
||||
Fragment,
|
||||
jsx,
|
||||
jsx as jsxs,
|
||||
jsx as jsxDEV
|
||||
}
|
5
npm-packages/mac-v3.4.+/vue/jsx-runtime/package.json
Normal file
5
npm-packages/mac-v3.4.+/vue/jsx-runtime/package.json
Normal file
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"main": "index.js",
|
||||
"module": "index.mjs",
|
||||
"types": "index.d.ts"
|
||||
}
|
Reference in New Issue
Block a user