Novelty Promotes Magicians

    vue-kityminder-gg-zzwl

    1.1.5 • Public • Published

    vue-kityminder-gg

    use

    npm install vue-kityminder-gg --save

    main.js

    import kityminder from 'vue-kityminder-gg'
    
    Vue.use(kityminder)
    
    ##examples
    <minder
    	ref="minder"
    	@exportData="exportData"
    	AccessKey="cTVaSHuahYgy-4Qvbo5LewAd5Add5625w2LSuF_5"
    	SecretKey="ZEJvO2-zNNE07p8DpPIBtyejt_BYf2SxZ7pbsMR7"
    	Domain="http://puo3hd5oc.bkt.clouddn.com"
    	scope="jm"
    	:importData="importData"
    	@saveData="saveData"
    ></minder>
    
    ##解说
    export default {
    	data() {
    		return {
    			importData: {//数据结构
    				data: { text: 'Design project', id: 2 },
    				children: [
    					{
    						data: { text: 'Designsy', id: 3 },
    						children: [
    							{
    								data: { text: 'Designsy', id: 4 },
    								children: [{ data: { text: 'Designsy', id: 5 } }, { data: { text: 'Designsy', id: 5 } }, { data: { text: 'Designsy', id: 5 } }]
    							},
    							{ data: { text: 'Designsy', id: 5 } },
    							{ data: { text: 'Designsy', id: 62 } },
    							{ data: { text: 'Designsy', id: 73 } },
    							{ data: { text: 'Designsy', id: 84 } }
    						]
    					},
    					{ data: { text: 'Designsy', id: 9 } },
    					{ data: { text: 'Designsy', id: 102 } },
    					{ data: { text: 'Designsy', id: 113 } },
    					{ data: { text: 'Designsy', id: 124 } }
    				]
    			}
    		};
    	},
    	methods: {
    		exportData(data) {//变化时返回数据
    			console.lo保存按钮g(data);
    		},
    		saveData(data){ //
    			
    		}
    	}
    }

    Install

    npm i vue-kityminder-gg-zzwl

    DownloadsWeekly Downloads

    22

    Version

    1.1.5

    License

    ISC

    Unpacked Size

    2.31 MB

    Total Files

    71

    Last publish

    Collaborators

    • wunan1402