重新调整目录结构

master
yutent 2024-05-10 15:45:56 +08:00
parent 6340a6cdee
commit 10aa8b11be
52 changed files with 30 additions and 85 deletions

View File

@ -4,7 +4,7 @@
* @date 2023/04/25 09:27:25
*/
import { html, css, Component } from 'wkit'
import '../base/icon.js'
import '../icon/icon.js'
class Avatar extends Component {
static props = {

View File

@ -5,7 +5,7 @@
*/
import { css, html, Component, nextTick, styleMap } from 'wkit'
import './icon.js'
import '../icon/icon.js'
class Button extends Component {
static props = {

View File

@ -5,8 +5,8 @@
*/
import { html, raw, css, Component, nextTick } from 'wkit'
import { colorHtml, colorJs, colorCss, colorMd } from './colorful.js'
import '../../base/icon.js'
import '../../modal/layer.js'
import '../icon/icon.js'
import '../layer/layer.js'
function trim(str) {
return str

View File

@ -5,7 +5,7 @@
*/
import { css, html, Component, styleMap, nextTick } from 'wkit'
import '../base/icon.js'
import '../icon/icon.js'
class Collapse extends Component {
static props = {

View File

@ -6,7 +6,7 @@
import { css, html, Component, nextTick, styleMap } from 'wkit'
import '../base/icon.js'
import '../icon/icon.js'
const ANIMATION = {
left: {

View File

@ -5,7 +5,7 @@
*/
import { nextTick, css, html, Component, bind } from 'wkit'
import '../base/icon.js'
import '../icon/icon.js'
import '../option/index.js'
class Dropdown extends Component {

View File

@ -1,15 +0,0 @@
import '../base/button.js'
import '../base/link.js'
import './checkbox.js'
import './color.js'
import './input.js'
import './number.js'
import './passwd.js'
import './radio.js'
import './select.js'
import './slider.js'
import './star.js'
import './switch.js'
import './textarea.js'
import './uploader.js'
import './image-uploader.js'

View File

@ -5,7 +5,7 @@
*/
import { css, html, Component, styleMap } from 'wkit'
import '../base/icon.js'
import '../icon/icon.js'
class Image extends Component {
static props = {

View File

@ -5,7 +5,7 @@
*/
import { css, html, Component, styleMap, bind, unbind } from 'wkit'
import '../base/icon.js'
import '../icon/icon.js'
class ImagePreview extends Component {
static props = {

View File

@ -6,7 +6,7 @@
import { css, html, Component, offset, bind, unbind, styleMap } from 'wkit'
import { parseSize } from '../base/fs.js'
import '../base/icon.js'
import '../icon/icon.js'
const EV_OPTION = { once: true }
const DOC = document

View File

@ -1,40 +0,0 @@
import './base/button.js'
import './base/icon.js'
import './base/link.js'
import './base/space.js'
import './form/index.js'
import './views/avatar.js'
import './views/badge.js'
import './views/breadcrumb.js'
import './views/code/index.js'
import './views/card.js'
import './views/collapse.js'
import './views/image.js'
import './views/image-preview.js'
import './views/markd/index.js'
import './views/progress.js'
import './views/result.js'
import './views/swiper.js'
import './views/tabs.js'
import './views/tag.js'
import './views/time.js'
import './views/timeline.js'
import './nav/dropdown.js'
import './nav/pager.js'
import './nav/steps.js'
import './modal/drag/index.js'
import './modal/drawer.js'
import './modal/layer.js'
import './modal/loading.js'
import './modal/notify.js'
import './modal/popconfirm.js'
import './modal/tooltip.js'
import './other/chatbubble.js'
import './other/divider.js'
import './other/sandbox.js'
import './other/scroll.js'

View File

@ -5,7 +5,7 @@
*/
import { nextTick, css, html, Component, classMap, outsideClick } from 'wkit'
import '../base/icon.js'
import '../icon/icon.js'
const ANIMATION = {
duration: 100,

View File

@ -7,8 +7,8 @@
import { css, html, raw, Component, bind, styleMap, classMap } from 'wkit'
import md2html from './core.js'
import '../code/index.js'
import '../../form/checkbox.js'
import '../code/code.js'
import '../form/checkbox.js'
export default md2html

View File

@ -5,7 +5,7 @@
*/
import { css, html, Component, bind, styleMap } from 'wkit'
import '../base/icon.js'
import '../icon/icon.js'
const ANIMATION = [
{ transform: 'translateX(60%)', opacity: 0 },

View File

@ -5,9 +5,9 @@
*/
import { css, html, raw, bind, Component, nextTick, classMap } from 'wkit'
import '../base/icon.js'
import '../icon/icon.js'
import { gzip } from '@bytedo/gzip'
import { colorHtml, colorJs, colorCss } from '../views/code/colorful.js'
import { colorHtml, colorJs, colorCss } from '../code/colorful.js'
const template = `<!doctype html>
<html lang="zh-CN">

View File

@ -5,7 +5,7 @@
*/
import { css, html, Component } from 'wkit'
import '../base/button.js'
import '../button/button.js'
const LAYOUT_DICT = {
home: e =>

View File

@ -4,7 +4,7 @@
* @date 2023/03/16 18:05:43
*/
import { css, html, Component, bind, unbind, nextTick } from 'wkit'
import '../base/icon.js'
import '../icon/icon.js'
class Passwd extends Component {
static props = {

View File

@ -16,7 +16,7 @@ import {
clearOutsideClick
} from 'wkit'
import '../base/button.js'
import '../button/button.js'
const DEFAULT_TIPS = '请确认你的操作!'

View File

@ -5,7 +5,7 @@
*/
import { css, html, Component } from 'wkit'
import '../base/icon.js'
import '../icon/icon.js'
class Result extends Component {
static props = {

View File

@ -5,9 +5,9 @@
*/
import { nextTick, css, html, Component } from 'wkit'
import '../base/icon.js'
import '../form/input.js'
import '../other/scroll.js'
import '../icon/icon.js'
import '../input/input.js'
import '../scroll/scroll.js'
import '../option/index.js'
class Select extends Component {

View File

@ -5,7 +5,7 @@
*/
import { nextTick, css, html, Component, classMap } from 'wkit'
import '../base/icon.js'
import '../icon/icon.js'
class Star extends Component {
static props = {

View File

@ -5,7 +5,7 @@
*/
import { css, html, Component, bind, styleMap, classMap } from 'wkit'
import '../base/icon.js'
import '../icon/icon.js'
class Steps extends Component {
static props = {

View File

@ -5,7 +5,7 @@
*/
import { css, html, Component, nextTick, styleMap } from 'wkit'
import '../base/icon.js'
import '../icon/icon.js'
const CARD_SCALE = 0.83
function createWatcher(object, key, effect) {

View File

@ -5,7 +5,7 @@
*/
import { css, html, bind, Component, nextTick, styleMap, classMap } from 'wkit'
import '../base/icon.js'
import '../icon/icon.js'
class Tabs extends Component {
static props = {

View File

@ -5,7 +5,7 @@
*/
import { css, html, Component } from 'wkit'
import '../base/icon.js'
import '../icon/icon.js'
const ANIMATION = { type: 'scale' }

View File

@ -5,7 +5,7 @@
*/
import { css, html, Component, bind, styleMap, classMap } from 'wkit'
import '../base/icon.js'
import '../icon/icon.js'
function pad(n) {
return n < 10 ? '0' + n : n

View File

@ -6,7 +6,7 @@
import { css, html, Component, bind, unbind, styleMap } from 'wkit'
import { resolveFiles, parseSize, filename } from '../base/fs.js'
import '../base/icon.js'
import '../icon/icon.js'
function uuid() {
return Math.random().toString(16).slice(2)